/* ERP Pro · MOHINHLAI — Commercial SaaS Landing + Enterprise Multi-Tenant Workspace */
:root {
  --brand: #0B1F4D;
  --brand-2: #1D4ED8;
  --accent: #F59E0B;
  --green: #059669;
  --green-bg: #DCFCE7;
  --red: #DC2626;
  --red-bg: #FEE2E2;
  --blue-bg: #DBEAFE;
  --amber-bg: #FEF3C7;
  --bg: #F1F5F9;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --line: #CBD5E1;
  --r: 14px;
  --sh: 0 2px 6px rgba(11,31,77,.06), 0 10px 24px rgba(11,31,77,.06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
.hide { display: none !important; }
a { color: var(--brand-2); }

/* Buttons & Form Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 16px; border: 0; border-radius: 11px; background: var(--brand); color: #fff; font: inherit; font-weight: 800; cursor: pointer; min-height: 44px; text-decoration: none; transition: filter .15s, transform .08s; }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.full { width: 100%; }
.btn.gold { background: linear-gradient(180deg, #F59E0B, #D97706); color: #fff; box-shadow: 0 4px 12px rgba(217,119,6,.28); }
.btn.green { background: linear-gradient(180deg, #10B981, #059669); color: #fff; }
.btn.red { background: linear-gradient(180deg, #EF4444, #DC2626); color: #fff; }
.btn.soft { background: #E0E7FF; color: var(--brand); }
.btn.outline { background: #fff; color: var(--text); border: 1.5px solid var(--line); }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn.sm { min-height: 36px; padding: 7px 12px; font-size: .85rem; border-radius: 9px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

label { display: block; font-weight: 700; font-size: .88rem; color: #334155; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #F8FAFC; color: var(--text); min-height: 42px; }
textarea { min-height: 82px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(29,78,216,.18); border-color: var(--brand-2); background: #fff; }
.field { margin-bottom: 12px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .fgrid, .fgrid3 { grid-template-columns: 1fr; } }

.msg { padding: 11px 14px; border-radius: 11px; font-size: .9rem; margin-bottom: 12px; }
.msg.err { background: var(--red-bg); color: #991B1B; border: 1px solid #FCA5A5; }
.msg.ok { background: var(--green-bg); color: #065F46; border: 1px solid #86EFAC; }
.msg.info { background: var(--blue-bg); color: #1E3A8A; border: 1px solid #93C5FD; }
.msg.warn { background: var(--amber-bg); color: #92400E; border: 1px solid #FCD34D; }

.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.pill.ok { background: var(--green-bg); color: #065F46; }
.pill.warn { background: var(--amber-bg); color: #92400E; }
.pill.err { background: var(--red-bg); color: #991B1B; }
.pill.blue { background: var(--blue-bg); color: #1E40AF; }
.pill.gray { background: #E2E8F0; color: #475569; }
.muted { color: var(--muted); font-size: .86rem; }
.card { background: #fff; border: 1px solid #E2E8F0; border-radius: var(--r); padding: 16px; box-shadow: var(--sh); margin-bottom: 14px; }
.card h2 { margin: 0 0 10px; font-size: 1.08rem; color: var(--brand); }

/* ================= LANDING PAGE ================= */
.lp-nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid #E2E8F0; }
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.lp-nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; color: var(--brand); text-decoration: none; }
.lp-brand img { width: 38px; height: 38px; border-radius: 10px; }
.lp-brand small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }

