@font-face{font-family:"APP Unicode";src:url("/fonts/NotoSans-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}@font-face{font-family:"APP Unicode";src:url("/fonts/NotoSans-SemiBold.ttf") format("truetype");font-style:normal;font-weight:500 600;font-display:swap}@font-face{font-family:"APP Unicode";src:url("/fonts/NotoSans-Bold.ttf") format("truetype");font-style:normal;font-weight:700 800;font-display:swap}@font-face{font-family:"APP Unicode";src:url("/fonts/NotoSans-Black.ttf") format("truetype");font-style:normal;font-weight:900;font-display:swap}:root{--bg:#f6f8fb;--panel:#fff;--ink:#172033;--muted:#667085;--line:#e6eaf0;--brand:#0f766e;--brand2:#2563eb;--danger:#dc2626;--warn:#b45309;--ok:#15803d;--shadow:0 14px 35px rgba(22,32,51,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"APP Unicode","Noto Sans","Segoe UI",Roboto,Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}.login-wrap{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr;background:linear-gradient(135deg,#eef7f5,#f8fbff)}.login-hero{padding:56px;display:flex;flex-direction:column;justify-content:space-between}.brand-mark{width:54px;height:54px;border-radius:14px;background:#0f766e;color:white;display:grid;place-items:center;font-weight:800;font-size:22px}.login-title{max-width:780px}.login-title h1{font-size:46px;line-height:1.05;margin:24px 0 14px;letter-spacing:0}.login-title p{color:var(--muted);font-size:18px;line-height:1.6}.center-strip{display:flex;gap:12px;flex-wrap:wrap}.chip{background:white;border:1px solid var(--line);border-radius:999px;padding:10px 14px;color:#344054}.login-panel{display:grid;place-items:center;padding:32px}.login-card{width:min(430px,100%);background:white;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);padding:28px}.login-card h2{margin:0 0 8px;font-size:24px}.muted{color:var(--muted)}.field{display:flex;flex-direction:column;gap:7px;margin:14px 0}.field label{font-weight:650;color:#344054}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:7px;padding:10px 12px;background:white;color:var(--ink);outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.12)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;padding:10px 13px;background:#eef2f6;color:#1f2937;font-weight:700;min-height:38px}.btn.primary{background:var(--brand);color:white}.btn.blue{background:var(--brand2);color:white}.btn.danger{background:#fee2e2;color:#991b1b}.btn.ghost{background:transparent;border:1px solid var(--line)}.btn.small{padding:7px 9px;min-height:32px;font-size:12px}.app-shell{min-height:100vh;display:grid;grid-template-columns:268px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column}.side-brand{padding:18px 18px 14px;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center}.side-brand strong{display:block;font-size:15px}.side-brand span{font-size:12px;color:var(--muted)}.menu{padding:12px;overflow:auto}.menu-group{margin-bottom:5px}.menu-btn{width:100%;display:flex;align-items:center;gap:10px;background:transparent;color:#344054;border-radius:7px;padding:10px 10px;text-align:left}.menu-btn:hover,.menu-btn.active{background:#ecfdf5;color:#0f766e}.menu-btn b{font-size:15px}.submenu{padding-left:26px}.submenu button{display:block;width:100%;text-align:left;background:transparent;color:var(--muted);padding:7px;border-radius:6px}.submenu button:hover{background:#f2f4f7;color:#344054}.main{min-width:0}.topbar{height:68px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:5}.top-left{display:flex;align-items:center;gap:12px;min-width:0}.hamb{display:none}.top-title strong{display:block;font-size:16px}.top-title span{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}.top-actions{display:flex;align-items:center;gap:10px}.content{padding:22px;max-width:1520px}.toolbar{display:flex;justify-content:space-between;gap:14px;align-items:flex-end;margin-bottom:18px;flex-wrap:wrap}.toolbar h1{font-size:25px;margin:0 0 6px}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.filters select,.filters input{border:1px solid var(--line);border-radius:7px;padding:9px 10px;background:white}.cards{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;margin-bottom:18px}.stat{background:white;border:1px solid var(--line);border-radius:8px;padding:16px;box-shadow:0 8px 22px rgba(16,24,40,.04)}.stat span{color:var(--muted);font-size:12px}.stat strong{display:block;font-size:23px;margin-top:8px}.grid{display:grid;grid-template-columns:1.05fr .95fr;gap:16px}.panel{background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 22px rgba(16,24,40,.04);min-width:0}.panel-head{padding:14px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center}.panel-head h2{margin:0;font-size:16px}.panel-body{padding:15px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:11px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.table th{font-size:12px;color:var(--muted);font-weight:800;background:#fafbfc}.table tr:hover td{background:#fcfcfd}.status{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800}.status.Paid,.status.Closed{background:#dcfce7;color:#166534}.status.Pending,.status.Open,.status.Partial,.status.Partially{background:#fef3c7;color:#92400e}.status.Cancelled{background:#fee2e2;color:#991b1b}.status.Draft{background:#e5e7eb;color:#374151}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid .full{grid-column:1/-1}.items{border:1px solid var(--line);border-radius:8px;overflow:hidden}.item-row{display:grid;grid-template-columns:1.4fr .55fr .7fr .7fr .65fr 34px;gap:8px;padding:8px;border-bottom:1px solid var(--line);align-items:center}.item-row.header{background:#fafbfc;color:var(--muted);font-size:12px;font-weight:800}.item-row input{border:1px solid var(--line);border-radius:6px;padding:8px;min-width:0}.modal-back{position:fixed;inset:0;background:rgba(15,23,42,.38);display:grid;place-items:center;padding:18px;z-index:20}.modal{width:min(900px,100%);max-height:92vh;overflow:auto;background:white;border-radius:8px;box-shadow:0 30px 90px rgba(0,0,0,.24)}.modal-head{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h2{margin:0;font-size:18px}.modal-body{padding:18px}.modal-foot{padding:14px 18px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}.toast{position:fixed;right:20px;bottom:88px;background:#101828;color:white;padding:12px 14px;border-radius:8px;box-shadow:var(--shadow);z-index:30}.wa-float{position:fixed;right:22px;bottom:22px;width:56px;height:56px;border-radius:50%;background:#16a34a;color:white;display:grid;place-items:center;font-weight:900;font-size:20px;box-shadow:var(--shadow);z-index:10;text-decoration:none}.login-top{position:absolute;right:24px;top:24px}.empty{padding:24px;color:var(--muted);text-align:center}.balance.good{color:var(--ok)}.balance.bad{color:var(--danger)}@media(max-width:980px){.login-wrap{grid-template-columns:1fr}.login-hero{padding:34px 24px}.login-title h1{font-size:34px}.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-282px;width:268px;z-index:15;transition:.2s}.sidebar.open{left:0}.hamb{display:inline-flex}.topbar{padding:0 14px}.content{padding:16px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{grid-template-columns:1fr}.top-title span{max-width:220px}.form-grid{grid-template-columns:1fr}.item-row{grid-template-columns:1fr 1fr 1fr}.item-row.header{display:none}}@media(max-width:560px){.cards{grid-template-columns:1fr}.top-actions{gap:6px}.filters{width:100%}.filters select,.filters input{flex:1;min-width:140px}.login-card{padding:20px}.login-title p{font-size:15px}}

.bill-screen{margin:-22px;background:#f7f7f8;min-height:calc(100vh - 68px);padding-bottom:72px}.bill-top{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:68px;z-index:4}.bill-title{display:flex;align-items:center;gap:12px}.bill-title h1{font-size:20px;margin:0}.bill-title span{font-size:12px;color:var(--muted)}.bill-no{display:flex;border:1px solid #d8dee8;border-radius:7px;overflow:hidden;height:40px;background:#fff}.bill-no span{padding:10px 20px;background:#fbfcfe;border-right:1px solid #d8dee8;font-weight:800}.bill-no input{border:0;width:92px;padding:0 12px;font-weight:800}.bill-center-wrap{display:grid;gap:3px;background:#f8fbff;border:1px solid #b8e6d5;border-radius:8px;padding:6px 10px;min-width:160px}.bill-center-wrap span{font-size:11px;font-weight:800;color:#0f766e}.bill-center-wrap small{font-size:10px;color:#64748b}.bill-center-wrap b{font-size:14px;color:#10213f}.bill-center{border:0;background:transparent;font-weight:800;color:#10213f;outline:0;padding:0}.bill-type{height:48px;display:flex;align-items:center;gap:12px;padding:0 18px;background:#fafafa;border-bottom:1px solid var(--line)}.bill-type span{flex:1}.link-btn{background:transparent;color:#334155;font-weight:800}.bill-body{padding:16px 18px 24px}.customer-card{position:relative;background:#eaf5ff;border-radius:8px;padding:12px;width:34%;min-width:430px;display:inline-block;vertical-align:top}.bill-label{display:flex;justify-content:space-between;font-weight:800;color:#526071;margin-bottom:7px}.bill-label button{background:transparent;font-weight:800;color:#344054}.searchbox{display:flex;gap:8px;align-items:center;background:white;border:2px solid #111827;border-radius:7px;padding:0 10px}.searchbox input{border:0;outline:0;height:40px;flex:1}.customer-list{display:none;position:absolute;left:12px;right:12px;top:76px;background:white;border:1px solid var(--line);box-shadow:0 18px 45px rgba(15,23,42,.18);border-radius:0 0 8px 8px;z-index:8;overflow:hidden}.customer-list.open{display:block}.customer-list-scroll{max-height:306px;overflow:auto}.customer-list button[data-name]{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;width:100%;padding:12px 14px;background:white;text-align:left}.customer-list button:hover{background:#f8fafc}.customer-list small{display:block;color:#667085;margin-top:2px}.customer-list strong{color:#ef1b1b}.avatar{width:30px;height:30px;border-radius:50%;background:#e8d5cf;display:grid;place-items:center;font-weight:800}.create-row{width:100%;padding:14px;color:#2455ff;background:white;font-weight:800;border-top:1px solid var(--line)}.bill-meta{float:right;width:66%;display:grid;grid-template-columns:160px 160px 1fr;gap:10px;background:#fff;border-radius:8px;padding:12px}.bill-meta .field{margin:0}.bill-meta .wide textarea{height:40px;resize:none}.headers{clear:both;padding:28px 4px 12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.headers button{background:#eef2f7;border:1px solid #dde3ea;border-radius:999px;padding:5px 10px;color:#344054}.products-box{background:#e7f4ff;border-radius:8px;padding:12px}.products-head{display:flex;align-items:center;gap:14px}.products-head label{margin-left:auto;color:#667085}.product-search{display:grid;grid-template-columns:140px 1fr 120px 128px;gap:12px;margin-top:12px}.product-search input,.product-search select{border:1px solid var(--line);border-radius:7px;padding:10px;background:#fff}.product-suggest{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.product-suggest button{background:white;border:1px solid var(--line);border-radius:999px;padding:7px 10px;display:flex;gap:8px}.bill-table{background:white;border-radius:7px;overflow:hidden}.bill-row{display:grid;grid-template-columns:1.6fr .7fr .8fr .8fr .9fr 44px;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.bill-row input{border:1px solid var(--line);border-radius:6px;padding:9px}.bill-head{background:#f8fafc;color:#667085;font-weight:800}.bill-empty{min-height:230px;display:grid;place-items:center;align-content:center;color:#667085}.print-icon{font-size:48px;color:#cfd6df}.bill-bottom{display:flex;justify-content:space-between;gap:18px;padding:18px 12px}.bill-bottom input{width:86px;border:1px solid #12a66a;border-radius:6px;padding:10px;display:block;margin-top:8px}.bill-sum{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}.notes-card{margin-top:18px}.notes-card h3{font-size:14px;color:#667085}.notes-card textarea{width:100%;min-height:70px;border:1px solid var(--line);border-radius:8px;padding:14px}.taxes{display:flex;justify-content:flex-end;gap:18px;margin-top:8px}.bill-footer{position:fixed;left:268px;right:0;bottom:0;background:white;border-top:1px solid var(--line);padding:12px 22px;display:flex;justify-content:flex-end;gap:10px;z-index:6}.drawer-back{position:fixed;inset:0;background:rgba(0,0,0,.36);z-index:30;display:flex;justify-content:flex-end}.drawer{width:min(1040px,54vw);background:#f8f8f9;height:100vh;overflow:auto;box-shadow:-20px 0 50px rgba(0,0,0,.18)}.drawer-head{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;padding:0 18px;position:sticky;top:0;z-index:2}.drawer-head h2{flex:1;margin:0}.drawer-head>button:first-child{background:transparent;font-size:28px;color:#64748b}.drawer-tabs{background:#fff;padding:16px 24px 0}.drawer-tabs b{display:inline-block;border-bottom:3px solid #2455ff;padding-bottom:10px}.drawer-body{padding:0 24px 90px}.drawer-body section{background:#fff;border-radius:8px;margin:16px 0;padding:16px}.drawer-body h3{margin:0 0 14px;font-size:15px}.drawer-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.drawer-grid .full{grid-column:1/-1}.req{color:#ef1b1b}.phone,.inline{display:flex;gap:8px}.phone select{width:90px}.phone input,.inline input{flex:1}.upgrade-strip{background:#e8f5ff;border-radius:8px;margin:16px 0;padding:16px;display:flex;align-items:center;gap:14px}.upgrade-strip span{flex:1;color:#667085}.drawer-body textarea{width:100%;min-height:74px;border:1px solid var(--line);border-radius:7px;padding:10px}.drawer details{background:#fff3e8;border-radius:8px;padding:14px;margin-bottom:20px}.drawer-foot{position:fixed;right:0;bottom:0;width:min(1040px,54vw);background:white;border-top:1px solid var(--line);padding:12px 18px;display:flex;gap:10px}@media(max-width:980px){.bill-screen{margin:-16px}.bill-top{top:68px}.customer-card,.bill-meta{width:100%;min-width:0;float:none}.bill-meta{margin-top:12px;grid-template-columns:1fr}.product-search{grid-template-columns:1fr}.bill-row{grid-template-columns:1fr 1fr}.bill-head{display:none}.bill-footer{left:0}.drawer,.drawer-foot{width:100vw}.drawer-grid{grid-template-columns:1fr}}

.block{display:block;margin-top:3px}.admin-note{background:#eef7ff;border:1px solid #cfe7ff;color:#1e3a5f;border-radius:7px;padding:10px 12px;margin-bottom:12px}.perm-cell{max-width:360px}.perm-cell span{display:inline-flex;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:3px 8px;margin:2px;font-size:12px}.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:12px}.permission-grid label{display:flex;gap:7px;align-items:center;font-weight:700;color:#344054}.small-modal{width:min(460px,100%)}@media(max-width:720px){.permission-grid{grid-template-columns:1fr}.perm-cell{min-width:240px}}

.sales-board{margin-top:-8px}.promo-strip{background:#eaf5ff;border:1px solid #d8edff;border-radius:7px;text-align:center;padding:12px;font-weight:800;margin-bottom:12px}.promo-strip button{margin-left:14px;background:white;border:1px solid #dbe3ef;border-radius:999px;padding:8px 14px;font-weight:800}.sales-panel{background:white;border:1px solid var(--line);border-radius:8px;padding:18px;box-shadow:0 8px 22px rgba(16,24,40,.04)}.sales-head{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:10px}.sales-head h1{margin:0 0 10px;font-size:24px}.play-dot{font-size:13px;background:#f63b93;color:white;border-radius:50%;padding:2px 5px}.sales-tabs{display:flex;gap:22px;flex-wrap:wrap}.sales-tab{background:transparent;padding:8px 0;border-bottom:3px solid transparent;color:#344054}.sales-tab.active{border-color:#2455ff;color:#111827;font-weight:800}.sales-tab span{background:#eef2f7;border-radius:6px;padding:2px 6px;margin-left:4px;color:#667085}.sales-actions{display:flex;gap:14px;align-items:start}.sales-tools{display:grid;grid-template-columns:minmax(240px,430px) 220px 1fr auto auto;gap:8px;align-items:center;margin:12px 0}.sales-search{display:flex;align-items:center;gap:8px;border:1px solid #d8dee8;border-radius:7px;padding:0 10px}.sales-search input{height:38px;border:0;outline:0;flex:1}.date-pill{height:40px;border-radius:7px;background:#f2f4f7;color:#344054;font-weight:800;padding:0 14px}.sales-table{border-radius:8px;overflow:hidden}.sales-row{display:grid;grid-template-columns:1.15fr 1fr .9fr 1fr 1.2fr 1.1fr 1.2fr;gap:12px;align-items:center;min-height:68px;border-bottom:1px solid var(--line);padding:10px}.sales-row-head{min-height:44px;background:#f7f7f6;color:#667085;font-size:12px;font-weight:800}.sales-row b{display:block}.sales-row small{display:block;color:#667085;margin-top:3px;font-size:11px}.status-chip{display:inline-flex;border-radius:7px;padding:6px 9px;font-size:12px;font-weight:800}.status-chip.pending{background:#fff3bf;color:#7a4d00}.status-chip.paid{background:#bcf3c8;color:#166534}.status-chip.cancelled{background:#fee2e2;color:#991b1b}.status-chip.draft{background:#e5e7eb;color:#374151}.bell{margin-left:6px;background:#fff3bf;border-radius:7px;padding:5px}.mode-chip{background:#e9e6ff;color:#3730a3;border-radius:6px;padding:6px 9px;font-weight:800}.row-menu{display:flex;gap:6px;justify-content:flex-end}.sales-bottom{position:sticky;bottom:0;background:white;display:flex;gap:10px;align-items:center;padding:14px;border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(16,24,40,.06)}.sales-bottom span{background:#eef6ff;border-radius:7px;padding:10px 14px;font-weight:800}.sales-bottom .paid-box{background:#eaf8ee}.sales-bottom .pending-box{background:#fff1e8}.sales-bottom b{margin-left:auto}.date-modal{width:min(470px,96vw);background:white;border-radius:8px;box-shadow:0 24px 90px rgba(0,0,0,.24)}.date-body{padding:0 24px 22px}.date-body h3{margin:8px 0 10px}.date-chips{display:flex;gap:10px;flex-wrap:wrap}.date-chips button{background:white;border:1px solid var(--line);border-radius:999px;padding:9px 16px}.date-chips .active{background:#2455ff;color:white;border-color:#2455ff}.date-inputs{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin-top:18px}.date-inputs input{border:1px solid var(--line);border-radius:7px;padding:10px}@media(max-width:980px){.sales-tools{grid-template-columns:1fr}.sales-head{display:block}.sales-row{grid-template-columns:1fr 1fr}.sales-row-head{display:none}.row-menu{justify-content:flex-start}.sales-bottom{overflow:auto}.sales-actions{margin-top:10px}.date-pill{text-align:left}}

.invoice-lower{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.left-lower,.right-lower{display:flex;flex-direction:column;gap:14px}.terms-box,.attach-box,.amount-card,.bank-card,.payment-card,.signature-card{background:white;border:1px solid var(--line);border-radius:8px;padding:14px}.terms-box textarea{width:100%;min-height:58px;border:1px solid var(--line);border-radius:7px;margin-top:10px;padding:10px}.attach-box{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.amount-card{background:#e8f6ee}.amount-line,.amount-total{display:flex;justify-content:space-between;padding:4px 0}.amount-total{font-size:17px;border-top:1px solid rgba(0,0,0,.08);margin-top:6px;padding-top:8px}.bank-card select,.signature-card select{width:100%;border:1px solid var(--line);border-radius:7px;padding:10px;margin-top:7px}.payment-card{background:#e8f6ee}.payment-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.payment-grid{display:grid;grid-template-columns:1fr 130px 150px 120px;gap:10px}.payment-grid input,.payment-grid select{border:1px solid var(--line);border-radius:7px;padding:10px}.signature-card{background:#ffe8fb}.sign-box{text-align:right;margin-top:14px;min-height:70px;padding:12px;background:white;border-radius:6px;color:#344054}@media(max-width:980px){.invoice-lower{grid-template-columns:1fr}.payment-grid{grid-template-columns:1fr}.payment-head{display:block}}

/* Swipe-like global polish */
.app-shell{grid-template-columns:210px 1fr}.sidebar{background:#fbfbfb}.side-brand{padding:12px 12px 10px;gap:9px}.side-brand .brand-mark{width:34px;height:34px;border-radius:50%;font-size:14px}.side-brand strong{font-size:13px}.side-brand span{font-size:10px}.menu{padding:8px}.menu-btn{padding:7px 8px;border-radius:6px;font-size:13px}.submenu{padding-left:24px}.submenu button{padding:5px 6px;font-size:12px}.topbar{height:58px;background:#fff}.content{max-width:none;padding:18px;background:#f7f7f6;min-height:calc(100vh - 58px)}.panel{box-shadow:none;border-color:#ebedf0}.panel-head{background:#fff}.table th{background:#f7f7f6}.table td{height:54px}.toolbar{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px;margin-bottom:12px}.toolbar h1{font-size:22px}.filters .btn.primary,.sales-actions .btn.primary{background:#2455ff}.btn.primary{background:#0f766e}.sales-board{margin:-18px}.sales-panel{box-shadow:none}.bill-screen{margin:-18px;min-height:calc(100vh - 58px)}.bill-top{top:58px}.bill-footer{left:210px}.wa-float{width:52px;height:52px}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{width:210px;left:-222px}.bill-footer{left:0}.sales-board,.bill-screen{margin:-16px}.bill-top{top:58px}}

.dual-login{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-content:center}.dual-login .login-card{width:100%}.center-login-card{border-top:4px solid #2563eb}.center-strip button.chip{cursor:pointer}.center-strip button.chip:hover{border-color:#2563eb;color:#2563eb}.login-card .btn.blue{background:#2563eb;color:white}@media(max-width:980px){.dual-login{grid-template-columns:1fr}.login-panel{padding:24px}.login-wrap{align-items:start}}

.payments-board{margin:-18px}.payments-panel{background:white;border:1px solid var(--line);border-radius:8px;padding:18px}.payments-panel h1{font-size:24px;margin:0 0 16px}.fund-cards{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-bottom:18px}.fund-card{background:#f7f7f6;border-radius:12px;padding:18px;min-height:108px;position:relative}.fund-icon{width:36px;height:36px;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;background:white;margin-bottom:10px}.fund-card span{color:#4b5563;font-weight:700}.fund-card small{display:block;color:#667085;margin-top:4px}.fund-card strong{display:block;color:#07883f;font-size:22px;margin-top:18px}.filter-round{position:absolute;right:16px;top:18px;width:32px;height:32px;border-radius:50%;background:white;border:1px solid var(--line)}.payment-tabs{border-bottom:1px solid var(--line);margin-bottom:12px}.payment-tools{grid-template-columns:minmax(260px,430px) 220px 1fr auto}.payment-table{border-radius:8px;overflow:hidden}.payment-row{display:grid;grid-template-columns:1.1fr .7fr 1fr 1.5fr 1.2fr 1fr 1fr .9fr;gap:12px;align-items:center;min-height:68px;border-bottom:1px solid var(--line);padding:10px}.payment-head{background:#f7f7f6;color:#667085;font-size:12px;font-weight:800;min-height:44px}.pay-amount{background:#f1fbf8;height:100%;display:flex;align-items:center;padding-left:4px}.pay-amount.gave{background:#fff5f5}.cash-mode{background:#d8f8e7;color:#166534}.party-cell{display:flex;align-items:center;gap:10px}.payment-bottom{position:sticky;bottom:0;background:white;border-top:1px solid var(--line);padding:12px;display:flex;gap:10px;align-items:center;box-shadow:0 -8px 24px rgba(16,24,40,.06)}.payment-bottom span{background:#eef6ff;border-radius:7px;padding:10px 14px;font-weight:800}.payment-bottom span:nth-child(3){background:#fff1e8}@media(max-width:980px){.payments-board{margin:-16px}.fund-cards{grid-template-columns:1fr}.payment-tools{grid-template-columns:1fr}.payment-row{grid-template-columns:1fr 1fr}.payment-head{display:none}.payment-bottom{overflow:auto}}

.admin-panel-badge{font-size:22px;color:#0f172a;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:8px;padding:8px 14px;margin-left:18px}.settings-list{border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:14px;background:#fafbfc}.settings-list h3{margin:0 0 10px;font-size:15px}.settings-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:8px}.settings-row.two{grid-template-columns:.5fr 1fr auto}.settings-row input{border:1px solid var(--line);border-radius:7px;padding:9px}@media(max-width:720px){.admin-panel-badge{font-size:16px;margin-left:0}.settings-row,.settings-row.two{grid-template-columns:1fr}}

.customer-board{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.customer-head{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 20px;border-bottom:1px solid var(--line)}.customer-head h1{margin:0 0 12px;font-size:22px}.customer-tabs{display:flex;gap:22px}.customer-tabs button{background:transparent;padding:8px 0;border-bottom:3px solid transparent;color:#334155}.customer-tabs button.active{border-color:#2455ff;font-weight:800}.customer-tabs span{background:#eef2f7;border-radius:6px;padding:2px 7px;margin-left:4px}.customer-tools{display:grid;grid-template-columns:minmax(280px,405px) 1fr auto;gap:12px;align-items:center;padding:14px 20px;background:#fff}.center-filter-pills{display:flex;gap:8px;flex-wrap:wrap}.center-filter-pills button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px}.center-filter-pills button.active{background:#e8fff4;border-color:#0f766e;color:#0f766e;font-weight:800}.customer-center-panel{border-top:12px solid #f7f7f6}.customer-table{padding:0 20px 10px}.customer-row{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.1fr 180px;gap:12px;align-items:center;min-height:68px;border-bottom:1px solid var(--line);padding:10px}.customer-row-head{min-height:38px;background:#f7f7f6;color:#667085;font-weight:800}.closing-balance b{display:block;color:#ef1b1b}.closing-balance.pay b{color:#0f766e}.closing-balance small{font-size:11px;color:#ef1b1b}.wa-mini{border:0;background:#e8fff4;color:#098a43;border-radius:999px;font-weight:800;padding:2px 6px}.center-admin-panel{margin-bottom:14px}.center-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;padding:16px}.center-card{border:1px solid var(--line);border-radius:8px;background:#fbfffd;padding:14px;display:grid;gap:6px}.center-card b{font-size:16px}.center-card span{color:#0f766e;font-weight:800}.center-card small{color:#64748b}@media(max-width:900px){.customer-tools{grid-template-columns:1fr}.customer-row{grid-template-columns:1fr}.customer-row-head{display:none}}

.ledger-back{align-items:center;justify-content:center;background:rgba(15,23,42,.35);backdrop-filter:blur(3px)}.ledger-modal{width:min(1500px,86vw);height:min(820px,76vh);background:#fff;border-radius:10px;box-shadow:0 24px 70px rgba(15,23,42,.25);overflow:hidden;display:flex;flex-direction:column}.ledger-top{display:flex;justify-content:space-between;gap:20px;padding:22px 28px;border-bottom:1px solid var(--line)}.ledger-customer{display:flex;gap:14px;align-items:flex-start}.avatar.big{width:48px;height:48px;font-size:15px}.ledger-customer h2{margin:0 0 4px}.ledger-customer p,.ledger-customer small{margin:0;color:#64748b;display:block}.ledger-customer strong{display:block;color:#ef1b1b;font-size:18px;margin-top:4px}.icon-btn{border:0;background:#eef2f7;border-radius:999px;padding:4px 8px;margin-left:6px}.ledger-actions{display:flex;gap:10px;align-items:flex-start}.ledger-tabs{display:flex;gap:28px;padding:0 28px;border-bottom:1px solid var(--line)}.ledger-tabs button{background:transparent;padding:14px 0;border-bottom:3px solid transparent}.ledger-tabs .active{font-weight:800;border-color:#2455ff}.ledger-tools{display:grid;grid-template-columns:auto auto 1fr auto auto;gap:10px;align-items:center;padding:10px 28px;background:#fff}.ledger-table{overflow:auto;padding:0 28px 10px}.ledger-row{display:grid;grid-template-columns:1.3fr .8fr .8fr .8fr .9fr 90px;gap:14px;align-items:center;min-height:66px;border-bottom:1px solid var(--line);padding:10px}.ledger-head{min-height:38px;background:#f8fafc;color:#667085;font-weight:800}.ledger-row small{display:block;color:#64748b;margin-top:3px}.ledger-amount.in b{color:#0a9b55}.ledger-amount.out b,.ledger-balance b{color:#ef1b1b}.ledger-balance small{font-size:11px;color:#ef1b1b}.ledger-foot{margin-top:auto;background:#eef4ff;color:#0f3b7a;padding:14px 28px}.customer-action-menu{position:absolute;right:44px;top:140px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 18px 45px rgba(15,23,42,.22);width:190px;overflow:hidden}.customer-action-menu button{display:block;width:100%;text-align:left;background:#fff;padding:12px 16px;border-bottom:1px solid var(--line)}.customer-action-menu button:hover{background:#f8fafc}@media(max-width:900px){.ledger-modal{width:96vw;height:86vh}.ledger-top,.ledger-tools{grid-template-columns:1fr;display:grid}.ledger-row{grid-template-columns:1fr}.ledger-head{display:none}}

.global-chip{display:inline-block;background:#e8fff4;color:#0f766e;border:1px solid #b8e6d5;border-radius:999px;padding:4px 9px;font-weight:800}.product-drawer{width:min(1110px,58vw)}.product-drawer .drawer-body section{border:1px solid #edf0f3}.product-tabs{display:flex;gap:28px;align-items:center}.product-tabs span{font-weight:700;color:#475569;padding-bottom:10px}.product-tabs .right{margin-left:auto}.segmented{display:inline-flex;border:1px solid var(--line);border-radius:7px;overflow:hidden;margin-bottom:14px}.segmented button{padding:9px 18px;background:white}.segmented .active{background:#2455ff;color:white;font-weight:800}.product-drawer small{color:#2455ff}.product-drawer details p{margin:8px 0 0;color:#334155}@media(max-width:980px){.product-drawer{width:100vw}}


/* Product search dropdown in invoice editor */
.products-box{position:relative;}
.product-suggest{display:none;position:absolute;left:164px;right:274px;top:96px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 18px 45px rgba(15,23,42,.18);z-index:20;max-height:290px;overflow:hidden;margin:0;}
.product-suggest.open{display:block;}
.product-suggest-scroll{max-height:290px;overflow:auto;}
.product-suggest-scroll.empty-suggest{padding:14px;color:#64748b;}
.product-suggest button{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;padding:12px 14px;text-align:left;cursor:pointer;}
.product-suggest button:hover{background:#f8fafc;}
.product-suggest button span{font-weight:800;color:#0f172a;}
.product-suggest button small{grid-column:1/2;color:#64748b;font-size:12px;}
.product-suggest button b{grid-row:1/3;grid-column:2;color:#111827;}
@media(max-width:980px){.product-suggest{left:12px;right:12px;top:150px;}}


/* Hide demo premium banners */
.promo, .upgrade-banner, .premium-banner{display:none!important;}


/* Customer search manual dropdown fix */
.customer-list{z-index:30;}
.customer-list:not(.open){display:none!important;}


/* Swipe-like payment drawer */
.payment-drawer-back{z-index:70;background:rgba(15,23,42,.45);}
.payment-drawer{width:min(900px,48vw);height:100vh;background:#fff;display:flex;flex-direction:column;box-shadow:-24px 0 60px rgba(15,23,42,.22);}
.payment-drawer-head{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:0 18px;background:#fff;}
.payment-drawer-head button{border:0;background:transparent;font-size:28px;color:#64748b;cursor:pointer;}
.payment-drawer-head h2{margin:0;flex:1;font-size:22px;}.payment-drawer-head span{color:#dc2626;font-weight:800;}
.payment-drawer-body{padding:22px;overflow:auto;background:#fafafa;flex:1;}.payment-drawer-body h3{font-size:14px;margin:0 0 12px;color:#111827;}
.payment-drawer-body section{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;margin:0 0 20px;display:grid;gap:12px;}
.payment-drawer-body label{font-size:13px;color:#334155;}.payment-drawer-body input,.payment-drawer-body select,.payment-drawer-body textarea{width:100%;border:1px solid #d7dee8;border-radius:7px;padding:12px;background:#fff;}
.money-input{display:flex;align-items:center;border:1px solid #d7dee8;border-radius:7px;overflow:hidden;background:#fff;}.money-input span{padding:0 12px;color:#64748b}.money-input input{border:0;}
.pay-modes{display:flex;gap:10px;flex-wrap:wrap}.pay-mode{border:1px solid #dbe3ee;border-radius:999px;padding:9px 14px;background:#f8fafc;cursor:pointer}.pay-mode.active{background:#e6f0ff;border-color:#2563eb;color:#1d4ed8;font-weight:800;}
.pay-extra{display:flex;gap:8px;flex-wrap:wrap}.pay-extra button{border:1px solid #dbe3ee;background:#fff;border-radius:999px;padding:8px 12px;color:#2563eb;}.signature-box{text-align:right;min-height:70px;background:#fff7ff;border-radius:8px;padding:12px;color:#475569;}
.payment-drawer-foot{height:64px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#fff;}.payment-drawer-foot span{font-weight:800;}
.mode-chip.bank-mode{background:#ede9fe;color:#4338ca;}
@media(max-width:980px){.payment-drawer{width:100vw}.payment-drawer-body{padding:14px}}


/* Swipe-style invoice action menu */
.sales-row-actions{position:relative;justify-content:flex-end;gap:7px;}
.pay-mini{border:0;background:#fff6c7;border-radius:8px;padding:8px 10px;font-weight:900;cursor:pointer;}
.send-mini{background:#dcfce7;color:#166534;border:0;}
.more-btn{font-weight:900;min-width:38px;}
.invoice-action-menu{position:fixed;width:292px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 20px 55px rgba(15,23,42,.22);z-index:90;padding:8px 0;}
.invoice-action-menu button{width:100%;display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:8px;border:0;background:#fff;padding:11px 16px;text-align:left;font-size:14px;cursor:pointer;color:#111827;}
.invoice-action-menu button:hover{background:#f8fafc;}.invoice-action-menu button+button{border-top:1px solid #f1f5f9;}
.invoice-action-menu .lock{color:#64748b;font-size:12px}.invoice-action-menu .danger-action{color:#dc2626;font-weight:800;}
@media(max-width:760px){.invoice-action-menu{left:12px!important;right:12px!important;width:auto;}.sales-row-actions{justify-content:flex-start;}}

/* Invoice item descriptions and category quick buttons */
.category-quick-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px}.category-quick-buttons button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;font-weight:700;color:#344054}.category-quick-buttons button.active{background:#0f766e;color:#fff;border-color:#0f766e}.bill-row-with-desc{align-items:start}.item-name-desc{display:grid;gap:7px}.item-name-desc textarea{width:100%;min-height:54px;border:1px solid var(--line);border-radius:6px;padding:9px;resize:vertical;font-family:inherit;font-size:13px}.bill-head .item-name-desc{display:block}

/* Expense form with cash counter tracking */
.expense-form .form-grid{align-items:start}.expense-alert{background:#ecfdf5;border:1px solid #b8e6d5;color:#064e3b;border-radius:8px;padding:11px 12px;margin-bottom:14px}.field small{color:#64748b;font-size:12px;line-height:1.35}.expense-form textarea{min-height:84px}

.approval-cell{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:112px}
.approval-cell small{font-size:11px;color:#64748b;font-weight:600}
.approval-badge,.approval-toggle{border:1px solid #dbe5ef;border-radius:999px;padding:7px 10px;font-weight:800;font-size:12px;background:#f8fafc;color:#475569;white-space:nowrap}
.approval-badge.approved,.approval-toggle.approved{background:#dcfce7;border-color:#86efac;color:#166534}
.approval-badge.pending,.approval-toggle.pending{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.approval-toggle{cursor:pointer}
.approval-toggle:hover{filter:brightness(.98);box-shadow:0 2px 8px rgba(15,23,42,.08)}

.sales-invoice-table .sales-row{grid-template-columns:1fr .9fr .95fr 1.2fr 1fr 1.05fr 1.05fr 1.2fr}

.work-status-cell{display:flex;align-items:center;min-width:118px}
.work-status-select{width:112px;border:1px solid #dbe5ef;border-radius:999px;padding:7px 10px;font-weight:900;font-size:12px;outline:none;cursor:pointer;text-align:center;appearance:auto}
.work-status-select.work-hold{background:#fee2e2;border-color:#fca5a5;color:#b91c1c}
.work-status-select.work-done{background:#dcfce7;border-color:#86efac;color:#166534}
.work-status-select.work-ready{background:#dbeafe;border-color:#93c5fd;color:#1d4ed8}
.work-status-select.work-proses{background:#fce7f3;border-color:#f9a8d4;color:#be185d}
.work-status-select:focus{box-shadow:0 0 0 3px rgba(37,99,235,.12)}

.bill-edited-note{font-size:11px;color:#b45309;font-weight:900}
.cancel-reason-note{font-size:11px;color:#b91c1c;font-weight:900;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.audit-line{margin-top:6px;color:#b45309;font-weight:700}
.audit-line.cancel{color:#b91c1c}

/* Login security helpers */

.center-only-login{place-items:center}
.admin-card{padding:0;border-top:4px solid var(--brand);width:min(430px,100%)}
.admin-login-modal .modal-body{padding:18px}
.password-wrap{display:flex;align-items:stretch;width:100%}
.password-wrap input{border-top-right-radius:0!important;border-bottom-right-radius:0!important}
.pass-toggle{border:1px solid var(--line);border-left:0;background:#f8fafc;color:#344054;border-radius:0 7px 7px 0;padding:0 12px;font-weight:700;min-width:64px;cursor:pointer}
.login-decoy{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;opacity:0}
.password-help{font-size:12px;color:var(--muted);margin:6px 0 0}

.invoice-action-menu .delete-cancelled-action{grid-template-columns:28px 1fr!important;}
.invoice-action-menu .delete-cancelled-action span{white-space:nowrap;}

/* In-app A4 invoice preview */
.invoice-preview-back{z-index:120;background:rgba(15,23,42,.38);backdrop-filter:blur(2px);align-items:center;justify-content:center;padding:18px}
.invoice-preview-modal{width:min(1080px,94vw);height:min(900px,90vh);background:#fff;border-radius:8px;box-shadow:0 24px 80px rgba(15,23,42,.28);display:flex;flex-direction:column;overflow:hidden}
.invoice-preview-head{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid var(--line)}
.invoice-preview-head h2{margin:0;font-size:19px}.preview-close{background:transparent;font-size:30px;color:#667085;line-height:1}
.invoice-preview-offer{margin:12px 22px 8px;border:1px solid var(--line);border-radius:7px;padding:10px 14px;color:#344054;font-weight:700;background:#fff}
.invoice-preview-options{display:grid;grid-template-columns:auto auto auto auto 1fr auto auto auto auto auto;gap:10px;align-items:center;padding:8px 22px 10px}
.invoice-preview-options label{display:flex;align-items:center;gap:7px;color:#344054;font-weight:700}.invoice-preview-options button{border:1px solid #dbe3ef;background:#fff;border-radius:8px;padding:8px 11px;font-weight:800;white-space:nowrap}
.invoice-preview-options .preview-pill{background:#fff7ed;border-color:#fed7aa;color:#9a3412}.invoice-preview-options .preview-pill.approved{background:#dcfce7;border-color:#86efac;color:#166534}.invoice-preview-options .email-btn{background:#eef2ff;color:#4338ca}.invoice-preview-options .wa-btn{background:#dcfce7;color:#166534}
.invoice-preview-viewer{margin:0 22px 22px;background:#252525;border-radius:8px;display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}
.invoice-preview-toolbar{height:48px;background:#3a3a3a;color:#fff;display:flex;align-items:center;gap:14px;padding:0 18px}.invoice-preview-toolbar button{background:#4a4a4a;color:#fff;border:1px solid #575757;border-radius:6px;padding:6px 10px;font-weight:800}.toolbar-spacer{flex:1}
#invoicePreviewFrame{border:0;background:#fff;width:100%;height:100%;align-self:center;max-width:860px;box-shadow:0 0 0 1px rgba(255,255,255,.08)}.invoice-preview-pdf{display:block}
.print-frame{position:fixed;right:0;bottom:0;width:0;height:0;border:0;opacity:0;pointer-events:none}
@media(max-width:900px){.invoice-preview-modal{width:98vw;height:94vh}.invoice-preview-options{grid-template-columns:1fr 1fr}.invoice-preview-options span{display:none}.invoice-preview-toolbar{overflow:auto}.invoice-preview-offer{display:none}}

.wa-float{display:none!important;}

/* Free-hand number entry: hide spinner buttons */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{appearance:none;-webkit-appearance:none;margin:0}
input[type=number]{appearance:textfield;-moz-appearance:textfield}

/* Swipe-style item description */
.add-desc-btn{display:inline-flex;align-items:center;justify-content:center;margin-top:6px;border:1px solid #9ca3af;background:#fff;border-radius:7px;padding:4px 10px;font-size:12px;font-weight:800;color:#344054;white-space:nowrap}
.desc-editor{grid-column:1/-1;margin-top:10px;background:#fff;border:1px solid #edf0f3;border-radius:8px;overflow:hidden}
.desc-toolbar{display:flex;gap:14px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.desc-toolbar button{background:transparent;border:0;color:#344054;font-weight:700;padding:0;min-height:auto}
.desc-editor textarea{width:100%;min-height:64px;border:0!important;border-radius:0!important;padding:13px 14px;resize:none;outline:0;color:#334155;font-family:inherit;background:#f4f5f7;overflow:hidden;line-height:1.55;box-sizing:border-box;transition:height .12s ease,background .15s ease}.desc-editor textarea:focus{background:#eef0f3}.desc-editor{border-color:#d8e4f2;box-shadow:0 1px 3px rgba(15,23,42,.05)}.desc-toolbar{background:#f1f6fb}
.item-name-desc{display:grid;gap:4px;align-content:start}

/* Compact show/hide description toggle */
.add-desc-btn{gap:4px;min-height:22px;padding:3px 8px!important;border-radius:999px!important;font-size:11px!important;line-height:1!important;color:#475569!important;border-color:#cbd5e1!important;background:#fff!important}
.add-desc-btn.is-open{border-color:#64748b!important;color:#334155!important;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.add-desc-btn .eye-icon{font-size:10px;line-height:1;color:#64748b}

/* Clickable center filters */
.center-click-card{cursor:pointer;transition:.15s;border-color:#dbe5ef!important;position:relative}
.center-click-card:hover{border-color:#0f766e!important;background:#f8fffd;box-shadow:0 8px 22px rgba(15,118,110,.08);transform:translateY(-1px)}
.center-click-card.active{border-color:#0f766e!important;background:#ecfdf5;box-shadow:inset 0 0 0 1px #0f766e}
.center-card-main{display:grid;gap:6px}
.center-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.center-card-actions button{border:1px solid #dbe5ef;background:#fff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;color:#334155;cursor:pointer}
.center-card-actions button:hover{background:#0f766e;color:#fff;border-color:#0f766e}

/* Better description toggle icon */
.add-desc-btn{width:auto!important;max-width:92px!important;justify-self:start!important}
.add-desc-btn .eye-icon{font-size:12px!important;width:14px;display:inline-flex;align-items:center;justify-content:center;color:#334155!important}

/* Invoice item delete icon */
.bill-delete-btn{width:36px;height:36px;border:0;border-radius:9px;background:#fee2e2;color:#b91c1c;display:inline-grid;place-items:center;font-size:17px;font-weight:900;cursor:pointer;transition:.15s;align-self:start}
.bill-delete-btn:hover{background:#dc2626;color:#fff;box-shadow:0 8px 18px rgba(220,38,38,.22);transform:translateY(-1px)}
.bill-delete-btn span{line-height:1;transform:rotate(0deg)}

.payment-ref-label{display:block;margin:2px 0 7px;font-weight:800;color:#344054}

.center-growth-btn{height:44px;border:2px solid #ef4444;background:#fff;color:#dc2626;font-weight:900;letter-spacing:.03em;padding:0 28px;border-radius:0;text-transform:uppercase}.center-growth-btn:hover{background:#fff1f2}.growth-modal{width:min(1180px,96vw)}.growth-modal .modal-body{background:#f8fafc}.growth-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#0f766e;color:#fff;border-radius:8px;padding:18px;margin-bottom:16px}.growth-hero h3{font-size:28px;margin:4px 0}.growth-hero p{margin:0;color:#d9fff7}.growth-score{width:132px;height:132px;border-radius:50%;background:#fff;color:#0f766e;display:grid;place-items:center;align-content:center}.growth-score b{font-size:34px}.growth-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.growth-metric,.growth-section{background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px}.growth-metric span{color:#667085}.growth-metric strong{display:block;font-size:24px;margin:7px 0}.growth-chip{border-radius:999px;padding:3px 8px;font-weight:900;font-size:12px}.growth-chip.up{background:#dcfce7;color:#166534}.growth-chip.down{background:#fee2e2;color:#991b1b}.mini-bar{height:10px;background:#eef2f7;border-radius:999px;overflow:hidden;margin-top:8px}.mini-bar i{display:block;height:100%;background:#0f766e;border-radius:999px}.mini-bar i.warn{background:#f59e0b}.mini-bar i.cash{background:#16a34a}.mini-bar i.bank{background:#2563eb}.growth-split{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-bottom:14px}.split-row{display:flex;justify-content:space-between;margin-top:12px}.split-note{color:#667085;margin-top:12px}.recovery-count{display:flex;align-items:baseline;gap:10px}.recovery-count b{font-size:46px}.recovery-count.danger b{color:#dc2626}.section-title{display:flex;justify-content:space-between;align-items:center}.recovery-row,.alert-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;border-top:1px solid var(--line);padding:11px 0}.recovery-row small,.alert-row small{display:block;color:#667085;margin-top:3px}.recovery-row.urgent{background:#fff1f2;margin:0 -8px;padding:11px 8px;border-radius:8px}.recovery-row.urgent b{color:#991b1b}.follow-mini,.pay-mini{background:#fff7ed;color:#9a3412;border-radius:8px;padding:9px;font-weight:900}.alert-row{grid-template-columns:1fr auto}.alert-row span{font-weight:900;color:#dc2626}@media(max-width:980px){.growth-grid,.growth-split{grid-template-columns:1fr}.growth-hero{display:block}.growth-score{margin-top:12px}.center-growth-btn{padding:0 12px;height:38px}}

/* Expense ticket workflow */
.expense-ticket-panel{border-left:4px solid #2563eb}
.expense-ticket-panel .panel-body{display:grid;gap:10px}
.ticket-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid #e5edf7;background:#f8fbff;border-radius:8px;padding:11px 12px}
.ticket-row small{display:block;color:#667085;margin-top:4px;font-weight:700}
.ticket-row p{margin:7px 0 0;color:#334155}
.badge-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:900}
@media(max-width:760px){.ticket-row{grid-template-columns:1fr}.ticket-row>div:last-child{display:flex;gap:8px;align-items:center}}


/* Admin Growth Dashboard */
.growth-dashboard-btn{height:44px;border:2px solid #ef4444;background:#fff;color:#dc2626;font-weight:700;padding:0 28px;border-radius:0}.growth-dashboard-btn:hover{background:#fff1f2}
.growth-dashboard-modal{width:min(1280px,96vw)}.growth-dashboard-modal .modal-body{background:#f6f8fb}.gd-head h2{font-size:22px}.gd-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;background:linear-gradient(135deg,#0f766e,#155e75);color:#fff;border-radius:8px;padding:20px;margin-bottom:16px}.gd-hero h3{font-size:28px;margin:5px 0}.gd-hero p{margin:0;color:#d9fff7}.gd-hero strong{width:120px;height:120px;border-radius:50%;background:#fff;color:#0f766e;display:grid;place-items:center;align-content:center;font-size:30px}.gd-hero small{font-size:12px;color:#0f766e}.gd-card-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;margin-bottom:16px}.gd-card{border:1px solid var(--line);background:#fff;border-radius:8px;padding:13px;text-align:left;display:grid;gap:6px;min-height:126px;box-shadow:0 8px 22px rgba(16,24,40,.04)}.gd-card:hover{border-color:#0f766e;box-shadow:0 12px 26px rgba(15,118,110,.12);transform:translateY(-1px)}.gd-icon{width:34px;height:34px;border-radius:8px;background:#eef6ff;display:grid;place-items:center;font-size:18px}.gd-card small{color:#667085;font-weight:800}.gd-card strong{font-size:22px}.gd-card em{font-style:normal;font-size:12px;font-weight:900}.gd-card em.up{color:#15803d}.gd-card em.down{color:#dc2626}.gd-card em.warn{color:#b45309}.gd-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:14px;margin-bottom:14px}.gd-chart{display:grid;gap:13px}.gd-chart>div{display:grid;grid-template-columns:130px 1fr auto;gap:12px;align-items:center}.gd-chart span,.gd-branch small{color:#667085}.gd-branch{display:grid;grid-template-columns:1fr 220px auto;gap:12px;align-items:center;border-top:1px solid var(--line);padding:11px 0}.gd-bar{height:10px;background:#eef2f7;border-radius:999px;overflow:hidden}.gd-bar i{display:block;height:100%;background:#0f766e;border-radius:999px}.gd-insight{border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:8px;padding:11px;margin-top:10px;font-weight:700}.gd-status{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.gd-status span{background:#fff;border:1px solid var(--line);border-radius:8px;padding:13px;color:#667085;font-weight:800}.gd-status b{display:block;color:#111827;font-size:25px;margin-top:5px}@media(max-width:1180px){.gd-card-grid{grid-template-columns:repeat(3,1fr)}.gd-layout{grid-template-columns:1fr}.gd-branch{grid-template-columns:1fr}}@media(max-width:720px){.gd-card-grid{grid-template-columns:1fr 1fr}.gd-hero{display:block}.gd-hero strong{margin-top:12px}.gd-chart>div{grid-template-columns:1fr}.growth-dashboard-btn,.center-growth-btn{height:38px;padding:0 10px;font-size:12px}}@media(max-width:520px){.gd-card-grid{grid-template-columns:1fr}.top-actions{flex-wrap:wrap;justify-content:flex-end}.growth-dashboard-btn{max-width:150px}}


/* Admin invoice branding settings */
.settings-stack{display:grid;gap:16px}.invoice-branding-panel .field small{font-size:11px}.service-checks{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:10px}.service-checks label{border:1px solid var(--line);border-radius:7px;padding:9px 10px;background:#fff;font-weight:700;color:#344054}.branch-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.branch-setting-card{border:1px solid var(--line);border-radius:8px;padding:12px;background:#f8fafc}.branch-setting-card h3{margin:0 0 8px}.invoice-branding-panel textarea{min-height:86px}@media(max-width:900px){.service-checks,.branch-settings{grid-template-columns:1fr}}

.party-picker{position:relative;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.party-picker input[type=text],.party-picker input:not([type]){width:100%}.party-suggest{position:absolute;left:0;right:112px;top:44px;background:#fff;border:1px solid #d8e1ec;border-radius:8px;box-shadow:0 14px 32px rgba(15,23,42,.16);z-index:20;display:none;max-height:240px;overflow:auto}.party-suggest.open{display:block}.party-suggest-item{display:block;width:100%;padding:10px 12px;border:0;background:#fff;text-align:left;cursor:pointer;border-bottom:1px solid #eef2f7}.party-suggest-item:hover{background:#eafaf4}.party-suggest-item b{display:block;color:#0f172a}.party-suggest-item small{display:block;color:#64748b;margin-top:2px}.party-suggest-empty{padding:12px;color:#9a3412;background:#fff7ed}.party-help{display:block;margin:6px 0 12px;color:#64748b}

.payment-amount-input{height:48px;border:2px solid #cbd8ea;background:#fff}.payment-amount-input span{font-size:18px;font-weight:900;color:#0f172a}.payment-amount-input input{font-size:22px!important;font-weight:900!important;color:#07162f}.payment-amount-input:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.auto-mobile{background:#f8fafc!important;color:#0f172a;font-weight:800}

.center-card-actions .edit{border-color:#f59e0b;color:#92400e;background:#fffbeb}.center-card small{display:block;margin-top:6px;color:#64748b}.center-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}

.center-admin-panel .center-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:16px;align-items:start}.center-admin-panel .center-card{min-height:128px;align-content:start}.center-admin-panel .center-card-main{cursor:pointer}.center-admin-panel .center-card-main h3{margin:0 0 8px}.center-admin-panel .center-card-actions button{position:relative;z-index:2}@media(max-width:1100px){.center-admin-panel .center-card-grid{grid-template-columns:1fr}}


/* Payment receipt preview uses its own light A4 stage, so no dark black patch appears. */
.payment-receipt-modal{height:min(860px,90vh)}
.payment-preview-actions{display:flex;gap:10px;align-items:center;padding:8px 22px 12px}
.payment-preview-actions button{border:1px solid #dbe3ef;background:#fff;border-radius:8px;padding:9px 13px;font-weight:800;white-space:nowrap}
.payment-receipt-stage{margin:0 22px 22px;background:#f3f4f6;border:1px solid #dbe3ef;border-radius:8px;flex:1;min-height:0;overflow:auto;padding:18px;display:flex;justify-content:center;align-items:flex-start}
.payment-receipt-frame{width:794px;min-height:1123px;height:1123px;border:0;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.16);flex:0 0 auto}
.sales-customer-link{background:transparent;border:0;text-align:left;padding:0;cursor:pointer;color:inherit;font:inherit}
.sales-customer-link:hover b{color:#1d4ed8;text-decoration:underline}
.party-ledger-modal{width:min(980px,94vw);max-height:90vh;overflow:hidden}
.party-ledger-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.party-ledger-card{border:1px solid #dbe3ef;border-radius:8px;background:#f8fafc;padding:12px;display:grid;gap:5px}
.party-ledger-card span{color:#64748b;font-weight:700}.party-ledger-card b{font-size:20px}.party-ledger-card.warn{background:#fff7ed;border-color:#fed7aa}
.party-ledger-info{display:flex;justify-content:space-between;align-items:center;border:1px solid #dbe3ef;border-radius:8px;padding:12px;margin-bottom:12px;background:#fff}
.party-ledger-info div{display:grid;gap:4px}.party-ledger-info small{color:#64748b}.party-ledger-table small{display:block;color:#64748b;margin-top:3px}
@media(max-width:900px){.payment-receipt-stage{padding:10px;margin:0 12px 12px}.payment-receipt-frame{width:100%;min-height:780px;height:780px}.party-ledger-grid{grid-template-columns:1fr 1fr}.party-ledger-info{align-items:flex-start;gap:10px;flex-direction:column}}

.locked-party-picker{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.locked-field{background:#f8fafc!important;color:#0f172a!important;border-color:#cbd5e1!important;cursor:not-allowed}
.locked-badge{border:1px solid #bbf7d0;background:#dcfce7;color:#166534;border-radius:999px;padding:7px 10px;font-weight:800;white-space:nowrap}

.ledger-preview-modal,.payment-receipt-modal{height:min(900px,92vh)}
.ledger-preview-frame,.payment-receipt-viewer .payment-receipt-frame{border:0;background:#fff;width:100%;height:100%;min-height:0;max-width:860px;align-self:center;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.payment-receipt-viewer,.ledger-preview-viewer{background:#252525}
@media(max-width:900px){.ledger-preview-frame,.payment-receipt-viewer .payment-receipt-frame{max-width:100%;height:100%}}

/* Payment follow-up identification and reminder UI */
.followup-tab{border-left:1px solid #fed7aa!important;color:#9a3412!important}
.followup-tab.active{color:#c2410c!important;border-bottom-color:#f97316!important;background:#fff7ed}
.sales-row.followup-row{position:relative;border-left:4px solid transparent}
.sales-row.followup-row.upcoming{background:#eff6ff;border-left-color:#3b82f6}
.sales-row.followup-row.today{background:#fffbeb;border-left-color:#f59e0b}
.sales-row.followup-row.overdue{background:#fff1f2;border-left-color:#ef4444;box-shadow:inset 0 0 0 1px #fecdd3}
.followup-badge{display:block;width:max-content;margin-top:5px;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:900;line-height:1.3}
.followup-badge.upcoming{background:#dbeafe;color:#1d4ed8}
.followup-badge.today{background:#fef3c7;color:#92400e}
.followup-badge.overdue{background:#fee2e2;color:#b91c1c;animation:followPulse 1.6s infinite}
.follow-mini.is-set{box-shadow:0 0 0 2px #f59e0b;background:#ffedd5}
.followup-alert-modal{width:min(820px,94vw)}
.followup-alert-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px;border:1px solid #fecaca;background:#fff7f7;border-radius:12px;margin-bottom:10px}
.followup-alert-row>div:first-child{display:grid;gap:4px}
.followup-alert-row strong{color:#dc2626;font-size:18px}
.followup-alert-row small,.followup-alert-row em{display:block;color:#64748b;font-style:normal}
.followup-alert-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@keyframes followPulse{50%{box-shadow:0 0 0 5px rgba(239,68,68,.12)}}
@media(max-width:760px){.followup-alert-row{align-items:flex-start;flex-direction:column}.followup-alert-actions{justify-content:flex-start}}

/* Animated reminder note shown when the clock is hovered or keyboard-focused */
.follow-hover{position:relative;display:inline-flex;vertical-align:middle;z-index:4}
.sales-table.sales-invoice-table{overflow:visible}
.follow-hover-card{position:absolute;left:50%;bottom:calc(100% + 14px);z-index:120;width:330px;padding:0;border:1px solid #fed7aa;border-radius:16px;background:rgba(255,255,255,.98);box-shadow:0 18px 50px rgba(15,23,42,.22);color:#172033;text-align:left;pointer-events:none;opacity:0;visibility:hidden;transform:translate(-50%,10px) scale(.94);transform-origin:50% 100%;transition:opacity .2s ease,transform .28s cubic-bezier(.2,.9,.3,1.2),visibility .2s;overflow:hidden}
.follow-hover-card:after{content:"";position:absolute;left:50%;bottom:-7px;width:14px;height:14px;background:#fff;border-right:1px solid #fed7aa;border-bottom:1px solid #fed7aa;transform:translateX(-50%) rotate(45deg)}
.follow-hover:hover .follow-hover-card,.follow-hover:focus-within .follow-hover-card{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1)}
.follow-hover-top{display:flex;align-items:center;gap:10px;padding:13px 15px;background:linear-gradient(135deg,#fff7ed,#ffedd5);border-bottom:1px solid #fed7aa}
.follow-hover-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#fff;color:#ea580c;font-size:20px;box-shadow:0 4px 15px rgba(234,88,12,.14)}
.follow-hover-top>span:last-child{display:grid;gap:2px}.follow-hover-top b{font-size:14px;color:#9a3412}.follow-hover-top small{font-size:11px;font-weight:800;color:#ea580c}
.follow-hover-party{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px 8px;font-weight:900}.follow-hover-party b{font-size:15px;color:#dc2626;white-space:nowrap}
.follow-hover-time{display:grid;gap:3px;margin:0 15px;padding:10px 11px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0}.follow-hover-time small,.follow-hover-note small{font-size:10px;font-weight:800;color:#64748b}.follow-hover-time b{font-size:12px;color:#0f172a}
.follow-hover-note{display:grid;gap:5px;margin:10px 15px;padding:10px 11px;border-left:3px solid #f59e0b;border-radius:4px 10px 10px 4px;background:#fffbeb}.follow-hover-note span{font-size:12px;line-height:1.45;color:#334155;overflow-wrap:anywhere}
.follow-hover-card>em{display:block;padding:0 15px 13px;color:#94a3b8;font-size:10px;font-style:normal;text-align:center}
.follow-hover-card.overdue{border-color:#fca5a5}.follow-hover-card.overdue .follow-hover-top{background:linear-gradient(135deg,#fff1f2,#fee2e2);border-color:#fecaca}.follow-hover-card.overdue .follow-hover-top b{color:#b91c1c}
@media(max-width:760px){.follow-hover-card{position:fixed;left:12px;right:12px;bottom:72px;width:auto;transform:translateY(12px) scale(.96)}.follow-hover:hover .follow-hover-card,.follow-hover:focus-within .follow-hover-card{transform:translateY(0) scale(1)}.follow-hover-card:after{display:none}}

/* Product/service estimated completion time */
.work-time-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:900;white-space:nowrap}
.work-time-empty{display:inline-block;padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#94a3b8;font-size:11px;font-weight:800;white-space:nowrap}
.estimated-days-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid #d7dee8;border-radius:7px;background:#fff;overflow:hidden}
.estimated-days-input:focus-within{border-color:#0f766e;box-shadow:0 0 0 2px rgba(15,118,110,.12)}
.estimated-days-input input{border:0!important;box-shadow:none!important;min-width:0}
.estimated-days-input b{height:100%;display:grid;place-items:center;padding:0 15px;border-left:1px solid #d7dee8;background:#f8fafc;color:#0f766e;font-size:12px}
.estimated-days-input.work-duration-control{grid-template-columns:40px minmax(70px,1fr) 40px auto}
.work-duration-control .duration-step{height:100%;min-height:38px;border:0;background:#f8fafc;color:#334155;font-size:20px;font-weight:900;cursor:pointer;transition:background .15s ease,color .15s ease,transform .1s ease}
.work-duration-control .duration-step.minus{border-right:1px solid #d7dee8}.work-duration-control .duration-step.plus{border-left:1px solid #d7dee8}
.work-duration-control .duration-step:hover{background:#e0f2fe;color:#0369a1}.work-duration-control .duration-step:active{transform:scale(.9)}
.work-duration-control input{text-align:center;font-weight:900}
.work-duration-control input::-webkit-inner-spin-button,.work-duration-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.pv-work-due{margin:5px 0!important;padding:5px 8px;border:1px solid #f6c86e;border-radius:5px;background:#fff8e6;color:#9a3412;font-weight:800}
.center-policy-mini{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.center-policy-mini span{font-size:11px;padding:4px 7px;border-radius:999px;background:#eef6ff;color:#245b9b;border:1px solid #cfe2ff}.center-profile-modal{width:min(900px,94vw);max-height:92vh}.center-profile-modal .modal-body{overflow:auto}.center-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.center-profile-grid .full{grid-column:1/-1}.center-profile-grid h3{margin:8px 0 0;padding:10px 0 6px;border-bottom:1px solid #dfe7ef;color:#12304a}.qr-upload-field{padding:12px;border:1px dashed #9db7d0;border-radius:10px;background:#f8fbff}.qr-upload-field input[type=file]{margin-bottom:10px}.qr-upload-field img{width:120px;height:120px;object-fit:contain;background:#fff;border:1px solid #dbe4ec;border-radius:8px;padding:5px}.qr-upload-field span{color:#6b7785}@media(max-width:700px){.center-profile-grid{grid-template-columns:1fr}.center-profile-grid .full{grid-column:1}}
.current-stock-chip{display:inline-flex;align-items:baseline;gap:6px;padding:6px 10px;border:1px solid #93c5fd;border-radius:10px;background:#eff6ff;color:#1d4ed8;white-space:nowrap}.current-stock-chip b{font-size:16px}.current-stock-chip small{font-size:11px;font-weight:700;color:#475569}
.stock-sold-chip{display:inline-block;padding:5px 9px;border-radius:9px;background:#fff1f2;color:#be123c;font-weight:800;white-space:nowrap}
.header-utility{display:flex;gap:8px;align-items:center;margin-right:8px}.utility-icon{position:relative;width:46px;height:42px;border:1px solid #dbe4ee;border-radius:10px;background:#fff;color:#0f766e;font-size:19px;font-weight:800;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(15,23,42,.06)}.utility-icon:hover{background:#ecfdf5;border-color:#5eead4;transform:translateY(-1px)}.utility-icon span{position:absolute;bottom:2px;font-size:8px;letter-spacing:.5px;color:#475569}.calculator-icon{color:#2563eb}
.chat-unread-badge{position:absolute;top:-9px;right:-9px;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:#ef2626;color:#fff;border:2px solid #fff;display:flex;align-items:center;justify-content:center;font-size:11px;line-height:1;font-weight:900;box-shadow:0 3px 10px rgba(220,38,38,.48);z-index:4}.chat-unread-badge[hidden]{display:none!important}.chat-unread-badge:not([hidden]){animation:chatBadgePop .28s ease-out,chatBadgePulse 2s ease-in-out .4s infinite}@keyframes chatBadgePop{0%{opacity:0;transform:scale(.35)}70%{transform:scale(1.18)}100%{opacity:1;transform:scale(1)}}@keyframes chatBadgePulse{0%,100%{box-shadow:0 3px 10px rgba(220,38,38,.42)}50%{box-shadow:0 3px 10px rgba(220,38,38,.42),0 0 0 5px rgba(239,38,38,.13)}}
.center-chat-panel{position:fixed;right:18px;top:84px;width:390px;height:min(690px,calc(100vh - 105px));z-index:3500;background:#f8fafc;border:1px solid #cbd5e1;border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.28);display:flex;flex-direction:column;overflow:hidden;animation:chatSlide .22s ease-out}@keyframes chatSlide{from{opacity:0;transform:translateX(25px) scale(.98)}to{opacity:1;transform:none}}.chat-panel-head{padding:15px 16px;background:linear-gradient(135deg,#0f766e,#0d9488);color:#fff;display:flex;justify-content:space-between;align-items:center}.chat-panel-head>div{display:flex;flex-direction:column;gap:2px}.chat-panel-head b{font-size:17px}.chat-panel-head small{opacity:.85}.chat-panel-head button,.calculator-head button{border:0;background:rgba(255,255,255,.18);color:#fff;width:34px;height:34px;border-radius:10px;font-size:22px;cursor:pointer}.chat-rule{padding:9px 14px;background:#ecfeff;border-bottom:1px solid #ccfbf1;color:#0f766e;font-size:11px}.chat-messages{flex:1;overflow:auto;padding:14px;background:linear-gradient(rgba(255,255,255,.85),rgba(255,255,255,.85)),radial-gradient(#cbd5e1 1px,transparent 1px);background-size:auto,18px 18px}.chat-loading,.chat-empty{text-align:center;color:#64748b;padding:35px 12px}.chat-bubble-wrap{display:flex;flex-direction:column;margin:7px 0;max-width:83%}.chat-bubble-wrap.mine{margin-left:auto;align-items:flex-end}.chat-bubble-wrap.theirs{margin-right:auto;align-items:flex-start}.chat-sender{font-size:10px;color:#64748b;margin:0 6px 3px}.chat-sender span{margin-left:5px;background:#e2e8f0;padding:1px 5px;border-radius:6px}.chat-bubble{padding:9px 10px 6px;background:#fff;border-radius:5px 15px 15px 15px;box-shadow:0 2px 7px rgba(15,23,42,.1);min-width:80px}.mine .chat-bubble{background:#d1fae5;border-radius:15px 5px 15px 15px}.chat-bubble p{margin:0;line-height:1.45;word-break:break-word}.chat-bubble img{display:block;max-width:230px;max-height:230px;border-radius:10px;margin-bottom:6px;cursor:zoom-in}.chat-bubble time{display:block;text-align:right;font-size:9px;color:#64748b;margin-top:4px}.chat-compose{padding:10px;display:grid;grid-template-columns:38px 1fr 58px;gap:7px;align-items:end;background:#fff;border-top:1px solid #e2e8f0}.chat-compose textarea{resize:none;max-height:90px;min-height:40px;padding:10px;border:1px solid #cbd5e1;border-radius:12px;font:inherit}.chat-compose>button{height:40px;border:0;border-radius:11px;background:#0f766e;color:#fff;font-weight:700;cursor:pointer}.chat-attach{height:40px;display:grid;place-items:center;border:1px solid #cbd5e1;border-radius:11px;cursor:pointer}.chat-attach input{display:none}.chat-image-preview{position:relative;padding:0 12px;background:#fff}.chat-image-preview img{width:70px;height:58px;object-fit:cover;border-radius:8px}.chat-image-preview button{position:absolute;left:68px;top:-5px;border:0;border-radius:50%;background:#dc2626;color:#fff;width:20px;height:20px}.chat-retention{padding:3px 10px 8px;text-align:center;background:#fff;color:#94a3b8}
.floating-calculator{position:fixed;right:28px;bottom:25px;width:310px;z-index:3600;background:#111827;border:1px solid #334155;border-radius:18px;box-shadow:0 25px 70px rgba(15,23,42,.4);overflow:hidden;user-select:none;animation:calcPop .18s ease-out}@keyframes calcPop{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}.calculator-head{background:#1e293b;color:#fff;padding:11px 13px;display:flex;justify-content:space-between;align-items:center;cursor:move;touch-action:none}.calculator-head>div{display:flex;flex-direction:column}.calculator-head small{font-size:9px;color:#94a3b8}.calculator-display{margin:14px;background:#020617;color:#f8fafc;border-radius:12px;min-height:65px;padding:15px 12px;text-align:right;font-size:25px;overflow:auto;white-space:nowrap}.calculator-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:0 14px 15px}.calculator-keys button{height:45px;border:0;border-radius:11px;background:#334155;color:#fff;font-size:17px;cursor:pointer}.calculator-keys button:hover{background:#475569}.calculator-keys button:nth-child(4n){background:#0f766e}.calculator-keys .equals{background:#2563eb;grid-column:auto}
@media(max-width:900px){.header-utility{order:-1}.utility-icon{width:39px;height:38px}.center-chat-panel{right:8px;top:68px;width:calc(100vw - 16px);height:calc(100vh - 78px)}.floating-calculator{right:10px;bottom:10px;width:min(310px,calc(100vw - 20px))}}
/* Customer ledger balance meaning: advance is positive/green, pending is negative/red. */
.closing-balance b{display:block}
.closing-balance.pending b,.closing-balance.pending small{color:#ef1b1b}
.closing-balance.advance b,.closing-balance.advance small{color:#059669}
.closing-balance.settled b,.closing-balance.settled small{color:#64748b}
.closing-balance small{font-size:11px}
.ledger-customer strong{display:block;font-size:18px;margin-top:4px}
.ledger-summary-balance.pending strong,.ledger-summary-balance.pending>small{color:#ef1b1b}
.ledger-summary-balance.advance strong,.ledger-summary-balance.advance>small{color:#059669}
.ledger-summary-balance.settled strong,.ledger-summary-balance.settled>small{color:#64748b}
.ledger-amount.in b{color:#0a9b55}
.ledger-amount.out b{color:#ef1b1b}
.ledger-balance.pending b,.ledger-balance.pending small{color:#ef1b1b}
.ledger-balance.advance b,.ledger-balance.advance small{color:#059669}
.ledger-balance.settled b,.ledger-balance.settled small{color:#64748b}
.ledger-balance small{font-size:11px}

/* Growth Dashboard easy/transparent update - 2026-08-07 */
.gd2-modal{width:min(1320px,96vw);}
.gd2-body{background:linear-gradient(180deg,rgba(248,250,252,.82),rgba(255,255,255,.96));}
.gd2-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;border:1px solid rgba(13,148,136,.22);border-radius:22px;padding:24px;background:linear-gradient(135deg,rgba(15,118,110,.94),rgba(14,116,144,.86));color:#fff;box-shadow:0 18px 45px rgba(15,118,110,.18);}
.gd2-hero span{font-weight:800;opacity:.92;}
.gd2-hero h1{font-size:30px;line-height:1.15;margin:10px 0 6px;}
.gd2-hero p{margin:0;opacity:.94;font-weight:700;}
.gd2-score{width:124px;height:124px;border-radius:999px;background:rgba(255,255,255,.96);color:#0f766e;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 0 8px rgba(240,253,250,.85);flex:0 0 auto;}
.gd2-score b{font-size:32px;line-height:1;}
.gd2-score small{font-weight:900;margin-top:8px;}
.gd2-toolbar{display:flex;align-items:center;gap:10px;margin:16px 0;flex-wrap:wrap;}
.gd2-toolbar span{color:#64748b;font-weight:800;}
.gd2-tab{border:1px solid #cbd5e1;background:rgba(255,255,255,.78);border-radius:999px;padding:10px 16px;font-weight:900;color:#334155;cursor:pointer;}
.gd2-tab.active{background:#0f766e;color:#fff;border-color:#0f766e;box-shadow:0 10px 22px rgba(15,118,110,.18);}
.gd2-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px;}
.gd2-card{background:rgba(255,255,255,.78);border:1px solid rgba(203,213,225,.9);border-radius:16px;padding:14px;box-shadow:0 10px 24px rgba(15,23,42,.05);}
.gd2-icon{width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#eff6ff;font-size:18px;margin-bottom:8px;}
.gd2-label{font-weight:900;color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.03em;}
.gd2-value{font-size:24px;font-weight:950;color:#0f172a;margin-top:6px;}
.gd2-sub{font-weight:900;color:#64748b;font-size:12px;margin-top:8px;}
.gd2-card.good .gd2-sub{color:#047857;}
.gd2-card.bad .gd2-sub{color:#dc2626;}
.gd2-card.warn{border-color:#fdba74;background:rgba(255,247,237,.84);}
.gd2-layout{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px;}
.gd2-panel{background:rgba(255,255,255,.78);border:1px solid rgba(203,213,225,.9);border-radius:18px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.05);}
.gd2-panel h3{margin:0 0 6px;font-size:18px;}
.gd2-panel p{margin:0 0 14px;color:#64748b;font-weight:700;}
.gd2-alert-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:12px;border-radius:14px;background:rgba(255,247,237,.9);border:1px solid #fed7aa;margin-bottom:10px;}
.gd2-alert-row b{display:block;color:#0f172a;}
.gd2-alert-row span{display:block;color:#64748b;font-size:12px;margin-top:3px;}
.gd2-alert-row strong{color:#dc2626;font-size:16px;}
.gd2-alert-row em{font-style:normal;background:#fff7ed;color:#c2410c;border:1px solid #fdba74;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;}
.gd2-insight{padding:12px 14px;border-radius:14px;border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;font-weight:900;margin-bottom:10px;line-height:1.4;}
.gd2-insight.primary{background:#ecfeff;border-color:#67e8f9;color:#155e75;}
.gd2-bar-row{display:grid;grid-template-columns:190px 1fr 100px;gap:12px;align-items:center;margin:12px 0;}
.gd2-bar-row span{font-weight:900;color:#334155;}
.gd2-bar-row div{height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden;}
.gd2-bar-row i{display:block;height:100%;border-radius:999px;}
.gd2-bar-row b{text-align:right;color:#0f172a;}
.gd2-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.gd2-mini-grid .gd2-card{box-shadow:none;}
.gd2-empty-small{padding:18px;border-radius:14px;background:#f8fafc;border:1px dashed #cbd5e1;color:#64748b;font-weight:800;text-align:center;}
@media(max-width:900px){.gd2-hero{align-items:flex-start;flex-direction:column}.gd2-grid,.gd2-layout{grid-template-columns:1fr}.gd2-bar-row{grid-template-columns:1fr}.gd2-bar-row b{text-align:left}.gd2-alert-row{grid-template-columns:1fr}.gd2-score{width:96px;height:96px}.gd2-score b{font-size:26px}}

/* Collection Score 30-day rules */
.gd2-hero.excellent,.growth-hero.excellent{background:linear-gradient(135deg,#064e3b,#047857)!important;}
.gd2-hero.healthy,.growth-hero.healthy{background:linear-gradient(135deg,#047857,#0f766e)!important;}
.gd2-hero.watch,.growth-hero.watch{background:linear-gradient(135deg,#b45309,#0f766e)!important;}
.gd2-hero.weak,.growth-hero.weak{background:linear-gradient(135deg,#991b1b,#7f1d1d)!important;}
.gd2-score,.growth-score{position:relative;overflow:visible;}
.score-face{display:block;font-size:24px;line-height:1;margin-bottom:4px;animation:scoreSmileBounce 1.4s ease-in-out infinite;}
.score-excellent .score-face{animation:scoreExcellentDance 1.1s ease-in-out infinite;}
.score-weak .score-face{animation:scoreSadShake .9s ease-in-out infinite;}
.gd2-score em,.growth-score em{display:block;font-style:normal;font-size:11px;font-weight:800;margin-top:3px;}
@keyframes scoreSmileBounce{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-3px) scale(1.08)}}
@keyframes scoreExcellentDance{0%,100%{transform:rotate(-6deg) scale(1.05)}50%{transform:rotate(8deg) scale(1.18)}}
@keyframes scoreSadShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-2px)}75%{transform:translateX(2px)}}
.gd-recovery-ai-row{display:grid;grid-template-columns:1.35fr .6fr .8fr 1fr;gap:10px;align-items:center;padding:10px 12px;border:1px solid #dbeafe;border-radius:12px;background:#fff;}
.gd-recovery-ai-row.strong{border-left:4px solid #16a34a;background:#f0fdf4;}
.gd-recovery-ai-row.average{border-left:4px solid #d97706;background:#fffbeb;}
.gd-recovery-ai-row.weak{border-left:4px solid #dc2626;background:#fef2f2;}
.gd-recovery-ai-row.nodata{border-left:4px solid #64748b;background:#f8fafc;}
.gd-recovery-ai-row .mini-note{display:block;color:#64748b;font-size:11px;margin-top:2px;}
.gd-recovery-ai-row .status-pill{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800;background:#fff;}
