:root{--ink:#182337;--muted:#68778a;--brand:#4357df;--bg:#f5f7fb;--border:#e3e8f0;--navy:#142139}*{box-sizing:border-box}body{margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.55}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.2;font-weight:650;letter-spacing:-1px;margin-bottom:12px}h2{font-size:22px;letter-spacing:-.4px}h3{font-size:17px}p{margin-bottom:14px}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}:focus-visible{outline:3px solid #929ffc;outline-offset:3px}label{display:block;font-size:13px;font-weight:600;margin:17px 0 7px}input,select{width:100%;padding:11px 13px;border:1px solid #cbd3e0;border-radius:7px;background:#fff;color:var(--ink);min-height:43px}input:focus,select:focus{border-color:var(--brand)}input[type=checkbox]{width:auto;min-height:auto;accent-color:var(--brand)}.button{display:inline-flex;gap:18px;justify-content:center;align-items:center;background:var(--brand);color:#fff;border:1px solid var(--brand);padding:11px 18px;border-radius:7px;font-weight:600;text-decoration:none;white-space:nowrap;min-height:43px}.button:hover{background:#3444b5;color:white;text-decoration:none}.button.secondary{background:#fff;color:var(--ink);border-color:var(--border)}.button.secondary:hover{background:#eef1ff;border-color:#b3bdf6}.button.small{min-height:34px;padding:6px 12px;font-size:12px}.button.full{width:100%;margin-top:22px}.text-button{color:var(--brand);border:0;background:none;padding:6px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--muted);display:block}.muted,.help,.page-heading p{color:var(--muted)}.help{font-size:12px;line-height:1.7;margin-top:12px}.mono{font-family:Consolas,monospace}.brand{display:flex;align-items:center;gap:8px;color:inherit;font-size:19px;font-weight:650;letter-spacing:-.5px;white-space:nowrap}.brand:hover{text-decoration:none}.brand-mark{width:33px;height:33px;display:inline-grid;place-items:center;background:var(--brand);border-radius:9px;color:white;font-size:22px}.brand-light{font-size:14px;font-weight:400;opacity:.75}.nav-label{font-size:9px;letter-spacing:1.6px;color:#8492aa;font-weight:700;margin:22px 13px 10px}.status-dot{display:inline-block;width:6px;height:6px;background:#74cfa8;border-radius:50%;margin-right:6px}.user-menu{display:flex;align-items:center;gap:18px;font-size:12px;white-space:nowrap}.main-content{max-width:1450px;padding:36px 38px 64px;margin:auto}.page-footer{color:#8491a2;font-size:10px;padding:16px 38px;border-top:1px solid var(--border)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:25px}.page-heading .eyebrow{margin-bottom:10px}.page-heading p{margin-bottom:0}.badge{display:inline-block;border-radius:5px;background:#edf0f7;color:#5e6b80;padding:4px 8px;font-size:10px;font-weight:600;letter-spacing:.3px;vertical-align:middle}.badge.posted{background:#e4f5ed;color:#14785a}.panel,.table-panel{background:#fff;border:1px solid var(--border);border-radius:10px}.panel{padding:25px}.panel.narrow{max-width:550px}.form-panel{max-width:960px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px}.form-grid label:first-child{margin-top:10px}.form-actions{border-top:1px solid var(--border);padding-top:22px;margin-top:25px}.table-panel{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:650;color:#758298;background:#fafbfe;padding:14px 18px;border-bottom:1px solid var(--border)}td{padding:16px 18px;border-bottom:1px solid #edf0f5;font-size:13px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfcff}.number{text-align:right;font-variant-numeric:tabular-nums}.cell-detail{display:block;color:var(--muted);font-size:10px}.empty{text-align:center;padding:50px 20px;color:var(--muted)}.searchbar{display:flex;gap:10px;max-width:550px;margin-bottom:20px}.searchbar input{flex:1;min-width:0}.pagination{display:flex;justify-content:space-between;align-items:center;padding:20px 2px;font-size:12px;color:var(--muted)}.pagination a{margin-left:20px}.notice{padding:14px 20px;margin-bottom:24px;color:#155b44;border:1px solid #bbdecf;background:#eaf7f1;border-radius:7px}.validation:empty,.validation.validation-summary-valid{display:none}.validation{padding:12px 16px;background:#fff0ee;color:#a33029;border:1px solid #f3c2bc;border-radius:6px;margin-bottom:20px;font-size:13px}.validation ul{margin:0;padding-left:18px}.input-validation-error{border-color:#c9564c}.hero-panel{border:1px solid #dce3f4;border-radius:12px;background:linear-gradient(110deg,#edf1ff,#f6f8ff);padding:34px 38px;display:grid;grid-template-columns:1.2fr 1fr;gap:50px}.hero-panel h2{font-size:32px;line-height:1.18;margin:14px 0 18px;letter-spacing:-1px}.hero-panel p{font-size:13px;color:#6b7690;max-width:390px;margin:0}.process{display:flex;flex-direction:column;justify-content:center}.process div{display:flex;align-items:center;gap:18px;padding:14px 0;border-bottom:1px solid #dce3f4}.process div:last-child{border:0}.process b{background:white;border:1px solid #dce3f4;color:#6879d4;border-radius:8px;padding:8px 12px;font-size:13px}.process span{font-size:14px;font-weight:600}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:31px 0 17px;gap:14px}.section-heading h2{margin:0;font-size:18px}.section-heading>span{font-size:11px;color:var(--muted)}.action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.action-card{padding:24px;background:#fff;border:1px solid var(--border);border-radius:10px;color:var(--ink)}.action-card:hover{border-color:#9ba8eb;text-decoration:none;box-shadow:0 5px 18px #1d35610a}.card-icon{display:grid;place-items:center;background:#f0f2ff;color:var(--brand);font-size:24px;height:42px;width:42px;border-radius:9px;margin-bottom:18px}.action-card h3{margin-bottom:8px}.action-card p{font-size:12px;color:var(--muted);margin-bottom:22px}.card-link{font-size:12px;font-weight:650;color:var(--brand)}.scope-note{border-left:3px solid #c7cfdf;margin-top:28px;padding:3px 18px;color:var(--muted);font-size:12px}.scope-note strong{color:#43516a}.scope-note p{margin:5px 0}.workspace-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:20px}.workspace-card{padding:26px;border:1px solid var(--border);background:#fff;border-radius:10px}.workspace-card h2{margin:15px 0 5px}.workspace-card p{font-size:13px;color:var(--muted)}.workspace-year{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-top:24px}.invoice-meta{display:flex;gap:50px;margin-bottom:22px;flex-wrap:wrap}.invoice-meta p{margin:8px 0 0}.request-id{font-size:11px;overflow-wrap:anywhere}.invoice-lines{white-space:normal}.invoice-lines th:first-child{width:42%}.invoice-lines input,.invoice-lines select{min-width:95px;font-size:12px;padding:9px}.invoice-lines select{margin-top:7px}.invoice-lines td{padding:15px 10px;vertical-align:top}.invoice-lines td:first-child{min-width:220px}.invoice-lines td:last-child{width:40px}.remove-button{border:0;border-radius:6px;background:#f6f1f0;color:#a9584c;width:31px;height:36px;font-size:20px}.draft-summary{display:flex;align-items:center;justify-content:space-between;gap:25px;background:white;border:1px solid var(--border);border-radius:10px;padding:24px;margin-top:25px}.draft-summary p{margin:6px 0}.draft-summary small{color:var(--muted);font-size:10px}.invoice-bottom{display:flex;justify-content:space-between;gap:40px;padding:30px 0}.posting-explanation{max-width:400px;padding:10px}.posting-explanation p{color:var(--muted);font-size:13px}.totals{width:320px;margin:0;background:white;border:1px solid var(--border);border-radius:10px;padding:20px 24px}.totals div{display:flex;justify-content:space-between;font-size:13px;padding:7px 0}.totals dd{margin:0;font-variant-numeric:tabular-nums}.totals .grand-total{border-top:1px solid var(--border);margin-top:12px;padding-top:18px;font-size:19px;font-weight:650}.check-label{font-size:12px;font-weight:400;display:flex;gap:10px;align-items:center;margin-bottom:16px}.report-filter{display:flex;gap:15px;align-items:end;margin-bottom:25px}.report-filter label{margin-top:0}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.metric{background:#fff;border:1px solid var(--border);border-radius:10px;padding:22px}.metric span{font-size:11px;color:var(--muted)}.metric strong{display:block;font-size:26px;letter-spacing:-.5px;margin-top:8px;font-variant-numeric:tabular-nums}.standalone{max-width:540px;margin:60px auto;padding:24px}.standalone>.brand{margin-bottom:30px}.standalone h1{font-size:27px}.subtle-link{font-size:12px;display:block;margin-top:22px}.auth-shell{min-height:100vh;display:grid;grid-template-columns:46% 54%}.auth-story{background:var(--navy);color:#fff;display:flex;flex-direction:column;padding:48px 55px;min-height:100vh}.auth-story .brand{font-size:22px}.auth-story-content{margin:auto 0;padding:65px 0}.auth-story .eyebrow{color:#92a1c5;font-size:10px}.auth-story h1{font-size:65px;font-weight:600;line-height:1.09;letter-spacing:-2.6px;margin:25px 0}.auth-story h1 span{color:#a0acff}.auth-story-content p{max-width:330px;font-size:14px;color:#a6b3cb;line-height:1.9}.flow{display:flex;gap:8px;flex-wrap:wrap;margin-top:35px}.flow span{border:1px solid #41506b;border-radius:5px;font-size:11px;color:#cad3e7;padding:8px 14px}.auth-footer{font-size:10px;color:#8190ad;letter-spacing:.3px}.auth-form{background:#fff;display:flex;align-items:center;justify-content:center;padding:45px}.auth-card{width:100%;max-width:390px}.auth-card h2{font-size:29px;line-height:1.2;letter-spacing:-.8px;margin:14px 0}.auth-card .muted{font-size:13px;margin-bottom:30px}.auth-card input{min-height:48px}.auth-card .button{min-height:49px;justify-content:space-between;margin-top:28px}.auth-card label{font-size:12px}.setup-note{border-top:1px solid var(--border);padding-top:25px;margin-top:38px;font-size:11px;color:var(--muted)}.setup-note strong{color:#53617a}.setup-note p{line-height:1.8;margin:8px 0 0}.error-page{max-width:650px;margin:10vh auto;padding:35px}.error-page h1{margin-top:15px}details.panel{margin-top:20px}summary{cursor:pointer;font-weight:600}details p{margin-top:18px;font-size:12px;color:var(--muted)}@media(min-width:1500px){.action-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1100px){.main-content{padding:28px 24px 50px}.hero-panel{padding:28px;gap:25px}.auth-story{padding:40px}.auth-story h1{font-size:53px}}@media(max-width:760px){.user-menu{gap:7px;flex-direction:column;align-items:end}.main-content{padding:24px 18px 45px}.page-heading{align-items:start;flex-wrap:wrap}h1{font-size:28px}.page-heading p{font-size:12px}.hero-panel{grid-template-columns:1fr;padding:25px}.hero-panel h2{font-size:29px}.process{display:none}.action-grid,.form-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:1fr}.invoice-bottom,.draft-summary{flex-direction:column;align-items:stretch}.totals{width:100%}.invoice-meta{gap:20px}.report-filter{flex-wrap:wrap}.auth-shell{grid-template-columns:1fr}.auth-story{min-height:unset;padding:25px}.auth-story-content{padding:25px 0 0}.auth-story h1{font-size:37px;line-height:1.12;margin:15px 0;letter-spacing:-1px}.auth-story-content p,.flow,.auth-footer{display:none}.auth-form{padding:38px 25px}.auth-card{max-width:none}.auth-card h2{font-size:26px}.standalone{margin:25px auto;padding:18px}} [data-finance-picker] small {display:block;} .form-grid input[type=checkbox], .panel input[type=checkbox] {width:auto;} [data-journal-lines] input[type=number] {min-width:100px;} [data-journal-lines] select {min-width:220px;}

[data-ops-picker] small{display:block;} [data-order-lines] select{min-width:220px;} [data-order-lines] input[type=number]{min-width:110px;}
.production-empty{display:flex;align-items:center;justify-content:space-between;gap:24px;border-left:4px solid #e0a11b;background:#fffaf0}.production-empty h2{margin:.3rem 0}.production-empty p{margin:0;max-width:760px}.field-warning{margin-top:8px;color:#9a5b00;font-weight:700}
.production-batch{border:1px solid #ccd8ec;border-radius:12px;padding:18px;background:#f7faff}.production-batch legend{padding:0 8px;font-weight:800;color:#17345f}.stock-shortage{background:#fff1f1!important;color:#9f2020}.stock-shortage strong{display:inline-block;margin-left:8px;font-size:.72rem;letter-spacing:.06em}
.production-batch{border:1px solid #cbd8ea;border-radius:12px;padding:16px;background:#f7fbff}.production-batch legend{padding:0 8px;font-weight:800}.stock-shortage{background:#fff0f0;color:#9d1c1c}.stock-shortage strong{margin-left:8px;font-size:.75rem}
.selection-unit{display:block;margin-top:7px;color:#31537b;font-weight:700}.bom-material-grid{overflow-x:visible}.bom-material-grid table{table-layout:fixed;width:100%}.bom-material-grid th:nth-child(1){width:auto}.bom-material-grid th:nth-child(2){width:110px}.bom-material-grid th:nth-child(3){width:190px}.bom-material-grid th:nth-child(4){width:72px}.bom-material-grid td{vertical-align:middle}.bom-material-grid [data-ops-picker]{min-width:0}.bom-material-grid [data-ops-search],.bom-material-grid select{width:100%}.line-unit{display:inline-flex;min-width:70px;justify-content:center;padding:10px 8px;border-radius:8px;background:#edf3fb;color:#17345f;font-weight:800}@media(max-width:900px){.bom-material-grid{overflow-x:auto}.bom-material-grid table{min-width:760px}}

/* SB Admin 2 shell adaptation: local assets, no remote fonts or JS dependencies. */
:root{--brand:#4e73df;--bg:#f8f9fc;--ink:#3a3b45;--border:#e3e6f0}
body{font-family:"Segoe UI",Arial,sans-serif;background:#f8f9fc;color:#3a3b45}
#wrapper{display:flex;width:100%;max-width:100vw;min-height:100vh;align-items:stretch;overflow-x:hidden}
#content-wrapper{width:0!important;max-width:100%;min-width:0;flex:1 1 0;overflow-x:clip}
.sidebar{width:14rem!important;min-width:14rem;padding:18px 14px;min-height:100vh;overflow-y:auto;max-height:100vh;position:sticky;top:0}
.sidebar .brand{color:#fff;margin:0 0 18px;height:auto;min-height:50px;text-transform:none;letter-spacing:0;justify-content:flex-start;font-size:17px}
.sidebar .brand-mark{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.4)}
.sidebar .brand-light{display:none}
.sidebar nav a{display:block;padding:9px 12px;margin:2px 0;color:rgba(255,255,255,.9);font-size:12px;border-radius:5px}
.sidebar nav a:hover,.sidebar nav a.active{background:rgba(255,255,255,.17);color:#fff;text-decoration:none}
.sidebar nav a.active{font-weight:700;box-shadow:inset 3px 0 #fff}
.sidebar .nav-label{color:rgba(255,255,255,.65);margin:20px 12px 7px;font-size:9px}
.sidebar-footer{color:rgba(255,255,255,.8);padding:25px 12px 8px;font-size:10px}
.sidebar-footer p{color:inherit;margin:4px 0}
.sidebar:not(.is-open){display:none}
.topbar{height:auto;min-height:76px;padding:14px 28px;gap:18px;flex-wrap:nowrap}
.topbar p{font-size:12px;margin:4px 0 0;overflow-wrap:anywhere}
.topbar>div:first-of-type{flex:1;min-width:0}
.nav-toggle{border:0;border-radius:50%;height:38px;min-width:38px;color:#4e73df;background:#eaecf4;font-size:19px}
.main-content{width:100%;max-width:1600px;padding:30px 28px 50px;flex:1}
.page-footer{background:#fff}
h1{font-size:28px;letter-spacing:-.5px;font-weight:400}
.dashboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0 12px}
.dashboard-metrics .card{min-width:0}
.metric-label{font-size:10px;font-weight:700;letter-spacing:.5px;margin-bottom:9px}
.metric-value{font-size:25px;display:block;color:#5a5c69;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.dashboard-metrics small{display:block;color:#68778a;font-size:10px;margin-top:9px}
.period-note{display:flex;flex-wrap:wrap;gap:10px 22px;color:#68778a;font-size:12px}
.period-note strong{color:#4e73df}
.panel,.table-panel,.action-card,.workspace-card,.metric{border-radius:.35rem;box-shadow:0 .15rem 1.75rem 0 rgba(58,59,69,.06)}
.action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.action-card{padding:22px}
.action-card h3{font-size:16px}
.card-icon{height:34px;width:34px;font-size:20px}
.workflow-steps{display:flex;gap:24px;flex-wrap:wrap;font-size:12px}
.workflow-steps b{color:#4e73df;margin-right:8px}
.button{border-radius:.35rem;background:#4e73df;border-color:#4e73df}
input,select{border-radius:.35rem}
.auth-story{background:linear-gradient(180deg,#4e73df 10%,#224abe 100%)}
.auth-story .eyebrow,.auth-story-content p,.auth-footer{color:#e0e7ff}
.auth-story h1 span{color:#fff}
.skip-link{position:fixed;left:12px;top:-100px;z-index:1000;padding:10px 18px;background:#fff;color:#224abe}
.skip-link:focus{top:12px}
@media(min-width:1600px){.dashboard-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1100px){.dashboard-metrics,.action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.sidebar{position:fixed;top:76px;left:0;z-index:30;min-height:calc(100vh - 76px);max-height:calc(100vh - 76px);box-shadow:4px 0 14px #18233733}.topbar{padding:12px 16px;gap:10px;min-height:76px}.main-content{padding:24px 16px 36px}.topbar .eyebrow{font-size:8px}.user-menu{white-space:normal;max-width:100px}.dashboard-metrics,.action-grid{grid-template-columns:1fr}.period-note{flex-direction:column;gap:5px}.metric-value{font-size:28px}.workflow-steps{flex-direction:column;gap:15px}}

.auth-story .flow span{color:#fff;border-color:#a2b5ed;}

.sidebar .brand-mark{flex:0 0 33px;}

/* Tally-inspired ledger entry: familiar field order with ERP workspace styling. */
.tally-ledger-form{grid-template-columns:minmax(260px,1fr) minmax(260px,1fr);gap:18px 28px;max-width:1050px}
.tally-ledger-form .validation,.tally-section-title,.tally-note,.tally-ledger-form>button{grid-column:1/-1}
.tally-section-title{font-size:11px;font-weight:750;letter-spacing:1.1px;text-transform:uppercase;color:#4e73df;border-bottom:1px solid #e3e6f0;padding:4px 0 10px;margin-top:4px}
.tally-ledger-form label{font-weight:650}.tally-ledger-form small{display:block;color:#68778a;line-height:1.55;margin-top:7px}
.tally-under{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.tally-under label,.tally-under small{grid-column:1/-1}
.tally-choice{display:flex;flex-direction:column;justify-content:center}.tally-choice label{display:flex;align-items:center;gap:10px}.tally-choice input{width:auto}
.tally-note{border-left:3px solid #4e73df;background:#f8f9fc;padding:14px 17px;border-radius:3px}.tally-note p{margin:5px 0 0;color:#68778a;font-size:12px}
@media(max-width:760px){.tally-ledger-form{grid-template-columns:1fr}.tally-under{grid-template-columns:1fr}.tally-under input,.tally-under select{grid-column:1}}
@media print{.sidebar,.topbar,.page-footer,.print-actions,form[data-confirm-post],.posting-explanation,.page-heading>a,button{display:none!important}.app-content,.main-content{margin:0!important;padding:0!important}.panel,.table-panel{box-shadow:none!important;border-color:#bbb!important}body.print-thermal{width:80mm;font-size:10px}body.print-thermal .main-content{width:76mm}body.print-thermal .invoice-meta{display:block}body.print-thermal table{font-size:9px}body.print-thermal th:nth-child(4),body.print-thermal td:nth-child(4),body.print-thermal th:nth-child(5),body.print-thermal td:nth-child(5){display:none}@page{size:A4;margin:10mm}}
.dashboard-control-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:10px;overflow:hidden;margin:0 0 24px}.dashboard-control-strip>div,.dashboard-control-strip>a{background:#fff;padding:18px 20px}.dashboard-control-strip>a{color:inherit;text-decoration:none}.dashboard-control-strip>a:hover{background:#f4f8ff}.dashboard-control-strip span,.dashboard-control-strip small{display:block;color:var(--muted)}.dashboard-control-strip span{font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.6px}.dashboard-control-strip strong{display:block;font-size:24px;margin:5px 0 2px;font-variant-numeric:tabular-nums}.dashboard-control-strip small{font-size:10px}.dashboard-control-strip .needs-attention{background:#fffaf1}.dashboard-control-strip .needs-attention strong,.dashboard-store-table .alert-count:not(:empty){color:#a85d00}.dashboard-store-table{margin-bottom:30px}.dashboard-store-table td:first-child{min-width:190px}.dashboard-store-table th,.dashboard-store-table td{padding-left:14px;padding-right:14px}
@media(max-width:1000px){.dashboard-control-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-control-strip>div:last-child{grid-column:span 2}}
@media(max-width:560px){.dashboard-control-strip{grid-template-columns:1fr}.dashboard-control-strip>div:last-child{grid-column:auto}}
.storage-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.storage-share{height:7px;min-width:120px;background:#e8edf5;border-radius:99px;overflow:hidden}.storage-share i{display:block;height:100%;background:#2f6ee5;border-radius:inherit}.storage-company-detail{margin-top:1rem}
.barcode-sheet{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.barcode-label{border:1px dashed #777;padding:12px;text-align:center;background:#fff}.barcode-label svg{width:100%;height:70px}.print-actions{display:flex;gap:10px;margin-bottom:16px}
/* Professional dashboard, grouped navigation, report center and learning hub */
.sidebar nav{padding:0 10px 24px}.sidebar nav>a,.nav-group summary{display:flex!important;align-items:center;gap:10px;padding:10px 12px!important;margin:2px 0;border-radius:7px;color:#dbe3ff!important;font-size:12px;cursor:pointer;list-style:none}.sidebar nav>a span,.nav-group summary span{width:20px;text-align:center;color:#aebbf1}.sidebar nav>a:hover,.nav-group summary:hover,.sidebar nav>a.active{background:rgba(255,255,255,.12);text-decoration:none;color:#fff!important}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:after{content:'›';margin-left:auto;transition:transform .2s}.nav-group[open] summary:after{transform:rotate(90deg)}.nav-group>div{margin:2px 0 8px 30px;border-left:1px solid rgba(255,255,255,.14);padding-left:8px}.nav-group>div a{display:block!important;padding:7px 10px!important;border-radius:5px;color:#bac5e8!important;font-size:11px}.nav-group>div a:hover,.nav-group>div a.active{background:rgba(255,255,255,.09);color:#fff!important;text-decoration:none}.executive-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.executive-head h1{margin:7px 0 6px}.executive-head p{color:var(--muted);margin:0}.dashboard-actions{display:flex;gap:10px}.period-bar{background:#17243c;color:#fff;border-radius:10px;padding:15px 20px;display:flex;align-items:center;gap:38px;margin-bottom:18px}.period-bar div{display:flex;flex-direction:column}.period-bar span{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#9eabc3}.period-bar strong{font-size:12px}.period-bar .live-indicator{margin-left:auto;flex-direction:row;align-items:center;gap:8px;font-size:11px;color:#b7c3da}.live-indicator i{width:7px;height:7px;border-radius:50%;background:#57d39b;box-shadow:0 0 0 4px #57d39b22}.executive-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.executive-card{background:#fff;border:1px solid var(--border);border-top:3px solid var(--brand);border-radius:10px;padding:18px;min-width:0}.executive-card.success{border-top-color:#2eaf7d}.executive-card.info{border-top-color:#2c9cbb}.executive-card.warning{border-top-color:#e09b32}.executive-card.danger{border-top-color:#d45f68}.metric-top{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.8px}.metric-top b{font-size:17px;color:#9ca7b8}.executive-card>strong{display:block;font-size:21px;margin:13px 0 2px;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis}.executive-card small{color:var(--muted);font-size:10px}.dashboard-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--border);padding-bottom:16px;margin-bottom:4px}.panel-title h2{font-size:18px;margin:5px 0 0}.panel-title>a{font-size:11px}.performance-row{display:flex;justify-content:space-between;padding:15px 0;border-bottom:1px solid #edf0f5}.performance-row span{color:var(--muted)}.positive{color:#16835e}.negative{color:#c3444d}.status-chip{background:#eaf7f1;color:#16835e;border-radius:12px;padding:4px 9px;font-size:9px}.command-panel>a{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf0f5;color:var(--ink)}.command-panel>a:hover{text-decoration:none;color:var(--brand)}.command-panel i{font-style:normal;width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#eef1ff;color:var(--brand);font-size:11px}.command-panel span{display:flex;flex:1;flex-direction:column}.command-panel small{color:var(--muted);font-size:10px}.command-panel em{font-style:normal}.quick-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));background:#fff;border:1px solid var(--border);border-radius:10px;overflow:hidden}.quick-strip a{display:flex;align-items:center;gap:13px;padding:18px;color:var(--ink);border-right:1px solid var(--border)}.quick-strip a:last-child{border:0}.quick-strip a:hover{text-decoration:none;background:#fafbff}.quick-strip b{color:var(--brand);font-size:11px}.quick-strip span{display:flex;flex-direction:column;font-weight:600}.quick-strip small{font-size:9px;color:var(--muted);font-weight:400}.dashboard-footer-card{margin-top:20px;background:linear-gradient(110deg,#edf1ff,#f8f9ff);border:1px solid #dce3f4;border-radius:10px;padding:22px 26px;display:flex;justify-content:space-between;align-items:center}.dashboard-footer-card h3{margin:6px 0}.dashboard-footer-card p{font-size:11px;color:var(--muted);margin:0}.dashboard-footer-card>a{font-weight:600;font-size:12px}.report-hero{background:linear-gradient(115deg,#15243e,#304d82);color:#fff;border-radius:13px;padding:30px 34px}.report-hero p,.report-hero .eyebrow{color:#bdc9df}.report-hero-mark{display:grid;place-items:center;width:54px;height:54px;border:1px solid #ffffff44;border-radius:14px;font-size:24px}.report-section{margin-top:30px}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.report-card{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:16px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:18px;color:var(--ink)}.report-card:hover{text-decoration:none;border-color:#aab5ed;box-shadow:0 8px 22px #1b31550d}.report-card>b{display:grid;place-items:center;width:48px;height:48px;background:#eef1ff;color:var(--brand);border-radius:9px;font-size:11px}.report-card h3{margin:0 0 3px;font-size:14px}.report-card p{margin:0;color:var(--muted);font-size:10px}.report-card>span{font-size:10px;color:var(--brand)}.learning-hero{background:linear-gradient(120deg,#172641,#334f89);color:#fff;border-radius:14px;padding:42px;display:grid;grid-template-columns:1.5fr 1fr;gap:40px}.learning-hero .eyebrow,.learning-hero p{color:#bdc8dc}.learning-hero h1{font-size:38px;margin:10px 0}.hero-actions{display:flex;gap:10px;margin-top:25px}.learning-score{border-left:1px solid #ffffff2c;display:flex;flex-direction:column;justify-content:center;padding-left:50px}.learning-score strong{font-size:60px;line-height:1}.learning-score span{font-size:18px}.learning-score small{color:#bfc9dc;margin-top:12px}.learning-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.learning-grid>a{background:#fff;border:1px solid var(--border);border-radius:10px;padding:22px;color:var(--ink)}.learning-grid>a:hover{text-decoration:none;border-color:#aab5ed}.learning-grid span{color:var(--brand);font-size:11px;font-weight:700}.learning-grid h3{margin:16px 0 8px}.learning-grid p{font-size:11px;color:var(--muted);margin:0}.training-nav{display:flex;gap:8px;position:sticky;top:10px;z-index:2;background:#fff;border:1px solid var(--border);border-radius:9px;padding:9px;margin-bottom:18px;overflow:auto}.training-nav a{padding:7px 12px;background:#f4f6fb;border-radius:6px;font-size:11px;white-space:nowrap}.training-module{display:grid;grid-template-columns:70px 1fr;gap:24px;background:#fff;border:1px solid var(--border);border-radius:11px;padding:28px;margin-bottom:16px;scroll-margin-top:85px}.module-number{width:55px;height:55px;display:grid;place-items:center;background:#eef1ff;color:var(--brand);border-radius:12px;font-size:18px;font-weight:700}.training-module h2{margin:7px 0 15px}.training-module ol{padding-left:20px;margin:0}.training-module li{padding:6px 0;color:#526077}.module-tip{margin-top:18px;background:#f4f7ff;border-left:3px solid var(--brand);padding:12px 15px;font-size:11px}.faq-search{background:#fff;border:1px solid var(--border);border-radius:10px;padding:16px 20px;margin-bottom:15px;display:grid;grid-template-columns:1fr auto;align-items:end;gap:8px}.faq-search label{grid-column:1/-1;margin:0}.faq-search span{font-size:10px;color:var(--muted);padding:12px}.faq-list{display:grid;gap:9px}.faq-list details{background:#fff;border:1px solid var(--border);border-radius:9px;padding:0 20px}.faq-list summary{padding:17px 0;cursor:pointer;font-weight:600}.faq-list p{color:var(--muted);font-size:12px;padding:0 0 18px;margin:0}.faq-empty{text-align:center;padding:40px;color:var(--muted)}
@media(max-width:1100px){.executive-metrics{grid-template-columns:repeat(3,1fr)}.learning-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.executive-head,.dashboard-footer-card{align-items:flex-start;flex-direction:column}.executive-metrics,.dashboard-columns,.report-grid,.learning-grid,.learning-hero{grid-template-columns:1fr}.period-bar{align-items:flex-start;flex-direction:column;gap:12px}.period-bar .live-indicator{margin-left:0}.learning-score{border-left:0;border-top:1px solid #ffffff2c;padding:25px 0 0}.training-module{grid-template-columns:1fr}.quick-strip{grid-template-columns:1fr}.quick-strip a{border-right:0;border-bottom:1px solid var(--border)}}
/* Administrator/store shells, HR and live alerts */
.administrator-shell .sidebar{background:linear-gradient(180deg,#17233a 0,#243d70 100%)!important}.store-shell .sidebar{background:linear-gradient(180deg,#28425b 0,#176a70 100%)!important}.gateway-link{background:linear-gradient(90deg,#5b6fea,#7184f0)!important;color:#fff!important}.admin-news-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:18px;margin-top:20px}.news-panel article{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--border)}.news-panel article:last-child{border:0}.news-panel time{width:48px;height:35px;display:grid;place-items:center;border-radius:7px;background:#eef1ff;color:var(--brand);font-size:9px;font-weight:700}.news-panel article div{flex:1}.news-panel article p{font-size:10px;color:var(--muted);margin:4px 0}.admin-gateway-card{background:linear-gradient(145deg,#182641,#304b80);color:#fff}.admin-gateway-card .eyebrow,.admin-gateway-card p{color:#bdc9dc}.admin-gateway-card h2{margin:9px 0}.store-news{display:flex;align-items:center;gap:20px;background:#eaf7f4;border:1px solid #c8e8df;border-radius:9px;padding:14px 18px;margin-top:20px}.store-news strong{flex:1;font-size:12px}.store-news a{font-size:11px}.alert-popup{position:fixed;right:24px;bottom:24px;z-index:20;width:min(430px,calc(100vw - 32px));display:flex;gap:15px;background:#fff;border:1px solid #f0c88d;border-left:4px solid #e49b30;border-radius:11px;padding:20px 22px;box-shadow:0 18px 55px #17243c35}.alert-popup[hidden]{display:none}.alert-popup>button{position:absolute;right:10px;top:7px;border:0;background:none;color:#8390a4;font-size:20px}.alert-symbol{width:35px;height:35px;display:grid;place-items:center;background:#fff2dd;color:#b56b06;border-radius:50%;font-weight:800}.alert-popup h2{font-size:17px;margin:5px 0}.alert-popup p{display:flex;gap:14px;color:var(--muted);font-size:11px}.alert-popup div div{display:flex;gap:15px}.alert-popup a{font-size:10px;font-weight:700}.hr-tabs{display:flex;gap:8px;margin-bottom:18px}.hr-tabs a{background:#fff;border:1px solid var(--border);border-radius:7px;padding:8px 13px;font-size:11px}.hr-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.hr-section{margin-top:18px;scroll-margin-top:80px}.hr-form-row{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:9px;margin:16px 0}.hr-form-row input,.hr-form-row select,.hr-form-row button{margin:0;min-width:0}.work-timeline{margin-top:18px;border-left:2px solid #dfe4ef;padding-left:20px}.work-timeline article{display:grid;grid-template-columns:65px 1fr;gap:15px;padding:13px 0;border-bottom:1px solid var(--border)}.work-timeline time{font-weight:700;color:var(--brand);font-size:11px}.work-timeline h3{font-size:13px;margin:6px 0 3px}.work-timeline p{font-size:10px;color:var(--muted);margin:0}.workspace-card:has(.gateway-badge){border-color:#9aa9eb}.gateway-badge{background:#edf0ff;color:var(--brand)}
@media(max-width:1000px){.admin-news-grid,.hr-grid{grid-template-columns:1fr}.hr-form-row{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.store-news{align-items:flex-start;flex-direction:column}.hr-form-row{grid-template-columns:1fr}.alert-popup{right:16px;bottom:16px}}
.store-setup-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:18px}.store-setup-grid h2{font-size:17px;margin-top:20px}.store-setup-grid h2:first-of-type{margin-top:0}.store-list article{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--border)}.store-list article>span{width:35px;height:35px;display:grid;place-items:center;background:#eef1ff;color:var(--brand);border-radius:7px;font-size:10px}.store-list div{display:flex;flex-direction:column}.store-list small{color:var(--muted);font-size:9px}.store-list em{font-style:normal;font-size:9px;color:#16835e}@media(max-width:850px){.store-setup-grid{grid-template-columns:1fr}}
/* Modern supermarket retail POS */
.retail-pos{margin:-20px -22px 0}.pos-command{display:flex;align-items:center;gap:22px;background:#17233a;color:#fff;padding:15px 20px;border-radius:10px 10px 0 0}.pos-command h1{font-size:22px;margin:3px 0}.pos-command .eyebrow{color:#aebbd0}.pos-clock{display:flex;flex-direction:column;margin-left:auto;text-align:right}.pos-clock b{font-size:20px}.pos-clock span{font-size:10px;color:#b8c3d7}.pos-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(430px,.75fr);height:calc(100vh - 175px);min-height:650px;background:#eef1f6;border:1px solid var(--border)}.pos-catalog{padding:16px;overflow:auto}.scan-box{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;background:#fff;border:2px solid #5369e6;border-radius:9px;padding:6px 12px;position:sticky;top:0;z-index:3;box-shadow:0 6px 18px #1c315012}.scan-box span{font-size:24px;color:var(--brand)}.scan-box input{border:0;min-height:40px;padding:5px}.scan-box input:focus{outline:0}.scan-box kbd,.pos-tools kbd{font-size:9px;background:#edf0f6;border:1px solid #d9dfeb;border-radius:4px;padding:3px 5px}.category-pills{display:flex;gap:7px;overflow:auto;padding:13px 0}.category-pills button{border:1px solid #d7ddea;background:#fff;color:#5d6a7e;border-radius:18px;padding:7px 13px;font-size:10px;white-space:nowrap}.category-pills button.active{background:#263c69;color:#fff;border-color:#263c69}.product-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:9px}.product-tile{display:flex;flex-direction:column;align-items:flex-start;min-height:160px;background:#fff;border:1px solid #dde3ed;border-radius:9px;padding:12px;text-align:left;color:var(--ink)}.product-tile:hover{border-color:#7f8fe5;box-shadow:0 5px 14px #21345812}.product-tile[hidden]{display:none}.product-symbol{width:38px;height:38px;display:grid;place-items:center;border-radius:9px;background:#eef1ff;color:var(--brand);font-weight:800;margin-bottom:9px}.product-name{font-size:12px;font-weight:700;line-height:1.3;min-height:31px}.product-tile small{font-size:8px;color:var(--muted);margin:4px 0}.product-tile strong{font-size:14px;margin-top:auto}.product-tile em{font-style:normal;font-size:8px;color:#16835e}.product-tile em.out{color:#c13d48}.pos-cart{background:#fff;border-left:1px solid #dce2ed;display:flex;flex-direction:column;min-height:0}.cart-head{display:flex;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border)}.cart-head>div{display:flex;flex-direction:column}.cart-head button{border:0;background:none;color:#c0444c;font-size:10px}.customer-row{display:grid;grid-template-columns:1.4fr 1fr;gap:9px;padding:0 14px 11px;border-bottom:1px solid var(--border)}.customer-row label{margin:9px 0 3px;font-size:9px}.customer-row select{min-height:34px;padding:6px;font-size:10px}.cart-lines{flex:1;overflow:auto;min-height:160px}.empty-cart{text-align:center;color:var(--muted);padding:45px 15px}.empty-cart span{font-size:35px}.empty-cart h3{margin:8px}.empty-cart p{font-size:10px}.cart-line{display:grid;grid-template-columns:minmax(100px,1.4fr) 95px 68px 62px 75px 22px;gap:7px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf0f5}.cart-line>div:first-child{display:flex;flex-direction:column}.cart-line b{font-size:10px}.cart-line small{font-size:8px;color:var(--muted)}.cart-line label{font-size:7px;margin:0}.cart-line input{min-height:30px;padding:4px 5px;font-size:9px}.qty-control{display:grid;grid-template-columns:24px 1fr 24px}.qty-control button{border:1px solid #dce1ea;background:#f7f8fb}.qty-control input{border-radius:0;text-align:center}.cart-line>strong{font-size:10px;text-align:right}.cart-remove{border:0;background:none;color:#c3444d;font-size:17px}.bill-summary{padding:10px 16px;border-top:1px solid var(--border);background:#fafbfe}.bill-summary>div{display:flex;justify-content:space-between;padding:3px 0;font-size:10px}.bill-summary .grand-total{border-top:1px solid #dce2ed;margin-top:6px;padding-top:8px;align-items:center}.grand-total span{font-size:13px;font-weight:700}.grand-total strong{font-size:24px;color:#24396a}.pos-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:9px 14px}.pos-tools button{border:1px solid #dce2ed;background:#fff;border-radius:6px;padding:8px;font-size:9px}.checkout-button{margin:0 14px;border:0;border-radius:8px;background:linear-gradient(90deg,#16875f,#23a676);color:#fff;padding:14px 16px;font-size:13px;font-weight:700;display:flex;justify-content:space-between}.pos-status{margin:7px 14px 10px;color:var(--muted);font-size:8px;text-align:center}.no-products{text-align:center;padding:50px;color:var(--muted)}@media(max-width:1100px){.pos-layout{grid-template-columns:1fr;height:auto}.pos-cart{border-left:0;min-height:600px}.retail-pos{margin:0}.cart-line{grid-template-columns:1fr 90px 65px 60px 70px 20px}}@media(max-width:650px){.product-tiles{grid-template-columns:repeat(2,1fr)}.pos-command{flex-wrap:wrap}.cart-line{grid-template-columns:1fr 85px 55px}.cart-line>strong,.cart-remove{grid-row:2}.customer-row{grid-template-columns:1fr}}

.nav-group.current>summary{background:rgba(255,255,255,.15);color:#fff!important;font-weight:700}.nav-group:not([open])>div{display:none}
.catalog-toolbar{position:sticky;top:0;z-index:4;background:#eef1f6;padding-bottom:2px}.catalog-meta{display:flex;justify-content:space-between;align-items:center;padding:8px 3px 0;color:#647187;font-size:10px}.catalog-meta label{display:flex;align-items:center;gap:6px;margin:0}.catalog-meta input{width:15px;height:15px}.search-clear{border:0;background:#eef1f6;color:#627087;border-radius:50%;width:25px;height:25px;font-size:17px;line-height:1}.product-tiles{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:11px}.product-tile{min-height:175px;border-radius:12px;padding:13px;box-shadow:0 2px 6px #17233a08;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.product-tile:hover{transform:translateY(-2px)}.tile-foot{display:flex;width:100%;justify-content:space-between;align-items:flex-end;gap:8px;margin-top:auto}.tile-foot em{text-align:right}.no-products{display:flex;flex-direction:column;gap:5px}.no-products b{font-size:15px;color:var(--ink)}
.scan-box{grid-template-columns:auto minmax(0,1fr) auto auto}.scan-box kbd{white-space:nowrap}.catalog-meta>span{color:#16835e}
.batch-panel{border:1px solid #dce4ef;border-radius:10px;padding:18px;background:#fbfcff}.batch-panel.is-disabled{background:#f5f7fa}.batch-panel.is-disabled input{background:#e9edf3;color:#7c8797}.row-actions{display:flex;gap:6px;align-items:center;white-space:nowrap}.row-actions form{margin:0}.button.danger{background:#fff1f1;color:#b4232f;border-color:#f0bdc1}.table-wrap th:last-child,.table-wrap td:last-child{position:sticky;right:0;background:#fff;z-index:2;box-shadow:-5px 0 8px #17233a0a}

/* Polished cashier workspace */
.retail-pos{margin:-25px -28px -55px;background:#f1f4f9}.pos-command{min-height:86px;padding:14px 24px;border-radius:14px 14px 0 0;background:linear-gradient(115deg,#111d33,#20375f);box-shadow:0 8px 26px #1626401c}.pos-command h1{font-size:24px;letter-spacing:-.5px}.pos-command .button{min-height:44px;border:0;box-shadow:0 3px 12px #07111f30}.pos-layout{grid-template-columns:minmax(480px,1fr) minmax(500px,42%);height:calc(100vh - 160px);min-height:620px;border:0;border-radius:0 0 14px 14px;overflow:hidden;box-shadow:0 12px 32px #17233a12}.pos-catalog{padding:18px 20px;background:linear-gradient(180deg,#f3f6fb,#edf1f7)}.catalog-toolbar{background:transparent}.scan-box{min-height:58px;border-color:#4d68e8;border-radius:12px;padding:7px 14px;box-shadow:0 7px 22px #263d6c12}.scan-box input{font-size:14px}.catalog-meta{padding:10px 4px 2px}.category-pills{padding:12px 0 14px}.product-tiles{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.product-tile{min-height:148px;padding:14px;border-radius:13px;border-color:#dce3ed;box-shadow:0 3px 12px #17233a0b;overflow:hidden}.product-tile:hover{border-color:#7185e8;box-shadow:0 10px 24px #21345816}.product-symbol{width:36px;height:36px;margin-bottom:10px;border-radius:10px}.product-name{display:block;width:100%;min-height:0;font-size:13px;line-height:1.35;color:#17233a;white-space:normal;overflow-wrap:anywhere}.product-tile small{display:block;width:100%;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile-foot{padding-top:12px;border-top:1px solid #edf0f5}.tile-foot strong{font-size:15px;color:#17233a}.tile-foot em{padding:3px 6px;border-radius:10px;background:#e9f7f1}.tile-foot em.out{background:#fff0f1}.pos-cart{border-left:1px solid #d9e0eb;box-shadow:-9px 0 25px #17233a0a}.cart-head{padding:15px 18px}.cart-head strong{font-size:13px}.customer-row{padding:0 16px 13px;gap:12px}.customer-row select{font-size:11px}.cart-lines{overflow-x:hidden;padding:0 2px;background:#fff}.cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto 28px;gap:8px 12px;align-items:start;padding:14px 16px}.cart-product{display:flex;min-width:0;flex-direction:column}.cart-line b{font-size:12px;line-height:1.35}.cart-line small{font-size:9px;margin-top:3px;white-space:normal}.cart-line-total{font-size:13px!important;color:#17233a;text-align:right;white-space:nowrap}.cart-remove{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#fff1f2;font-size:16px}.cart-controls{grid-column:1/-1;display:grid;grid-template-columns:minmax(125px,1.35fr) minmax(76px,.8fr) minmax(76px,.8fr);gap:9px;align-items:end;background:#f7f9fc;border:1px solid #e8ecf3;border-radius:9px;padding:9px}.cart-field label{font-size:8px;margin:0 0 4px;color:#657287;text-transform:uppercase;letter-spacing:.5px}.cart-field input{min-height:34px;font-size:10px;background:#fff}.qty-control{grid-template-columns:30px minmax(45px,1fr) 30px}.qty-control button{border-radius:6px 0 0 6px;font-size:14px}.qty-control button:last-child{border-radius:0 6px 6px 0}.bill-summary{padding:11px 18px}.bill-summary>div{font-size:11px}.pos-tools{padding:10px 16px}.checkout-button{margin:0 16px;min-height:50px;align-items:center;box-shadow:0 7px 18px #16875f26}.pos-status{font-size:9px;margin-bottom:12px}@media(max-width:1250px){.pos-layout{grid-template-columns:minmax(430px,1fr) minmax(450px,45%)}.product-tiles{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}}@media(max-width:1000px){.retail-pos{margin:0}.pos-layout{grid-template-columns:1fr;height:auto;overflow:visible}.pos-catalog{min-height:520px}.pos-cart{min-height:600px}.product-tiles{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}}@media(max-width:600px){.pos-command{border-radius:0}.catalog-meta{align-items:flex-start;gap:8px;flex-wrap:wrap}.scan-box{grid-template-columns:auto minmax(0,1fr) auto}.scan-box kbd{display:none}.product-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.cart-controls{grid-template-columns:1fr 1fr}.quantity-field{grid-column:1/-1}.customer-row{grid-template-columns:1fr}}

/* Compact billing rows and complete payment desk */
.pos-layout{grid-template-columns:minmax(680px,1.45fr) minmax(390px,.7fr)}.pos-catalog{display:flex;flex-direction:column}.selected-strip{display:flex;align-items:center;justify-content:space-between;margin:12px 0 0;padding:9px 12px;background:#17233a;color:#fff;border-radius:9px 9px 0 0}.selected-strip>div{display:flex;align-items:center;gap:12px}.selected-strip .eyebrow{color:#aebbd0}.selected-strip button{border:0;background:transparent;color:#ffb8bd;font-size:10px}.pos-catalog>.cart-lines{flex:0 0 auto;max-height:230px;min-height:62px;overflow:auto;background:#fff;border:1px solid #dce3ed;border-top:0;border-radius:0 0 9px 9px}.empty-cart.compact{display:flex;align-items:center;justify-content:center;gap:12px;padding:13px}.empty-cart.compact span{font-size:20px}.empty-cart.compact p{margin:0}.catalog-title{display:flex;justify-content:space-between;align-items:center;margin-top:15px;color:#536177;font-size:10px}.catalog-title strong{color:#17233a;font-size:12px}.pos-catalog>.product-tiles{flex:1;overflow:auto;align-content:start}.pos-cart{overflow:auto}.pos-cart .secure-tag{color:#16835e;font-size:10px}.pos-cart>.cart-head{position:sticky;top:0;background:#fff;z-index:2}.cart-line{grid-template-columns:minmax(140px,1.5fr) minmax(90px,.75fr) 60px 104px 70px 70px 82px 26px;gap:7px;align-items:end;padding:9px 10px}.cart-line label{display:block;margin:0 0 3px;font-size:7px;text-transform:uppercase;color:#738096;letter-spacing:.4px}.cart-line input,.cart-line select{min-height:32px;height:32px;padding:3px 5px;border-radius:5px;font-size:9px}.cart-product{align-self:center}.cart-line-total{align-self:center;font-size:11px!important}.batch-choice select:disabled{background:#f1f3f7;color:#8a95a6}.stock-cell{align-self:center;text-align:center}.stock-cell strong{font-size:10px;color:#16835e}.stock-cell strong.low{display:inline-block;color:#b65518;background:#fff0df;border-radius:10px;padding:3px 6px}.cart-line .qty-control{display:grid;grid-template-columns:27px 1fr 27px}.cart-line .qty-control button{height:32px}.payment-panel{margin:12px 16px;padding:13px;border:1px solid #dfe5ef;border-radius:10px;background:#f8faff}.payment-methods{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:9px 0}.payment-methods button{border:1px solid #d7deea;background:#fff;border-radius:6px;padding:7px 3px;font-size:9px}.payment-methods button.active{background:#263f75;border-color:#263f75;color:#fff}.payment-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.payment-fields label{margin:0;font-size:8px;color:#66748a}.payment-fields input{min-height:34px;margin-top:4px;font-size:10px}.payment-balance{display:flex;justify-content:space-between;align-items:center;margin-top:9px;padding-top:8px;border-top:1px solid #dfe5ef;font-size:10px}.payment-balance strong{color:#c04a52;font-size:15px}.payment-balance strong.settled{color:#16835e}.payment-panel p{margin:5px 0 0;color:#68778a;font-size:8px}.bill-summary{margin-top:auto}@media(max-width:1250px){.pos-layout{grid-template-columns:minmax(600px,1.35fr) minmax(370px,.7fr)}.cart-line{grid-template-columns:minmax(125px,1.4fr) 82px 55px 95px 62px 62px 75px 24px}}@media(max-width:1000px){.pos-layout{grid-template-columns:1fr}.pos-catalog>.cart-lines{max-height:280px}.pos-cart{min-height:auto}.cart-line{grid-template-columns:minmax(135px,1.5fr) 90px 58px 100px 70px 70px 80px 25px}}@media(max-width:700px){.cart-line{grid-template-columns:1fr 90px 25px}.cart-product{grid-column:1/2}.batch-choice,.stock-cell,.qty-control,.inline-field{grid-row:auto}.cart-line-total{grid-column:2}.cart-remove{grid-column:3}.payment-methods{grid-template-columns:repeat(3,1fr)}}


/* Full-height no-page-scroll cashier mode */
body:has(.retail-pos){overflow:hidden}
body:has(.retail-pos) #wrapper,body:has(.retail-pos) .app-content{height:100vh;overflow:hidden}
body:has(.retail-pos) .topbar{min-height:60px;height:60px;padding:7px 20px}
body:has(.retail-pos) .topbar p{margin:1px 0;font-size:10px}
body:has(.retail-pos) .main-content{height:calc(100vh - 60px);max-width:none;padding:6px 8px 0;overflow:hidden}
body:has(.retail-pos) .page-footer{display:none}
body:has(.retail-pos) .retail-pos{height:100%;margin:0;background:#eef2f7;display:flex;flex-direction:column}
body:has(.retail-pos) .pos-command{flex:0 0 58px;min-height:58px;padding:8px 16px;border-radius:9px 9px 0 0}
body:has(.retail-pos) .pos-command h1{font-size:19px;margin:1px 0}
body:has(.retail-pos) .pos-command .eyebrow{font-size:8px}
body:has(.retail-pos) .pos-clock b{font-size:16px}
body:has(.retail-pos) .pos-command .button{min-height:36px;padding:7px 13px}
body:has(.retail-pos) .validation{flex:0 0 auto;margin:0;padding:7px 12px;border-radius:0;font-size:11px;max-height:48px;overflow:auto}
body:has(.retail-pos) [data-pos-form]{display:flex;flex:1;min-height:0;flex-direction:column}
body:has(.retail-pos) .pos-layout{flex:1;height:auto;min-height:0;border-radius:0;grid-template-columns:minmax(640px,1.55fr) minmax(365px,.72fr)}
body:has(.retail-pos) .pos-catalog{min-height:0;padding:10px 12px;overflow:hidden}
body:has(.retail-pos) .catalog-toolbar{position:static;flex:0 0 auto}
body:has(.retail-pos) .scan-box{min-height:44px;padding:3px 10px}
body:has(.retail-pos) .scan-box input{min-height:34px;font-size:12px}
body:has(.retail-pos) .catalog-meta{padding:4px 3px 0;font-size:8px}
body:has(.retail-pos) .selected-strip{margin-top:6px;padding:5px 9px}
body:has(.retail-pos) .pos-catalog>.cart-lines{max-height:142px;min-height:45px}
body:has(.retail-pos) .empty-cart.compact{padding:7px}
body:has(.retail-pos) .cart-line{grid-template-columns:minmax(125px,1.5fr) minmax(78px,.75fr) 52px 92px 62px 62px 72px 23px;padding:5px 7px;gap:5px}
body:has(.retail-pos) .cart-line input,body:has(.retail-pos) .cart-line select{height:27px;min-height:27px}
body:has(.retail-pos) .cart-line .qty-control button{height:27px}
body:has(.retail-pos) .catalog-title{margin-top:7px}
body:has(.retail-pos) .category-pills{padding:5px 0 7px}
body:has(.retail-pos) .category-pills button{padding:4px 10px}
body:has(.retail-pos) .product-tiles{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:7px}
body:has(.retail-pos) .product-tile{min-height:108px;padding:8px;border-radius:8px}
body:has(.retail-pos) .product-symbol{width:27px;height:27px;margin-bottom:5px}
body:has(.retail-pos) .product-name{font-size:11px}
body:has(.retail-pos) .tile-foot{padding-top:5px}
body:has(.retail-pos) .tile-foot strong{font-size:12px}
body:has(.retail-pos) .pos-cart{min-height:0;overflow:hidden}
body:has(.retail-pos) .cart-head{padding:7px 12px}
body:has(.retail-pos) .customer-row{padding:0 10px 6px;gap:7px}
body:has(.retail-pos) .customer-row label{margin:4px 0 2px}
body:has(.retail-pos) .customer-row select{min-height:29px;height:29px}
body:has(.retail-pos) .bill-summary{padding:6px 12px}
body:has(.retail-pos) .bill-summary>div{padding:1px 0}
body:has(.retail-pos) .bill-summary .grand-total{padding-top:4px;margin-top:3px}
body:has(.retail-pos) .grand-total strong{font-size:20px}
body:has(.retail-pos) .payment-panel{margin:5px 10px;padding:7px 9px}
body:has(.retail-pos) .payment-methods{margin:5px 0;gap:3px}
body:has(.retail-pos) .payment-methods button{padding:5px 2px}
body:has(.retail-pos) .payment-fields input{min-height:28px;height:28px;margin-top:2px}
body:has(.retail-pos) .payment-balance{margin-top:4px;padding-top:4px}
body:has(.retail-pos) .pos-tools{padding:4px 10px;gap:5px}
body:has(.retail-pos) .pos-tools button{padding:5px}
body:has(.retail-pos) .checkout-button{min-height:38px;padding:8px 11px;margin:0 10px}
body:has(.retail-pos) .pos-status{margin:3px 10px 4px}
@media(max-width:1050px){body:has(.retail-pos){overflow:auto}body:has(.retail-pos) #wrapper,body:has(.retail-pos) .app-content{height:auto;overflow:visible}body:has(.retail-pos) .main-content{height:auto;overflow:visible}body:has(.retail-pos) .pos-layout{grid-template-columns:1fr}body:has(.retail-pos) .pos-catalog{overflow:visible}}

/* Keep the posted invoice and printing inside the sales counter. */
.pos-completed{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;padding:7px 14px;background:#e8f7f0;border-bottom:1px solid #b6dfcd;color:#116044;font-size:13px}
.pos-completed span{margin-left:14px}.pos-receipt-actions{display:flex;gap:6px;flex-wrap:wrap}.pos-receipt-actions button{border:1px solid #cbd5e1;border-radius:6px;background:white;color:#173052;padding:6px 12px;font-size:12px;cursor:pointer}
.pos-receipt-dialog{width:min(850px,92vw);max-height:85vh;overflow:auto;border:1px solid #d7deea;border-radius:12px;padding:22px;color:#172b48}.pos-receipt-dialog::backdrop{background:#12203899}.pos-receipt-dialog>.pos-receipt-actions{justify-content:flex-end;margin-bottom:16px}.pos-receipt-paper table{width:100%;border-collapse:collapse}.pos-receipt-paper th,.pos-receipt-paper td{padding:9px 6px;border-bottom:1px solid #ddd;text-align:right}.pos-receipt-paper th:first-child,.pos-receipt-paper td:first-child{text-align:left}.pos-receipt-paper small{display:block}.pos-receipt-paper .totals{margin-left:auto;max-width:300px}
@media print{
 body:has(.retail-pos),body:has(.retail-pos) #wrapper,body:has(.retail-pos) .app-content,body:has(.retail-pos) .main-content,body:has(.retail-pos) .retail-pos{height:auto!important;overflow:visible!important;width:auto!important;display:block!important}
 .retail-pos>.pos-command,.retail-pos>.pos-completed,.retail-pos>[data-pos-form],.pos-receipt-actions{display:none!important}
 .pos-receipt-dialog:not([open]),.pos-receipt-dialog[open]{display:block!important;position:static!important;max-height:none!important;width:100%!important;max-width:none!important;border:0!important;padding:0!important;margin:0!important;overflow:visible!important}
 .pos-receipt-dialog::backdrop{display:none!important}.pos-receipt-paper{font-size:11pt}.pos-receipt-paper tr{break-inside:avoid}
 body.print-thermal .pos-receipt-dialog:not([open]),body.print-thermal .pos-receipt-dialog[open]{width:72mm!important}.print-thermal .pos-receipt-paper{font-size:8pt}.print-thermal .pos-receipt-paper h2{font-size:12pt}.print-thermal .pos-receipt-paper td,.print-thermal .pos-receipt-paper th{padding:4px 2px;overflow-wrap:anywhere}
}
/* Dedicated roll receipt: no squeezed six-column A4 table. */
.thermal-receipt{display:none}
@media print{
 body.print-thermal:has(.thermal-receipt){margin:0!important;padding:0!important;color:#000!important;background:#fff!important}
 body.print-thermal:has(.thermal-receipt) .main-content>*:not(.retail-pos):not(.thermal-receipt){display:none!important}
 body.print-thermal:has(.thermal-receipt) .pos-receipt-paper{display:none!important}
 body.print-thermal .thermal-receipt{display:block!important;width:76mm!important;max-width:100%!important;margin:0!important;padding:0!important;font:10pt/1.35 Arial,Helvetica,sans-serif!important;color:#000!important;background:#fff!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 body.print-thermal .pos-receipt-dialog:not([open]),body.print-thermal .pos-receipt-dialog[open]{width:76mm!important}
 body.print-thermal .thermal-receipt *{color:#000!important;box-shadow:none!important;text-shadow:none!important}
 .thermal-receipt .tr-header{text-align:center;margin-bottom:10px}.thermal-receipt .tr-header>strong{font-size:11pt;display:block}.thermal-receipt p{margin:3px 0}.thermal-receipt h2{font-size:11pt;letter-spacing:1px;margin:10px 0 6px}
 .thermal-receipt .tr-pair{display:flex;justify-content:space-between;gap:10px;margin:3px 0}.thermal-receipt .tr-pair>:last-child{text-align:right}.thermal-receipt .tr-customer{margin:6px 0}
 .thermal-receipt .tr-columns{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:6px}.thermal-receipt .tr-columns>:not(:first-child){text-align:right}.thermal-receipt .tr-rule{border-top:1px dashed #000;padding-top:6px;margin-top:6px}
 .thermal-receipt .tr-item{padding:6px 0;break-inside:avoid;border-bottom:1px dotted #aaa}.thermal-receipt .tr-item>strong{display:block;margin-bottom:3px}.thermal-receipt small{display:block;font-size:8pt;line-height:1.3}
 .thermal-receipt .tr-total{font-size:13pt;border-top:2px solid #000;border-bottom:2px solid #000;padding:8px 0;margin-top:8px;break-inside:avoid}.thermal-receipt .tr-footer{text-align:center;font-size:9pt;margin:12px 0 4px;break-inside:avoid}
 body.print-58mm .thermal-receipt,body.print-58mm .pos-receipt-dialog:not([open]),body.print-58mm .pos-receipt-dialog[open]{width:54mm!important}body.print-58mm .thermal-receipt{font-size:9pt!important}body.print-58mm .thermal-receipt .tr-total{font-size:11pt}
}
.payment-desk-heading{display:flex;justify-content:space-between;align-items:center;gap:6px}.payment-desk-heading label{font-size:10px;margin:0;max-width:52%}.payment-desk-heading select{padding:3px;height:28px;font-size:10px}
.payment-methods{grid-template-columns:repeat(6,minmax(0,1fr))}.tender-rows{max-height:155px;overflow:auto;margin-top:6px}.tender-row{display:grid;grid-template-columns:85px minmax(0,1fr) 24px;gap:5px;margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid #d8e0eb}.tender-row input,.tender-row select{min-width:0;width:100%;height:31px;padding:4px 6px;font-size:12px}.tender-row .tender-ledger{grid-column:1/-1}.tender-row .tender-reference{grid-column:1/-1}.tender-row button{border:0;background:#fff0f0;color:#b42318;border-radius:4px}.tender-actions{display:flex;gap:6px;margin:5px 0}.tender-actions button{font-size:11px;padding:4px 7px;background:white;border:1px solid #cbd5e1;border-radius:5px}.credit-toggle{display:flex;gap:5px;align-items:center;font-size:11px!important;margin:5px 0}.credit-toggle input{width:auto;height:auto}.payment-panel>small{display:block;font-size:9px;color:#65748b}.payment-panel .payment-balance{padding:3px 0;margin:0}.receipt-payments{border-top:1px dashed #888;margin-top:10px;padding-top:6px}.receipt-payments h3{font-size:13px}.receipt-payments .tr-pair{display:flex;justify-content:space-between;gap:12px;font-size:12px}.thermal-receipt .receipt-payments{break-inside:avoid}

/* Reliable print surface for invoices, vouchers, reports, labels and POS receipts. */
@media print{
 html,body,#wrapper,.app-content,.main-content{width:auto!important;max-width:none!important;min-height:0!important;height:auto!important;overflow:visible!important;background:#fff!important}
 body{margin:0!important;color:#111!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .main-content{display:block!important}
 .table-panel,.table-wrap,.dev-table-wrap,.trial-table-wrap{overflow:visible!important;max-height:none!important}
 table{page-break-inside:auto}
 thead{display:table-header-group}
 tfoot{display:table-footer-group}
 tr,.panel,.invoice-meta,.invoice-bottom,.voucher-report-summary,.barcode-label{break-inside:avoid;page-break-inside:avoid}
 a{color:inherit!important;text-decoration:none!important}
 body:has(.retail-pos) .retail-pos{display:block!important;width:100%!important;height:auto!important;overflow:visible!important;background:#fff!important}
 body:has(.retail-pos) .retail-pos>*:not(.pos-receipt-dialog){display:none!important}
 body:has(.retail-pos) .retail-pos>.pos-receipt-dialog{display:block!important;visibility:visible!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;overflow:visible!important;background:#fff!important;color:#111!important}
 body:has(.retail-pos) .pos-receipt-dialog::backdrop{display:none!important}
 body:not(.print-thermal) .pos-receipt-paper{display:block!important}
 body:not(.print-thermal) .thermal-receipt{display:none!important}
}
@media(min-width:1051px){body:has(.retail-pos) .pos-cart{overflow-y:auto}body:has(.retail-pos) .payment-panel{padding:8px}body:has(.retail-pos) .checkout-button{flex-shrink:0;min-height:40px}}
.pos-correct-link{display:inline-flex;align-items:center;border:1px solid #e5a93b;border-radius:6px;background:#fff8e8;color:#7d5200;padding:6px 12px;font-size:12px;font-weight:650}.pos-correct-link:hover{background:#ffefc7;text-decoration:none}.correction-note{border-color:#eccb83;background:#fffbef}.correction-note p{max-width:900px;margin-bottom:10px}
.business-profile-panel{margin-top:16px}.business-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:9px;margin:14px 0}.business-profile-card{display:flex;align-items:flex-start;gap:9px;margin:0;padding:12px;border:1px solid #dce3ed;border-radius:9px;background:#fff;cursor:pointer}.business-profile-card:has(input:checked){border-color:#5069dc;background:#f1f4ff;box-shadow:0 0 0 2px #5069dc18}.business-profile-card input{width:auto;margin-top:3px}.business-profile-card span{display:flex;flex-direction:column;gap:3px}.business-profile-card strong{font-size:13px;color:#172b48}.business-profile-card small{font-size:10px;line-height:1.4;color:#64748b}
.subscription-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px;background:linear-gradient(110deg,#172b48,#294b7b);color:#fff}.subscription-summary h2{margin:3px 0;color:#fff}.subscription-summary p{margin:0;color:#d7e2f1}.subscription-summary .eyebrow{color:#aec3df}.subscription-meters{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:7px}.subscription-meters span{padding:8px 10px;border:1px solid #ffffff25;border-radius:7px;background:#ffffff10;font-size:11px}@media(max-width:800px){.subscription-summary{align-items:stretch;flex-direction:column}.subscription-meters{grid-template-columns:1fr}}
.developer-entry{display:block;margin-top:.65rem;font-size:.8rem;opacity:.72}
.dev-setup-link{display:block;margin:1rem 0;padding:.8rem;text-align:center;background:#eaf7f3;color:#08715a;border:1px solid #b9e2d7;border-radius:8px;font-weight:800;text-decoration:none}
.dev-plan-catalog{background:#fff;border:1px solid #d9e3ef;border-radius:14px;padding:1.15rem;margin-bottom:1rem}.dev-plan-title{display:flex;align-items:center;justify-content:space-between}.dev-plan-title h2{margin:.25rem 0 .8rem}.dev-plan-title>span{font-size:.8rem;color:#6d7a8e}.dev-create-plan{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}.dev-create-plan label{font-size:.7rem;text-transform:uppercase;color:#647289;font-weight:800}.dev-create-plan input,.dev-create-plan select{box-sizing:border-box;width:100%;display:block;margin-top:.3rem;padding:.58rem;border:1px solid #c8d3e1;border-radius:7px;background:#fff}.dev-create-plan button{align-self:end;padding:.65rem;border:0;border-radius:7px;background:#174d7c;color:#fff;font-weight:800}.dev-plan-chips{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.8rem}.dev-plan-chips span{padding:.45rem .65rem;background:#eef4fa;border-radius:99px;font-size:.76rem}@media(max-width:900px){.dev-create-plan{grid-template-columns:repeat(2,1fr)}}
.dev-primary-link{display:inline-block;padding:.65rem .9rem;background:#176f5c;color:#fff;border-radius:8px;text-decoration:none;font-weight:800}.dev-plan-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.75rem;margin-top:.7rem}.dev-plan-summary{position:relative;display:flex;flex-direction:column;gap:.4rem;padding:1rem;border:1px solid #dce4ef;border-radius:10px;color:#17233a;text-decoration:none;background:#f8fafc}.dev-plan-summary .dev-status{position:absolute;right:.7rem;top:.7rem}.dev-plan-summary h3{margin:0;padding-right:4rem}.dev-plan-summary small{color:#708097}.dev-plan-summary strong{font-size:1.45rem;margin-top:.5rem}.dev-plan-summary strong em{font-size:.72rem;font-style:normal;color:#778397}.dev-plan-summary>b{margin-top:.4rem;color:#176f5c}.dev-form-page{max-width:1100px;margin:1.5rem auto;padding:0 1rem}.dev-plan-editor,.dev-detail-card{background:#fff;border:1px solid #d9e3ef;border-radius:15px;padding:1.4rem}.dev-editor-section{display:flex;gap:.8rem;align-items:center;border-top:1px solid #e4e9f1;padding-top:1.1rem;margin-top:1.1rem}.dev-editor-section:first-of-type{border-top:0;margin-top:0;padding-top:0}.dev-editor-section h2{margin:0}.dev-editor-section p{margin:.2rem 0;color:#748196}.dev-step{display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:#1e477d;color:#fff;font-weight:800}.dev-editor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;margin-top:1rem}.dev-editor-grid.two{grid-template-columns:repeat(2,1fr)}.dev-editor-grid label{font-size:.75rem;font-weight:800;color:#65738a;text-transform:uppercase}.dev-editor-grid input,.dev-editor-grid select{box-sizing:border-box;width:100%;display:block;margin-top:.35rem;padding:.75rem;border:1px solid #c7d2e1;border-radius:8px;background:#fff}.dev-editor-grid .dev-check{display:flex;align-items:center;gap:.5rem;text-transform:none}.dev-editor-grid .dev-check input{width:auto;margin:0}.dev-editor-actions{display:flex;justify-content:flex-end;align-items:center;gap:1rem;margin-top:1.3rem}.dev-editor-actions a{color:#52627b}.dev-editor-actions button{padding:.8rem 1.1rem;border:0;border-radius:8px;background:#176f5c;color:#fff;font-weight:800}.dev-detail-hero{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1rem}.dev-detail-hero article{background:#fff;border:1px solid #d9e3ef;border-radius:14px;padding:1.3rem}.dev-detail-hero span{display:block;font-size:.72rem;text-transform:uppercase;color:#748196;font-weight:800}.dev-detail-hero strong{display:block;font-size:1.8rem;margin-top:.35rem}.dev-limit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;margin-top:.8rem}.dev-limit-grid span{background:#f1f5fa;border-radius:9px;padding:1rem;color:#6b7890}.dev-limit-grid b{display:block;font-size:1.25rem;color:#182740;margin-bottom:.2rem}@media(max-width:800px){.dev-editor-grid,.dev-limit-grid{grid-template-columns:repeat(2,1fr)}.dev-detail-hero{grid-template-columns:1fr}}
.dev-body,.dev-console-body{margin:0;background:#f2f5fa;color:#17233a;font-family:Inter,Segoe UI,Arial,sans-serif}.dev-login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(320px,1.05fr) minmax(360px,.95fr)}.dev-login-brand{padding:clamp(3rem,7vw,7rem);display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,#0e1d38,#1f4774);color:white}.dev-kicker{font-size:.72rem;letter-spacing:.19em;font-weight:800;color:#70d8c2}.dev-login-brand h1{font-size:clamp(2.5rem,5vw,5rem);line-height:1.02;margin:1rem 0}.dev-login-brand p{max-width:34rem;font-size:1.1rem;line-height:1.65;color:#d3dfef}.dev-security-note{margin-top:2rem;padding:1rem;border:1px solid #ffffff2e;border-radius:12px;color:#cbd8e9}.dev-login-panel{display:grid;place-items:center;padding:2rem}.dev-login-card{width:min(430px,100%);background:white;border:1px solid #dce3ed;border-radius:18px;padding:2.25rem;box-shadow:0 20px 60px #1c35571f}.dev-login-card h2{font-size:2rem;margin:.55rem 0}.dev-login-card>p{color:#617087;margin-bottom:1.75rem}.dev-login-card label{display:block;font-weight:700;margin:.95rem 0 .4rem}.dev-login-card input{box-sizing:border-box;width:100%;padding:.85rem;border:1px solid #bdc9d9;border-radius:8px;font-size:1rem}.dev-login-card .button{margin-top:1.35rem}.dev-console-head{background:#142b4e;color:white;padding:1.2rem clamp(1rem,4vw,4rem);display:flex;align-items:center;justify-content:space-between}.dev-console-head h1{margin:.3rem 0 .1rem}.dev-console-head p{margin:0;color:#bdcce0}.dev-logout{background:#ffffff12;border:1px solid #ffffff4a;color:white;border-radius:8px;padding:.75rem 1rem}.dev-console-main{max-width:1500px;margin:auto;padding:1.5rem}.dev-alert{padding:1rem;border-radius:10px;margin-bottom:1rem}.dev-alert.success{background:#dcf7ed;color:#09684e}.dev-alert.error{background:#fee7e7;color:#a62020}.dev-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.2rem}.dev-stats article{background:white;border:1px solid #dde4ee;border-radius:12px;padding:1rem}.dev-stats strong{display:block;font-size:1.65rem}.dev-stats span{color:#68758a;font-size:.85rem}.dev-customer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(570px,1fr));gap:1rem}.dev-customer-card{background:white;border:1px solid #dae3ef;border-radius:14px;padding:1.15rem;box-shadow:0 6px 24px #283e5b0b}.dev-customer-card>header{display:flex;justify-content:space-between;gap:1rem}.dev-customer-card h2{font-size:1.15rem;margin:0 0 .2rem}.dev-ref{font-size:.78rem;color:#728098}.dev-status{height:max-content;border-radius:99px;padding:.3rem .6rem;font-size:.72rem;font-weight:800}.dev-status.ok{background:#d9f7eb;color:#087157}.dev-status.warn{background:#fff0ca;color:#875500}.dev-status.stop{background:#fee0e0;color:#a21d1d}.dev-usage{display:flex;flex-wrap:wrap;gap:.5rem;margin:.9rem 0;padding:.65rem;background:#f5f7fb;border-radius:8px}.dev-usage span{font-size:.78rem;padding-right:.6rem;border-right:1px solid #d6deea}.dev-plan-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}.dev-plan-form label{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;color:#647289;font-weight:700}.dev-plan-form input,.dev-plan-form select{box-sizing:border-box;display:block;width:100%;margin-top:.3rem;padding:.58rem;border:1px solid #c8d3e1;border-radius:7px;background:white}.dev-plan-form button{align-self:end;padding:.62rem;background:#176f5c;color:white;border:0;border-radius:7px;font-weight:800}@media(max-width:800px){.dev-login-shell{grid-template-columns:1fr}.dev-login-brand{display:none}.dev-stats{grid-template-columns:repeat(2,1fr)}.dev-customer-grid{grid-template-columns:1fr}.dev-plan-form{grid-template-columns:repeat(2,1fr)}}

/* Self-service registration */
.signup-body{margin:0;background:#f3f6fb;color:#13213a;font-family:Inter,Segoe UI,Arial,sans-serif}.signup-head{height:72px;background:#132f56;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,28px)}.signup-head a{color:#fff;text-decoration:none}.signup-brand{font-size:21px;font-weight:700;display:flex;gap:12px;align-items:center}.signup-brand b{background:#2b65d9;border-radius:9px;padding:9px 13px}.signup-main{max-width:1240px;margin:36px auto 70px;padding:0 24px}.signup-intro{text-align:center;margin-bottom:28px}.signup-intro span,.signup-complete>span{letter-spacing:.18em;font-size:12px;font-weight:800;color:#247b6a}.signup-intro h1{font-size:42px;margin:10px 0}.signup-intro p{color:#60708b}.signup-form{display:grid;gap:20px}.signup-form>section{background:#fff;border:1px solid #d8e0ec;border-radius:16px;padding:24px;box-shadow:0 12px 30px rgba(27,48,80,.06)}.signup-section-title{display:flex;gap:13px;align-items:start;margin-bottom:18px}.signup-section-title>b{background:#214a8a;color:white;border-radius:50%;width:32px;height:32px;display:grid;place-items:center}.signup-section-title h2{margin:0 0 4px;font-size:21px}.signup-section-title p{margin:0;color:#687892}.signup-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.signup-plan{border:1px solid #ccd6e5;border-radius:12px;padding:17px;display:grid;gap:8px;cursor:pointer}.signup-plan:has(input:checked){border:2px solid #315fd4;background:#f0f5ff}.signup-plan input{width:auto;margin:0}.signup-plan strong{font-size:17px}.signup-plan span{font-weight:800;color:#173a70}.signup-plan small{color:#657590;line-height:1.5}.signup-cycle{display:flex;gap:18px;margin-top:18px;flex-wrap:wrap}.signup-cycle label{display:flex;align-items:center;gap:7px}.signup-cycle input{width:auto}.signup-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.signup-grid label{display:grid;gap:7px;font-weight:650}.signup-grid input{padding:13px;border:1px solid #bdc9da;border-radius:9px;font-size:16px}.signup-submit{border:0;border-radius:11px;background:#16845f;color:white;font-size:18px;font-weight:750;padding:17px;cursor:pointer}.signup-help{text-align:center;color:#657590;margin:0}.signup-complete{max-width:620px;margin:12vh auto;background:white;border:1px solid #d7e1ed;border-radius:20px;padding:54px;text-align:center}.signup-complete h1{font-size:38px}.signup-complete p{color:#64748b;line-height:1.7}.signup-complete a{display:inline-block;background:#16845f;color:white;text-decoration:none;border-radius:9px;padding:14px 24px;font-weight:700}.signup-tick{width:64px;height:64px;border-radius:50%;background:#daf6eb;color:#087453;font-size:34px;display:grid;place-items:center;margin:0 auto 20px}@media(max-width:700px){.signup-grid{grid-template-columns:1fr}.signup-intro h1{font-size:32px}.signup-head{padding:0 18px}.signup-head>a:last-child{font-size:13px}}
.signup-mail{width:64px;height:64px;border-radius:50%;background:#e5efff;color:#2457ad;font-size:30px;display:grid;place-items:center;margin:0 auto 20px}.signup-mail.error{background:#fee8e7;color:#b42318}
.signup-grid select.signup-select{padding:13px;border:1px solid #bdc9da;border-radius:9px;background:#fff;font-size:16px;color:#13213a}.field-help{color:#6b7890;font-weight:400}.field-error{color:#b42318;font-size:13px;font-weight:600}
.dev-title-actions{display:flex;gap:.6rem;align-items:center}.dev-secondary-link{display:inline-block;padding:.65rem .9rem;border:1px solid #b9c8da;border-radius:8px;color:#174d7c;text-decoration:none;font-weight:800}.dev-old-price{text-decoration:line-through;color:#8b96a7;margin-top:.45rem}.dev-coupon-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:.75rem;margin-top:1rem}.dev-coupon-list article{display:grid;gap:.45rem;padding:1rem;border:1px solid #dce4ef;border-radius:10px;background:#f8fafc}.dev-coupon-list header{display:flex;justify-content:space-between}.dev-coupon-list p{margin:0;color:#68758a}.dev-coupon-list small{color:#68758a}.signup-coupon{margin-top:18px;padding:14px;background:#f5f8fc;border:1px solid #d8e0ec;border-radius:10px;display:grid;grid-template-columns:minmax(220px,360px) 1fr;gap:12px;align-items:end}.signup-coupon label{display:grid;gap:6px;font-weight:700}.signup-coupon input{padding:11px;border:1px solid #bdc9da;border-radius:8px;font-size:15px}.signup-coupon small{color:#657590;line-height:1.5}@media(max-width:700px){.signup-coupon{grid-template-columns:1fr}}

.account-addon-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.account-addon-grid article{border:1px solid #d9e3ef;border-radius:12px;padding:1rem;background:#fff;display:grid;gap:.75rem}.account-addon-grid article>header{display:flex;justify-content:space-between}.account-addon-grid h3,.account-addon-grid p{margin:0}.addon-prices{display:flex;gap:1rem}.addon-prices b{font-size:1.25rem;color:#173a70}.addon-prices small{font-size:.7rem;color:#718097}.account-addon-grid form{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.account-addon-grid form label{font-size:.75rem;font-weight:700}.account-addon-grid form input,.account-addon-grid form select{box-sizing:border-box;width:100%;padding:.6rem;border:1px solid #c6d2e1;border-radius:7px;margin-top:.25rem}.account-addon-grid form button{grid-column:1/-1;padding:.7rem;border:0;border-radius:7px;background:#176f5c;color:#fff;font-weight:800}
.party-master-form{display:grid;gap:1rem}.party-master-form fieldset{border:1px solid #dbe3ee;border-radius:12px;padding:1rem}.party-master-form legend{font-weight:800;color:#173a70;padding:0 .45rem}.party-master-form textarea{box-sizing:border-box;width:100%;border:1px solid #c7d2df;border-radius:8px;padding:.75rem}.party-check{display:flex;align-items:end}.party-check label{display:flex!important;align-items:center;gap:.5rem;padding:.75rem}.party-check input{width:auto!important}.span-2{grid-column:span 2}.party-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.party-detail-grid h2{margin-top:0}.party-detail-grid dl{display:grid;grid-template-columns:130px 1fr;gap:.65rem;margin:0}.party-detail-grid dt{color:#6b7890;font-size:.8rem}.party-detail-grid dd{margin:0;font-weight:650;overflow-wrap:anywhere}.danger-zone{margin-top:1rem;display:flex;align-items:center;justify-content:space-between}.danger-zone h3,.danger-zone p{margin:.2rem 0}.button.danger{background:#bd2929}@media(max-width:900px){.party-detail-grid{grid-template-columns:1fr}.span-2{grid-column:auto}}
.company-tax-highlight{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:20px;padding:22px 26px;border:1px solid;border-radius:16px}.company-tax-highlight.gst{background:#ecfdf5;border-color:#6ee7b7;color:#065f46}.company-tax-highlight.non-gst{background:#fff7ed;border-color:#fdba74;color:#9a3412}.company-tax-highlight h2{margin:5px 0;font-size:30px}.company-tax-highlight p{margin:0}.tax-rule{display:grid;gap:5px;padding:12px 18px;background:#ffffffb8;border-radius:12px;min-width:300px}.tax-mode-badge{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800;vertical-align:middle}.tax-mode-badge.gst{background:#d1fae5;color:#047857}.tax-mode-badge.non-gst{background:#ffedd5;color:#c2410c}@media(max-width:800px){.company-tax-highlight{display:block}.tax-rule{margin-top:14px;min-width:0}}
.product-master-form{display:grid;gap:18px}.product-master-form fieldset{margin:0}.product-master-form legend{padding:0 10px;font-size:17px;font-weight:750;color:#1d355e}.product-master-form textarea{width:100%;padding:11px 13px;border:1px solid #cbd3e0;border-radius:7px;resize:vertical}.product-form-footer{position:sticky;bottom:10px;z-index:4;display:flex;justify-content:flex-end;padding:12px;background:#ffffffed;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 25px #17233a18}.product-form-footer .button{min-width:190px}

.table-panel th.action-column,.table-panel td.action-column,.table-wrap th.action-column,.table-wrap td.action-column{width:1%;white-space:nowrap}.grid-action-group{display:flex;align-items:center;gap:6px}.grid-action-group form{margin:0}.grid-action{display:inline-flex;align-items:center;justify-content:center;min-height:34px;box-sizing:border-box;padding:6px 12px;border:1px solid #c7d3e7;border-radius:8px;background:#fff;color:#23427b;font:inherit;font-size:12px;font-weight:750;text-decoration:none;cursor:pointer}.grid-action:hover{background:#edf3ff;border-color:#829bd0;text-decoration:none}.grid-action.danger{border-color:#efb3b3;background:#fff7f7;color:#b42318}.grid-action.danger:hover{background:#fee7e7}.generated-code{min-height:48px;box-sizing:border-box;padding:9px 12px;border:1px solid #b9c9df;border-radius:8px;background:#f3f7fd;display:flex;flex-direction:column;justify-content:center}.generated-code strong{font-family:Consolas,monospace;font-size:16px;color:#173a70}.generated-code small{color:#64748b}


.master-tabs{display:flex;gap:8px;margin:-4px 0 18px;padding:5px;background:#e9eef6;border:1px solid #d5dfec;border-radius:10px;width:max-content}.master-tabs a{padding:9px 18px;border-radius:7px;color:#41546f;font-weight:750;text-decoration:none}.master-tabs a:hover{background:#fff;text-decoration:none}.master-tabs a.active{background:#203f78;color:#fff;box-shadow:0 3px 10px #18345c24}@media(max-width:600px){.master-tabs{width:100%;box-sizing:border-box}.master-tabs a{flex:1;padding:9px 8px;text-align:center}}


.invoice-entry-grid{overflow-x:visible}.invoice-entry-grid .invoice-lines{width:100%;min-width:0;table-layout:fixed}.invoice-entry-grid .invoice-col-product{width:27%}.invoice-entry-grid .invoice-col-batch{width:10%}.invoice-entry-grid .invoice-col-quantity{width:9%}.invoice-entry-grid .invoice-col-unit{width:5%}.invoice-entry-grid .invoice-col-rate{width:9%}.invoice-entry-grid .invoice-col-discount{width:7%}.invoice-entry-grid .invoice-col-taxable{width:8%}.invoice-entry-grid .invoice-col-gst{width:6%}.invoice-entry-grid .invoice-col-tax{width:7%}.invoice-entry-grid .invoice-col-total{width:8%}.invoice-entry-grid .invoice-col-action{width:4%}.invoice-entry-grid .invoice-lines th:first-child{width:27%}.invoice-entry-grid .invoice-lines th{padding:11px 7px;line-height:1.3;white-space:normal}.invoice-entry-grid .invoice-lines th+th,.invoice-entry-grid .invoice-lines td+td{border-left:1px solid #edf0f5}.invoice-entry-grid .invoice-lines td{min-width:0!important;padding:10px 6px}.invoice-entry-grid .invoice-lines input,.invoice-entry-grid .invoice-lines select{width:100%;min-width:0!important;min-height:38px;padding:7px 8px}.invoice-entry-grid .invoice-lines select{margin-top:6px}.invoice-entry-grid .invoice-lines output{display:flex;width:100%;min-width:0;min-height:38px;align-items:center;justify-content:center;padding:7px 5px;border-radius:6px;background:#eef3fa;color:#23427b;font-weight:800}.invoice-entry-grid .invoice-lines .number{padding-top:19px;overflow-wrap:anywhere}.invoice-entry-grid .line-total{font-weight:800;color:#173a70}.invoice-entry-grid .remove-button{width:30px;height:34px}.invoice-live-summary{display:grid;grid-template-columns:repeat(8,minmax(110px,1fr));gap:1px;margin-top:14px;overflow:hidden;border:1px solid #d5dfec;border-radius:10px;background:#d5dfec}.invoice-live-summary>div{display:grid;gap:5px;padding:11px 13px;background:#fff}.invoice-live-summary span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:750}.invoice-live-summary strong{font-size:14px;color:#172b48}.invoice-live-summary .grand{background:#173a70}.invoice-live-summary .grand span,.invoice-live-summary .grand strong{color:#fff}.tax-preview-note{margin-top:8px!important}@media(max-width:1180px){.invoice-entry-grid{overflow-x:auto}.invoice-entry-grid .invoice-lines{min-width:1260px}}@media(max-width:900px){.invoice-live-summary{grid-template-columns:repeat(2,1fr)}.invoice-live-summary .grand{grid-column:1/-1}}
.invoice-line-actions{display:flex;justify-content:flex-start;padding-top:10px}.invoice-line-actions .button{min-width:130px}
.invoice-tax-status{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding:14px 17px;border:1px solid;border-radius:10px}.invoice-tax-status strong{display:block;margin:3px 0;font-size:17px}.invoice-tax-status p{margin:0;font-size:12px}.invoice-tax-status.gst{border-color:#86d6b5;background:#edfbf5;color:#075f47}.invoice-tax-status.non-gst{border-color:#f0c789;background:#fff8eb;color:#8a4b08}.invoice-tax-status [hidden],[data-gst-field][hidden],[data-gst-summary][hidden]{display:none!important}@media(max-width:700px){.invoice-tax-status{align-items:flex-start;flex-direction:column}}
[data-profile-gstin][hidden],[data-composition][hidden],[data-profile-gst-option][hidden]{display:none!important}
.purchase-advanced{display:grid;gap:10px;margin:14px 0}.purchase-advanced details.panel{padding:0;overflow:hidden}.purchase-advanced summary{padding:14px 16px;cursor:pointer;color:#173a70;font-weight:800;background:#f8fafc}.purchase-advanced details[open] summary{border-bottom:1px solid #e0e7f0}.purchase-advanced .compact-form-grid{padding:10px 16px 14px;gap:8px 14px}.purchase-advanced .compact-form-grid label{font-size:11px}.purchase-advanced .compact-form-grid input,.purchase-advanced .compact-form-grid select,.purchase-advanced .compact-form-grid textarea{min-height:38px;padding:7px 9px}.purchase-advanced .help{padding:0 16px 12px;margin:0}.discount-inputs{display:grid;grid-template-columns:42px minmax(52px,1fr);gap:4px}.discount-inputs input{padding-left:5px!important;padding-right:5px!important}.purchase-line-tools{display:flex;align-items:center;gap:10px;margin-top:8px;color:#66758a;font-size:11px}.purchase-line-tools .button{flex:0 0 auto}.row-actions{display:flex;align-items:center;gap:6px}.action-column{white-space:nowrap}@media(max-width:700px){.purchase-line-tools{align-items:flex-start;flex-direction:column}}
.batch-cell{display:grid;gap:5px}.batch-dates{display:grid;grid-template-columns:1fr 1fr;gap:4px}.batch-cell input,.batch-cell select{min-height:36px!important;padding:6px 7px!important}.invoice-col-charge{width:95px}.invoice-charges{margin-top:12px;padding:0!important;overflow:hidden}.invoice-charges summary{cursor:pointer;padding:12px 16px;font-weight:800;color:#173a70;background:#f8fafc}.charge-grid{display:grid;grid-template-columns:repeat(5,minmax(170px,1fr));gap:10px;padding:12px 16px}.charge-grid>div{display:grid;grid-template-columns:minmax(80px,1fr) 58px;align-items:center;gap:5px 7px}.charge-grid>div:last-child{display:block}.charge-grid label{font-size:11px;margin:0}.charge-grid input{min-height:36px;padding:6px 7px}.charge-grid small{display:block;margin-top:5px;color:#66758a}@media(max-width:1000px){.charge-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media(max-width:600px){.charge-grid{grid-template-columns:1fr}.batch-dates{grid-template-columns:1fr}}
.purchase-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.purchase-detail-summary p{margin:5px 0 0;overflow-wrap:anywhere}.purchase-detail-summary .wide{grid-column:1/-1}@media(max-width:900px){.purchase-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.purchase-detail-summary{grid-template-columns:1fr}}

/* Purchase invoice lines use two readable rows instead of overlapping table columns. */
.invoice-form[data-kind="Purchase"] .invoice-entry-grid{overflow:visible;border:0;background:transparent;box-shadow:none}
.invoice-form[data-kind="Purchase"] .invoice-lines,.invoice-form[data-kind="Purchase"] .invoice-lines tbody{display:block;width:100%;min-width:0!important}
.invoice-form[data-kind="Purchase"] .invoice-lines thead,.invoice-form[data-kind="Purchase"] .invoice-lines colgroup{display:none}
.invoice-form[data-kind="Purchase"] .invoice-lines tbody{display:grid;gap:12px}
.invoice-form[data-kind="Purchase"] .invoice-lines tbody tr{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px 12px;padding:15px 54px 15px 15px;border:1px solid #d9e2ef;border-radius:11px;background:#fff;box-shadow:0 4px 15px #17345f0a;white-space:normal}
.invoice-form[data-kind="Purchase"] .invoice-lines tbody tr:hover{background:#fff;border-color:#aebed5}
.invoice-form[data-kind="Purchase"] .invoice-lines td{display:block;min-width:0!important;padding:0;border:0!important}
.invoice-form[data-kind="Purchase"] .invoice-lines td::before{content:attr(data-label);display:block;margin-bottom:4px;color:#607089;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(1){grid-column:span 4}.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(2){grid-column:span 4}.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(3){grid-column:span 2}.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(4){grid-column:span 2}
.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(5),.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(6),.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(7),.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(8){grid-column:span 2}
.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(n+9):nth-child(-n+14){grid-column:span 1}
.invoice-form[data-kind="Purchase"] .invoice-lines td:last-child{position:absolute;top:13px;right:12px}
.invoice-form[data-kind="Purchase"] .invoice-lines td:last-child::before{display:none}
.invoice-form[data-kind="Purchase"] .invoice-lines input,.invoice-form[data-kind="Purchase"] .invoice-lines select{display:block;box-sizing:border-box;width:100%;min-width:0!important;min-height:36px;margin:0;padding:6px 8px}
.invoice-form[data-kind="Purchase"] .invoice-lines td.number{padding-top:0;text-align:left;overflow:visible}.invoice-form[data-kind="Purchase"] .invoice-lines td.number:not(.line-total){font-weight:650}.invoice-form[data-kind="Purchase"] .invoice-lines .line-total{font-size:15px}
.invoice-form[data-kind="Purchase"] .invoice-lines output{justify-content:flex-start;min-height:36px;padding:6px 9px}.batch-cell small{display:block;color:#64748b;font-size:9px;line-height:1.35}.batch-cell [hidden]{display:none!important}
@media(max-width:1050px){.invoice-form[data-kind="Purchase"] .invoice-lines tbody tr{grid-template-columns:repeat(6,minmax(0,1fr))}.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(1),.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(2){grid-column:span 3}.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(n+3):nth-child(-n+8){grid-column:span 2}.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(n+9):nth-child(-n+14){grid-column:span 1}}
@media(max-width:650px){.invoice-form[data-kind="Purchase"] .invoice-lines tbody tr{grid-template-columns:repeat(2,minmax(0,1fr));padding-right:48px}.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(1),.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(2){grid-column:1/-1}.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(n+3):nth-child(-n+8){grid-column:span 1}.invoice-form[data-kind="Purchase"] .invoice-lines td:nth-child(n+9):nth-child(-n+14){grid-column:span 1}}


/* BOM material rows: keep picker, unit, quantity and action in their own columns. */
.bom-material-grid{overflow:visible}
.bom-material-grid table{table-layout:fixed;width:100%;white-space:normal}
.bom-material-grid .bom-col-unit{width:92px}
.bom-material-grid .bom-col-quantity{width:180px}
.bom-material-grid .bom-col-action{width:66px}
.bom-material-grid th,.bom-material-grid td{box-sizing:border-box;padding:12px 14px;vertical-align:middle}
.bom-material-grid .bom-material-cell{min-width:0}
.bom-material-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;min-width:0}
.bom-material-grid [data-ops-search],.bom-material-grid [data-material-product],.bom-material-grid .bom-quantity-cell input{display:block;box-sizing:border-box;width:100%;min-width:0!important;margin:0}
.bom-material-grid [data-ops-status]:empty{display:none}
.bom-material-grid [data-ops-status]:not(:empty){display:block;margin-top:5px;white-space:normal}
.bom-unit-cell{text-align:center}
.bom-material-grid .line-unit{display:flex;min-width:0;justify-content:center;padding:10px 7px;border-radius:8px;background:#edf3fb;color:#17345f;font-weight:800}
.bom-action-cell{text-align:center}
.bom-action-cell button{width:36px;height:36px;border:1px solid #efcaca;border-radius:8px;background:#fff5f5;color:#b42318;font-size:19px;line-height:1;cursor:pointer}
.bom-action-cell button:hover{background:#fee7e7;border-color:#e89b9b}
@media(max-width:760px){.bom-material-grid{overflow-x:auto}.bom-material-grid table{min-width:690px}}

/* Universal manufacturing BOM */
.universal-bom-form{display:grid;gap:18px}.universal-bom-form fieldset{margin:0}.universal-bom-form legend{padding:0 10px;font-size:18px;font-weight:800;color:#173a70}.bom-header-grid{grid-template-columns:minmax(360px,2fr) repeat(2,minmax(180px,1fr))}.bom-check{display:flex;flex-direction:column;justify-content:center}.bom-check label,.compact-check{display:flex!important;align-items:center;gap:7px;text-transform:none!important}.bom-check input,.compact-check input{width:auto!important;min-height:0!important;margin:0!important}.universal-bom-grid{overflow-x:auto}.universal-bom-grid table{min-width:1180px}.universal-bom-grid .bom-col-material{width:32%}.universal-bom-grid .bom-col-requirement{width:22%}.universal-bom-grid .bom-col-supply{width:20%}.universal-bom-grid .bom-col-behaviour{width:21%}.universal-bom-grid .bom-col-action{width:58px}.universal-bom-grid td{vertical-align:top}.bom-item-meta{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px;padding:7px 9px;border-radius:7px;background:#f3f7fc;color:#64748b;font-size:11px}.bom-item-meta strong{color:#173a70}.bom-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.bom-mini-grid label,.bom-stack label{display:grid;gap:3px;color:#607089;font-size:10px;text-transform:uppercase;font-weight:750}.bom-mini-grid input,.bom-stack input,.bom-stack select{box-sizing:border-box;width:100%;min-width:0!important;margin:0;padding:8px;font-size:12px}.bom-stack{display:grid;gap:8px}.bom-net{grid-column:1/-1;padding:7px 9px;border-radius:7px;background:#e8f7f1;color:#087157;font-size:11px;font-weight:800}.bom-cost-note{display:flex;align-items:center;gap:15px;padding:14px 16px;border:1px solid #b9d9cd;border-radius:10px;background:#effaf6;color:#315d50}.bom-cost-note strong{color:#087157;white-space:nowrap}@media(max-width:1050px){.bom-header-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.bom-header-grid{grid-template-columns:1fr}.bom-cost-note{align-items:flex-start;flex-direction:column;gap:5px}}

.production-cost-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:9px}.production-cost-grid label{display:grid;gap:5px}.production-cost-grid input{box-sizing:border-box;width:100%}@media(max-width:900px){.production-cost-grid{grid-template-columns:repeat(2,1fr)}}

.production-cost-summary{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:1px;margin:12px 0;overflow:hidden;border:1px solid #d9e2ed;border-radius:9px;background:#d9e2ed}.production-cost-summary span{display:grid;gap:4px;padding:9px;background:#f7f9fc;color:#69788e;font-size:10px}.production-cost-summary b{color:#173a70;font-size:13px}@media(max-width:900px){.production-cost-summary{grid-template-columns:repeat(2,1fr)}}

/* Responsive BOM cards: every line stays fully visible without horizontal scrolling. */
.universal-bom-grid{overflow:visible;border:0;background:transparent}
.universal-bom-grid table,.universal-bom-grid tbody{display:block;width:100%;min-width:0!important}
.universal-bom-grid thead{display:none}
.universal-bom-grid tbody{display:grid;gap:14px}
.universal-bom-grid tbody tr{position:relative;display:grid;grid-template-columns:minmax(270px,1.4fr) minmax(220px,1fr) minmax(210px,.95fr) minmax(220px,1fr);gap:18px;padding:18px 62px 18px 18px;border:1px solid #dbe3ef;border-radius:12px;background:#fff;box-shadow:0 5px 18px #17233a0b;white-space:normal}
.universal-bom-grid tbody tr:hover{background:#fff;border-color:#afbdd2;box-shadow:0 8px 22px #17233a12}
.universal-bom-grid tbody td{display:block;min-width:0;padding:0;border:0}
.universal-bom-grid .bom-action-cell{position:absolute;top:16px;right:15px;padding:0}
.universal-bom-grid input,.universal-bom-grid select{width:100%;max-width:100%;min-width:0!important}
.bom-card-label{display:block;margin-bottom:9px;color:#52627a;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.bom-uom-rule{grid-column:1/-1;color:#66758a;font-size:10px;line-height:1.5}
.universal-bom-grid .compact-check{margin:4px 0 0!important;font-size:11px!important}
@media(max-width:1180px){.universal-bom-grid tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}.universal-bom-grid .bom-material-cell{grid-column:1/-1}}
@media(max-width:700px){.universal-bom-grid tbody tr{grid-template-columns:1fr;padding:16px 54px 16px 14px}.universal-bom-grid .bom-material-cell{grid-column:auto}.section-heading{align-items:flex-start;flex-wrap:wrap}.section-heading .button{width:100%}}

/* Compact, readable BOM entry screen. */
body:has(.universal-bom-form) .main-content{width:auto;max-width:100%;min-width:0;margin:0;padding:22px 20px 42px;overflow-x:hidden}
.universal-bom-form,.universal-bom-form>*{box-sizing:border-box;max-width:100%;min-width:0}
.universal-bom-form{gap:13px}
.universal-bom-form .panel{padding:17px 18px}
.universal-bom-form label{margin:7px 0 4px;font-size:11px}
.universal-bom-form input,.universal-bom-form select{min-height:38px;padding:7px 10px;font-size:13px}
.universal-bom-form .bom-header-grid{grid-template-columns:minmax(270px,2fr) repeat(2,minmax(150px,1fr));gap:5px 16px}
.universal-bom-form .bom-check{min-width:0;padding:3px 0;overflow-wrap:anywhere}
.universal-bom-form .bom-check label{line-height:1.35}
.universal-bom-form .bom-check small{font-size:10px;line-height:1.4}
.universal-bom-form .section-heading{width:100%;max-width:100%;margin:20px 0 12px;overflow:hidden}
.universal-bom-form .section-heading>div{min-width:0}
.universal-bom-form .section-heading h2{font-size:18px;margin-bottom:2px}
.universal-bom-form .section-heading p{margin:0;color:#66758a;font-size:11px;line-height:1.45}
.universal-bom-form .section-heading .button{flex:0 0 auto;min-height:38px;padding:7px 12px;font-size:12px}
.universal-bom-grid tbody{gap:10px}
.universal-bom-grid tbody tr{grid-template-columns:minmax(230px,1.4fr) minmax(180px,1fr) minmax(190px,1fr) minmax(190px,1fr);gap:12px;padding:13px 50px 13px 13px;border-radius:10px}
.universal-bom-grid .bom-action-cell{top:12px;right:11px}
.universal-bom-grid .bom-action-cell button{width:30px;height:30px;font-size:16px}
.universal-bom-grid .bom-material-fields,.universal-bom-grid .bom-stack{gap:6px}
.universal-bom-grid .bom-item-meta{gap:10px;margin-top:6px;padding:5px 7px}
.universal-bom-grid .bom-mini-grid{gap:6px}
.universal-bom-grid .bom-net{padding:6px 8px;line-height:1.35}
.universal-bom-grid .bom-card-label{margin-bottom:5px;font-size:9px}
.universal-bom-grid .compact-check{margin:2px 0!important;line-height:1.3}
.bom-bottom-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid #d8e1ed;border-radius:10px;background:#f7f9fc}
.bom-bottom-explode{display:flex!important;align-items:center;gap:8px;margin:0!important;color:#263d61;font-size:12px!important;font-weight:750}
.bom-bottom-explode input{width:auto!important;min-height:0!important;margin:0!important;padding:0!important}
.bom-bottom-actions .button{flex:0 0 auto;min-height:38px;padding:7px 14px;font-size:12px}
.branch-list{display:grid;gap:14px;margin-top:18px}.branch-card{border:1px solid #d8e1ef;border-radius:12px;overflow:hidden;background:#fff}.branch-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;background:#f7f9fd;border-bottom:1px solid #e4eaf3}.branch-card h3{margin:3px 0;font-size:18px}.branch-card>header form{margin:0}.branch-card .store-list{padding:8px 14px}.branch-card .store-list article:last-child{border-bottom:0}@media(max-width:760px){.branch-card>header{align-items:flex-start;flex-direction:column}}
.store-list .store-row-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:10px}.store-row-actions form{margin:0}.store-row-actions .grid-action{white-space:nowrap}.current-store-label{padding:5px 8px;border-radius:6px;background:#edf1f7;color:#53627a!important;font-weight:700}
.grid-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.action-column .grid-actions{flex-wrap:nowrap}
.current-branch-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px;border-color:#f0c3c3}.current-branch-actions h2{margin:4px 0}.current-branch-actions p{margin:0;color:var(--muted)}.current-branch-actions form{margin:0;flex:0 0 auto}.current-branch-actions .button.danger{background:#bd2929;color:#fff;border-color:#bd2929}
@media(max-width:1180px){.universal-bom-form .bom-header-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.universal-bom-form .bom-check{grid-column:1/-1}.universal-bom-grid tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body:has(.universal-bom-form) .main-content{padding:16px 12px 32px}.universal-bom-form .bom-header-grid,.universal-bom-grid tbody tr{grid-template-columns:1fr}.universal-bom-form .bom-check,.universal-bom-grid .bom-material-cell{grid-column:auto}.universal-bom-form .section-heading .button,.bom-bottom-actions .button{width:100%}.bom-bottom-actions{align-items:stretch;flex-direction:column}.current-branch-actions{align-items:stretch;flex-direction:column}.current-branch-actions .button{width:100%}}
.dev-console-head .dev-title-actions{display:flex;align-items:center;gap:.7rem}.dev-console-head .dev-title-actions form{margin:0}.dev-console-head .dev-primary-link{background:#39c39e;color:#082e29;border-color:#39c39e}.dev-company-manage{display:block;margin:-.15rem 0 .9rem;color:#165fb2;font-weight:800;text-decoration:none}.dev-company-manage:hover{text-decoration:underline}.dev-renew-card{display:grid;grid-template-columns:minmax(220px,.65fr) minmax(520px,1.35fr);gap:1.25rem;align-items:end}.dev-renew-card form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:.7rem;align-items:end}.dev-renew-card label{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;font-weight:800;color:#63718a}.dev-renew-card input,.dev-renew-card select{box-sizing:border-box;display:block;width:100%;margin-top:.35rem;padding:.7rem;border:1px solid #c8d3e1;border-radius:8px;background:#fff}.dev-renew-card button{padding:.72rem 1rem;border:0;border-radius:8px;background:#176f5c;color:#fff;font-weight:800}.dev-management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.dev-table-wrap{overflow:auto}.dev-table-wrap table{width:100%;border-collapse:collapse;font-size:.86rem}.dev-table-wrap th,.dev-table-wrap td{text-align:left;padding:.7rem;border-bottom:1px solid #e3e8f0;vertical-align:top}.dev-table-wrap th{font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;color:#66758b}.dev-table-wrap td small{display:block;color:#748198;margin-top:.2rem}.dev-detail-card{background:#fff;border:1px solid #dae3ef;border-radius:14px;padding:1.15rem;box-shadow:0 6px 24px #283e5b0b}.dev-detail-card h2{margin:.25rem 0}.dev-detail-card p{color:#66758b}.dev-detail-hero{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.dev-detail-hero article{background:#fff;border:1px solid #dae3ef;border-radius:14px;padding:1.15rem}.dev-detail-hero span,.dev-detail-hero small{display:block;color:#68758a}.dev-detail-hero strong{display:block;font-size:1.35rem;margin:.4rem 0}.dev-detail-hero .dev-status{display:inline-block;color:inherit}.dev-form-page{max-width:1100px;margin:auto;padding:1.5rem}.dev-plan-editor{background:#fff;border:1px solid #dae3ef;border-radius:16px;padding:1.4rem}.dev-editor-section{display:flex;gap:1rem;align-items:flex-start;margin:1rem 0}.dev-editor-section h2{margin:0}.dev-editor-section p{margin:.3rem 0;color:#68758a}.dev-step{display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:#176f5c;color:#fff}.dev-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.dev-editor-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.dev-editor-grid label{font-weight:700}.dev-editor-grid input,.dev-editor-grid select{box-sizing:border-box;display:block;width:100%;margin-top:.4rem;padding:.8rem;border:1px solid #c8d3e1;border-radius:8px;background:#fff}.dev-editor-actions{display:flex;justify-content:flex-end;align-items:center;gap:1rem;margin-top:1.4rem}.dev-editor-actions button{padding:.85rem 1.2rem;border:0;border-radius:8px;background:#176f5c;color:#fff;font-weight:800}@media(max-width:1050px){.dev-renew-card{grid-template-columns:1fr}.dev-renew-card form{grid-template-columns:repeat(2,minmax(0,1fr))}.dev-management-grid{grid-template-columns:1fr}}@media(max-width:700px){.dev-console-head{align-items:flex-start;gap:1rem}.dev-console-head .dev-title-actions{flex-direction:column;align-items:stretch}.dev-detail-hero,.dev-editor-grid,.dev-editor-grid.two{grid-template-columns:1fr}.dev-renew-card form{grid-template-columns:1fr}}
.dev-main-nav{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:center;gap:.45rem;padding:.65rem 1rem;background:#fff;border-bottom:1px solid #dce4ef;box-shadow:0 4px 16px #1c35570d}.dev-main-nav a{display:flex;align-items:center;gap:.45rem;padding:.65rem 1rem;border-radius:8px;color:#243a5b;font-weight:800;text-decoration:none}.dev-main-nav a:hover{background:#edf3fb;color:#0d5c9b}.dev-main-nav a span{display:grid;place-items:center;min-width:1.25rem;color:#17725f;font-size:1rem}.dev-main-nav .dev-nav-create{background:#176f5c;color:#fff}.dev-main-nav .dev-nav-create:hover{background:#0f5d4c;color:#fff}.dev-customer-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:1.4rem 0 .75rem}.dev-customer-section-title h2{margin:.2rem 0}.dev-customer-section-title p{margin:0;color:#68758a}.dev-company-manage{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.25rem 0 1rem;padding:.75rem .9rem;border:1px solid #b8cae1;border-radius:8px;background:#eef5ff;color:#124e91;font-weight:800;text-decoration:none}.dev-company-manage span{font-size:.72rem;color:#60758f;font-weight:600}.dev-company-manage:hover{border-color:#5e8fc8;background:#e4effd;text-decoration:none}@media(max-width:700px){.dev-main-nav{justify-content:flex-start;overflow-x:auto}.dev-main-nav a{white-space:nowrap}.dev-customer-section-title{align-items:stretch;flex-direction:column}.dev-company-manage{align-items:flex-start;flex-direction:column}}
.dev-stat-link{color:inherit;text-decoration:none}.dev-stat-link article{height:100%;transition:border-color .15s,transform .15s}.dev-stat-link:hover{text-decoration:none}.dev-stat-link:hover article{border-color:#5998d0;transform:translateY(-2px)}.dev-stat-link small{display:block;margin-top:.3rem;color:#176f5c;font-weight:800}.dev-renewal-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.dev-renewal-summary article{padding:1rem;background:#fff;border:1px solid #dce4ef;border-radius:12px}.dev-renewal-summary span{display:block;color:#68758a;font-size:.8rem}.dev-renewal-summary strong{display:block;margin-top:.35rem;font-size:1.55rem}.dev-renewal-summary .danger{border-left:4px solid #c83d3d}.dev-renewal-summary .danger strong{color:#a72121}.dev-renewal-summary .warning{border-left:4px solid #d99a1d}.dev-report-toolbar{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding:1rem;background:#fff;border:1px solid #dce4ef;border-radius:12px}.dev-report-toolbar form,.dev-report-toolbar label{margin:0}.dev-report-toolbar select{min-width:180px;margin-top:.3rem}.dev-report-toolbar>div{display:flex;gap:.6rem}.dev-report-toolbar button{font:inherit}.dev-renewal-report table{min-width:1020px}.dev-row-action{display:inline-block;padding:.5rem .65rem;border:1px solid #b8cae1;border-radius:7px;background:#eef5ff;color:#124e91;font-weight:800;white-space:nowrap}.dev-row-action:hover{text-decoration:none;background:#e2efff}.dev-renewal-empty{text-align:center!important;padding:3rem!important;color:#68758a}.dev-renewal-empty b,.dev-renewal-empty small{display:block}.dev-renewal-empty b{color:#17233a;font-size:1.05rem}@media(max-width:850px){.dev-renewal-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dev-report-toolbar{align-items:stretch;flex-direction:column}.dev-report-toolbar>div{flex-wrap:wrap}}@media print{.dev-console-head,.dev-main-nav,.dev-report-toolbar{display:none!important}.dev-console-main{max-width:none;padding:0}.dev-renewal-report{box-shadow:none;border:0}.dev-row-action{display:none}.dev-table-wrap{overflow:visible}.dev-renewal-report table{min-width:0;font-size:9px}}
.dev-company-register{margin-top:1rem}.dev-company-filters{display:grid;grid-template-columns:minmax(260px,2fr) repeat(4,minmax(140px,1fr)) auto;gap:.7rem;align-items:end;padding:1rem;background:#fff;border:1px solid #dce4ef;border-radius:12px 12px 0 0}.dev-company-filters label{margin:0;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:#63718a}.dev-company-filters input,.dev-company-filters select{margin-top:.3rem}.dev-company-filters button{min-height:43px;padding:.7rem 1rem;border:1px solid #b8c5d6;border-radius:7px;background:#fff;color:#34445c;font-weight:800}.dev-company-filters button:hover{background:#eef3f9}.dev-grid-result{padding:.65rem 1rem;background:#f7f9fc;border:1px solid #dce4ef;border-top:0;color:#68758a;font-size:.8rem}.dev-grid-result b{color:#17233a}.dev-company-table-wrap{overflow:auto;background:#fff;border:1px solid #dce4ef;border-top:0;border-radius:0 0 12px 12px}.dev-company-table{min-width:1700px;white-space:normal}.dev-company-table th{position:sticky;top:0;z-index:1;padding:.7rem .65rem;background:#f8fafd}.dev-company-table th button{display:flex;align-items:center;gap:.3rem;width:100%;padding:0;border:0;background:none;color:#66758b;font-size:.68rem;text-align:left;text-transform:uppercase;letter-spacing:.05em;font-weight:800}.dev-company-table th button:hover{color:#155c9d}.dev-company-table th button[data-direction=asc]::after{content:'▲';font-size:.55rem}.dev-company-table th button[data-direction=desc]::after{content:'▼';font-size:.55rem}.dev-company-table td{padding:.8rem .65rem;vertical-align:middle}.dev-company-table tbody tr[data-href]{cursor:pointer}.dev-company-table tbody tr[data-href]:hover,.dev-company-table tbody tr[data-href]:focus{background:#eef6ff;outline:none}.dev-company-table td small{display:block;margin-top:.2rem;color:#77859a}.dev-text-danger{color:#a72121!important;font-weight:800}.dev-text-warning{color:#9b6500!important;font-weight:800}.dev-subscription-settings{margin-top:1rem}.dev-subscription-settings .dev-plan-form{grid-template-columns:repeat(6,minmax(0,1fr));margin-top:1rem}.dev-subscription-settings .dev-plan-form button{min-height:43px}@media(max-width:1250px){.dev-company-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.dev-company-filters .wide{grid-column:span 2}.dev-subscription-settings .dev-plan-form{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.dev-company-filters{grid-template-columns:1fr}.dev-company-filters .wide{grid-column:auto}.dev-subscription-settings .dev-plan-form{grid-template-columns:1fr}}
.dev-row-actions{display:flex;flex-direction:column;align-items:stretch;gap:.4rem;min-width:155px}.dev-row-actions .dev-row-action{text-align:center}.dev-row-action.primary{border-color:#176f5c;background:#176f5c;color:#fff}.dev-row-action.primary:hover{background:#0f5d4c}
.report-heading-badges{display:flex;align-items:center;gap:.5rem}.tally-badge{background:#e9edff;color:#3447b8}.tally-filter{margin-bottom:1rem}.tally-report-head{display:flex;justify-content:space-between;gap:2rem;padding:1rem 1.2rem;background:#183660;color:#fff;border-radius:9px 9px 0 0}.tally-report-head div{display:flex;flex-direction:column}.tally-report-head span{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:#b8c8de}.tally-report-head strong{margin-top:.2rem;font-size:.9rem}.tally-report-head .positive{color:#92e2bf}.tally-report-head .negative{color:#ffb5b5}.tally-statement{border-radius:0;background:#fff}.tally-statement table{table-layout:fixed;white-space:normal}.tally-statement .tally-amount-col{width:15%}.tally-statement th,.tally-statement td{padding:12px 16px}.tally-statement th:nth-child(3),.tally-statement td:nth-child(3){border-left:2px solid #9fa9b8}.tally-statement .tally-side-title{padding:13px 16px;background:#edf1f7;color:#243650;font-size:.85rem}.tally-statement .tally-side-title span{float:right;color:#6c7a8e}.tally-statement tbody tr{height:54px}.tally-particular a{font-weight:700;color:#223e73}.tally-particular small,.tally-result-row small{display:block;margin-top:.15rem;color:#7a8798;font-size:.68rem}.tally-result-row td{background:#fff8e8;border-top:1px solid #e8d59e}.tally-statement tfoot th{background:#183660;color:#fff;border-top:2px solid #0d233f;font-size:.82rem}.tally-statement tfoot th:nth-child(3){border-left:2px solid #9fa9b8}.tally-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #d9e1ec;border-top:0;border-radius:0 0 9px 9px;background:#fff;overflow:hidden}.tally-summary-strip div{padding:1rem 1.2rem;border-right:1px solid #e1e6ee}.tally-summary-strip div:last-child{border:0}.tally-summary-strip span{display:block;color:#6d7a8c;font-size:.72rem}.tally-summary-strip strong{display:block;margin-top:.3rem;font-size:1.05rem}.tally-summary-strip .positive{color:#16835e}.tally-summary-strip .negative{color:#c3444d}@media(max-width:760px){.report-heading-badges{align-items:flex-end;flex-direction:column}.tally-report-head{align-items:flex-start;flex-direction:column;gap:.5rem}.tally-statement{overflow:auto}.tally-statement table{min-width:760px}.tally-summary-strip{grid-template-columns:1fr}.tally-summary-strip div{border-right:0;border-bottom:1px solid #e1e6ee}}@media print{.tally-filter,.report-heading-badges,.sidebar,.topbar,.page-footer{display:none!important}.tally-report-head{-webkit-print-color-adjust:exact;print-color-adjust:exact}.tally-statement a{display:inline!important;color:#111!important}.tally-statement tfoot th{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Tally-style Trading and Profit & Loss statement */
.tally-page-heading{align-items:flex-start}.tally-heading-actions{display:flex;gap:8px;align-items:center}.tally-heading-actions .button{margin:0}
.tally-filter{display:flex;align-items:end;gap:12px;margin-bottom:18px}.tally-filter>div{min-width:190px}.tally-filter .badge{align-self:center;margin:16px 0 0 auto}
.tally-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.tally-kpi{background:#fff;border:1px solid var(--border);border-radius:9px;padding:16px 18px}.tally-kpi span,.tally-kpi small{display:block;color:var(--muted)}.tally-kpi span{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.65px}.tally-kpi strong{display:block;font-size:22px;margin:5px 0 2px;font-variant-numeric:tabular-nums}.tally-kpi.income strong{color:#16835e}.tally-kpi.expense strong{color:#c3444d}.tally-kpi small{font-size:10px}
.tally-account-card{background:#fff;border:1px solid #cdd7e8;border-radius:9px;overflow:hidden;margin:0 0 18px}.tally-account-card h2{background:#1d477f;color:#fff;font-size:14px;margin:0;padding:11px 14px}.tally-book-head{display:grid;grid-template-columns:1fr 1fr;background:#eaf1fc;color:#0e3c73;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.6px}.tally-book-head span{padding:9px 13px}.tally-book-head span+span{border-left:1px solid #cdd7e8}
.tally-book-table{width:100%;border-collapse:collapse;table-layout:fixed}.tally-book-table col.amount{width:145px}.tally-book-table td,.tally-book-table th{padding:9px 12px;border-bottom:1px solid #e2e7ef;vertical-align:top}.tally-book-table td:nth-child(3),.tally-book-table th:nth-child(3){border-left:1px solid #cdd7e8}.tally-book-table td small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.tally-book-table .number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.tally-book-table .empty{color:var(--muted);font-style:italic}.tally-subtotal{background:#f5f7fb;font-weight:700}.tally-balance-row,.tally-opening-row{background:#dce9fb;color:#0b386e}.tally-account-card tfoot{background:#1d477f;color:#fff}.tally-account-card tfoot th{border:0;text-align:left}.tally-account-card tfoot th.number{text-align:right}
@media(max-width:760px){.tally-kpi-grid{grid-template-columns:1fr}.tally-page-heading{display:block}.tally-heading-actions{margin-top:14px}.tally-filter{align-items:stretch;flex-direction:column}.tally-filter>div{min-width:0}.tally-filter .badge{align-self:flex-start;margin:0}.tally-account-card{overflow:auto}.tally-book-head,.tally-book-table{min-width:720px}}
@media print{.tally-account-card{-webkit-print-color-adjust:exact;print-color-adjust:exact;break-inside:avoid}.tally-kpi-grid{-webkit-print-color-adjust:exact;print-color-adjust:exact}.tally-page-heading{margin-bottom:12px}}

/* Tally-style Trial Balance */
.trial-title{text-align:center;margin:0 auto 24px}.trial-title h1{font-size:38px;margin:5px 0}.trial-title p{color:var(--muted);margin:0}.trial-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px}.trial-filter{margin-bottom:18px}.trial-actions{display:flex;gap:8px;margin-bottom:18px}.trial-difference,.trial-balanced{display:flex;gap:8px;align-items:center;padding:13px 15px;margin-bottom:18px;border-radius:5px}.trial-difference{border:1px solid #ef646b;background:#fffafa;color:#c7313a}.trial-balanced{border:1px solid #9bdac2;background:#edf9f4;color:#167554}.trial-difference span,.trial-balanced span{font-size:12px}.trial-table-wrap{background:#fff;border:1px solid #ccd6e3;overflow:auto}.trial-table{table-layout:fixed}.trial-table col.trial-money{width:28%}.trial-table th{background:#eaf0f6;color:#111;font-size:13px;text-transform:none;letter-spacing:0;padding:13px}.trial-table td{padding:11px 13px}.trial-table td:first-child a{font-size:14px}.trial-table td small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.trial-table .number{font-size:14px}.trial-table tfoot{background:#eaf0f6}.trial-table tfoot th{font-weight:800;border-top:1px solid #ccd6e3}.trial-table tbody tr:hover{background:#f8faff}
@media(max-width:760px){.trial-toolbar{align-items:stretch;flex-direction:column}.trial-actions{margin-top:-8px}.trial-table{min-width:680px}.trial-title h1{font-size:31px}.trial-difference,.trial-balanced{align-items:flex-start;flex-direction:column}}
@media print{.trial-title h1{font-size:28px}.trial-difference,.trial-balanced{-webkit-print-color-adjust:exact;print-color-adjust:exact}.trial-table-wrap{overflow:visible}.trial-table{min-width:0}.trial-table td:first-child a{color:#111;text-decoration:none}}

/* Ledger voucher drill-down */
.voucher-link{font-weight:700;text-decoration:underline;text-underline-offset:3px}.ledger-statement-table{white-space:normal}.ledger-statement-table th:nth-child(4){width:34%}.ledger-description,.voucher-description{white-space:normal;min-width:240px;line-height:1.5}.voucher-report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:9px;overflow:hidden}.voucher-report-summary>div{background:#fff;padding:17px}.voucher-report-summary span,.voucher-narration span{display:block;color:var(--muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.8px}.voucher-report-summary strong{display:block;margin-top:5px}.voucher-narration{background:#fff;border:1px solid var(--border);border-radius:8px;padding:15px 17px;margin-top:12px}.voucher-narration p{margin:5px 0 0}.table-panel tfoot th{font-weight:800}
@media(max-width:800px){.voucher-report-summary{grid-template-columns:1fr 1fr}}@media(max-width:520px){.voucher-report-summary{grid-template-columns:1fr}}
/* Full posted-invoice amendment editor. */
.invoice-amendment-lines{display:grid;gap:12px;margin:16px 0}.invoice-amendment-line{overflow:hidden;border:1px solid #dbe4ef;border-radius:12px;background:#fff;box-shadow:0 4px 14px #172b4808}.invoice-amendment-line>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:#f6f8fc;border-bottom:1px solid #e3e9f2}.invoice-amendment-line>header>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}.invoice-amendment-line>header strong,.invoice-amendment-line>header small{display:block}.invoice-amendment-line>header small{margin-top:2px;color:var(--muted);font-size:9px}.line-number{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#23477f;color:#fff;font-size:11px;font-weight:800}.applied-line-total{text-align:right;white-space:nowrap}.applied-line-total strong{font-size:14px;color:#17345d}.amendment-current{display:flex;align-items:center;gap:7px;overflow:auto;padding:8px 14px;border-bottom:1px solid #edf1f6;color:#53657d}.amendment-current span{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.6px}.amendment-current b{padding:3px 7px;border-radius:12px;background:#edf2f8;font-size:9px;white-space:nowrap}.amendment-inputs{display:grid;grid-template-columns:repeat(6,minmax(105px,1fr));gap:9px;padding:12px 14px}.amendment-inputs label{margin:0;color:#5d6d83;font-size:8px;text-transform:uppercase;letter-spacing:.45px}.amendment-inputs input{width:100%;min-height:39px;margin-top:4px;padding:7px 9px;background:#fff;font-size:11px}.amendment-results{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid #e4eaf2;background:#f8faff}.amendment-results>span{display:flex;flex-direction:column;gap:3px;padding:9px 13px;border-right:1px solid #e1e7f0}.amendment-results>span:last-child{border-right:0}.amendment-results small{color:#6b7a90;font-size:8px;text-transform:uppercase;letter-spacing:.4px}.amendment-results b{font-size:12px;color:#17345d}.amendment-results .difference{background:#eaf3ff}.amendment-results .difference b{color:#126947}.amendment-results .difference b.negative{color:#b43b47}.invoice-amendment-form .invoice-live-summary{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:900px){.amendment-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.amendment-results{grid-template-columns:repeat(2,1fr)}.amendment-results>span{border-bottom:1px solid #e1e7f0}.invoice-amendment-form .invoice-live-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.invoice-amendment-line>header{align-items:flex-start}.amendment-inputs,.amendment-results,.invoice-amendment-form .invoice-live-summary{grid-template-columns:1fr}}


/* Compact 50+ line posted invoice amendment grid. */
.amendment-invoice-facts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;margin:0 0 14px;border:1px solid #dce4ef;border-radius:9px;overflow:hidden;background:#dce4ef}.amendment-invoice-facts>div{min-width:0;padding:10px 12px;background:#fff}.amendment-invoice-facts span{display:block;color:#738096;font-size:8px;text-transform:uppercase;letter-spacing:.6px}.amendment-invoice-facts b{display:block;margin-top:3px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.amendment-invoice-facts small{font-size:9px;font-weight:600}
.amendment-note-panel{padding:14px 16px;margin-bottom:14px}.amendment-note-panel .form-grid{grid-template-columns:170px minmax(180px,1fr) 170px minmax(260px,2fr) auto;gap:8px 12px;align-items:end}.amendment-note-panel .span-2{grid-column:auto}.amendment-note-panel label{margin:0 0 3px;font-size:9px}.amendment-note-panel input,.amendment-note-panel textarea{min-height:34px;padding:6px 8px;font-size:10px}.amendment-note-panel .check-label{align-self:center;margin:0}
.amendment-grid-panel{margin:0 0 14px;border:1px solid #d7e0ec;border-radius:10px;background:#fff;overflow:hidden}.amendment-grid-toolbar{display:grid;grid-template-columns:1fr minmax(300px,520px) 150px;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid #dfe6ef;background:#f7f9fc}.amendment-grid-toolbar>div{display:flex;flex-direction:column}.amendment-grid-toolbar b{font-size:13px}.amendment-grid-toolbar small{font-size:9px;color:#6c7a8e}.amendment-grid-toolbar input,.amendment-grid-toolbar select{min-height:34px;padding:6px 8px;font-size:10px}.amendment-table-wrap{max-height:62vh;overflow:auto;overscroll-behavior:contain}.amendment-table{min-width:1760px;table-layout:fixed;white-space:normal}.amendment-table thead th{position:sticky;top:0;z-index:4;padding:8px 7px;background:#eaf0f8;border-bottom:1px solid #cbd7e6;color:#3c4d65;font-size:8px;letter-spacing:.55px}.amendment-table th:nth-child(1){width:42px}.amendment-table th:nth-child(2){width:245px}.amendment-table th:nth-child(n+3):nth-child(-n+8){width:105px}.amendment-table th:nth-child(n+9):nth-child(-n+13){width:115px}.amendment-table th:nth-child(14){width:120px}.amendment-table th:first-child{left:0;z-index:6}.amendment-table th:nth-child(2){left:42px;z-index:6}.amendment-table td{padding:6px 7px;vertical-align:middle;border-bottom:1px solid #e7edf4;font-size:10px}.amendment-table tbody tr:nth-child(even){background:#fbfcfe}.amendment-table tbody tr.changed{background:#f3f8ff}.amendment-table tbody tr.removed{background:#fff1f1}.amendment-table tbody tr[hidden]{display:none}.line-sequence{position:sticky;left:0;z-index:3;background:inherit;text-align:center}.line-sequence span{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#23477f;color:#fff;font-size:9px;font-weight:800}.amendment-item{position:sticky;left:42px;z-index:2;background:inherit;box-shadow:2px 0 0 #e1e8f1}.amendment-item strong,.amendment-item span{display:block}.amendment-item strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.amendment-item span{margin-top:2px;color:#6c7a8e;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.edit-cell small,.computed-cell small{display:block;margin-bottom:3px;color:#758399;font-size:8px;white-space:nowrap}.edit-cell input{min-height:30px;padding:4px 5px;border-radius:5px;font-size:9px;text-align:right}.computed-cell b,.difference-cell b{display:block;color:#17345d;font-size:10px;text-align:right;white-space:nowrap}.computed-cell small{text-align:right}.difference-cell{background:#eef5ff}.difference-cell b{color:#147357}.difference-cell b.negative{color:#b43b47}.remove-cell label{display:flex;align-items:center;gap:5px;margin:0;color:#9d313c;font-size:9px;white-space:nowrap}.remove-cell small{display:block;margin-top:3px;color:#8a95a6;font-size:7px}.amendment-table tr.removed .amendment-item strong{text-decoration:line-through;color:#a23d46}.amendment-table tr.removed .edit-cell{opacity:.58}.invoice-amendment-form .invoice-live-summary{position:sticky;bottom:0;z-index:5;grid-template-columns:repeat(4,minmax(0,1fr));box-shadow:0 -4px 14px #172b4812}
@media(max-width:1100px){.amendment-invoice-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.amendment-note-panel .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.amendment-note-panel .span-2{grid-column:span 2}.amendment-grid-toolbar{grid-template-columns:1fr 1.5fr 140px}}@media(max-width:700px){.amendment-invoice-facts{grid-template-columns:1fr 1fr}.amendment-grid-toolbar{grid-template-columns:1fr}.amendment-note-panel .form-grid{grid-template-columns:1fr}.amendment-note-panel .span-2{grid-column:auto}.invoice-amendment-form .invoice-live-summary{grid-template-columns:1fr 1fr}}
.amendment-table th:last-child{position:sticky;right:0;z-index:6;background:#eaf0f8;box-shadow:-2px 0 0 #d8e1ed}.amendment-table .remove-cell{position:sticky;right:0;z-index:3;background:inherit;box-shadow:-2px 0 0 #e1e8f1}
body:has(.invoice-details-heading) .main-content{width:auto;max-width:100%;margin:0;padding:24px 28px 48px}.badge.amended{background:#fff0cb;color:#805900}.amended-notice{margin:0 0 14px}.invoice-detail-table th,.invoice-detail-table td{padding:12px 14px}.invoice-detail-table td:first-child{white-space:normal;min-width:230px}.amendment-history{margin-top:18px;padding:18px}.amendment-history h2{margin-bottom:14px;font-size:18px}.amendment-history .table-panel{border-radius:7px}.amendment-history th,.amendment-history td{padding:10px 12px;font-size:11px}

.invoice-amendment-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:1rem 0;border:1px solid var(--border,#d9e1ec);border-radius:14px;overflow:hidden;background:#fff}.invoice-amendment-totals>div{padding:1rem 1.1rem;border-right:1px solid var(--border,#d9e1ec);display:flex;flex-direction:column;gap:.25rem}.invoice-amendment-totals>div:last-child{border-right:0}.invoice-amendment-totals span{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:700}.invoice-amendment-totals strong{font-size:1.35rem;color:#172b4d}.invoice-amendment-totals small{color:#64748b}.invoice-amendment-totals .grand{background:#183f78}.invoice-amendment-totals .grand span,.invoice-amendment-totals .grand strong{color:#fff}.posted-header-editor{margin:1rem 0}.posted-header-editor summary{cursor:pointer;display:flex;justify-content:space-between;gap:1rem;align-items:center}.posted-header-editor summary span{font-size:.85rem;color:#64748b;font-weight:400}.posted-header-form{padding-top:1rem}.posted-header-form .button{margin-top:1rem}@media(max-width:900px){.invoice-amendment-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-amendment-totals>div:nth-child(2){border-right:0}}@media(max-width:560px){.invoice-amendment-totals{grid-template-columns:1fr}.invoice-amendment-totals>div{border-right:0;border-bottom:1px solid var(--border,#d9e1ec)}}
.amendment-add-items{margin:0 0 14px;padding:14px}.add-item-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.add-item-heading h2{margin:2px 0 4px;font-size:18px}.add-item-heading p{margin:0;color:#64748b;font-size:12px}.added-item-list{display:grid;gap:10px;margin-top:12px}.added-item-list:empty{display:none}.added-item-row{display:grid;grid-template-columns:minmax(210px,2fr) minmax(140px,1.2fr) repeat(6,minmax(82px,.75fr)) minmax(180px,1.4fr) auto;gap:8px;align-items:end;padding:11px;border:1px solid #cfdbea;border-radius:10px;background:#f8fbff}.added-item-row label{display:block;margin:0 0 4px;color:#5d6d83;font-size:8px;font-weight:750;text-transform:uppercase;letter-spacing:.45px}.added-item-row input,.added-item-row select{width:100%;min-height:36px;padding:6px 7px;font-size:10px}.added-line-total{display:flex;min-height:52px;flex-direction:column;justify-content:center;padding:6px 10px;border-radius:8px;background:#eaf3ff}.added-line-total>span{font-size:8px;text-transform:uppercase;color:#60738b}.added-line-total>b{font-size:15px;color:#173a70}.added-line-total small{color:#60738b;font-size:8px}.remove-added-item{min-height:36px;padding:7px 10px;border:1px solid #f0b7bd;border-radius:7px;background:#fff4f5;color:#a52f3c;font-weight:700;cursor:pointer}@media(max-width:1350px){.added-item-row{grid-template-columns:repeat(4,minmax(0,1fr))}.added-product,.added-line-total{grid-column:span 2}}@media(max-width:700px){.add-item-heading{align-items:flex-start;flex-direction:column}.added-item-row{grid-template-columns:1fr 1fr}.added-product,.added-line-total{grid-column:1/-1}}

/* Posted editor field parity with invoice entry. */
.amendment-table{min-width:2140px}.amendment-table th:nth-child(2){width:270px}.amendment-table th:nth-child(3){width:175px}.amendment-table th:nth-child(n+4):nth-child(-n+11){width:105px}.amendment-table th:nth-child(n+12):nth-child(-n+16){width:115px}.amendment-table th:nth-child(17){width:120px}.amendment-item select,.edit-cell select{width:100%;min-height:30px;padding:4px 5px;border-radius:5px;font-size:9px}.added-item-row{grid-template-columns:minmax(210px,2fr) minmax(140px,1.2fr) repeat(9,minmax(82px,.75fr)) minmax(180px,1.4fr) auto}.added-item-row output{display:flex;align-items:center;min-height:36px;padding:6px 8px;border:1px solid #d7e0ec;border-radius:6px;background:#fff;color:#17345d;font-weight:700}
.amendment-batch-entry{display:grid;gap:5px}.amendment-batch-entry>div{display:grid;grid-template-columns:1fr 1fr;gap:4px}.amendment-batch-entry input{min-height:30px!important}.amendment-batch-entry small{font-size:8px;color:#65758c}.amendment-batch-entry.batch-entry-hidden [data-new-batch-number],.amendment-batch-entry.batch-entry-hidden>div,.amendment-batch-entry.batch-entry-hidden [data-new-batch-help]{display:none}.amendment-batch-entry select+input{margin-top:1px}
.posted-charge-values>div{display:grid;grid-template-columns:repeat(5,minmax(80px,1fr));gap:6px}.posted-charge-values input{background:#f5f8fc!important;color:#52647a}.posted-charge-values small{display:block;margin-top:5px;color:#65758c;font-size:9px;line-height:1.35}@media(max-width:900px){.posted-charge-values>div{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1350px){.added-item-row{grid-template-columns:repeat(4,minmax(0,1fr))}.added-product,.added-line-total{grid-column:span 2}}@media(max-width:700px){.added-item-row{grid-template-columns:1fr 1fr}.amendment-batch-entry{grid-column:span 2}.added-product,.added-line-total{grid-column:1/-1}}

.settlement-tools{margin-top:18px;margin-bottom:12px;padding:18px 22px}.settlement-tool-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,1fr);gap:14px}.settlement-tool-grid label{margin-top:0}.settlement-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.settlement-tools [data-allocation-status][data-error=true]{color:#a33029;font-weight:650}.settlement-tools .help{margin-bottom:0}@media(max-width:760px){.settlement-tool-grid{grid-template-columns:1fr}.settlement-actions .button{width:100%}}
/* Product master attachments */
.product-attachment-grid{align-items:start}.product-attachment-current{display:flex;gap:1rem;align-items:center;margin-top:.8rem;padding:.8rem;border:1px solid #d9e2f2;border-radius:.65rem;background:#f8fbff}.product-attachment-current img{width:112px;height:112px;object-fit:contain;border-radius:.5rem;background:#fff;border:1px solid #e1e7f0}.product-attachment-current>div:last-child{display:grid;gap:.3rem;min-width:0}.product-attachment-current strong{overflow-wrap:anywhere}.product-attachment-current .file-tile{width:72px;height:88px;display:grid;place-items:center;border-radius:.5rem;background:#a92d35;color:#fff;font-weight:800;letter-spacing:.08em}.product-attachment-current.pdf{align-items:center}
.button.danger,.button.danger:hover,.button.danger:focus,.button.danger:active,.button.danger:disabled{background:#bd2929;border-color:#bd2929;color:#fff!important;text-decoration:none}
.company-brand-mark{overflow:hidden;padding:0!important}.company-brand-mark img{width:100%;height:100%;display:block;object-fit:contain;background:#fff}.company-topbar-logo{width:42px;height:42px;margin:0 12px;object-fit:contain;border:1px solid #e1e7f0;border-radius:8px;background:#fff}.company-logo-settings{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.company-logo-preview{display:flex;align-items:center;gap:18px}.company-logo-preview>img{width:112px;height:112px;object-fit:contain;border:1px solid #dce4ef;border-radius:12px;background:#fff}.company-logo-preview h2,.company-logo-preview p{margin:.25rem 0}.company-logo-actions{display:flex;align-items:end;gap:10px}.company-logo-actions form:first-child{display:grid;grid-template-columns:minmax(230px,1fr) auto;align-items:end;gap:10px}.company-logo-actions label{grid-column:1/-1;margin:0}.invoice-brand-heading{display:flex;align-items:center;gap:18px}.invoice-brand-heading>img{width:76px;height:76px;object-fit:contain;border:1px solid #dfe5ee;border-radius:9px;background:#fff}.tr-company-logo{display:block;max-width:92px;max-height:58px;margin:0 auto 5px;object-fit:contain}.pos-company-logo{display:block;width:96px;height:70px;margin:0 auto 8px;object-fit:contain}@media(max-width:900px){.company-logo-settings,.company-logo-actions{align-items:stretch;flex-direction:column}.company-logo-actions form:first-child{grid-template-columns:1fr}.company-topbar-logo{display:none}}@media print{.invoice-brand-heading>img{width:62px;height:62px}.company-topbar-logo{display:none!important}}