.lp-hero { background: linear-gradient(135deg, #061333 0%, #0B1F4D 55%, #1E3A8A 100%); color: #fff; padding: 56px 0 64px; }
.lp-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,158,11,.18); border: 1px solid rgba(251,191,36,.45); color: #FDE68A; padding: 6px 14px; border-radius: 99px; font-size: .83rem; font-weight: 700; margin-bottom: 14px; }
.lp-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.95rem); line-height: 1.15; margin: 0 0 14px; font-weight: 900; }
.lp-hero h1 em { font-style: normal; color: #FBBF24; }
.lp-hero p.lead { font-size: 1.05rem; color: #CBD5E1; margin: 0 0 22px; }

.hero-board { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 20px; backdrop-filter: blur(8px); }
.hb-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.hb-kpi { background: rgba(255,255,255,.1); border-radius: 14px; padding: 12px; }
.hb-kpi small { color: #BAE6FD; font-size: .76rem; display: block; }
.hb-kpi b { font-size: 1.25rem; color: #fff; }
.hb-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: rgba(255,255,255,.08); border-radius: 11px; margin-top: 8px; font-size: .86rem; }

.lp-sec { padding: 54px 0; }
.lp-sec.alt { background: #fff; border-top: 1px solid #E2E8F0; border-bottom: 1px solid #E2E8F0; }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.lp-head h2 { font-size: clamp(1.45rem, 2.8vw, 2.15rem); color: var(--brand); margin: 0 0 8px; font-weight: 900; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 20px; box-shadow: var(--sh); }
.feat-ico { width: 44px; height: 44px; border-radius: 12px; background: #FEF3C7; color: #B45309; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 12px; }
.feat-card h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--brand); }
.feat-card p { margin: 0; font-size: .88rem; color: var(--muted); }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-card { background: #fff; border: 1.5px solid #E2E8F0; border-radius: 18px; padding: 20px 16px; display: flex; flex-direction: column; position: relative; box-shadow: var(--sh); }
.price-card.pop { border-color: var(--accent); box-shadow: 0 12px 30px rgba(245,158,11,.18); }
.price-tag { position: absolute; top: -11px; right: 14px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 11px; border-radius: 99px; }
.price-amt { font-size: 1.65rem; font-weight: 900; color: var(--brand); margin: 8px 0 3px; }
.price-amt small { font-size: .82rem; font-weight: 600; color: var(--muted); }
.price-ul { list-style: none; padding: 0; margin: 12px 0 18px; flex: 1; display: grid; gap: 7px; font-size: .85rem; color: #334155; }
.price-ul li::before { content: "✓ "; color: var(--green); font-weight: 900; }
.lp-footer { background: #061333; color: #94A3B8; padding: 32px 0; font-size: .88rem; }
.lp-footer a { color: #CBD5E1; text-decoration: none; }

@media (max-width: 1020px) { .lp-hero-grid { grid-template-columns: 1fr; } .feat-grid, .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid, .price-grid { grid-template-columns: 1fr; } }

/* ================= ERP WORKSPACE SHELL ================= */
.erp-layout { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.erp-side { background: #071738; color: #CBD5E1; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.erp-logo { display: flex; align-items: center; gap: 10px; padding: 6px 6px 12px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px; color: #fff; }
.erp-logo img { width: 34px; height: 34px; border-radius: 9px; }
.erp-logo b { display: block; font-size: .96rem; line-height: 1.2; }
.erp-logo small { font-size: .72rem; color: #94A3B8; }
.side-sec { font-size: .68rem; text-transform: uppercase; letter-spacing: .8px; color: #64748B; padding: 10px 10px 4px; font-weight: 800; }
.side-btn { width: 100%; text-align: left; background: transparent; border: 0; color: #CBD5E1; padding: 10px 11px; border-radius: 10px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-btn.on { background: linear-gradient(90deg, #F59E0B, #D97706); color: #fff; }
.side-btn .bdg { background: #EF4444; color: #fff; border-radius: 99px; font-size: .7rem; padding: 2px 7px; font-weight: 800; }

.erp-main { min-width: 0; display: flex; flex-direction: column; }
.erp-topbar { background: #fff; border-bottom: 1px solid #E2E8F0; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 25; }
.erp-topbar h1 { margin: 0; font-size: 1.2rem; color: var(--brand); }
.top-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bell-btn { position: relative; background: #FEF3C7; color: #B45309; border: 1.5px solid #FCD34D; border-radius: 10px; padding: 7px 12px; font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bell-btn.ring { animation: ringBell .6s ease-in-out 2; }
@keyframes ringBell { 0%,100%{transform:rotate(0)} 25%{transform:rotate(14deg)} 75%{transform:rotate(-14deg)} }
.bell-cnt { background: #DC2626; color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 6px; }
.erp-body { padding: 18px 20px 36px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 14px 16px; border-left: 5px solid var(--brand); box-shadow: var(--sh); }
.kpi-card.green { border-left-color: var(--green); }
.kpi-card.gold { border-left-color: var(--accent); }
.kpi-card.red { border-left-color: var(--red); }
.kpi-card small { color: var(--muted); font-weight: 700; font-size: .8rem; display: block; }
.kpi-card b { font-size: 1.4rem; color: var(--brand); display: block; margin-top: 3px; }

.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.tbl th { background: #F8FAFC; color: #334155; font-weight: 800; text-align: left; padding: 10px; border-bottom: 1.5px solid #CBD5E1; white-space: nowrap; }
table.tbl td { padding: 9px 10px; border-bottom: 1px solid #F1F5F9; vertical-align: middle; }
table.tbl tbody tr { cursor: pointer; }
table.tbl tbody tr:hover td { background: #EFF6FF; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 13px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Modal */
.mask { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 14px; }
.sheet { background: #fff; width: 100%; max-width: 680px; border-radius: 18px; max-height: 92vh; overflow: auto; padding: 0 20px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.sheet.wide { max-width: 860px; }
.sheet-head { position: sticky; top: 0; background: #fff; margin: 0 -20px 14px; padding: 14px 20px; border-bottom: 1px solid #E2E8F0; display: flex; justify-content: space-between; align-items: center; z-index: 5; }
.sheet-head h3 { margin: 0; font-size: 1.08rem; color: var(--brand); }
.sheet-x { background: #F1F5F9; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); top: 16px; z-index: 120; padding: 11px 18px; border-radius: 11px; font-weight: 800; box-shadow: 0 10px 28px rgba(0,0,0,.22); max-width: 92vw; }
.toast.ok { background: #065F46; color: #fff; }
.toast.err { background: #991B1B; color: #fff; }
.toast.info { background: var(--brand); color: #fff; }

.mob-btn { display: none; }
@media (max-width: 920px) {
  .erp-layout { grid-template-columns: 1fr; }
  .erp-side { position: fixed; inset: 0 auto 0 0; width: 256px; z-index: 65; transform: translateX(-105%); transition: transform .2s; }
  .erp-side.open { transform: translateX(0); }
  .mob-btn { display: inline-flex; }
  .erp-body { padding: 12px; }
}
@media print {
  .erp-side, .erp-topbar, .no-print { display: none !important; }
  .mask { position: static; background: none; padding: 0; }
  .sheet { max-width: 100%; max-height: none; box-shadow: none; }
}
