:root{
  --bg:#eef3f8;--panel:#fff;--ink:#172033;--muted:#64748b;--line:#d8e1ec;
  --primary:#0f4f8c;--primary-strong:#0b3e70;--soft:#eaf4fb;--danger:#b42318;--warn:#b7791f;
  --shadow:0 10px 30px rgba(15,23,42,.075);--font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif
}

.job-costing-card{
  border:1px solid #cfe3f5;
  border-left:4px solid #0f5f9f;
  background:#fbfdff;
}
.job-cost-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(140px,1fr));
  gap:10px;
  margin:14px 0;
}
.job-cost-grid>div{
  border:1px solid #d7e7f5;
  background:#eef7ff;
  border-radius:8px;
  padding:12px;
  min-height:72px;
}
.job-cost-grid span{
  display:block;
  color:#63748a;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:6px;
}
.job-cost-grid b{
  color:#162033;
  font-size:18px;
}
.job-cost-grid .good b{color:#047857}
.job-cost-grid .bad b{color:#b91c1c}
.job-detail-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.mini-panel{
  border:1px solid #dbe8f4;
  border-radius:8px;
  padding:12px;
  background:#fff;
}
.mini-panel h4{
  margin:0 0 10px;
  color:#172033;
  font-size:16px;
}
.compact-table th,
.compact-table td{
  font-size:12px;
  padding:8px;
}
.material-action-form{
  display:grid;
  grid-template-columns:minmax(120px,1fr) repeat(3,88px) minmax(120px,1fr) minmax(120px,1fr) 82px auto;
  gap:6px;
  align-items:center;
  min-width:980px;
}

.super-admin-head{
  align-items:center;
  margin-bottom:12px;
}
.super-admin-head h2{
  font-size:26px;
  font-weight:650;
  color:#15233a;
}
.super-admin-head small{
  font-size:13px;
}
.super-admin-metrics{
  gap:10px;
  margin-bottom:10px;
}
.super-admin-metrics .card{
  padding:12px 14px;
  margin-bottom:0;
  border-color:#d7e7f5;
  background:#fbfdff;
}
.super-admin-metrics .metric-card span{
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.super-admin-metrics .metric-card strong{
  font-size:22px;
  margin-top:3px;
  color:#12345a;
  font-weight:750;
}
.super-admin-card{
  padding:14px;
}
.super-admin-card .section-title{
  align-items:center;
  margin-bottom:10px;
}
.super-admin-card .section-title h3{
  font-size:18px;
  font-weight:650;
  color:#172033;
}
.compact-client-table-wrap{
  border-color:#d8e6f3;
}
.compact-client-table{
  font-size:13px;
}
.compact-client-table th{
  padding:9px 10px;
  font-size:11px;
  letter-spacing:.04em;
  background:#eef7ff;
  color:#475569;
}
.compact-client-table td{
  padding:9px 10px;
}
.compact-client-table td b{
  display:block;
  font-size:13px;
  font-weight:650;
  color:#172033;
}
.compact-client-table td small{
  display:block;
  margin-top:2px;
  font-size:11px;
}
.client-usage-pill{
  display:inline-flex;
  align-items:center;
  padding:3px 7px;
  margin:1px 3px 1px 0;
  border:1px solid #cfe0ef;
  border-radius:999px;
  background:#f8fbff;
  color:#40516a!important;
  font-size:11px;
  font-weight:750;
}
.compact-actions{
  gap:5px;
  flex-wrap:nowrap;
}
.compact-actions .btn.small,
.compact-actions .action-menu summary{
  min-height:28px;
  padding:6px 9px;
  font-size:11px;
  border-radius:7px;
}
.onboarding-panel{
  border-top:3px solid #0f4f8c;
}
.compact-onboarding-form{
  grid-template-columns:repeat(4,minmax(150px,1fr));
  gap:9px 10px;
}
.compact-onboarding-form label{
  gap:4px;
  font-size:12px;
  font-weight:650;
  color:#334155;
}
.compact-onboarding-form input,
.compact-onboarding-form select,
.compact-onboarding-form textarea{
  min-height:36px;
  padding:8px 10px;
  border-radius:7px;
  font-size:13px;
}
.compact-onboarding-form textarea{
  min-height:72px;
}
.compact-onboarding-form .form-divider{
  padding-top:10px;
  margin-top:2px;
  font-size:11px;
}
.compact-onboarding-form .inline-control{
  grid-template-columns:minmax(0,1fr) auto;
}
.compact-onboarding-form .inline-control .btn{
  min-height:36px;
  height:36px;
  padding:7px 10px;
  font-size:11px;
}
.compact-module-picker{
  grid-template-columns:repeat(5,minmax(120px,1fr));
  gap:6px;
  padding:10px;
}
.compact-module-picker .check{
  min-height:32px;
  padding:7px 8px;
  font-size:11px;
  font-weight:650;
}
.business-sync-note{
  border:1px solid #bfdbfe;
  border-left:3px solid #0f4f8c;
  background:#eff6ff;
  color:#334155;
  border-radius:7px;
  padding:9px 11px;
  font-size:12px;
  font-weight:650;
}
@media(max-width:1180px){
  .compact-onboarding-form{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .compact-module-picker{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .compact-actions{
    flex-wrap:wrap;
  }
}
@media(max-width:720px){
  .super-admin-head{
    align-items:flex-start;
  }
  .compact-onboarding-form,
  .compact-module-picker{
    grid-template-columns:1fr;
  }
}
.material-action-form input,
.material-action-form select{
  min-height:34px;
  padding:6px 8px;
  border:1px solid #cfe0ef;
  border-radius:7px;
  font-size:12px;
  background:#fff;
}
.btn.tiny{
  padding:4px 8px;
  min-height:26px;
  font-size:11px;
  border-radius:6px;
}
.maintenance-inline-status{
  display:grid;
  grid-template-columns:minmax(130px,1fr) 86px auto;
  gap:6px;
  align-items:center;
  min-width:310px;
}
.maintenance-inline-status select,
.maintenance-inline-status input{
  min-height:34px;
  padding:6px 8px;
  font-size:12px;
}

@media(max-width:1100px){
  .job-cost-grid{
    grid-template-columns:repeat(3,minmax(140px,1fr));
  }
  .job-detail-columns{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  .job-cost-grid{
    grid-template-columns:1fr;
  }
}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(circle at top left,#f7fbff 0,#eef3f8 34%,#e9eff7 100%);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.45;font-weight:400}
body.dark{--bg:#101827;--panel:#172033;--ink:#f8fafc;--muted:#94a3b8;--line:#334155;--soft:#123536}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
input,select,textarea{width:100%;border:1px solid var(--line);border-radius:7px;padding:10px 11px;background:#fff;color:#111827;outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,79,140,.14)}
textarea{resize:vertical;min-height:98px}
button,.btn{border:0;border-radius:7px;padding:10px 14px;background:var(--primary);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:700;white-space:nowrap}
.btn:hover,button:hover{background:var(--primary-strong)}
.btn.secondary{background:#e2e8f0;color:#172033}.btn.secondary:hover{background:#cbd5e1}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn.danger{background:var(--danger)}.btn.small{padding:7px 10px;font-size:12px}
.shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}
.sidebar{background:linear-gradient(180deg,#f8fbff 0%,#eef6fb 100%);color:#243244;padding:18px 14px;display:grid;align-content:start;gap:4px;box-shadow:var(--shadow);border-right:1px solid var(--line)}
.mobile-sidebar-head{display:none}.topbar-title{display:flex;align-items:center;gap:10px;min-width:0}.topbar-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:20px;font-weight:600;color:var(--primary-strong);letter-spacing:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}.mobile-menu-toggle{display:none;width:38px;height:38px;padding:0;border-radius:8px;background:#e7f5f3;color:#075e59;font-size:20px}
.sidebar h1{font-size:23px;margin:6px 10px 18px;font-weight:700;letter-spacing:.1px;color:#0f766e}
.sidebar-brand{display:flex!important;align-items:center;justify-content:center;min-height:62px;margin:0 0 14px;padding:10px 14px!important;border-radius:8px;background:rgba(255,255,255,.92)!important;border:1px solid var(--line);box-shadow:0 8px 22px rgba(15,23,42,.05)}
.sidebar-brand img{display:block;width:104px;max-width:100%;height:42px;object-fit:contain}
.sidebar a{padding:8px 11px;border-radius:7px;color:#42526a;font-weight:500;font-size:13px}
.sidebar a:hover{background:#e5f2f1;color:#075e59}
.sidebar a.active{background:#dff2ef;color:#064f4a!important;font-weight:900}
.sidebar-main-link{display:flex;align-items:center;min-height:36px;font-size:13px;color:#3f464d!important}
.sidebar details{border-top:0;padding-top:0}
.sidebar summary{position:relative;display:flex;align-items:center;min-height:36px;padding:8px 32px 8px 11px;border-radius:7px;cursor:pointer;color:#3f464d;font-weight:600;list-style:none;font-size:13px}
.sidebar summary::-webkit-details-marker{display:none}
.sidebar summary:after{content:"‹";position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:22px;line-height:1;color:#3f464d;font-weight:800;transition:transform .16s ease}
.sidebar details[open] summary:after{transform:translateY(-50%) rotate(-90deg)}
.sidebar summary:hover,.sidebar details[open] summary{background:#e5f2f1;color:#075e59}
.sidebar details[open] summary:after{color:#075e59}
.sidebar details a{display:block;margin-left:16px;padding:6px 9px 6px 12px;font-size:12px;color:#59677a;font-weight:400;border-left:2px solid #dbe7ee;border-radius:0 7px 7px 0}
.sidebar .sidebar-nav-group{display:block;margin:11px 9px 3px 28px;color:#6b7f95;font-size:10px;font-weight:750;letter-spacing:.08em;line-height:1.2;text-transform:uppercase}
.sidebar summary + .sidebar-nav-group{margin-top:5px}
.sidebar details a:hover{border-left-color:#0b7a75}
.sidebar details a.active{border-left-color:#0b7a75;background:#edf9f7;color:#064f4a!important;font-weight:900}
html[dir=rtl] .sidebar details a{margin-left:0;margin-right:10px}
html[dir=rtl] .sidebar .sidebar-nav-group{margin-left:9px;margin-right:22px}
html[dir=rtl] .sidebar summary{padding:10px 12px 10px 34px}
html[dir=rtl] .sidebar summary:after{right:auto;left:12px;content:"›"}
main{padding:22px;min-width:0}
.app-footer{display:flex;align-items:center;justify-content:flex-start;gap:4px;flex-wrap:wrap;margin:28px -22px -22px;padding:5px 12px;border-top:1px solid #edf1f5;background:#f7f9fc;color:#263747;font-size:12px;font-weight:650}
.app-footer a{color:var(--primary);font-weight:900}
.app-footer span+span:before{content:none}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:8px;padding:12px 14px;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.actions,.toolbar,.row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.page-head,.section-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
.page-head h2{margin:0;font-size:30px;letter-spacing:-.01em}.section-title h3{margin:0;font-size:21px}.eyebrow{margin:0 0 5px;color:var(--primary);font-size:12px;text-transform:uppercase;font-weight:900;letter-spacing:.06em}
.grid{display:grid;gap:14px}.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:8px;padding:18px;margin-bottom:16px;box-shadow:0 10px 24px rgba(15,23,42,.055);backdrop-filter:saturate(140%) blur(4px)}
.metric-card span,.card span{color:var(--muted)}.metric-card strong{display:block;font-size:27px;margin-top:8px}
.module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.module-tile{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:16px;box-shadow:var(--shadow);display:grid;gap:6px}
.module-tile:hover{border-color:var(--primary)}.module-tile b{font-size:15px}.module-tile span,.operation span,small{color:var(--muted)}
.erp-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:end}
.onboarding-form{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}.form-divider{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;margin-top:4px;color:var(--primary);font-weight:900;text-transform:uppercase;font-size:12px;letter-spacing:.06em}.module-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border:1px solid var(--line);border-radius:8px;background:#fbfdff;padding:12px}.module-picker>b{grid-column:1/-1;color:#111827}
.product-form{grid-template-columns:220px repeat(4,minmax(0,1fr));align-items:start}
.erp-form label{display:grid;gap:6px;font-weight:700;color:#334155}
.erp-form .wide{grid-column:span 2}
.inline-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}.inline-control .btn{height:40px;padding:9px 12px}.arabic-name-field small{color:var(--muted);font-weight:600}
.check{display:flex!important;align-items:center;gap:8px;background:var(--soft);padding:10px;border-radius:7px;color:var(--ink)!important}
.check input{width:auto}.form-actions{display:flex;gap:8px;align-items:center}
.settings-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 10px}
.settings-check-grid .check{min-height:40px;margin:0}
.invoice-layout-editor-link{display:grid;gap:6px;align-content:end}
.invoice-layout-editor-link small{font-size:11px;font-weight:700;color:var(--muted)}
.invoice-layout-shell{display:grid;gap:20px;border-bottom:1px solid #edf1f5;padding-bottom:24px;margin-bottom:4px}
.invoice-settings-title{display:flex;align-items:baseline;gap:12px}
.invoice-settings-title h2{margin:0;color:#2d2c5f;font-size:31px;font-weight:500}
.invoice-settings-title span{color:#777;font-size:18px}
.invoice-settings-tabs{display:flex;border-bottom:1px solid #e5e7eb}
.invoice-settings-tabs button{background:#fff!important;color:#333!important;border:1px solid #e5e7eb;border-bottom:0;border-radius:0;box-shadow:none!important;font-size:20px;font-weight:900;padding:20px 28px}
.invoice-settings-tabs .layout-tab{border-top:4px solid #328ec0;color:#333!important}
.invoice-layouts-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.invoice-layouts-head h3{margin:0;color:#2d2c5f;font-size:22px;font-weight:500}
.invoice-layouts-head .btn{border-radius:20px;background:#3d7f1e!important;font-size:16px}
.invoice-layout-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px;align-items:start}
.invoice-layout-card{position:relative;display:grid!important;place-items:center;gap:2px;min-height:142px;background:#fff!important;color:#2d88bd!important;border:0!important;box-shadow:none!important;text-align:center;padding:16px!important}
.invoice-layout-card .layout-file-icon{width:52px;height:64px;display:grid;place-items:center;border-radius:4px;background:#3d96c7;color:#fff;font-size:30px;line-height:1}
.invoice-layout-card em{position:absolute;top:48px;left:50%;transform:translateX(-4%);background:#2f9b43;color:#fff;border-radius:16px;padding:3px 12px;font-style:normal;font-weight:900}
.invoice-layout-card b{font-size:14px;color:#2d88bd}
.invoice-layout-card small{display:block;margin-top:8px;color:#333;font-size:12px;line-height:1.35;text-align:left;max-width:230px}
.invoice-layout-card small strong{display:block;color:#333}
.invoice-edit-layout-section h3{margin:0;color:#2d2c5f;font-size:22px;font-weight:500}
.invoice-label-panel{display:grid;gap:16px;background:#fff;border:1px solid #edf1f5;border-radius:8px;padding:20px}
.invoice-label-panel h3{margin:0;color:#2d2c5f;font-size:15px;font-weight:800}
.invoice-label-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 26px}
.invoice-label-grid label{display:grid;gap:6px}
.invoice-checkbox-cloud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 30px}
.invoice-checkbox-cloud .check,.invoice-label-grid .check{background:transparent!important;padding:5px 0!important;border-radius:0!important}
.muted-check{color:#555!important;opacity:.75}
.settings-rich-editor{display:grid;border:1px solid #cfd6df;background:#fff}
.settings-rich-editor .editor-menu{display:flex;gap:18px;align-items:center;min-height:34px;padding:7px 14px;border-bottom:1px solid #cfd6df;color:#172033;font-size:13px;font-weight:500}
.settings-rich-editor .editor-menu b{font-weight:500}
.settings-rich-editor .editor-toolbar{display:flex;gap:16px;align-items:center;min-height:36px;padding:7px 14px;border-bottom:1px solid #cfd6df;color:#172033;font-size:15px}
.settings-rich-editor textarea{border:0!important;border-radius:0!important;box-shadow:none!important;min-height:160px!important}
.settings-rich-editor .editor-status{display:flex;justify-content:flex-end;border-top:1px solid #cfd6df;padding:3px 8px;color:#607083;font-size:11px;font-weight:700}
.settings-rich-editor .editor-menu,.settings-rich-editor .editor-toolbar,.settings-rich-editor .editor-status{display:none}
.settings-rich-editor{display:block;min-width:0;overflow:hidden;border:1px solid #cfd6df;border-radius:6px}
.settings-rich-editor .tox.tox-tinymce{width:100%!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.settings-rich-editor .tox .tox-editor-header{position:static!important;top:auto!important;z-index:auto!important}
.settings-rich-editor .tox .tox-edit-area{min-height:0!important}
.settings-rich-editor .tox .tox-edit-area__iframe{min-height:0!important}
.tox.tox-tinymce{border:1px solid #cfd6df;border-radius:8px;overflow:hidden}.tox .tox-statusbar{border-top-color:#e2e8f0}.tox .tox-edit-area__iframe{background:#fff}.project-editor-card .tox.tox-tinymce{min-height:520px}
/* Keep TinyMCE visually independent from the ERP's blue primary buttons. */
.tox.tox-tinymce{box-shadow:0 1px 3px rgba(15,23,42,.10)!important;background:#fff!important}
.tox .tox-editor-header,.tox .tox-menubar,.tox .tox-toolbar-overlord,.tox .tox-toolbar__primary{background:#fff!important;box-shadow:none!important}
.tox .tox-menubar{padding:4px 8px!important;border-bottom:1px solid #e5e7eb!important}
.tox .tox-toolbar-overlord{border-bottom:1px solid #e5e7eb!important}
.tox .tox-toolbar__primary{padding:7px 8px!important}
.tox .tox-mbtn,.tox .tox-tbtn,.tox .tox-tbtn--select,.tox .tox-collection__item{background:transparent!important;border:1px solid transparent!important;border-radius:4px!important;color:#374151!important;box-shadow:none!important;font-weight:500!important;letter-spacing:0!important;transform:none!important}
.tox .tox-mbtn:hover,.tox .tox-mbtn--active,.tox .tox-tbtn:hover,.tox .tox-tbtn--enabled,.tox .tox-tbtn--select:hover,.tox .tox-collection__item--active{background:#eef2f5!important;border-color:#d8dee5!important;color:#111827!important;transform:none!important}
.tox .tox-mbtn:focus,.tox .tox-tbtn:focus,.tox .tox-tbtn--select:focus{background:#f3f6f8!important;border-color:#aab7c4!important;box-shadow:0 0 0 2px rgba(100,116,139,.16)!important}
.tox .tox-mbtn svg,.tox .tox-tbtn svg,.tox .tox-tbtn--select svg{fill:#4b5563!important}
.tox .tox-mbtn:hover svg,.tox .tox-tbtn:hover svg,.tox .tox-tbtn--enabled svg{fill:#111827!important}
.tox .tox-toolbar__group{border-color:#e5e7eb!important;padding:0 4px!important}
.tox .tox-statusbar{background:#fafbfc!important;color:#6b7280!important}.tox .tox-statusbar a{color:#6b7280!important}
.tox .tox-edit-area::before{border-color:#d7dde4!important}.tox .tox-dialog,.tox .tox-menu,.tox .tox-collection{border-color:#d7dde4!important;box-shadow:0 10px 28px rgba(15,23,42,.15)!important}
.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{z-index:30!important;box-shadow:0 4px 12px rgba(15,23,42,.12)!important}
@media(max-width:1000px){.invoice-layout-card-grid,.invoice-label-grid,.invoice-checkbox-cloud,.settings-check-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.invoice-settings-title{display:grid}.invoice-settings-tabs{overflow:auto}.invoice-layout-card-grid,.invoice-label-grid,.invoice-checkbox-cloud,.settings-check-grid{grid-template-columns:1fr}}
.filter-bar{display:grid;grid-template-columns:minmax(220px,1fr) 150px auto;gap:8px;min-width:min(560px,100%)}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px}
table{width:100%;border-collapse:collapse;background:var(--panel)}
th,td{border-bottom:1px solid var(--line);padding:11px;text-align:left;vertical-align:middle}
th{font-size:12px;color:var(--muted);text-transform:uppercase;background:#f8fafc}
tr:hover td{background:#fbfdff}
html[dir=rtl] th,html[dir=rtl] td{text-align:right}
.badge,.mini,.status{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800;background:#eef2ff;color:#3730a3;margin:2px}
.badge.quotation-status-draft{background:#dcfce7;color:#166534;border:1px solid #86efac}
.badge.quotation-status-order{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}
.mini{background:#ecfeff;color:#155e75}.status.ok{background:#dcfce7;color:#166534}.status.off{background:#fee2e2;color:#991b1b}
.list-search-bar{display:flex;align-items:end;justify-content:flex-end;gap:7px;margin:0 0 10px}.list-search-bar label{display:grid;gap:3px;font-size:11px;font-weight:750;color:var(--muted)}.list-search-bar input{height:30px;min-width:210px;padding:5px 8px;font-size:12px;border-radius:6px}
.action-menu{position:relative;display:inline-block;font-size:11px}.action-menu summary{list-style:none;border-radius:999px;background:#3d7f1e;color:#fff;padding:4px 8px;font-size:11px;font-weight:750;cursor:pointer;white-space:nowrap;line-height:1.05}.action-menu summary::-webkit-details-marker{display:none}
.action-menu div{position:static;margin-top:3px;min-width:132px;display:grid;gap:0;background:#fff;border:1px solid var(--line);border-radius:5px;padding:3px;box-shadow:var(--shadow)}
.action-menu a,.action-menu button{width:100%;justify-content:flex-start;text-align:left;background:transparent;color:#1f2f46;border:0;border-radius:3px;padding:4px 5px;font-size:10px;font-weight:650;white-space:normal;line-height:1.08}.action-menu a:hover,.action-menu button:hover{background:#eef7f6;color:var(--primary-strong)}
html[dir=rtl] .action-menu div{right:auto;left:0}
.table-wrap.action-menu-open{overflow:visible}
.floating-action-menu .action-menu-panel{position:absolute;z-index:3000;top:calc(100% + 5px);right:0;left:auto;min-width:168px;margin:0;display:grid;gap:2px;background:#f6fbff;border:1px solid #cfe3f5;border-radius:8px;padding:5px;box-shadow:0 14px 30px rgba(15,79,140,.16)}
.floating-action-menu[open]{z-index:900}
.floating-action-menu[open] .action-menu-panel{position:absolute;z-index:3000}
.floating-action-menu:not([open]) .action-menu-panel{display:none}
html[dir=rtl] .floating-action-menu .action-menu-panel{right:auto;left:0}
.floating-action-menu summary{border-radius:999px;background:#3d7f1e;padding:4px 8px;font-size:11px;box-shadow:none}
.floating-action-menu[open] summary{background:#2686a3}
.floating-action-menu summary:after{content:"";display:inline-block;margin-left:3px;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #fff;vertical-align:middle}
.action-menu-panel hr{display:none}
.action-menu-panel .contact-action-item{display:grid;grid-template-columns:18px 1fr;align-items:center;gap:6px;width:100%;min-height:27px;padding:5px 10px;background:#fafdff;color:#1f2f46;border:0;border-radius:6px;font-size:11px;font-weight:650;line-height:1.08;text-align:left;white-space:nowrap}
.action-menu-panel .contact-action-item:hover{background:#eaf4fb;color:#0f4f8c}
.action-menu-panel form{margin:0}
.action-icon{display:inline-grid;place-items:center;width:16px;height:16px;color:#7a7a7a;font-size:11px;font-weight:800}
.contact-page-head h2{font-size:31px;color:#25245a;font-weight:500}.contact-page-head h2 span{color:#7a7f87;font-size:18px;font-weight:400;margin-left:8px}
.contact-filter-card{padding:0;overflow:hidden}.contact-filter-shell{display:grid}.contact-filter-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;border-bottom:1px solid #edf1f5}.filter-heading{margin:0;padding:8px 15px!important;background:#0f4f8c!important;color:#fff!important;font-size:12px;border:0;border-radius:18px;font-weight:800;letter-spacing:.01em;justify-content:flex-start;box-shadow:0 8px 18px rgba(15,79,140,.18)}.filter-heading:hover{background:#0b3e70!important;color:#fff!important}.filter-heading:before{content:"";display:inline-block;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:6px solid #fff;transform:rotate(-90deg);margin-right:7px;vertical-align:1px}.filter-heading[aria-expanded=true]:before{transform:rotate(0deg);vertical-align:0}.contact-filter-actions{margin-left:auto;gap:6px}.contact-filter-actions .btn{padding:6px 9px;font-size:11px}
.contact-filters{display:flex;flex-wrap:nowrap;gap:9px;padding:12px 18px 14px;align-items:end;overflow-x:auto;-webkit-overflow-scrolling:touch}.contact-filters[hidden]{display:none}.contact-filters label{display:grid;gap:4px;font-weight:700;color:#30343b;font-size:11px;min-width:118px;flex:0 0 auto}.contact-filters label:has(input[type=date]),.contact-filters label:has(select){min-width:142px}.contact-filters input,.contact-filters select{height:30px;padding:5px 8px;font-size:11px;border-radius:5px}.contact-filters .check{display:flex!important;align-items:center;gap:6px;background:transparent;padding:0;font-size:11px;min-width:max-content;height:30px;white-space:nowrap}.contact-filters .check input{width:15px;height:15px;border-radius:0;flex:0 0 15px}
.contact-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.contact-import-bar{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:10px;margin-bottom:18px}.import-instructions h3{color:#25245a;font-size:22px;margin:12px 0}.instruction-table th{font-size:14px;color:#30343b;text-transform:none}.instruction-table td{font-size:15px;vertical-align:top}.instruction-table small{font-weight:600}
.contacts-list-card{border-top:4px solid #3d7f1e}.contact-table-tools{display:grid;grid-template-columns:auto minmax(360px,1fr) minmax(220px,320px);gap:12px;align-items:center;margin:10px 0 16px}.contact-table-tools>label{display:flex;gap:7px;align-items:center;font-weight:700}.contact-table-tools select{width:88px}.contact-search input{height:40px;background:#f4f5f7}.contact-table{min-width:1450px}.contact-table th{font-size:13px;color:#30343b;text-transform:none}.contact-table td{font-size:14px}.amount-due{color:red;font-weight:800}
.contact-export-tools{justify-content:center;background:#f1f1f1;border-radius:999px;padding:0 6px;width:max-content;max-width:100%;margin:auto;gap:2px;flex-wrap:nowrap}.contact-export-tools .btn{background:transparent;color:#30343b;padding:6px 7px;box-shadow:none;font-size:11px;font-weight:650}.contact-export-tools .btn:hover{background:#e2e8f0}.column-visibility{position:relative}.column-visibility summary{list-style:none;cursor:pointer;font-weight:650;padding:6px 7px;border-radius:999px;font-size:11px;white-space:nowrap}.column-visibility summary::-webkit-details-marker{display:none}.column-visibility summary:hover{background:#e2e8f0}.column-visibility div{position:absolute;z-index:120;top:calc(100% + 6px);left:0;width:210px;max-height:280px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:7px;box-shadow:0 16px 42px rgba(15,23,42,.18);padding:7px;display:grid;gap:5px}.column-visibility label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:650;color:#334155}.column-visibility input{width:14px;height:14px;flex:0 0 14px}.contact-modal{width:min(1060px,96vw)}.contact-modal .contact-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.modal-close-link{width:34px;height:34px;border-radius:999px;background:#eef2f7;color:#111827;font-size:24px;display:grid;place-items:center;font-weight:800}.modal-close-link:hover{background:#dbe4ee}.import-contact-card{border-top:4px solid #3d7f1e;display:block;min-height:0}.import-contact-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.import-contact-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.import-contact-form label{display:grid;gap:4px;font-weight:800;color:#30343b;font-size:12px}.import-contact-form input[type=file]{width:320px;max-width:100%;height:32px;border:0;padding:5px 0;background:transparent;font-size:12px}.download-template{justify-self:start;background:#6fbd10!important;border-radius:7px;font-size:12px;padding:7px 10px}.import-instructions-page{border-top:4px solid #3d7f1e}
.contact-persons-panel{border:1px solid #dbe8f6;background:#f8fbff;border-radius:8px;padding:12px;display:grid;gap:10px}.contact-persons-panel h4{margin:0;color:#2d2c5f;font-size:14px}.contact-person-row{border-top:1px solid #dbe8f6;padding-top:8px}.contact-person-row summary{cursor:pointer;color:#3d7f1e;font-weight:800;font-size:12px}.contact-person-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}
.contact-transaction-summary{border-top:4px solid #3d7f1e;display:flex;align-items:center;justify-content:space-between;gap:16px}.contact-transaction-summary h3{margin:2px 0 3px;color:#2d2c5f;font-size:18px}.contact-transaction-summary small{color:#64748b;font-weight:700}
.erp-table-tools{display:flex;justify-content:flex-end;align-items:center;margin:-2px 0 10px;position:relative;z-index:20}
.erp-table-tools[hidden]{display:none!important}
.erp-column-visibility{position:relative}
.erp-column-visibility summary{list-style:none;cursor:pointer;font-weight:600;color:#26313e;background:#f1f1f1;border-radius:999px;padding:6px 10px;min-width:128px;text-align:center;font-size:11px}
.erp-column-visibility summary::-webkit-details-marker{display:none}
.erp-column-panel{position:absolute;top:calc(100% + 5px);right:0;width:220px;max-height:52vh;overflow:auto;background:#fff;border:2px solid #31aa4d;border-radius:7px;box-shadow:0 14px 34px rgba(15,23,42,.18);padding:0;z-index:700}
.erp-column-panel header{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:6px 6px 7px;border-bottom:2px solid #31aa4d;color:#2ba346}
.erp-column-panel header b{font-size:13px}
.erp-column-panel header span{display:flex;gap:5px}
.erp-column-panel header button{border-radius:5px;padding:5px 7px;font-size:10px;background:#22a447}
.erp-column-panel header button[data-column-hide-all]{background:#dc3545}
.erp-column-options{display:grid;gap:2px;padding:6px}
.erp-column-options label{display:flex;align-items:center;gap:7px;min-height:29px;margin:0;padding:5px 8px;border:1px solid #31aa4d;border-radius:7px;background:#eaf7ec;color:#263747;font-size:11px;font-weight:700}
.erp-column-options label:has(input:not(:checked)){background:#fff;border-color:#d9dee5}
.erp-column-options input{width:14px;height:14px;accent-color:#2eaa4d;flex:0 0 14px}
.erp-column-panel footer{text-align:center;color:#666;padding:6px 8px 7px;border-top:1px solid #e8edf2;font-size:10px}
.erp-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);margin:4px -18px 16px;padding-left:18px}.erp-tabs button{background:#fff;color:#3d3d3d;border-radius:0;padding:14px 18px;font-size:16px;font-weight:800;border-top:4px solid transparent}.erp-tabs button:hover{background:#f8fafc;color:#0b7a75}.erp-tabs button.active{border-top-color:#3b95c7;color:#2d2c5f;background:#fff}.tab-panel{display:none}.tab-panel.active{display:block}.purchase-items-row td{background:#fbfdff;padding:0 11px 12px}.invoice-items-details{border:1px solid var(--line);border-radius:8px;background:#fff;margin:8px 0}.invoice-items-details summary{cursor:pointer;padding:10px 12px;font-weight:900;color:#2d2c5f;list-style:none}.invoice-items-details summary::-webkit-details-marker{display:none}.invoice-items-details summary:before{content:"+";display:inline-grid;place-items:center;width:18px;height:18px;border-radius:999px;background:#e8f7f5;color:#075e59;margin-right:7px}.invoice-items-details[open] summary:before{content:"-"}.invoice-items-details .table-wrap{border:0;border-top:1px solid var(--line);border-radius:0}
.operation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.operation{border:1px solid var(--line);border-radius:8px;padding:14px;display:grid;gap:9px;background:#fbfdff}
.update-products-flow{display:grid;gap:24px}
.update-step-card,.update-instructions-card{border-top:4px solid #3d7f1e;background:#fff;border-radius:7px;padding:20px 28px 24px;box-shadow:0 10px 24px rgba(15,23,42,.045)}
.update-step-card h3,.update-instructions-card h3{margin:0 0 28px;color:#25245a;font-size:18px;font-weight:600}
.update-step-card p{margin:0 0 12px;color:#777;font-size:13px}
.update-export-btn{width:100%;height:34px;border-radius:18px;background:#67b80d;font-size:12px;padding:7px 12px}
.update-export-btn:hover{background:#4f9208}
.update-import-form{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:16px;align-items:end;max-width:820px}
.update-import-form label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#333}
.update-import-form input[type=file]{height:32px;border:0;background:transparent;padding:4px 0;font-size:12px}
.update-import-form .btn{height:34px;border-radius:16px;padding:7px 18px}
.update-instructions-card{border-top-color:#20bfe0}
.update-howto{background:#21c0d8;color:#fff;border-radius:3px;padding:16px 18px;margin-bottom:18px;font-size:13px;font-weight:650}
.update-howto b{display:block;margin-bottom:3px}.update-howto ol{margin:0;padding-left:20px}.update-howto li{margin:1px 0}
.update-instructions-table th{font-size:12px;color:#333;text-transform:none}.update-instructions-table td{font-size:12px;padding:10px}.update-instructions-table span{color:#777;font-size:11px}.update-instructions-table .required-note{color:#ff3860}
.update-notes{margin-top:14px;background:#ffad40;color:#fff;border-radius:3px;padding:14px 18px;font-size:13px;font-weight:650}
.update-notes b{display:block}.update-notes ul{margin:2px 0 0;padding-left:22px}
.lookup-bulk-toolbar{display:flex;align-items:center;gap:10px;justify-content:flex-start;margin:0 0 12px;padding:10px 12px;border:1px solid #dce8f3;border-radius:8px;background:#f8fbff}
.lookup-bulk-toolbar label{display:flex;align-items:center;gap:7px;color:#334155;font-size:12px;font-weight:850}
.lookup-bulk-toolbar input,.lookup-check-cell input{width:15px;height:15px;accent-color:#007FFF}
.lookup-bulk-toolbar .btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none!important}
.lookup-check-cell{width:70px;text-align:center}
.opening-stock-flow{display:grid;gap:34px}
.opening-stock-card{border-top:4px solid #3d7f1e;background:#fff;border-radius:7px;padding:28px 34px 36px;box-shadow:0 10px 24px rgba(15,23,42,.045)}
.opening-stock-import-form{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:28px 42px;align-items:end;max-width:920px}
.opening-stock-import-form label{display:grid;gap:5px;font-weight:800;color:#333;font-size:13px}
.opening-stock-import-form input[type=file]{height:32px;border:0;background:transparent;padding:4px 0;font-size:13px}
.opening-stock-import-form .btn[type=submit]{height:40px;border-radius:16px;padding:8px 17px;font-size:13px}
.opening-stock-import-form .download-template{grid-column:1/-1;width:max-content;margin-top:26px;border-radius:10px;background:#6fbd10!important;color:#fff;font-size:13px;padding:9px 14px}
.info-dot{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:999px;background:#3d7f1e;color:#fff;font-size:11px;margin-left:4px}
.opening-stock-instructions h3{margin:0 0 42px;color:#25245a;font-size:18px;font-weight:600}
.opening-stock-instructions p{font-size:15px;color:#333;margin:0 0 24px;line-height:1.35}
.opening-stock-table th{font-size:14px;color:#333;text-transform:none}.opening-stock-table td{font-size:14px;padding:12px}.opening-stock-table td:nth-child(2){font-weight:700}.opening-stock-table span{color:#777;font-size:12px;font-weight:500}.opening-stock-table small{display:block;font-size:12px;color:#777;margin-top:3px}.opening-stock-table td:nth-child(3){font-size:14px;color:#333}
.selling-price-page{display:grid;gap:24px}
.selling-price-card{border-top:4px solid #3d7f1e;background:#fff;border-radius:7px;padding:20px 28px 26px;box-shadow:0 10px 24px rgba(15,23,42,.045)}
.selling-price-card h3{margin:0;color:#25245a;font-size:18px;font-weight:600}
.selling-price-import-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,1fr);gap:26px 44px;align-items:start;margin-top:42px}
.selling-price-export{justify-self:start;border-radius:12px;background:#3d7f1e;padding:8px 14px;font-size:12px}
.selling-price-import-form{display:grid;gap:10px;justify-items:start}.selling-price-import-form label{display:grid;gap:5px;font-weight:800;color:#333;font-size:12px}.selling-price-import-form input[type=file]{border:0;background:transparent;padding:4px 0;height:32px;font-size:12px}.selling-price-import-form .btn{border-radius:12px;padding:8px 14px;font-size:12px}
.selling-price-instructions{margin-top:32px;color:#30343b;font-size:13px}.selling-price-instructions h4{margin:0 0 8px;color:#25245a;font-size:16px;font-weight:600}.selling-price-instructions p{margin:9px 0}
.selling-price-list-card{padding-bottom:18px}.selling-price-list-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:34px}.add-round{border-radius:14px;background:#3d7f1e;padding:8px 16px;font-size:13px}
.selling-price-group-form{display:grid;grid-template-columns:220px minmax(260px,1fr) 160px auto;gap:10px;align-items:end;border:1px solid #edf1f5;background:#fbfdff;border-radius:7px;padding:12px;margin:-18px 0 24px}.selling-price-group-form label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#334155}.selling-price-group-form input{height:34px;font-size:12px;padding:7px 9px}
.selling-price-tools{grid-template-columns:auto minmax(420px,1fr) minmax(180px,260px);margin-bottom:24px}.selling-price-table th{font-size:13px;color:#30343b;text-transform:none}.selling-price-table td{font-size:13px;padding:10px}.compact-inline-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.compact-inline-actions form{margin:0}.compact-inline-actions .btn{border-radius:999px;padding:4px 8px;font-size:10px}
.table-footer-line{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;font-size:13px;color:#444}.table-footer-line>div{display:flex;gap:8px}
.purchase-return-card{background:#fff;border-radius:7px;padding:22px 32px;margin-bottom:24px;box-shadow:0 10px 24px rgba(15,23,42,.045)}
.purchase-return-header-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 24px;align-items:start}.purchase-return-header-grid label,.purchase-return-bottom label{display:grid;gap:5px;font-weight:800;color:#333;font-size:12px}.purchase-return-header-grid input,.purchase-return-header-grid select,.purchase-return-bottom select{height:36px;border-radius:0;font-size:12px;padding:7px 10px}.input-with-icon{display:grid;grid-template-columns:38px 1fr;border:1px solid #d8dde5}.input-with-icon>span{display:grid;place-items:center;background:#fff;color:#555}.input-with-icon input,.input-with-icon select{border:0;border-left:1px solid #d8dde5;border-radius:0}.purchase-return-file{grid-column:1/span 1}.file-inline{display:grid;grid-template-columns:1fr 92px;align-items:center}.file-inline input{border-radius:0}.file-inline b{height:36px;display:grid;place-items:center;background:#3d7f1e;color:#fff;border-radius:0 10px 10px 0}.purchase-return-file small{margin-top:12px;color:#777;font-weight:600;line-height:1.35}
.purchase-return-card h3{margin:0 0 42px;color:#25245a;font-size:18px;font-weight:600}.purchase-return-search{width:min(980px,66%);margin:0 auto 18px;display:grid;grid-template-columns:42px 1fr;border:1px solid #d8dde5;background:#f1f2f4}.purchase-return-search span{display:grid;place-items:center;background:#fff;color:#555;font-size:20px}.purchase-return-search input{height:38px;border:0;border-radius:0;background:#eee;font-size:13px}.purchase-return-results{width:min(980px,66%);margin:-14px auto 16px;display:grid;background:#fff;border:1px solid #d8dde5;box-shadow:0 12px 28px rgba(15,23,42,.12);z-index:10;position:relative}.purchase-return-results[hidden]{display:none}.purchase-return-results button{background:#fff;color:#172033;border-radius:0;justify-content:flex-start;text-align:left;padding:9px 12px;border-bottom:1px solid #edf1f5}.purchase-return-results button:hover{background:#f3faf8;color:#075e59}.purchase-return-results small,.purchase-return-lines small{display:block;color:#6b7280;font-weight:500}.purchase-return-table-wrap{border:0}.purchase-return-lines th{font-size:13px;color:#333;text-transform:none;background:#fff;border-bottom:2px solid #d5dae1}.purchase-return-lines td{padding:8px}.purchase-return-lines input{height:32px;font-size:12px;padding:6px 8px}.purchase-return-bottom{display:grid;grid-template-columns:minmax(240px,440px) 1fr;gap:20px;align-items:end;margin-top:16px}.purchase-return-bottom strong{text-align:right;font-size:14px}.purchase-return-submit-row{display:flex;justify-content:flex-end;margin-top:34px}.purchase-return-submit-row .btn{border-radius:16px;padding:8px 18px}
.purchase-return-list-card{border-top:4px solid #3d7f1e}.purchase-return-tools{grid-template-columns:auto minmax(420px,1fr) minmax(180px,300px);margin-bottom:22px}.purchase-return-list-table th{font-size:13px;color:#30343b;text-transform:none}.purchase-return-list-table td{font-size:13px}.empty-cell{text-align:center!important;color:#333}.purchase-return-total-row td{background:#bdf07a!important;font-size:15px;text-align:center}.purchase-return-total-row:hover td{background:#bdf07a!important}
.label-builder{display:grid;gap:22px}.label-section{border-top:4px solid #3d7f1e;background:#fff;border-radius:7px;padding:22px 28px 28px;box-shadow:0 10px 24px rgba(15,23,42,.045)}.label-section h3{margin:0 0 26px;color:#25245a;font-size:18px;font-weight:600}.label-product-search{width:min(980px,75%);margin:0 auto 8px;display:grid;grid-template-columns:42px 1fr;border:1px solid #d8dde5;background:#f1f2f4}.label-product-search span{display:grid;place-items:center;background:#fff;color:#555;font-size:20px}.label-product-search input{border:0;border-radius:0;background:#eee;height:38px;font-size:13px}.label-search-results{width:min(980px,75%);margin:0 auto 12px;border:1px solid #d8dde5;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.12);display:grid}.label-search-results[hidden]{display:none}.label-search-results button{background:#f4f9ff!important;color:#0f4f8c!important;border-radius:0;justify-content:flex-start;text-align:left;padding:9px 12px;border-bottom:1px solid #d6e8f8;box-shadow:none!important}.label-search-results button:hover,.label-search-results button:focus,.label-search-results button:active{background:#e6f2fb!important;color:#083d70!important;outline:2px solid rgba(15,79,140,.18);outline-offset:-2px}.label-search-results button b{color:#123766}.label-search-results small{display:block;color:#41627f;font-weight:600}.label-product-table-wrap{width:min(1200px,84%);margin:0 auto;border:0}.label-product-table th{font-size:13px;text-transform:none;color:#333;background:#fff;border-bottom:2px solid #d5dae1;padding:8px}.label-product-table td{padding:7px 8px}.label-product-table td small{display:block;color:#6b7280}.label-product-table input,.label-product-table select{height:32px;padding:5px 8px;font-size:12px}.label-options-grid{border:1px solid #eef0f2;padding:18px 10px 10px;display:grid;grid-template-columns:1fr 1fr 1fr minmax(190px,.9fr);gap:22px 18px}.label-option{display:grid;gap:8px;font-size:13px;font-weight:800;color:#333}.label-option span{display:flex;align-items:center;gap:6px}.label-option input[type=checkbox]{width:14px;height:14px}.label-option>div{display:grid;grid-template-columns:58px 1fr;border:1px solid #dbe1e8}.label-option b{display:grid;place-items:center;border-right:1px solid #dbe1e8;color:#555}.label-option input[type=number],.label-option select{height:36px;border:0;border-radius:0;font-size:13px}.label-price-mode{align-self:start}.label-price-mode span{height:22px}.label-price-mode select{border:1px solid #dbe1e8;border-radius:0}.label-footer-row{border-top:1px solid #8f969e;margin-top:34px;padding-top:22px;display:grid;grid-template-columns:minmax(360px,1fr) minmax(280px,.48fr);gap:22px;align-items:end}.label-footer-row label{display:grid;gap:6px;font-size:13px;font-weight:800;color:#333}.label-footer-row select{height:36px;font-size:12px}.label-preview-button{height:36px;border-radius:18px;background:#3d7f1e}
.label-preview-section .section-title h3{margin:0}.label-preview-grid{--label-columns:4;--label-width:2in;--label-height:1in;--label-gap:0in;display:grid;grid-template-columns:repeat(var(--label-columns),var(--label-width));gap:var(--label-gap);justify-content:center;align-items:start;overflow:auto}.print-label-card{width:var(--label-width);min-height:var(--label-height);height:var(--label-height);border:1px dashed #9ca3af;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:4px;color:#111827;break-inside:avoid;overflow:hidden}.print-label-card b{line-height:1.1}.print-label-card em{font-style:normal;font-weight:800;line-height:1.05}.print-label-card span,.print-label-card small{color:#374151;line-height:1.05}.print-label-card strong{line-height:1.05}.label-barcode{font-family:monospace;letter-spacing:2px;border-top:8px solid #111;border-bottom:4px solid #111;padding-top:4px;width:82%;margin-top:2px;line-height:1}
.sub-card{box-shadow:none;background:#fbfdff;margin-top:14px}
.erp-form.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.purchase-header{grid-template-columns:repeat(4,minmax(0,1fr))}
.ocr-box{border:1px dashed #99c9c5;background:#eefaf8;border-radius:8px;padding:11px;display:grid;gap:4px}
.purchase-search{position:relative;margin-bottom:10px}
.purchase-search input{font-size:15px;padding:12px 14px}
.search-results{position:absolute;z-index:5;left:0;right:0;top:calc(100% + 4px);display:grid;gap:5px;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:6px;box-shadow:var(--shadow)}
.search-choice{justify-content:flex-start;background:#f8fafc;color:var(--ink);border:1px solid var(--line);font-weight:700}
.search-choice:hover{background:#eef7f6;color:var(--primary-strong)}
.purchase-table-wrap{max-height:440px}
.purchase-sheet{min-width:1900px}
.purchase-sheet th{position:sticky;top:0;z-index:2}
.purchase-sheet td{padding:7px}
.purchase-sheet input{min-width:92px;padding:8px 9px;border-radius:6px}
.purchase-sheet .sheet-product{min-width:245px}
.sheet-product small{display:block;margin-top:4px}
.purchase-sections{grid-template-columns:minmax(300px,.85fr) minmax(760px,2.15fr);align-items:stretch}
.purchase-discount-card,.purchase-shipping-card{display:flex;flex-direction:column;min-height:170px}
.purchase-discount-card h3,.purchase-shipping-card h3,.purchase-payment-card h3{margin:2px 0 10px}
.purchase-discount-grid{grid-template-columns:minmax(120px,1fr) minmax(120px,1fr);gap:10px;align-items:end}
.purchase-discount-grid .inline-total{grid-column:1/-1;min-height:38px}
.purchase-shipping-grid{grid-template-columns:repeat(4,minmax(135px,1fr));gap:10px;align-items:end}
.purchase-shipping-grid .inline-total{grid-column:1 / span 2;min-height:38px}
.purchase-shipping-grid label:last-of-type{grid-column:3}
.purchase-shipping-grid #distributeExpenses{grid-column:4;height:36px;align-self:end;white-space:nowrap;padding:7px 10px;font-size:12px}
.purchase-payment-grid{grid-template-columns:minmax(150px,.8fr) minmax(190px,1fr) minmax(145px,.7fr) minmax(260px,1.3fr) minmax(150px,.8fr);gap:10px;align-items:end}
.purchase-payment-grid .wide{grid-column:auto}
.purchase-discount-grid label,.purchase-shipping-grid label,.purchase-payment-grid label{gap:4px;font-size:12px}
.purchase-discount-grid input,.purchase-discount-grid select,.purchase-shipping-grid input,.purchase-shipping-grid select,.purchase-payment-grid input,.purchase-payment-grid select{height:36px;font-size:12px;padding:7px 9px;border-radius:6px}
.purchase-discount-grid .inline-total,.purchase-shipping-grid .inline-total{padding:8px 10px}.purchase-discount-grid .inline-total span,.purchase-shipping-grid .inline-total span{font-size:10px}.purchase-discount-grid .inline-total strong,.purchase-shipping-grid .inline-total strong{font-size:14px}
.purchase-summary{position:sticky;bottom:10px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr)) auto;gap:10px;align-items:center;background:#10243a;color:#fff;border-radius:8px;padding:14px;margin-top:16px;box-shadow:0 16px 36px rgba(15,23,42,.18)}
.purchase-summary div{display:grid;gap:3px}.purchase-summary span{color:#c7d2fe}.purchase-summary strong{font-size:17px}
.inline-total{display:grid;gap:4px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px}.inline-total span{font-size:12px;text-transform:uppercase;font-weight:900}.inline-total strong{font-size:17px}
.purchase-page-title{margin:0 0 14px;color:#2d2c5f;font-size:20px;font-weight:650}
.purchase-entry-card{border-top:3px solid #3d7f1e;padding-top:16px}
.purchase-entry-card label{font-size:11px;font-weight:800;color:#30343b;gap:6px}
.purchase-entry-card input,.purchase-entry-card select,.purchase-entry-card textarea{border-radius:2px;border-color:#d5dce5;font-size:11px;min-height:30px;padding:6px 9px}
.purchase-entry-card small{color:#777;font-size:10px;font-weight:600;line-height:1.4}
.purchase-header{grid-template-columns:1.05fr 1.05fr 1.1fr .95fr;gap:15px 36px;align-items:start}
.purchase-header .wide{grid-column:1 / span 1}.purchase-address textarea{height:56px;background:#fff}
.purchase-input-pair{display:grid;grid-template-columns:28px 1fr 28px;align-items:center}.purchase-input-pair.two-piece{grid-template-columns:32px 1fr}.purchase-input-pair .input-icon{display:grid;place-items:center;background:#fff;border:1px solid #d5dce5;border-right:0;color:#555;height:30px}.purchase-input-pair select,.purchase-input-pair input{border-radius:0}.purchase-plus{height:30px;width:30px;border-radius:0;background:#fff!important;color:#69bd45!important;border:1px solid #d5dce5;font-size:18px;padding:0}.split-payterm{grid-template-columns:1fr 1fr}.split-payterm input{border-right:0}.purchase-file-input{display:grid;grid-template-columns:1fr 78px}.purchase-file-input input{border-radius:0}.purchase-file-input b{display:grid;place-items:center;background:#3d7f1e;color:#fff;border-radius:0 8px 8px 0;font-size:11px}
.purchase-products-card{border-top:3px solid #3d7f1e;padding-top:16px}.purchase-product-tools{display:grid;grid-template-columns:auto minmax(420px,1fr) auto auto;gap:12px;align-items:center;margin-bottom:12px}.purchase-product-tools .btn{height:30px;border-radius:14px;font-size:11px;padding:6px 13px}.purchase-product-tools a{font-size:11px;font-weight:800;color:#0f65a5;justify-self:end}
.purchase-products-card .purchase-search{display:grid;grid-template-columns:36px 1fr;border:1px solid #cdd8e5;background:#fff;margin:0}.purchase-products-card .purchase-search span{display:grid;place-items:center;background:#fff;color:#555;font-size:17px}.purchase-products-card .purchase-search input{border:0;border-left:1px solid #d5dce5;border-radius:0;background:#fff;font-size:11px;padding:8px 10px;height:32px}
.purchase-sheet th{font-size:10px;text-transform:none;background:#5bb85d;color:#fff;padding:8px 6px}.purchase-sheet th:nth-child(6){background:#f39c34}.purchase-sheet th:nth-child(7){background:#8e44ad}.purchase-sheet th:nth-child(15){background:#1583aa}.purchase-sheet input{border-radius:3px;font-size:11px;padding:6px 8px}
.purchase-sections{grid-template-columns:1fr}.purchase-discount-grid{grid-template-columns:290px 1fr 290px 1fr;gap:14px 28px;align-items:end}.purchase-discount-grid .wide{grid-column:1/-1}.purchase-discount-grid .inline-total{min-height:34px;border:0;background:#fff;justify-content:end;font-size:11px}.purchase-shipping-grid{grid-template-columns:1fr 1fr;gap:12px 46px;align-items:end}.purchase-shipping-grid .inline-total{grid-column:1 / span 1;min-height:34px}.purchase-shipping-grid .btn{justify-self:center;border-radius:14px;font-size:11px;padding:7px 12px;height:30px}.purchase-total-label{grid-column:1/-1;text-align:right;font-size:12px}.purchase-payment-card{border-top:3px solid #3d7f1e}.purchase-payment-grid{grid-template-columns:1fr 1fr 1fr;gap:12px 42px;align-items:end}.purchase-payment-grid .wide{grid-column:1/-1}.purchase-payment-card h3{color:#2d2c5f;font-size:18px;font-weight:650}
.purchase-filter-card{background:#fff;border-radius:8px;margin:0 0 24px;box-shadow:0 10px 24px rgba(15,23,42,.045);overflow:hidden}.purchase-filter-card summary{list-style:none;padding:14px 28px;color:#6aaed6;font-size:17px;font-weight:700;cursor:pointer}.purchase-filter-card summary::-webkit-details-marker{display:none}.purchase-filter-card summary span{display:inline-block;margin-right:7px;color:#fff}.purchase-filter-grid{border-top:1px solid #eef1f4;padding:22px 36px 28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px 34px}.purchase-filter-grid label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#333;min-width:0}.purchase-filter-grid input,.purchase-filter-grid select{height:38px;min-height:38px;border-radius:3px;border-color:#cfd6df;font-size:12px;line-height:1.3;padding:8px 32px 8px 10px;color:#172033;background-color:#fff;overflow:hidden;text-overflow:ellipsis}.purchase-filter-grid input{padding-right:10px}.purchase-filter-actions{display:flex;align-items:end;gap:8px}
.purchase-list-card{border-top:4px solid #3d7f1e;padding:28px 36px}.purchase-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.purchase-list-head h3{margin:0;color:#2d2c5f;font-size:18px;font-weight:650}.purchase-list-tools{display:grid;grid-template-columns:auto minmax(460px,1fr) 260px;gap:18px;align-items:center;margin-bottom:26px}.entries-control{display:flex;align-items:center;gap:7px;font-size:12px;color:#333}.entries-control select{height:36px;width:74px;border-radius:0;font-size:12px}.purchase-export-tools{justify-self:center;display:flex;align-items:center;background:#eee;border-radius:18px;padding:0 7px;min-height:34px}.purchase-export-tools button{background:transparent!important;color:#333!important;border-radius:0;padding:7px 8px;font-size:11px;font-weight:650;box-shadow:none!important}.purchase-export-tools #purchaseColumnTools .erp-table-tools{margin:0}.purchase-export-tools #purchaseColumnTools .erp-column-visibility summary{background:transparent!important;color:#333!important;padding:7px 8px;font-size:11px;box-shadow:none}.purchase-export-tools #purchaseColumnTools .erp-column-panel{right:auto;left:0}.purchase-list-search{height:36px;border-radius:0;background:#eee;font-size:12px}.purchase-list-wrap{border:0}.purchase-list-table{min-width:1380px}.purchase-list-table th{font-size:12px;color:#333;text-transform:none;background:#fff;border-bottom:2px solid #333;padding:10px 12px}.purchase-list-table td{font-size:12px;padding:9px 12px;color:#333}.purchase-list-table tr:nth-child(even) td{background:#fafafa}.purchase-status-pill,.purchase-payment-pill{display:inline-flex;align-items:center;border-radius:3px;padding:3px 8px;font-size:10px;font-weight:900;color:#fff}.purchase-status-received,.payment-status-paid{background:#79d968}.purchase-status-pending,.payment-status-due{background:#ffa83d}.purchase-status-ordered{background:#5aa9e6}.payment-status-partial{background:#f46ba1}.payment-status-overdue{background:#dc2626}.purchase-total-row td{background:#eaf4fb!important;color:#103a5f!important;font-size:13px;text-align:center;padding:14px 12px;border-top:2px solid #9fc8e6!important;border-bottom:1px solid #cfe3f5!important}.purchase-pagination-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;font-size:12px}.purchase-action-menu summary{background:#2b9ab4!important;font-size:12px;padding:6px 11px}.purchase-action-menu .action-menu-panel{min-width:300px;background:#fff;border-color:#e5e7eb;border-radius:7px;padding:8px 0;box-shadow:0 12px 26px rgba(15,23,42,.14)}.purchase-action-menu .contact-action-item{grid-template-columns:28px 1fr;min-height:37px;color:#777!important;background:#fff!important;font-size:16px;font-weight:650;padding:7px 18px;border-radius:0}.purchase-action-menu .contact-action-item:hover{background:#edf6fd!important;color:#0f4f8c!important}.purchase-action-menu .action-icon{color:#777;text-align:center}.purchase-action-menu hr{display:block;margin:7px 0;border:0;border-top:1px solid #eef0f3}
.import-panel{display:grid;grid-template-columns:1fr minmax(260px,360px);gap:16px;align-items:end}
.purchase-action-menu summary{background:#0f4f8c!important;font-size:11px!important;padding:4px 8px!important}.purchase-action-menu .action-menu-panel{min-width:205px!important;background:#fff!important;border-color:#e5e7eb!important;border-radius:5px!important;padding:5px 0!important;box-shadow:0 10px 20px rgba(15,23,42,.12)!important}.purchase-action-menu .contact-action-item{grid-template-columns:20px 1fr!important;min-height:27px!important;color:#1f2f46!important;background:#fff!important;font-size:11px!important;font-weight:650!important;padding:5px 11px!important;border-radius:0!important}.purchase-action-menu .contact-action-item:hover{background:#edf6fd!important;color:#0f4f8c!important}.purchase-action-menu .action-icon{color:#26415f!important;text-align:center;font-size:12px!important}.purchase-action-menu hr{display:block!important;margin:5px 0!important;border:0!important;border-top:1px solid #eef0f3!important}
.purchase-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:5000;display:flex;align-items:center;justify-content:center;padding:24px}.purchase-modal-backdrop[hidden]{display:none}.purchase-modal{width:min(980px,96vw);max-height:90vh;background:#fff;border-radius:2px;box-shadow:0 24px 70px rgba(15,23,42,.32);overflow:auto;border:1px solid #e2e8f0}.purchase-modal header{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid #edf0f3}.purchase-modal header h3{margin:0;color:#2d2c5f;font-size:30px;font-weight:500}.purchase-modal header button{background:transparent!important;color:#c6c6c6!important;box-shadow:none!important;font-size:30px;padding:0;width:34px;height:34px}.purchase-modal-body{padding:26px 24px}.purchase-payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:50px;margin-bottom:26px}.purchase-payment-summary>div{min-height:96px;background:#f8f8f8;border:1px solid #dfe3e8;border-radius:6px;box-shadow:0 1px 5px rgba(15,23,42,.12) inset;padding:22px 32px;color:#333;font-size:18px;line-height:1.35}.purchase-payment-summary b{font-weight:900}.purchase-view-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.purchase-view-grid div{border:1px solid #e1e6ed;background:#fbfdff;border-radius:6px;padding:13px}.purchase-view-grid span{display:block;font-size:11px;text-transform:uppercase;color:#64748b;font-weight:900}.purchase-view-grid b{font-size:16px;color:#172033}.purchase-advance-line{font-size:18px;margin:0 0 10px;color:#333}.purchase-modal-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 50px}.purchase-modal-form-grid label{display:grid;gap:7px;color:#333;font-size:18px;font-weight:900}.purchase-modal-form-grid input,.purchase-modal-form-grid select,.purchase-modal-form-grid textarea{border-radius:0;border:1px solid #d4dae3;font-size:18px;min-height:44px;padding:9px 12px}.purchase-modal-form-grid .wide{grid-column:1/-1}.purchase-modal-form-grid textarea{min-height:120px}.purchase-modal-form-grid small{font-size:16px;color:#777;font-weight:500;line-height:1.35}.purchase-modal-input-icon{display:grid;grid-template-columns:72px 1fr}.purchase-modal-input-icon b{display:grid;place-items:center;border:1px solid #d4dae3;border-right:0;color:#555;background:#fff}.purchase-modal-input-icon input,.purchase-modal-input-icon select{border-left:0}.purchase-modal footer{display:flex;justify-content:flex-end;gap:16px;border-top:1px solid #edf0f3;padding:24px}.purchase-modal footer .btn{border-radius:26px;background:#3d7f1e!important;color:#fff!important;font-size:18px;padding:13px 28px}.purchase-modal footer .secondary{background:#3d7f1e!important}.purchase-payments-table th,.purchase-payments-table td{font-size:12px}
.file-drop{display:grid;gap:8px;border:1px dashed #99b7c8;background:#f8fbfd;border-radius:8px;padding:14px;font-weight:800;color:#334155}
.purchase-detail-modal{width:min(1280px,98vw);border-radius:0}.purchase-detail-titlebar{padding:10px 14px!important}.purchase-detail-titlebar h3{font-size:13px!important;font-weight:700!important;color:#2d2c5f!important}.purchase-detail-body{padding:0;background:#fff;color:#1f2f46;font-size:10px}.purchase-detail-hero{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;background:linear-gradient(90deg,#1b587c,#007FFF);color:#fff;padding:14px 18px}.purchase-detail-logo{width:36px;height:36px;border:2px solid rgba(255,255,255,.75);border-radius:4px;display:grid;place-items:center;background:#f7fbff;color:#2d74a4;font-weight:900;font-family:serif;overflow:hidden}.purchase-detail-logo img{max-width:32px;max-height:32px;object-fit:contain}.purchase-detail-logo span{font-size:13px}.purchase-detail-hero h2{margin:0 0 4px;font-size:15px;color:#fff;font-weight:900}.purchase-detail-hero p{margin:0;color:#eef7ff;font-size:9px}.purchase-detail-heading{text-align:right}.purchase-detail-heading strong{display:block;font-size:16px;letter-spacing:2px;color:#fff}.purchase-detail-heading span{display:inline-flex;margin-top:7px;background:rgba(255,255,255,.18);border-radius:3px;padding:4px 9px;font-weight:900}.purchase-detail-strip{display:flex;gap:18px;align-items:center;background:#eaf4ff;border-bottom:1px solid #c9ddeb;padding:8px 18px;color:#667385}.purchase-detail-strip b{color:#183755}.purchase-detail-pill{display:inline-flex;border-radius:3px;padding:2px 8px;background:#3d7f1e;color:#fff!important;font-size:8px;text-transform:uppercase;font-weight:900}.purchase-detail-due,.purchase-detail-pending{background:#ff9f2f}.purchase-detail-paid,.purchase-detail-received{background:#3d7f1e}.purchase-detail-partial{background:#f46ba1}.purchase-detail-overdue{background:#dc2626}.purchase-detail-ordered{background:#007FFF}.purchase-detail-info{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #dbe6ef}.purchase-detail-info>div{padding:13px 18px;min-height:70px}.purchase-detail-info>div+div{border-left:1px solid #dbe6ef}.purchase-detail-modal h4{margin:0 0 8px;color:#69788b;text-transform:uppercase;font-size:9px;letter-spacing:.7px;border-bottom:2px solid #5aa9e6;display:inline-block;padding-bottom:4px}.purchase-detail-info b{display:block;color:#27364b;margin-bottom:5px}.purchase-detail-info p{margin:4px 0}.purchase-detail-table-wrap{overflow:auto;border-bottom:1px solid #1b587c}.purchase-detail-table{width:100%;border-collapse:collapse;min-width:1120px}.purchase-detail-table th{background:#1b587c;color:#fff;font-size:8.5px;padding:6px 5px;text-align:left;white-space:nowrap}.purchase-detail-table th:nth-child(7),.purchase-detail-table td:nth-child(7){background:#fff4df}.purchase-detail-table th:nth-child(10),.purchase-detail-table td:nth-child(10){background:#f1eafa;color:#6b45ce;font-weight:900}.purchase-detail-table td{border-bottom:1px solid #eef2f6;padding:5px;color:#334155;white-space:nowrap;font-size:8.8px}.purchase-detail-table td b{font-size:9px}.purchase-detail-table tr:nth-child(even) td{background:#f8fafc}.purchase-detail-table tfoot td{background:#fff3df!important;border-top:2px solid #1b587c;font-weight:900;text-align:right}.purchase-detail-lower{display:grid;grid-template-columns:1.4fr 1fr;border-bottom:1px solid #e0e7ef}.purchase-detail-lower>div{padding:13px 18px}.purchase-detail-lower>div+div{border-left:1px solid #e0e7ef}.purchase-detail-mini-table{width:100%;border-collapse:collapse}.purchase-detail-mini-table th{font-size:9px;color:#69788b;text-align:left;border-bottom:1px solid #dbe2ea;padding:6px}.purchase-detail-mini-table td{font-size:8.8px;border-bottom:1px solid #f0f3f6;padding:6px;color:#333}.purchase-detail-summary dl{display:grid;grid-template-columns:1fr auto;gap:7px 12px;margin:0 0 10px}.purchase-detail-summary dt{text-align:right;color:#444}.purchase-detail-summary dd{margin:0;font-weight:900;color:#1b3f69}.purchase-detail-summary dd.danger{color:#ff3939}.purchase-detail-summary strong{display:flex;justify-content:space-between;border-top:2px solid #1b587c;padding-top:9px;color:#1b587c;font-size:12px}.purchase-detail-notes{display:grid;grid-template-columns:1fr 1fr;background:#f8fafc;border-bottom:1px solid #e1e7ef}.purchase-detail-notes>div{padding:10px 18px}.purchase-detail-notes>div+div{border-left:1px solid #e1e7ef}.purchase-detail-notes p{margin:0;color:#333}.purchase-detail-activity{padding:10px 18px 14px}.purchase-detail-modal footer{padding:12px 18px!important}.purchase-detail-modal footer .btn{font-size:12px!important;padding:8px 14px!important;border-radius:18px!important}
.purchase-detail-table th:nth-child(7),.purchase-detail-table td:nth-child(7){background:#ffe6b8!important;color:#17324f!important;font-weight:900!important}#purchasePaymentModal .purchase-modal{width:min(760px,94vw)}#purchasePaymentsViewModal .purchase-modal{width:min(680px,94vw)}#purchasePaymentModal .purchase-modal header,#purchasePaymentsViewModal .purchase-modal header{padding:14px 18px}#purchasePaymentModal .purchase-modal header h3,#purchasePaymentsViewModal .purchase-modal header h3{font-size:22px}#purchasePaymentModal .purchase-modal-body,#purchasePaymentsViewModal .purchase-modal-body{padding:16px 18px}.purchase-payment-modal .purchase-payment-summary,#purchasePaymentsViewModal .purchase-payment-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.purchase-payment-modal .purchase-payment-summary>div,#purchasePaymentsViewModal .purchase-payment-summary>div{min-height:66px;padding:12px 14px;font-size:12px}.purchase-payment-modal .purchase-advance-line{font-size:13px;margin-bottom:8px}.purchase-payment-modal .purchase-modal-form-grid{gap:12px 18px}.purchase-payment-modal .purchase-modal-form-grid label{font-size:12px;gap:5px}.purchase-payment-modal .purchase-modal-form-grid input,.purchase-payment-modal .purchase-modal-form-grid select,.purchase-payment-modal .purchase-modal-form-grid textarea{font-size:12px;min-height:34px;padding:7px 9px}.purchase-payment-modal .purchase-modal-form-grid textarea{min-height:78px}.purchase-payment-modal .purchase-modal-form-grid small{font-size:11px}.purchase-payment-modal .purchase-modal-input-icon{grid-template-columns:42px 1fr}#purchasePaymentModal .purchase-modal footer,#purchasePaymentsViewModal .purchase-modal footer{padding:14px 18px}#purchasePaymentModal .purchase-modal footer .btn,#purchasePaymentsViewModal .purchase-modal footer .btn{font-size:13px;padding:8px 16px;border-radius:18px}
.purchase-detail-signature{display:flex;justify-content:flex-end;padding:18px 24px 12px;background:#fff}.purchase-detail-signature .signature-block{min-width:240px;text-align:center}.purchase-detail-signature .purchase-signature-images{width:4cm;height:3cm;margin:0 auto;display:flex;align-items:end;justify-content:center;gap:10px}.purchase-detail-signature img{max-height:3cm;max-width:4cm;object-fit:contain}.purchase-detail-signature .signature-line{text-align:center;border-top:1px solid #1f2f46;padding-top:6px;color:#1f2f46}.purchase-detail-signature .signature-line span{display:block;font-weight:800}.purchase-detail-signature .signature-line small{display:block;color:#64748b;margin-top:2px}.purchase-detail-signature .signature-line b{display:block;margin-top:4px;color:#1b587c}
.purchase-entry-card .purchase-header{
  grid-template-columns:repeat(5,minmax(130px,1fr))!important;
  gap:8px 10px!important;
  align-items:end!important;
}
.purchase-entry-card .purchase-header label{
  gap:3px!important;
  margin:0!important;
  font-size:10px!important;
  line-height:1.2!important;
}
.purchase-entry-card .purchase-header input,
.purchase-entry-card .purchase-header select,
.purchase-entry-card .purchase-header textarea{
  min-height:28px!important;
  height:28px!important;
  padding:4px 7px!important;
  font-size:10.5px!important;
  border-radius:5px!important;
}
.purchase-entry-card .purchase-header .wide{
  grid-column:auto!important;
}
.purchase-entry-card .purchase-address textarea{
  height:28px!important;
  min-height:28px!important;
  resize:none!important;
}
.purchase-entry-card .purchase-input-pair{
  grid-template-columns:28px 1fr 28px!important;
}
.purchase-entry-card .purchase-input-pair.two-piece{
  grid-template-columns:28px 1fr!important;
}
.purchase-entry-card .purchase-input-pair .input-icon,
.purchase-entry-card .purchase-plus{
  min-height:28px!important;
  height:28px!important;
}
.purchase-entry-card .purchase-file-input{
  grid-template-columns:1fr 74px!important;
}
.purchase-entry-card .purchase-file-input b{
  min-height:28px!important;
  height:28px!important;
  font-size:10px!important;
}
.purchase-entry-card small{
  font-size:9px!important;
  line-height:1.15!important;
}
.purchase-sheet{
  min-width:1660px!important;
}
.purchase-sheet th{
  padding:5px 4px!important;
  font-size:9px!important;
  line-height:1.12!important;
  vertical-align:top!important;
}
.purchase-sheet td{
  padding:4px!important;
  vertical-align:top!important;
}
.purchase-sheet input{
  min-width:70px!important;
  min-height:26px!important;
  height:26px!important;
  padding:3px 5px!important;
  font-size:10px!important;
  border-radius:4px!important;
}
.purchase-sheet .sheet-product{
  min-width:225px!important;
}
.purchase-sheet .line-product-name{
  width:100%!important;
  font-size:10.5px!important;
  font-weight:750!important;
}
.purchase-sheet .remove-line{
  min-height:26px!important;
  padding:4px 8px!important;
  font-size:10px!important;
}
.purchase-sku-box{
  display:inline-flex!important;
  align-items:center!important;
  width:100%!important;
  min-height:22px!important;
  margin-top:3px!important;
  padding:3px 6px!important;
  border:1px solid #d6e3ef!important;
  border-radius:5px!important;
  background:#f7fbff!important;
  color:#21445f!important;
  font-size:9.5px!important;
  font-weight:750!important;
  line-height:1.15!important;
}
.report-print-head{display:none}.report-filter-card{background:#fff;border-radius:8px;margin:0 0 18px;box-shadow:0 10px 24px rgba(15,23,42,.045);overflow:hidden;border:1px solid #e5edf5}.report-filter-card summary{list-style:none;padding:14px 22px;color:#66a9d1;font-size:17px;font-weight:800;cursor:pointer}.report-filter-card summary::-webkit-details-marker{display:none}.report-filter-card summary span{display:inline-block;margin-right:7px}.report-filter-card[open] summary span{transform:rotate(180deg)}.report-filter-grid{border-top:1px solid #eef1f4;padding:18px 24px 22px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 24px}.report-filter-grid label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#333}.report-filter-grid input,.report-filter-grid select{height:32px;border-radius:3px;border-color:#cfd6df;font-size:12px;padding:6px 9px}.report-filter-actions{display:flex;align-items:end;gap:8px}.report-list-card{border-top:4px solid #3d7f1e;padding:24px 28px}.report-list-tools{display:grid;grid-template-columns:auto minmax(360px,1fr) 250px;gap:16px;align-items:center;margin:8px 0 22px}.report-export-tools{justify-self:center;display:flex;align-items:center;background:#eef2f7;border-radius:18px;padding:0 7px;min-height:34px;gap:2px;white-space:nowrap}.report-export-tools .btn{background:transparent!important;color:#333!important;border-radius:0;padding:7px 8px;font-size:11px;font-weight:650;box-shadow:none!important}.report-export-tools .btn:hover{background:#ddeaf5!important;color:#0f4f8c!important}.report-export-tools .erp-table-tools{margin:0}.report-export-tools .erp-column-visibility summary{background:transparent!important;color:#333!important;padding:7px 8px;min-width:124px;font-size:11px;box-shadow:none}.report-export-tools .erp-column-panel{right:auto;left:0}.report-search input{height:36px;border-radius:0;background:#eef0f3;font-size:12px}.report-table-wrap{border:0}.report-data-table{min-width:1180px}.report-data-table th{font-size:12px;color:#333;text-transform:none;background:#fff;border-bottom:2px solid #333;padding:10px 12px}.report-data-table td{font-size:12px;padding:9px 12px;color:#333}.report-data-table tr:nth-child(even) td{background:#fafafa}.report-status-pill{display:inline-flex;align-items:center;border-radius:3px;padding:3px 8px;font-size:10px;font-weight:900;color:#1d3552;background:#eaf4fb}.report-action-menu summary{background:#0f4f8c!important;font-size:11px!important;padding:4px 8px!important}.report-action-menu .action-menu-panel{min-width:230px!important;background:#fff!important;border-color:#e5e7eb!important;border-radius:5px!important;padding:5px 0!important;box-shadow:0 10px 20px rgba(15,23,42,.12)!important}.report-action-menu .contact-action-item{grid-template-columns:20px 1fr!important;min-height:29px!important;color:#606a75!important;background:#fff!important;font-size:12px!important;font-weight:650!important;padding:5px 12px!important;border-radius:0!important}.report-action-menu .contact-action-item:hover{background:#edf6fd!important;color:#0f4f8c!important}.report-action-menu .action-icon{color:#777!important;text-align:center;font-size:13px!important}.report-action-menu hr{display:block!important;margin:5px 0!important;border:0!important;border-top:1px solid #eef0f3!important}
.purchase-modal.compact-payment-modal{width:min(720px,94vw)}.purchase-modal.compact-payment-modal header{padding:14px 18px}.purchase-modal.compact-payment-modal header h3{font-size:18px!important;font-weight:650!important}.purchase-modal.compact-payment-modal header button{font-size:22px!important}.purchase-modal.compact-payment-modal .purchase-payment-body{padding:18px}.purchase-modal.compact-payment-modal footer{padding:14px 18px}.purchase-modal.compact-payment-modal footer .btn{font-size:12px!important;padding:8px 18px!important;border-radius:18px!important}.report-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.report-preview-grid div{border:1px solid #dbe3ea;background:#f8fbff;border-radius:4px;padding:9px 10px}.report-preview-grid b{display:block;color:#0f4f8c;font-size:10px;text-transform:uppercase;margin-bottom:4px}.report-preview-grid span{font-size:12px;color:#1f2937;font-weight:650}
.settings-limit-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:6500;display:flex;align-items:center;justify-content:center;padding:20px}.settings-limit-modal{width:min(760px,94vw);background:#d93424;color:#073763;box-shadow:0 22px 60px rgba(15,23,42,.35)}.settings-limit-modal header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px}.settings-limit-modal h3{margin:0;font-size:20px;color:#073763}.settings-limit-modal header button{background:transparent!important;color:#8d2a1f!important;box-shadow:none!important;font-size:24px}.settings-limit-modal>div{background:#ff2f68;color:#fff;font-weight:800;font-size:12px;padding:18px 24px}.settings-limit-modal footer{display:flex;justify-content:flex-end;padding:22px 24px}.settings-limit-modal footer .btn{border:1px solid rgba(255,255,255,.85)!important;background:transparent!important;color:#fff!important;border-radius:20px;font-size:13px}.payment-settings-form label,.payment-settings-form .settings-toggle b{font-size:11px!important}.payment-settings-form input,.payment-settings-form select,.payment-settings-form textarea{min-height:34px!important;font-size:12px!important;padding:7px 9px!important}.payment-settings-form .secondary-settings-card h3{font-size:16px!important;color:#2d2c5f!important}
.notification-template-card{border-top:4px solid #3d7f1e;padding:24px 28px}.notification-template-card h3{margin:20px 0 10px;color:#2d2c5f;font-size:17px;font-weight:650}.notification-tabs{display:flex;align-items:stretch;gap:0;border-bottom:1px solid #edf2f7;margin-bottom:10px;overflow:auto}.notification-tabs a{display:flex;align-items:center;min-height:44px;padding:0 18px;color:#444;text-decoration:none;font-size:16px;font-weight:800;border-top:3px solid transparent;white-space:nowrap}.notification-tabs a.active{border-top-color:#4d9bd0;background:#fff;color:#1f2f46}.notification-template-form{display:grid;grid-template-columns:1fr 1fr;gap:14px 32px;margin-top:16px}.notification-template-form label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#333}.notification-template-form .wide,.available-tags,.notification-actions{grid-column:1/-1}.available-tags{font-size:12px;color:#5f6b7a;line-height:1.55}.available-tags b{display:block;color:#333;margin-bottom:5px}.notification-template-form input,.notification-template-form textarea{border:1px solid #d2d9e4;border-radius:0;min-height:36px;padding:8px 10px;font-size:12px;background:#fff;color:#172033}.notification-template-form textarea{resize:vertical}.editor-shell{border:1px solid #d2d9e4;background:#fff}.editor-menubar,.editor-toolbar{display:flex;align-items:center;gap:18px;min-height:34px;border-bottom:1px solid #d2d9e4;padding:0 12px;color:#1f2f46;font-size:13px;background:#fff}.editor-toolbar{gap:14px;color:#475569}.editor-shell textarea{border:0;width:100%;min-height:210px}.notification-actions{display:flex;justify-content:center;padding:24px 0 4px}.notification-list-card{border-top:4px solid #3d7f1e}.notification-list-card .data-table th,.notification-list-card .data-table td{font-size:12px}@media(max-width:800px){.notification-template-form{grid-template-columns:1fr}.notification-tabs a{font-size:13px;padding:0 12px}.editor-menubar,.editor-toolbar{font-size:11px;gap:9px;overflow:auto}}
.barcode-list-card .purchase-list-table{min-width:900px}.barcode-settings-form{display:grid;grid-template-columns:1fr 1fr;gap:16px 34px;padding:24px 32px}.barcode-settings-form label{display:grid;gap:6px;font-size:12px!important;font-weight:800;color:#333}.barcode-settings-form .wide{grid-column:1/-1}.barcode-settings-form input,.barcode-settings-form select,.barcode-settings-form textarea{border-radius:0!important;border:1px solid #d2d9e4!important;font-size:12px!important;min-height:36px!important;padding:8px 10px!important}.barcode-settings-form textarea{min-height:74px!important}.barcode-settings-form .check{display:flex!important;align-items:center;gap:8px}.barcode-settings-form .business-settings-actions{display:flex;justify-content:flex-end;gap:10px}@media(max-width:800px){.barcode-settings-form{grid-template-columns:1fr;padding:16px}.barcode-settings-form .wide{grid-column:auto}}
.exchange-table input{border:0!important;background:transparent!important;padding:0!important;height:auto!important;min-height:0!important;font-size:12px!important;color:#1f2937}.exchange-table .compact-check{justify-content:flex-start}.exchange-actions{display:flex;flex-wrap:wrap;gap:6px}.exchange-actions .mini-link{border:0;border-radius:16px;padding:5px 9px;background:#3d7f1e;color:#fff!important;font-size:11px;font-weight:800}.exchange-actions .danger{background:#ff315f!important}.exchange-actions .warning{background:#ffa83d!important;color:#fff!important}.settings-popup-preview[hidden]{display:none}.settings-popup-preview{margin-top:18px}.settings-popup-preview header button{background:transparent!important;color:#c4c4c4!important;box-shadow:none!important;font-size:24px;padding:0}.settings-popup-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #eef2f7;padding:16px 22px}.settings-popup-actions .btn{border-radius:22px;padding:10px 22px}@media(max-width:800px){.exchange-actions{min-width:170px}}
.report-data-table tr.report-section-row td{background:#eef3f6!important;font-weight:900;color:#1f2937}.report-data-table tr.report-total-row td{font-weight:900}.report-data-table tr.report-highlight-green td{background:#ddf5df!important;border-top:1px solid #5abf6a!important;border-bottom:1px solid #5abf6a!important;font-weight:900;color:#173b25}.report-data-table tr.report-highlight-yellow td{background:#fff6d6!important;border-top:1px solid #f6c84f!important;border-bottom:1px solid #f6c84f!important;font-weight:900;color:#5f4100}.report-data-table tr.report-highlight-blue td{background:#dff4fb!important;border-top:1px solid #0f4f8c!important;border-bottom:1px solid #0f4f8c!important;font-weight:900;color:#0f4f8c}
.report-list-card + .operation-grid,
.report-filter-card + .operation-grid,
.page-head + .operation-grid,
.card .operation-grid{
  gap:16px;
}
.report-list-card + .operation-grid .operation,
.report-filter-card + .operation-grid .operation,
.page-head + .operation-grid .operation,
.card .operation-grid .operation{
  padding:18px 20px;
}
.report-list-card + .operation-grid .operation b,
.report-filter-card + .operation-grid .operation b,
.page-head + .operation-grid .operation b,
.card .operation-grid .operation b{
  color:#0f4f8c;
  font-size:15px;
}
.report-list-card + .operation-grid .operation span,
.report-filter-card + .operation-grid .operation span,
.page-head + .operation-grid .operation span,
.card .operation-grid .operation span{
  color:#172033;
  font-size:24px;
  font-weight:900;
  line-height:1.2;
}
.profit-loss-page{display:grid;gap:26px}.profit-loss-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.profit-loss-summary-card{background:#fff;border-radius:6px;box-shadow:0 8px 24px rgba(15,23,42,.04);padding:28px 34px}.profit-loss-metric{display:grid;grid-template-columns:1.25fr .75fr;align-items:stretch;min-height:44px}.profit-loss-metric b,.profit-loss-metric span{display:flex;align-items:center;padding:8px 12px;border-top:1px solid #d4dbe5}.profit-loss-metric b{background:#fafafa;color:#333;font-size:12px;font-weight:900}.profit-loss-metric small{display:block;color:#777;font-size:10px;margin-top:3px}.profit-loss-metric span{justify-content:flex-start;color:#424242;font-size:12px;background:#fff}.profit-loss-kpis{background:#fff;border-radius:6px;box-shadow:0 8px 24px rgba(15,23,42,.04);padding:42px 36px;display:grid;gap:24px}.profit-loss-kpis strong{display:block;color:#777;font-size:30px;font-weight:500;line-height:1.1}.profit-loss-kpis small{display:block;color:#666;font-size:11px;margin-top:8px;line-height:1.45}.profit-loss-tabs-card{border-top:0!important;padding:0 0 24px!important}.profit-loss-print-row{display:flex;justify-content:flex-end;padding:0 0 8px}.profit-loss-tabs{display:flex;flex-wrap:wrap;border-bottom:1px solid #eef2f6;margin-bottom:14px}.profit-loss-tabs a{min-height:62px;display:flex;align-items:center;padding:0 22px;border-top:3px solid transparent;color:#333;text-decoration:none;font-size:19px;font-weight:900}.profit-loss-tabs a.active{border-top-color:#3c9bd2;color:#333;background:#fff}.profit-loss-tabs a:hover{background:#f4f9fd;color:#0f4f8c}.profit-loss-tabs-card .report-list-tools{padding:0 18px}.profit-loss-tabs-card .report-table-wrap{padding:0 18px}@media(max-width:900px){.profit-loss-summary-grid{grid-template-columns:1fr}.profit-loss-summary-card{padding:18px}.profit-loss-kpis{padding:24px 18px}.profit-loss-kpis strong{font-size:22px}.profit-loss-tabs a{font-size:14px;min-height:46px;padding:0 12px}.profit-loss-tabs-card .report-list-tools{grid-template-columns:1fr}.profit-loss-metric{grid-template-columns:1fr}.profit-loss-metric span{border-top:0}}
.product-form-card{padding:18px 20px 20px;border-top:3px solid var(--primary)}
.product-form-card .section-title{align-items:center;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid #edf2f7}
.product-form-card .section-title h3{font-size:20px;font-weight:650;color:#172033}
.product-form-card .eyebrow{font-size:11px;letter-spacing:.08em}
.product-form{grid-template-columns:190px repeat(4,minmax(150px,1fr));gap:14px 16px;align-items:start}
.product-form label{gap:5px;font-size:12px;font-weight:650;color:#334155}
.product-form input,.product-form select,.product-form textarea{height:38px;padding:8px 10px;border-radius:6px;font-size:13px;background:#fff}
.product-form textarea{height:auto;min-height:84px;line-height:1.35}
.product-form .check{height:38px;align-content:center;font-size:12px;font-weight:650;background:#f6faf9;border:1px solid #dbece8}
.product-check-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;padding-top:4px;align-items:center}
.product-check-row .check{margin:0}
.product-form .form-actions{justify-content:flex-end;gap:8px;padding:0;border-top:0;white-space:nowrap}
.product-form .form-actions .btn{padding:8px 12px;font-size:12px;min-width:96px;height:38px}
.product-form .inline-control{grid-template-columns:minmax(0,1fr) 84px}
.product-form .inline-control .btn{height:38px;padding:8px 10px;font-size:12px}
.product-form .arabic-name-field small{font-size:11px;font-weight:500;color:#7b8794}
.image-uploader{grid-row:span 4;border:1px dashed #b9c8d8;border-radius:8px;padding:12px;background:#f8fbfd;display:grid;gap:10px}
.product-form .image-uploader{grid-row:span 5;align-self:start;padding:12px;background:#f8fbfd;border-color:#c5d7e5}
.product-form .image-uploader label{font-size:12px}
.product-form .image-uploader input[type=file]{height:auto;padding:6px;background:#fff;font-size:11px}
.product-form .image-uploader small{font-size:11px}
.image-preview{aspect-ratio:1/1;border-radius:8px;background:#e8eef6;display:grid;place-items:center;overflow:hidden;color:var(--muted);font-weight:800}
.product-form .image-preview{border-radius:7px;background:#eef4f8;color:#718096;font-size:12px;font-weight:650;min-height:164px}
.image-preview img,.thumb img{width:100%;height:100%;object-fit:cover}
.product-cell{display:flex;gap:10px;align-items:center;min-width:220px}
.inventory-summary-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:10px}
.inventory-summary-metrics .metric-card{padding:10px 12px;margin-bottom:8px;border-radius:7px}
.inventory-summary-metrics .metric-card span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.inventory-summary-metrics .metric-card strong{font-size:18px;margin-top:3px;line-height:1.1}
.product-list-card .section-title{align-items:center}
.product-list-card .filter-bar{grid-template-columns:minmax(190px,1fr) 132px auto auto;min-width:min(700px,100%);align-items:center}
.product-list-card .filter-bar input,.product-list-card .filter-bar select{height:34px;padding:7px 9px;font-size:12px}
.product-list-card .filter-bar .btn{height:34px;padding:7px 11px;font-size:12px}
.product-column-tools{display:flex;align-items:center;justify-content:flex-end;min-width:138px}
.product-column-tools .erp-table-tools{margin:0}
.product-column-tools .erp-column-visibility summary{padding:6px 9px;font-size:11px;min-width:122px;background:#f1f1f1!important;color:#26313e!important;box-shadow:none!important}
.product-column-tools .erp-column-panel{width:190px;max-height:300px;border:1px solid #d8e1ec;border-radius:7px;box-shadow:0 10px 24px rgba(15,23,42,.14)}
.product-column-tools .erp-column-panel header{padding:6px;border-bottom:1px solid #e8edf2;color:#263747}
.product-column-tools .erp-column-panel header b{font-size:11px}
.product-column-tools .erp-column-panel header button{padding:4px 6px;border-radius:5px;font-size:9px;box-shadow:none!important}
.product-column-tools .erp-column-options{gap:1px;padding:5px}
.product-column-tools .erp-column-options label{min-height:24px;padding:4px 7px;border:0;background:#fff;color:#263747;font-size:10px;font-weight:650}
.product-column-tools .erp-column-options label:hover{background:#eef7ff}
.product-column-tools .erp-column-options label.is-draggable{cursor:grab}
.product-column-tools .erp-column-options label.is-draggable span:before{content:"⋮⋮";display:inline-block;margin-right:5px;color:#94a3b8;font-size:9px;letter-spacing:-2px}
.product-column-tools .erp-column-options label.is-dragging{opacity:.58;background:#dff0ff}
.product-column-tools .erp-column-options input{width:12px;height:12px;flex-basis:12px}
.product-column-tools .erp-column-panel footer{display:flex;align-items:center;gap:3px;flex-wrap:wrap;padding:5px 7px;font-size:9px}
.product-column-tools .erp-column-panel footer em{display:block;flex-basis:100%;margin-top:3px;color:#64748b;font-style:normal;font-weight:750}
.product-filter-card{border:1px solid #dce8f3;border-radius:8px;background:#fbfdff;margin:0 0 16px;overflow:hidden;box-shadow:0 8px 20px rgba(15,23,42,.035)}
.product-filter-card summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:36px;padding:8px 12px;color:#0f4f8c;font-size:13px;font-weight:900;background:#fff}
.product-filter-card summary::-webkit-details-marker{display:none}
.product-filter-card summary span{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;background:#eaf4fb;color:#0f4f8c;font-size:12px;transition:transform .16s ease}
.product-filter-card[open] summary span{transform:rotate(180deg)}
.product-filter-grid{display:grid;grid-template-columns:minmax(260px,1.2fr) repeat(5,minmax(122px,.72fr)) auto;gap:8px;align-items:end;padding:10px 12px;border-top:1px solid #e7eef6}
.product-filter-grid label{display:grid;gap:4px;color:#334155;font-size:10.5px;font-weight:850;min-width:0}
.product-filter-grid input,.product-filter-grid select{height:31px;border-radius:6px;border-color:#d2deea;background:#fff;font-size:11px;padding:6px 8px;min-width:0}
.product-filter-grid input[name="q"]{min-width:0;width:100%}
.product-filter-search{position:relative}
.product-search-results{position:absolute;z-index:80;top:100%;left:0;right:0;margin-top:4px;background:#fff;border:1px solid #cbdff1;border-radius:7px;box-shadow:0 14px 34px rgba(15,23,42,.16);padding:5px;max-height:280px;overflow:auto}
.product-search-results button{width:100%;display:grid;gap:2px;text-align:left;background:#fff!important;color:#172033!important;border:0!important;box-shadow:none!important;border-radius:5px;padding:7px 8px!important;font-size:11px!important}
.product-search-results button:hover{background:#edf6fd!important;color:#0f4f8c!important}
.product-search-results b{font-size:11.5px;line-height:1.2}
.product-search-results small{font-size:10px;color:#64748b;line-height:1.1}
.product-search-empty{padding:8px;color:#64748b;font-size:11px;font-weight:800}
.product-filter-actions{display:flex;align-items:center;gap:7px}
.product-filter-actions .btn{height:31px;padding:6px 10px;font-size:11px;border-radius:7px}
.product-list-utility-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px}
.product-entries-control{margin:0}
.product-print-hint{font-size:11px;color:#64748b;font-weight:700}
.product-master-tabs{display:inline-flex;gap:0;border:1px solid #cfe3f5;border-radius:8px;margin:8px 0 18px;padding:3px;background:#f6fbff;box-shadow:none}
.product-master-tabs button{background:transparent!important;color:#35506b!important;border:0;border-radius:6px;padding:9px 16px;font-size:13px;font-weight:800;box-shadow:none!important}
.product-master-tabs button:hover{background:#eaf4fb!important;color:#0f4f8c!important}
.product-master-tabs button.active{background:#0f4f8c!important;color:#fff!important;border-top:0;box-shadow:0 7px 16px rgba(15,79,140,.16)!important}
.product-master-table{min-width:1600px;border-collapse:separate;border-spacing:0}
.product-master-table th{font-size:11.5px;color:#2f3338;background:#fff;padding:9px 10px;border-bottom:1px solid #2f3338;vertical-align:bottom;white-space:nowrap}
.product-master-table th::after{content:"  ↕";color:#b8b8b8;font-weight:400;margin-left:8px}
.product-master-table th:first-child::after,.product-master-table th:nth-child(2)::after,.product-master-table th:nth-child(3)::after{content:""}
.product-master-table td{padding:9px 10px;border-bottom:0;background:#fff;vertical-align:middle;font-size:11.5px}
.product-master-table tr:nth-child(even) td{background:#fafafa}
.product-master-table tr.product-row-inactive td{background:#fff7ed;color:#6b7280}
.product-master-table tr.product-row-inactive:nth-child(even) td{background:#fff3e3}
.product-master-table th:first-child,.product-master-table .product-check{width:72px;min-width:72px;max-width:72px;padding-left:7px;padding-right:7px;text-align:center}
.product-master-table input[type=checkbox]{width:16px;height:16px}
.product-bulk-tools{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
.bulk-delete-btn{height:22px;border-radius:6px;background:#fee2e2!important;color:#991b1b!important;border:1px solid #fecaca!important;padding:2px 6px;font-size:10px;font-weight:800;box-shadow:none!important}
.bulk-delete-btn:hover:not(:disabled){background:#fecaca!important;color:#7f1d1d!important}
.bulk-delete-btn:disabled{opacity:.45;cursor:not-allowed}
.erp-confirm-modal{position:fixed;inset:0;z-index:950;display:none;align-items:center;justify-content:center;background:rgba(15,31,53,.42);backdrop-filter:blur(3px);padding:18px}
.erp-confirm-modal.open{display:flex}
.erp-confirm-card{width:min(430px,94vw);display:grid;grid-template-columns:44px 1fr;gap:13px;background:#fff;border:1px solid #cfe3f5;border-top:4px solid #0f4f8c;border-radius:12px;box-shadow:0 24px 70px rgba(15,23,42,.28);padding:18px}
.erp-confirm-icon{width:38px;height:38px;border-radius:999px;display:grid;place-items:center;background:#eaf4fb;color:#0f4f8c;font-size:22px;font-weight:900}
.erp-confirm-card h3{margin:2px 0 6px;color:#17213a;font-size:20px;line-height:1.15}
.erp-confirm-copy{margin:0;color:#526173;font-size:13px;line-height:1.45}
.erp-confirm-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;margin-top:8px}
.erp-confirm-actions button{border-radius:9px;padding:9px 14px;font-size:13px;font-weight:900}
.erp-confirm-cancel{background:#eef5fb!important;color:#21364f!important;border:1px solid #cfe3f5!important}
.erp-confirm-delete{background:#0f4f8c!important;color:#fff!important;border:1px solid #0f4f8c!important}
.erp-confirm-delete:hover{background:#0b4275!important}
.product-image-col{width:62px}
.product-list-thumb{width:42px;height:42px;border-radius:4px;background:#f3f4f6}
.product-list-thumb img{width:100%;height:100%;object-fit:cover}
.product-list-thumb span{font-size:18px}
.product-name-col{min-width:170px;max-width:210px}
.product-name-col b{display:block;line-height:1.25;font-size:11.5px;font-weight:700}
.product-name-col small{display:block;color:#6b7280;margin-top:3px;line-height:1.2;font-size:10.5px}
.product-status-pill{display:inline-flex;align-items:center;margin-top:4px;padding:2px 6px;border-radius:999px;font-size:9px;font-weight:900;line-height:1;text-transform:uppercase;letter-spacing:.02em}
.product-status-pill.inactive{background:#fed7aa;color:#9a3412;border:1px solid #fdba74}
.product-action-menu summary{font-size:10px;padding:3px 7px;background:#3d7f1e}
.product-action-menu[open] summary{background:#2688a7}
.product-action-menu .action-menu-panel{min-width:205px;border-radius:5px;padding:5px 0;box-shadow:0 10px 20px rgba(15,23,42,.12)}
.product-action-menu .contact-action-item{grid-template-columns:18px 1fr;font-size:10.5px;min-height:25px;padding:4px 9px;color:#1f2f46;font-weight:650}
.product-action-menu .contact-action-item span{font-size:12px;text-align:center;color:#26415f}
.product-action-menu hr{display:none}
.stock-report-table{min-width:1880px;border-collapse:separate;border-spacing:0}
.stock-report-table th{font-size:12px;color:#2f3338;background:#fff;padding:12px 11px;border-bottom:1px solid #2f3338;vertical-align:bottom;text-transform:none;white-space:normal}
.stock-report-table th::after{content:"  ↕";color:#c9c9c9;font-weight:400;margin-left:8px}
.stock-report-table td{padding:14px 11px;border-bottom:0;background:#fff;vertical-align:middle;font-size:13px}
.stock-report-table tr:nth-child(even) td{background:#fafafa}
.stock-report-table small{font-size:11px;color:#3d3d3d;font-weight:700}
.stock-history-pill{background:#3d7f1e!important;color:#fff!important;border-radius:999px;padding:4px 8px;font-size:11px}
.stock-history-filter-card{padding:18px 28px 26px}.stock-history-filter-card h3,.stock-history-report-card h3{margin:0 0 20px;color:#25245a;font-size:18px;font-weight:600}
.stock-history-filters{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,1fr) auto auto;gap:18px;align-items:end}.stock-history-filters label{display:grid;gap:6px;font-weight:800;color:#333;font-size:12px}.stock-history-filters select{height:34px;padding:6px 10px;font-size:12px;border-radius:5px}.stock-history-filters .btn{height:34px;padding:7px 11px;font-size:12px}
.stock-history-report-card{padding:28px}.stock-history-summary{display:grid;grid-template-columns:1.05fr 1.05fr .9fr;gap:34px;margin-bottom:34px}.stock-history-summary h4{margin:0 0 4px;font-size:13px;color:#333}.stock-history-summary dl{margin:0}.stock-history-summary dl div{display:grid;grid-template-columns:1.25fr 1fr;border-top:1px solid #e1e5ea;padding:7px 6px}.stock-history-summary dt{font-weight:800;color:#333}.stock-history-summary dd{margin:0;color:#333}.stock-history-toolbar{border-top:1px solid #9ca3af;padding-top:18px;margin-top:10px;margin-bottom:22px;display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center}.stock-history-toolbar>label{display:flex;align-items:center;gap:7px;font-size:13px}.stock-history-toolbar select{width:76px;height:34px;padding:5px 8px;font-size:12px}.stock-history-toolbar .contact-export-tools{margin:0 auto;gap:9px;padding:3px 10px}.stock-history-toolbar .contact-export-tools .btn,.stock-history-toolbar .column-visibility summary{padding:6px 9px}.stock-history-column-visibility div{left:50%;transform:translateX(-50%)}
.stock-history-table{min-width:1280px}.stock-history-table th{background:#fff;color:#333;text-transform:none;font-size:13px;padding:12px 14px;border-bottom:2px solid #333}.stock-history-table td{font-size:13px;padding:9px 14px}.stock-history-table tr:hover td{background:#fbfdff}.negative-qty{color:#ff315c;font-weight:700}.positive-qty{color:#198754;font-weight:700}
.stock-reference-link{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:3px 8px;border-radius:999px;background:#eaf4fb;color:#0f4f8c!important;font-weight:900;text-decoration:none}
.stock-reference-link:hover{background:#d9ecfb;color:#0b3e70!important}
.product-view-card{display:grid;gap:20px}
.product-view-hero{display:grid;grid-template-columns:170px 1fr;gap:22px;align-items:center}
.product-view-image{width:160px;height:160px;background:#f4f6f8;border:1px solid #e5e7eb;display:grid;place-items:center;overflow:hidden}
.product-view-image img{width:100%;height:100%;object-fit:cover}
.product-view-image span{font-size:52px;color:#0f766e;font-weight:900}
.arabic-product-title{font-size:20px;font-weight:800;margin:6px 0;color:#111827}
.product-view-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.product-view-grid div{border:1px solid #e2e8f0;background:#fbfdff;border-radius:8px;padding:12px;display:grid;gap:5px}
.product-view-grid span{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:900}
.product-view-grid b{font-size:15px;color:#1f2937}
.lookup-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.lookup-actions form{margin:0}
.lookup-actions .btn.small{padding:5px 8px;font-size:11px;border-radius:5px}
.lookup-form{grid-template-columns:minmax(180px,1fr) minmax(260px,1.2fr) minmax(110px,.55fr) minmax(140px,.65fr) minmax(180px,1fr) auto;align-items:end}
.lookup-form label{min-width:0}
.lookup-form input{height:34px;padding:7px 9px;font-size:13px}
.lookup-form .inline-control{grid-template-columns:minmax(0,1fr) 104px}
.lookup-form .inline-control .btn{height:34px;padding:7px 9px;font-size:11px;border-radius:6px}
.lookup-save{height:34px;padding:7px 13px!important;font-size:12px!important;border-radius:6px!important;align-self:end}
.lookup-translate-status{display:none}
@media(max-width:1200px){.lookup-form{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.product-view-hero,.product-view-grid{grid-template-columns:1fr}.product-view-image{width:100%;height:220px}}
@media(max-width:900px){.lookup-form{grid-template-columns:1fr}.lookup-form .inline-control{grid-template-columns:1fr}.lookup-save{width:100%}}
@media(max-width:900px){.purchase-return-header-grid,.purchase-return-bottom,.purchase-return-tools{grid-template-columns:1fr}.purchase-return-search,.purchase-return-results{width:100%}.purchase-return-file{grid-column:auto}.purchase-return-card{padding:16px}.purchase-return-submit-row{justify-content:stretch}.purchase-return-submit-row .btn{width:100%}}
.thumb{width:46px;height:46px;border-radius:8px;background:#e8f7f5;display:grid;place-items:center;overflow:hidden;color:var(--primary);font-weight:900;flex:0 0 auto}
.error-box{margin-top:12px;border:1px solid #fecaca;background:#fef2f2;color:#991b1b;border-radius:7px;padding:10px}
.notice{padding:12px;background:#dcfce7;border:1px solid #86efac;border-radius:8px;margin-bottom:12px}
.global-feedback{position:sticky;top:10px;z-index:2500;box-shadow:0 10px 26px rgba(15,23,42,.14);font-weight:800}
.outlook-email-hint{display:block;color:#64748b;font-size:11px;font-weight:700;line-height:1.35}
button.is-loading,.btn.is-loading,button:disabled{opacity:.72;cursor:not-allowed}
.login-page{min-height:100vh;display:grid;place-items:center}.login-card{width:min(420px,92vw);display:grid;gap:12px;background:white;border:1px solid var(--line);border-radius:8px;padding:24px;box-shadow:var(--shadow)}.login-card label{display:grid;gap:6px}
.moit-login-page{display:block;min-height:100vh;background:linear-gradient(135deg,#f5fbff 0%,#eaf4fb 42%,#dcebf6 100%);padding:24px;color:#13243a}
.login-shell{min-height:calc(100vh - 48px);display:grid;grid-template-columns:minmax(360px,.82fr) minmax(520px,1.18fr);max-width:1440px;margin:0 auto;background:#fff;border:1px solid rgba(14,82,131,.14);border-radius:22px;overflow:hidden;box-shadow:0 28px 80px rgba(17,52,84,.16)}
.login-panel{display:grid;align-content:start;gap:16px;padding:26px 46px;background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);border-right:1px solid rgba(14,82,131,.11)}
.login-brand{display:grid;justify-items:center;text-align:center;gap:10px;margin-bottom:0}
.login-brand img{width:88px;height:88px;object-fit:contain;border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(17,52,84,.12)}
.login-brand span,.login-copy span,.feature-heading span{display:inline-flex;justify-content:center;color:#0f766e;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.login-brand span{text-transform:none;letter-spacing:0;font-size:13px;color:#0f4f8c}
.login-brand h1{margin:0;color:#0f4f8c;font-size:34px;line-height:1;font-weight:900;letter-spacing:0}
.login-brand p{margin:3px 0 0;color:#456174;font-size:15px;font-weight:700}
.moit-login-page .login-card{width:100%;border:1px solid #d7e6f2;border-radius:16px;padding:20px 24px;background:#fff;box-shadow:0 16px 38px rgba(17,52,84,.08);gap:12px}
.login-copy{display:grid;gap:4px;margin-bottom:0}.login-copy span{justify-content:flex-start;color:#1e6da8}.login-copy h2{margin:0;font-size:24px;color:#13243a}.login-copy p{margin:0;color:#60758a;font-weight:750}
.moit-login-page .login-card label{font-weight:800;color:#263747;gap:7px}
.moit-login-page .login-card input{height:44px;border-radius:11px;border-color:#cddcea;background:#fbfdff;padding:0 13px}
.login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}
.remember-check{display:flex!important;align-items:center;gap:7px;color:#52677a!important;font-weight:750!important}.remember-check input{width:16px!important;height:16px!important;flex:0 0 16px;padding:0}
.login-options a{color:#0f766e;font-weight:900}.login-options a:hover{text-decoration:underline}
.login-submit{height:46px;border-radius:12px;background:#0f4f8c;font-size:15px}.login-submit:hover{background:#0b3e70}
.login-help{display:grid;justify-items:center;text-align:center;gap:7px;color:#52677a;font-weight:700}
.login-help b{font-size:15px;color:#13243a}.login-help span{line-height:1.25}
.support-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:5px}
.support-actions a{min-width:132px;border-radius:999px;border:1px solid #b8d2e6;background:#fff;color:#0f4f8c;padding:10px 15px;font-weight:900;box-shadow:0 8px 18px rgba(17,52,84,.06)}
.support-actions a:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(17,52,84,.1)}
.login-panel footer{text-align:center;color:#60758a;font-size:12px;font-weight:800;margin-top:auto;padding-top:6px}
.captcha-box{display:grid;gap:8px;border:1px solid #d7e6f2;border-radius:12px;background:#f7fbff;padding:12px}
.captcha-box span{color:#0f4f8c;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.captcha-box b{font-size:20px;color:#13243a}
.forgot-password-card button:disabled{background:#9ab0c5;cursor:not-allowed}
.login-feature-panel{position:relative;display:grid;align-content:center;gap:26px;padding:52px;background:linear-gradient(145deg,#0b3156 0%,#0b4b73 44%,#0f766e 100%);color:#fff;overflow:hidden}
.login-feature-panel:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.08),transparent 42%),radial-gradient(circle at 80% 12%,rgba(255,255,255,.18),transparent 26%);pointer-events:none}
.login-feature-panel>*{position:relative}.feature-heading{max-width:720px}.feature-heading h2{margin:7px 0 8px;font-size:34px;line-height:1.12;color:#fff}.feature-heading p{margin:0;color:rgba(255,255,255,.76);font-size:16px;font-weight:650}
.feature-heading span{justify-content:flex-start;color:#aee7d8}
.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.feature-grid div{min-height:118px;border:1px solid rgba(255,255,255,.18);border-radius:15px;background:rgba(255,255,255,.08);padding:16px 12px;display:grid;justify-items:center;align-content:center;text-align:center;gap:10px;backdrop-filter:blur(5px)}
.feature-grid div:hover{background:rgba(255,255,255,.13);transform:translateY(-2px)}
.feature-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.16);color:#d7f7ff;border:1px solid rgba(255,255,255,.2);font-size:12px;font-weight:900;letter-spacing:.04em}
.feature-grid b{font-size:14px;line-height:1.2;color:#f7fbff}
.login-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-top:1px solid rgba(255,255,255,.16);padding-top:22px}
.login-stats div{border:1px solid rgba(255,255,255,.18);border-radius:15px;background:rgba(255,255,255,.08);padding:18px;text-align:center;display:grid;gap:4px}
.login-stats strong{font-size:31px;line-height:1;color:#fff}.login-stats span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.72);font-weight:900}
@media(max-width:1120px){.login-shell{grid-template-columns:1fr}.login-panel{border-right:0;border-bottom:1px solid rgba(14,82,131,.11)}.login-feature-panel{padding:34px}.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.moit-login-page{padding:10px}.login-shell{min-height:calc(100vh - 20px);border-radius:16px}.login-panel,.login-feature-panel{padding:24px 18px}.login-brand img{width:92px;height:92px}.login-brand h1{font-size:30px}.login-copy h2,.feature-heading h2{font-size:24px}.feature-grid,.login-stats{grid-template-columns:1fr}.login-options{align-items:flex-start}.support-actions a{min-width:0;flex:1 1 120px}.login-stats strong{font-size:26px}}
.pos{display:grid;grid-template-columns:1fr 420px;gap:16px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.product{display:grid;gap:6px;text-align:left;color:var(--ink);background:var(--panel);border:1px solid var(--line);min-height:110px}.cart table input{width:80px}.pill{font-size:13px;background:#dcfce7;color:#166534;border-radius:999px;padding:4px 9px}
.shell:has(.pos-terminal){display:block;min-height:100vh;background:#d2d6df}.shell:has(.pos-terminal) .sidebar,.shell:has(.pos-terminal) .topbar{display:none}.shell:has(.pos-terminal)>main{padding:0}
.pos-terminal{min-height:100vh;background:#d1d5dd;color:#202833;display:grid;grid-template-rows:auto 1fr auto;font-size:14px}.pos-topbar{height:38px;background:#e8ebf0;border-bottom:1px solid #bdc4ce;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:4px 12px}.pos-location{display:flex;gap:9px;align-items:center;min-width:0;white-space:nowrap}.pos-location select{height:28px;padding:3px 8px;border-radius:4px;background:transparent;border:0;min-width:220px;font-weight:600}.pos-location span{white-space:nowrap}.invoice-chip{background:#2d9a88;color:#fff;border-radius:3px;padding:7px 20px;font-weight:800;box-shadow:0 2px 0 rgba(0,0,0,.18)}.pos-status-actions{display:flex;gap:7px;justify-content:flex-end;align-items:center}.pos-status-actions button,.pos-status-actions a{background:#2d9a88;color:#fff;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800}.pos-pill{border-radius:999px;padding:5px 10px;font-weight:900;font-size:12px}.pos-pill.online{background:#d9f7ed;color:#08765c}.pos-pill.pending{background:#fff2cc;color:#8a5a00}
.pos-workspace{display:grid;grid-template-columns:minmax(650px,1.25fr) 260px minmax(500px,1fr);gap:14px;padding:8px 12px 132px}.pos-invoice-panel{background:#fff;border-radius:6px;box-shadow:0 1px 4px rgba(0,0,0,.08);padding:16px 20px;display:grid;grid-template-rows:auto auto minmax(180px,1fr) auto;min-height:calc(100vh - 230px);min-width:0;overflow:hidden}.pos-input-row{display:grid;grid-template-columns:minmax(240px,1fr) 36px minmax(300px,1.2fr) 36px;gap:12px;align-items:end}.pos-input-row label,.pos-options-row label{display:grid;gap:4px;color:#334155;font-weight:700}.pos-input-row input,.pos-input-row select,.pos-options-row select{height:38px;border-radius:4px;border:1px solid #d3d8df}.circle-btn{width:35px;height:35px;border-radius:999px;background:#f5fff7;color:#76b82a;border:1px solid #d8ead0;font-size:22px;padding:0}.pos-options-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(190px,1fr) minmax(180px,1fr);gap:16px;margin:18px 0 12px}.pos-cart-shell{position:relative;border-top:1px solid #d8dde5;min-height:180px;min-width:0;overflow:auto}.pos-cart-table th{font-size:14px;color:#1f2937;text-transform:none;background:#fff;padding:14px 6px}.pos-cart-table td{padding:8px 6px}.pos-cart-table small{display:block}.empty-cart{position:absolute;inset:54px 0 0;display:grid;place-items:center;color:#a5adba;font-weight:700}.qty-stepper{display:flex;align-items:center;gap:4px}.qty-stepper input{width:72px;text-align:center;padding:7px}.qty-stepper button,.remove-cart-line{width:26px;height:26px;border-radius:5px;padding:0;background:#eef3f7;color:#283241}.remove-cart-line{background:#fff1f1;color:#b42318;font-size:18px}.invoice-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end;border-top:1px solid #d8dde5;padding-top:10px;min-width:0}.invoice-totals input,.invoice-totals select{height:30px;padding:5px}.discount-box,.delivery-box{display:grid;gap:4px;min-width:0}.discount-box span,.delivery-box span{display:grid;grid-template-columns:80px minmax(0,1fr);gap:5px}.delivery-box span{grid-template-columns:minmax(0,1fr) 78px}.discount-box small,.delivery-box small{min-height:16px;color:#64748b;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.delivery-box b{display:inline-flex;background:#e0f2fe;color:#0369a1;border-radius:999px;padding:2px 6px;margin-right:4px}.delivery-box button{height:30px;border-radius:7px;padding:5px 8px;background:#258879;color:#fff;font-size:12px}.delivery-modal-panel{max-width:620px;margin:auto}.delivery-modal-panel textarea{resize:vertical}
.pos-category-rail{display:grid;align-content:start;gap:11px;padding-top:8px;border-right:6px solid rgba(255,255,255,.8)}.category-pill{height:47px;border-radius:14px;background:#258879;color:#fff;text-align:left;padding:0 18px;font-weight:800;box-shadow:inset 0 -10px 20px rgba(0,0,0,.06)}.category-pill.active{background:#207c6d}.pos-product-zone{overflow:auto;padding:16px 4px 20px}.pos-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:14px}.pos-product-card{position:relative;min-height:210px;background:#fff;border:0;border-radius:10px;padding:14px 9px 12px;color:#111827;text-align:center;box-shadow:0 2px 8px rgba(30,41,59,.16);display:grid;grid-template-rows:112px auto auto auto;gap:5px;white-space:normal}.pos-product-card:hover{transform:translateY(-1px);background:#fff;box-shadow:0 8px 18px rgba(30,41,59,.2)}.stock-badge{position:absolute;top:4px;left:18px;background:#319b90;color:#fff;border-radius:8px;padding:5px 9px;font-weight:900}.pos-product-image{height:112px;background:#f4f6f8;display:grid;place-items:center;overflow:hidden}.pos-product-image img{width:100%;height:100%;object-fit:cover}.pos-product-image span{font-size:42px;color:#258879;font-weight:900}.pos-product-card b{font-size:14px;line-height:1.15}.pos-product-card small{font-size:11px}.pos-product-card strong{font-size:13px}
.pos-bottom-bar{position:fixed;left:0;right:0;bottom:0;height:86px;background:#58c2b3;display:flex;align-items:center;gap:10px;padding:16px 16px;z-index:50}.pos-bottom-bar button{border-radius:14px;padding:10px 14px;font-size:13px;box-shadow:0 2px 3px rgba(0,0,0,.15);background:#287f71}.pos-bottom-bar .pay-card{background:#c23777}.pos-bottom-bar .pay-cash{background:#61b955}.pos-bottom-bar .cancel{background:#e75252}.pos-bottom-bar .offline{margin-left:auto;background:#f49a38}.pos-bottom-bar .recent{background:#2d8d80}.payable-box{margin-left:auto;margin-right:auto;background:#38582d;color:#fff;border-radius:12px;padding:12px 20px;display:flex;align-items:center;gap:16px;text-transform:uppercase;font-weight:900;box-shadow:0 2px 5px rgba(0,0,0,.22)}.payable-box b{font-size:31px;line-height:1}
.pos-modal-backdrop{position:fixed;inset:0;background:rgba(17,24,39,.48);display:none;align-items:center;justify-content:center;z-index:90;padding:18px}.pos-modal-backdrop.open{display:flex}.pos-modal{width:min(980px,96vw);max-height:88vh;background:#fff;border-radius:12px;box-shadow:0 24px 70px rgba(15,23,42,.32);display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;border:1px solid rgba(15,23,42,.12)}.pos-modal header{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#f7fafc;border-bottom:1px solid #e2e8f0;padding:15px 18px}.modal-kicker{font-size:11px;text-transform:uppercase;color:#218577;font-weight:900;letter-spacing:.08em}.pos-modal h3{margin:2px 0 0;font-size:20px;color:#111827}.pos-modal header button{width:34px;height:34px;border-radius:999px;padding:0;background:#eef2f7;color:#111827;font-size:22px}.pos-modal-search{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:12px 18px;border-bottom:1px solid #e5e7eb;background:#fff}.pos-modal-search input{height:38px;border-radius:8px;border:1px solid #cbd5e1;padding:0 12px}.modal-link{border:1px solid #cbd5e1;border-radius:8px;padding:9px 12px;font-weight:800;color:#1f6f65;background:#f8fafc}.pos-modal-body{padding:16px 18px;overflow:auto;background:#f8fafc}.modal-grid{display:grid;grid-template-columns:minmax(280px,.9fr) 1.4fr;gap:14px}.modal-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:14px;box-shadow:0 8px 18px rgba(15,23,42,.05);display:grid;gap:10px}.modal-panel h4{margin:0;font-size:15px;color:#111827}.modal-field{display:grid;gap:5px;font-weight:800;color:#334155}.modal-field input,.modal-field select,.modal-field textarea{border:1px solid #cbd5e1;border-radius:8px;padding:9px 10px;background:#fff}.modal-actions{display:flex;gap:8px;flex-wrap:wrap}.modal-actions button,.modal-action-btn{border-radius:9px;padding:9px 12px;background:#258879;color:#fff;font-weight:900}.modal-actions .soft{background:#e7f5f3;color:#17685e}.modal-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.modal-summary div{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:9px;padding:10px;display:grid;gap:3px}.modal-summary span{font-size:11px;text-transform:uppercase;color:#64748b;font-weight:900}.modal-summary b{font-size:18px;color:#111827}.modal-table{width:100%;border-collapse:separate;border-spacing:0 7px}.modal-table th{font-size:11px;text-transform:uppercase;color:#64748b;text-align:left;padding:0 9px}.modal-table td{background:#fff;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;padding:10px 9px;font-size:13px}.modal-table td:first-child{border-left:1px solid #e2e8f0;border-radius:8px 0 0 8px;font-weight:900}.modal-table td:last-child{border-right:1px solid #e2e8f0;border-radius:0 8px 8px 0}.status-chip{display:inline-flex;border-radius:999px;padding:3px 8px;background:#e0f2fe;color:#0369a1;font-size:11px;font-weight:900}.status-chip.due{background:#fef3c7;color:#92400e}.status-chip.paid{background:#dcfce7;color:#166534}.split-list{display:grid;gap:7px}.split-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;border:1px solid #e2e8f0;border-radius:8px;padding:8px;background:#f8fafc}.split-row button{width:26px;height:26px;padding:0;border-radius:6px;background:#fee2e2;color:#991b1b}
.dashboard-head h2{font-size:32px}.dashboard-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}.dashboard-actions a{background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px;display:grid;gap:4px;box-shadow:0 8px 20px rgba(15,23,42,.045)}.dashboard-actions b{font-weight:700}.dashboard-actions span{color:var(--muted);font-size:13px}
.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.kpi-card{background:#fff;border:1px solid var(--line);border-left:4px solid var(--primary);border-radius:8px;padding:15px;box-shadow:0 10px 24px rgba(15,23,42,.055);display:grid;gap:6px;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.kpi-card:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(15,23,42,.1);border-color:#b8c8d8}.kpi-card span{color:var(--muted);font-weight:700}.kpi-card strong{font-size:24px}.kpi-card small{color:var(--muted)}.accent-green{border-left-color:#0b7a75}.accent-blue{border-left-color:#2563eb}.accent-violet{border-left-color:#7c3aed}.accent-gold{border-left-color:#ca8a04}.accent-red{border-left-color:#dc2626}.accent-cyan{border-left-color:#0891b2}.accent-orange{border-left-color:#ea580c}.accent-slate{border-left-color:#64748b}.accent-emerald{border-left-color:#059669}
.dashboard-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}.dashboard-grid.lower{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:14px}.chart-wide{grid-row:span 2}.chart-card{min-height:250px}.trend-chart{height:270px;display:grid;grid-template-columns:repeat(7,1fr);gap:12px;align-items:end;padding-top:10px}.trend-day{display:grid;gap:8px;text-align:center;color:var(--muted);font-size:12px}.bars{height:220px;display:flex;gap:5px;align-items:end;justify-content:center;border-bottom:1px solid var(--line)}.bars i{display:block;width:16px;border-radius:6px 6px 0 0;min-height:4px}.sales-bar,.legend-sales{background:#0b7a75}.purchase-bar,.legend-purchase{background:#ca8a04}.chart-legend{display:flex;gap:14px;margin-top:12px;color:var(--muted)}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{width:10px;height:10px;border-radius:999px}
.bar-list,.rank-list,.due-list{display:grid;gap:10px}.bar-list div,.rank-list div{display:grid;grid-template-columns:1fr auto;gap:5px;position:relative;padding-bottom:10px}.bar-list b,.rank-list b{font-size:13px}.bar-list i,.rank-list i{grid-column:1/-1;height:7px;border-radius:999px;background:#0b7a75;display:block}.branch-bars i{background:#2563eb}.user-bars i{background:#7c3aed}.rank-list span{display:grid}.rank-list small{font-size:11px}.compact-table th,.compact-table td{padding:8px}.mini-link{font-weight:800;color:var(--primary)}.due-list a{display:grid;grid-template-columns:1fr auto;gap:2px;border:1px solid var(--line);border-radius:8px;padding:9px;background:#fbfdff}.due-list small{grid-column:1/-1;color:var(--muted)}
.invoice-page-head{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px}.invoice-page-head h2{font-size:28px;line-height:1.08;white-space:nowrap}.invoice-page-head .toolbar{display:flex;align-items:end;justify-content:flex-start;gap:8px;flex-wrap:wrap;width:100%;max-width:100%;min-width:0}.invoice-page-head .toolbar>*{flex:0 0 auto;max-width:100%}.invoice-page-head .toolbar .btn{min-height:38px;padding:9px 13px;border-radius:8px;font-size:13px;font-weight:800;line-height:1;white-space:nowrap}.invoice-page-head .toolbar #invoicePrintLink{border:1px solid var(--line);background:#fff;color:var(--ink)}.invoice-detail-card{border-top:4px solid var(--primary)}.invoice-status-box{display:grid;justify-items:end;gap:5px}.invoice-status-box b{font-size:18px}.invoice-meta-grid{margin-top:14px}.invoice-bottom-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:14px}.invoice-totals-list{display:grid;gap:9px;margin:0}.invoice-totals-list div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:8px 0}.invoice-totals-list dt{font-weight:800;color:var(--muted)}.invoice-totals-list dd{margin:0;font-weight:900}.invoice-totals-list .grand{border-bottom:2px solid #10243a}.invoice-totals-list .grand dd{font-size:22px;color:var(--primary-strong)}.invoice-delivery-note{margin-top:14px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:8px;padding:12px;display:grid;gap:4px}.invoice-delivery-note span{font-weight:900;color:#075985}.invoice-delivery-note small{color:#334155}
.invoice-print-layout{display:grid;gap:3px;font-size:11px;font-weight:800;color:var(--muted);align-self:end;min-width:190px}.invoice-print-layout select{height:38px;border:1px solid var(--line);border-radius:7px;padding:0 9px;background:#fff;color:var(--ink);font-size:13px;font-weight:800;min-width:190px}
@media(max-width:1180px){.invoice-page-head{grid-template-columns:1fr}.invoice-page-head h2{white-space:normal}.invoice-page-head .toolbar{justify-content:flex-start;flex-wrap:wrap}.invoice-print-layout{min-width:210px}.invoice-print-layout select{min-width:210px}}
@media(max-width:1100px){.metrics,.module-grid,.operation-grid,.purchase-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-form,.product-form,.purchase-header,.onboarding-form{grid-template-columns:repeat(2,minmax(0,1fr))}.module-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.image-uploader{grid-row:auto}.erp-form .wide{grid-column:span 2}.purchase-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.dashboard-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.dashboard-grid.lower{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-wide{grid-row:auto;grid-column:1/-1}}
@media(max-width:1450px){.invoice-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-invoice-panel{min-height:calc(100vh - 250px)}}
@media(max-width:1200px){.pos-workspace{grid-template-columns:minmax(520px,1fr) 210px minmax(360px,.9fr)}.pos-products{grid-template-columns:repeat(3,minmax(118px,1fr))}.pos-input-row{grid-template-columns:minmax(180px,1fr) 36px minmax(220px,1fr) 36px}.pos-options-row{margin-top:18px}}
@media(max-width:900px){body{font-size:13px}.shell{grid-template-columns:1fr}.mobile-menu-toggle,.mobile-sidebar-head{display:flex}.mobile-sidebar-head{align-items:center;justify-content:space-between;padding:4px 4px 12px}.mobile-sidebar-head b{color:#0f766e;font-size:18px}.mobile-sidebar-head button{width:34px;height:34px;padding:0;background:#e7f5f3;color:#075e59;border-radius:8px;font-size:22px}.sidebar{position:fixed;inset:0 auto 0 0;width:min(82vw,320px);z-index:100;overflow:auto;transform:translateX(-105%);transition:transform .2s ease;padding:14px}.sidebar h1{display:none}body.sidebar-open .sidebar{transform:translateX(0)}body.sidebar-open::before{content:"";position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:99}.topbar{position:sticky;top:0;z-index:40;margin:-22px -12px 14px;border-radius:0;align-items:flex-start}.topbar .actions{justify-content:flex-start}.actions .btn,.actions button{padding:8px 10px;font-size:12px}main{padding:22px 12px}.card{padding:14px}.metrics,.module-grid,.operation-grid,.pos,.erp-form,.onboarding-form,.module-picker,.filter-bar,.purchase-sections,.import-panel,.update-import-form,.selling-price-import-grid,.selling-price-group-form,.selling-price-tools,.dashboard-actions,.dashboard-kpis,.dashboard-grid,.dashboard-grid.lower,.invoice-bottom-grid{grid-template-columns:1fr}.erp-form .wide{grid-column:auto}.page-head,.section-title{display:grid}.page-head h2,.dashboard-head h2{font-size:24px}.invoice-status-box{justify-items:start}.table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}table{min-width:720px}.action-menu div{min-width:132px}.purchase-summary{position:static;grid-template-columns:1fr}.purchase-sheet{min-width:1500px}.pos-topbar{height:auto;grid-template-columns:1fr;align-items:start}.pos-location{flex-wrap:wrap}.pos-location select{min-width:0;flex:1}.pos-status-actions{justify-content:flex-start;flex-wrap:wrap}.invoice-chip{justify-self:start}.pos-workspace{grid-template-columns:1fr;padding:8px 10px 186px}.pos-invoice-panel{min-height:auto;padding:14px}.pos-input-row{grid-template-columns:1fr 36px}.scan-box{grid-column:1/-2}.pos-options-row{grid-template-columns:1fr;gap:8px;margin:12px 0}.pos-cart-shell{min-height:260px;overflow:auto}.invoice-totals{grid-template-columns:1fr}.discount-box span,.delivery-box span{grid-template-columns:92px 1fr}.delivery-box span{grid-template-columns:1fr 96px}.pos-category-rail{display:flex;overflow:auto;border-right:0;padding:0 0 4px}.category-pill{min-width:150px;height:42px}.pos-product-zone{padding:8px 0}.pos-products{grid-template-columns:repeat(2,minmax(136px,1fr));gap:10px}.pos-product-card{min-height:188px;grid-template-rows:96px auto auto auto}.pos-product-image{height:96px}.pos-bottom-bar{height:auto;min-height:118px;flex-wrap:wrap;align-content:flex-start;padding:10px;gap:7px}.pos-bottom-bar button{padding:8px 10px;font-size:12px;border-radius:10px}.payable-box{order:-1;width:100%;justify-content:center;margin:0;padding:10px 14px}.payable-box b{font-size:24px}.pos-bottom-bar .offline{margin-left:0}.pos-modal{width:96vw;max-height:90vh}.modal-grid,.modal-summary{grid-template-columns:1fr}.pos-modal-search{grid-template-columns:1fr}.modal-table{min-width:760px}.pos-modal-body{padding:12px;overflow:auto}}
@media(max-width:900px){.expense-grid,.expense-grid.two{grid-template-columns:1fr}.expense-grid .wide{grid-column:auto}.expense-card{padding:16px}.expense-inline-form{grid-template-columns:1fr}.expense-row-actions,.expense-row-actions form{flex-wrap:wrap}.expense-row-actions input{width:100%}}
@media(max-width:520px){button,.btn{width:100%}.inline-control{grid-template-columns:1fr}.actions{width:100%}.topbar-title{width:100%}.dashboard-actions a,.kpi-card{padding:12px}.pos-products{grid-template-columns:1fr 1fr}.pos-product-card{min-height:168px;padding:10px 7px;grid-template-rows:82px auto auto auto}.pos-product-image{height:82px}.stock-badge{left:8px;font-size:11px}.pos-cart-table th,.pos-cart-table td{padding:7px 4px;font-size:12px}.qty-stepper input{width:58px}.pos-bottom-bar button{flex:1 1 calc(50% - 7px)}.pos-status-actions button,.pos-status-actions a{width:auto}.mobile-menu-toggle{width:38px;flex:0 0 38px}}
@media print{.sidebar,.topbar,.actions,.toolbar,.btn,.filter-bar,.contact-filter-card,.contact-table-tools,.page-head .toolbar,.column-visibility,.floating-action-menu summary{display:none!important}.shell{display:block}main{padding:0}.card{border:0;box-shadow:none}.contacts-list-card{border-top:0}.table-wrap{overflow:visible;border:0}.contact-table{min-width:0}.contact-table th,.contact-table td{font-size:10px;padding:6px}}
@media print{body:has(.label-preview-section:not([hidden])) .page-head,body:has(.label-preview-section:not([hidden])) .label-builder>.label-section:not(.label-preview-section){display:none!important}body:has(.label-preview-section:not([hidden])) .label-preview-section{display:block!important;border:0;box-shadow:none;padding:0}body:has(.label-preview-section:not([hidden])) .label-preview-section .section-title{display:none}.label-preview-grid{grid-template-columns:repeat(var(--label-columns),var(--label-width));gap:var(--label-gap);justify-content:start;overflow:visible}.label-preview-grid[data-sheet=roll]{grid-template-columns:var(--label-width)}.print-label-card{width:var(--label-width);height:var(--label-height);min-height:var(--label-height);border:0;page-break-inside:avoid}}

/* POS polish: compact professional billing layout with stable left-side columns. */
.pos-terminal{background:#cfd5dd;color:#172033;font-size:13px}
.pos-topbar{height:42px;background:linear-gradient(180deg,#f6f8fb,#e7ebf1);border-bottom:1px solid #b9c2cf;box-shadow:0 1px 3px rgba(15,23,42,.08)}
.pos-location select{background:#fff;border:1px solid #cbd5e1;border-radius:7px;min-width:210px;height:30px}
.invoice-chip{border-radius:7px;background:#188272;padding:8px 18px}
.pos-status-actions button,.pos-status-actions a{border-radius:8px;background:#188272;padding:7px 10px}
.pos-workspace{grid-template-columns:minmax(560px,1.18fr) 220px minmax(420px,.92fr);gap:12px;padding:10px 12px 124px}
.pos-invoice-panel{border-radius:10px;border:1px solid #dce3eb;box-shadow:0 10px 28px rgba(15,23,42,.08);padding:14px;grid-template-rows:auto auto minmax(230px,1fr) auto;min-height:calc(100vh - 214px)}
.pos-input-row{grid-template-columns:minmax(190px,.9fr) 34px minmax(260px,1.25fr) 34px;gap:8px}
.pos-input-row label,.pos-options-row label{font-size:12px;color:#475569}
.pos-input-row label span,.pos-options-row label b{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#64748b}
.pos-input-row input,.pos-input-row select,.pos-options-row select{height:36px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;padding:0 10px;min-width:0;width:100%}
.circle-btn{width:34px;height:34px;border-radius:8px;background:#eefaf7;color:#0f766e;border:1px solid #bfe6dc;font-size:20px;font-weight:900;display:grid;place-items:center}
.pos-options-row{grid-template-columns:minmax(116px,.72fr) minmax(168px,1fr) minmax(158px,.95fr);gap:8px;margin:10px 0}
.pos-options-row label{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px}
.pos-cart-shell{border:1px solid #e1e7ef;border-radius:9px;min-height:260px;background:#fbfdff;overflow:auto}
.pos-cart-table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0}
.pos-cart-table th{position:sticky;top:0;z-index:1;background:#f3f7fb;color:#334155;font-size:11px;text-transform:uppercase;letter-spacing:.035em;padding:10px 8px;border-bottom:1px solid #dce3eb}
.pos-cart-table th:nth-child(1){width:auto;text-align:left}
.pos-cart-table th:nth-child(2){width:76px;text-align:center}
.pos-cart-table th:nth-child(3){width:124px}
.pos-cart-table th:nth-child(4){width:104px;text-align:right}
.pos-cart-table th:nth-child(5){width:108px;text-align:right}
.pos-cart-table th:nth-child(6){width:38px}
.pos-cart-table td{padding:9px 8px;border-bottom:1px solid #edf2f7;background:#fff;vertical-align:middle}
.pos-cart-table td:nth-child(1){min-width:0}
.pos-cart-table td:nth-child(1) b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.pos-cart-table td:nth-child(1) small{color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pos-cart-table td:nth-child(2){text-align:center}
.pos-cart-table td:nth-child(4),.pos-cart-table td:nth-child(5){text-align:right;font-variant-numeric:tabular-nums}
.cart-stock{display:inline-flex;align-items:center;justify-content:center;min-width:50px;border-radius:999px;background:#dcfce7;color:#166534;padding:4px 7px;font-weight:900;font-size:11px}.cart-stock.empty{background:#fee2e2;color:#991b1b}
.customer-due-line{margin-top:3px;font-size:11px;color:#64748b;font-weight:800}.customer-due-line.has-due{color:#b42318}
.qty-stepper{justify-content:center;gap:3px}
.qty-stepper input{width:58px;height:30px;border:1px solid #cbd5e1;border-radius:7px;padding:4px;font-size:12px}
.qty-stepper button,.remove-cart-line{width:24px;height:30px;border-radius:7px}
.remove-cart-line{height:28px;background:#fee2e2;color:#991b1b;font-weight:900}
.empty-cart{inset:44px 0 0;color:#94a3b8;font-size:14px}
.invoice-totals{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;margin-top:10px;padding:10px}
.invoice-totals>div,.discount-box,.delivery-box{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:8px;min-height:66px}
.invoice-totals b{font-size:12px;color:#334155}.invoice-totals span{font-variant-numeric:tabular-nums}
.discount-box,.delivery-box{font-size:12px;font-weight:800}
.discount-box span{grid-template-columns:74px minmax(0,1fr)}
.delivery-box span{grid-template-columns:minmax(0,1fr) 70px}
.invoice-totals input,.invoice-totals select{height:28px;border:1px solid #cbd5e1;border-radius:7px;width:100%;min-width:0;font-size:12px}
.delivery-box button{height:28px;border-radius:7px;padding:4px 7px}
.pos-category-rail{gap:8px;padding:4px 8px 0 0;border-right:4px solid rgba(255,255,255,.75)}
.category-pill{height:40px;border-radius:10px;padding:0 14px;background:#188272;font-size:13px;box-shadow:0 2px 7px rgba(15,23,42,.11)}
.pos-product-zone{padding:6px 0 20px}
.pos-products{grid-template-columns:repeat(auto-fill,minmax(124px,1fr));gap:10px}
.pos-product-card{min-height:184px;border-radius:10px;padding:11px 8px;grid-template-rows:92px auto auto auto;box-shadow:0 4px 14px rgba(15,23,42,.12)}
.pos-product-image{height:92px;border-radius:7px}.stock-badge{left:10px;top:6px;border-radius:7px;padding:4px 7px;font-size:11px}
.pos-product-card b{font-size:13px}.pos-product-card strong{font-size:12px;color:#0f766e}
.pos-bottom-bar{height:76px;background:#45b9aa;padding:12px;gap:8px;box-shadow:0 -8px 24px rgba(15,23,42,.12)}
.pos-bottom-bar button{border-radius:10px;padding:9px 11px;font-size:12px;white-space:nowrap}
.payable-box{border-radius:10px;padding:10px 16px;gap:12px}.payable-box b{font-size:26px}
.pos-topbar .invoice-chip,.pos-status-actions button,.pos-status-actions a,.pos-pill.online{background:#0f4f8c!important;color:#fff!important;border:1px solid #0d477d;box-shadow:0 2px 6px rgba(15,79,140,.18)}
.pos-topbar .invoice-chip{border-radius:8px}
.pos-pill.online{text-transform:capitalize}
.pos-category-rail{background:#eef7ff;border-right:4px solid #d7e9f7;border-radius:10px;padding:8px}
.category-pill{background:#dceefa!important;color:#0b3e70!important;border:1px solid #b9d8ee;box-shadow:none}
.category-pill.active,.category-pill:hover{background:#c7e3f7!important;color:#082f56!important;border-color:#8ebfe1}
.pos-product-zone{background:#f5fbff;border-radius:10px;padding:10px 8px 20px}
.stock-badge{background:#0f4f8c!important;color:#fff!important;border:1px solid #0d477d;box-shadow:0 3px 8px rgba(15,79,140,.2)}
.pos-product-card strong{color:#0f4f8c}
@media(max-width:1400px){.pos-workspace{grid-template-columns:minmax(520px,1.18fr) 190px minmax(360px,.85fr)}.invoice-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-cart-table th:nth-child(3){width:112px}.pos-cart-table th:nth-child(4),.pos-cart-table th:nth-child(5){width:92px}}
@media(max-width:1120px){.pos-workspace{grid-template-columns:minmax(500px,1fr) 170px minmax(300px,.78fr)}.pos-input-row{grid-template-columns:minmax(160px,.85fr) 32px minmax(210px,1.15fr) 32px}.pos-options-row{grid-template-columns:1fr 1fr}.pos-options-row select:last-child{grid-column:1/-1}.pos-cart-table{min-width:560px}}
@media(max-width:900px){.pos-workspace{grid-template-columns:1fr;padding:8px 10px 186px}.pos-invoice-panel{min-height:auto}.pos-cart-table{min-width:640px}.invoice-totals{grid-template-columns:1fr}.pos-category-rail{padding:0 0 4px;border-right:0}.pos-bottom-bar{height:auto;min-height:118px}.payable-box{width:100%}}

.business-settings-card{display:grid;grid-template-columns:260px 1fr;gap:0;padding:0;overflow:hidden}
.settings-search-shell{width:min(1140px,100%);margin:0 auto 14px;display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;border:1px solid #d3e1ed;border-radius:10px;background:#fff;box-shadow:0 10px 24px rgba(17,52,84,.06);overflow:hidden}
.settings-search-shell span{height:40px;display:grid;place-items:center;background:#f5f9fc;border-right:1px solid #d3e1ed;color:#0f4f8c;font-size:12px;font-weight:800}
.settings-search-shell input{height:40px;border:0;padding:0 14px;color:#172033;background:#fff;font-size:14px}
.settings-tabs{background:#fbfbfc;border-right:1px solid #d7dde6;display:grid;align-content:start}
.settings-tabs a,.settings-tabs button{height:46px;border-radius:0;background:#fff;color:#4b5563;border-bottom:1px solid #d7dde6;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 12px;text-align:center}
.settings-tabs a:hover,.settings-tabs button:hover{background:#eef7f6;color:#075e59}
.settings-tabs a.active,.settings-tabs button.active{background:#08a765;color:#fff;position:relative}
.settings-tabs a.active::after,.settings-tabs button.active::after{content:"";position:absolute;right:-12px;top:15px;border-left:12px solid #08a765;border-top:8px solid transparent;border-bottom:8px solid transparent}
.settings-tabs button.danger{color:#5b54b8}
.settings-tabs button.disabled{opacity:.55;cursor:not-allowed}
.business-settings-form{padding:22px 28px 34px;grid-template-columns:repeat(6,minmax(0,1fr));gap:15px 22px;align-content:start}
.business-settings-form label{grid-column:span 2}
.business-settings-form .business-name-field,.business-settings-form .legal-name-field{grid-column:span 3}
.business-settings-form .settings-field-sm{grid-column:span 1}
.business-settings-form .settings-field-xs{grid-column:span 1}
.business-settings-form .settings-field-phone{grid-column:span 1}
.business-settings-form .arabic-company-field{grid-column:span 3}
.business-settings-form .arabic-legal-field{grid-column:span 3}
.business-settings-form .address-field{grid-column:span 3}
.business-settings-form .arabic-settings-field .inline-control{grid-template-columns:minmax(0,1fr) 124px}
.business-settings-form .arabic-settings-field input{height:42px;font-size:15px}
.business-settings-form .ar-translate{height:38px;padding:8px 10px;font-size:12px;white-space:nowrap}
.business-toggle-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:center}
.business-toggle-row .switch-check{min-height:34px;padding:6px 8px!important;gap:7px;border-radius:8px}
.business-toggle-row .switch-check input{width:15px!important;height:15px!important;flex:0 0 15px}
.business-toggle-row .switch-check span{font-size:11px;line-height:1.15;white-space:nowrap}
.business-settings-form .promotion-upload{grid-column:span 2}
.business-settings-form .business-settings-actions{grid-column:span 2;align-self:end;padding-top:0}
.business-settings-form .inline-control{grid-template-columns:minmax(0,1fr) auto}
.business-settings-form textarea{min-height:58px!important}
.business-settings-form input[type=file]{padding:8px;background:#fff}
.business-settings-form .wide{grid-column:1/-1}
.settings-signatories{border:1px solid #d7e6f2;border-radius:12px;background:#f8fbff;padding:16px;display:grid;gap:14px}
.settings-signatories-head{display:flex;justify-content:space-between;gap:14px;align-items:center}
.settings-signatories-head h3{margin:0;color:#0b4d86;font-size:16px}
.settings-signatories-head p{margin:4px 0 0;color:#607286;font-size:12px}
.settings-signatory-rows{display:grid;gap:10px}
.settings-signatory-row{display:grid;gap:10px;padding:12px;border:1px solid #dce8f2;border-radius:10px;background:#fff}
.settings-signatory-summary{display:grid;grid-template-columns:minmax(220px,1fr) 90px auto;gap:12px;align-items:center}
.settings-signatory-summary>div:first-child{display:grid;gap:2px}.settings-signatory-summary strong{color:#183d63;font-size:14px}.settings-signatory-summary span:not(.settings-signatory-status){color:#65788d;font-size:12px}
.settings-signatory-status{justify-self:start;padding:4px 9px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:700}.settings-signatory-status.active{background:#dcfce7;color:#166534}
.settings-signatory-actions{display:flex;justify-content:flex-end;gap:7px}.settings-signatory-actions .danger{background:#dc2626;border-color:#dc2626;color:#fff}.settings-signatory-actions .danger:hover{background:#b91c1c;border-color:#b91c1c}
.settings-signatory-editor{display:none;grid-template-columns:86px repeat(3,minmax(130px,1fr)) minmax(110px,.7fr) 80px;gap:10px;align-items:end;padding-top:10px;border-top:1px solid #e6edf4}.settings-signatory-row.is-editing .settings-signatory-editor{display:grid}.settings-signatory-row.is-marked-delete{opacity:.58;background:#fff5f5;border-color:#fecaca}.settings-signatory-row.is-marked-delete .settings-signatory-summary strong{text-decoration:line-through}
.settings-signatory-row label{grid-column:auto!important;font-size:12px!important}
.settings-signatory-row input[type=file]{height:auto!important;font-size:11px}
.settings-signatory-check{display:flex!important;align-items:center;gap:7px;height:38px;color:#263747}
.settings-signatory-check input{width:auto!important;height:auto!important}
.settings-signatory-preview{display:flex;gap:5px;align-items:center;min-height:38px}
.settings-signatory-preview img{max-width:50px;max-height:34px;object-fit:contain;border:1px solid #d7e6f2;border-radius:6px;background:#fff}
.danger-text{color:#b91c1c!important}
.tax-settings-form{padding:32px 34px 88px;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 34px;align-content:start;min-height:720px}
.tax-settings-form label{min-width:0}
.product-settings-form{padding:32px 34px 88px;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 34px;align-content:start;min-height:720px}
.product-settings-form label{min-width:0}
.contact-settings-form{padding:32px 34px 88px;grid-template-columns:minmax(260px,520px);gap:20px;align-content:start;min-height:720px}
.contact-settings-form label{min-width:0}
.sale-settings-form{padding:26px 34px 88px;display:grid;grid-template-columns:1fr;gap:24px;align-content:start;min-height:720px}
.sale-settings-form label{min-width:0}
.sale-settings-section{display:grid;gap:18px 34px;padding-bottom:24px;border-bottom:1px solid #d7e6f2}
.sale-settings-section:last-of-type{border-bottom:0;padding-bottom:0}
.sale-settings-section h3{grid-column:1/-1;margin:0;color:#0b3e70;font-size:17px;font-weight:650;letter-spacing:0}
.sale-settings-section h3 small{color:#64748b;font-size:13px;font-weight:600}
.sale-settings-main{grid-template-columns:repeat(3,minmax(0,1fr))}
.sale-settings-commission{grid-template-columns:repeat(3,minmax(0,1fr))}
.sale-settings-payment-link{grid-template-columns:minmax(260px,360px)}
.sale-settings-gateway{grid-template-columns:repeat(2,minmax(0,1fr))}
.sale-settings-gateway h3{margin-top:2px}
.bank-details-form{min-height:620px}
.bank-details-overview{grid-template-columns:minmax(280px,420px) minmax(320px,1fr)}
.bank-details-overview h3,.bank-details-section h3{color:#0b3e70}
.bank-details-note{align-self:stretch;border:1px solid #d7e6f2;background:#f7fbff;border-radius:10px;padding:13px 16px;display:grid;gap:4px;color:#263747;font-size:13px}
.bank-details-note b{color:#0f4f8c;font-size:14px}
.bank-details-note span{color:#64748b;font-weight:600}
.bank-details-section{grid-template-columns:repeat(3,minmax(0,1fr))}
.bank-details-section .settings-toggle{grid-column:1/-1;max-width:360px}
.bank-details-section label:nth-of-type(3){grid-column:span 2}
@media(max-width:900px){.bank-details-overview,.bank-details-section{grid-template-columns:1fr}.bank-details-section label:nth-of-type(3){grid-column:auto}.bank-details-section .settings-toggle{max-width:none}}
.location-settings-card{padding:26px 34px;border:1px solid #d7e6f2;border-radius:12px;box-shadow:0 18px 42px rgba(17,52,84,.09);background:#fff}.location-list-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.location-list-head h3{margin:0;color:#2d2c5f;font-size:22px;font-weight:700}.location-list-head small{display:block;margin-top:4px;color:#64748b;font-size:12px}.location-settings-table th{background:#fff!important;color:#263747!important;border-bottom:2px solid #263747!important;font-size:12px}.location-settings-table td{font-size:12px}.location-settings-table td small{display:block;margin-top:3px;color:#64748b}.location-status{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:900}.location-status.active{background:#e7f7ed;color:#18723b}.location-status.inactive{background:#f1f5f9;color:#64748b}.location-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.location-actions form{display:inline}.location-actions .mini-link{border:0;border-radius:999px;padding:5px 10px;background:#0f4f8c;color:#fff!important;font-size:11px;font-weight:800;cursor:pointer}.location-actions .warning{background:#ffa83d!important}.business-location-form-card{padding:0;border:1px solid #d7e6f2;border-radius:12px;box-shadow:0 18px 42px rgba(17,52,84,.09);background:#fff;overflow:hidden}.location-form-title{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e5edf5;padding:22px 34px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}.location-form-title h3{margin:0;color:#2d2c5f;font-size:26px;font-weight:600}.location-form-title a{color:#b8c0cc;text-decoration:none;font-size:30px;font-weight:900}.location-settings-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 30px;padding:30px 34px 36px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}.location-settings-form label{grid-column:span 2;display:grid;gap:7px;min-width:0;color:#263747;font-size:13px;font-weight:600}.location-settings-form .wide{grid-column:1/-1}.location-settings-form input,.location-settings-form select,.location-settings-form textarea{width:100%;height:42px;border:1px solid #d3e1ed;border-radius:8px;background:#fff;color:#172033;font-size:14px;padding:9px 12px;box-shadow:inset 0 1px 1px rgba(15,23,42,.03)}.location-settings-form textarea{height:auto;min-height:86px;resize:vertical}.location-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #e5edf5;margin-top:8px;padding-top:20px}.location-form-actions .btn{border-radius:18px;padding:9px 22px}
@media(max-width:900px){.location-settings-card{padding:18px}.location-list-head{align-items:flex-start;flex-direction:column}.location-settings-form{grid-template-columns:1fr;padding:18px}.location-settings-form label,.location-settings-form .wide,.location-form-actions{grid-column:1/-1}.location-form-title{padding:18px}.location-form-actions{justify-content:stretch}.location-form-actions .btn{flex:1}}
.pos-settings-form{padding:26px 34px 88px;display:grid;grid-template-columns:1fr;gap:24px;align-content:start;min-height:720px}
.pos-shortcuts,.pos-settings-section,.pos-scale-settings{display:grid;gap:12px}
.pos-shortcuts h3,.pos-settings-section h3,.pos-scale-settings h3{margin:0;color:#0b3e70;font-size:17px;font-weight:650;letter-spacing:0}
.pos-shortcuts p,.pos-scale-settings p{margin:0;color:#64748b;font-size:13px;line-height:1.45}
.pos-shortcut-tables{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:4px}
.pos-shortcut-tables table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2edf6;border-radius:10px;overflow:hidden}
.pos-shortcut-tables th{background:#f4f8fc;color:#263747;text-align:left;font-size:13px;padding:10px}
.pos-shortcut-tables td{border-top:1px solid #e2edf6;padding:8px 10px;font-size:13px;color:#263747}
.pos-shortcut-tables input{width:100%}
.pos-settings-toggles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 34px;margin-top:8px;padding-bottom:22px;border-bottom:1px solid #d7e6f2}
.pos-scale-settings{grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #d7e6f2;padding-top:22px}
.pos-scale-settings h3,.pos-scale-settings p{grid-column:1/-1}
.purchases-settings-form{padding:36px 34px 88px;display:grid;grid-template-columns:1fr;align-content:start;min-height:720px}
.purchases-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 84px;align-items:start}
.purchases-settings-grid .settings-toggle{position:relative}
.payment-settings-form{padding:32px 34px 88px;grid-template-columns:1fr 1fr minmax(260px,.85fr);gap:20px 34px;align-content:start;min-height:720px}
.payment-settings-form label{min-width:0}
.payment-settings-form .wide{grid-column:1/-1}
.payment-settings-form small{font-size:12px;color:#64748b;font-weight:500}
.payment-strict-toggle{align-self:end;margin-bottom:2px}
.has-settings-hint .settings-hint{position:absolute;left:228px;top:38px;z-index:5;width:300px;background:#fff;border:1px solid #d7e6f2;border-radius:10px;box-shadow:0 14px 32px rgba(17,52,84,.16);padding:14px 16px;color:#263747;font-size:13px;font-weight:500;line-height:1.45;display:none}
.has-settings-hint:hover .settings-hint{display:block}
.dashboard-settings-form{padding:32px 34px 88px;grid-template-columns:minmax(260px,440px);gap:20px;align-content:start;min-height:720px}
.dashboard-settings-form label{min-width:0}
.system-settings-form{padding:32px 34px 88px;grid-template-columns:repeat(3,minmax(220px,1fr));gap:20px 34px;align-content:start;min-height:720px}
.system-settings-form label{min-width:0}
.system-help-toggle{align-self:end;margin-bottom:2px}
.prefixes-settings-form{padding:32px 34px 88px;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 34px;align-content:start;min-height:720px}
.prefixes-settings-form label{min-width:0}
.settings-simple-form{padding:32px 34px 88px;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 34px;align-content:start;min-height:720px}
.settings-simple-form label{min-width:0}
.email-settings-form .settings-test-action{grid-column:3;align-self:end;justify-self:end}
.settings-test-action .btn,.sms-test-row .btn{background:#0f4f8c!important;border-radius:10px;padding:9px 16px;box-shadow:0 10px 20px rgba(15,79,140,.16);color:#fff}
.sms-settings-form{padding:24px 34px 88px;display:grid;grid-template-columns:1fr;gap:22px;align-content:start;min-height:720px}
.settings-panel-section{display:grid;gap:16px 34px;padding:24px 22px;border:1px solid #d7e6f2;border-radius:12px;background:#f8fbff}
.settings-panel-section h3{grid-column:1/-1;margin:0;color:#0b3e70;font-size:17px;font-weight:650;letter-spacing:0}
.sms-main-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
.sms-pair-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.settings-pair-control{display:grid;grid-template-columns:minmax(0,1fr) 120px}
.settings-pair-control input{border-radius:8px 0 0 8px!important}
.settings-pair-control select{border-radius:0 8px 8px 0!important}
.sms-test-row{display:grid;grid-template-columns:minmax(280px,640px) auto;gap:0;align-items:center;border-top:1px solid #d7e6f2;padding-top:22px}
.sms-test-row input{border-radius:8px 0 0 8px!important}
.sms-test-row .btn{height:38px;border-radius:0 10px 10px 0!important}
.reward-settings-form{padding:28px 34px 88px;display:grid;grid-template-columns:1fr;gap:24px;align-content:start;min-height:720px}
.reward-top-row,.reward-redeem-grid{grid-template-columns:repeat(3,minmax(0,1fr));background:#f7fbff}
.reward-top-row .settings-toggle{align-self:end}
.settings-expiry-period{display:grid;grid-template-columns:minmax(0,1fr) 42px 150px;align-items:center}
.settings-expiry-period input{border-radius:8px 0 0 8px!important}
.settings-expiry-period b{height:38px;display:grid;place-items:center;border-top:1px solid #d3e1ed;border-bottom:1px solid #d3e1ed;background:#fff;color:#52677a}
.settings-expiry-period select{border-radius:0 8px 8px 0!important}
.modules-settings-form,.shopify-settings-form{padding:32px 34px 88px;display:grid;grid-template-columns:1fr;gap:18px;align-content:start;min-height:720px}
.settings-page-intro{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.settings-page-intro h3{margin:0;color:#0b3e70;font-size:18px;font-weight:650;letter-spacing:0}
.settings-page-intro p,.settings-help-line{margin:0;color:#64748b;font-size:13px;font-weight:600}
.module-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.module-toggle-card{min-height:62px;border-radius:12px!important;background:#f8fbff!important}
.shopify-main-toggle{width:min(520px,100%);min-height:62px;border-radius:12px!important;background:#f8fbff!important}
.secondary-settings-card{border:1px solid #d7e6f2;border-radius:12px;box-shadow:0 18px 42px rgba(17,52,84,.09);background:#fff;padding:0;overflow:hidden}
.secondary-settings-card>.erp-form{padding:28px 34px 34px}
.secondary-settings-card .wide{grid-column:1/-1}
.invoice-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 34px}
.invoice-format-choice{grid-column:1/-1;display:grid;grid-template-columns:260px 260px minmax(180px,1fr);gap:24px;align-items:start}
.format-card{position:relative;min-height:136px;border:1px solid #d7e6f2;border-radius:12px;background:#eef3f9!important;padding:24px!important;color:#0b3e70!important;font-size:27px!important;font-weight:650!important;line-height:1.15}
.format-card input{position:absolute;right:22px;bottom:22px;width:28px!important;height:28px!important;accent-color:#0f4f8c}
.invoice-preview{display:grid;gap:10px;color:#263747;font-size:13px;font-weight:650;padding:6px 0}
.invoice-preview span{font-size:16px;font-weight:500}
.tax-rates-settings-form,.exchange-settings-form{display:grid;grid-template-columns:1fr;gap:18px}
.settings-table-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center}
.settings-table-actions .btn{border-radius:10px!important;padding:9px 14px!important}
.settings-table-wrap{border:1px solid #d7e6f2;border-radius:12px;background:#fff;box-shadow:none}
.settings-data-table{width:100%;border-collapse:collapse;min-width:900px}
.settings-data-table th{background:#f4f8fc;color:#263747;text-align:left;font-size:13px;font-weight:750;border-bottom:1px solid #d7e6f2;padding:12px}
.settings-data-table td{border-bottom:1px solid #eef3f8;padding:10px 12px;color:#263747}
.settings-data-table input,.settings-data-table select{height:34px;border:1px solid #d3e1ed;border-radius:8px;padding:0 10px;width:100%;min-width:0}
.compact-check{display:inline-flex!important;align-items:center;gap:7px!important;font-size:12px!important;font-weight:650!important;color:#263747!important;background:transparent!important;border:0!important;padding:0!important;white-space:nowrap}
.compact-check input{width:16px!important;height:16px!important;accent-color:#0f4f8c}
.settings-popup-preview{border:1px solid #d7e6f2;border-radius:12px;background:#fff;box-shadow:0 16px 36px rgba(17,52,84,.1);overflow:hidden}
.settings-popup-preview header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2edf6;padding:18px 22px}
.settings-popup-preview h3{margin:0;color:#0b3e70;font-size:22px;font-weight:650}
.settings-popup-preview header span{color:#94a3b8;font-size:25px;font-weight:900}
.settings-popup-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:22px}
.settings-popup-grid label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#263747}
.settings-popup-grid input,.settings-popup-grid select{height:42px;border:1px solid #d3e1ed;border-radius:8px;padding:0 12px}
.settings-popup-grid small{color:#64748b;font-size:12px;font-weight:500}
.popup-fetch-button{justify-self:start;border-radius:999px!important}
.custom-labels-card{align-items:start}
.custom-labels-form{padding:28px 34px 34px;display:grid;grid-template-columns:1fr;gap:26px;align-content:start}
.custom-label-section{display:grid;gap:14px;align-items:end}
.custom-label-section h3{grid-column:1/-1;margin:0;color:#0b3e70;font-size:17px;font-weight:650;letter-spacing:0}
.custom-label-section.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.custom-label-section.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.custom-label-section.columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.custom-label-field{display:grid;gap:6px;min-width:0;font-size:13px;font-weight:600;color:#263747}
.custom-label-input{display:grid;grid-template-columns:minmax(0,1fr);align-items:center}
.custom-label-input.has-required{grid-template-columns:minmax(0,1fr) 116px}
.custom-label-input.has-default-contact{grid-template-columns:minmax(0,1fr) 116px 178px}
.custom-label-input input{border-radius:8px 0 0 8px}
.custom-label-input:not(.has-required):not(.has-default-contact) input{border-radius:8px}
.custom-inline-check{display:flex!important;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:0 10px;background:#f7fbff;border:1px solid #d3e1ed;border-left:0;color:#263747;font-size:12px;font-weight:650;white-space:nowrap}
.custom-inline-check input{width:14px!important;height:14px!important;padding:0;flex:0 0 14px;accent-color:#0f4f8c}
.custom-product-select{grid-column:2 / span 1;display:grid;gap:6px;font-weight:600;color:#263747}
.custom-multiplication{align-self:end;justify-content:flex-start;border:0;background:transparent;min-height:22px;padding:0}
.custom-labels-form .business-settings-actions{position:sticky;bottom:0;grid-column:1/-1;background:linear-gradient(180deg,rgba(251,253,255,0),#fbfdff 35%);padding-top:22px}
.settings-input-with-icon{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center}
.settings-input-with-icon b{height:38px;display:grid;place-items:center;border:1px solid #d5dce7;border-right:0;background:#f8fafc;color:#555;font-weight:900;font-style:normal}
.settings-input-with-icon input{min-width:0}
.settings-expiry-control{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center}
.settings-expiry-control input{height:38px;width:44px;margin:0;border-radius:8px 0 0 8px;accent-color:#0f4f8c}
.settings-expiry-control select{border-radius:0 8px 8px 0}
.product-settings-toggles{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 34px;margin-top:10px}
.settings-toggle{display:grid!important;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:12px;font-weight:600!important;color:#263747!important}
.settings-toggle input{position:absolute;opacity:0;pointer-events:none}
.toggle-track{position:relative;width:76px;height:34px;border-radius:999px;background:#d8e4ef;box-shadow:inset 0 0 0 1px #c8d7e5;transition:.18s ease}
.toggle-track:before{content:"OFF";position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:10px;font-weight:900;color:#52677a}
.toggle-track:after{content:"";position:absolute;left:4px;top:4px;width:26px;height:26px;border-radius:999px;background:#fff;box-shadow:0 3px 9px rgba(17,52,84,.2);transition:.18s ease}
.settings-toggle input:checked + .toggle-track{background:#0f4f8c;box-shadow:inset 0 0 0 1px #0f4f8c}
.settings-toggle input:checked + .toggle-track:before{content:"ON";left:12px;right:auto;color:#fff}
.settings-toggle input:checked + .toggle-track:after{left:46px}
.settings-toggle b{font-size:14px;font-weight:600;color:#263747}
.tax-inline-toggle{align-self:end;min-height:52px}
.contact-settings-toggle{align-self:start}
.tax-settings-form .business-settings-actions,.product-settings-form .business-settings-actions,.contact-settings-form .business-settings-actions,.sale-settings-form .business-settings-actions,.pos-settings-form .business-settings-actions,.purchases-settings-form .business-settings-actions,.payment-settings-form .business-settings-actions{grid-column:1/-1;align-self:end;margin-top:auto}
.dashboard-settings-form .business-settings-actions,.system-settings-form .business-settings-actions,.prefixes-settings-form .business-settings-actions,.settings-simple-form .business-settings-actions,.sms-settings-form .business-settings-actions,.reward-settings-form .business-settings-actions,.modules-settings-form .business-settings-actions,.shopify-settings-form .business-settings-actions{grid-column:1/-1;align-self:end;margin-top:auto}
.settings-days-control{display:grid;grid-template-columns:38px minmax(0,1fr) 74px;align-items:center}
.settings-days-control b{height:38px;display:grid;place-items:center;border:1px solid #d3e1ed;border-right:0;background:#f5f9fc;color:#0f4f8c;font-weight:900;font-style:normal}
.settings-days-control input{border-radius:0!important;min-width:0}
.settings-days-control em{height:38px;display:grid;place-items:center;border:1px solid #d3e1ed;border-left:0;border-radius:0 8px 8px 0;background:#f7fbff;color:#52677a;font-style:normal;font-weight:650}
.switch-check{display:flex!important;align-items:center;gap:10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px!important}
.switch-check input{width:44px;height:24px;accent-color:#22c55e}
.promotion-upload{align-self:start}
.promotion-upload small{margin-top:3px;color:#777;font-style:italic;font-weight:600}
.business-settings-actions{display:flex;justify-content:flex-end;padding-top:8px}
.business-settings-actions .btn{background:#ff2f62;border-radius:999px;padding:10px 22px;box-shadow:0 10px 22px rgba(255,47,98,.22)}
.business-settings-actions .btn:hover{background:#dd224f}
.logo-preview{display:flex;align-items:center;gap:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:14px}
.logo-preview span{font-weight:900;color:#64748b}
.logo-preview img{height:70px;max-width:180px;object-fit:contain;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px}
.modal-stack{display:grid;gap:12px}
.recent-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #d8dee8;background:#fff}
.recent-tabs button{height:64px;border-radius:0;background:#fff;color:#6b7280;font-size:18px;font-weight:900;border-bottom:4px solid transparent}
.recent-tabs button.active{color:#3a751d;border-bottom-color:#3a751d}
.recent-actions{display:flex;gap:14px;align-items:center}
.recent-actions a,.recent-actions button{background:transparent;color:#6b7280;padding:0;font-size:19px;box-shadow:none;border-radius:0}
.recent-actions button{color:#f43f5e}
.payment-modal-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:34px;background:#fff}
.advance-line{font-size:18px;margin:0 0 22px;color:#30343a}
.payment-entry-panel{background:#f0ecec;border-radius:8px;padding:28px;display:grid;gap:20px}
.payment-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:28px}
.payment-row label,.payment-note,.payment-notes label{display:grid;gap:10px;font-size:17px;font-weight:900;color:#30343a}
.payment-row span{display:grid;grid-template-columns:58px minmax(0,1fr);border:1px solid #cbd5e1;background:#fff}
.payment-row span b{display:grid;place-items:center;background:#f8fafc;border-right:1px solid #cbd5e1;color:#555}
.payment-row input,.payment-row select{height:46px;border:0;padding:0 14px;font-size:18px;min-width:0}
.payment-note textarea,.payment-notes textarea{border:1px solid #cbd5e1;padding:12px;font-size:16px}
.add-payment-row{width:100%;margin:28px 0 22px;background:#3d7719;border-radius:16px;font-size:18px;padding:16px}
.payment-notes{display:grid;grid-template-columns:1fr 1fr;gap:34px}
.payment-orange-summary{background:#ff8217;color:#fff;border-radius:8px;padding:34px 44px;display:grid;gap:22px;box-shadow:0 18px 40px rgba(249,115,22,.18)}
.payment-orange-summary div{border-bottom:1px solid rgba(255,255,255,.75);padding-bottom:20px;display:grid;gap:9px}
.payment-orange-summary div:last-child{border-bottom:0}
.payment-orange-summary span{font-size:18px;font-weight:900}
.payment-orange-summary b{font-size:28px;color:#fff}
.modal-footer-actions{display:flex;justify-content:flex-end;gap:14px;margin-top:22px}
.modal-footer-actions button{border-radius:16px;background:#3d7719;padding:13px 24px;font-size:17px}
.modal-footer-actions .soft{background:#3d7719}
@media(max-width:900px){.business-settings-card,.business-settings-form,.tax-settings-form,.product-settings-form,.contact-settings-form,.sale-settings-form,.pos-settings-form,.purchases-settings-form,.payment-settings-form,.dashboard-settings-form,.system-settings-form,.prefixes-settings-form,.settings-simple-form,.sms-main-grid,.sms-pair-grid,.reward-top-row,.reward-redeem-grid,.module-settings-grid,.invoice-settings-form,.invoice-format-choice,.settings-popup-grid,.payment-modal-layout,.payment-row,.payment-notes{grid-template-columns:1fr}.settings-tabs{display:flex;overflow:auto;border-right:0;border-bottom:1px solid #d7dde6}.settings-tabs a,.settings-tabs button{min-width:150px}.business-settings-form,.tax-settings-form,.product-settings-form,.contact-settings-form,.sale-settings-form,.pos-settings-form,.purchases-settings-form,.payment-settings-form,.dashboard-settings-form,.system-settings-form,.prefixes-settings-form,.settings-simple-form,.sms-settings-form,.reward-settings-form,.modules-settings-form,.shopify-settings-form,.custom-labels-form,.secondary-settings-card>.erp-form{padding:14px}.invoice-format-choice{gap:12px}.format-card{min-height:112px;font-size:22px!important}.payment-orange-summary{padding:22px}.recent-tabs button{font-size:14px;height:52px}}

.language-link{display:inline-flex;align-items:center;justify-content:center;height:32px;min-width:42px;border-radius:8px;padding:0 11px;background:#eaf4fb;color:#0b3e70;font-size:12px;font-weight:900;text-decoration:none;border:1px solid #b8d5ec;box-shadow:0 6px 14px rgba(15,79,140,.1)}
.language-link.active{background:#0b3e70!important;color:#fff!important;border-color:#08345f!important}
.language-link:hover{background:#08345f!important;color:#fff!important}
.app-back-button{background:#fff!important;color:#0b3e70!important;border:1px solid #0f4f8c!important;box-shadow:0 6px 14px rgba(15,79,140,.08)!important}
.app-back-button:hover{background:#eaf4fb!important;color:#08345f!important;border-color:#08345f!important}
#themeToggle{height:32px;border-radius:8px;padding:0 12px;font-size:12px;background:#0f4f8c;color:#fff;border:1px solid #0d4479;box-shadow:0 6px 14px rgba(15,79,140,.12)}
#themeToggle:hover{background:#0b3e70}
html[dir=rtl] body{text-align:right}
html[dir=rtl] .shell{direction:rtl}
html[dir=rtl] .sidebar{border-right:0;border-left:1px solid var(--line)}
html[dir=rtl] .sidebar details summary::after{transform:rotate(180deg)}
html[dir=rtl] .topbar,html[dir=rtl] .toolbar,html[dir=rtl] .table-toolbar,html[dir=rtl] .page-head{direction:rtl}
html[dir=rtl] table{text-align:right}
html[dir=rtl] input,html[dir=rtl] select,html[dir=rtl] textarea{direction:rtl}

.quotation-head{margin-bottom:14px}.quotation-head h2{font-size:25px;color:#252a57;font-weight:600}
.quote-location-row{display:inline-grid;grid-template-columns:42px minmax(260px,360px) 46px;align-items:center;margin-bottom:18px;border:1px solid #cfd8e3;background:#fff}
.quote-location-row select,.quote-location-row span{height:40px;border:0;border-right:1px solid #d8dee8}
.quote-location-row select{padding:0 14px;font-size:14px;background:#fff}.quote-addon,.quote-info{display:grid;place-items:center;color:#4b5563}.quote-info{color:#3c751c;font-weight:900}
.quote-card{background:#fff;border-radius:4px;box-shadow:0 8px 28px rgba(15,23,42,.04);padding:20px 28px;margin-bottom:18px;border:1px solid #f1f5f9}
.quote-main-card{padding-top:20px}.quote-price-group{display:grid;grid-template-columns:42px minmax(280px,520px) 50px;align-items:center;max-width:640px;margin-bottom:16px}.quote-price-group select,.quote-price-group span{height:38px;border:1px solid #d6dde8}.quote-price-group select{border-left:0;border-right:0;padding:0 14px;font-size:14px;background:#fff}
.quote-form-grid{display:grid;grid-template-columns:1.1fr .85fr 1.05fr;gap:16px 28px;align-items:start}.quote-form-grid label,.quote-adjust-grid label,.quote-delivery-grid label,.quote-wide-note{display:grid;gap:5px;font-size:13px;color:#333;font-weight:800}.quote-form-grid input,.quote-form-grid select,.quote-form-grid textarea,.quote-adjust-grid input,.quote-adjust-grid select,.quote-delivery-grid input,.quote-delivery-grid select,.quote-delivery-grid textarea,.quote-wide-note textarea{width:100%;border:1px solid #d5dce7;background:#fff;height:34px;padding:0 10px;font-size:13px;color:#30343a;border-radius:0}.quote-form-grid small,.quote-delivery-grid small{color:#697386;font-weight:600;line-height:1.35;font-size:12px}.quote-input-icon{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center}.quote-input-icon b{height:34px;display:grid;place-items:center;border:1px solid #d5dce7;border-right:0;background:#f8fafc;color:#50555d}.quote-input-icon select,.quote-input-icon input{min-width:0}.quote-inline-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,.7fr)}.quote-inline-pair input,.quote-inline-pair select{min-width:0}.quote-round{position:absolute;margin-left:-16px;margin-top:4px;width:28px;height:28px;border-radius:999px;padding:0;background:#91d354;color:#fff;font-size:18px;line-height:1}.quote-address-box{display:grid;gap:4px;align-content:start;color:#333;font-size:13px;line-height:1.25}.quote-address-box b{margin-top:3px}.quote-file{display:grid;grid-template-columns:minmax(0,1fr) 96px}.quote-file input{background:#fff}.quote-file button{border-radius:0 10px 10px 0;background:#3e7718;height:34px;padding:0;color:#fff}
.quote-product-search{display:grid;grid-template-columns:50px minmax(240px,1fr) minmax(240px,.72fr) 50px;align-items:center;max-width:1580px;margin:0 auto 16px;border:1px solid #d6dde8;border-radius:999px;overflow:hidden;background:#f3f4f6}.quote-product-search input,.quote-product-search select{height:42px;border:0;background:#f3f4f6;padding:0 16px;font-size:14px;min-width:0}.quote-product-search select{border-left:1px solid #d6dde8;background:#fff}.quote-gear,.quote-search-add{height:42px;border-radius:0;background:#fff;color:#8bc349;font-size:20px;box-shadow:none}.quote-search-add{border-radius:999px;background:#fff}
.quote-line-actions{max-width:1580px;margin:0 auto 14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.quote-line-actions small{color:#64748b;font-weight:700}.quote-text-line-button{height:34px}.quote-line-description{margin-top:8px;width:min(520px,100%);min-height:38px;border:1px solid #d5dce7;border-radius:6px;padding:7px 9px;font:inherit;font-size:12px;color:#1f2937;resize:vertical;background:#fff}
.quote-table-wrap{box-shadow:none;border:0}.quote-items-table{min-width:980px}.quote-items-table th{font-size:14px;color:#333;border-bottom:2px solid #d7dee9;background:#fff;padding:13px}.quote-items-table td{padding:12px 13px;border-bottom:1px solid #eef2f7;vertical-align:middle}.quote-items-table tfoot td{background:#f8fafc;text-align:right;display:flex;justify-content:flex-end;gap:36px;font-size:14px}.quote-items-table small{display:block;color:#64748b;margin-top:3px}.quote-empty-row td{text-align:center;color:#8a94a6}.quote-line-input{height:32px;width:96px;border:1px solid #d5dce7;padding:0 8px}.quote-line-um{height:32px;width:86px;border:1px solid #d5dce7;background:#fff;padding:0 6px;font-size:12px}.quote-remove-line{width:30px;height:30px;border-radius:8px;background:#fee2e2;color:#991b1b;padding:0;font-size:18px}
.quote-adjust-card{padding-top:18px}.quote-adjust-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:12px 22px;align-items:end}.quote-adjust-grid strong{align-self:center;font-size:13px;color:#333;white-space:nowrap}.quote-wide-note{margin-top:12px}.quote-wide-note textarea{height:50px;padding:8px}
.quote-delivery-grid{display:grid;grid-template-columns:1fr 1fr .9fr;gap:12px 24px}.quote-delivery-grid textarea{height:48px;padding:8px}.quote-delivery-bottom{display:grid;grid-template-columns:1fr 360px;align-items:end;gap:22px;margin-top:18px}.quote-small-action{justify-self:center;border-radius:999px;padding:7px 15px;font-size:12px}.quote-payable-box{height:76px;border-radius:10px;background:linear-gradient(110deg,#264e93,#45a94a);box-shadow:0 16px 30px rgba(37,99,235,.16);display:flex;align-items:center;justify-content:space-between;padding:0 28px;color:#fff}.quote-payable-box span{font-size:16px;font-weight:900}.quote-payable-box b{font-size:26px;color:#fff}
.quote-save-bar{display:flex;justify-content:center;gap:12px;margin:8px 0 28px}.quote-save-bar .btn{min-width:116px;border-radius:10px;font-size:16px;padding:11px 22px}.quote-save-bar .secondary{background:#62b80f}
@media(max-width:1100px){.quote-form-grid,.quote-adjust-grid,.quote-delivery-grid,.quote-delivery-bottom{grid-template-columns:1fr}.quote-card{padding:20px}.quote-location-row{display:grid}.quote-payable-box{width:100%}}
@media(max-width:1200px){.settings-signatory-editor{grid-template-columns:1fr 1fr}.settings-signatory-preview,.settings-signatory-check,.settings-signatory-row .btn{align-self:center}}
@media(max-width:700px){.settings-signatories{padding:12px}.settings-signatories-head{display:grid}.settings-signatory-summary{grid-template-columns:1fr;gap:8px}.settings-signatory-actions{justify-content:flex-start}.settings-signatory-editor{grid-template-columns:1fr;gap:8px}.settings-signatory-editor label,.settings-signatory-preview,.settings-signatory-check,.settings-signatory-row .btn{grid-column:1/-1!important}.settings-signatory-check{height:auto;min-height:30px}.settings-signatory-preview img{max-width:82px;max-height:42px}}

/* Compact quotation/project-quote document attachment controls. */
.document-attachment-field{gap:3px!important}.document-attachment-input-row{display:flex;align-items:center;gap:5px;min-width:0}.document-attachment-field input[type=file]{height:30px!important;padding:3px 5px!important;font-size:11px!important;min-width:0;flex:1}.document-attachment-field small{font-size:10px!important;line-height:1.2!important}.document-attachment-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}.attachment-icon-button{width:27px;height:27px;min-width:27px;padding:0;display:grid;place-items:center;border:1px solid #cbd5e1!important;border-radius:6px;background:#f8fafc!important;color:#334155!important;font-size:14px;box-shadow:none}.attachment-icon-button:hover{background:#e2e8f0!important}.attachment-type-button{width:auto;min-width:38px;padding:0 7px;background:#eff6ff!important;border-color:#bfdbfe!important;color:#1d4ed8!important;font-size:9px;font-weight:850}.attachment-remove-button{border-color:#fecaca!important;background:#fff1f2!important;color:#dc2626!important;font-size:20px;line-height:1}.attachment-remove-button:hover{background:#fee2e2!important}.attachment-preview-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:rgba(15,23,42,.56)}.attachment-preview-modal[hidden]{display:none}.attachment-preview-dialog{width:min(980px,96vw);height:min(760px,90vh);display:grid;grid-template-rows:46px minmax(0,1fr);background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 25px 80px rgba(0,0,0,.35)}.attachment-preview-head{display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#f8fafc;border-bottom:1px solid #dbe3ee;color:#1e293b}.attachment-preview-head button{width:30px;height:30px;padding:0;border-radius:7px;background:#fee2e2!important;color:#b91c1c!important;font-size:22px;line-height:1;box-shadow:none}.attachment-preview-dialog iframe{width:100%;height:100%;border:0;background:#fff}
.ledger-document-link{display:inline-grid;gap:2px;max-width:100%;padding:0;border:0;background:transparent!important;color:#0f5f9d!important;text-align:left;text-decoration:underline;text-underline-offset:2px;box-shadow:none!important;cursor:pointer}.ledger-document-link small{color:#64748b;font-size:10px;font-weight:700;text-decoration:none}.ledger-document-link:hover{color:#083d70!important}


@media(max-width:1300px){.purchase-sections{grid-template-columns:1fr}.purchase-shipping-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-shipping-grid .inline-total,.purchase-shipping-grid label:last-of-type,.purchase-shipping-grid #distributeExpenses{grid-column:auto}.purchase-payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-payment-grid .wide{grid-column:1/-1}}
@media(max-width:720px){.purchase-discount-grid,.purchase-shipping-grid,.purchase-payment-grid{grid-template-columns:1fr}.purchase-payment-grid .wide{grid-column:auto}}

.delivery-modal-backdrop{position:fixed;inset:0;z-index:900;background:rgba(15,23,42,.42);backdrop-filter:blur(2px)}
.delivery-edit-shell{position:fixed;z-index:901;top:50%;left:50%;transform:translate(-50%,-50%);width:min(860px,calc(100vw - 42px));max-height:calc(100vh - 42px);background:#fff;border:1px solid #d7e7f5;border-radius:9px;box-shadow:0 22px 60px rgba(15,79,140,.22);overflow:auto}
.delivery-edit-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1f5;padding:13px 16px;background:#fff}
.delivery-edit-head h2{margin:0;color:#0f4f8c;font-size:17px;font-weight:750}
.delivery-edit-head a{color:#9aa8b7;font-size:24px;font-weight:800;line-height:1}
.delivery-edit-form{padding:16px 16px 0}
.delivery-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px}
.delivery-edit-form label{display:grid;gap:5px;color:#30343a;font-size:12px;font-weight:850}
.delivery-edit-form input,.delivery-edit-form select,.delivery-edit-form textarea{border:1px solid #cfd7e3;border-radius:4px;font-size:12px;color:#30343a;padding:7px 10px;background:#fff}
.delivery-edit-form textarea{min-height:82px;resize:vertical}.delivery-edit-grid textarea{min-height:82px}
.delivery-edit-form select,.delivery-edit-form input{height:36px}.delivery-date-field{display:grid;grid-template-columns:42px 1fr;border:1px solid #cfd7e3;background:#f1f6fb;border-radius:4px;overflow:hidden}
.delivery-date-field b{display:grid;place-items:center;background:#fff;border-right:1px solid #cfd7e3;color:#555}
.delivery-date-field input{border:0;background:#eef3f8;height:34px}
.delivery-wide{margin-top:14px}.delivery-wide textarea{min-height:82px}.delivery-wide select{height:36px}
.delivery-documents{margin-top:14px}.delivery-dropzone{position:relative;display:grid;place-items:center;height:112px;border:1px dashed #8fb8dc;border-radius:7px;background:#f7fbff;color:#30465f;font-size:12px;font-weight:700}
.delivery-dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.delivery-dropzone span{pointer-events:none}
.delivery-attachment-state{border-top:1px solid #dce8f2;border-bottom:1px solid #edf1f5;text-align:center;padding:7px;color:#30343a;font-size:12px}
.delivery-attachment-state a{color:#0f766e;font-weight:800}
.delivery-activities{margin-top:14px}.delivery-activities>b{font-size:12px;color:#0f4f8c}.delivery-activities table{width:100%;border-collapse:collapse;margin-top:4px}.delivery-activities th{font-size:11px;text-transform:none;color:#30343a;background:#fff;border-bottom:1px solid #cfd7e3;text-align:left}.delivery-activities td{text-align:center;font-size:11px;border-bottom:0;padding:7px}
.delivery-edit-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;margin:22px -16px 0;padding:14px 18px;border-top:1px solid #edf1f5;background:#fff}
.delivery-edit-actions .btn{border-radius:11px;font-size:12px;padding:8px 16px;background:#0f4f8c}.delivery-edit-actions .secondary{background:#0f4f8c;color:#fff;box-shadow:0 0 0 3px #e5edf5}
@media(max-width:900px){.delivery-edit-shell{width:min(96vw,720px);max-height:92vh}.delivery-edit-grid{grid-template-columns:1fr;gap:18px}.delivery-edit-head h2{font-size:21px}.delivery-edit-form label{font-size:14px}.delivery-edit-form input,.delivery-edit-form select,.delivery-edit-form textarea{font-size:14px;padding:9px 12px}.delivery-edit-form textarea,.delivery-edit-grid textarea,.delivery-wide textarea{min-height:112px}.delivery-dropzone{height:160px}.delivery-edit-actions{margin-top:28px}}

/* MOIT blue theme polish */
.sidebar h1,.topbar-title span,.eyebrow,.form-divider,.modal-kicker{color:#0f4f8c}
.mobile-menu-toggle{background:#eaf4fb;color:#0f4f8c}
.sidebar a:hover,.sidebar summary:hover,.sidebar details[open] summary{background:#edf6fd;color:#0f4f8c}
.sidebar details[open] summary:after{color:#0f4f8c}
.sidebar a.active,.sidebar details a.active{background:#e4f1fb;color:#0b3e70!important;font-weight:750}
.sidebar details a{border-left-color:#d7e6f2}
.sidebar details a:hover,.sidebar details a.active{border-left-color:#0f4f8c}
.btn:not(.secondary):not(.ghost):not(.danger),button:not(.secondary):not(.ghost):not(.danger):not(.disabled){background:#0f4f8c}
.btn:not(.secondary):not(.ghost):not(.danger):hover,button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{background:#0b3e70}
.notice{background:#eaf4fb;border-color:#b8d2e6;color:#0b3e70}
.module-tile:hover,.operation:hover{border-color:#0f4f8c}
.check,.thumb{background:#eaf4fb;color:#0f4f8c}
.erp-tabs button:hover{color:#0f4f8c}
.erp-tabs button.active{border-top-color:#0f4f8c;color:#0b3e70}
.action-menu summary,.floating-action-menu summary,.selling-price-export,.add-round,.file-inline b,.opening-stock-import-form .download-template,.download-template,.label-preview-button,.purchase-return-submit-row .btn,.update-export-btn,.selling-price-import-form .btn,.delivery-edit-actions .btn,.delivery-edit-actions .secondary{background:#0f4f8c!important}
.action-menu summary:hover,.floating-action-menu[open] summary,.selling-price-export:hover,.add-round:hover,.file-inline b:hover,.opening-stock-import-form .download-template:hover,.download-template:hover,.label-preview-button:hover,.purchase-return-submit-row .btn:hover,.update-export-btn:hover,.selling-price-import-form .btn:hover{background:#0b3e70!important}
.action-menu a:hover,.action-menu button:hover,.action-menu-panel .contact-action-item:hover,.search-choice:hover,.label-search-results button:hover,.purchase-return-results button:hover{background:#edf6fd;color:#0f4f8c}
.action-menu-panel a.contact-action-item,.action-menu-panel button.contact-action-item{background:#fafdff!important;color:#1f2f46!important;box-shadow:none!important}
.action-menu-panel a.contact-action-item:hover,.action-menu-panel button.contact-action-item:hover{background:#eaf4fb!important;color:#0f4f8c!important}
@media(max-width:900px){.report-filter-grid,.report-list-tools{grid-template-columns:1fr}.report-export-tools{justify-self:start;flex-wrap:wrap}.report-data-table{min-width:980px}}
@media print{@page{size:A4 portrait;margin:8mm}body{background:#fff!important;color:#172033!important;font-size:9px!important}.topbar,.sidebar,.toolbar,.actions,.btn,.report-filter-card,.operation-grid,.report-list-tools,.floating-action-menu,.report-list-card .section-title,.erp-table-tools{display:none!important}.shell{display:block!important}main{padding:0!important}.page-head{display:none!important}.report-print-head{display:flex!important;align-items:center;justify-content:space-between;gap:14px;padding:0 0 10px;margin:0 0 12px;background:#fff!important;color:#0f4f8c!important;border-bottom:3px solid #0f4f8c;-webkit-print-color-adjust:exact;print-color-adjust:exact}.report-print-brand{display:flex;align-items:center;gap:10px;min-width:0}.report-print-brand img,.report-print-brand span{width:54px;height:54px;border:1px solid #bfdbfe;background:#fff;color:#0f4f8c;display:grid;place-items:center;font-size:13px;font-weight:900;object-fit:contain}.report-print-brand h1{margin:0;font-size:15px;line-height:1.1;color:#0f4f8c!important;white-space:nowrap;max-width:600px;overflow:hidden;text-overflow:ellipsis}.report-print-brand p{display:block!important;margin:3px 0 0;color:#475569!important;font-size:9px!important;line-height:1.25}.report-print-head strong{display:block;font-size:18px;letter-spacing:.3px;text-align:right;color:#0f4f8c!important}.report-print-head small{display:block!important;margin-top:4px;color:#475569!important;font-size:10px!important;font-weight:700;text-align:right}.card.report-list-card{border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}.report-table-wrap{overflow:visible!important;border:0!important}.report-data-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}.report-data-table th{background:#0f4f8c!important;color:#fff!important;border-bottom:1px solid #0b3e70!important;font-size:7.5px!important;padding:3px 4px!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.2!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.report-data-table td{font-size:7.5px!important;padding:3px 4px!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.2!important}.report-data-table th:last-child,.report-data-table td:last-child{display:none!important}.purchase-payment-pill{color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.report-action-menu .action-menu-panel{min-width:240px!important}.report-action-menu .contact-action-item{white-space:normal!important}
.expense-form{display:grid;gap:18px}.expense-card{border-top:4px solid #0f4f8c;padding:22px 28px}.expense-card h3{margin:0 0 18px;color:#2d2c5f;font-size:18px;font-weight:650}.expense-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 34px}.expense-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.expense-grid label,.expense-inline-form label,.expense-entry-form label{display:grid;gap:6px;color:#333;font-size:11px;font-weight:850}.expense-grid input,.expense-grid select,.expense-grid textarea,.expense-inline-form input,.expense-entry-form input,.expense-entry-form select,.expense-entry-form textarea{width:100%;border:1px solid #d1d9e4;border-radius:3px;background:#fff;color:#243244;font-size:12px;min-height:34px;padding:7px 10px}.expense-grid textarea,.expense-entry-form textarea{resize:vertical}.expense-grid label small{font-weight:600;color:#7b8794;line-height:1.45}.expense-grid .wide{grid-column:span 2}.expense-grid.align-center{align-items:center}.input-with-icon,.split-input{display:grid;grid-template-columns:42px minmax(0,1fr);border:1px solid #d1d9e4;border-radius:3px;overflow:hidden;background:#f3f6f9}.input-with-icon b{display:grid;place-items:center;background:#fff;color:#51606f;border-right:1px solid #d1d9e4}.input-with-icon input,.input-with-icon select,.split-input input,.split-input select{border:0;border-radius:0;background:transparent;min-height:34px}.split-input{grid-template-columns:minmax(0,1fr) 120px}.split-input select{border-left:1px solid #d1d9e4;background:#fff}.file-inline{display:grid;grid-template-columns:minmax(0,1fr) 88px}.file-inline input{border:1px solid #d1d9e4;border-right:0;border-radius:3px 0 0 3px;min-height:34px;padding:6px;background:#fff}.file-inline b{display:grid;place-items:center;border-radius:0 10px 10px 0;color:#fff;font-size:12px}.checkline{display:flex!important;align-items:center;gap:10px;min-height:34px}.checkline input{width:18px!important;min-height:18px!important}.expense-payment-due{text-align:right;border-top:1px solid #9ca3af;margin-top:18px;padding-top:12px;font-size:12px;font-weight:850}.expense-save-bar{position:sticky;bottom:0;display:flex;justify-content:center;background:#f5f8fc;padding:12px;border-top:1px solid #e4edf6}.expense-save-bar .btn{min-width:112px;border-radius:11px}.expense-inline-form{display:grid;grid-template-columns:minmax(180px,1fr) 160px auto;align-items:end;gap:12px;background:#f7fbff;border:1px solid #d9e8f6;border-radius:8px;padding:12px;margin:0 0 18px}.expense-entry-form{max-width:980px;margin:0 auto 24px;border-top:4px solid #0f4f8c;border-radius:8px;box-shadow:0 16px 36px rgba(15,79,140,.08);padding:20px 24px;display:grid;gap:14px}.expense-entry-form h3{color:#2d2c5f;font-size:20px;margin:0 0 10px}.expense-row-actions{display:flex;align-items:center;gap:8px}.expense-row-actions form{display:flex;align-items:center;gap:6px;margin:0}.expense-row-actions input{height:28px;width:132px;border:1px solid #d1d9e4;border-radius:3px;padding:4px 8px;font-size:11px}
.erp-column-panel,.erp-column-panel header,.erp-column-options label{border-color:#0f4f8c}
.erp-column-panel header{color:#0f4f8c}
.erp-column-panel header button,.erp-column-options input{accent-color:#0f4f8c}
.erp-column-options label{background:#eaf4fb}
.info-dot{background:#0f4f8c}
.contacts-list-card,.import-contact-card,.import-instructions-page,.update-step-card,.opening-stock-card,.selling-price-card,.purchase-return-list-card,.label-section{border-top-color:#0f4f8c}

.business-settings-card{border:1px solid #d7e6f2;border-radius:12px;box-shadow:0 18px 42px rgba(17,52,84,.09);background:#fff}
.settings-tabs{background:#f7fbff;border-right:1px solid #d7e6f2}
.settings-tabs a,.settings-tabs button{height:45px;background:#fff;color:#53667a;border-bottom:1px solid #e2edf6;font-weight:600;font-size:13px;letter-spacing:0}
.settings-tabs a:hover,.settings-tabs button:hover{background:#edf6fd;color:#0f4f8c}
.settings-tabs a.active,.settings-tabs button.active{background:#0f4f8c;color:#fff;font-weight:700}
.settings-tabs a.active::after,.settings-tabs button.active::after{border-left-color:#0f4f8c}
.settings-tabs button.danger{color:#53667a}
.business-settings-form,.tax-settings-form,.product-settings-form,.contact-settings-form,.sale-settings-form,.pos-settings-form,.purchases-settings-form,.payment-settings-form,.dashboard-settings-form,.system-settings-form,.prefixes-settings-form,.settings-simple-form,.sms-settings-form,.reward-settings-form,.modules-settings-form,.shopify-settings-form,.invoice-settings-form,.tax-rates-settings-form,.exchange-settings-form,.custom-labels-form{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.business-settings-form label,.tax-settings-form label,.product-settings-form label,.contact-settings-form label,.sale-settings-form label,.pos-settings-form label,.purchases-settings-form label,.payment-settings-form label,.dashboard-settings-form label,.system-settings-form label,.prefixes-settings-form label,.settings-simple-form label,.sms-settings-form label,.reward-settings-form label,.modules-settings-form label,.shopify-settings-form label,.invoice-settings-form label,.tax-rates-settings-form label,.exchange-settings-form label{font-weight:600;color:#263747;font-size:13px}
.business-settings-form input,.business-settings-form select,.business-settings-form textarea,.tax-settings-form input,.tax-settings-form select,.tax-settings-form textarea,.product-settings-form input,.product-settings-form select,.product-settings-form textarea,.contact-settings-form input,.contact-settings-form select,.contact-settings-form textarea,.sale-settings-form input,.sale-settings-form select,.sale-settings-form textarea,.pos-settings-form input,.pos-settings-form select,.pos-settings-form textarea,.purchases-settings-form input,.purchases-settings-form select,.purchases-settings-form textarea,.payment-settings-form input,.payment-settings-form select,.payment-settings-form textarea,.dashboard-settings-form input,.dashboard-settings-form select,.dashboard-settings-form textarea,.system-settings-form input,.system-settings-form select,.system-settings-form textarea,.prefixes-settings-form input,.prefixes-settings-form select,.prefixes-settings-form textarea,.settings-simple-form input,.settings-simple-form select,.settings-simple-form textarea,.sms-settings-form input,.sms-settings-form select,.sms-settings-form textarea,.reward-settings-form input,.reward-settings-form select,.reward-settings-form textarea,.modules-settings-form input,.modules-settings-form select,.modules-settings-form textarea,.shopify-settings-form input,.shopify-settings-form select,.shopify-settings-form textarea,.invoice-settings-form input,.invoice-settings-form select,.invoice-settings-form textarea,.tax-rates-settings-form input,.tax-rates-settings-form select,.tax-rates-settings-form textarea,.exchange-settings-form input,.exchange-settings-form select,.exchange-settings-form textarea{border-color:#d3e1ed;border-radius:8px;background:#fff;height:38px;color:#172033}
.business-settings-form textarea,.tax-settings-form textarea,.product-settings-form textarea,.contact-settings-form textarea,.sale-settings-form textarea,.pos-settings-form textarea,.purchases-settings-form textarea,.payment-settings-form textarea,.dashboard-settings-form textarea,.system-settings-form textarea,.prefixes-settings-form textarea,.settings-simple-form textarea,.sms-settings-form textarea,.reward-settings-form textarea,.modules-settings-form textarea,.shopify-settings-form textarea,.invoice-settings-form textarea,.tax-rates-settings-form textarea,.exchange-settings-form textarea{height:auto;min-height:76px}
.settings-input-with-icon b{border-color:#d3e1ed;background:#f5f9fc;color:#0f4f8c}
.switch-check{background:#f7fbff;border-color:#d7e6f2;border-radius:10px;font-weight:600!important}
.switch-check input{accent-color:#0f4f8c}
.business-settings-actions .btn{background:#0f4f8c!important;border-radius:10px;padding:9px 18px;box-shadow:0 12px 24px rgba(15,79,140,.18);font-weight:700}
.business-settings-actions .btn:hover{background:#0b3e70!important}
.page-head h2{color:#172033;font-weight:650;letter-spacing:0}
.page-head small{color:#64748b;font-weight:500}
@media(max-width:1280px){
  .business-settings-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .business-settings-form label,.business-settings-form .settings-field-sm,.business-settings-form .settings-field-xs,.business-settings-form .promotion-upload,.business-settings-form .business-settings-actions{grid-column:span 1}
  .business-settings-form .settings-field-phone{grid-column:span 1}
  .business-settings-form .business-name-field,.business-settings-form .legal-name-field,.business-settings-form .arabic-company-field,.business-settings-form .arabic-legal-field{grid-column:span 1}
  .business-settings-form .address-field{grid-column:span 2}
  .business-toggle-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tax-settings-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}
  .product-settings-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}
  .product-settings-toggles{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px}
  .sale-settings-main,.sale-settings-commission{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pos-settings-toggles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pos-shortcut-tables,.pos-scale-settings,.purchases-settings-grid,.payment-settings-form,.system-settings-form{grid-template-columns:1fr}
  .prefixes-settings-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings-simple-form,.sms-main-grid,.reward-top-row,.reward-redeem-grid,.module-settings-grid,.invoice-settings-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .invoice-format-choice,.settings-popup-grid{grid-template-columns:1fr}
  .email-settings-form .settings-test-action{grid-column:1/-1;justify-self:end}
  .has-settings-hint .settings-hint{position:static;width:auto;margin-top:6px;grid-column:1/-1}
  .custom-label-section.columns-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .custom-label-section.columns-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .custom-product-select{grid-column:auto}
  .tax-inline-toggle{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:1120px){
  .topbar{align-items:flex-start}
  .topbar .actions .btn,.topbar .actions button{padding:8px 10px;font-size:12px}
}
@media(max-width:900px){
  .business-settings-card{grid-template-columns:1fr}
  .settings-search-shell{grid-template-columns:64px minmax(0,1fr)}
  .business-settings-form{grid-template-columns:1fr}
  .business-settings-form label,.business-settings-form .settings-field-sm,.business-settings-form .settings-field-xs,.business-settings-form .settings-field-phone,.business-settings-form .arabic-company-field,.business-settings-form .arabic-legal-field,.business-settings-form .address-field,.business-settings-form .promotion-upload,.business-settings-form .business-settings-actions{grid-column:1/-1}
  .business-toggle-row{grid-template-columns:1fr}
  .tax-settings-form,.product-settings-form,.product-settings-toggles,.contact-settings-form,.sale-settings-main,.sale-settings-commission,.sale-settings-payment-link,.sale-settings-gateway,.pos-settings-toggles,.pos-shortcut-tables,.pos-scale-settings,.purchases-settings-grid,.payment-settings-form,.dashboard-settings-form,.system-settings-form,.prefixes-settings-form,.settings-simple-form,.sms-main-grid,.sms-pair-grid,.reward-top-row,.reward-redeem-grid,.module-settings-grid,.invoice-settings-form,.invoice-format-choice,.settings-popup-grid{grid-template-columns:1fr}
  .sms-test-row,.settings-expiry-period,.settings-pair-control{grid-template-columns:1fr}
  .sms-test-row input,.settings-pair-control input,.settings-expiry-period input{border-radius:8px!important}
  .sms-test-row .btn,.settings-pair-control select,.settings-expiry-period select{border-radius:8px!important}
  .custom-label-section.columns-2,.custom-label-section.columns-3,.custom-label-section.columns-4{grid-template-columns:1fr}
  .custom-label-input.has-default-contact{grid-template-columns:minmax(0,1fr)}
  .custom-label-input.has-required{grid-template-columns:minmax(0,1fr)}
  .custom-inline-check{border-left:1px solid #d3e1ed;border-top:0;justify-content:flex-start}
}

/* POS product card readability */
.pos-terminal .pos-category-rail{background:#eef7ff;border-right:4px solid #d7e9f7}
.pos-terminal .category-pill{background:#0f4f8c!important;color:#fff!important;border:1px solid #0d477d;box-shadow:0 4px 10px rgba(15,79,140,.18)}
.pos-terminal .category-pill.active,.pos-terminal .category-pill:hover{background:#1d6fae!important;color:#fff!important;border-color:#185f95}
.pos-terminal .pos-product-card{background:#f8fbff!important;color:#172033!important;border:1px solid #d6e4f0;box-shadow:0 5px 16px rgba(15,23,42,.1)}
.pos-terminal .pos-product-card:hover{background:#fff!important;border-color:#aacbe5;box-shadow:0 10px 22px rgba(15,79,140,.16)}
.pos-terminal .pos-product-image{background:#fff!important;border:1px solid #e1eaf2}
.pos-terminal .pos-product-image span{color:#2e9387}
.pos-terminal .stock-badge{background:#0f4f8c!important;color:#fff!important;border-color:#0d477d;font-weight:800;box-sizing:border-box;max-width:calc(100% - 20px);white-space:nowrap;overflow:visible;font-size:12px;line-height:1.1;padding:5px 8px}
.pos-terminal .pos-product-card b{color:#172033;font-weight:650;line-height:1.2;letter-spacing:0}
.pos-terminal .pos-product-card small{color:#75879a;font-weight:600;letter-spacing:.02em}
.pos-terminal .pos-product-card strong{color:#0f4f8c!important;font-weight:750}
.pos-terminal{height:100vh;min-height:100vh;overflow:hidden}
.pos-workspace{height:calc(100vh - 38px);min-height:0;overflow:hidden}
.pos-invoice-panel{height:100%;min-height:0}
.pos-category-rail{height:calc(100vh - 172px);max-height:calc(100vh - 172px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;position:sticky;top:8px}
.pos-category-rail::-webkit-scrollbar{width:7px}.pos-category-rail::-webkit-scrollbar-thumb{background:#9cc5e4;border-radius:999px}.pos-category-rail::-webkit-scrollbar-track{background:#e9f5fd}
.pos-product-zone{height:calc(100vh - 172px);max-height:calc(100vh - 172px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-top:10px}
.pos-product-zone::-webkit-scrollbar{width:8px}.pos-product-zone::-webkit-scrollbar-thumb{background:#9cc5e4;border-radius:999px}.pos-product-zone::-webkit-scrollbar-track{background:#e9f5fd}

/* User management in MOIT blue */
.user-management-head .actions{display:flex;gap:10px;align-items:center}
.user-role-card,.user-editor-card,.user-list-card{border:1px solid #d7e6f2;border-radius:12px;background:#fff;box-shadow:0 16px 38px rgba(17,52,84,.08);overflow:hidden}
.user-role-card{border-top:4px solid #0f4f8c}
.user-role-card form,.user-editor-form{padding:24px 32px}
.user-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.user-card-title h3{margin:0;color:#202b5f;font-size:22px;font-weight:650;letter-spacing:0}
.role-jump{display:grid;gap:5px;font-size:12px;font-weight:600;color:#263747;min-width:220px}
.role-jump select,.role-name-field input,.user-editor-form input,.user-editor-form select,.user-editor-form textarea{border:1px solid #d3e1ed;border-radius:6px;background:#fff;color:#172033;height:36px;padding:7px 10px;font-size:13px;letter-spacing:0}
.role-name-field{display:grid;gap:5px;max-width:380px;margin-bottom:18px;color:#263747;font-size:13px;font-weight:650}
.role-copy-permissions{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,320px) auto;gap:10px;align-items:end;margin:0 0 16px;padding:12px;border:1px solid #d8e5f0;border-radius:8px;background:#f5faff}
.role-copy-permissions strong{display:block;color:#173b5f;font-size:14px;font-weight:800}
.role-copy-permissions small{display:block;margin-top:3px;color:#65758b;font-size:12px;font-weight:600;line-height:1.35}
.role-copy-permissions select{height:38px;border:1px solid #cfe0ef;border-radius:8px;background:#fff;color:#172033;padding:7px 10px;font:inherit;font-size:13px}
.permissions-label{font-size:13px;font-weight:650;color:#263747;margin:10px 0}
.permissions-panel{border-top:1px solid #d5dde7}
.permission-group{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;border-bottom:1px solid #d5dde7;padding:22px 0}
.permission-group-title{display:grid;grid-template-columns:1fr;align-content:start;gap:18px}
.permission-group-title h4{margin:0;color:#202b5f;font-size:20px;font-weight:500;line-height:1.05;letter-spacing:0}
.permission-list{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px 34px}
.permission-option{display:flex;align-items:center;gap:12px;min-height:26px;color:#313946;font-size:13px;font-weight:500;line-height:1.25}
.permission-option input{width:22px;height:22px;margin:0;accent-color:#238cc8;flex:0 0 auto}
.permission-option span{overflow-wrap:anywhere}
.select-all-option{font-weight:600;color:#46576c}
.user-form-actions{display:flex;justify-content:flex-end;margin-top:22px}
.user-form-actions .btn,.user-management-head .btn{background:#0f4f8c!important;border-radius:10px;padding:9px 18px;color:#fff!important;box-shadow:0 12px 24px rgba(15,79,140,.18);font-weight:700}
.user-form-actions .btn:hover,.user-management-head .btn:hover{background:#0b3e70!important}
.user-management-head .btn.secondary{background:#eaf4fb!important;color:#0f4f8c!important;box-shadow:none}
.user-editor-card{margin-top:22px}
.user-editor-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.user-editor-form label{display:grid;gap:5px;color:#263747;font-size:13px;font-weight:650}
.user-editor-form label.check{display:flex;align-items:center;gap:12px;font-weight:500}
.user-editor-form label.check input{width:22px;height:22px;accent-color:#238cc8}
.user-editor-form textarea{height:auto;min-height:78px}
.user-editor-form small{color:#6b7f92;font-size:12px;line-height:1.35}
.user-editor-form .wide,.user-form-section.wide{grid-column:1/-1}
.user-editor-form .compact-field{max-width:220px}
.user-inline-check{align-self:end;margin-bottom:6px}
.user-form-section{border-top:1px solid #d5dde7;padding-top:22px;margin-top:8px}
.user-form-section h3{margin:0 0 18px;color:#202b5f;font-size:20px;font-weight:500;letter-spacing:0}
.user-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px}
.user-form-grid.single-column{grid-template-columns:minmax(0,1fr);max-width:860px}
.salary-pair{display:grid;grid-template-columns:minmax(0,1fr) 220px}
.salary-pair input{border-radius:6px 0 0 6px}
.salary-pair select{border-radius:0 6px 6px 0;border-left:0}
.user-list-card{margin-top:22px;padding:22px 24px}
.user-list-card .data-table th{background:#f3f8fc;color:#263747;font-size:12px}
.user-list-card .data-table td{font-size:13px}
.all-users-card{border-top:4px solid #3d7f1e;border-radius:8px;padding:24px 34px 26px;box-shadow:0 12px 28px rgba(15,23,42,.055)}
.all-users-card .user-card-title{align-items:center;margin-bottom:32px}
.all-users-card .user-card-title h3{font-size:18px;font-weight:650;color:#25245a}
.add-user-btn{background:#3d7f1e!important;color:#fff!important;border-radius:14px!important;padding:9px 15px!important;font-size:13px!important;font-weight:850!important;box-shadow:none!important}
.add-user-btn:hover{background:#2f6417!important}
.user-table-toolbar{display:grid;grid-template-columns:auto minmax(120px,1fr) minmax(210px,280px);align-items:center;gap:16px;margin-bottom:26px}
.user-table-toolbar>label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#30343b}
.user-table-toolbar select{width:86px;height:40px;border-radius:0;border:1px solid #d3dbe5;background:#fff;padding:7px 10px;font-size:13px}
.user-search-box{display:flex;justify-content:end;margin:0}
.user-search-box input{height:40px;width:100%;background:#f1f2f4;border:1px solid #d3dbe5;border-radius:0;padding:8px 12px;font-size:13px}
.all-users-card .erp-table-tools{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.users-directory-table{min-width:980px}
.users-directory-table th{background:#fff!important;color:#30343b!important;border-bottom:1px solid #333!important;text-transform:none!important;font-size:13px!important;padding:12px 15px!important}
.users-directory-table th:not(:last-child)::after{content:" ↕";float:right;color:#c7cbd1;font-weight:400}
.users-directory-table td{padding:12px 15px!important;border-bottom:0!important;color:#30343b;font-size:13px!important}
.users-directory-table tr:nth-child(even) td{background:#fafafa}
.users-directory-table tr:hover td{background:#f8fbff}
.users-directory-table .user-row-actions{justify-content:flex-start;gap:10px}
.table-action-pill{display:inline-flex;align-items:center;gap:4px;border:0;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:850;line-height:1;color:#fff!important;box-shadow:none!important;white-space:nowrap}
.table-action-pill.edit,.table-action-pill.view{background:#3d7f1e!important}
.table-action-pill.edit:hover,.table-action-pill.view:hover{background:#2f6417!important}
.table-action-pill.delete{background:#ff315f!important}
.table-action-pill.delete:hover{background:#df1f49!important}
.user-table-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #333;margin-top:0;padding-top:16px;color:#30343b;font-size:12px;font-weight:650}
.user-profile-card{margin-bottom:18px}
.user-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.user-profile-grid div{display:grid;gap:5px;border:1px solid #d7e6f2;border-radius:8px;background:#f8fbff;padding:12px 14px;min-height:68px}
.user-profile-grid span{color:#64748b;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.user-profile-grid b{color:#172033;font-size:14px;font-weight:750;overflow-wrap:anywhere}
.role-profile-grid{margin-bottom:14px}
.role-permission-preview{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.role-permission-preview span{background:#edf7ff;border:1px solid #cfe4f4;border-radius:999px;color:#0f4f8c;font-size:11px;font-weight:700;padding:5px 9px}
.user-list-card .row-actions{display:flex;gap:7px;align-items:center;white-space:nowrap}
.user-list-card .row-actions form{margin:0}
.user-list-card .btn.small{padding:5px 9px;border-radius:8px;font-size:11px;min-height:26px}
@media(max-width:1100px){
  .permission-group{grid-template-columns:1fr;gap:14px}
  .permission-list{grid-template-columns:1fr}
  .user-editor-form,.user-form-grid{grid-template-columns:1fr}
  .user-editor-form .compact-field{max-width:none}
  .salary-pair{grid-template-columns:1fr}
  .salary-pair input,.salary-pair select{border-radius:6px;border-left:1px solid #d3e1ed}
}
@media(max-width:720px){
  .user-role-card form,.user-editor-form{padding:16px}
  .user-card-title{display:grid}
  .role-jump{min-width:0}
  .permission-group-title h4,.user-form-section h3{font-size:18px}
  .user-profile-grid{grid-template-columns:1fr}
  .user-list-card .row-actions{white-space:normal;flex-wrap:wrap}
}

/* Stock transfer and adjustment pages */
.stock-page-shell{display:grid;gap:18px;background:linear-gradient(180deg,#f4fbff 0%,#edf8ef 100%);margin:-24px;padding:18px;min-height:calc(100vh - 64px)}
.stock-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(100deg,#0f4f8c 0%,#143a5d 100%);color:#fff;border-radius:10px;padding:18px 24px;box-shadow:0 14px 28px rgba(15,79,140,.18)}
.stock-hero .eyebrow{margin:0 0 4px;color:#d9f1ff;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.stock-hero h2{margin:0;color:#fff;font-size:24px;font-weight:750;letter-spacing:0}
.stock-hero small{display:block;margin-top:4px;color:#e3eef8;font-size:12px;font-weight:500}
.stock-hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.stock-hero-actions .btn,.stock-list-title .btn,.stock-actions .btn{border-radius:10px;background:#0f4f8c!important;color:#fff!important;padding:9px 17px;font-size:13px;font-weight:800;box-shadow:0 12px 22px rgba(15,79,140,.18)}
.stock-hero-actions .btn.secondary{background:#eaf4fb!important;color:#0f4f8c!important;box-shadow:none}
.stock-operation-card,.stock-list-card{background:#fff;border:1px solid #d7e6f2;border-radius:12px;box-shadow:0 16px 38px rgba(17,52,84,.08);padding:22px 26px}
.stock-section-title{display:flex;align-items:center;gap:8px;border-bottom:1px solid #e5eef7;padding-bottom:12px;margin-bottom:16px}
.stock-section-title h3,.stock-list-title h3{margin:0;color:#202b5f;font-size:17px;font-weight:750;letter-spacing:0}
.stock-title-icon{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#0f4f8c;color:#fff;font-size:12px;font-weight:900;line-height:1}
.stock-title-icon.search-icon{font-size:17px}
.stock-operation-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 28px}
.stock-operation-form label,.stock-product-form label{display:grid;gap:7px;color:#263747;font-size:13px;font-weight:750}
.stock-operation-form input,.stock-operation-form select,.stock-product-form input,.stock-product-form select,.stock-product-form textarea{height:36px;border:1px solid #d3e1ed;border-radius:8px;background:#fff;color:#172033;padding:7px 12px;font-size:13px;letter-spacing:0;min-width:0}
.stock-product-form textarea{height:auto;min-height:72px;resize:vertical}
.stock-product-search{display:grid;grid-template-columns:46px minmax(260px,780px);align-items:center;justify-content:center;margin:2px auto 14px;width:min(920px,100%)}
.stock-product-search span{display:grid;place-items:center;height:38px;background:#0f4f8c;color:#fff;border-radius:9px 0 0 9px;font-size:19px;font-weight:900}
.stock-product-search select{height:38px;border-left:0;border-radius:0 9px 9px 0;background:#f4f7fb;color:#667085}
.stock-entry-table{max-width:1240px;margin:0 auto 18px;border-radius:8px;overflow:auto;border:1px solid #e2edf6}
.stock-entry-head,.stock-entry-row{display:grid;grid-template-columns:2.2fr 1fr 1fr 1fr 38px;min-width:720px;align-items:center}
.stock-entry-head span{background:linear-gradient(90deg,#0f4f8c,#173b5f);color:#fff;text-align:center;font-size:13px;font-weight:850;padding:13px 10px}
.stock-entry-head span:nth-child(2){background:linear-gradient(90deg,#3d8fd0,#0f4f8c)}
.stock-entry-row{background:#fff}
.stock-entry-row>*{border-right:1px solid #e2edf6;min-height:42px;display:flex;align-items:center;padding:7px 10px}
.stock-entry-row strong{color:#263747;font-size:13px}
.stock-entry-row span,.stock-entry-row b{font-size:13px;color:#405366}
.stock-entry-row input{height:32px;width:100%;border-radius:0}
.stock-delete-icon{justify-content:center;color:#ef3c68!important;font-size:20px!important;font-weight:900}
.stock-total-row{min-width:820px;background:#f8fbff;text-align:right;padding:8px 56px 8px 12px;color:#263747;font-size:13px;font-weight:850;border-top:1px solid #e2edf6}
.stock-details-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
.stock-actions{display:flex;justify-content:flex-end;margin-top:14px}
.stock-list-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.stock-list-title small{display:block;margin-top:3px;color:#6b7f92;font-size:12px}
.stock-list-toolbar{display:grid;grid-template-columns:auto minmax(280px,1fr) minmax(180px,260px);align-items:center;gap:16px;margin-bottom:18px}
.stock-list-toolbar label{display:flex;align-items:center;gap:8px;color:#263747;font-size:13px;font-weight:650}
.stock-list-toolbar select,.stock-list-toolbar input{height:38px;border:1px solid #d3e1ed;border-radius:0;background:#fff;color:#172033;padding:7px 12px;font-size:13px}
.stock-export-pills{justify-self:center;display:flex;align-items:center;gap:0;background:#eef1f4;border-radius:999px;padding:3px 6px;overflow:auto;max-width:100%}
.stock-export-pills button{background:transparent!important;color:#30343a!important;box-shadow:none;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:650;white-space:nowrap}
.stock-data-table{min-width:1100px}
.stock-data-table th{background:#f8fbff;color:#263747;font-size:12px;font-weight:850;border-bottom:2px solid #2b3b4d;white-space:nowrap}
.stock-data-table td{font-size:12px;color:#30343a;vertical-align:middle}
.stock-data-table small{color:#718096;font-size:11px}
.stock-row-actions{display:flex;align-items:center;gap:7px;white-space:nowrap}
.stock-row-actions form{margin:0}
.stock-view-btn,.stock-delete-btn{display:inline-flex;align-items:center;justify-content:center;min-height:24px;border-radius:999px;padding:4px 9px;color:#fff!important;font-size:11px;font-weight:850;text-decoration:none;line-height:1}
.stock-view-btn{background:#0f4f8c}
.stock-delete-btn{background:#ff2f62!important}
.stock-view-btn:hover{background:#0b3e70;color:#fff!important}
.stock-delete-btn:hover{background:#dd224f!important}
.stock-list-card .pagination{margin-top:14px}
@media(max-width:1200px){
  .stock-operation-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stock-list-toolbar{grid-template-columns:1fr}
  .stock-export-pills{justify-self:start}
}
@media(max-width:760px){
  .stock-page-shell{margin:-16px;padding:12px}
  .stock-hero,.stock-list-title{display:grid}
  .stock-operation-card,.stock-list-card{padding:16px}
  .stock-operation-form,.stock-details-grid{grid-template-columns:1fr}
  .stock-product-search{grid-template-columns:42px minmax(0,1fr)}
  .stock-hero h2{font-size:21px}
}

/* Sales list and quotation actions */
.filters-card{background:#fff;border:1px solid #e5edf5;border-radius:8px;margin-bottom:18px;box-shadow:0 10px 24px rgba(15,23,42,.045);overflow:hidden}
.filters-summary{list-style:none;padding:14px 22px;color:#66a9d1;font-size:17px;font-weight:800;cursor:pointer}
.filters-summary::-webkit-details-marker{display:none}
.filter-actions{display:flex;align-items:end;gap:8px}
.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.section-title-row h3{margin:0;color:#2d2c5f;font-size:18px;font-weight:700}
.table-controls-row{display:grid;grid-template-columns:auto minmax(360px,1fr) 260px;gap:16px;align-items:center;margin-bottom:22px}
.entries-label{display:flex!important;align-items:center;gap:7px;font-size:12px;color:#333;font-weight:650}
.entries-label select{height:36px;width:74px;border-radius:0;font-size:12px}
.export-tools{justify-self:center;display:flex;align-items:center;background:#eef2f7;border-radius:18px;padding:0 7px;min-height:34px;gap:2px;white-space:nowrap}
.export-tools .btn{background:transparent!important;color:#333!important;border-radius:0;padding:7px 8px;font-size:11px;font-weight:650;box-shadow:none!important}
.export-tools .btn:hover{background:#ddeaf5!important;color:#0f4f8c!important}
.export-tools .erp-table-tools{margin:0}
.export-tools .erp-column-visibility summary{background:transparent!important;color:#333!important;padding:7px 8px;min-width:124px;font-size:11px;box-shadow:none}
.export-tools .erp-column-panel{right:auto;left:0}
.list-search-input{height:36px;border-radius:0;background:#eef0f3;font-size:12px}
.sales-list-table{min-width:1080px}
.sales-list-table th{font-size:12px;color:#333;text-transform:none;background:#fff;border-bottom:2px solid #333;padding:10px 12px}
.sales-list-table td{font-size:12px;padding:9px 12px;color:#333}
.sales-list-table tr:nth-child(even) td{background:#fafafa}
.payment-status-pill{display:inline-flex;align-items:center;border-radius:3px;padding:3px 8px;font-size:10px;font-weight:900;color:#fff}
@media(max-width:900px){.table-controls-row,.purchase-filter-grid{grid-template-columns:1fr}.export-tools{justify-self:start;flex-wrap:wrap}.sales-list-table{min-width:980px}}

/* Light, readable utility controls and autocomplete results across the app */
.qty-stepper button,
.quote-search-add,
.quote-remove-line,
.remove-cart-line,
.remove-line,
[data-remove-return-line],
.remove-split-payment,
.stock-delete-icon{
  background:#eaf4fb!important;
  color:#0f4f8c!important;
  border:1px solid #c9dff0!important;
  box-shadow:none!important;
  font-weight:900!important;
}
.qty-stepper button:hover,
.quote-search-add:hover,
.quote-remove-line:hover,
.remove-cart-line:hover,
.remove-line:hover,
[data-remove-return-line]:hover,
.remove-split-payment:hover{
  background:#d8ecfb!important;
  color:#083d70!important;
}
.remove-cart-line,
.quote-remove-line,
[data-remove-return-line]{
  background:#fff3f6!important;
  color:#b4233b!important;
  border-color:#ffd0da!important;
}
.search-results,
.purchase-return-results,
.label-search-results{
  background:#eef6ff!important;
  border-color:#9dc7ee!important;
  box-shadow:0 16px 36px rgba(15,79,140,.22)!important;
}
.search-results button,
.search-choice,
.purchase-return-results button,
.label-search-results button{
  background:#0f82f5!important;
  color:#fff!important;
  border:1px solid #0a73d6!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
.search-results button b,
.search-choice b,
.purchase-return-results button b,
.label-search-results button b{
  color:#fff!important;
}
.search-results button small,
.search-choice small,
.purchase-return-results button small,
.label-search-results button small{
  color:#d9ecff!important;
}
.search-results button:hover,
.search-results button:focus,
.search-choice:hover,
.search-choice:focus,
.purchase-return-results button:hover,
.purchase-return-results button:focus,
.label-search-results button:hover{
  background:#0874dc!important;
  color:#fff!important;
  outline:2px solid rgba(0,111,223,.18)!important;
  outline-offset:-2px!important;
}
.recent-tabs{background:#f8fbff!important}
.recent-tabs button{background:#f8fbff!important;color:#31506b!important;border-bottom-color:transparent!important}
.recent-tabs button.active{background:#eaf4fb!important;color:#0f4f8c!important;border-bottom-color:#0f4f8c!important}
.status-chip,
.modal-table .badge{
  background:#eaf4fb!important;
  color:#0f4f8c!important;
  border:1px solid #cfe3f5!important;
}

.filters-summary,
.purchase-filter-card summary{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  width:auto!important;
  margin:14px 22px!important;
  padding:8px 16px!important;
  background:#0f4f8c!important;
  color:#fff!important;
  border:1px solid #0d4479!important;
  border-radius:18px!important;
  box-shadow:0 8px 18px rgba(15,79,140,.18)!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  line-height:1.2!important;
}
.filters-summary:hover,
.purchase-filter-card summary:hover{
  background:#0b3e70!important;
  color:#fff!important;
}
.filter-caret,
.purchase-filter-card summary span{
  display:inline-grid!important;
  place-items:center!important;
  width:18px!important;
  height:18px!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#0b3e70!important;
  border:1px solid rgba(255,255,255,.72)!important;
  box-shadow:0 1px 2px rgba(8,61,112,.22)!important;
  font-size:14px!important;
  font-weight:950!important;
  line-height:1!important;
  transition:transform .16s ease!important;
}
.filters-card[open] .filters-summary,
.purchase-filter-card[open] summary{
  background:#0b3e70!important;
}
.filters-card[open] .filter-caret,
.purchase-filter-card[open] summary span{
  transform:rotate(180deg);
}
.report-filter-card summary.filters-summary{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  width:auto!important;
  margin:14px 22px!important;
  padding:8px 16px!important;
  background:#0f4f8c!important;
  color:#fff!important;
  border:1px solid #0d4479!important;
  border-radius:18px!important;
  box-shadow:0 8px 18px rgba(15,79,140,.18)!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  line-height:1.2!important;
}
.report-filter-card summary.filters-summary:hover,
.report-filter-card[open] summary.filters-summary{
  background:#0b3e70!important;
  color:#fff!important;
}
.report-filter-card[open] .filter-caret,
.filter-heading[aria-expanded=true] .filter-caret{
  transform:rotate(180deg);
}
.filter-heading{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
}
.filter-heading:before{
  display:none!important;
  content:none!important;
}
.sales-total-row td{
  background:#eaf4fb!important;
  color:#103a5f!important;
  border-top:2px solid #9fc8e6!important;
  border-bottom:1px solid #cfe3f5!important;
  font-size:12px!important;
  line-height:1.45!important;
  padding:12px 10px!important;
  text-align:center!important;
}
.sales-total-row td:first-child{
  text-align:left!important;
}
.sales-total-row span{
  display:inline-flex;
  align-items:center;
  margin:3px 8px 3px 0;
  padding:3px 8px;
  border-radius:999px;
  background:#f7fbff;
  border:1px solid #cfe3f5;
  color:#0f4f8c;
  font-weight:800;
}
.topbar-pos-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 15px;
  border-radius:18px;
  background:#166aa8;
  color:#fff!important;
  border:1px solid #0f4f8c;
  box-shadow:0 6px 14px rgba(15,79,140,.16);
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}
.topbar-pos-button:hover,
.topbar-pos-button.active{
  background:#0b3e70;
}

@media(max-width:900px){
  .topbar{
    display:grid!important;
    grid-template-columns:1fr;
    gap:10px;
    padding:10px 12px!important;
    background:rgba(255,255,255,.97)!important;
    border-bottom:1px solid #d8e1ec!important;
    box-shadow:0 8px 18px rgba(15,23,42,.08)!important;
  }
  .topbar-title{
    width:100%;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr);
    align-items:center;
  }
  .topbar-title span{
    font-size:15px!important;
    line-height:1.2;
  }
  .mobile-menu-toggle{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    background:#0f4f8c!important;
    color:#fff!important;
    border:1px solid #0b3e70!important;
    box-shadow:0 6px 14px rgba(15,79,140,.14);
  }
  .topbar .actions{
    width:100%;
    display:flex!important;
    justify-content:flex-start!important;
    gap:7px!important;
    flex-wrap:nowrap!important;
    overflow-x:auto;
    padding-bottom:2px;
  }
  .topbar .actions .btn,
  .topbar .actions button,
  .topbar .actions .language-link,
  .topbar .actions .topbar-pos-button{
    width:auto!important;
    flex:0 0 auto;
    min-height:32px;
    padding:0 11px!important;
    font-size:12px!important;
  }
  .sidebar{
    width:min(86vw,300px)!important;
    padding:12px!important;
  }
  .sidebar-brand{
    min-height:54px;
    margin-bottom:10px;
    padding:8px 12px!important;
  }
  .sidebar-brand img{
    width:92px;
    height:36px;
  }
  .sidebar a,.sidebar summary{
    min-height:34px;
    font-size:12px;
    padding-top:7px;
    padding-bottom:7px;
  }
  main{
    padding-top:16px!important;
  }
}

/* Finance module reports */
.finance-head small{
  color:#64748b!important;
  font-weight:700!important;
}
.finance-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0 0 14px!important;
}
.finance-tabs a{
  display:inline-flex!important;
  align-items:center!important;
  min-height:36px!important;
  padding:8px 14px!important;
  border:1px solid #d7e5f4!important;
  border-radius:8px!important;
  background:#f8fbff!important;
  color:#17375e!important;
  font-size:12px!important;
  font-weight:900!important;
  text-decoration:none!important;
}
.finance-tabs a.active{
  background:#0f8bf2!important;
  border-color:#0f8bf2!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(15,139,242,.18)!important;
}
.finance-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
.finance-kpis>div{
  border:1px solid #d8e5f2!important;
  border-radius:8px!important;
  background:#fff!important;
  padding:14px!important;
  box-shadow:0 8px 24px rgba(15,79,140,.06)!important;
  display:grid!important;
  gap:5px!important;
}
.finance-kpis span,
.finance-panel .eyebrow{
  color:#0f4f8c!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
.finance-kpis strong{
  color:#172033!important;
  font-size:22px!important;
  line-height:1.1!important;
}
.finance-kpis small,
.finance-line small{
  color:#64748b!important;
  font-size:11px!important;
  font-weight:700!important;
}
.finance-panel{
  border-radius:8px!important;
  border-top:3px solid #0f4f8c!important;
}
.finance-statement-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
.finance-panel h3{
  margin:2px 0 10px!important;
  color:#172033!important;
}
.loan-workflow-section{
  margin-top:16px;
  padding:15px 16px 16px;
  border:1px solid #dbe6f1;
  border-radius:10px;
  background:linear-gradient(180deg,#fbfdff 0%,#fff 100%);
}
.loan-entry-section{border-top:3px solid #0f4f8c}
.loan-register-section{border-top:3px solid #15803d}
.loan-workflow-heading{
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:11px;
  margin-bottom:12px;
  border-bottom:1px solid #e6edf5;
}
.loan-workflow-heading h4{margin:0;color:#172033;font-size:15px;font-weight:750;letter-spacing:0}
.loan-workflow-heading small{display:block;margin-top:2px;color:#64748b;font-size:11px;font-weight:500}
.loan-step{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e9f3ff;color:#0f4f8c;font-size:12px;font-weight:900;flex:0 0 26px}
.loan-register-section .loan-step{background:#e9f8ee;color:#15803d}
.loan-compact-form{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 12px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.loan-compact-form label{gap:4px!important;font-size:11px!important;color:#41526a!important;font-weight:700!important}
.loan-compact-form input,.loan-compact-form select{min-height:36px!important;padding:7px 9px!important;font-size:13px!important}
.loan-compact-form .wide{grid-column:span 2}
.loan-form-action{display:flex;align-items:end}
.loan-form-action .btn{min-height:36px;padding:7px 12px;font-size:12px;white-space:nowrap}
.loan-register-section .finance-loan-filter{margin:0 0 12px!important;padding:0 0 12px!important;border-bottom:1px solid #e6edf5}
.loan-register-section .table-wrap{margin:0}
.loan-statement-modal{position:fixed;inset:0;z-index:220;display:grid;place-items:center;padding:24px;background:rgba(15,23,42,.54);backdrop-filter:blur(2px)}
.loan-statement-card{width:min(1050px,96vw);max-height:88vh;overflow:auto;background:#fff;border:1px solid #cbd9e8;border-radius:12px;box-shadow:0 24px 70px rgba(15,23,42,.32);padding:20px}
.loan-statement-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:14px;border-bottom:1px solid #e5edf5}.loan-statement-head h3{margin:2px 0 4px!important;font-size:20px!important}.loan-statement-head small{color:#64748b;font-size:12px}.loan-statement-actions{display:flex;gap:8px;flex-wrap:wrap}.loan-statement-actions .btn{white-space:nowrap}
.loan-statement-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.loan-statement-summary>div{padding:10px 12px;border:1px solid #dfebf6;border-radius:8px;background:#f8fbfe}.loan-statement-summary small{display:block;color:#64748b;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.loan-statement-summary b{display:block;margin-top:4px;color:#172033;font-size:16px}
@media(max-width:1100px){.loan-compact-form{grid-template-columns:repeat(3,minmax(0,1fr))}.loan-compact-form .wide{grid-column:span 2}}
@media(max-width:700px){.loan-workflow-section{padding:13px}.loan-compact-form{grid-template-columns:1fr}.loan-compact-form .wide{grid-column:auto}.loan-form-action{align-items:stretch}.loan-form-action .btn{width:100%}.loan-statement-modal{padding:12px}.loan-statement-card{max-height:92vh;padding:14px}.loan-statement-head{display:grid}.loan-statement-summary{grid-template-columns:1fr}}
@media print{body.printing-loan-statement .topbar,body.printing-loan-statement .sidebar{display:none!important}body.printing-loan-statement main>*{visibility:hidden!important}body.printing-loan-statement .loan-statement-modal,body.printing-loan-statement .loan-statement-modal *{visibility:visible!important}body.printing-loan-statement .loan-statement-modal{position:absolute!important;inset:0!important;display:block!important;padding:0!important;background:#fff!important}body.printing-loan-statement .loan-statement-card{width:100%!important;max-height:none!important;overflow:visible!important;border:0!important;box-shadow:none!important;padding:0!important}body.printing-loan-statement .loan-statement-actions{display:none!important}body.printing-loan-statement .data-table{min-width:0!important}}
.finance-line{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:14px!important;
  align-items:center!important;
  padding:11px 0!important;
  border-top:1px solid #e5edf5!important;
}
.finance-line span{
  display:grid!important;
  gap:3px!important;
}
.finance-line strong,
.finance-table td:nth-last-child(-n+2),
.finance-table th:nth-last-child(-n+2){
  text-align:right!important;
}
.finance-line.total{
  margin-top:6px!important;
  border-top:2px solid #17375e!important;
}
.finance-table th{
  white-space:nowrap!important;
}
.finance-table tfoot th{
  background:#f0f7ff!important;
  color:#172033!important;
}
.finance-net{
  border-radius:8px!important;
  padding:10px 14px!important;
  font-size:18px!important;
}
.finance-net.positive{
  background:#dcfce7!important;
  color:#166534!important;
}
.finance-net.negative{
  background:#fee2e2!important;
  color:#991b1b!important;
}
@media(max-width:1100px){
  .finance-kpis,
  .finance-statement-grid{
    grid-template-columns:1fr!important;
  }
}

/* Supplier/customer ledger payments */
.ledger-payment-status{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:70px!important;
  padding:5px 10px!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
}
.ledger-payment-status-paid{
  background:#dcfce7!important;
  color:#166534!important;
}
.ledger-payment-status-due{
  background:#fee2e2!important;
  color:#991b1b!important;
}
.ledger-payment-status-partial{
  background:#fef3c7!important;
  color:#92400e!important;
}
.ledger-payment-modal{
  width:min(760px,94vw)!important;
}
.ledger-payment-mode{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:10px 0!important;
}
.ledger-payment-mode button{
  border:1px solid #cfe0f2!important;
  border-radius:8px!important;
  background:#f8fbff!important;
  color:#17375e!important;
  padding:8px 12px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.ledger-payment-mode button.active,
.ledger-payment-mode button:hover{
  background:#0f8bf2!important;
  border-color:#0f8bf2!important;
  color:#fff!important;
}
.ledger-payment-lines{
  display:grid!important;
  gap:8px!important;
}
.ledger-payment-line{
  display:grid!important;
  grid-template-columns:150px minmax(110px,140px) minmax(180px,1fr) 36px!important;
  gap:8px!important;
  align-items:end!important;
  border:1px solid #d9e6f3!important;
  border-radius:8px!important;
  background:#fbfdff!important;
  padding:8px!important;
}
.ledger-payment-line label{
  display:grid!important;
  gap:4px!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:900!important;
}
.ledger-payment-line input,
.ledger-payment-line select{
  min-height:34px!important;
  height:34px!important;
  border:1px solid #cbd5e1!important;
  border-radius:7px!important;
  padding:6px 8px!important;
  font-size:12px!important;
  font-weight:800!important;
}
.ledger-payment-line [data-ledger-remove-payment]{
  height:34px!important;
  border:0!important;
  border-radius:7px!important;
  background:#fee2e2!important;
  color:#991b1b!important;
  font-size:18px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.ledger-payment-total{
  margin-top:8px!important;
  text-align:right!important;
  color:#475569!important;
  font-weight:900!important;
}
@media(max-width:800px){
  .ledger-payment-line{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:520px){
  .topbar .actions{width:100%!important}
  .topbar .actions .app-back-button,
  .topbar .actions .language-link,
  .topbar .actions #themeToggle{
    width:auto!important;
  }
  .topbar-title{width:100%!important}
  .dashboard-actions{grid-template-columns:1fr!important}
  .page-head h2,.dashboard-head h2{font-size:22px!important}
  .card{border-radius:7px}
}

.pos-terminal .payment-modal-layout{grid-template-columns:minmax(0,1fr) 220px!important;gap:18px!important}
.pos-terminal .payment-entry-panel{padding:16px!important;gap:12px!important}
.pos-terminal .payment-row{gap:14px!important}
.pos-terminal .payment-row label,
.pos-terminal .payment-note,
.pos-terminal .payment-notes label{font-size:13px!important;gap:6px!important}
.pos-terminal .payment-row input,
.pos-terminal .payment-row select{height:34px!important;font-size:13px!important;padding:6px 9px!important}
.pos-terminal .payment-note textarea,
.pos-terminal .payment-notes textarea{min-height:64px!important;font-size:13px!important}
.pos-terminal .payment-orange-summary{padding:16px!important;gap:10px!important}
.pos-terminal .payment-orange-summary span{font-size:13px!important}
.pos-terminal .payment-orange-summary b{font-size:18px!important}
.pos-terminal .add-payment-row{height:34px!important;font-size:12px!important;padding:7px 12px!important}

@media print{
  .topbar,
  .topbar *,
  .sidebar,
  .sidebar *,
  .actions,
  .toolbar,
  .mobile-menu-toggle{
    display:none!important;
    visibility:hidden!important;
  }
  body:has(.report-print-head) .topbar,
  body:has(.report-print-head) .topbar *,
  body:has(.report-print-head) .sidebar,
  body:has(.report-print-head) .sidebar *,
  body:has(.report-print-head) .page-head,
  body:has(.report-print-head) .toolbar,
  body:has(.report-print-head) .actions,
  body:has(.report-print-head) .report-filter-card,
  body:has(.report-print-head) .report-list-tools,
  body:has(.report-print-head) .erp-table-tools,
  body:has(.report-print-head) .floating-action-menu{
    display:none!important;
    visibility:hidden!important;
  }
  body:has(.report-print-head) main{
    padding:0!important;
    margin:0!important;
  }
body:has(.report-print-head) .report-print-head{
    display:flex!important;
    visibility:visible!important;
    background:#fff!important;
    color:#0f4f8c!important;
    border-bottom:3px solid #0f4f8c!important;
    margin:0 0 12px!important;
    padding:0 0 10px!important;
  }
}

/* Maintenance module refinements */
.maintenance-tech-alert{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 18px;
  border:1px solid #cfe2f3;
  background:#f4f9fd;
}
.maintenance-tech-alert h3{margin:2px 0 4px;font-size:20px;color:#13233b}
.maintenance-tech-alert span{color:#607089;font-weight:700}
.maintenance-role-guide{
  border:1px solid #d6e7f5;
  background:#fbfdff;
}
.maintenance-role-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.maintenance-role-grid div{
  display:grid;
  gap:8px;
  min-height:128px;
  padding:16px;
  border:1px solid #d7e6f3;
  border-radius:8px;
  background:#f5faff;
}
.maintenance-role-grid b{
  color:#143a5d;
  font-size:16px;
  font-weight:850;
}
.maintenance-role-grid span{
  color:#52657a;
  font-size:13px;
  line-height:1.55;
  font-weight:650;
}
.topbar-maintenance-alert{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#e8f4ff;
  border:1px solid #bddaf3;
  color:#0f4f8c;
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}
.maintenance-linked-field,
.maintenance-plus-input{
  display:grid;
  grid-template-columns:minmax(0,1fr) 38px;
  gap:8px;
  align-items:center;
}
.maintenance-linked-field select,
.maintenance-linked-field input,
.maintenance-plus-input input{
  min-width:0;
}
.maintenance-option-field select,
.maintenance-option-field input{
  width:100%;
}
.maintenance-option-field input[hidden],
.maintenance-option-field select[hidden]{
  display:none!important;
}
.maintenance-option-add{
  font-size:18px!important;
  font-weight:850!important;
}
.maintenance-combo{
  position:relative;
}
.maintenance-combo-menu{
  position:absolute;
  top:calc(100% + 5px);
  left:0;
  right:46px;
  z-index:40;
  display:none;
  max-height:250px;
  overflow:auto;
  padding:7px 0;
  border:1px solid #b8c5d3;
  border-radius:13px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.18);
}
.maintenance-combo.is-open .maintenance-combo-menu{
  display:grid;
  gap:0;
}
.maintenance-combo-menu button{
  width:100%;
  border:0;
  border-radius:0;
  padding:9px 16px;
  background:#fff;
  color:#242a33;
  font-size:14px;
  font-weight:550;
  text-align:left;
  cursor:pointer;
  justify-content:flex-start;
}
.maintenance-combo-menu button:hover,
.maintenance-combo-menu button:focus{
  background:#eef6ff;
  color:#0f4f8c;
}
.maintenance-plus-fill.is-confirmed{
  background:#0f7f5c;
  border-color:#0f7f5c;
  color:#fff;
}
.btn.icon-only{
  width:38px;
  min-width:38px;
  height:38px;
  padding:0;
  border-radius:8px;
  display:grid;
  place-items:center;
  font-size:20px;
  line-height:1;
}
.maintenance-form-card input[list],
.maintenance-form-card select{
  background:#f8fbff;
  border-color:#cbdff1;
  color:#182235;
}
.maintenance-form-card input[list]:focus,
.maintenance-form-card select:focus{
  outline:2px solid rgba(15,79,140,.18);
  border-color:#8bbadd;
  box-shadow:0 0 0 3px rgba(139,186,221,.15);
}
.maintenance-material-detail-row td{
  background:#f7fbff!important;
  color:#34445c;
  font-size:12px;
  line-height:1.7;
  border-top:0!important;
}
.maintenance-material-detail-row:not(:target){
  display:none;
}
.material-print-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px;
}
.maintenance-voucher{
  display:none;
  background:#fff;
  color:#111827;
  font-family:Arial, sans-serif;
}
.voucher-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-bottom:3px solid #0f4f8c;
  padding-bottom:12px;
  margin-bottom:16px;
}
.voucher-head p{
  margin:0 0 4px;
  color:#0f4f8c;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.voucher-head h2{
  margin:0;
  color:#172033;
  font-size:25px;
  font-weight:850;
}
.voucher-head div:last-child{
  text-align:right;
  color:#334155;
}
.voucher-head span{
  display:block;
  margin-top:4px;
  font-size:12px;
  font-weight:800;
}
.voucher-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:16px;
}
.voucher-grid div{
  border:1px solid #1f2937;
  padding:9px 10px;
  min-height:52px;
}
.voucher-grid span{
  display:block;
  color:#334155;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.voucher-grid b{
  display:block;
  margin-top:5px;
  color:#111827;
  font-size:13px;
}
.voucher-table{
  width:100%;
  border-collapse:collapse;
  margin-bottom:14px;
}
.voucher-table th,
.voucher-table td{
  border:1px solid #1f2937;
  padding:8px;
  font-size:12px;
  text-align:left;
}
.voucher-table th{
  background:#eef6ff;
  color:#111827;
  font-weight:900;
}
.voucher-note{
  border:1px solid #1f2937;
  padding:10px;
  min-height:58px;
  font-size:12px;
  line-height:1.6;
  margin-bottom:34px;
}
.voucher-signatures{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:34px;
  margin-top:34px;
}
.voucher-signatures div{
  border-top:2px solid #111827;
  padding-top:8px;
  text-align:center;
}
.voucher-signatures span{
  display:block;
  color:#334155;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.voucher-signatures b{
  display:block;
  margin-top:4px;
  font-size:12px;
}
@media(max-width:980px){
  .maintenance-role-grid{
    grid-template-columns:1fr;
  }
}
@media print{
  body.maintenance-printing *{
    visibility:hidden!important;
  }
  body.maintenance-printing .maintenance-voucher.is-printing,
  body.maintenance-printing .maintenance-voucher.is-printing *{
    visibility:visible!important;
  }
  body.maintenance-printing .maintenance-voucher.is-printing{
    display:block!important;
    position:absolute!important;
    inset:0 auto auto 0!important;
    width:100%!important;
    padding:20px!important;
    box-sizing:border-box!important;
  }
  body.maintenance-printing{
    background:#fff!important;
  }
  body.maintenance-section-printing *{
    visibility:hidden!important;
  }
  body.maintenance-section-printing .is-section-printing,
  body.maintenance-section-printing .is-section-printing *{
    visibility:visible!important;
  }
  body.maintenance-section-printing .is-section-printing{
    position:absolute!important;
    inset:0 auto auto 0!important;
    width:100%!important;
    padding:18px!important;
    background:#fff!important;
    box-shadow:none!important;
    border:0!important;
    box-sizing:border-box!important;
  }
  body.maintenance-section-printing .is-section-printing .toolbar,
  body.maintenance-section-printing .is-section-printing .form-actions,
  body.maintenance-section-printing .is-section-printing form{
    display:none!important;
  }
}

.sales-return-indicator{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:7px;
  padding:3px 7px;
  border-radius:999px;
  background:#fff4e5;
  border:1px solid #f5bf75;
  color:#995b00;
  font-size:11px;
  font-weight:900;
  text-decoration:none;
  vertical-align:middle;
}
.sales-return-indicator:hover{
  background:#ffe9c2;
  color:#744200;
}
.sales-return-indicator span{
  min-width:16px;
  height:16px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:#995b00;
  color:#fff;
  font-size:10px;
  line-height:1;
}

/* Standardize Stock Transfer and Stock Adjustment with the main ERP list/add pages. */
.stock-page-shell{
  display:grid!important;
  gap:18px!important;
  background:transparent!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
}
.stock-standard-head{
  border-bottom:3px solid #3d7f1e;
  padding-bottom:12px;
  margin-bottom:18px;
}
.stock-standard-head h2{
  color:#2d2c5f;
  font-size:26px;
  font-weight:500;
}
.stock-standard-head small{
  color:#64748b;
  font-size:12px;
  font-weight:500;
}
.stock-page-actions .btn{
  border-radius:14px;
  padding:8px 16px;
  font-size:13px;
}
.stock-operation-card,
.stock-list-card{
  background:#fff!important;
  border:0!important;
  border-top:4px solid #3d7f1e!important;
  border-radius:7px!important;
  box-shadow:0 10px 24px rgba(15,23,42,.045)!important;
  padding:24px 28px!important;
}
.stock-section-title{
  border-bottom:1px solid #edf1f5!important;
  padding-bottom:12px!important;
  margin-bottom:18px!important;
}
.stock-title-icon{
  width:18px!important;
  height:18px!important;
  background:#0f4f8c!important;
  color:#fff!important;
}
.stock-section-title h3,
.stock-list-title h3{
  color:#2d2c5f!important;
  font-size:18px!important;
  font-weight:650!important;
}
.stock-operation-form{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px 28px!important;
}
.stock-operation-form label,
.stock-product-form label{
  color:#333!important;
  font-size:12px!important;
  font-weight:800!important;
  gap:5px!important;
}
.stock-operation-form input,
.stock-operation-form select,
.stock-product-form input,
.stock-product-form select,
.stock-product-form textarea{
  height:34px!important;
  border:1px solid #d5dce7!important;
  border-radius:0!important;
  color:#333!important;
  font-size:12px!important;
  padding:6px 10px!important;
  background:#fff!important;
}
.stock-product-form textarea{
  min-height:78px!important;
}
.stock-product-search{
  grid-template-columns:42px minmax(260px,780px)!important;
  margin:2px auto 18px!important;
}
.stock-product-search span{
  height:36px!important;
  border-radius:8px 0 0 8px!important;
  background:#0f4f8c!important;
}
.stock-product-search select{
  height:36px!important;
  border-left:0!important;
  border-radius:0 8px 8px 0!important;
  background:#eef0f3!important;
}
.stock-entry-table{
  border:0!important;
  border-radius:0!important;
  max-width:1280px!important;
}
.stock-entry-head,
.stock-entry-row{
  grid-template-columns:2.2fr 1fr 1fr 1fr 38px!important;
  min-width:720px!important;
}
.stock-entry-head span{
  background:#0f4f8c!important;
  color:#fff!important;
  font-size:12px!important;
  padding:11px 10px!important;
}
.stock-entry-head span:nth-child(2){
  background:#eaf4fb!important;
  color:#0f4f8c!important;
}
.stock-entry-row>*{
  min-height:38px!important;
  border-right:1px solid #edf1f5!important;
  font-size:12px!important;
}
.stock-total-row{
  background:#fff!important;
  border-top:1px solid #edf1f5!important;
  color:#333!important;
  font-size:12px!important;
}
.stock-details-grid{
  gap:28px!important;
}
.stock-actions .btn,
.stock-list-title .btn{
  background:#3d7f1e!important;
  border-radius:14px!important;
  box-shadow:0 8px 18px rgba(61,127,30,.18)!important;
  font-size:13px!important;
  padding:8px 16px!important;
}
.stock-list-title{
  margin-bottom:28px!important;
}
.stock-list-title small{
  color:#64748b!important;
  font-size:12px!important;
}
.stock-list-toolbar{
  grid-template-columns:auto minmax(460px,1fr) 260px!important;
  gap:18px!important;
  margin-bottom:26px!important;
}
.stock-list-toolbar label{
  color:#333!important;
  font-size:12px!important;
  font-weight:650!important;
}
.stock-list-toolbar select{
  width:74px!important;
  height:36px!important;
  font-size:12px!important;
}
.stock-list-toolbar input{
  height:36px!important;
  border-radius:0!important;
  background:#eee!important;
  font-size:12px!important;
}
.stock-export-pills{
  justify-self:center!important;
  min-height:34px!important;
  background:#eee!important;
  border-radius:18px!important;
  padding:0 7px!important;
  gap:0!important;
}
.stock-export-pills button{
  border-radius:0!important;
  padding:7px 8px!important;
  color:#333!important;
  font-size:11px!important;
  font-weight:650!important;
}
.stock-data-table{
  min-width:1180px!important;
}
.stock-data-table th{
  background:#fff!important;
  color:#333!important;
  border-bottom:2px solid #333!important;
  font-size:12px!important;
  padding:10px 12px!important;
  text-transform:none!important;
}
.stock-data-table td{
  color:#333!important;
  font-size:12px!important;
  padding:9px 12px!important;
}
.stock-data-table tr:nth-child(even) td{
  background:#fafafa!important;
}
.stock-view-btn,
.stock-delete-btn{
  min-height:24px!important;
  border-radius:999px!important;
  padding:4px 9px!important;
  font-size:11px!important;
}
.stock-view-btn{
  background:#3d7f1e!important;
}
.stock-delete-btn{
  background:#ff2f62!important;
}
.purchase-return-total-row td{
  background:#eaf4fb!important;
  color:#103a5f!important;
  border-top:2px solid #9fc8e6!important;
  border-bottom:1px solid #cfe3f5!important;
}
.purchase-return-total-row:hover td{
  background:#eaf4fb!important;
}
@media(max-width:1200px){
  .stock-operation-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .stock-list-toolbar{grid-template-columns:1fr!important}
  .stock-export-pills{justify-self:start!important}
}
@media(max-width:760px){
  .stock-standard-head,.stock-list-title{display:grid!important}
  .stock-operation-card,.stock-list-card{padding:16px!important}
  .stock-operation-form,.stock-details-grid{grid-template-columns:1fr!important}
}
.project-quote-form{display:grid;gap:0}
.project-quote-head-card{border-top:4px solid #0f4f8c}
.project-quote-top-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.project-quote-wide{grid-column:span 2}
.project-quote-top-grid textarea{height:auto;min-height:76px;padding:8px 10px;resize:vertical}
.project-lines-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}
.project-lines-heading h3{margin:0;color:#2d2c5f;font-size:17px;font-weight:800}
.project-lines-heading small{display:block;color:#687789;font-size:11px;margin-top:3px}
.project-lines{display:grid;gap:12px}
.project-line{position:relative;display:grid;grid-template-columns:1.05fr .8fr 1.25fr .75fr 110px 130px 120px;gap:10px;align-items:end;border:1px solid #dbe8f4;background:#f8fbff;border-radius:6px;padding:14px 42px 14px 14px}
.project-line label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#223047}
.project-line input,.project-line textarea,.project-quote-total-grid input{width:100%;border:1px solid #cfdbea;border-radius:3px;background:#fff;color:#1f2f46;font-size:12px;padding:7px 9px}
.project-line input{height:32px}
.project-line textarea{resize:vertical;min-height:72px}
.project-line small{font-size:10px;color:#667085}
.project-line-total{height:32px;border:1px solid #cfe3f5;border-radius:3px;background:#eaf4fb;color:#0f4f8c;font-size:12px;font-weight:900;display:grid;place-items:center;text-align:center}
.project-line-remove{position:absolute;right:10px;top:10px;width:24px;height:24px;border-radius:50%;background:#eaf4fb;color:#0f4f8c;padding:0;box-shadow:none}
.project-line-remove:hover{background:#d8ecfb;color:#0b3b6a}
.project-quote-total-card{border-top:3px solid #cfe3f5}
.project-quote-total-grid{display:grid;grid-template-columns:190px 220px minmax(280px,1fr);gap:18px;align-items:end}
.project-quote-total-grid label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#223047}
.project-total-box{justify-self:end;min-width:300px;background:#eaf4fb;border:1px solid #cfe3f5;border-radius:6px;padding:10px 14px;display:grid;gap:5px;color:#103a5f;font-size:12px}
.project-total-box span{display:flex;justify-content:space-between;gap:28px}
.project-total-box b{color:#0f4f8c;font-size:14px}
@media(max-width:1200px){.project-quote-top-grid{grid-template-columns:1fr 1fr}.project-line{grid-template-columns:1fr 1fr}.project-line label:nth-child(4){grid-column:span 2}.project-quote-total-grid{grid-template-columns:1fr}.project-total-box{justify-self:stretch}.project-quote-wide{grid-column:span 2}}
@media(max-width:760px){.project-quote-top-grid,.project-line{grid-template-columns:1fr}.project-quote-wide,.project-line label:nth-child(4){grid-column:auto}.project-line{padding-right:14px;padding-top:42px}.project-line-remove{left:10px;right:auto}.project-lines-heading{align-items:flex-start;flex-direction:column}}
.quick-contact-inline{display:flex;align-items:stretch;gap:6px;width:100%}
.quick-contact-inline select{min-width:0;flex:1}
.quick-contact-plus{width:34px;min-width:34px;height:34px;border-radius:50%;padding:0;background:#0f4f8c;color:#fff;border:1px solid #0b3b6a;box-shadow:none;font-size:18px;font-weight:900;line-height:1}
.quick-contact-plus:hover{background:#0b3b6a}
.quick-contact-modal{position:fixed;inset:0;z-index:9999;background:rgba(15,23,42,.42);display:grid;place-items:center;padding:18px}
.quick-contact-modal[hidden]{display:none!important}
.quick-contact-dialog{width:min(760px,100%);max-height:min(88vh,760px);overflow:auto;background:#fff;border-radius:8px;box-shadow:0 24px 70px rgba(15,23,42,.28);border-top:4px solid #0f4f8c}
.quick-contact-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #e5edf5}
.quick-contact-head h3{margin:0;color:#2d2c5f;font-size:21px;font-weight:750}
.quick-contact-head button{width:30px;height:30px;padding:0;border-radius:50%;background:#eef6fc;color:#0f4f8c;box-shadow:none;font-size:20px}
.quick-contact-form{padding:18px 20px 20px}
.quick-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.quick-contact-grid label{display:grid;gap:5px;color:#30353b;font-size:11px;font-weight:800}
.quick-contact-grid .wide{grid-column:span 2}
.quick-contact-grid input,.quick-contact-grid select{width:100%;height:34px;border:1px solid #ccd7e4;border-radius:3px;background:#fff;color:#1f2937;font-size:12px;padding:7px 9px}
.quick-contact-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;padding-top:14px;border-top:1px solid #e8eef5}
.quick-contact-error{margin:12px 0 0;padding:9px 11px;border-radius:4px;background:#fff1f2;color:#be123c;border:1px solid #fecdd3;font-size:12px;font-weight:700}
body.modal-open{overflow:hidden}
.circle-btn,
.purchase-plus,
.quote-search-add,
.quote-round,
.project-line-remove,
.quick-contact-plus,
.quick-contact-head button{
  background:#E6F3FF!important;
  color:#0059B3!important;
  border:1px solid #8FC7FF!important;
  box-shadow:0 4px 10px rgba(0,127,255,.10)!important;
}
.circle-btn:hover,
.purchase-plus:hover,
.quote-search-add:hover,
.quote-round:hover,
.project-line-remove:hover,
.quick-contact-plus:hover,
.quick-contact-head button:hover{
  background:#D4EAFF!important;
  color:#004A99!important;
  border-color:#5CADFF!important;
}
.pos-terminal .category-pill{
  background:#E6F3FF!important;
  color:#0059B3!important;
  border-color:#8FC7FF!important;
  box-shadow:none!important;
}
.pos-terminal .category-pill.active,
.pos-terminal .category-pill:hover{
  background:#D4EAFF!important;
  color:#004A99!important;
  border-color:#5CADFF!important;
}
.pos-terminal .stock-badge{
  background:#EAF6FF!important;
  color:#0059B3!important;
  border-color:#8FC7FF!important;
  box-shadow:none!important;
}
.pos-topbar .invoice-chip,
.pos-status-actions button,
.pos-status-actions a,
.pos-pill.online{
  background:#007FFF!important;
  color:#fff!important;
  border-color:#006DDB!important;
  box-shadow:0 2px 6px rgba(0,127,255,.16)!important;
}
.pos-topbar .invoice-chip:hover,
.pos-status-actions button:hover,
.pos-status-actions a:hover{
  background:#006DDB!important;
  color:#fff!important;
}
.purchase-filter-grid button[type=submit],
.report-filter-grid button[type=submit],
.contact-filter-shell .contact-filter-actions button,
form.contact-filters button[type=submit],
form.contact-filters button:not([type]),
.filter-bar button[type=submit],
.stock-history-filters button[type=submit]{display:none!important}
@media(max-width:700px){.quick-contact-modal{align-items:end;padding:10px}.quick-contact-dialog{max-height:92vh}.quick-contact-grid{grid-template-columns:1fr}.quick-contact-grid .wide{grid-column:auto}.quick-contact-actions{justify-content:stretch}.quick-contact-actions .btn{flex:1}}
.btn:not(.secondary):not(.ghost):not(.danger),
button:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.action-menu summary,
.floating-action-menu summary,
.purchase-action-menu summary,
.report-action-menu summary,
.filter-heading,
.filters-summary,
.purchase-filter-card summary,
.report-filter-card summary.filters-summary,
.add-round,
.download-template,
.label-preview-button,
.selling-price-export,
.purchase-return-submit-row .btn,
.update-export-btn,
.selling-price-import-form .btn,
.business-settings-actions .btn,
.user-form-actions .btn,
.user-management-head .btn,
.stock-hero-actions .btn,
.stock-list-title .btn,
.stock-actions .btn,
.stock-view-btn{
  background:#007FFF!important;
  border-color:#006DDB!important;
  color:#fff!important;
  box-shadow:0 6px 14px rgba(0,127,255,.16)!important;
}
.btn:not(.secondary):not(.ghost):not(.danger):hover,
button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.action-menu summary:hover,
.floating-action-menu[open] summary,
.purchase-action-menu summary:hover,
.report-action-menu summary:hover,
.filter-heading:hover,
.filters-summary:hover,
.purchase-filter-card summary:hover,
.report-filter-card summary.filters-summary:hover,
.add-round:hover,
.download-template:hover,
.label-preview-button:hover,
.selling-price-export:hover,
.purchase-return-submit-row .btn:hover,
.update-export-btn:hover,
.selling-price-import-form .btn:hover,
.business-settings-actions .btn:hover,
.user-form-actions .btn:hover,
.user-management-head .btn:hover,
.stock-view-btn:hover{
  background:#006DDB!important;
  border-color:#005CB8!important;
  color:#fff!important;
}
.settings-reset-form{margin:0;display:inline-flex}
.settings-reset-form .danger{border:0;border-radius:10px;background:#e5484d;color:#fff;font-weight:800;padding:9px 14px;cursor:pointer;box-shadow:0 10px 22px rgba(229,72,77,.18)}
.settings-reset-form .danger:hover{background:#c83237}
.subscription-settings-card{display:grid;gap:18px;padding:24px}
.subscription-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e2e8f0;padding-bottom:16px}
.subscription-intro h3,.subscription-limit-card h4,.subscription-history-card h4{margin:0;color:#172033;font-size:20px;font-weight:850}
.subscription-intro p{margin:4px 0 0;color:#64748b;font-size:13px;font-weight:650}
.subscription-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.subscription-summary-grid article,.subscription-limit-card,.subscription-history-card{border:1px solid #dbe5ef;background:#fff;border-radius:8px;box-shadow:0 12px 28px rgba(15,79,140,.06)}
.subscription-summary-grid article{padding:14px;display:grid;gap:5px;min-height:96px}
.subscription-summary-grid article span,.subscription-limit-grid span{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:900}
.subscription-summary-grid article strong{color:#172033;font-size:18px;line-height:1.2}
.subscription-summary-grid article small{color:#718096;font-size:11px;font-weight:650}
.subscription-summary-grid article.highlight{background:#edf7ff;border-color:#b8dcff}
.subscription-summary-grid article.highlight strong{color:#007FFF;font-size:28px}
.subscription-limit-card,.subscription-history-card{padding:16px}
.subscription-limit-card h4,.subscription-history-card h4{font-size:16px;margin-bottom:12px}
.subscription-limit-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.subscription-limit-grid div{border:1px solid #e2e8f0;border-radius:7px;background:#f8fbff;padding:10px;display:grid;gap:4px}
.subscription-limit-grid b{font-size:14px;color:#172033}
.subscription-table th,.subscription-table td{font-size:12px;padding:10px;text-align:left}
.subscription-table th{background:#f3f8fd;color:#53667a}
.subscription-status-pill{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;background:#e8f7ed;color:#237a38;padding:3px 9px;font-size:11px;font-weight:850}
.subscription-view-details,.subscription-row-details{position:relative}
.subscription-view-details summary,.subscription-row-details summary{list-style:none;cursor:pointer;border-radius:9px;background:#007FFF;color:#fff;padding:8px 14px;font-weight:850;font-size:12px;box-shadow:0 8px 18px rgba(0,127,255,.16)}
.subscription-view-details summary::-webkit-details-marker,.subscription-row-details summary::-webkit-details-marker{display:none}
.subscription-view-details[open] summary,.subscription-row-details[open] summary{background:#006DDB}
.subscription-view-details div,.subscription-row-details div{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:min(300px,84vw);display:grid;gap:6px;background:#fff;border:1px solid #dbe5ef;border-radius:8px;box-shadow:0 18px 44px rgba(15,23,42,.18);padding:14px;color:#172033}
.subscription-row-details div{right:auto;left:0;width:260px}
.subscription-view-details span,.subscription-view-details p,.subscription-row-details span{font-size:12px;color:#53667a;margin:0;font-weight:650}
.subscription-view-details b,.subscription-row-details b{font-size:14px;color:#172033}
@media(max-width:1200px){.subscription-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.subscription-limit-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.subscription-settings-card{padding:14px}.subscription-intro{display:grid}.subscription-summary-grid,.subscription-limit-grid{grid-template-columns:1fr}.subscription-view-details div,.subscription-row-details div{position:static;width:auto;margin-top:8px}}
.circle-btn,
.purchase-plus,
.quote-search-add,
.quote-round,
.project-line-remove,
.quick-contact-plus,
.quick-contact-head button,
.pos-modal header button,
.recent-actions button,
.modal-table button,
.split-row button{
  background:#E6F3FF!important;
  color:#0059B3!important;
  border:1px solid #8FC7FF!important;
  box-shadow:0 4px 10px rgba(0,127,255,.10)!important;
}
.circle-btn:hover,
.purchase-plus:hover,
.quote-search-add:hover,
.quote-round:hover,
.project-line-remove:hover,
.quick-contact-plus:hover,
.quick-contact-head button:hover,
.pos-modal header button:hover,
.recent-actions button:hover,
.modal-table button:hover,
.split-row button:hover{
  background:#D4EAFF!important;
  color:#004A99!important;
  border-color:#5CADFF!important;
}
.pos-modal header button{
  width:34px!important;
  height:34px!important;
  border-radius:50%!important;
  font-size:20px!important;
}
.modal-link,
.modal-action-btn,
.modal-actions button,
.add-payment-row{
  background:#E6F3FF!important;
  color:#0059B3!important;
  border:1px solid #8FC7FF!important;
  box-shadow:none!important;
}
.modal-link:hover,
.modal-action-btn:hover,
.modal-actions button:hover,
.add-payment-row:hover{
  background:#D4EAFF!important;
  color:#004A99!important;
}
.modal-actions .soft{
  background:#f4f9fd!important;
  color:#566b7d!important;
  border-color:#d5e4ef!important;
}
.recent-tabs{
  background:#f7fbff!important;
}
.recent-tabs button,
.recent-tab{
  background:#f7fbff!important;
  color:#31506b!important;
  border-bottom:4px solid transparent!important;
  box-shadow:none!important;
}
.recent-tabs button.active,
.recent-tab.active{
  background:#E6F3FF!important;
  color:#0059B3!important;
  border-bottom-color:#007FFF!important;
}
.pos-terminal .category-pill{
  background:#E6F3FF!important;
  color:#0059B3!important;
  border-color:#8FC7FF!important;
  box-shadow:none!important;
}
.pos-terminal .category-pill.active,
.pos-terminal .category-pill:hover{
  background:#D4EAFF!important;
  color:#004A99!important;
  border-color:#5CADFF!important;
}
.pos-terminal .stock-badge,
.status-chip,
.modal-table .badge{
  background:#EAF6FF!important;
  color:#0059B3!important;
  border-color:#8FC7FF!important;
  box-shadow:none!important;
}
.pos-topbar .invoice-chip,
.pos-status-actions button,
.pos-status-actions a,
.pos-pill.online,
.pos-bottom-bar button{
  background:#007FFF!important;
  color:#fff!important;
  border-color:#006DDB!important;
  box-shadow:0 2px 6px rgba(0,127,255,.16)!important;
}
.pos-bottom-bar .pay-card,
.pos-bottom-bar .pay-wamd,
.pos-bottom-bar .pay-cash,
.pos-bottom-bar .cancel,
.pos-bottom-bar .offline,
.pos-bottom-bar .recent{
  background:#007FFF!important;
  color:#fff!important;
}
button.pos-product-card:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.pos-terminal button.pos-product-card:not(.secondary):not(.ghost):not(.danger):not(.disabled){
  background:#fff!important;
  color:#111827!important;
  border:0!important;
  box-shadow:0 2px 8px rgba(30,41,59,.16)!important;
}
button.pos-product-card:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.pos-terminal button.pos-product-card:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{
  background:#fff!important;
  color:#111827!important;
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(30,41,59,.2)!important;
}
.pos-terminal .pos-product-image{
  background:#f4f6f8!important;
  border:0!important;
}
.pos-terminal .pos-product-image span{
  color:#258879!important;
}
.pos-terminal .pos-product-card b{
  color:#111827!important;
  font-weight:750!important;
}
.pos-terminal .pos-product-card small{
  color:#75879a!important;
  font-weight:700!important;
}
.pos-terminal .pos-product-card strong{
  color:#0f766e!important;
}
.pos-topbar .invoice-chip:hover,
.pos-status-actions button:hover,
.pos-status-actions a:hover,
.pos-bottom-bar button:hover{
  background:#006DDB!important;
  color:#fff!important;
}
button.circle-btn:not(.secondary):not(.ghost):not(.danger):not(.disabled),
button.purchase-plus:not(.secondary):not(.ghost):not(.danger):not(.disabled),
button.quote-search-add:not(.secondary):not(.ghost):not(.danger):not(.disabled),
button.quote-round:not(.secondary):not(.ghost):not(.danger):not(.disabled),
button.project-line-remove:not(.secondary):not(.ghost):not(.danger):not(.disabled),
button.quick-contact-plus:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.quick-contact-head button:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.pos-modal header button:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.recent-actions button:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.modal-table button:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.split-row button:not(.secondary):not(.ghost):not(.danger):not(.disabled){
  background:#E6F3FF!important;
  color:#0059B3!important;
  border:1px solid #8FC7FF!important;
  box-shadow:0 4px 10px rgba(0,127,255,.10)!important;
}
button.circle-btn:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
button.purchase-plus:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
button.quote-search-add:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
button.quote-round:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
button.project-line-remove:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
button.quick-contact-plus:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.quick-contact-head button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.pos-modal header button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.recent-actions button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.modal-table button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.split-row button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{
  background:#D4EAFF!important;
  color:#004A99!important;
  border-color:#5CADFF!important;
}
.location-settings-card{
  display:block!important;
  width:100%!important;
  padding:24px 28px!important;
  overflow:visible!important;
  border-top:4px solid #007FFF!important;
}
.location-settings-card .location-list-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0 0 22px!important;
}
.location-settings-card .location-list-head h3{
  margin:0!important;
  color:#2d2c5f!important;
  font-size:18px!important;
  font-weight:750!important;
}
.location-settings-card .location-list-head small{
  display:block!important;
  max-width:none!important;
  margin-top:4px!important;
  color:#64748b!important;
  font-size:12px!important;
}
.location-settings-card .table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow:auto!important;
  border:0!important;
}
.location-settings-table{
  width:100%!important;
  min-width:980px!important;
}
.location-settings-table th{
  background:#fff!important;
  color:#263747!important;
  border-bottom:2px solid #263747!important;
  font-size:12px!important;
  text-transform:none!important;
  padding:10px 12px!important;
}
.location-settings-table td{
  color:#263747!important;
  font-size:12px!important;
  padding:10px 12px!important;
}
.location-settings-table tr:nth-child(even) td{
  background:#fafafa!important;
}
.location-actions{
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
}
.location-actions .mini-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:26px!important;
  border-radius:999px!important;
  padding:5px 11px!important;
  background:#007FFF!important;
  border:1px solid #006DDB!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:850!important;
  text-decoration:none!important;
}
.location-actions .mini-link.warning{
  background:#E6F3FF!important;
  color:#0059B3!important;
  border-color:#8FC7FF!important;
}
@media(max-width:900px){
  .location-settings-card{padding:16px!important}
  .location-settings-card .location-list-head{align-items:flex-start!important;flex-direction:column!important}
}
.pos-topbar{
  grid-template-columns:minmax(560px,1.18fr) 220px minmax(420px,.92fr)!important;
  gap:12px!important;
}
.pos-topbar .invoice-chip{
  justify-self:center!important;
  text-align:center!important;
  width:max-content!important;
  max-width:100%!important;
  white-space:nowrap!important;
}
@media(max-width:1400px){
  .pos-topbar{
    grid-template-columns:minmax(520px,1.18fr) 190px minmax(360px,.85fr)!important;
  }
}
@media(max-width:1120px){
  .pos-topbar{
    grid-template-columns:minmax(500px,1fr) 170px minmax(300px,.78fr)!important;
  }
  .pos-topbar .invoice-chip{
    font-size:12px!important;
    padding:7px 10px!important;
  }
}
@media(max-width:900px){
  .pos-topbar{
    grid-template-columns:1fr!important;
  }
  .pos-topbar .invoice-chip{
    justify-self:start!important;
  }
}
.pos-terminal{
  background:#e8eef5!important;
}
.pos-topbar{
  min-height:48px!important;
  height:auto!important;
  background:#f7fbff!important;
  border-bottom:1px solid #cbd8e6!important;
  box-shadow:0 2px 7px rgba(15,23,42,.08)!important;
  padding:7px 12px!important;
}
.pos-location{
  color:#334155!important;
  font-size:12px!important;
}
.pos-location select{
  background:#fff!important;
  border:1px solid #cbd8e6!important;
  color:#172033!important;
}
.pos-topbar .invoice-chip{
  min-width:340px!important;
  max-width:380px!important;
  min-height:34px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:7px 14px!important;
  border-radius:12px!important;
  background:#007FFF!important;
  color:#fff!important;
  border:1px solid #006DDB!important;
  box-shadow:0 8px 18px rgba(0,127,255,.18)!important;
  font-size:13px!important;
  font-weight:850!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:visible!important;
  position:relative!important;
  z-index:2!important;
}
.pos-topbar .invoice-chip b{
  margin-left:4px!important;
  color:#fff!important;
  font-weight:900!important;
}
.pos-status-actions{
  gap:6px!important;
  flex-wrap:wrap!important;
}
.pos-status-actions button,
.pos-status-actions a,
.pos-pill.online{
  min-height:30px!important;
  border-radius:999px!important;
  padding:6px 10px!important;
  background:#eef7ff!important;
  color:#0059B3!important;
  border:1px solid #8FC7FF!important;
  box-shadow:none!important;
  font-size:11px!important;
}
.pos-status-actions button:hover,
.pos-status-actions a:hover{
  background:#007FFF!important;
  color:#fff!important;
}
.pos-workspace{
  background:#e8eef5!important;
}
.pos-invoice-panel,
.pos-category-rail,
.pos-product-zone{
  border:1px solid #d7e3ef!important;
  box-shadow:0 10px 24px rgba(15,23,42,.06)!important;
}
.pos-category-rail{
  background:#f8fbff!important;
  border-right:1px solid #d7e3ef!important;
}
.pos-product-zone{
  background:#f8fbff!important;
}
.pos-bottom-bar{
  min-height:82px!important;
  height:auto!important;
  background:#f8fbff!important;
  border-top:1px solid #cbd8e6!important;
  box-shadow:0 -10px 28px rgba(15,23,42,.12)!important;
  padding:10px 14px!important;
  gap:8px!important;
}
.pos-bottom-bar button{
  min-height:36px!important;
  border-radius:10px!important;
  background:#eef7ff!important;
  color:#0059B3!important;
  border:1px solid #8FC7FF!important;
  box-shadow:none!important;
  font-size:12px!important;
  font-weight:850!important;
}
.pos-bottom-bar button:hover{
  background:#007FFF!important;
  color:#fff!important;
  border-color:#006DDB!important;
}
.pos-bottom-bar .pay-card,
.pos-bottom-bar .pay-wamd,
.pos-bottom-bar .pay-cash,
.pos-bottom-bar .recent{
  background:#007FFF!important;
  color:#fff!important;
  border-color:#006DDB!important;
}
.pos-bottom-bar .cancel{
  background:#fff1f2!important;
  color:#b42318!important;
  border-color:#fecdd3!important;
}
.pos-bottom-bar .offline{
  background:#fff7ed!important;
  color:#b45309!important;
  border-color:#fed7aa!important;
}
.payable-box{
  margin-left:auto!important;
  margin-right:0!important;
  min-width:230px!important;
  min-height:54px!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#334155!important;
  border:1px solid #bfdbfe!important;
  border-left:5px solid #007FFF!important;
  box-shadow:0 10px 22px rgba(15,23,42,.10)!important;
  padding:9px 16px!important;
  gap:8px!important;
  text-transform:none!important;
  justify-content:space-between!important;
}
.payable-box span{
  color:#64748b!important;
  font-size:11px!important;
  font-weight:850!important;
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
}
.payable-box b{
  color:#007FFF!important;
  font-size:25px!important;
  line-height:1!important;
  font-weight:950!important;
}
@media(max-width:1120px){
  .pos-topbar .invoice-chip{
    min-width:280px!important;
    max-width:320px!important;
    font-size:12px!important;
  }
}
@media(max-width:900px){
  .pos-topbar .invoice-chip{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    justify-self:stretch!important;
  }
  .payable-box{
    width:100%!important;
    margin:0!important;
  }
}
@media(max-width:1180px){
  .pos-terminal{
    min-height:100vh!important;
    overflow-x:hidden!important;
  }
  .pos-topbar{
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    gap:8px!important;
  }
  .pos-location,
  .pos-status-actions{
    justify-content:center!important;
  }
  .pos-topbar .invoice-chip{
    justify-self:center!important;
    min-width:0!important;
    width:min(440px,100%)!important;
    max-width:100%!important;
  }
  .pos-workspace{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    grid-template-columns:210px minmax(0,1fr)!important;
    grid-template-areas:
      "invoice invoice"
      "categories products"!important;
    padding:10px 12px 150px!important;
  }
  .pos-invoice-panel{
    grid-area:invoice!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .pos-category-rail{
    grid-area:categories!important;
    height:min(58vh,560px)!important;
    max-height:min(58vh,560px)!important;
    position:sticky!important;
    top:8px!important;
  }
  .pos-product-zone{
    grid-area:products!important;
    height:min(58vh,560px)!important;
    max-height:min(58vh,560px)!important;
  }
  .pos-products{
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;
  }
  .pos-bottom-bar{
    flex-wrap:wrap!important;
    align-content:flex-start!important;
    justify-content:flex-start!important;
  }
  .payable-box{
    order:-1!important;
    flex:1 1 280px!important;
    margin:0!important;
  }
  .pos-bottom-bar button{
    flex:1 1 112px!important;
  }
}
@media(max-width:760px){
  .pos-terminal{
    display:block!important;
    padding-bottom:0!important;
  }
  .pos-topbar{
    position:sticky!important;
    top:0!important;
    z-index:70!important;
    padding:8px!important;
  }
  .pos-location{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    justify-content:stretch!important;
    white-space:normal!important;
  }
  .pos-location span{
    grid-column:1/-1!important;
    text-align:center!important;
  }
  .pos-status-actions{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .pos-status-actions button,
  .pos-status-actions a,
  .pos-pill.online{
    width:100%!important;
    justify-content:center!important;
    text-align:center!important;
    min-height:34px!important;
  }
  .pos-workspace{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-areas:
      "invoice"
      "categories"
      "products"!important;
    gap:10px!important;
    padding:10px 8px 12px!important;
  }
  .pos-invoice-panel{
    padding:12px!important;
    border-radius:12px!important;
  }
  .pos-input-row{
    grid-template-columns:minmax(0,1fr) 38px!important;
    gap:8px!important;
  }
  .scan-box{
    grid-column:1/-2!important;
  }
  .pos-options-row,
  .invoice-totals{
    grid-template-columns:1fr!important;
  }
  .pos-cart-shell{
    min-height:220px!important;
    max-height:42vh!important;
  }
  .pos-cart-table{
    min-width:620px!important;
  }
  .pos-category-rail{
    display:flex!important;
    gap:8px!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    position:static!important;
    padding:8px!important;
    border-right:0!important;
    scroll-snap-type:x proximity!important;
  }
  .category-pill{
    flex:0 0 auto!important;
    min-width:132px!important;
    height:38px!important;
    scroll-snap-align:start!important;
    text-align:center!important;
    justify-content:center!important;
  }
  .pos-product-zone{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding:8px!important;
  }
  .pos-products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  button.pos-product-card:not(.secondary):not(.ghost):not(.danger):not(.disabled),
  .pos-terminal button.pos-product-card:not(.secondary):not(.ghost):not(.danger):not(.disabled){
    min-height:166px!important;
    padding:9px 7px!important;
    grid-template-rows:76px auto auto auto!important;
  }
  .pos-terminal .pos-product-image{
    height:76px!important;
  }
  .stock-badge,
  .pos-terminal .stock-badge{
    left:7px!important;
    top:6px!important;
    font-size:10px!important;
    padding:4px 6px!important;
  }
  .pos-bottom-bar{
    position:sticky!important;
    left:auto!important;
    right:auto!important;
    bottom:0!important;
    z-index:60!important;
    margin:8px!important;
    border-radius:14px!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    padding:8px!important;
  }
  .payable-box{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
  }
  .pos-bottom-bar button{
    width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    padding:7px 6px!important;
    font-size:11px!important;
  }
}
@media(max-width:430px){
  .pos-status-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .pos-products{
    grid-template-columns:1fr 1fr!important;
  }
  button.pos-product-card:not(.secondary):not(.ghost):not(.danger):not(.disabled),
  .pos-terminal button.pos-product-card:not(.secondary):not(.ghost):not(.danger):not(.disabled){
    min-height:154px!important;
  }
  .pos-product-card b{
    font-size:11px!important;
  }
  .pos-bottom-bar{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
.pos-notice-card{
  max-width:520px!important;
  margin:6px auto!important;
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr) auto!important;
  gap:16px!important;
  align-items:center!important;
  background:#fff!important;
  border:1px solid #bfdbfe!important;
  border-left:5px solid #007FFF!important;
  border-radius:14px!important;
  padding:18px!important;
  box-shadow:0 18px 38px rgba(15,23,42,.12)!important;
}
.pos-notice-icon{
  width:46px!important;
  height:46px!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  background:#E6F3FF!important;
  color:#007FFF!important;
  font-size:23px!important;
  font-weight:950!important;
  font-family:Georgia,serif!important;
}
.pos-notice-copy{
  display:grid!important;
  gap:5px!important;
  min-width:0!important;
}
.pos-notice-copy b{
  color:#334155!important;
  font-size:13px!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}
.pos-notice-copy strong{
  color:#007FFF!important;
  font-size:30px!important;
  line-height:1!important;
  font-weight:950!important;
}
.pos-notice-close{
  min-width:92px!important;
  min-height:38px!important;
  border-radius:999px!important;
  background:#007FFF!important;
  color:#fff!important;
  border:1px solid #006DDB!important;
  box-shadow:0 8px 18px rgba(0,127,255,.18)!important;
}
@media(max-width:620px){
  .pos-notice-card{
    grid-template-columns:44px minmax(0,1fr)!important;
  }
  .pos-notice-close{
    grid-column:1/-1!important;
    width:100%!important;
  }
}
[hidden]{display:none!important}
.pos-status-actions .pos-icon-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-width:auto!important;
  white-space:nowrap!important;
}
.pos-status-actions .pos-icon-action span{
  display:inline-grid!important;
  place-items:center!important;
  min-width:18px!important;
  height:18px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.78)!important;
  color:#0059B3!important;
  font-size:11px!important;
  font-weight:950!important;
}
.pos-profit-window{
  display:grid!important;
  gap:12px!important;
  padding:0!important;
}
.pos-modal:has(.pos-profit-window){
  width:min(1360px,calc(100vw - 28px))!important;
  max-height:calc(100vh - 28px)!important;
  border-radius:8px!important;
  background:#fff!important;
}
.pos-modal:has(.pos-profit-window) header{
  min-height:50px!important;
  padding:11px 18px!important;
  background:#fff!important;
  border-bottom:1px solid #eef2f6!important;
}
.pos-modal:has(.pos-profit-window) .modal-kicker{
  display:none!important;
}
.pos-modal:has(.pos-profit-window) h3{
  color:#2d2c5f!important;
  font-size:20px!important;
  font-weight:650!important;
}
.pos-modal:has(.pos-profit-window) header button{
  background:transparent!important;
  color:#c5c9cf!important;
  border:0!important;
  box-shadow:none!important;
  font-size:26px!important;
}
.pos-modal:has(.pos-profit-window) .pos-modal-body{
  padding:12px 16px 0!important;
  background:#fff!important;
}
.pos-profit-date{
  justify-self:start!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  padding:3px 9px!important;
  border-radius:999px!important;
  background:#eef7ff!important;
  color:#0f4f8c!important;
  font-size:11px!important;
  font-weight:900!important;
}
.pos-profit-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
}
.pos-profit-card{
  display:grid!important;
  gap:0!important;
  background:#fff!important;
  border:0!important;
  border-radius:8px!important;
  padding:14px 18px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.04)!important;
}
.pos-profit-row{
  display:grid!important;
  grid-template-columns:1.3fr .9fr!important;
  gap:0!important;
  align-items:stretch!important;
  min-height:34px!important;
  padding:0!important;
  border-bottom:0!important;
}
.pos-profit-row:nth-child(odd){
  background:transparent!important;
}
.pos-profit-row:last-child{
  border-bottom:0!important;
}
.pos-profit-row span{
  display:grid!important;
  align-content:center!important;
  gap:2px!important;
  min-width:0!important;
  padding:5px 10px!important;
  background:#fbfbfb!important;
}
.pos-profit-row b{
  color:#333!important;
  font-size:12px!important;
  font-weight:900!important;
}
.pos-profit-row small{
  color:#777!important;
  font-size:9px!important;
  font-weight:750!important;
}
.pos-profit-row strong{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:5px 10px!important;
  border-top:1px solid #d5dde6!important;
  color:#3d3d3d!important;
  font-size:12px!important;
  font-weight:500!important;
  white-space:nowrap!important;
}
.pos-profit-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  background:#fff!important;
  border:0!important;
  border-radius:8px!important;
  padding:15px 18px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.04)!important;
}
.pos-profit-summary div{
  display:grid!important;
  gap:4px!important;
}
.pos-profit-summary span{
  color:#777!important;
  font-size:13px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  text-transform:none!important;
  line-height:1.1!important;
}
.pos-profit-summary b{
  color:#0f4f8c!important;
  font-size:22px!important;
  font-weight:800!important;
  line-height:1.1!important;
  order:1!important;
}
.pos-profit-summary small{
  color:#666!important;
  font-size:10px!important;
  line-height:1.25!important;
  order:2!important;
}
.pos-profit-actions{
  justify-content:flex-end!important;
  padding:12px 0 14px!important;
  border-top:1px solid #eef2f6!important;
}
.pos-profit-actions button{
  min-width:90px!important;
  border-radius:16px!important;
  background:#3d7f1e!important;
  border:2px solid #d9e2d3!important;
  color:#fff!important;
}
.pos-return-lookup{
  max-width:420px!important;
  display:grid!important;
  gap:14px!important;
  background:#fff!important;
  border:1px solid #bfdbfe!important;
  border-top:4px solid #007FFF!important;
  border-radius:14px!important;
  padding:22px!important;
  box-shadow:0 18px 34px rgba(15,23,42,.10)!important;
}
.pos-return-lookup label{
  display:grid!important;
  gap:7px!important;
  color:#2d2c5f!important;
  font-weight:850!important;
}
.pos-return-lookup input{
  height:46px!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  padding:0 13px!important;
  font-size:16px!important;
}
.pos-return-lookup button{
  width:max-content!important;
  min-width:118px!important;
  justify-self:center!important;
  border-radius:999px!important;
  padding:12px 22px!important;
  background:#007FFF!important;
  color:#fff!important;
  border:1px solid #006DDB!important;
  font-weight:900!important;
}
.pos-return-lookup small{
  color:#64748b!important;
  text-align:center!important;
  font-size:12px!important;
}
.sales-return-shell{
  border-top:4px solid #007FFF!important;
}
.sales-return-parent{
  display:grid!important;
  grid-template-columns:1.1fr 1.4fr 1fr auto!important;
  gap:14px!important;
  margin-bottom:22px!important;
}
.sales-return-parent div{
  display:grid!important;
  gap:4px!important;
  background:#f8fbff!important;
  border:1px solid #d7e8f8!important;
  border-radius:10px!important;
  padding:14px!important;
}
.sales-return-parent span{
  color:#64748b!important;
  font-size:11px!important;
  text-transform:uppercase!important;
  font-weight:900!important;
}
.sales-return-parent b{
  color:#111827!important;
  font-size:15px!important;
}
.sales-return-parent small{
  color:#64748b!important;
}
.sales-return-fields{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:18px!important;
  margin-bottom:18px!important;
}
.sales-return-fields label,
.sales-return-footer label{
  display:grid!important;
  gap:7px!important;
  color:#263747!important;
  font-weight:850!important;
}
.sales-return-fields input,
.sales-return-footer input,
.sales-return-footer select,
.sales-return-table input{
  border:1px solid #cbd5e1!important;
  border-radius:7px!important;
  min-height:38px!important;
  padding:8px 10px!important;
  background:#fff!important;
}
.sales-return-table-wrap{
  border:1px solid #dbe6f0!important;
  border-radius:10px!important;
  overflow:auto!important;
}
.sales-return-table{
  min-width:900px!important;
}
.sales-return-table th{
  background:#007FFF!important;
  color:#fff!important;
  border-color:#007FFF!important;
}
.sales-return-table td{
  vertical-align:middle!important;
}
.sales-return-table td:nth-child(2){
  min-width:260px!important;
}
.sales-return-table td:nth-child(2) b,
.sales-return-table td:nth-child(2) small{
  display:block!important;
}
.sales-return-table td:nth-child(2) small{
  color:#64748b!important;
  margin-top:3px!important;
}
.sales-return-footer{
  display:grid!important;
  grid-template-columns:1fr 1fr minmax(280px,.8fr)!important;
  gap:18px!important;
  align-items:start!important;
  margin-top:20px!important;
}
.sales-return-totals{
  display:grid!important;
  gap:7px!important;
  justify-items:end!important;
  color:#334155!important;
}
.sales-return-totals strong{
  font-size:16px!important;
  color:#111827!important;
}
.form-error{
  margin-bottom:14px!important;
  padding:10px 12px!important;
  border-radius:8px!important;
  background:#fee2e2!important;
  color:#991b1b!important;
  font-weight:800!important;
}
@media(max-width:900px){
  .pos-profit-grid,
  .sales-return-parent,
  .sales-return-fields,
  .sales-return-footer{
    grid-template-columns:1fr!important;
  }
  .pos-profit-card{
    padding:12px!important;
  }
  .pos-profit-summary{
    grid-template-columns:1fr!important;
    padding:14px!important;
  }
  .pos-profit-summary b{
    font-size:20px!important;
  }
  .pos-profit-summary span{
    font-size:12px!important;
  }
  .sales-return-totals{
    justify-items:start!important;
  }
}
@media(max-width:560px){
  .pos-status-actions .pos-icon-action{
    flex:1 1 calc(50% - 6px)!important;
  }
  .pos-profit-summary b{
    font-size:18px!important;
  }
  .pos-profit-summary span{
    font-size:11px!important;
  }
  .pos-profit-row{
    grid-template-columns:1fr!important;
    min-height:0!important;
  }
  .pos-profit-row strong{
    border-top:0!important;
    justify-content:flex-start!important;
    padding-top:0!important;
  }
  .pos-return-lookup{
    max-width:none!important;
    padding:16px!important;
  }
  .pos-return-lookup button{
    width:100%!important;
  }
}
.pos-topbar{
  grid-template-columns:minmax(300px,.8fr) minmax(220px,auto) minmax(390px,1fr)!important;
  column-gap:10px!important;
  padding:6px 10px!important;
}
.pos-location{
  display:grid!important;
  grid-template-columns:auto minmax(130px,210px) auto!important;
  gap:7px!important;
  align-items:center!important;
  min-width:0!important;
}
.pos-location b{
  white-space:nowrap!important;
}
.pos-location select{
  width:100%!important;
  min-width:0!important;
  max-width:210px!important;
  height:30px!important;
  padding:3px 8px!important;
  font-size:12px!important;
}
.pos-location #posClock{
  min-width:max-content!important;
  color:#475569!important;
  font-size:12px!important;
  font-weight:800!important;
}
.pos-topbar .invoice-chip{
  min-width:260px!important;
  max-width:320px!important;
  min-height:30px!important;
  padding:6px 11px!important;
  font-size:12px!important;
}
.pos-status-actions{
  flex-wrap:nowrap!important;
  justify-content:flex-end!important;
  min-width:0!important;
  gap:5px!important;
}
.pos-pill.online{
  flex:0 0 auto!important;
  min-height:28px!important;
  padding:5px 9px!important;
  font-size:10px!important;
}
.pos-status-actions .pos-icon-action{
  position:relative!important;
  flex:0 0 auto!important;
  width:42px!important;
  height:34px!important;
  min-height:34px!important;
  min-width:42px!important;
  padding:3px!important;
  border-radius:999px!important;
  gap:0!important;
  font-size:10px!important;
  line-height:1!important;
}
.pos-status-actions .pos-icon-action b{
  display:none!important;
}
.pos-status-actions .pos-icon-action span{
  min-width:26px!important;
  width:26px!important;
  height:26px!important;
  background:#fff!important;
  color:#007FFF!important;
  border-radius:999px!important;
  font-size:15px!important;
  box-shadow:inset 0 0 0 1px rgba(0,127,255,.24)!important;
}
.pos-status-actions .pos-pay-action{
  background:#0f9f8b!important;
  border-color:#0d8776!important;
  color:#fff!important;
}
.pos-status-actions .pos-pay-action span{
  color:#0f9f8b!important;
}
.pos-status-actions .pos-hold-action{
  background:#f59e0b!important;
  border-color:#d97706!important;
}
.pos-status-actions .pos-hold-action span{
  color:#b45309!important;
}
.pos-status-actions .pos-expense-action{
  background:#4f8f22!important;
  border-color:#3f741b!important;
}
.pos-status-actions .pos-expense-action span{
  color:#3f741b!important;
}
.pos-status-actions .pos-profit-action{
  background:#f43f5e!important;
  border-color:#e11d48!important;
}
.pos-status-actions .pos-profit-action span{
  color:#e11d48!important;
  font-size:18px!important;
}
.pos-status-actions .pos-back-action{
  background:#f43f5e!important;
  border-color:#e11d48!important;
}
.pos-status-actions .pos-back-action span{
  color:#e11d48!important;
  font-size:19px!important;
}
.pos-status-actions .pos-return-action span{
  font-size:18px!important;
  color:#fff!important;
  background:transparent!important;
  box-shadow:none!important;
}
.pos-status-actions .pos-calc-action span{
  background:#d9f1aa!important;
  color:#263747!important;
  font-size:16px!important;
}
.pos-status-actions .pos-return-action{
  background:#f43f5e!important;
  border-color:#e11d48!important;
}
.pos-status-actions .pos-calc-action{
  background:#0f8f81!important;
  border-color:#0b756a!important;
}
.pos-status-actions .pos-icon-action[data-tooltip]::after{
  content:attr(data-tooltip);
  position:absolute;
  left:50%;
  top:calc(100% + 9px);
  transform:translateX(-50%) translateY(-3px);
  opacity:0;
  pointer-events:none;
  white-space:nowrap;
  background:#007FFF;
  color:#fff;
  border-radius:7px;
  padding:6px 8px;
  font-size:11px;
  font-weight:800;
  box-shadow:0 10px 22px rgba(0,127,255,.28);
  transition:opacity .12s ease, transform .12s ease;
  z-index:100;
}
.pos-status-actions .pos-icon-action[data-tooltip]:hover::after{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
.pos-calculator{
  width:min(300px,92vw)!important;
  margin:0 auto!important;
  display:grid!important;
  gap:12px!important;
  background:#263747!important;
  border-radius:18px!important;
  padding:16px!important;
  box-shadow:0 20px 42px rgba(15,23,42,.22)!important;
}
.pos-calculator-display{
  min-height:58px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  padding:8px 14px!important;
  border-radius:10px!important;
  background:#b8dd82!important;
  color:#2f4f31!important;
  font-size:28px!important;
  font-weight:800!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
.pos-calculator-keys{
  display:grid!important;
  grid-template-columns:repeat(4,1fr)!important;
  gap:9px!important;
}
.pos-calculator-keys button,
.pos-calculator-close{
  min-height:42px!important;
  border-radius:10px!important;
  border:0!important;
  background:#f8fafc!important;
  color:#1f2937!important;
  font-size:18px!important;
  font-weight:900!important;
  box-shadow:0 2px 0 rgba(0,0,0,.16)!important;
}
.pos-calculator-keys button:hover,
.pos-calculator-close:hover{
  background:#e6f3ff!important;
  color:#0059B3!important;
}
.pos-calculator-keys .equals{
  grid-row:span 2!important;
  background:#ef4444!important;
  color:#fff!important;
}
.pos-calculator-keys .zero{
  grid-column:span 2!important;
}
.pos-calculator-close{
  background:#007FFF!important;
  color:#fff!important;
  width:100%!important;
}
.pos-cart-table .cart-price{
  width:92px!important;
  min-height:32px!important;
  border:1px solid #cbd5e1!important;
  border-radius:7px!important;
  padding:5px 7px!important;
  text-align:right!important;
  font-weight:800!important;
  background:#fff!important;
  color:#111827!important;
}
.pos-due-table button{
  min-width:72px!important;
}
@media(max-width:1320px){
  .pos-topbar{
    grid-template-columns:minmax(260px,.75fr) minmax(205px,auto) minmax(350px,1fr)!important;
  }
  .pos-location{
    grid-template-columns:auto minmax(110px,170px) auto!important;
  }
  .pos-location select{
    max-width:170px!important;
  }
  .pos-status-actions .pos-icon-action b{
    display:none!important;
  }
  .pos-status-actions .pos-icon-action{
    padding:5px!important;
  }
}
@media(max-width:1040px){
  .pos-topbar{
    grid-template-columns:1fr auto!important;
    row-gap:6px!important;
  }
  .pos-location{
    grid-column:1/2!important;
  }
  .pos-topbar .invoice-chip{
    grid-column:1/2!important;
    justify-self:start!important;
  }
  .pos-status-actions{
    grid-column:2/3!important;
    grid-row:1/3!important;
    align-self:center!important;
    flex-wrap:wrap!important;
    max-width:220px!important;
  }
}
@media(max-width:760px){
  .pos-topbar{
    grid-template-columns:1fr!important;
  }
  .pos-location{
    grid-template-columns:auto minmax(0,1fr)!important;
  }
  .pos-location #posClock{
    grid-column:1/-1!important;
  }
  .pos-status-actions{
    grid-column:auto!important;
    grid-row:auto!important;
    max-width:none!important;
    justify-content:flex-start!important;
  }
  .pos-status-actions .pos-icon-action b{
    display:none!important;
  }
}

/* Unified Action menu styling across sales, purchases, reports, contacts, products, and settings. */
.action-menu summary,
.floating-action-menu summary,
.floating-action-menu[open] summary,
.purchase-action-menu summary,
.purchase-action-menu[open] summary,
.report-action-menu summary,
.report-action-menu[open] summary,
.product-action-menu summary,
.product-action-menu[open] summary,
.list-action-menu summary,
.list-action-menu[open] summary{
  background:#007FFF!important;
  border:1px solid #006DDB!important;
  color:#fff!important;
  box-shadow:0 3px 8px rgba(0,127,255,.16)!important;
}
.action-menu summary:hover,
.floating-action-menu summary:hover,
.floating-action-menu[open] summary:hover,
.purchase-action-menu summary:hover,
.report-action-menu summary:hover,
.product-action-menu summary:hover,
.list-action-menu summary:hover{
  background:#006DDB!important;
  border-color:#005CB8!important;
  color:#fff!important;
}
.action-menu .action-menu-panel,
.floating-action-menu .action-menu-panel,
.purchase-action-menu .action-menu-panel,
.report-action-menu .action-menu-panel,
.product-action-menu .action-menu-panel,
.list-action-menu .action-menu-panel{
  background:#fff!important;
  border:1px solid #dbe6f2!important;
  border-top:1px solid #dbe6f2!important;
  box-shadow:0 12px 26px rgba(15,23,42,.14)!important;
}
.action-menu-panel .contact-action-item,
.action-menu-panel a.contact-action-item,
.action-menu-panel button.contact-action-item,
.purchase-action-menu .contact-action-item,
.report-action-menu .contact-action-item,
.product-action-menu .contact-action-item,
.list-action-menu .contact-action-item{
  background:#fff!important;
  color:#1f2f46!important;
  border-left:0!important;
  box-shadow:none!important;
}
.action-menu-panel .contact-action-item:hover,
.action-menu-panel a.contact-action-item:hover,
.action-menu-panel button.contact-action-item:hover,
.purchase-action-menu .contact-action-item:hover,
.report-action-menu .contact-action-item:hover,
.product-action-menu .contact-action-item:hover,
.list-action-menu .contact-action-item:hover{
  background:#E6F3FF!important;
  color:#0059B3!important;
}
.action-menu-panel .action-icon,
.purchase-action-menu .action-icon,
.report-action-menu .action-icon,
.product-action-menu .action-icon,
.list-action-menu .action-icon{
  color:#0059B3!important;
}
details.action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled),
details.floating-action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled),
details.purchase-action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled),
details.report-action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled),
details.product-action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled),
details.list-action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled){
  background:#fff!important;
  color:#1f2f46!important;
  border:0!important;
  border-left:0!important;
  box-shadow:none!important;
}
details.action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
details.floating-action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
details.purchase-action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
details.report-action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
details.product-action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
details.list-action-menu .action-menu-panel button.contact-action-item:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{
  background:#E6F3FF!important;
  color:#0059B3!important;
}
.pos-modal .recent-tabs{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  padding:0 16px!important;
  background:#f8fbff!important;
  border-bottom:1px solid #d8e3ef!important;
}
.pos-modal .recent-tabs button,
.pos-modal .recent-tab{
  height:42px!important;
  min-height:42px!important;
  padding:0 12px!important;
  border-radius:0!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  background:#f8fbff!important;
  color:#334155!important;
  box-shadow:none!important;
  font-size:14px!important;
  font-weight:850!important;
  letter-spacing:0!important;
}
.pos-modal .recent-tabs button.active,
.pos-modal .recent-tab.active{
  background:#eef6fd!important;
  color:#0059B3!important;
  border-bottom-color:#007FFF!important;
}
.pos-modal .recent-transactions-table{
  border-spacing:0 5px!important;
  min-width:860px;
}
.pos-modal .held-transactions-table{
  min-width:780px;
}
.pos-modal .recent-transactions-table th{
  padding:0 8px 2px!important;
  font-size:10px!important;
  letter-spacing:.04em!important;
}
.pos-modal .recent-transactions-table td{
  padding:7px 8px!important;
  font-size:12px!important;
  line-height:1.25!important;
}
.pos-modal .recent-transactions-table .recent-invoice-number{
  font-weight:850!important;
  color:#111827!important;
  white-space:nowrap;
}
.pos-modal .recent-transactions-table td b{
  font-size:13px!important;
}
.pos-modal .recent-transactions-table .recent-due-amount{
  color:#991b1b!important;
  font-weight:900!important;
}
.pos-modal .recent-actions{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.pos-modal .recent-actions a,
.pos-modal .recent-actions button{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  font-size:14px!important;
  text-decoration:none!important;
}
.pos-modal .recent-actions .recent-icon-action{
  background:#eef7ff!important;
  color:#0059B3!important;
  border:1px solid #8FC7FF!important;
}
.pos-modal .recent-actions .recent-icon-action svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.pos-modal .recent-actions .recent-pay-action{
  width:auto!important;
  min-width:46px!important;
  padding:0 10px!important;
  background:#007FFF!important;
  color:#fff!important;
  border-color:#006DDB!important;
  font-size:12px!important;
  font-weight:900!important;
}
.pos-modal .recent-actions .recent-order-action,
.pos-modal .recent-actions .recent-edit-action{
  width:auto!important;
  min-width:58px!important;
  padding:0 11px!important;
  background:#007FFF!important;
  color:#fff!important;
  border-color:#006DDB!important;
  font-size:12px!important;
  font-weight:900!important;
}
.pos-modal .recent-actions .recent-edit-action{
  background:#eef7ff!important;
  color:#0059B3!important;
  border-color:#8FC7FF!important;
}
.recent-payment-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  min-height:22px;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:850;
  border:1px solid transparent;
  white-space:nowrap;
}
.recent-payment-paid{
  background:#dcfce7;
  color:#166534;
  border-color:#bbf7d0;
}
.recent-payment-due{
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}
.recent-payment-partial{
  background:#fef3c7;
  color:#92400e;
  border-color:#fde68a;
}
.pos-terminal .pos-topbar{
  display:grid!important;
  grid-template-columns:minmax(560px,1.18fr) minmax(340px,420px) minmax(420px,.92fr)!important;
  grid-template-areas:"location invoice actions"!important;
  align-items:center!important;
  gap:12px!important;
  min-height:58px!important;
  padding:9px 14px!important;
  background:#f8fbff!important;
  border-bottom:1px solid #cfdeec!important;
  box-shadow:0 3px 10px rgba(15,23,42,.08)!important;
}
.pos-terminal .pos-location{
  grid-area:location!important;
  display:grid!important;
  grid-template-columns:auto 220px auto!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
  width:max-content!important;
  max-width:100%!important;
  justify-self:start!important;
}
.pos-terminal .pos-location b{
  color:#1e293b!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  white-space:nowrap!important;
}
.pos-terminal .pos-location select{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:34px!important;
  padding:0 10px!important;
  border:1px solid #c9d8e8!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#172033!important;
  font-size:12px!important;
  font-weight:800!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}
.pos-terminal .pos-location #posClock{
  color:#475569!important;
  font-size:12px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
.pos-terminal .pos-topbar .invoice-chip{
  grid-area:invoice!important;
  justify-self:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:34px!important;
  padding:7px 12px!important;
  border-radius:10px!important;
  background:#007FFF!important;
  color:#fff!important;
  border:1px solid #006DDB!important;
  box-shadow:0 5px 12px rgba(0,127,255,.16)!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.pos-terminal .pos-topbar .invoice-chip b{
  color:#fff!important;
  margin-left:4px!important;
  font-weight:950!important;
}
.pos-terminal .pos-status-actions{
  grid-area:actions!important;
  justify-self:end!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  gap:7px!important;
  min-width:0!important;
}
.pos-terminal .pos-pill.online{
  height:34px!important;
  min-height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  padding:0 11px!important;
  border-radius:999px!important;
  background:#e8f7f2!important;
  color:#0f766e!important;
  border:1px solid #bfe7dc!important;
  font-size:11px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
}
.pos-terminal .pos-status-actions .pos-icon-action,
.pos-terminal .pos-status-actions a.pos-icon-action{
  position:relative!important;
  width:36px!important;
  height:34px!important;
  min-width:36px!important;
  min-height:34px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#0f4f8c!important;
  border:1px solid #c9d8e8!important;
  box-shadow:0 2px 6px rgba(15,23,42,.08)!important;
  text-decoration:none!important;
}
.pos-terminal .pos-status-actions .pos-icon-action:hover,
.pos-terminal .pos-status-actions a.pos-icon-action:hover{
  background:#007FFF!important;
  color:#fff!important;
  border-color:#006DDB!important;
  box-shadow:0 6px 14px rgba(0,127,255,.18)!important;
}
.pos-terminal .pos-status-actions .pos-icon-action span{
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  background:transparent!important;
  color:inherit!important;
  border-radius:0!important;
  box-shadow:none!important;
  font-size:17px!important;
  line-height:1!important;
}
.pos-terminal .pos-status-actions .pos-icon-action b{
  display:none!important;
}
.pos-terminal .pos-status-actions .pos-icon-action[data-tooltip]::after{
  top:calc(100% + 8px)!important;
  background:#007FFF!important;
  color:#fff!important;
}
.product-list-card nav[role="navigation"],
.stock-list-card nav[role="navigation"],
.contacts-list-card nav[role="navigation"],
.purchase-list-card nav[role="navigation"],
.report-list-card nav[role="navigation"]{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-top:14px!important;
  color:#64748b!important;
  font-size:12px!important;
}
.product-list-card nav[role="navigation"] > div:first-child,
.stock-list-card nav[role="navigation"] > div:first-child,
.contacts-list-card nav[role="navigation"] > div:first-child,
.purchase-list-card nav[role="navigation"] > div:first-child,
.report-list-card nav[role="navigation"] > div:first-child{
  display:none!important;
}
.product-list-card nav[role="navigation"] > div:last-child,
.stock-list-card nav[role="navigation"] > div:last-child,
.contacts-list-card nav[role="navigation"] > div:last-child,
.purchase-list-card nav[role="navigation"] > div:last-child,
.report-list-card nav[role="navigation"] > div:last-child{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
}
.product-list-card nav[role="navigation"] p,
.stock-list-card nav[role="navigation"] p,
.contacts-list-card nav[role="navigation"] p,
.purchase-list-card nav[role="navigation"] p,
.report-list-card nav[role="navigation"] p{
  margin:0!important;
  color:#64748b!important;
  font-size:12px!important;
}
.product-list-card nav[role="navigation"] p span,
.stock-list-card nav[role="navigation"] p span,
.contacts-list-card nav[role="navigation"] p span,
.purchase-list-card nav[role="navigation"] p span,
.report-list-card nav[role="navigation"] p span{
  display:inline!important;
  min-width:0!important;
  height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  font-size:inherit!important;
  font-weight:900!important;
  line-height:inherit!important;
  box-shadow:none!important;
}
.product-list-card nav[role="navigation"] a,
.product-list-card nav[role="navigation"] span,
.stock-list-card nav[role="navigation"] a,
.stock-list-card nav[role="navigation"] span,
.contacts-list-card nav[role="navigation"] a,
.contacts-list-card nav[role="navigation"] span,
.purchase-list-card nav[role="navigation"] a,
.purchase-list-card nav[role="navigation"] span,
.report-list-card nav[role="navigation"] a,
.report-list-card nav[role="navigation"] span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:32px!important;
  height:32px!important;
  padding:0 10px!important;
  border:1px solid #d7e2ee!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#263747!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}
.product-list-card nav[role="navigation"] a:hover,
.stock-list-card nav[role="navigation"] a:hover,
.contacts-list-card nav[role="navigation"] a:hover,
.purchase-list-card nav[role="navigation"] a:hover,
.report-list-card nav[role="navigation"] a:hover{
  background:#eef7ff!important;
  border-color:#9dccf5!important;
  color:#0f4f8c!important;
}
.product-list-card nav[role="navigation"] span[aria-current] span,
.stock-list-card nav[role="navigation"] span[aria-current] span,
.contacts-list-card nav[role="navigation"] span[aria-current] span,
.purchase-list-card nav[role="navigation"] span[aria-current] span,
.report-list-card nav[role="navigation"] span[aria-current] span{
  background:#007FFF!important;
  border-color:#007FFF!important;
  color:#fff!important;
}
.product-list-card nav[role="navigation"] svg,
.stock-list-card nav[role="navigation"] svg,
.contacts-list-card nav[role="navigation"] svg,
.purchase-list-card nav[role="navigation"] svg,
.report-list-card nav[role="navigation"] svg{
  width:14px!important;
  height:14px!important;
  display:block!important;
  flex:0 0 14px!important;
}
.product-list-card nav[role="navigation"] [aria-disabled="true"] span,
.stock-list-card nav[role="navigation"] [aria-disabled="true"] span,
.contacts-list-card nav[role="navigation"] [aria-disabled="true"] span,
.purchase-list-card nav[role="navigation"] [aria-disabled="true"] span,
.report-list-card nav[role="navigation"] [aria-disabled="true"] span{
  color:#94a3b8!important;
  background:#f8fafc!important;
  cursor:not-allowed!important;
}
@media(max-width:1180px){
  .product-filter-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .product-filter-actions{
    grid-column:1/-1;
  }
  .pos-terminal .pos-topbar{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"location actions" "invoice actions"!important;
  }
  .pos-terminal .pos-status-actions{
    justify-self:end!important;
    flex-wrap:wrap!important;
    max-width:260px!important;
  }
}
@media(max-width:760px){
  .product-list-card .section-title{
    display:grid;
  }
  .product-column-tools{
    justify-content:flex-start;
  }
  .product-filter-grid{
    grid-template-columns:1fr;
  }
  .pos-terminal .pos-topbar{
    grid-template-columns:1fr!important;
    grid-template-areas:"location" "invoice" "actions"!important;
  }
  .pos-terminal .pos-location{
    grid-template-columns:auto minmax(0,1fr)!important;
  }
  .pos-terminal .pos-location #posClock,
  .pos-terminal .pos-topbar .invoice-chip{
    grid-column:1/-1!important;
  }
  .pos-terminal .pos-status-actions{
    justify-self:start!important;
    max-width:none!important;
    gap:6px!important;
  }
}

/* Final mobile QA pass: keep the main app usable before packaging. */
@media(max-width:900px){
  html,
  body{
    max-width:100%;
    overflow-x:hidden;
  }
  .shell{
    display:block!important;
    min-height:100vh;
  }
  .sidebar{
    position:fixed!important;
    inset:0 auto 0 0;
    z-index:6000;
    height:100vh;
    max-height:100vh;
    overflow-y:auto;
    transform:translateX(-105%);
    transition:transform .18s ease;
    box-shadow:0 22px 60px rgba(15,23,42,.28)!important;
  }
  body.sidebar-open .sidebar{
    transform:translateX(0);
  }
  body.sidebar-open:before{
    content:"";
    position:fixed;
    inset:0;
    z-index:5990;
    background:rgba(15,23,42,.38);
  }
  .mobile-sidebar-head{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:4px 4px 10px;
  }
  .mobile-sidebar-head b{
    color:#0f4f8c;
    font-size:13px;
    letter-spacing:.04em;
    text-transform:uppercase;
  }
  .mobile-sidebar-head button{
    width:34px;
    height:34px;
    padding:0;
    border-radius:999px;
    background:#eef7ff!important;
    color:#0f4f8c!important;
    border:1px solid #c9dff0!important;
  }
  main{
    width:100%;
    min-width:0;
    padding:12px!important;
  }
  .page-head,
  .section-title,
  .section-title-row,
  .purchase-list-head,
  .stock-hero,
  .stock-list-title{
    display:grid!important;
    grid-template-columns:1fr;
    gap:10px!important;
  }
  .page-head h2,
  .dashboard-head h2,
  .contact-page-head h2{
    font-size:22px!important;
    line-height:1.15!important;
  }
  .card,
  .report-list-card,
  .purchase-list-card,
  .contacts-list-card,
  .product-list-card,
  .stock-list-card{
    padding:14px!important;
    margin-bottom:12px!important;
    border-radius:8px!important;
  }
  .erp-form,
  .contact-form-grid,
  .onboarding-form,
  .product-form,
  .business-settings-form,
  .purchase-filter-grid,
  .report-filter-grid,
  .settings-layout,
  .settings-grid,
  .operation-grid,
  .metrics,
  .module-grid{
    grid-template-columns:1fr!important;
  }
  .erp-form .wide,
  .product-form .wide,
  .form-divider,
  .product-check-row,
  .contact-persons-panel,
  .business-settings-actions{
    grid-column:auto!important;
  }
  .product-check-row{
    grid-template-columns:1fr!important;
  }
  .filter-bar,
  .product-list-card .filter-bar,
  .table-controls-row,
  .purchase-list-tools,
  .report-list-tools,
  .contact-table-tools,
  .stock-list-toolbar{
    display:grid!important;
    grid-template-columns:1fr!important;
    min-width:0!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  .filter-bar .btn,
  .product-list-card .filter-bar .btn,
  .table-controls-row .btn,
  .purchase-list-tools .btn,
  .report-list-tools .btn,
  .contact-table-tools .btn,
  .stock-list-toolbar .btn{
    width:100%;
  }
  .export-tools,
  .purchase-export-tools,
  .report-export-tools,
  .contact-export-tools,
  .stock-export-pills{
    justify-self:stretch!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
  }
  .list-search-input,
  .purchase-list-search,
  .report-search input,
  .contact-search input,
  .stock-list-toolbar input{
    width:100%!important;
    min-width:0!important;
  }
  .table-wrap{
    max-width:100%;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
  .floating-action-menu .action-menu-panel{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    top:auto!important;
    bottom:12px!important;
    width:auto!important;
    max-height:70vh;
    overflow:auto;
  }
  .erp-column-panel,
  .column-visibility div{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    top:84px!important;
    width:auto!important;
    max-height:calc(100vh - 110px)!important;
  }
}

@media(max-width:520px){
  .topbar{
    margin-bottom:12px!important;
  }
  .topbar .actions{
    scrollbar-width:thin;
  }
  .table-controls-row,
  .purchase-list-tools,
  .report-list-tools,
  .contact-table-tools,
  .stock-list-toolbar{
    margin-bottom:14px!important;
  }
  .entries-label{
    justify-content:space-between;
  }
  .entries-label select{
    width:88px!important;
  }
}

/* Final system polish */
:root{
  --primary:#0f6fb5;
  --primary-strong:#0b4f8c;
  --primary-soft:#eaf5ff;
  --ink:#182235;
  --muted:#65758b;
  --line:#d8e3ee;
  --soft:#f3f8fd;
  --shadow:0 12px 30px rgba(18,48,78,.07);
  --font:Aptos,"Segoe UI",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;
}
body{
  font-family:var(--font);
  font-weight:450;
  letter-spacing:0;
  background:linear-gradient(180deg,#f6fbff 0%,#eef4fa 42%,#e9f0f7 100%);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,.page-head h2,.section-title h3,.card h3{
  color:#172033;
  font-family:var(--font);
  font-weight:650!important;
  letter-spacing:0!important;
  line-height:1.16;
}
.page-head h2{font-size:clamp(24px,2.2vw,30px)}
.eyebrow{
  color:var(--primary-strong);
  letter-spacing:.075em!important;
  font-weight:800;
}
input,select,textarea{
  border-color:#d5e0eb;
  border-radius:8px;
  color:#172033;
  background:#fff;
  font-weight:450;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(15,111,181,.13);
}
button:not(.tox button),.btn{
  border-radius:9px;
  background:var(--primary);
  font-weight:750;
  letter-spacing:0;
  box-shadow:none;
  transition:background .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease;
}
button:not(.tox button):hover,.btn:hover{
  background:var(--primary-strong);
  transform:translateY(-1px);
}
.btn.secondary{
  background:#edf4fb!important;
  color:#173b5f!important;
  border:1px solid #cfe0ef;
}
.btn.secondary:hover{background:#dfeefb!important;color:#0b4f8c!important}
.btn.ghost,.app-back-button{
  background:#fff!important;
  color:#173b5f!important;
  border:1px solid #cfe0ef!important;
}
.btn.ghost:hover,.app-back-button:hover{background:#f0f7fd!important;color:#0b4f8c!important}
.card,.module-tile,.secondary-settings-card,.location-settings-card,.business-location-form-card,.user-role-card,.user-editor-card,.user-list-card,.stock-operation-card,.stock-list-card{
  border-color:#d8e5f0;
  box-shadow:0 12px 28px rgba(18,48,78,.055);
}
.topbar{
  border-color:#d8e5f0;
  box-shadow:0 8px 24px rgba(18,48,78,.055);
}
.topbar-title span{
  color:#173b5f;
  font-family:var(--font);
  font-size:19px;
  font-weight:650;
}
.topbar-user-menu{position:relative}
.topbar-user-menu summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:38px;padding:5px 10px;border:1px solid #cfe0ef;border-radius:9px;background:#fff;color:#173b5f;cursor:pointer}
.topbar-user-menu summary::-webkit-details-marker{display:none}
.topbar-user-menu[open] summary{border-color:#9fc9ec;box-shadow:0 0 0 3px rgba(15,111,181,.11)}
.topbar-user-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eaf5ff;color:#0b4f8c;font-weight:850}
.topbar-user-copy{display:grid;line-height:1.05;text-align:left;max-width:180px}
.topbar-user-copy strong,.topbar-user-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-user-copy strong{font-size:12px;color:#172033;font-weight:800}
.topbar-user-copy small{font-size:10px;color:#65758b;font-weight:650}
.topbar-user-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:90;width:210px;padding:8px;border:1px solid #d8e5f0;border-radius:8px;background:#fff;box-shadow:0 18px 40px rgba(18,48,78,.16)}
.topbar-user-panel button{width:100%;padding:9px 10px;border:0;border-radius:7px;background:#f3f8fd!important;color:#173b5f!important;text-align:left;font-size:12px;font-weight:750;box-shadow:none}
.topbar-user-panel button:hover{background:#eaf5ff!important;color:#0b4f8c!important;transform:none}
.topbar-user-panel form{margin-top:6px;padding-top:6px;border-top:1px solid #edf3f8}
.account-password-modal{position:fixed;inset:0;z-index:400;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.48)}
.account-password-modal[hidden]{display:none}
.account-password-card{width:min(440px,100%);border:1px solid #d8e5f0;border-radius:10px;background:#fff;box-shadow:0 28px 70px rgba(15,23,42,.25);padding:18px}
.account-password-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.account-password-head h3{margin:2px 0 0;font-size:22px}
.account-password-head button{width:34px;height:34px;padding:0;border-radius:8px;background:#f3f8fd!important;color:#173b5f!important}
.account-password-form{display:grid;gap:12px}
.account-password-form label{display:grid;gap:6px;color:#334155;font-size:13px;font-weight:750}
.account-password-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
html[dir=rtl] .topbar-user-copy,html[dir=rtl] .topbar-user-panel button{text-align:right}
html[dir=rtl] .topbar-user-panel{right:auto;left:0}
.sidebar{
  background:linear-gradient(180deg,#fbfdff 0%,#f1f7fc 100%);
}
.sidebar a,.sidebar summary{
  color:#42546a;
  font-weight:600;
}
.sidebar a:hover,.sidebar summary:hover,.sidebar details[open] summary{
  background:#eaf5ff;
  color:#0b4f8c;
}
.sidebar a.active,.sidebar details a.active{
  background:#dff0ff;
  color:#083e71!important;
  font-weight:800;
}
th{
  color:#53667c;
  background:#f7fafd;
  font-weight:750;
  letter-spacing:.025em;
}
td{color:#253246}
tr:hover td{background:#f8fbfe}
.table-wrap{
  border-color:#d8e5f0;
  box-shadow:0 8px 20px rgba(18,48,78,.035);
}
.action-menu summary,
.floating-action-menu summary,
.product-action-menu summary,
.report-action-menu summary{
  background:#0f6fb5!important;
  color:#fff!important;
  border:1px solid #0b5f9e;
  border-radius:999px;
  font-weight:800;
  box-shadow:0 6px 14px rgba(15,111,181,.16);
}
.action-menu[open] summary,
.floating-action-menu[open] summary,
.product-action-menu[open] summary,
.report-action-menu[open] summary,
.action-menu summary:hover,
.floating-action-menu summary:hover{
  background:#0b4f8c!important;
  color:#fff!important;
}
.floating-action-menu .action-menu-panel,
.action-menu div,
.report-action-menu .action-menu-panel,
.product-action-menu .action-menu-panel{
  background:#fff!important;
  border:1px solid #d2e2f0!important;
  border-radius:9px!important;
  box-shadow:0 18px 38px rgba(18,48,78,.16)!important;
}
.action-menu-panel .contact-action-item,
.action-menu a,
.action-menu button,
.report-action-menu .contact-action-item,
.product-action-menu .contact-action-item{
  color:#253246!important;
  background:#fff!important;
  border-radius:7px!important;
  font-weight:650!important;
}
.action-menu-panel .contact-action-item:hover,
.action-menu a:hover,
.action-menu button:hover,
.report-action-menu .contact-action-item:hover,
.product-action-menu .contact-action-item:hover{
  background:#edf6ff!important;
  color:#0b4f8c!important;
  transform:none;
}
.erp-column-visibility summary,
.column-visibility summary{
  background:#edf4fb!important;
  color:#173b5f!important;
  border:1px solid #d2e2f0;
  font-weight:700;
}
.erp-column-panel{
  border:1px solid #cfe0ef!important;
  border-radius:9px!important;
  box-shadow:0 18px 38px rgba(18,48,78,.16)!important;
}
.erp-column-panel header{
  color:#173b5f!important;
  border-bottom:1px solid #e2edf6!important;
}
.erp-column-options label{
  border:0!important;
  background:#fff!important;
  color:#253246!important;
  font-weight:650!important;
}
.erp-column-options label:hover{background:#edf6ff!important}
.erp-column-options input{accent-color:var(--primary)}
.business-settings-actions .btn,
.user-form-actions .btn,
.user-management-head .btn,
.stock-hero-actions .btn,
.stock-list-title .btn,
.stock-actions .btn,
.settings-test-action .btn,
.sms-test-row .btn{
  background:var(--primary)!important;
  color:#fff!important;
  border-radius:9px!important;
  box-shadow:0 10px 20px rgba(15,111,181,.16)!important;
}
.business-settings-actions .btn:hover,
.user-form-actions .btn:hover,
.user-management-head .btn:hover,
.stock-hero-actions .btn:hover,
.stock-list-title .btn:hover,
.stock-actions .btn:hover,
.settings-test-action .btn:hover,
.sms-test-row .btn:hover{
  background:var(--primary-strong)!important;
}
.settings-tabs a.active,.settings-tabs button.active{
  background:var(--primary)!important;
}
.settings-tabs a.active::after,.settings-tabs button.active::after{
  border-left-color:var(--primary)!important;
}
.format-card{
  background:#f3f8fd!important;
  color:#173b5f!important;
  border-color:#d8e5f0!important;
  font-weight:650!important;
}
.badge,.mini,.status{
  font-weight:750;
}
.notice{
  background:#edf9f1;
  border-color:#bfe7cc;
  color:#14532d;
}
.error-box{
  background:#fff3f3;
  border-color:#ffd1d1;
}
.location-change-inline,
.document-location-panel{
  display:grid;
  gap:8px;
  min-width:220px;
  padding:10px;
  margin:6px 0;
  border:1px solid #d8e5f0;
  border-radius:9px;
  background:#f8fbff;
}
.location-change-inline b,
.document-location-panel label{
  color:#173b5f;
  font-size:12px;
  font-weight:800;
}
.location-change-inline select,
.location-change-inline textarea,
.document-location-panel select,
.document-location-panel textarea{
  width:100%;
  border:1px solid #cbd8e6;
  border-radius:8px;
  padding:8px 9px;
  background:#fff;
  color:#172033;
  font:inherit;
  font-weight:650;
}
.location-change-inline textarea,
.document-location-panel textarea{
  resize:vertical;
  min-height:48px;
}
.document-location-popover{
  position:relative;
}
.document-location-popover > summary{
  list-style:none;
  cursor:pointer;
}
.document-location-popover > summary::-webkit-details-marker{
  display:none;
}
.document-location-panel{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  z-index:35;
  width:min(340px, 88vw);
  box-shadow:0 18px 45px rgba(15,23,42,.18);
}
.location-change-modal{
  width:min(620px,94vw)!important;
  border-radius:8px!important;
}
.location-change-modal header{
  padding:16px 20px!important;
}
.location-change-modal header h3{
  font-size:22px!important;
  font-weight:750!important;
  color:#172033!important;
}
.location-change-modal .purchase-modal-body{
  padding:18px 20px!important;
}
.location-reminder{
  display:grid;
  gap:4px;
  margin-bottom:14px;
  padding:12px 14px;
  border:1px solid #b9d7f3;
  border-left:4px solid #007fff;
  border-radius:7px;
  background:#f1f8ff;
  color:#23354d;
}
.location-reminder b{
  color:#0f4f8c;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.location-reminder span{
  font-size:12px;
  line-height:1.4;
}
.location-change-summary{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
.location-change-summary>div{
  min-height:64px!important;
  padding:12px 14px!important;
  font-size:12px!important;
  background:#f8fafc!important;
  border-radius:7px!important;
}
.location-change-modal .purchase-modal-form-grid{
  grid-template-columns:1fr!important;
  gap:12px!important;
}
.location-change-modal .purchase-modal-form-grid label{
  font-size:12px!important;
}
.location-change-modal .purchase-modal-form-grid select,
.location-change-modal .purchase-modal-form-grid textarea{
  font-size:13px!important;
}
.location-change-modal .purchase-modal-form-grid textarea{
  min-height:92px!important;
}
.location-change-modal footer{
  padding:14px 20px!important;
}
.location-change-modal footer .btn{
  font-size:13px!important;
  padding:9px 18px!important;
  border-radius:20px!important;
}
.stock-entry-empty{
  padding:14px 16px;
  color:#66758a;
  font-weight:650;
  background:#f8fbff;
  border-bottom:1px solid #e5edf5;
}
.stock-entry-row .stock-delete-icon{
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  border:1px solid #ffd0d0;
  border-radius:8px;
  background:#fff5f5;
  color:#b42318;
  font-size:18px;
  font-weight:800;
  cursor:pointer;
}
.stock-entry-row .stock-delete-icon:hover{
  background:#ffe8e8;
}
.purchase-product-tools{
  grid-template-columns:auto minmax(520px,1fr) auto auto!important;
  align-items:center!important;
}
.purchase-products-card .purchase-search{
  display:grid!important;
  grid-template-columns:42px minmax(220px,1fr) minmax(220px,320px) 42px!important;
  align-items:center!important;
  gap:0!important;
  width:100%!important;
  margin:0!important;
  border:1px solid #cbd8e6!important;
  border-radius:9px!important;
  background:#fff!important;
  overflow:visible!important;
}
.purchase-products-card .purchase-search > span{
  height:38px!important;
  background:#fff!important;
  color:#0f4f8c!important;
  border-right:1px solid #d9e4ef!important;
  border-radius:9px 0 0 9px!important;
}
.purchase-products-card .purchase-search input,
.purchase-products-card .purchase-search select{
  height:38px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#172033!important;
  font-size:13px!important;
  font-weight:650!important;
}
.purchase-products-card .purchase-search select{
  border-left:1px solid #d9e4ef!important;
  color:#43556a!important;
}
.purchase-products-card .purchase-search #purchaseAddProduct,
.purchase-products-card .purchase-search #purchaseReturnAddProduct{
  height:38px!important;
  border:0!important;
  border-left:1px solid #d9e4ef!important;
  border-radius:0 9px 9px 0!important;
  background:#0f7fff!important;
  color:#fff!important;
  font-size:20px!important;
  font-weight:900!important;
  cursor:pointer;
}
.purchase-products-card .purchase-search .search-results{
  grid-column:2 / 5;
  width:auto!important;
  display:none;
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
}
.purchase-products-card .purchase-search .search-results:not(:empty){
  display:grid;
  margin-top:6px!important;
  border:1px solid #d5e8f7!important;
  box-shadow:0 10px 24px rgba(15,79,140,.12)!important;
}
.purchase-products-card .purchase-search .search-results,
.quote-product-search .search-results,
.purchase-return-search .search-results{
  z-index:60!important;
  gap:5px!important;
  padding:6px!important;
  background:#eef6ff!important;
  border:1px solid #9dc7ee!important;
  border-radius:9px!important;
  box-shadow:0 16px 36px rgba(15,79,140,.22)!important;
  max-height:286px!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
.purchase-products-card .purchase-search .search-results button,
.quote-product-search .search-results button,
.purchase-return-search .search-results button{
  width:100%!important;
  min-height:36px!important;
  justify-content:flex-start!important;
  text-align:left!important;
  background:#0f82f5!important;
  color:#fff!important;
  border:1px solid #0a73d6!important;
  border-radius:8px!important;
  box-shadow:none!important;
  padding:8px 10px!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.25!important;
}
.purchase-products-card .purchase-search .search-results button:hover,
.purchase-products-card .purchase-search .search-results button:focus,
.quote-product-search .search-results button:hover,
.quote-product-search .search-results button:focus,
.purchase-return-search .search-results button:hover,
.purchase-return-search .search-results button:focus{
  background:#0874dc!important;
  color:#fff!important;
  outline:2px solid rgba(0,111,223,.18)!important;
  outline-offset:-2px!important;
}
.quote-product-search{
  position:relative!important;
  overflow:visible!important;
}
.quote-product-search .search-results{
  position:absolute!important;
  left:38px!important;
  right:42px!important;
  top:calc(100% + 6px)!important;
  display:none;
  max-height:300px!important;
  overflow:auto!important;
}
.quote-product-search .search-results:not(:empty){
  display:grid!important;
}
.quote-product-search .search-results b,
.purchase-return-search .search-results b{
  display:block!important;
  color:#fff!important;
}
.quote-product-search .search-results small,
.purchase-return-search .search-results small{
  display:block!important;
  color:#d9ecff!important;
  font-size:11px!important;
  font-weight:700!important;
  margin-top:2px!important;
}
.purchase-entry-card .purchase-sections{
  display:grid!important;
  grid-template-columns:minmax(340px,.9fr) minmax(520px,1.4fr)!important;
  gap:14px!important;
  align-items:start!important;
  margin-top:12px!important;
}
.purchase-entry-card .sub-card{
  padding:14px 16px!important;
  margin-top:10px!important;
  border:1px solid #dbe7f2!important;
  border-radius:8px!important;
  background:#fbfdff!important;
  box-shadow:none!important;
}
.purchase-discount-card,
.purchase-shipping-card,
.purchase-payment-card{
  min-height:0!important;
}
.purchase-entry-card .purchase-discount-grid,
.purchase-entry-card .purchase-shipping-grid,
.purchase-entry-card .purchase-payment-grid{
  display:grid!important;
  gap:10px 12px!important;
  align-items:end!important;
}
.purchase-entry-card .purchase-discount-grid{
  grid-template-columns:1fr 1fr!important;
}
.purchase-entry-card .purchase-shipping-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.purchase-entry-card .purchase-payment-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.purchase-entry-card .purchase-payment-grid .wide{
  grid-column:span 2!important;
}
.purchase-entry-card .purchase-discount-grid label,
.purchase-entry-card .purchase-shipping-grid label,
.purchase-entry-card .purchase-payment-grid label{
  gap:4px!important;
  margin:0!important;
  color:#27364a!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.25!important;
}
.purchase-entry-card .purchase-discount-grid input,
.purchase-entry-card .purchase-discount-grid select,
.purchase-entry-card .purchase-discount-grid textarea,
.purchase-entry-card .purchase-shipping-grid input,
.purchase-entry-card .purchase-shipping-grid select,
.purchase-entry-card .purchase-payment-grid input,
.purchase-entry-card .purchase-payment-grid select,
.purchase-entry-card .purchase-payment-grid textarea{
  min-height:32px!important;
  height:32px!important;
  padding:6px 9px!important;
  border:1px solid #ccd9e6!important;
  border-radius:7px!important;
  background:#fff!important;
  font-size:12px!important;
  font-weight:650!important;
}
.purchase-entry-card .purchase-discount-grid textarea,
.purchase-entry-card .purchase-payment-grid textarea{
  height:58px!important;
  min-height:58px!important;
  resize:vertical;
}
.purchase-entry-card .inline-total{
  min-height:32px!important;
  padding:6px 10px!important;
  border:1px solid #e0eaf3!important;
  border-radius:7px!important;
  background:#f4f8fc!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}
.purchase-entry-card .inline-total span{
  color:#607083!important;
  font-size:10px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
}
.purchase-entry-card .inline-total strong{
  color:#173b5f!important;
  font-size:13px!important;
  font-weight:850!important;
}
.purchase-entry-card .purchase-shipping-grid .inline-total,
.purchase-entry-card .purchase-shipping-grid .purchase-total-label{
  grid-column:auto!important;
}
.purchase-entry-card .purchase-shipping-grid .btn{
  height:32px!important;
  padding:6px 10px!important;
  border-radius:8px!important;
  font-size:11px!important;
  box-shadow:none!important;
  white-space:nowrap;
}
.purchase-entry-card .purchase-total-label{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  min-height:32px!important;
  color:#173b5f!important;
  font-size:12px!important;
}
.purchase-payment-card h3{
  margin:0 0 10px!important;
  color:#173b5f!important;
  font-size:15px!important;
  font-weight:800!important;
}
.purchase-entry-card .purchase-payment-grid small{
  display:block!important;
  margin-bottom:2px!important;
  color:#607083!important;
  font-size:10px!important;
  line-height:1.2!important;
}
.purchase-entry-card .purchase-summary{
  position:static!important;
  grid-template-columns:repeat(4,minmax(0,1fr)) auto!important;
  gap:8px!important;
  margin-top:12px!important;
  padding:10px 12px!important;
  border-radius:8px!important;
}
.purchase-entry-card .purchase-summary div{
  gap:1px!important;
}
.purchase-entry-card .purchase-summary span{
  font-size:10px!important;
  line-height:1.2!important;
}
.purchase-entry-card .purchase-summary strong{
  font-size:13px!important;
}
.purchase-form-title-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:12px!important;
}
.purchase-form-title-row .purchase-page-title{
  margin:0!important;
}
.purchase-form-actions{
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
  flex-wrap:wrap!important;
}
.purchase-product-tools{
  grid-template-columns:auto minmax(440px,1fr) auto auto auto!important;
  gap:8px!important;
}
.purchase-product-tools #purchaseSheetColumnTools{
  justify-self:end!important;
}
.purchase-product-tools #purchaseSheetColumnTools .erp-column-visibility summary{
  min-width:auto!important;
  height:30px!important;
  padding:6px 10px!important;
  background:#eef6ff!important;
  color:#173b5f!important;
  border:1px solid #cfe0f1!important;
}
.purchase-entry-card .purchase-table-wrap{
  max-height:420px!important;
}
.purchase-sheet{
  min-width:1420px!important;
  table-layout:fixed!important;
}
.purchase-sheet th,
.purchase-sheet td{
  overflow:hidden!important;
}
.purchase-sheet th:first-child,
.purchase-sheet td:first-child{
  width:270px!important;
}
.purchase-sheet th:nth-child(2),
.purchase-sheet td:nth-child(2){
  width:70px!important;
}
.purchase-sheet th:nth-child(3),
.purchase-sheet td:nth-child(3),
.purchase-sheet th:nth-child(4),
.purchase-sheet td:nth-child(4),
.purchase-sheet th:nth-child(5),
.purchase-sheet td:nth-child(5),
.purchase-sheet th:nth-child(6),
.purchase-sheet td:nth-child(6),
.purchase-sheet th:nth-child(7),
.purchase-sheet td:nth-child(7),
.purchase-sheet th:nth-child(8),
.purchase-sheet td:nth-child(8),
.purchase-sheet th:nth-child(9),
.purchase-sheet td:nth-child(9),
.purchase-sheet th:nth-child(10),
.purchase-sheet td:nth-child(10),
.purchase-sheet th:nth-child(11),
.purchase-sheet td:nth-child(11),
.purchase-sheet th:nth-child(12),
.purchase-sheet td:nth-child(12),
.purchase-sheet th:nth-child(13),
.purchase-sheet td:nth-child(13),
.purchase-sheet th:nth-child(14),
.purchase-sheet td:nth-child(14),
.purchase-sheet th:nth-child(15),
.purchase-sheet td:nth-child(15),
.purchase-sheet th:nth-child(16),
.purchase-sheet td:nth-child(16){
  width:76px!important;
}
.purchase-sheet th:last-child,
.purchase-sheet td:last-child{
  width:56px!important;
}
.purchase-sheet input{
  width:100%!important;
  min-width:0!important;
}
.purchase-sheet .sheet-product{
  min-width:0!important;
  width:270px!important;
}
.purchase-product-line{
  display:grid!important;
  grid-template-columns:minmax(72px,92px) minmax(0,1fr)!important;
  gap:5px!important;
  align-items:center!important;
}
.purchase-product-line .line-product-name{
  height:26px!important;
  min-height:26px!important;
}
.purchase-product-line .purchase-sku-box{
  margin:0!important;
  min-height:26px!important;
  height:26px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.purchase-return-tools.purchase-list-tools{
  grid-template-columns:auto minmax(460px,1fr) 260px!important;
  gap:18px!important;
  align-items:center!important;
  margin-bottom:26px!important;
}
.purchase-return-tools .purchase-export-tools{
  justify-self:center!important;
}
.purchase-return-tools #purchaseReturnColumnTools .erp-table-tools{
  margin:0!important;
}
.purchase-return-tools #purchaseReturnColumnTools .erp-column-visibility summary{
  background:transparent!important;
  color:#333!important;
  padding:7px 8px!important;
  font-size:11px!important;
  box-shadow:none!important;
  border:0!important;
}
.purchase-return-tools #purchaseReturnColumnTools .erp-column-panel{
  right:auto!important;
  left:0!important;
}
.table-controls-row .export-tools{
  justify-self:center!important;
  display:flex!important;
  align-items:center!important;
  background:#eee!important;
  border-radius:18px!important;
  padding:0 7px!important;
  min-height:34px!important;
  gap:0!important;
  white-space:nowrap!important;
}
.table-controls-row .export-tools .btn{
  background:transparent!important;
  color:#333!important;
  border-radius:0!important;
  padding:7px 8px!important;
  font-size:11px!important;
  font-weight:650!important;
  box-shadow:none!important;
  border:0!important;
}
.table-controls-row .export-tools .btn:hover{
  background:#ddeaf5!important;
  color:#0f4f8c!important;
}
.table-controls-row .export-tools .erp-table-tools{
  margin:0!important;
}
.table-controls-row .export-tools .erp-column-visibility summary{
  background:transparent!important;
  color:#333!important;
  padding:7px 8px!important;
  min-width:0!important;
  font-size:11px!important;
  box-shadow:none!important;
  border:0!important;
}
.table-controls-row .export-tools .erp-column-panel{
  right:auto!important;
  left:0!important;
}
.table-controls-row .list-search-input{
  height:36px!important;
  border-radius:0!important;
  background:#eee!important;
  font-size:12px!important;
}
.sales-list-tools.purchase-list-tools{
  grid-template-columns:auto minmax(460px,1fr) 260px!important;
  gap:18px!important;
  align-items:center!important;
  margin-bottom:26px!important;
}
.sales-list-tools .entries-control{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  font-size:12px!important;
  color:#333!important;
  font-weight:400!important;
}
.sales-list-tools .entries-control select{
  height:36px!important;
  width:74px!important;
  border-radius:0!important;
  font-size:12px!important;
  background:#fff!important;
}
.sales-list-tools .purchase-export-tools{
  justify-self:center!important;
  display:flex!important;
  align-items:center!important;
  background:#eee!important;
  border-radius:18px!important;
  padding:0 7px!important;
  min-height:34px!important;
  gap:0!important;
  white-space:nowrap!important;
}
.sales-list-tools .purchase-export-tools button,
.sales-list-tools .purchase-export-tools .btn{
  background:transparent!important;
  color:#333!important;
  border:0!important;
  border-radius:0!important;
  padding:7px 8px!important;
  font-size:11px!important;
  font-weight:650!important;
  line-height:1.2!important;
  box-shadow:none!important;
  min-height:0!important;
}
.sales-list-tools .purchase-export-tools button:hover,
.sales-list-tools .purchase-export-tools .btn:hover{
  background:#ddeaf5!important;
  color:#0f4f8c!important;
}
.sales-list-tools .purchase-export-tools .erp-table-tools{
  margin:0!important;
}
.sales-list-tools .purchase-export-tools .erp-column-visibility summary{
  background:transparent!important;
  color:#333!important;
  border:0!important;
  border-radius:0!important;
  padding:7px 8px!important;
  min-width:0!important;
  font-size:11px!important;
  font-weight:650!important;
  box-shadow:none!important;
}
.sales-list-tools .purchase-export-tools .erp-column-visibility summary:hover{
  background:#ddeaf5!important;
  color:#0f4f8c!important;
}
.sales-list-tools .purchase-list-search{
  height:36px!important;
  border-radius:0!important;
  background:#eee!important;
  font-size:12px!important;
}
/* Laravel's pagination template contains a mobile and desktop version. The
   sales list does not use Tailwind, so give both the desktop controls and SVG
   arrows explicit dimensions and hide the duplicate mobile controls. */
.sales-list-card nav[role="navigation"]{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-top:14px!important;
  color:#64748b!important;
  font-size:12px!important;
}
.sales-list-card nav[role="navigation"] > div:first-child{display:none!important}
.sales-list-card nav[role="navigation"] > div:last-child{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
}
.sales-list-card nav[role="navigation"] p{
  margin:0!important;
  color:#64748b!important;
  font-size:12px!important;
}
.sales-list-card nav[role="navigation"] p span{
  display:inline!important;
  min-width:0!important;
  height:auto!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:inherit!important;
  font-size:inherit!important;
  font-weight:800!important;
  line-height:inherit!important;
  box-shadow:none!important;
}
.sales-list-card nav[role="navigation"] a,
.sales-list-card nav[role="navigation"] span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:32px!important;
  height:32px!important;
  padding:0 10px!important;
  border:1px solid #d7e2ee!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#263747!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}
.sales-list-card nav[role="navigation"] a:hover{
  background:#eef7ff!important;
  border-color:#9dccf5!important;
  color:#0f4f8c!important;
}
.sales-list-card nav[role="navigation"] span[aria-current] span{
  background:#007fff!important;
  border-color:#007fff!important;
  color:#fff!important;
}
.sales-list-card nav[role="navigation"] svg{
  width:14px!important;
  height:14px!important;
  display:block!important;
  flex:0 0 14px!important;
}
.sales-list-card nav[role="navigation"] [aria-disabled="true"] span{
  color:#94a3b8!important;
  background:#f8fafc!important;
  cursor:not-allowed!important;
}
@media(max-width:1300px){
  .purchase-entry-card .purchase-sections{
    grid-template-columns:1fr!important;
  }
  .purchase-entry-card .purchase-shipping-grid,
  .purchase-entry-card .purchase-payment-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .purchase-entry-card .purchase-summary{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:720px){
  .purchase-entry-card .purchase-discount-grid,
  .purchase-entry-card .purchase-shipping-grid,
  .purchase-entry-card .purchase-payment-grid,
  .purchase-entry-card .purchase-summary{
    grid-template-columns:1fr!important;
  }
  .purchase-entry-card .purchase-payment-grid .wide{
    grid-column:auto!important;
  }
}
@media print{
  body{background:#fff!important}
  button:hover,.btn:hover{transform:none}
}

/* Sell payment report */
.sell-payment-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin:20px 0 22px;
}
.sell-payment-kpi{
  min-height:128px;
  border-radius:7px;
  padding:20px 26px;
  display:flex;
  align-items:center;
  gap:20px;
  color:#fff;
  box-shadow:0 16px 30px rgba(18,48,78,.12);
  overflow:hidden;
  position:relative;
  text-decoration:none;
  transition:transform .16s ease,box-shadow .16s ease;
}
.sell-payment-kpi:hover{transform:translateY(-2px);box-shadow:0 19px 34px rgba(18,48,78,.2)}.sell-payment-kpi:focus-visible{outline:3px solid #f8c146;outline-offset:3px}.report-scope-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px}.report-scope-banner h3{margin:2px 0 0;color:#173b63;font-size:16px}.report-scope-banner .eyebrow{margin:0}
.sales-summary-drilldown .operation{display:block;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease}.sales-summary-drilldown .operation b,.sales-summary-drilldown .operation span{display:block}.sales-summary-drilldown .operation b{margin-bottom:8px}.sales-summary-drilldown .operation:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,79,140,.16)}.sales-summary-drilldown .operation:focus-visible{outline:3px solid #f8c146;outline-offset:3px}
.sales-summary-primary{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}.sales-summary-payments{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;overflow:visible;padding-bottom:0}.sales-summary-drilldown .operation{min-width:0;padding:10px 11px}.sales-summary-drilldown .operation b{font-size:13px;line-height:1.2;font-weight:700;color:#334155;overflow-wrap:anywhere;margin-bottom:6px}.sales-summary-drilldown .operation span{font-size:clamp(16px,1.22vw,20px);color:#17233a;font-weight:700;white-space:nowrap;letter-spacing:-.01em}.sales-summary-drilldown .operation small{display:block;margin-top:5px;color:#64748b;font-size:11px;font-weight:500;line-height:1.3}.sales-summary-payments .operation{padding:9px 10px}.sales-summary-payments .operation b{font-size:12px;margin-bottom:5px}.sales-summary-payments .operation span{font-size:clamp(14px,1.03vw,17px)}.sales-summary-payments .operation small{font-size:10px;margin-top:4px}.sales-summary-payments .sales-payment-method-card small{display:block;color:#64748b;font-weight:500}
@media(max-width:1180px){.sales-summary-payments{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:720px){.sales-summary-primary,.sales-summary-payments{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sell-payment-kpi.direct{background:linear-gradient(135deg,#38a553,#57bb63)}
.sell-payment-kpi.sales{background:linear-gradient(135deg,#527685,#6f8d9a)}
.sell-payment-kpi.total{background:linear-gradient(135deg,#007fff,#2597ee)}
.sell-payment-kpi-icon{
  width:68px;
  height:68px;
  border:2px solid rgba(255,255,255,.38);
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:900;
  background:rgba(255,255,255,.12);
  flex:0 0 auto;
}
.sell-payment-kpi b,
.sell-payment-kpi strong,
.sell-payment-kpi small{
  display:block;
  color:#fff;
}
.sell-payment-kpi b{
  text-transform:uppercase;
  letter-spacing:.03em;
  font-size:15px;
}
.sell-payment-kpi strong{
  font-size:31px;
  line-height:1.2;
  margin-top:4px;
}
.sell-payment-kpi small{
  opacity:.9;
  font-size:13px;
  margin-top:4px;
}
.sell-payment-report-card{
  border-top:4px solid #2f6f1f;
}
.sell-payment-tools{
  align-items:center;
}
.sell-payment-table-wrap{
  border-radius:0;
}
.sell-payment-table{
  min-width:1180px;
}
.sell-payment-table th{
  text-align:left;
  font-size:13px;
  color:#3a3a3a;
  background:#fff;
  border-bottom:1px solid #333;
  vertical-align:middle;
}
.sell-payment-table td{
  font-size:13px;
  vertical-align:middle;
  white-space:normal;
}
.sell-payment-table tr:nth-child(even):not(.sell-payment-child-row) td{
  background:#fafafa;
}
.sell-payment-direct-row td{
  background:#daf3dc!important;
  color:#1f6d2e;
  font-weight:700;
}
.sell-payment-expand-cell{
  width:44px;
  text-align:center;
}
.sell-payment-toggle{
  width:22px;
  height:22px;
  padding:0;
  border-radius:50%;
  background:#fff!important;
  color:#27823a!important;
  border:2px solid #b9e3c2!important;
  font-weight:900;
  line-height:1;
  box-shadow:none!important;
}
.sell-payment-toggle:hover{
  background:#eaf8ed!important;
  transform:none;
}
.sell-payment-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  display:inline-block;
  background:#cdd7e2;
}
.sell-payment-direct-badge{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:3px 10px;
  border-radius:5px;
  background:#2f7d32;
  color:#fff;
  font-weight:800;
  font-size:12px;
}
.sell-payment-child-row td{
  padding:10px!important;
  background:#fff!important;
}
.sell-payment-child-table{
  width:100%;
  min-width:980px;
  border:1px solid #edf1f5;
}
.sell-payment-child-table th{
  background:#fff;
  color:#3a3a3a;
  border-bottom:1px solid #e2e8f0;
}
.sell-payment-child-table td{
  font-size:13px;
}
.sell-payment-table .mini-link{
  background:#3f7d1d;
  color:#fff;
  border-radius:999px;
  padding:4px 9px;
  font-size:11px;
  font-weight:800;
  border:0;
}
.sell-payment-table .mini-link:hover{
  background:#2f6414;
  color:#fff;
}
.sell-payment-view-modal{
  width:min(1080px,94vw);
  border-top:8px solid #173b5f;
}
.sell-payment-view-modal header h3{
  color:#2d2c5f;
  font-size:29px;
}
.sell-payment-view-body{
  padding:28px;
}
.sell-payment-view-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  padding-bottom:42px;
}
.sell-payment-view-columns p,
.sell-payment-view-details p{
  margin:0 0 5px;
  color:#333;
  font-size:16px;
  line-height:1.34;
}
.sell-payment-view-columns b,
.sell-payment-view-details b{
  font-weight:900;
}
.sell-payment-view-details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px 34px;
}
.sell-payment-view-modal footer{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding:18px 28px 28px;
  border-top:1px solid #eef2f6;
}
@media(max-width:900px){
  .sell-payment-summary{
    grid-template-columns:1fr;
  }
  .sell-payment-view-columns,
  .sell-payment-view-details{
    grid-template-columns:1fr;
  }
}
@media print{
  .sell-payment-summary{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:6px!important;
  }
  .sell-payment-kpi{
    min-height:0!important;
    padding:8px!important;
    box-shadow:none!important;
  }
  .sell-payment-kpi-icon{
    display:none!important;
  }
  .sell-payment-kpi strong{
    font-size:13px!important;
  }
  .sell-payment-child-row[hidden],
  .sell-payment-expand-cell,
  .sell-payment-table th:first-child,
  .sell-payment-table td:first-child{
    display:none!important;
  }
}

/* Product sell report */
.product-sell-filter-card{
  margin-bottom:18px;
}
.product-sell-filter-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px 20px;
  padding:12px 22px 18px;
}
.product-sell-filter-grid label{
  display:grid;
  gap:4px;
  font-size:11px;
  font-weight:850;
  color:#333;
}
.product-sell-filter-grid input,
.product-sell-filter-grid select{
  height:32px;
  border-radius:4px;
  background:#fff;
  font-size:12px;
  font-weight:500;
  padding:5px 9px;
}
.product-sell-input-icon{
  display:grid;
  grid-template-columns:36px 1fr;
  border:1px solid #d5dde7;
  background:#f1f1f1;
  min-height:32px;
}
.product-sell-input-icon b{
  display:grid;
  place-items:center;
  border-right:1px solid #d5dde7;
  color:#4b5563;
  background:#fff;
  font-size:17px;
}
.product-sell-input-icon input{
  border:0!important;
  border-radius:0!important;
  background:#eee!important;
  box-shadow:none!important;
}
.product-sell-time-range{
  display:grid;
  grid-template-columns:88px 28px 88px;
  align-items:center;
}
.product-sell-date-range{
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);
  align-items:center;
}
.product-sell-date-range input{
  min-width:0;
  border-radius:0;
}
.product-sell-date-range em{
  height:32px;
  display:grid;
  place-items:center;
  border-top:1px solid #d5dde7;
  border-bottom:1px solid #d5dde7;
  background:#f8fafc;
  font-style:normal;
  font-size:11px;
  color:#64748b;
}
.product-sell-time-range input{
  border-radius:0;
}
.product-sell-time-range em{
  height:32px;
  display:grid;
  place-items:center;
  border-top:1px solid #d5dde7;
  border-bottom:1px solid #d5dde7;
  background:#f8fafc;
  font-style:normal;
}
.product-sell-filter-actions{
  display:flex;
  gap:8px;
  align-items:end;
}
.product-sell-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
}
.product-sell-kpi{
  background:#fff;
  border:1px solid #d8e5f0;
  border-radius:7px;
  padding:13px 16px;
  box-shadow:0 10px 22px rgba(18,48,78,.045);
}
.product-sell-kpi b{
  display:block;
  color:#173b5f;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.product-sell-kpi span{
  display:block;
  margin-top:6px;
  color:#172033;
  font-size:19px;
  font-weight:800;
}
.product-sell-tabs{
  display:flex;
  align-items:flex-end;
  gap:0;
  overflow:auto;
  border-bottom:1px solid #d7e2ee;
  margin:10px 0 0;
  background:#fff;
}
.product-sell-tabs a{
  min-height:54px;
  display:flex;
  align-items:center;
  padding:0 24px;
  border-top:3px solid transparent;
  color:#3a3a3a;
  font-weight:850;
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
}
.product-sell-tabs a.active{
  border-top-color:#0f6fb5;
  color:#173b5f;
  background:#fbfdff;
}
.product-sell-tabs a:hover{
  background:#edf6ff;
  color:#0b4f8c;
}
.product-sell-report-card{
  border-top:3px solid #0f6fb5;
  border-radius:0 0 8px 8px;
}
.product-sell-table{
  min-width:1180px;
}
.product-sell-table th{
  background:#fff;
  border-bottom:1px solid #333;
  color:#3a3a3a;
  font-size:12px;
  vertical-align:middle;
}
.product-sell-table td{
  font-size:12px;
  vertical-align:middle;
}
.product-sell-table tr:nth-child(even) td{
  background:#fafafa;
}
.product-sell-table .mini-link{
  background:#0f6fb5;
  color:#fff;
  border-radius:999px;
  padding:4px 9px;
  font-size:11px;
  font-weight:800;
}
@media(max-width:1100px){
  .product-sell-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .product-sell-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:720px){
  .product-sell-filter-grid,
  .product-sell-summary{
    grid-template-columns:1fr;
  }
  .product-sell-tabs a{
    padding:0 16px;
    font-size:14px;
  }
}
@media print{
  .product-sell-filter-card,
  .product-sell-tabs,
  .product-sell-tools{
    display:none!important;
  }
  .product-sell-summary{
    display:grid!important;
    grid-template-columns:repeat(4,1fr)!important;
    gap:5px!important;
  }
}

.erp-dialog-open{
  overflow:hidden;
}
.erp-global-dialog{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(15,23,42,.46);
  backdrop-filter:blur(3px);
}
.erp-global-dialog.open{
  display:flex;
}
.erp-global-dialog-card{
  width:min(470px,94vw);
  display:grid;
  grid-template-columns:48px 1fr;
  gap:14px;
  align-items:start;
  background:#fff;
  border:1px solid #cfe3f5;
  border-top:4px solid #0f6fb5;
  border-radius:14px;
  box-shadow:0 26px 80px rgba(15,23,42,.28);
  padding:18px;
}
.erp-global-dialog-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff2f2;
  color:#b91c1c;
  border:1px solid #fecaca;
  font-size:22px;
  font-weight:900;
}
.erp-global-dialog.is-alert .erp-global-dialog-icon{
  background:#eaf5ff;
  color:#0f6fb5;
  border-color:#bfdbfe;
}
.erp-global-dialog-copy{
  min-width:0;
}
.erp-global-dialog-copy .modal-kicker{
  margin:0 0 4px;
  color:#0f6fb5;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.erp-global-dialog-copy h3{
  margin:0;
  color:#17233b;
  font-size:20px;
  line-height:1.2;
}
.erp-global-dialog-copy p[data-erp-dialog-message]{
  margin:8px 0 0;
  color:#52647a;
  font-size:14px;
  line-height:1.45;
}
.erp-global-dialog-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding-top:6px;
}
.erp-global-dialog-actions button{
  border:0;
  border-radius:10px;
  padding:10px 16px;
  font:inherit;
  font-size:14px;
  font-weight:850;
  cursor:pointer;
}
.erp-global-dialog-cancel{
  background:#eef4fa;
  color:#334155;
}
.erp-global-dialog-confirm{
  background:#0f6fb5;
  color:#fff;
  box-shadow:0 8px 18px rgba(15,111,181,.22);
}
.erp-global-dialog-confirm:hover,
.erp-global-dialog-cancel:hover{
  transform:translateY(-1px);
}
@media(max-width:560px){
  .erp-global-dialog-card{
    grid-template-columns:1fr;
  }
  .erp-global-dialog-actions{
    flex-direction:column-reverse;
  }
  .erp-global-dialog-actions button{
    width:100%;
  }
}

.settings-reset-open{
  margin:10px 12px;
  border-radius:9px!important;
  padding:10px 12px!important;
  font-size:12px!important;
}
.settings-reset-backdrop{
  position:fixed;
  inset:0;
  z-index:9990;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(15,23,42,.5);
  backdrop-filter:blur(3px);
}
.settings-reset-panel{
  width:min(980px,96vw);
  max-height:92vh;
  overflow:auto;
  background:#fff;
  border:1px solid #cfe3f5;
  border-top:5px solid #0f4f8c;
  border-radius:14px;
  box-shadow:0 28px 90px rgba(15,23,42,.32);
}
.settings-reset-panel>header{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:20px 24px;
  border-bottom:1px solid #e2edf6;
}
.settings-reset-panel h3{
  margin:0;
  color:#172033;
  font-size:24px;
}
.settings-reset-panel header small{
  display:block;
  margin-top:5px;
  color:#64748b;
  line-height:1.45;
}
.settings-reset-panel header button{
  width:38px;
  height:38px;
  padding:0;
  border-radius:10px;
  background:#eef4fa!important;
  color:#334155!important;
  font-size:24px;
}
.settings-backup-box{
  margin:18px 24px;
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:10px;
}
.settings-backup-box b,
.settings-backup-box span{
  display:block;
}
.settings-backup-box b{
  color:#0f4f8c;
  font-size:15px;
}
.settings-backup-box span{
  margin-top:3px;
  color:#52647a;
  font-size:13px;
}
.settings-reset-choice-form{
  padding:0 24px 24px;
}
.settings-reset-tools{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-bottom:12px;
}
.settings-reset-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.settings-reset-option{
  display:grid;
  grid-template-columns:22px 1fr;
  gap:10px;
  align-items:start;
  min-height:96px;
  padding:14px;
  border:1px solid #d7e6f2;
  border-radius:10px;
  background:#fbfdff;
  color:#172033;
}
.settings-reset-option:hover{
  border-color:#0f4f8c;
  background:#f4f9ff;
}
.settings-reset-option input{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:#0f4f8c;
}
.settings-reset-option b,
.settings-reset-option small{
  display:block;
}
.settings-reset-option b{
  color:#172033;
  font-size:14px;
}
.settings-reset-option small{
  margin-top:5px;
  color:#64748b;
  font-size:12px;
  line-height:1.4;
}
.settings-reset-warning{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid #fecaca;
  border-radius:10px;
  background:#fff5f5;
  color:#7f1d1d;
  font-size:13px;
  line-height:1.45;
}
.settings-reset-choice-form footer{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #e2edf6;
}
.settings-reset-choice-form .danger{
  background:#b91c1c!important;
  color:#fff!important;
}
@media(max-width:760px){
  .settings-reset-grid{
    grid-template-columns:1fr;
  }
  .settings-backup-box,
  .settings-reset-choice-form footer{
    align-items:stretch;
    flex-direction:column;
  }
}
.maintenance-head p{
  margin:6px 0 0;
  color:#64748b;
  font-size:13px;
  font-weight:650;
}
.maintenance-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px;
  padding:8px;
  border:1px solid #d9e7f3;
  border-radius:10px;
  background:#f8fbff;
}
.maintenance-tabs a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:8px 12px;
  border-radius:7px;
  color:#25425f;
  font-size:12px;
  font-weight:850;
  text-decoration:none;
}
.maintenance-tabs a:hover{
  background:#eaf4fb;
  color:#0f4f8c;
}
.maintenance-tabs a.active{
  background:#0f4f8c;
  color:#fff;
  box-shadow:0 8px 16px rgba(15,79,140,.18);
}
.maintenance-metrics{
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
}
.maintenance-dashboard-card{
  border-top:4px solid #0f4f8c;
}
.maintenance-flow{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:8px;
  margin-bottom:18px;
}
.maintenance-flow span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px;
  border:1px solid #d8e7f3;
  border-radius:8px;
  background:#f6fbff;
  color:#0f4f8c;
  font-size:12px;
  font-weight:900;
  text-align:center;
}
.maintenance-hours{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.maintenance-hours div{
  padding:13px 14px;
  border:1px solid #d8e7f3;
  border-radius:8px;
  background:#fff;
}
.maintenance-hours b,
.maintenance-hours span{
  display:block;
}
.maintenance-hours b{
  color:#64748b;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.maintenance-hours span{
  margin-top:5px;
  color:#172033;
  font-size:18px;
  font-weight:900;
}
.maintenance-form-card{
  border-top:4px solid #3d7f1e;
}
.maintenance-grid-form{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.maintenance-grid-form label{
  display:grid;
  gap:6px;
  color:#334155;
  font-size:12px;
  font-weight:850;
}
.maintenance-grid-form label.wide{
  grid-column:span 2;
}
.maintenance-grid-form input,
.maintenance-grid-form select,
.maintenance-grid-form textarea{
  min-height:38px;
  border:1px solid #cfdce8;
  border-radius:7px;
  background:#fff;
  color:#172033;
  font-size:13px;
}
.maintenance-grid-form textarea{
  min-height:74px;
}
.maintenance-grid-form .check{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:8px 10px;
  border:1px solid #d8e7f3;
  border-radius:7px;
  background:#fbfdff;
}
.maintenance-grid-form .check input{
  min-height:auto;
}
.maintenance-grid-form .form-actions{
  grid-column:1 / -1;
  justify-content:flex-end;
}
.maintenance-inline-status{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:360px;
}
.maintenance-inline-status select{
  min-width:170px;
}
.maintenance-inline-status input{
  width:92px;
}
.maintenance-settings-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.maintenance-settings-grid div{
  padding:14px;
  border:1px solid #d8e7f3;
  border-radius:9px;
  background:#fbfdff;
}
.maintenance-settings-grid b,
.maintenance-settings-grid span{
  display:block;
}
.maintenance-settings-grid b{
  color:#172033;
  font-size:14px;
}
.maintenance-settings-grid span{
  margin-top:6px;
  color:#64748b;
  font-size:12px;
  line-height:1.4;
}
.maintenance-settings-form{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.maintenance-settings-intro{
  display:grid;
  gap:4px;
  margin-bottom:14px;
  padding:12px 14px;
  border:1px solid #d8e7f3;
  border-radius:9px;
  background:#f6fbff;
}
.maintenance-settings-intro b{
  color:#0f4f8c;
  font-size:13px;
}
.maintenance-settings-intro span{
  color:#475569;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
}
.maintenance-access-card{
  margin-bottom:18px;
  padding:16px;
  border:1px solid #d8e7f3;
  border-radius:10px;
  background:#fbfdff;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.maintenance-access-note{
  margin:0 0 12px;
  color:#64748b;
  font-size:12px;
  font-weight:750;
}
.maintenance-access-table{
  min-width:1180px;
}
.maintenance-access-table th,
.maintenance-access-table td{
  text-align:center;
  vertical-align:middle;
}
.maintenance-access-table th{
  font-size:11px;
  line-height:1.2;
}
.maintenance-access-table th:first-child,
.maintenance-access-table td:first-child{
  position:sticky;
  left:0;
  z-index:2;
  min-width:170px;
  text-align:left;
  background:#fff;
}
.maintenance-access-table th:first-child{
  z-index:3;
}
.maintenance-access-table th small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:10px;
  font-weight:700;
}
.maintenance-access-check{
  display:inline-grid;
  width:30px;
  height:30px;
  place-items:center;
  border:1px solid #cfdce8;
  border-radius:9px;
  background:#fff;
  cursor:pointer;
}
.maintenance-access-check input{
  width:16px;
  height:16px;
  accent-color:#0b7fe8;
}
.maintenance-access-check:hover{
  border-color:#0b7fe8;
  background:#eef7ff;
}
.maintenance-access-legend{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.maintenance-access-legend span{
  display:block;
  padding:10px 12px;
  border:1px solid #d8e7f3;
  border-radius:9px;
  background:#f6fbff;
  color:#64748b;
  font-size:11px;
  font-weight:700;
  line-height:1.35;
}
.maintenance-access-legend b{
  color:#0f4f8c;
}
.maintenance-settings-form label{
  display:grid;
  gap:6px;
  color:#334155;
  font-size:12px;
  font-weight:850;
}
.maintenance-settings-form .setting-help{
  display:block;
  min-height:34px;
  color:#64748b;
  font-size:11px;
  font-weight:700;
  line-height:1.35;
}
.maintenance-settings-form .setting-help b{
  color:#0f4f8c;
}
.maintenance-settings-form label.wide{
  grid-column:span 3;
}
.maintenance-settings-form textarea,
.maintenance-settings-form input{
  border:1px solid #cfdce8;
  border-radius:8px;
  background:#fff;
  color:#172033;
  font-size:13px;
  line-height:1.35;
}
.maintenance-settings-form small{
  color:#64748b;
  font-size:11px;
  line-height:1.35;
}
.maintenance-rate-box{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  grid-column:span 2;
  margin:0;
  padding:12px;
  border:1px solid #d8e7f3;
  border-radius:10px;
  background:#fbfdff;
}
.maintenance-rate-box legend{
  padding:0 7px;
  color:#0f4f8c;
  font-size:12px;
  font-weight:900;
}
.maintenance-rate-box p{
  grid-column:1 / -1;
  margin:0;
  color:#64748b;
  font-size:11px;
  font-weight:700;
  line-height:1.35;
}
.maintenance-rate-box p b{
  color:#0f4f8c;
}
.maintenance-rate-box label{
  gap:5px;
}
.maintenance-settings-form .form-actions{
  grid-column:1 / -1;
  justify-content:flex-end;
}
.maintenance-report-card{
  border-top:3px solid #0b7fe8;
}
.maintenance-report-filters{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  align-items:end;
}
.maintenance-report-filters label{
  display:grid;
  gap:6px;
  color:#334155;
  font-size:12px;
  font-weight:850;
}
.maintenance-report-filters input,
.maintenance-report-filters select{
  min-height:38px;
  border:1px solid #cfdce8;
  border-radius:8px;
  background:#fff;
  color:#172033;
  font-size:13px;
}
.maintenance-report-filters .form-actions{
  grid-column:auto;
  justify-content:flex-end;
}
.maintenance-report-metrics{
  grid-template-columns:repeat(7,minmax(0,1fr));
}
.maintenance-report-metrics .metric-card strong{
  font-size:24px;
}
.maintenance-report-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:16px;
}
.maintenance-report-grid .card,
.maintenance-report-card{
  overflow:hidden;
}
.maintenance-report-grid .data-table th,
.maintenance-report-grid .data-table td,
.maintenance-report-card .data-table th,
.maintenance-report-card .data-table td{
  padding:9px 10px;
  font-size:12px;
}
@media(max-width:980px){
  .maintenance-grid-form{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .maintenance-hours{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .maintenance-settings-form{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .maintenance-settings-form label.wide,
  .maintenance-rate-box{
    grid-column:1 / -1;
  }
  .maintenance-access-legend{
    grid-template-columns:1fr;
  }
  .maintenance-report-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .maintenance-report-filters .form-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
  .maintenance-report-metrics,
  .maintenance-report-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:640px){
  .maintenance-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .maintenance-tabs a{
    justify-content:center;
  }
  .maintenance-grid-form,
  .maintenance-hours{
    grid-template-columns:1fr;
  }
  .maintenance-grid-form label.wide{
    grid-column:auto;
  }
  .maintenance-inline-status{
    min-width:0;
    flex-direction:column;
    align-items:stretch;
  }
  .maintenance-inline-status select,
  .maintenance-inline-status input{
    width:100%;
    min-width:0;
  }
  .maintenance-settings-form,
  .maintenance-rate-box{
    grid-template-columns:1fr;
  }
  .maintenance-report-filters{
    grid-template-columns:1fr;
  }
}

/* Compact global action dropdowns */
.action-menu summary,
.floating-action-menu summary,
.purchase-action-menu summary,
.report-action-menu summary,
.product-action-menu summary{
  min-height:0!important;
  padding:3px 8px!important;
  font-size:10.5px!important;
  line-height:1.05!important;
}
.action-menu .action-menu-panel,
.floating-action-menu .action-menu-panel,
.purchase-action-menu .action-menu-panel,
.report-action-menu .action-menu-panel,
.product-action-menu .action-menu-panel{
  min-width:176px!important;
  max-width:230px!important;
  gap:0!important;
  padding:3px!important;
  border-radius:5px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.12)!important;
}
.action-menu .contact-action-item,
.action-menu-panel .contact-action-item,
.purchase-action-menu .contact-action-item,
.report-action-menu .contact-action-item,
.product-action-menu .contact-action-item{
  grid-template-columns:16px minmax(0,1fr)!important;
  gap:5px!important;
  min-height:23px!important;
  padding:3px 7px!important;
  border-radius:3px!important;
  font-size:10.5px!important;
  line-height:1.05!important;
  white-space:normal!important;
}
.action-menu .action-icon,
.action-menu-panel .action-icon,
.product-action-menu .contact-action-item span{
  width:14px!important;
  height:14px!important;
  font-size:10px!important;
}
.action-menu-panel hr,
.purchase-action-menu hr,
.report-action-menu hr,
.product-action-menu hr{
  margin:3px 0!important;
}

/* Compact sales document builder */
.quote-items-table.without-line-discount{
  min-width:760px!important;
}
.quote-items-table.with-line-discount{
  min-width:860px!important;
}
.quote-items-table th{
  padding:9px 10px!important;
  font-size:12px!important;
}
.quote-items-table td{
  padding:8px 10px!important;
  vertical-align:top!important;
}
.quote-items-table td.quote-line-top{
  vertical-align:top!important;
  padding-top:8px!important;
}
.quote-line-number-cell{
  text-align:right;
}
.quote-line-number-cell .quote-line-input{
  text-align:right;
}
.quote-line-subtotal{
  text-align:right;
  font-weight:850;
  color:#172033;
  white-space:nowrap;
}
.quote-line-input,
.quote-line-um{
  height:29px!important;
  font-size:11px!important;
  padding:4px 7px!important;
}
.quote-line-input{
  width:82px!important;
}
.quote-line-um{
  width:78px!important;
}
.quote-adjust-card,
.quote-delivery-card{
  padding:12px 18px!important;
}
.quote-adjust-grid{
  grid-template-columns:minmax(170px,.55fr) minmax(170px,.55fr) minmax(220px,1fr) minmax(260px,1.2fr)!important;
  gap:10px 14px!important;
  align-items:start!important;
}
.quote-adjust-grid label,
.quote-delivery-grid label,
.quote-wide-note{
  gap:4px!important;
  font-size:11px!important;
}
.quote-adjust-grid input,
.quote-adjust-grid select,
.quote-adjust-grid textarea,
.quote-delivery-grid input,
.quote-delivery-grid select,
.quote-delivery-grid textarea,
.quote-wide-note textarea{
  min-height:30px!important;
  height:30px!important;
  font-size:11px!important;
  padding:5px 8px!important;
}
.quote-adjust-grid textarea,
.quote-wide-note textarea,
.quote-delivery-grid textarea{
  height:38px!important;
  min-height:38px!important;
  line-height:1.25!important;
}
.quote-adjust-grid .quote-input-icon,
.quote-delivery-grid .quote-input-icon{
  grid-template-columns:30px minmax(0,1fr)!important;
}
.quote-adjust-grid .quote-input-icon b,
.quote-delivery-grid .quote-input-icon b{
  height:30px!important;
  font-size:10px!important;
}
.quote-delivery-grid{
  grid-template-columns:minmax(240px,1fr) minmax(240px,1fr) minmax(150px,.45fr) minmax(150px,.45fr)!important;
  gap:10px 14px!important;
}
.quote-delivery-bottom{
  display:flex!important;
  justify-content:flex-end!important;
  margin-top:10px!important;
}
.quote-payable-box{
  width:min(300px,100%)!important;
  height:46px!important;
  border-radius:7px!important;
  padding:0 16px!important;
}
.quote-payable-box span{
  font-size:11px!important;
}
.quote-payable-box b{
  font-size:18px!important;
}
@media(max-width:1100px){
  .quote-adjust-grid,
  .quote-delivery-grid{
    grid-template-columns:1fr!important;
  }
}

/* Professional compact Add Sales / Quotation / Proforma builder */
.quotation-head{
  margin-bottom:8px!important;
}
.quotation-head h2{
  font-size:22px!important;
  line-height:1.15!important;
}
.quote-location-row{
  margin-bottom:10px!important;
  grid-template-columns:34px minmax(220px,300px) 34px!important;
}
.quote-location-row select,
.quote-location-row span{
  height:34px!important;
  font-size:12px!important;
}
.quote-card{
  padding:14px 18px!important;
  margin-bottom:12px!important;
}
.quote-main-card{
  padding-top:12px!important;
}
.quote-price-group{
  grid-template-columns:30px minmax(180px,260px) 30px!important;
  max-width:320px!important;
  margin:0 0 10px!important;
}
.quote-price-group select,
.quote-price-group span{
  height:30px!important;
  font-size:11px!important;
}
.quote-form-grid{
  grid-template-columns:1fr .75fr .9fr!important;
  gap:10px 16px!important;
}
.quote-form-grid label{
  gap:4px!important;
  font-size:11px!important;
}
.quote-form-grid input,
.quote-form-grid select,
.quote-form-grid textarea{
  height:30px!important;
  font-size:11px!important;
  padding:4px 8px!important;
}
.quote-input-icon{
  grid-template-columns:30px minmax(0,1fr)!important;
}
.quote-input-icon b{
  height:30px!important;
  font-size:10px!important;
}
.quote-inline-pair{
  grid-template-columns:minmax(0,.55fr) minmax(110px,.45fr)!important;
}
.quote-address-box{
  font-size:11px!important;
  line-height:1.2!important;
  gap:2px!important;
}
.quote-file{
  grid-template-columns:minmax(0,1fr) 78px!important;
}
.quote-file button{
  height:30px!important;
  border-radius:0 6px 6px 0!important;
  font-size:11px!important;
}
.quote-product-search{
  grid-template-columns:38px minmax(260px,1fr) minmax(190px,300px) 42px!important;
  max-width:none!important;
  margin:0 0 10px!important;
  border-radius:10px!important;
}
.quote-product-search input,
.quote-product-search select,
.quote-gear,
.quote-search-add{
  height:36px!important;
  font-size:12px!important;
}
.quote-product-search input,
.quote-product-search select{
  padding:0 11px!important;
}
.quote-search-add{
  border-radius:0!important;
}
.quote-items-table{
  width:100%!important;
}
.quote-items-table.without-line-discount{
  min-width:720px!important;
}
.quote-items-table.with-line-discount{
  min-width:810px!important;
}
.quote-items-table th{
  padding:7px 8px!important;
  font-size:11px!important;
  line-height:1.1!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
.quote-items-table td{
  padding:6px 8px!important;
  font-size:11px!important;
  line-height:1.2!important;
}
.quote-items-table th:first-child,
.quote-items-table td:first-child{
  text-align:left!important;
}
.quote-items-table th:nth-child(2),
.quote-items-table td:nth-child(2),
.quote-items-table th:nth-child(3),
.quote-items-table td:nth-child(3){
  text-align:center!important;
}
.quote-items-table th:nth-child(4),
.quote-items-table td:nth-child(4),
.quote-items-table th:nth-last-child(2),
.quote-items-table td:nth-last-child(2){
  text-align:right!important;
}
.quote-items-table.with-line-discount th:nth-child(5),
.quote-items-table.with-line-discount td:nth-child(5){
  text-align:right!important;
}
.quote-items-table td:first-child b{
  display:inline!important;
  font-size:11px!important;
  line-height:1.2!important;
}
.quote-items-table small{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  margin:2px 0 0 8px!important;
  padding:2px 6px!important;
  border:1px solid #d8e2ee!important;
  border-radius:4px!important;
  background:#f8fafc!important;
  color:#516176!important;
  font-size:10px!important;
  line-height:1!important;
}
.quote-line-description{
  margin-top:5px!important;
  min-height:28px!important;
  height:30px!important;
  padding:5px 7px!important;
  font-size:11px!important;
  border-radius:4px!important;
}
.quote-line-input{
  width:72px!important;
  height:27px!important;
  text-align:right!important;
}
.quote-line-number-cell:nth-child(2) .quote-line-input{
  text-align:center!important;
}
.quote-line-um{
  width:72px!important;
  height:27px!important;
  text-align:center!important;
}
.quote-line-subtotal{
  font-size:11px!important;
  text-align:right!important;
}
.quote-remove-line{
  width:24px!important;
  height:24px!important;
  border-radius:6px!important;
  font-size:15px!important;
}
.quote-items-table tfoot td{
  padding:7px 8px!important;
  gap:22px!important;
  font-size:12px!important;
}
.quote-save-bar{
  margin-top:4px!important;
}

.purchase-import-modal[hidden]{display:none!important}
.purchase-import-modal{
  position:fixed;
  inset:0;
  z-index:10050;
  background:rgba(15,23,42,.42);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.purchase-import-panel{
  width:min(1040px,96vw);
  max-height:88vh;
  overflow:auto;
  background:#fff;
  border:1px solid #d5e8f7;
  border-radius:8px;
  box-shadow:0 24px 70px rgba(15,23,42,.22);
}
.purchase-import-panel header,
.purchase-import-panel footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  border-bottom:1px solid #e5edf5;
}
.purchase-import-panel footer{
  border-top:1px solid #e5edf5;
  border-bottom:0;
}
.purchase-import-panel h3{margin:0;color:#17213a;font-size:20px}
.purchase-import-panel small{color:#64748b;font-weight:700}
.purchase-import-status{
  margin:14px 18px;
  padding:10px 12px;
  border-radius:7px;
  background:#eff6ff;
  color:#0f4f8c;
  font-weight:800;
}
.purchase-import-help{
  margin:14px 18px 0;
  padding:12px;
  border:1px solid #bfdbfe;
  border-radius:8px;
  background:#f8fbff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.purchase-import-help div{
  display:grid;
  gap:4px;
  color:#17213a;
}
.purchase-import-help span{
  color:#64748b;
  font-weight:700;
  font-size:12px;
}
.purchase-import-steps{
  margin:10px 18px 0;
  padding:10px 12px 10px 30px;
  background:#fff;
  border:1px dashed #cbdff1;
  border-radius:8px;
  color:#334155;
  font-size:12px;
  font-weight:750;
}
.purchase-import-steps li{margin:3px 0}
.purchase-import-panel .table-wrap{margin:0 18px 16px}
.purchase-import-panel .status-pill{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}
.purchase-import-panel .status-pill.paid{background:#dcfce7;color:#166534}
.purchase-import-panel .status-pill.due{background:#fee2e2;color:#991b1b}

/* Compact stock adjustment and expense form polish */
.stock-product-search.stock-product-search-split{
  width:min(1460px,100%)!important;
  max-width:none!important;
  margin:0 auto 14px!important;
  grid-template-columns:42px minmax(280px,1fr) minmax(220px,390px) 48px!important;
  border:1px solid #9ab88e!important;
  border-radius:10px!important;
  overflow:hidden!important;
  box-shadow:0 3px 10px rgba(15,79,140,.08)!important;
}
.stock-product-search.stock-product-search-split>span{
  display:grid!important;
  place-items:center!important;
  background:#0f4f2c!important;
  color:#fff!important;
  border-radius:0!important;
}
.stock-product-search.stock-product-search-split input,
.stock-product-search.stock-product-search-split select{
  height:38px!important;
  border:0!important;
  border-left:1px solid #d9e3ed!important;
  border-radius:0!important;
  padding:0 12px!important;
  font-size:12px!important;
  background:#fff!important;
}
.stock-product-search.stock-product-search-split select{
  background:#f8fafc!important;
}
.stock-product-search.stock-product-search-split{
  position:relative!important;
  overflow:visible!important;
}
.stock-product-search.stock-product-search-split .stock-search-results{
  position:absolute!important;
  left:42px!important;
  right:48px!important;
  top:calc(100% + 6px)!important;
  z-index:80!important;
  display:none;
  max-height:300px!important;
  overflow:auto!important;
  gap:5px!important;
  padding:6px!important;
  background:#eef6ff!important;
  border:1px solid #9dc7ee!important;
  border-radius:9px!important;
  box-shadow:0 16px 36px rgba(15,79,140,.22)!important;
}
.stock-product-search.stock-product-search-split .stock-search-results:not(:empty){
  display:grid!important;
}
.stock-product-search.stock-product-search-split .stock-search-results button{
  width:100%!important;
  justify-content:flex-start!important;
  text-align:left!important;
  background:#0f82f5!important;
  color:#fff!important;
  border:1px solid #0a73d6!important;
  border-radius:8px!important;
  box-shadow:none!important;
  padding:8px 10px!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.25!important;
}
.stock-product-search.stock-product-search-split .stock-search-results button:hover,
.stock-product-search.stock-product-search-split .stock-search-results button:focus{
  background:#0874dc!important;
  color:#fff!important;
  outline:2px solid rgba(0,111,223,.18)!important;
  outline-offset:-2px!important;
}
.stock-product-search.stock-product-search-split .stock-search-results b,
.stock-product-search.stock-product-search-split .stock-search-results small{
  display:block!important;
}
.stock-product-search.stock-product-search-split .stock-search-results b{
  color:#fff!important;
}
.stock-product-search.stock-product-search-split .stock-search-results small{
  color:#d9ecff!important;
  font-size:11px!important;
  font-weight:700!important;
  margin-top:2px!important;
}
.stock-entry-row-flash{
  background:#fff8dc!important;
  box-shadow:inset 4px 0 0 #f59e0b!important;
}
.stock-search-add{
  height:38px!important;
  border-radius:0!important;
  font-size:24px!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  background:#0f8bf2!important;
}
.stock-entry-table.is-adjustment .stock-entry-head,
.stock-entry-table.is-adjustment .stock-entry-row{
  grid-template-columns:minmax(260px,2.2fr) minmax(140px,.85fr) minmax(130px,.8fr) minmax(120px,.75fr) minmax(120px,.75fr) 34px!important;
}
.stock-entry-table.is-transfer .stock-entry-head,
.stock-entry-table.is-transfer .stock-entry-row{
  grid-template-columns:minmax(280px,2.1fr) minmax(150px,.9fr) minmax(130px,.8fr) minmax(130px,.8fr) 34px!important;
}
.stock-entry-row strong{
  display:grid!important;
  gap:4px!important;
  align-content:start!important;
  text-align:left!important;
}
.stock-entry-row strong small{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  max-width:100%!important;
  gap:5px!important;
  padding:4px 8px!important;
  border:1px solid #f6b73c!important;
  border-radius:7px!important;
  background:#fff7e6!important;
  color:#374151!important;
  font-size:10px!important;
  line-height:1.1!important;
}
.stock-entry-row strong small b{
  background:#ffcc4d!important;
  border-radius:5px!important;
  padding:3px 7px!important;
  color:#111827!important;
}
.stock-entry-row input{
  height:32px!important;
  font-size:12px!important;
  padding:5px 8px!important;
}
.stock-entry-row [data-stock-subtotal]{
  min-height:32px!important;
  display:grid!important;
  align-items:center!important;
  justify-content:end!important;
  padding-right:8px!important;
}
.stock-view-card{
  border-left:4px solid #0f4f8c!important;
}
.stock-view-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
.stock-view-grid>div{
  border:1px solid #d8e5f2!important;
  border-radius:7px!important;
  background:#fbfdff!important;
  padding:9px 10px!important;
  display:grid!important;
  gap:4px!important;
}
.stock-view-grid b{
  color:#64748b!important;
  font-size:10px!important;
  text-transform:uppercase!important;
}
.stock-view-grid span{
  color:#172033!important;
  font-weight:850!important;
}
.stock-view-grid .wide{
  grid-column:span 2!important;
}
.expense-form{
  gap:10px!important;
}
.expense-card{
  padding:12px 16px!important;
  border-top-width:3px!important;
  border-radius:8px!important;
}
.expense-card h3{
  margin:0 0 8px!important;
  font-size:15px!important;
}
.expense-grid,
.expense-grid.two,
.expense-grid.three{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px 12px!important;
}
.expense-grid label,
.expense-inline-form label,
.expense-entry-form label{
  gap:3px!important;
  font-size:10.5px!important;
}
.expense-grid input,
.expense-grid select,
.expense-grid textarea,
.expense-inline-form input,
.expense-entry-form input,
.expense-entry-form select,
.expense-entry-form textarea{
  min-height:30px!important;
  height:30px!important;
  padding:5px 8px!important;
  font-size:11px!important;
  border-radius:5px!important;
}
.expense-grid textarea,
.expense-entry-form textarea{
  min-height:38px!important;
  height:38px!important;
}
.expense-grid label small{
  font-size:9.5px!important;
  line-height:1.15!important;
}
.expense-grid .wide{
  grid-column:span 2!important;
}
.input-with-icon,
.split-input{
  grid-template-columns:34px minmax(0,1fr)!important;
}
.split-input{
  grid-template-columns:minmax(0,1fr) 108px!important;
}
.file-inline{
  grid-template-columns:minmax(0,1fr) 74px!important;
}
.file-inline input{
  min-height:30px!important;
  height:30px!important;
  font-size:10px!important;
}
.file-inline b{
  border-radius:0 7px 7px 0!important;
  font-size:11px!important;
}
.checkline{
  min-height:30px!important;
}
.expense-payment-due{
  margin-top:8px!important;
  padding-top:8px!important;
  font-size:11px!important;
}
.expense-save-bar{
  padding:8px!important;
}
@media(max-width:1100px){
  .stock-product-search.stock-product-search-split,
  .stock-entry-table.is-adjustment .stock-entry-head,
  .stock-entry-table.is-adjustment .stock-entry-row,
  .stock-entry-table.is-transfer .stock-entry-head,
  .stock-entry-table.is-transfer .stock-entry-row,
  .expense-grid,
  .expense-grid.two,
  .expense-grid.three,
  .stock-view-grid{
    grid-template-columns:1fr!important;
  }
  .stock-view-grid .wide,
  .expense-grid .wide{
    grid-column:auto!important;
  }
}

/* Compact print settings */
.invoice-settings-card .invoice-settings-form{
  gap:12px!important;
}
.invoice-settings-card .invoice-layout-shell{
  display:grid!important;
  gap:12px!important;
  padding:16px 18px!important;
  border-bottom:1px solid #e5edf6!important;
  background:#fff!important;
}
.invoice-settings-card .invoice-settings-title{
  display:flex!important;
  align-items:baseline!important;
  gap:10px!important;
}
.invoice-settings-card .invoice-settings-title h2{
  margin:0!important;
  color:#2d2c5f!important;
  font-size:24px!important;
  line-height:1.1!important;
}
.invoice-settings-card .invoice-settings-title span{
  color:#6b7280!important;
  font-size:14px!important;
}
.invoice-settings-card .invoice-settings-tabs{
  display:flex!important;
  gap:0!important;
  align-items:flex-end!important;
  border-bottom:1px solid #e5e7eb!important;
}
.invoice-settings-card .invoice-settings-tabs button{
  min-height:44px!important;
  padding:10px 18px!important;
  border:1px solid #e5e7eb!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#374151!important;
  box-shadow:none!important;
  font-size:15px!important;
  font-weight:850!important;
}
.invoice-settings-card .invoice-settings-tabs button.active,
.invoice-settings-card .invoice-settings-tabs button.layout-tab{
  border-top:3px solid #328ec0!important;
}
.invoice-settings-card .print-document-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding:8px!important;
  border:1px solid #d8e5f2!important;
  border-radius:8px!important;
  background:#f8fbff!important;
}
.invoice-settings-card .print-document-tabs button{
  min-height:34px!important;
  padding:7px 11px!important;
  border:1px solid #cfe0ef!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#0f4f8c!important;
  box-shadow:none!important;
  font-size:12px!important;
  font-weight:850!important;
}
.invoice-settings-card .invoice-layouts-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:4px!important;
}
.invoice-settings-card .invoice-layouts-head h3{
  margin:0!important;
  font-size:18px!important;
  color:#172033!important;
}
.invoice-settings-card .invoice-layouts-head .btn{
  min-height:34px!important;
  padding:7px 13px!important;
  border-radius:18px!important;
  font-size:12px!important;
}
.invoice-settings-card .invoice-layout-card-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}
.invoice-settings-card .invoice-layout-card{
  min-height:108px!important;
  padding:13px 14px!important;
  border:1px solid #d8e5f2!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#0f4f8c!important;
  box-shadow:0 8px 20px rgba(15,23,42,.05)!important;
  text-align:center!important;
}
.invoice-settings-card .invoice-layout-card.selected{
  border-color:#0f4f8c!important;
  background:#f8fbff!important;
}
.invoice-settings-card .invoice-layout-card .layout-file-icon{
  width:38px!important;
  height:46px!important;
  border-radius:5px!important;
  background:#3d96c7!important;
  color:#fff!important;
  font-size:22px!important;
}
.invoice-settings-card .invoice-layout-card em{
  top:36px!important;
  border-radius:14px!important;
  padding:3px 10px!important;
  font-size:11px!important;
}
.invoice-settings-card .invoice-layout-card b{
  color:#0f4f8c!important;
  font-size:13px!important;
}
.invoice-settings-card .invoice-layout-card small{
  max-width:100%!important;
  margin-top:4px!important;
  font-size:11px!important;
  line-height:1.25!important;
}
.invoice-settings-card .invoice-edit-layout-section{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px 14px!important;
  padding:14px 16px!important;
  border:1px solid #d8e5f2!important;
  border-left:4px solid #0f4f8c!important;
  border-radius:8px!important;
  background:#fbfdff!important;
}
.invoice-settings-card .invoice-edit-layout-section[hidden]{
  display:none!important;
}
.invoice-settings-card .invoice-edit-layout-section h3{
  grid-column:1/-1!important;
  margin:0!important;
  font-size:16px!important;
}
.invoice-settings-card .invoice-format-choice{
  grid-template-columns:minmax(180px,240px) minmax(180px,1fr)!important;
  gap:12px!important;
}
.invoice-settings-card .invoice-format-choice .format-card:nth-of-type(2){
  display:none!important;
}
.invoice-settings-card .invoice-label-panel{
  padding:14px 16px!important;
  gap:10px!important;
  border-radius:8px!important;
}
.invoice-settings-card .invoice-label-panel h3,
.invoice-settings-card .settings-page-intro h3{
  margin:0 0 6px!important;
  font-size:16px!important;
}
.invoice-settings-card .invoice-label-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px 14px!important;
}
.invoice-settings-card label{
  gap:4px!important;
}
.invoice-settings-card input,
.invoice-settings-card select,
.invoice-settings-card textarea{
  border-radius:5px!important;
}
.invoice-settings-card .settings-rich-editor textarea{
  min-height:110px!important;
}
.invoice-settings-card .business-settings-actions{
  padding:12px!important;
}
@media(max-width:1000px){
  .invoice-settings-card .invoice-layout-card-grid,
  .invoice-settings-card .invoice-label-grid,
  .invoice-settings-card .invoice-edit-layout-section{
    grid-template-columns:1fr 1fr!important;
  }
}
@media(max-width:640px){
  .invoice-settings-card .invoice-settings-title{
    display:grid!important;
  }
  .invoice-settings-card .invoice-layout-card-grid,
  .invoice-settings-card .invoice-label-grid,
  .invoice-settings-card .invoice-edit-layout-section{
    grid-template-columns:1fr!important;
  }
}

/* Final print-settings page overrides: keep layout cards light and tabbed */
.invoice-settings-card .invoice-settings-tabs{
  flex-wrap:wrap!important;
  gap:6px!important;
  border-bottom:1px solid #d8e5f2!important;
  padding-bottom:8px!important;
}
.invoice-settings-card .invoice-settings-tabs button,
.invoice-settings-card .invoice-settings-tabs button.layout-tab,
.invoice-settings-card .invoice-settings-tabs button.active{
  background:#f8fbff!important;
  color:#0f4f8c!important;
  border:1px solid #cfe0ef!important;
  border-radius:7px!important;
  box-shadow:none!important;
  min-height:36px!important;
  padding:8px 13px!important;
  font-size:12px!important;
  line-height:1.2!important;
}
.invoice-settings-card .invoice-settings-tabs button.active{
  background:#eaf4fb!important;
  border-color:#7eb6df!important;
  color:#0b3e70!important;
}
.invoice-settings-card .print-tab-panel{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px 16px!important;
  padding:16px 18px!important;
  border:1px solid #d8e5f2!important;
  border-radius:8px!important;
  background:#fff!important;
}
.invoice-settings-card .print-tab-panel[hidden]{
  display:none!important;
}
.invoice-settings-card .print-tab-panel>.wide,
.invoice-settings-card .print-tab-panel>.settings-page-intro,
.invoice-settings-card .print-tab-panel>.invoice-label-panel,
.invoice-settings-card .print-tab-panel>.settings-check-grid,
.invoice-settings-card .print-tab-panel>.invoice-format-choice{
  grid-column:1/-1!important;
}
.invoice-settings-card .invoice-layout-card,
.invoice-settings-card .invoice-layout-card.selected,
.invoice-settings-card .invoice-layout-card:focus,
.invoice-settings-card .invoice-layout-card:hover{
  background:#f8fbff!important;
  background-image:none!important;
  color:#0f4f8c!important;
  border:1px solid #cfe0ef!important;
  border-radius:8px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.05)!important;
  cursor:pointer!important;
  outline:none!important;
}
.invoice-settings-card .invoice-layout-card.selected{
  border-color:#5aa3d2!important;
  background:#edf7ff!important;
}
.invoice-settings-card .invoice-layout-card:focus{
  box-shadow:0 0 0 3px rgba(90,163,210,.24)!important;
}
.invoice-settings-card .invoice-edit-layout-section{
  margin-top:14px!important;
}
.invoice-settings-card .invoice-header-preview{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:120px!important;
  margin:8px 0 12px!important;
  padding:10px!important;
  border:1px dashed #b7d5eb!important;
  border-radius:8px!important;
  background:#f8fbff!important;
  overflow:hidden!important;
}
.invoice-settings-card .invoice-header-preview img{
  display:block!important;
  max-width:100%!important;
  max-height:180px!important;
  object-fit:contain!important;
}
.invoice-settings-card .invoice-header-preview.empty{
  color:#64748b!important;
  font-size:13px!important;
  font-weight:750!important;
}
@media(max-width:900px){
  .invoice-settings-card .print-tab-panel{
    grid-template-columns:1fr!important;
  }
}

/* Product & Stock Control refinements */
.inventory-summary-metrics{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:stretch!important;
}
.inventory-summary-metrics .metric-card{
  min-width:0!important;
  padding:9px 11px!important;
  border-radius:7px!important;
}
.inventory-summary-metrics .metric-card span{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:10px!important;
}
.inventory-summary-metrics .metric-card strong{
  font-size:17px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.product-tab-search{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) auto auto!important;
  gap:8px!important;
  align-items:end!important;
  margin:0 0 10px!important;
  padding:9px 10px!important;
  border:1px solid #d8e5f2!important;
  border-radius:8px!important;
  background:#f8fbff!important;
}
.product-tab-search label{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
  color:#334155!important;
  font-size:11px!important;
  font-weight:850!important;
}
.product-tab-search input{
  height:34px!important;
  border:1px solid #cfddeb!important;
  border-radius:7px!important;
  padding:7px 10px!important;
  font-size:12px!important;
  background:#fff!important;
}
.product-bulk-action-bar{
  position:sticky!important;
  bottom:0!important;
  z-index:8!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  margin-top:10px!important;
  padding:7px 10px!important;
  border-top:2px solid #1f2937!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 -8px 18px rgba(15,23,42,.08)!important;
}
.product-bulk-action-bar button{
  min-height:28px!important;
  border:0!important;
  border-radius:999px!important;
  padding:5px 10px!important;
  background:#3d7f1e!important;
  color:#fff!important;
  font-size:10.5px!important;
  font-weight:900!important;
  box-shadow:0 2px 0 rgba(0,0,0,.08)!important;
}
.product-bulk-action-bar button:hover:not(:disabled){
  filter:brightness(.96)!important;
}
.product-bulk-action-bar button:disabled{
  opacity:.45!important;
  cursor:not-allowed!important;
}
.product-bulk-action-bar .product-bulk-danger{
  background:#f43f5e!important;
}
.product-bulk-action-bar .product-bulk-warning{
  background:#f59e0b!important;
}
.product-active-toggle-group{
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  overflow:hidden!important;
  border:1px solid #cfe3f5!important;
  box-shadow:0 2px 0 rgba(0,0,0,.07)!important;
}
.product-bulk-action-bar .product-active-toggle-group button{
  border-radius:0!important;
  box-shadow:none!important;
  margin:0!important;
  border:0!important;
}
.product-bulk-action-bar .product-active-toggle-group button + button{
  border-left:1px solid rgba(255,255,255,.45)!important;
}
.product-bulk-action-bar .product-active-toggle-group .product-bulk-activate{
  background:#15803d!important;
}
.product-bulk-action-bar .product-active-toggle-group .product-bulk-warning{
  background:#f59e0b!important;
}
.product-bulk-modal-card{
  width:min(1320px,96vw)!important;
  max-width:1320px!important;
  max-height:88vh!important;
  overflow:auto!important;
  display:block!important;
  grid-template-columns:none!important;
  padding:14px!important;
  border:1px solid #cfe0ef!important;
  border-top:4px solid #0f75bc!important;
  border-radius:10px!important;
  background:#fbfdff!important;
}
.product-bulk-modal-card > div:first-child{
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  gap:4px 12px!important;
  align-items:start!important;
}
.product-bulk-modal-card > div:first-child .modal-kicker{
  grid-row:1 / span 2!important;
  margin:2px 0 0!important;
  width:auto!important;
  white-space:nowrap!important;
}
.product-bulk-modal-card > div:first-child h3,
.product-bulk-modal-card > div:first-child .erp-confirm-copy{
  min-width:0!important;
}
.product-bulk-modal-fields{
  display:grid!important;
  grid-template-columns:minmax(180px,320px)!important;
  gap:8px!important;
  margin-top:10px!important;
  padding:10px!important;
  border:1px solid #d7e7f5!important;
  border-radius:8px!important;
  background:#f8fcff!important;
}
.product-bulk-modal-fields label{
  display:grid!important;
  gap:4px!important;
  color:#334155!important;
  font-size:11px!important;
  font-weight:850!important;
}
.product-bulk-modal-fields input,
.product-bulk-modal-fields select{
  height:31px!important;
  border:1px solid #cfddeb!important;
  border-radius:6px!important;
  padding:5px 8px!important;
  background:#fff!important;
  font-size:11px!important;
}
.product-bulk-edit-workspace{
  margin-top:10px!important;
  padding:10px!important;
  border:1px solid #d7e7f5!important;
  border-radius:8px!important;
  background:#f8fcff!important;
  overflow:hidden!important;
}
.product-bulk-edit-search{
  display:block!important;
  width:min(620px,100%)!important;
  height:31px!important;
  margin:0 0 10px!important;
  border:1px solid #cfddeb!important;
  border-radius:6px!important;
  padding:5px 9px!important;
  background:#fff!important;
  font-size:11px!important;
}
.product-bulk-edit-table{
  display:grid!important;
  gap:5px!important;
  min-width:0!important;
  width:100%!important;
}
.product-bulk-edit-head,
.product-bulk-edit-row{
  display:grid!important;
  grid-template-columns:minmax(150px,1.2fr) minmax(70px,.45fr) minmax(112px,.66fr) minmax(98px,.58fr) minmax(82px,.46fr) minmax(112px,.66fr) minmax(64px,.36fr) minmax(56px,.32fr) minmax(70px,.4fr) minmax(58px,.32fr) minmax(116px,.64fr)!important;
  gap:5px!important;
  align-items:center!important;
}
.product-bulk-edit-head{
  padding:6px 8px!important;
  border-radius:6px!important;
  background:#e7f4fd!important;
  color:#12324d!important;
  font-size:9px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
}
.product-bulk-edit-row{
  padding:6px 8px!important;
  border:1px solid #d8e7f5!important;
  border-left:3px solid #8ac5e8!important;
  border-radius:7px!important;
  background:#fff!important;
  box-shadow:0 2px 7px rgba(15,23,42,.035)!important;
}
.product-bulk-edit-row:nth-child(even){
  background:#f9fdff!important;
}
.product-bulk-edit-row input,
.product-bulk-edit-row select{
  width:100%!important;
  min-width:0!important;
  height:28px!important;
  border:1px solid #cfddeb!important;
  border-radius:6px!important;
  padding:4px 6px!important;
  background:#fff!important;
  color:#1f2937!important;
  font-size:10px!important;
}
.product-bulk-image-url-cell{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 28px!important;
  gap:4px!important;
  align-items:center!important;
  min-width:0!important;
}
.product-bulk-image-search{
  width:28px!important;
  height:28px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #b7d5eb!important;
  border-radius:6px!important;
  background:#eaf4fb!important;
  color:#0f4f8c!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:0 2px 7px rgba(15,79,140,.09)!important;
}
.product-bulk-image-search:hover{
  background:#d9ecfb!important;
  border-color:#7db7df!important;
}
.product-bulk-modal-card .modal-kicker{
  color:#0f75bc!important;
  letter-spacing:.09em!important;
  font-size:11px!important;
  line-height:1.15!important;
}
.product-bulk-modal-card h3{
  color:#202452!important;
  font-size:18px!important;
  font-weight:850!important;
  margin:0!important;
}
.product-bulk-modal-card .erp-confirm-copy{
  font-size:11.5px!important;
  line-height:1.35!important;
}
.product-bulk-modal-card .erp-confirm-actions{
  position:sticky!important;
  bottom:-1px!important;
  margin:10px -4px -4px!important;
  padding:9px 4px 4px!important;
  background:linear-gradient(180deg,rgba(251,253,255,0),#fbfdff 34%)!important;
}
@media(max-width:1100px){
  .inventory-summary-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:720px){
  .product-tab-search,
  .product-bulk-modal-fields{
    grid-template-columns:1fr!important;
  }
}

/* Mobile responsiveness audit fixes: contain wide desktop tools inside their own scrollers. */
@media(max-width:900px){
  *,
  *::before,
  *::after{
    box-sizing:border-box;
  }
  .shell,
  main,
  .topbar,
  .card,
  .dashboard-grid,
  .dashboard-grid.lower,
  .dashboard-kpis,
  .dashboard-actions,
  .stock-page-shell,
  .stock-standard-head,
  .stock-operation-card,
  .stock-list-card,
  .purchase-entry-card,
  .purchase-return-card,
  .purchase-list-card,
  .label-builder,
  .label-section,
  .report-list-card,
  .contacts-list-card,
  .product-list-card,
  .settings-card,
  .invoice-settings-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .stock-page-shell,
  .label-builder{
    overflow:hidden!important;
  }
  .stock-standard-head,
  .stock-list-title,
  .stock-operation-card,
  .stock-list-card,
  .purchase-entry-card,
  .purchase-list-card,
  .purchase-return-card,
  .label-section{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .dashboard-grid,
  .dashboard-grid.lower,
  .dashboard-kpis,
  .dashboard-actions,
  .metrics,
  .operation-grid,
  .module-grid,
  .purchase-sections,
  .purchase-summary,
  .label-options-grid,
  .label-footer-row,
  .label-product-search,
  .stock-operation-form,
  .stock-details-grid,
  .stock-list-toolbar{
    grid-template-columns:1fr!important;
  }
  .label-product-search,
  .label-search-results,
  .label-product-table-wrap,
  .label-options-grid,
  .label-footer-row{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .label-product-table-wrap,
  .purchase-table-wrap,
  .stock-entry-table,
  .table-wrap,
  .report-table-wrap,
  .product-table-wrap,
  .contact-table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:visible;
    -webkit-overflow-scrolling:touch;
    contain:paint;
  }
  .dashboard-grid .card,
  .dashboard-grid.lower .card{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
    contain:paint;
  }
  .purchase-entry-card .purchase-table-wrap{
    max-height:420px!important;
    overflow:auto!important;
  }
  .purchase-sheet{
    width:1420px!important;
    max-width:none!important;
    min-width:1420px!important;
  }
  .stock-entry-head,
  .stock-entry-row{
    width:720px!important;
    max-width:none!important;
    min-width:720px!important;
  }
  .stock-data-table,
  .report-data-table,
  .label-product-table,
  .data-table,
  table{
    max-width:none!important;
  }
  .stock-product-search{
    grid-template-columns:42px minmax(0,1fr)!important;
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .stock-product-search select,
  .stock-product-search input,
  .stock-list-toolbar input,
  .label-product-search input{
    min-width:0!important;
    width:100%!important;
  }
  .label-footer-row{
    gap:12px!important;
  }
}

@media(max-width:520px){
  .label-section,
  .stock-operation-card,
  .stock-list-card,
  .purchase-entry-card,
  .purchase-list-card,
  .purchase-return-card{
    padding:10px!important;
  }
  .purchase-sheet{
    width:1200px!important;
    min-width:1200px!important;
  }
}

.maintenance-combo-menu button,
.maintenance-combo-menu button:not(.secondary):not(.ghost):not(.danger):not(.disabled){
  display:block!important;
  width:100%!important;
  min-height:0!important;
  padding:9px 16px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#242a33!important;
  box-shadow:none!important;
  transform:none!important;
  text-align:left!important;
  justify-content:flex-start!important;
  font-size:14px!important;
  font-weight:550!important;
  line-height:1.35!important;
}
.maintenance-combo-menu button:first-child,
.maintenance-combo-menu button:first-child:not(.secondary):not(.ghost):not(.danger):not(.disabled){
  margin:0 7px 2px!important;
  width:calc(100% - 14px)!important;
  border-radius:9px!important;
  background:#007fff!important;
  color:#fff!important;
}
.maintenance-combo-menu button:hover,
.maintenance-combo-menu button:focus,
.maintenance-combo-menu button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{
  background:#eef6ff!important;
  color:#0f4f8c!important;
  box-shadow:none!important;
  transform:none!important;
}
.maintenance-combo-menu button:first-child:hover,
.maintenance-combo-menu button:first-child:focus,
.maintenance-combo-menu button:first-child:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.maintenance-combo-menu button:first-child:not(.secondary):not(.ghost):not(.danger):not(.disabled):focus{
  background:#007fff!important;
  color:#fff!important;
}

.search-results,
.product-search-results,
.stock-search-results,
.quote-search-results,
.purchase-return-results,
.label-search-results{
  max-height:260px!important;
  overflow:auto!important;
  padding:7px 0!important;
  border:1px solid #b8c5d3!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:0 14px 34px rgba(15,23,42,.18)!important;
  gap:0!important;
}
.search-results button,
.product-search-results button,
.stock-search-results button,
.quote-search-results button,
.purchase-return-results button,
.label-search-results button,
.search-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.product-search-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.stock-search-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.quote-search-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.purchase-return-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled),
.label-search-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled){
  display:block!important;
  width:100%!important;
  min-height:0!important;
  padding:9px 16px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#242a33!important;
  box-shadow:none!important;
  transform:none!important;
  text-align:left!important;
  justify-content:flex-start!important;
  font-size:14px!important;
  font-weight:550!important;
  line-height:1.35!important;
}
.search-results button b,
.product-search-results button b,
.stock-search-results button b,
.quote-search-results button b,
.purchase-return-results button b,
.label-search-results button b{
  color:inherit!important;
  font-size:14px!important;
  line-height:1.35!important;
}
.search-results button small,
.product-search-results button small,
.stock-search-results button small,
.quote-search-results button small,
.purchase-return-results button small,
.label-search-results button small{
  display:block!important;
  margin-top:2px!important;
  color:#667085!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.25!important;
}
.search-results button:hover,
.search-results button:focus,
.product-search-results button:hover,
.product-search-results button:focus,
.stock-search-results button:hover,
.stock-search-results button:focus,
.quote-search-results button:hover,
.quote-search-results button:focus,
.purchase-return-results button:hover,
.purchase-return-results button:focus,
.label-search-results button:hover,
.label-search-results button:focus,
.search-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.product-search-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.stock-search-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.quote-search-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.purchase-return-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,
.label-search-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{
  background:#eef6ff!important;
  color:#0f4f8c!important;
  box-shadow:none!important;
  transform:none!important;
}
.search-results button.is-active,
.search-results button[aria-selected="true"],
.product-search-results button.is-active,
.product-search-results button[aria-selected="true"],
.stock-search-results button.is-active,
.stock-search-results button[aria-selected="true"],
.quote-search-results button.is-active,
.quote-search-results button[aria-selected="true"],
.purchase-return-results button.is-active,
.purchase-return-results button[aria-selected="true"],
.label-search-results button.is-active,
.label-search-results button[aria-selected="true"]{
  margin:0 7px 2px!important;
  width:calc(100% - 14px)!important;
  border-radius:9px!important;
  background:#007fff!important;
  color:#fff!important;
}
.search-results button.is-active small,
.search-results button[aria-selected="true"] small,
.product-search-results button.is-active small,
.product-search-results button[aria-selected="true"] small,
.stock-search-results button.is-active small,
.stock-search-results button[aria-selected="true"] small,
.quote-search-results button.is-active small,
.quote-search-results button[aria-selected="true"] small,
.purchase-return-results button.is-active small,
.purchase-return-results button[aria-selected="true"] small,
.label-search-results button.is-active small,
.label-search-results button[aria-selected="true"] small{
  color:rgba(255,255,255,.82)!important;
}

/* Sales, quotation and proforma: product-name suggestions mirror the adjacent
   Select Product pull-down and must sit above the entry table. */
.quote-product-search{isolation:isolate!important;z-index:30!important}
.quote-product-search .quote-search-results{
  z-index:999!important;
  left:38px!important;
  right:42px!important;
  top:calc(100% + 4px)!important;
  display:none!important;
  padding:4px 0!important;
  background:#fff!important;
  border:1px solid #d6dde8!important;
  border-radius:0 0 8px 8px!important;
  box-shadow:0 10px 24px rgba(15,23,42,.16)!important;
  max-height:300px!important;
}
.quote-product-search .quote-search-results:not(:empty){display:block!important}
.quote-product-search .quote-search-results button,
.quote-product-search .quote-search-results button:not(.secondary):not(.ghost):not(.danger):not(.disabled){
  display:block!important;width:100%!important;padding:7px 11px!important;margin:0!important;
  border:0!important;border-radius:0!important;border-bottom:1px solid #edf0f4!important;
  background:#fff!important;color:#30343a!important;font-size:11px!important;text-align:left!important;
  font-weight:500!important;line-height:1.25!important;
}
.quote-product-search .quote-search-results button:last-child{border-bottom:0!important}
.quote-product-search .quote-search-results button:hover,
.quote-product-search .quote-search-results button:focus{background:#f2f7fc!important;color:#0f4f8c!important;outline:none!important}
.quote-product-search .quote-search-results button b{color:inherit!important;font-size:11px!important;font-weight:600!important;line-height:1.25!important}
.quote-product-search .quote-search-results button small{color:#64748b!important;font-size:10px!important;font-weight:400!important;line-height:1.2!important}

/* Project quote proposal editor */
.project-proposal-card{display:grid;gap:14px}.project-proposal-heading{display:flex;align-items:start;justify-content:space-between;gap:18px}.project-proposal-heading h3{margin:2px 0 5px;color:#123b68;font-size:20px}.project-proposal-heading small{color:#64748b;max-width:680px;display:block;line-height:1.45}.project-proposal-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.project-proposal-actions label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#475569}.project-proposal-actions select{min-width:200px}.project-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:9px;border:1px solid #cddff3;background:#f6faff;border-radius:10px}.project-editor-toolbar button{border:1px solid #bad1e8;border-radius:6px;background:#fff;color:#15487b;padding:6px 9px;cursor:pointer;font:inherit;font-size:12px;font-weight:800}.project-editor-toolbar button:hover{background:#e7f2fd}.project-token-help{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-left:auto;font-size:11px;color:#64748b;font-weight:700}.project-token-help button{font-size:10px;padding:4px 6px}.project-proposal-editor{min-height:360px;padding:26px 32px;border:1px solid #bcd2e8;border-radius:10px;background:#fff;color:#1e293b;line-height:1.55;box-shadow:inset 0 1px 2px rgba(15,23,42,.03);outline:none}.project-proposal-editor:focus{border-color:#2580d8;box-shadow:0 0 0 3px rgba(37,128,216,.13)}.project-proposal-editor h2{font-size:22px;color:#0f4f8c;margin:20px 0 8px;padding-bottom:5px;border-bottom:1px solid #d9e8f7}.project-proposal-editor h2:first-child{margin-top:0}.project-proposal-editor h3{font-size:17px;color:#123b68;margin:16px 0 6px}.project-proposal-editor p{margin:7px 0}.project-proposal-editor ul,.project-proposal-editor ol{padding-left:24px;margin:8px 0}.project-proposal-editor table{width:100%;border-collapse:collapse;margin:12px 0}.project-proposal-editor th,.project-proposal-editor td{border:1px solid #b8cce0;padding:8px;text-align:left}.project-proposal-editor th{background:#dff0ff;color:#123b68}.project-source-document{display:flex;align-items:end;justify-content:space-between;gap:12px;padding-top:4px;border-top:1px solid #e0eaf4}.project-source-document label{display:grid;gap:5px;font-size:13px;font-weight:800;color:#334155}.project-source-document small{font-weight:600;color:#64748b}.project-source-document .project-source-file-state{color:#0f6fb5;font-weight:800;min-height:1.2em}@media(max-width:760px){.project-proposal-heading,.project-source-document{display:grid}.project-token-help{margin-left:0}.project-proposal-editor{padding:18px}.project-proposal-actions select{min-width:0;width:100%}}
.project-proposal-preview-card{margin-top:14px}.project-proposal-preview{color:#1e293b;line-height:1.55}.project-proposal-preview h2{font-size:21px;color:#0f4f8c;margin:20px 0 8px;padding-bottom:5px;border-bottom:1px solid #d9e8f7}.project-proposal-preview h3{font-size:17px;color:#123b68;margin:16px 0 6px}.project-proposal-preview p{margin:7px 0}.project-proposal-preview ul,.project-proposal-preview ol{padding-left:24px;margin:8px 0}.project-proposal-preview table{width:100%;border-collapse:collapse;margin:12px 0}.project-proposal-preview th,.project-proposal-preview td{border:1px solid #b8cce0;padding:8px;text-align:left}.project-proposal-preview th{background:#dff0ff;color:#123b68}

/* Unified compact ERP interface — intentionally placed last to supersede older
   page-specific themes while retaining their layouts and workflow behaviour. */
:root{--erp-navy:#0f4f8c;--erp-navy-hover:#0a3b68;--erp-blue-soft:#eaf3ff;--erp-blue-border:#c9ddef;--erp-red:#b42318;--erp-red-soft:#fff1f2;--erp-green:#167a43;--erp-amber:#9a5b00;--erp-control-h:34px}
body{font-size:13px;line-height:1.42}
.page-head h2{font-size:26px!important}.page-head p,.page-head small{font-size:13px!important}.eyebrow{font-size:11px!important}
button:not(.tox button),.btn{min-height:var(--erp-control-h);padding:7px 12px!important;border-radius:7px!important;font-size:12px!important;font-weight:750!important;line-height:1.15!important;box-shadow:none!important}
button:not(.secondary):not(.ghost):not(.danger):not(.disabled),.btn:not(.secondary):not(.ghost):not(.danger){background:var(--erp-navy)!important;border-color:var(--erp-navy)!important;color:#fff!important}
button:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover,.btn:not(.secondary):not(.ghost):not(.danger):hover{background:var(--erp-navy-hover)!important;border-color:var(--erp-navy-hover)!important;transform:none!important}
.btn.secondary,button.secondary{background:var(--erp-blue-soft)!important;border:1px solid var(--erp-blue-border)!important;color:var(--erp-navy)!important}.btn.secondary:hover,button.secondary:hover{background:#dcecfb!important;color:var(--erp-navy-hover)!important}
.btn.ghost,button.ghost{background:#fff!important;border:1px solid var(--erp-blue-border)!important;color:var(--erp-navy)!important}.btn.ghost:hover,button.ghost:hover{background:#f4f9fe!important}
.btn.danger,button.danger{background:var(--erp-red)!important;border-color:var(--erp-red)!important;color:#fff!important}.btn.danger:hover,button.danger:hover{background:#8f1212!important;border-color:#8f1212!important}
.btn.success,button.success{background:var(--erp-green)!important;border-color:var(--erp-green)!important;color:#fff!important}.btn.warning,button.warning{background:#fff4d8!important;border:1px solid #f0cf7a!important;color:var(--erp-amber)!important}
input:not([type=checkbox]):not([type=radio]),select,textarea{min-height:var(--erp-control-h)!important;padding:7px 10px!important;border:1px solid #cbd9e6!important;border-radius:6px!important;font-size:12px!important;line-height:1.3!important;box-shadow:none!important}
textarea{min-height:72px!important}input:focus,select:focus,textarea:focus{border-color:#2878b9!important;box-shadow:0 0 0 3px rgba(40,120,185,.12)!important}
label,.erp-form label,.quote-form-grid label,.purchase-entry-card label,.expense-grid label,.expense-entry-form label,.business-settings-form label,.user-editor-form label,.stock-operation-form label,.stock-product-form label{gap:4px!important;font-size:12px!important;font-weight:700!important;color:#334155!important}
.erp-form,.quote-form-grid,.quote-adjust-grid,.quote-delivery-grid,.expense-grid,.purchase-payment-grid,.purchase-discount-grid,.purchase-shipping-grid,.business-settings-form,.user-editor-form,.stock-operation-form,.stock-product-form{gap:12px 16px!important}
.card{padding:18px 20px!important}.section-title h3,.card h3{font-size:18px!important}.section-title small,.card small{font-size:12px!important}
.data-table th{padding:9px 10px!important;font-size:11px!important;letter-spacing:.025em!important}.data-table td{padding:8px 10px!important;font-size:12px!important}.table-wrap{border-color:#d7e3ee!important}
.filters-card,.purchase-filter-card,.report-filter-card,.contact-filter-card{border:1px solid #d8e5ef!important;box-shadow:none!important}.filters-summary,.purchase-filter-card summary,.report-filter-card summary.filters-summary,.filter-heading{margin:10px 14px!important;padding:7px 12px!important;background:var(--erp-navy)!important;border-color:var(--erp-navy)!important;border-radius:7px!important;font-size:12px!important}
.filter-bar button[type=submit],.purchase-filter-grid button[type=submit],.report-filter-grid button[type=submit],.contact-filter-shell .contact-filter-actions button,form.contact-filters button[type=submit],form.contact-filters button:not([type]),.stock-history-filters button[type=submit]{display:inline-flex!important;visibility:visible!important;opacity:1!important;background:var(--erp-navy)!important;color:#fff!important}
.filter-bar .btn,.purchase-filter-actions .btn,.report-filter-actions .btn,.contact-filter-actions .btn,.stock-history-filters .btn{min-width:88px!important}
.icon-edit,.icon-delete{width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;border-radius:7px!important}.icon-edit{background:var(--erp-blue-soft)!important;color:var(--erp-navy)!important}.icon-delete{background:var(--erp-blue-soft)!important;color:var(--erp-red)!important}.icon-edit:hover{background:#dcecfb!important;color:var(--erp-navy-hover)!important}.icon-delete:hover{background:#fee2e2!important;color:#8f1212!important}
button.icon-edit:not(.secondary):not(.ghost):not(.danger):not(.disabled){background:var(--erp-blue-soft)!important;border-color:var(--erp-blue-border)!important;color:var(--erp-navy)!important}button.icon-delete:not(.secondary):not(.ghost):not(.danger):not(.disabled){background:var(--erp-blue-soft)!important;border-color:var(--erp-blue-border)!important;color:var(--erp-red)!important}button.icon-edit:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{background:#dcecfb!important;color:var(--erp-navy-hover)!important}button.icon-delete:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{background:#fee2e2!important;color:#8f1212!important}
button.table-action-pill.delete:not(.secondary):not(.ghost):not(.danger):not(.disabled){background:var(--erp-red)!important;border-color:var(--erp-red)!important;color:#fff!important}button.table-action-pill.delete:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{background:#8f1212!important;border-color:#8f1212!important;color:#fff!important}

/* Shared record actions: the same visual language on every list. */
:root{--erp-action-view:#2fa9e7;--erp-action-view-hover:#168dca;--erp-action-edit:#f5a524;--erp-action-edit-hover:#dd8e0d;--erp-action-delete:#c62820;--erp-action-delete-hover:#a91c16}
.table-action-pill{min-height:36px!important;padding:8px 13px!important;border:1px solid transparent!important;border-radius:7px!important;font-size:12px!important;font-weight:800!important;letter-spacing:0!important}
.table-action-pill.view,.table-action-pill.view:visited{background:var(--erp-action-view)!important;border-color:var(--erp-action-view)!important;color:#fff!important}.table-action-pill.view:hover{background:var(--erp-action-view-hover)!important;border-color:var(--erp-action-view-hover)!important;color:#fff!important}
.table-action-pill.edit,.table-action-pill.edit:visited{background:var(--erp-action-edit)!important;border-color:var(--erp-action-edit)!important;color:#fff!important}.table-action-pill.edit:hover{background:var(--erp-action-edit-hover)!important;border-color:var(--erp-action-edit-hover)!important;color:#fff!important}
.table-action-pill.delete,button.table-action-pill.delete:not(.secondary):not(.ghost):not(.danger):not(.disabled){background:var(--erp-action-delete)!important;border-color:var(--erp-action-delete)!important;color:#fff!important}.table-action-pill.delete:hover,button.table-action-pill.delete:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{background:var(--erp-action-delete-hover)!important;border-color:var(--erp-action-delete-hover)!important;color:#fff!important}
.icon-edit{background:var(--erp-action-edit)!important;border-color:var(--erp-action-edit)!important;color:#fff!important}.icon-edit:hover{background:var(--erp-action-edit-hover)!important;border-color:var(--erp-action-edit-hover)!important;color:#fff!important}.icon-delete{background:var(--erp-action-delete)!important;border-color:var(--erp-action-delete)!important;color:#fff!important}.icon-delete:hover{background:var(--erp-action-delete-hover)!important;border-color:var(--erp-action-delete-hover)!important;color:#fff!important}
button.icon-edit:not(.secondary):not(.ghost):not(.danger):not(.disabled){background:var(--erp-action-edit)!important;border-color:var(--erp-action-edit)!important;color:#fff!important}button.icon-delete:not(.secondary):not(.ghost):not(.danger):not(.disabled){background:var(--erp-action-delete)!important;border-color:var(--erp-action-delete)!important;color:#fff!important}button.icon-edit:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{background:var(--erp-action-edit-hover)!important;border-color:var(--erp-action-edit-hover)!important;color:#fff!important}button.icon-delete:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{background:var(--erp-action-delete-hover)!important;border-color:var(--erp-action-delete-hover)!important;color:#fff!important}

/* Compact user, employee, and role editors. */
.user-role-card form,.user-editor-form{padding:16px 20px!important}.user-editor-form{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px 14px!important}.user-editor-form .user-card-title{margin-bottom:2px!important}.user-card-title h3{font-size:18px!important}.user-editor-form .check{min-height:34px}.user-inline-check{margin-bottom:0!important}.user-form-actions{margin-top:2px!important}.user-form-actions .btn{padding:8px 14px!important}
.compact-details{margin:2px 0 0!important;padding:9px 11px!important;border:1px solid #d8e5ef!important;border-radius:7px!important;background:#f8fbfe!important}.compact-details summary{display:flex;align-items:center;gap:8px;cursor:pointer;color:#174a7c;font-size:12px;font-weight:800}.compact-details summary small{font-size:11px!important;font-weight:600}.compact-details[open] summary{margin-bottom:10px}.compact-details .user-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px 14px!important}.compact-details textarea{min-height:56px!important}
.employee-editor-form{grid-template-columns:repeat(5,minmax(0,1fr))!important}.employee-editor-form .wide{grid-column:1/-1}.employee-groups{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-3px 0 13px;font-size:12px;font-weight:750;color:#475569}.employee-group-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid #cfe0ef;border-radius:999px;background:#f4f9fe;color:#174a7c}.employee-group-chip a{color:#ce8311;text-decoration:none;font-weight:900}.group-delete{display:inline-flex!important;align-items:center;justify-content:center;min-height:18px!important;width:18px!important;height:18px!important;padding:0!important;border:0!important;border-radius:999px!important;background:#fee2e2!important;color:#b42318!important;font-size:15px!important;line-height:1!important}.employee-group-form{display:flex;align-items:end;gap:8px;padding:10px 20px 14px;border-top:1px solid #d8e5ef;background:#f8fbfe}.employee-group-form label{display:grid;gap:4px;min-width:260px;font-size:11px!important;font-weight:750!important;color:#475569}.employee-group-form input{min-height:32px!important}
.employee-master-table + *{clear:both}.user-list-card>.erp-table-tools:has(.erp-column-visibility[open]){margin-bottom:calc(min(52vh,420px) + 10px)!important}.erp-column-options label.is-required-column{background:#f8fafc!important;border-style:dashed!important;color:#64748b!important}.erp-column-options label.is-required-column input{cursor:not-allowed}.erp-column-options label.is-required-column em{margin-left:auto;font-size:10px;font-style:normal;font-weight:700;color:#64748b}
.user-role-card .role-name-field{margin-bottom:10px!important}.role-copy-permissions{margin-bottom:10px!important;padding:9px 10px!important;gap:8px!important}.role-copy-permissions strong{font-size:12px!important}.role-copy-permissions small{font-size:11px!important}.permissions-label{margin:7px 0!important;font-size:12px!important}.permission-group{grid-template-columns:170px minmax(0,1fr)!important;gap:14px!important;padding:10px 0!important}.permission-group-title{gap:7px!important}.permission-group-title h4{font-size:14px!important;font-weight:750!important}.permission-list{grid-template-columns:repeat(3,minmax(145px,1fr))!important;gap:7px 13px!important}.permission-option{min-height:22px!important;gap:7px!important;font-size:11px!important}.permission-option input{width:16px!important;height:16px!important}.select-all-option{font-size:11px!important}
@media(max-width:1050px){.user-editor-form,.employee-editor-form,.compact-details .user-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.permission-list{grid-template-columns:repeat(2,minmax(145px,1fr))!important}}@media(max-width:680px){.user-editor-form,.employee-editor-form,.compact-details .user-form-grid,.permission-list{grid-template-columns:1fr!important}.employee-group-form{align-items:stretch;flex-direction:column}.employee-group-form label{min-width:0}.permission-group{grid-template-columns:1fr!important}.user-role-card form,.user-editor-form{padding:14px!important}}

/* Contact filters keep Apply clear and Reset visible but secondary. */
.contact-filters label:has(input[name=contact_name]){min-width:360px!important}.contact-filter-actions{display:flex!important;align-items:center!important}.contact-filter-actions .contact-filter-apply{background:var(--erp-navy)!important;border-color:var(--erp-navy)!important;color:#fff!important}.contact-filter-actions .filter-reset,.contact-filter-actions .filter-reset:visited{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;padding:7px 12px!important;border:1px solid #94a3b8!important;border-radius:7px!important;background:#f8fafc!important;color:#334155!important;font-size:12px!important;font-weight:750!important;text-decoration:none!important}.contact-filter-actions .filter-reset:hover{background:#e2e8f0!important;border-color:#64748b!important;color:#0f172a!important}
.contact-filter-card:has(.contact-name-search-field){position:relative!important;z-index:100!important;overflow:visible!important}.contact-filter-shell,.contact-filters{overflow:visible!important}.contact-name-search-field{position:relative;z-index:101;display:block;min-width:360px;isolation:isolate}.contact-name-search-field input{width:100%}.contact-name-suggestions{position:absolute!important;z-index:9999!important;top:calc(100% + 4px)!important;left:0!important;right:auto!important;width:max-content!important;min-width:100%!important;display:grid!important;overflow:auto!important;max-height:260px!important}.contact-name-suggestions[hidden]{display:none!important}.contact-name-suggestions button,.contact-name-suggestions button:not(.secondary):not(.ghost):not(.danger):not(.disabled){display:block!important;min-height:0!important;width:100%!important;padding:9px 13px!important;margin:0!important;border:0!important;border-bottom:1px solid #e2eaf2!important;border-radius:0!important;background:#fff!important;color:#242a33!important;font-size:12px!important;font-weight:650!important;line-height:1.3!important;text-align:left!important;white-space:nowrap!important}.contact-name-suggestions button:last-child{border-bottom:0!important}.contact-name-suggestions button:hover,.contact-name-suggestions button:focus{background:#eef6ff!important;color:#0f4f8c!important}

/* Compact contact filters: keep the complete control set inside the card. */
.contact-filter-shell{min-width:0!important;width:100%!important}.contact-filter-head{width:100%!important;box-sizing:border-box!important}.contact-filter-actions{margin-left:auto!important;flex:0 0 auto!important;white-space:nowrap}.contact-filter-actions .btn{min-width:0!important;font-weight:650!important}.contact-filter-actions .filter-reset,.contact-filter-actions .filter-reset:visited{background:#f8fafc!important;border-color:#94a3b8!important;color:#334155!important}
.contact-filters{display:flex!important;flex-wrap:wrap!important;gap:8px 14px!important;padding:10px 14px 12px!important;align-items:end!important}.contact-filters label,.contact-filters .check{font-size:12px!important;font-weight:600!important;color:#475569!important}.contact-filters .check{height:34px!important;gap:5px!important}.contact-filters label:has(input[name=contact_name]){min-width:0!important;flex:0 1 390px!important}.contact-name-search-field{min-width:0!important}.contact-filters input,.contact-filters select{font-size:12px!important;font-weight:400!important}.contact-filters label:has(select){min-width:130px!important;flex:0 0 130px!important}.contact-filters label:has(input[type=date]){min-width:150px!important;flex:0 0 150px!important}
@media(max-width:760px){.contact-filter-head{align-items:flex-start!important;flex-wrap:wrap!important}.contact-filter-actions{margin-left:0!important}.contact-filters label:has(input[name=contact_name]){flex-basis:100%!important}.contact-name-suggestions{max-width:calc(100vw - 56px)!important}}
@media(max-width:760px){.card{padding:14px!important}.page-head h2{font-size:23px!important}.erp-form,.quote-form-grid,.quote-adjust-grid,.quote-delivery-grid,.expense-grid,.purchase-payment-grid,.purchase-discount-grid,.purchase-shipping-grid{gap:10px!important}}
.petty-cash-log{display:grid;gap:14px}.petty-cash-summary{display:grid;grid-template-columns:180px 220px 220px;gap:14px;align-items:end}.petty-cash-summary label{display:grid;gap:6px;font-weight:800;color:#334155}.petty-cash-summary input{font-weight:800}.petty-cash-summary input[readonly]{background:#eef6ef;color:#176338;border-color:#afd2b7}.finance-entry-lines{min-width:820px;border:1.5px solid #64748b!important}.finance-entry-lines th{background:#1f2937!important;color:#fff!important;text-align:center!important;border-right:1.5px solid #94a3b8!important}.finance-entry-lines th:last-child{border-right:0!important}.finance-entry-lines input{width:100%;min-width:90px;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:8px!important}.finance-entry-lines td{padding:0!important;vertical-align:middle;border-right:1.5px solid #94a3b8!important;border-top:1.5px solid #94a3b8!important}.finance-entry-lines td:last-child{border-right:0!important}.finance-entry-lines td:nth-child(2){min-width:300px}.finance-entry-lines td:nth-child(5){padding:8px!important;text-align:right;font-weight:800;background:#f7fafc}.finance-entry-lines .line-remove{margin:4px;padding:4px 8px}@media(max-width:760px){.petty-cash-summary{grid-template-columns:1fr}.finance-entry-lines{min-width:680px}}
.petty-cash-summary .petty-opening-field{background:#fff!important;color:#172033!important;border-color:#cbd5e1!important}.petty-cash-summary .petty-closing-field{background:#fff1f2!important;color:#b42318!important;border-color:#f3b6bf!important}.petty-cash-action-row{display:flex!important;align-items:center;gap:8px;flex-wrap:nowrap!important;margin-top:2px}.petty-cash-action-row form{margin:0}.petty-cash-action-row .badge{white-space:nowrap}.petty-cash-action-row .btn{white-space:nowrap}@media(max-width:760px){.petty-cash-action-row{flex-wrap:wrap!important}}
.finance-entry-lines .petty-cash-in,.finance-entry-lines .advance-cash-in,.petty-cash-saved .cash-in-value{color:#17803d!important;font-weight:800!important}
.finance-entry-lines .line-remove{margin:4px;padding:0}.petty-cash-saved td:last-child{text-align:center;white-space:nowrap}
.petty-cash-edit-form{margin:12px 0;padding:14px;border:1px solid #bfd5ea;background:#f8fbfe;border-radius:9px}.finance-edit-grid{display:grid;grid-template-columns:150px minmax(260px,1fr) 150px 150px auto;gap:10px;align-items:end}.finance-edit-grid label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#334155}.finance-edit-actions{display:flex;gap:7px;align-items:end}.finance-edit-actions .btn{white-space:nowrap}@media(max-width:900px){.finance-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-edit-actions{grid-column:span 2}}@media(max-width:560px){.finance-edit-grid{grid-template-columns:1fr}.finance-edit-actions{grid-column:auto}}
.finance-entry-lines select{width:100%;min-width:120px;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:8px!important}
.accounting-dashboard-stats{margin-bottom:18px}.accounting-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.accounting-menu-grid a{display:grid;gap:5px;padding:16px;border:1px solid #d4e1ef;border-radius:9px;background:#f8fbfe;color:#173b63;text-decoration:none}.accounting-menu-grid a:hover{border-color:#79aede;background:#eef6ff}.accounting-menu-grid b{font-size:15px}.accounting-menu-grid span{font-size:12px;color:#64748b;line-height:1.4}.accounting-ledger-card{margin-top:18px}@media(max-width:850px){.accounting-menu-grid{grid-template-columns:1fr 1fr}}@media(max-width:540px){.accounting-menu-grid{grid-template-columns:1fr}}
.accounting-ledger-card .ledger-document-link{display:inline;color:#155b9c!important;font-size:14px;font-weight:600;line-height:1.35;text-decoration:underline!important;text-decoration-thickness:1px;text-underline-offset:2px;cursor:pointer}.accounting-ledger-card .ledger-document-link:hover{color:#0c477c!important}.accounting-ledger-card .ledger-document-link:focus-visible{outline:2px solid #9fc5e8;outline-offset:2px;border-radius:2px}
.employee-advance-entry-lines{min-width:1120px}.employee-advance-entry-lines th:nth-child(1),.employee-advance-entry-lines td:nth-child(1){min-width:220px}.employee-advance-entry-lines th:nth-child(2),.employee-advance-entry-lines td:nth-child(2){min-width:125px}.employee-advance-entry-lines th:nth-child(3),.employee-advance-entry-lines td:nth-child(3){min-width:190px}.employee-advance-entry-lines td:nth-child(5){min-width:190px}.employee-advance-entry-lines td:nth-child(7){min-width:220px}.advance-category-add{align-items:end;margin-top:10px}.advance-category-add label{display:grid;gap:5px;font-weight:800;color:#334155}.advance-category-add input{min-width:230px}
.finance-panel>.toolbar form[enctype="multipart/form-data"]{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.finance-panel>.toolbar form[enctype="multipart/form-data"] input[type="file"]{max-width:245px}.finance-panel>.toolbar:has(form[enctype="multipart/form-data"]){display:flex!important;align-items:center;gap:8px;flex-wrap:nowrap!important}.finance-panel>.toolbar:has(form[enctype="multipart/form-data"]) .btn{white-space:nowrap}@media(max-width:760px){.finance-panel>.toolbar:has(form[enctype="multipart/form-data"]){flex-wrap:wrap!important}.finance-panel>.toolbar form[enctype="multipart/form-data"]{flex-wrap:wrap}}
.inline{display:inline}.icon-edit,.icon-delete{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;border-radius:7px;font-size:16px;font-weight:900;text-decoration:none;cursor:pointer}.icon-edit{background:#eaf3ff!important;color:#0f4f8c!important}.icon-delete{background:#eaf3ff!important;color:#b42318!important;margin-left:5px}.icon-edit:hover{background:#d8eafe!important;color:#083b6c!important}.icon-delete:hover{background:#fee2e2!important;color:#8f1212!important}

/* Payroll workspace: focused tabs, calendar, and form modals. */
.payroll-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px;padding:6px;border:1px solid #d8e4ef;border-radius:10px;background:#f8fbfe}.payroll-tabs a{padding:8px 13px;border-radius:7px;color:#41556c;font-size:13px;font-weight:750;text-decoration:none}.payroll-tabs a:hover{background:#e6f0f9;color:#0f4f8c}.payroll-tabs a.active{background:#174f86;color:#fff;box-shadow:0 2px 5px rgba(15,79,140,.18)}.payroll-tab-content[hidden],.payroll-leave-section[hidden],.payroll-history-card[hidden]{display:none!important}.payroll-history-card{margin-top:16px}.payroll-inline-entry,.payroll-leave-section .finance-statement-grid .subcard:first-child{display:none!important}.payroll-leave-filter{align-items:end!important;margin:12px 0}.payroll-leave-filter label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#41556c}.payroll-calendar{overflow:hidden;margin:14px 0;border:1px solid #d5e1ec;border-radius:9px;background:#fff}.payroll-calendar-head{padding:10px 14px;border-bottom:1px solid #d5e1ec;background:#f7fbff;color:#173b63;font-weight:800}.payroll-calendar-weekdays,.payroll-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.payroll-calendar-weekdays span{padding:7px 4px;border-bottom:1px solid #e2e8f0;background:#f8fafc;color:#64748b;font-size:11px;font-weight:800;text-align:center}.payroll-calendar-day{min-height:88px;padding:6px;border-right:1px solid #edf2f7;border-bottom:1px solid #edf2f7}.payroll-calendar-day:nth-child(7n){border-right:0}.payroll-calendar-day>b{display:block;margin-bottom:5px;color:#475569;font-size:12px}.payroll-calendar-day.muted{background:#fafcff}.leave-calendar-event{display:block;overflow:hidden;margin:3px 0;padding:3px 5px;border-radius:4px;background:#e6f0f9;color:#0f4f8c;font-size:10px;font-weight:700;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.payroll-modal[hidden]{display:none!important}.payroll-modal{position:fixed;z-index:10020;inset:0;display:grid;place-items:center;padding:18px}.payroll-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48)}.payroll-modal-card{position:relative;z-index:1;width:min(720px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:20px;border:1px solid #c8d9e8;border-radius:12px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.28)}.payroll-modal-card header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #e5edf5}.payroll-modal-card h3{margin:0;color:#1e3550;font-size:18px}.payroll-modal-actions{display:flex;justify-content:flex-end;gap:8px;grid-column:1/-1;margin-top:3px}@media(max-width:680px){.payroll-calendar-day{min-height:64px;padding:4px}.leave-calendar-event{font-size:9px}.payroll-tabs a{padding:7px 9px;font-size:12px}}
.project-proposal-editor img,.project-proposal-preview img{display:block;max-width:100%;height:auto;margin:12px 0;border:1px solid #d5e3f0;border-radius:6px}.project-total-entry-card{display:grid;grid-template-columns:minmax(260px,1fr) minmax(180px,250px) minmax(160px,220px) minmax(220px,1fr);gap:18px;align-items:end}.project-total-entry-card h3{margin:2px 0 5px;color:#123b68}.project-total-entry-card small{display:block;color:#64748b;line-height:1.45}.project-total-entry-card label{display:grid;gap:6px;font-weight:800;color:#334155}.project-total-entry-card input{font-weight:900;font-size:20px}.project-total-linked{border:1px solid #bcd7f0;background:#edf7ff;padding:12px;border-radius:8px;color:#35516f;white-space:normal}.project-total-linked b{display:block;font-size:20px;color:#0f4f8c;margin-top:3px}.project-total-linked small{margin-top:6px;font-style:italic}@media(max-width:1000px){.project-total-entry-card{grid-template-columns:1fr 1fr}.project-total-linked{grid-column:span 2}}@media(max-width:760px){.project-total-entry-card{grid-template-columns:1fr}.project-total-linked{grid-column:auto}}

/* Final TinyMCE skin: intentionally follows the neutral Word-style reference. */
.tox.tox-tinymce .tox-editor-header,.tox.tox-tinymce .tox-menubar,.tox.tox-tinymce .tox-toolbar-overlord,.tox.tox-tinymce .tox-toolbar__primary{background:#eef1f4!important;background-image:none!important}
.tox.tox-tinymce .tox-menubar{border-bottom:1px solid #e1e5e8!important}.tox.tox-tinymce .tox-toolbar-overlord{border-bottom:1px solid #e1e5e8!important}
.tox.tox-tinymce button.tox-mbtn,.tox.tox-tinymce button.tox-tbtn,.tox.tox-tinymce button.tox-tbtn--select{background:#fff!important;background-image:none!important;color:#3f4850!important;border:1px solid transparent!important;border-radius:3px!important;box-shadow:none!important;transform:none!important;font-weight:500!important}
.tox.tox-tinymce button.tox-mbtn:hover,.tox.tox-tinymce button.tox-mbtn--active,.tox.tox-tinymce button.tox-tbtn:hover,.tox.tox-tinymce button.tox-tbtn--enabled,.tox.tox-tinymce button.tox-tbtn--select:hover{background:#f1f3f5!important;color:#17212b!important;border-color:#d9dee3!important;box-shadow:none!important;transform:none!important}
.tox.tox-tinymce button.tox-mbtn:focus,.tox.tox-tinymce button.tox-tbtn:focus,.tox.tox-tinymce button.tox-tbtn--select:focus{background:#f7f8f9!important;border-color:#aeb8c1!important;box-shadow:0 0 0 2px rgba(100,116,139,.14)!important}
.tox.tox-tinymce button.tox-mbtn svg,.tox.tox-tinymce button.tox-tbtn svg,.tox.tox-tinymce button.tox-tbtn--select svg{fill:#4b5563!important}.tox.tox-tinymce button.tox-mbtn:hover svg,.tox.tox-tinymce button.tox-tbtn:hover svg,.tox.tox-tinymce button.tox-tbtn--enabled svg{fill:#17212b!important}
.tox.tox-tinymce .tox-toolbar__group{border-color:#e1e5e8!important}.tox.tox-tinymce .tox-statusbar{background:#fafafa!important;color:#6b7280!important}
.tinymce-page-ruler{position:relative;height:16px;margin:0 12px;border-bottom:1px solid #c7cdd3;background:linear-gradient(90deg,#edf0f2 0,#edf0f2 48px,#fff 48px,#fff calc(100% - 48px),#edf0f2 calc(100% - 48px));overflow:hidden;pointer-events:none}.tinymce-page-ruler::after{content:'';position:absolute;left:48px;right:48px;bottom:0;border-bottom:1px solid #929ba4}.page-ruler-left-margin,.page-ruler-right-margin{position:absolute;z-index:1;bottom:0;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:7px solid #64707b}.page-ruler-left-margin{left:43px}.page-ruler-right-margin{right:43px}

/* Stock Adjustment uses the same product search treatment as Add Sales. */
.stock-product-search.sales-style-product-search{
  display:grid!important;
  grid-template-columns:50px minmax(240px,1fr) minmax(240px,.72fr) 50px!important;
  width:min(1580px,100%)!important;
  margin:0 auto 16px!important;
  border:1px solid #d6dde8!important;
  border-radius:999px!important;
  background:#f3f4f6!important;
  box-shadow:none!important;
}
.stock-product-search.sales-style-product-search>span{
  height:42px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:#8bc349!important;
  font-size:20px!important;
  font-weight:900!important;
}
.stock-product-search.sales-style-product-search input,
.stock-product-search.sales-style-product-search select{
  height:42px!important;
  border:0!important;
  border-left:1px solid #d6dde8!important;
  border-radius:0!important;
  background:#f3f4f6!important;
  color:#334155!important;
  padding:0 16px!important;
  font-size:14px!important;
}
.stock-product-search.sales-style-product-search select{background:#fff!important}
.stock-product-search.sales-style-product-search .stock-search-add{
  height:42px!important;
  border:0!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#8bc349!important;
  box-shadow:none!important;
  font-size:20px!important;
}
.stock-product-search.sales-style-product-search .stock-search-results{
  left:38px!important;
  right:42px!important;
  top:calc(100% + 4px)!important;
  z-index:999!important;
  padding:4px 0!important;
  background:#fff!important;
  border:1px solid #d6dde8!important;
  border-radius:0 0 8px 8px!important;
  box-shadow:0 10px 24px rgba(15,23,42,.16)!important;
}
.stock-product-search.sales-style-product-search .stock-search-results button{
  display:block!important;
  width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:7px 11px!important;
  border:0!important;
  border-bottom:1px solid #edf0f4!important;
  border-radius:0!important;
  background:#fff!important;
  color:#30343a!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:1.25!important;
  text-align:left!important;
}
.stock-product-search.sales-style-product-search .stock-search-results button:last-child{border-bottom:0!important}
.stock-product-search.sales-style-product-search .stock-search-results button:hover,
.stock-product-search.sales-style-product-search .stock-search-results button:focus{background:#f2f7fc!important;color:#0f4f8c!important;outline:none!important}
.stock-product-search.sales-style-product-search .stock-search-results b{color:inherit!important;font-size:11px!important;font-weight:600!important;line-height:1.25!important}
.stock-product-search.sales-style-product-search .stock-search-results small{color:#64748b!important;font-size:10px!important;font-weight:400!important;line-height:1.2!important}
@media(max-width:760px){
  .stock-product-search.sales-style-product-search{grid-template-columns:42px minmax(0,1fr) 42px!important}
  .stock-product-search.sales-style-product-search select{display:none!important}
  .stock-product-search.sales-style-product-search .stock-search-results{left:0!important;right:0!important}
}

/* Delivery-note creation: compact, two-step form without duplicating a sale. */
.compact-form{padding:0!important;overflow:hidden}.compact-form .purchase-filter-grid{padding:14px 22px 18px;gap:11px 16px;border-top:0}.compact-form .purchase-filter-grid label{font-size:12px;font-weight:600;color:#42526a}.compact-form .purchase-filter-grid textarea{min-height:58px;padding:8px 10px;border:1px solid #cfd6df;border-radius:4px;color:#172033;font:inherit;resize:vertical}.compact-form .purchase-filter-grid .wide{grid-column:span 2}.form-section-heading{display:flex;align-items:baseline;gap:10px;padding:13px 22px 8px;border-bottom:1px solid #eef1f4;color:#172033}.form-section-heading b{font-size:13px}.form-section-heading span{font-size:12px;color:#64748b}.compact-form .form-actions{justify-content:flex-end;padding:14px 22px;border-top:1px solid #eef1f4;background:#fbfdff}.compact-form .form-actions .btn{font-size:12px;padding:8px 14px}@media(max-width:760px){.compact-form .purchase-filter-grid .wide{grid-column:auto}.form-section-heading{display:grid;gap:4px}}

/* Customer bulk-payment allocation screen. */
.form-grid.three-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}.form-grid.four-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px}.form-grid.three-columns label,.form-grid.four-columns label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#334155}.bulk-payment-table-wrap{margin-top:16px}.bulk-payment-table{min-width:890px}.bulk-payment-table th,.bulk-payment-table td{font-size:12px}.bulk-payment-table th:first-child,.bulk-payment-table td:first-child{width:78px;text-align:center}.bulk-payment-table .allocation-input{width:115px;min-height:32px;padding:5px 7px;text-align:right;font-size:12px}.bulk-payment-table .allocation-input:disabled{background:#f1f5f9;color:#94a3b8}.table-checkbox{display:inline-flex!important;align-items:center;gap:5px;font-size:11px!important;white-space:nowrap}.bulk-payment-summary{display:flex;justify-content:flex-end;gap:24px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;border:1px solid #d9e5ef;border-radius:7px;background:#f8fbfe;color:#475569;font-size:12px}.bulk-payment-summary strong{color:#174f86}.empty-state{text-align:center;color:#64748b}.empty-state h3{margin:0 0 5px;color:#334155;font-size:16px}.empty-state p{margin:0;font-size:13px}@media(max-width:900px){.form-grid.four-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.form-grid.three-columns,.form-grid.four-columns{grid-template-columns:1fr}.bulk-payment-summary{justify-content:flex-start;gap:8px;flex-direction:column}}
.bulk-payment-filter-row{display:grid;grid-template-columns:minmax(220px,1.65fr) minmax(145px,.8fr) minmax(145px,.8fr) auto;gap:10px 14px;align-items:end}.bulk-payment-filter-row label{display:grid;gap:5px;min-width:0;font-size:12px;font-weight:700;color:#334155}.bulk-payment-filter-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.bulk-payment-filter-actions .btn{min-height:38px;padding:8px 12px;font-size:12px}.bulk-payment-filter-actions .ghost{padding-inline:10px}@media(max-width:1050px){.bulk-payment-filter-row{grid-template-columns:repeat(3,minmax(0,1fr))}.bulk-payment-filter-actions{grid-column:1/-1}}@media(max-width:650px){.bulk-payment-filter-row{grid-template-columns:1fr}.bulk-payment-filter-actions{grid-column:auto;flex-wrap:wrap}.bulk-payment-filter-actions .btn{flex:1;text-align:center}}
.payment-status-trigger{appearance:none;border:0!important;cursor:pointer;font:inherit;line-height:1.2}
/* Keep payment states unmistakable wherever they are shown as badges or buttons. */
.payment-status-due,.purchase-payment-pill.payment-status-due{background:#f59e0b!important;border-color:#d97706!important;color:#fff!important}
.payment-status-paid,.purchase-payment-pill.payment-status-paid{background:#2f8f3a!important;border-color:#256f2e!important;color:#fff!important}
.payment-status-partial,.purchase-payment-pill.payment-status-partial{background:#ec4899!important;border-color:#db2777!important;color:#fff!important}
.payment-status-overdue,.purchase-payment-pill.payment-status-overdue{background:#dc2626!important;border-color:#b91c1c!important;color:#fff!important}
.status-chip.due,.badge.payment-status-due{background:#f59e0b!important;color:#fff!important}
.status-chip.paid,.badge.payment-status-paid{background:#2f8f3a!important;color:#fff!important}
.status-chip.partial,.badge.payment-status-partial{background:#ec4899!important;color:#fff!important}
.status-chip.overdue,.badge.payment-status-overdue{background:#dc2626!important;color:#fff!important}
.ledger-payment-status-due{background:#f59e0b!important;color:#fff!important}
.ledger-payment-status-paid{background:#2f8f3a!important;color:#fff!important}
.ledger-payment-status-partial{background:#ec4899!important;color:#fff!important}
.payment-status-trigger:hover{filter:brightness(.96);box-shadow:0 3px 10px rgba(15,55,95,.14)}.payment-status-trigger:focus-visible{outline:3px solid #f8c146;outline-offset:2px}
/* The global button rule is intentionally very specific; match it here so a
   clickable payment badge keeps its business-status colour instead of navy. */
button.payment-status-trigger.payment-status-due:not(.secondary):not(.ghost):not(.danger):not(.disabled){background:#f59e0b!important;border-color:#d97706!important;color:#fff!important}
button.payment-status-trigger.payment-status-paid:not(.secondary):not(.ghost):not(.danger):not(.disabled){background:#2f8f3a!important;border-color:#256f2e!important;color:#fff!important}
button.payment-status-trigger.payment-status-partial:not(.secondary):not(.ghost):not(.danger):not(.disabled){background:#ec4899!important;border-color:#db2777!important;color:#fff!important}
button.payment-status-trigger.payment-status-overdue:not(.secondary):not(.ghost):not(.danger):not(.disabled){background:#dc2626!important;border-color:#b91c1c!important;color:#fff!important}
button.payment-status-trigger.payment-status-due:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{background:#d97706!important;border-color:#b45309!important}
button.payment-status-trigger.payment-status-paid:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{background:#256f2e!important;border-color:#1d5724!important}
button.payment-status-trigger.payment-status-partial:not(.secondary):not(.ghost):not(.danger):not(.disabled):hover{background:#db2777!important;border-color:#be185d!important}
.settlement-adjustment-row{align-items:end;margin-top:10px;padding:10px 12px;border:1px solid #f0d9a5;border-radius:7px;background:#fffaf0}.settlement-adjustment-help{grid-column:span 2;margin:0 0 3px;color:#7c5a14;font-size:11px;line-height:1.4}.bulk-payment-settlement-preview{justify-content:flex-start;gap:8px;padding:9px;background:#f7fbff}.bulk-payment-settlement-preview span{padding:3px 12px 3px 0;border-right:1px solid #d9e5ef}.bulk-payment-settlement-preview span:last-child{border-right:0}.payment-history-details{min-width:230px}.payment-history-details+ .payment-history-details{margin-top:5px}.payment-history-details summary{cursor:pointer;color:#15599a;font-weight:700}.payment-history-details div{padding:4px 0 2px;color:#64748b;font-size:11px;line-height:1.45}@media(max-width:900px){.settlement-adjustment-help{grid-column:1/-1}}@media(max-width:650px){.bulk-payment-settlement-preview span{border-right:0;border-bottom:1px solid #d9e5ef;padding:4px 0}.bulk-payment-settlement-preview span:last-child{border-bottom:0}}
.petty-cash-bulk-account{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}.petty-cash-bulk-account label{display:grid;gap:4px;min-width:300px;font-size:12px;font-weight:700;color:#334155}.petty-cash-bulk-account select{min-height:36px}.petty-cash-bulk-account small{align-self:center;color:#64748b;font-size:11px}.petty-cash-saved input[type="checkbox"]{width:16px;height:16px;accent-color:#1769aa;cursor:pointer}@media(max-width:640px){.petty-cash-bulk-account label{min-width:100%;width:100%}.petty-cash-bulk-account .btn{width:100%}}
.petty-cash-bulk-cash-in{margin-top:8px;padding-top:12px;border-top:1px dashed #d6e1ec}.petty-cash-select-head{min-width:82px!important}.petty-cash-select-head label{display:inline-flex;align-items:center;gap:3px;margin-right:6px;color:#52657c;font-size:10px;font-weight:800;text-transform:uppercase}.petty-cash-select-head input[type="checkbox"]{width:14px;height:14px}
/* Chart-of-accounts maintenance: clear distinction between editable and protected accounting controls. */
.account-edit-button{min-width:66px}.account-edit-modal-card{width:min(650px,100%)}.account-edit-modal-card .muted{margin:0 0 12px;line-height:1.45}.account-field-locked input,.account-field-locked select{background:#f1f5f9!important;color:#64748b!important;cursor:not-allowed}.account-active-toggle{align-self:end;margin-bottom:8px;color:#40536b;font-size:12px;font-weight:700}
/* Sales document builder: compact, structured entry panels. */
.quote-main-card{border-top:4px solid #1e5d96!important}
.quote-main-card .quote-price-group{margin:0 0 12px!important;max-width:520px!important}
.quote-main-card .quote-form-grid{grid-template-columns:minmax(230px,1.45fr) minmax(155px,.8fr) minmax(180px,1fr) minmax(180px,1fr)!important;gap:10px 14px!important}
.quote-main-card .quote-form-grid>label:first-child{grid-column:span 2}
.quote-main-card .quote-address-box{grid-column:span 2;padding:8px 10px;border:1px solid #dce7f0;border-radius:6px;background:#f8fbfe;font-size:11px!important;line-height:1.25!important}
.quote-main-card .quote-address-box b{margin:0!important;color:#1e5d96;font-size:10px;text-transform:uppercase;letter-spacing:.035em}
.quote-main-card .quote-form-grid input,.quote-main-card .quote-form-grid select{height:32px!important;min-height:32px!important;font-size:12px!important}
.quote-main-card .quote-input-icon{grid-template-columns:32px minmax(0,1fr)!important}
.quote-main-card .quote-input-icon b{height:32px!important;font-size:10px!important}
.quote-main-card .quote-inline-pair{grid-template-columns:minmax(0,1fr) 92px!important}
.sales-form-section-title{display:flex;align-items:baseline;gap:9px;margin:0 0 10px;padding:0 0 8px;border-bottom:1px solid #dce7f0;color:#1e3e62}
.sales-form-section-title b{font-size:13px;letter-spacing:.01em}.sales-form-section-title span{font-size:11px;color:#64748b;font-weight:500}
.quote-adjust-card,.quote-delivery-card{border-top:3px solid #d8e7f5!important;background:#fcfdff!important}
.quote-payment-card{border-top:3px solid #d8e7f5!important;background:#fcfdff!important}
.quote-invoice-payment-grid{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(160px,.55fr) minmax(260px,1.35fr);gap:10px 14px;align-items:end}
.quote-invoice-payment-grid label{display:grid;gap:4px;font-size:12px!important;color:#334155!important;font-weight:700!important}
.quote-invoice-payment-grid input,.quote-invoice-payment-grid select{height:32px!important;min-height:32px!important;font-size:12px!important}
.quote-invoice-payment-grid input:disabled{background:#f1f5f9!important;color:#64748b!important;cursor:not-allowed}
.quote-payment-help{grid-column:1/-1;margin:0;color:#64748b;font-size:11px;line-height:1.35}
.quote-adjust-fields{display:grid;grid-template-columns:minmax(180px,260px) minmax(180px,260px);gap:10px 14px;align-items:end}
.quote-note-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;margin-top:12px}
.quote-adjust-fields label,.quote-note-grid label,.quote-delivery-grid label{display:grid;gap:4px;font-size:12px!important;color:#334155!important;font-weight:700!important}
.quote-adjust-fields input,.quote-adjust-fields select,.quote-delivery-grid input,.quote-delivery-grid select{height:32px!important;min-height:32px!important;font-size:12px!important}
.quote-note-grid textarea{height:84px!important;min-height:84px!important;padding:8px 10px!important;resize:vertical;line-height:1.35!important;background:#fff!important}
.quote-note-grid label:first-child textarea{background:#fffdf7!important;border-color:#e9d9ac!important}
.quote-note-grid label:nth-child(2) textarea{background:#f8fbff!important;border-color:#c9def1!important}
.quote-delivery-grid{grid-template-columns:minmax(230px,1fr) minmax(260px,1.2fr) minmax(150px,.48fr) minmax(150px,.48fr)!important;gap:12px 14px!important}
.quote-delivery-grid textarea{height:54px!important;min-height:54px!important;padding:7px 10px!important;resize:vertical;line-height:1.3!important}
.quote-delivery-grid label:first-child textarea{background:#f7fbff!important;border-color:#bcd8ee!important}
.quote-delivery-bottom{display:flex!important;justify-content:flex-end!important;margin-top:10px!important}.quote-payable-box{width:min(360px,100%)!important;height:54px!important;padding:0 18px!important}.quote-payable-box span{font-size:12px!important}.quote-payable-box b{font-size:20px!important}
@media(max-width:1100px){.quote-main-card .quote-form-grid,.quote-note-grid,.quote-delivery-grid,.quote-invoice-payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.quote-main-card .quote-form-grid>label:first-child,.quote-main-card .quote-address-box{grid-column:span 2}.quote-note-grid label:last-child{grid-column:span 2}}
@media(max-width:700px){.quote-main-card .quote-form-grid,.quote-note-grid,.quote-delivery-grid,.quote-adjust-fields,.quote-invoice-payment-grid{grid-template-columns:1fr!important}.quote-main-card .quote-form-grid>label:first-child,.quote-main-card .quote-address-box,.quote-note-grid label:last-child{grid-column:auto}.sales-form-section-title{display:grid;gap:3px}.quote-note-grid textarea{height:78px!important;min-height:78px!important}}
/* General ledger / journal vouchers. */
.accounting-jv-card{margin-top:18px}.journal-voucher-header{display:grid;grid-template-columns:180px minmax(190px,.75fr) minmax(280px,1.5fr);gap:12px;padding:0 20px 14px}.journal-voucher-header label,.journal-voucher-filter label{display:grid;gap:5px;color:#40546c;font-size:12px;font-weight:700}.journal-lines{min-width:860px}.journal-lines th:nth-child(1){min-width:245px}.journal-lines th:nth-child(2){min-width:245px}.journal-lines input,.journal-lines select{width:100%;min-height:35px;padding:6px 8px}.journal-lines .journal-debit,.journal-lines .journal-credit{min-width:120px;text-align:right}.journal-lines tfoot{background:#f4f8fc;color:#1e3e62}.right-align{text-align:right}.journal-voucher-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid #dce7f0;background:#fbfdff}.journal-voucher-actions>div{display:flex;gap:8px}.journal-balance-status{font-size:12px;font-weight:700;color:#b45309}.journal-balance-status.is-balanced{color:#18753a}.journal-voucher-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 20px 14px}.journal-voucher-filter label{min-width:150px}.journal-voucher-filter .btn{min-height:36px}.journal-voucher-register td:nth-child(3) small{display:block;max-width:360px;margin-top:3px;color:#66778b;font-size:11px;line-height:1.35}.journal-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}.journal-status-draft{background:#e8f1fb;color:#245585}.journal-status-submitted{background:#fff2d6;color:#9a5b00}.journal-status-posted{background:#dcf4e3;color:#166534}.journal-status-reversed{background:#fee2e2;color:#9f1d1d}@media(max-width:800px){.journal-voucher-header{grid-template-columns:1fr;padding-inline:14px}.journal-voucher-filter{margin-inline:14px}.journal-voucher-actions{padding-inline:14px}.journal-voucher-actions>div,.journal-voucher-actions .btn{width:100%}.journal-voucher-actions>div{flex-wrap:wrap}.journal-voucher-actions>div .btn{flex:1}}

/* Column chooser: retain both actions in a compact panel at every viewport. */
.erp-column-panel header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important}
.erp-column-panel .erp-column-panel-actions{display:flex!important;align-items:center;gap:8px;white-space:nowrap}
.erp-column-panel .erp-column-panel-actions button{min-width:0!important;white-space:nowrap}
.erp-table-tools .erp-column-panel{width:min(340px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important}
.column-visibility>div{width:min(300px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important}
.report-export-tools .erp-column-visibility .erp-column-panel,
.export-tools .erp-column-visibility .erp-column-panel,
.table-controls-row .export-tools .erp-column-visibility .erp-column-panel{left:auto!important;right:0!important}
@media(max-width:900px){
  .erp-table-tools .erp-column-panel{width:auto!important;max-width:none!important}
  .erp-column-panel header{grid-template-columns:1fr!important;gap:7px!important}
  .erp-column-panel .erp-column-panel-actions{width:100%}
  .erp-column-panel .erp-column-panel-actions button{flex:1!important}
}

/* Keep the per-invoice receipt method readable without wasting report width. */
.report-data-table .report-payment-method-column{padding-inline:6px!important;font-size:11px!important;white-space:nowrap!important}
