/* Classic Scorgemi ERP skin: lightweight, system-font, low paint cost. */
.navigation-feedback[hidden]{display:none!important}
.navigation-feedback{position:fixed;z-index:10000;bottom:24px;left:50%;translate:-50% 0;display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100% - 24px);padding:12px 16px;background:var(--surface);color:var(--text);border:1px solid var(--border-strong);border-radius:8px;font-size:14px}
.navigation-feedback img{flex:none;object-fit:contain}
.navigation-feedback button{flex:none;border:0;background:transparent;color:var(--text);width:40px;height:40px;font-size:24px;cursor:pointer}
@media(max-width:640px){.navigation-feedback{bottom:calc(16px + env(safe-area-inset-bottom));padding:8px 12px;gap:8px}}
@media print{.navigation-feedback{display:none!important}}
:root{
  --c-primary:#0a67b1;
  --c-violet:#3757c8;
  --c-ok:#0f7a55;
  --c-gold:#a96d12;
  --c-red:#bd2f2f;
  --bg:#eef4fb;
  --surface:#ffffff;
  --surface-2:#f7fafc;
  --surface-3:#e9f1fa;
  --border:#d5dfec;
  --border-strong:#bdcadb;
  --text:#0f172a;
  --text-2:#536173;
  --text-3:#7a8699;
  --shadow-sm:none;
  --shadow:none;
  --radius:8px;
  --radius-sm:7px;
  --sb-w:244px;
  --fs:14px;
  --pad:16px;
  --gap:14px;
}
html[data-theme="dark"]{
  --c-primary:#58a6ff;
  --c-violet:#58a6ff;
  --c-ok:#4ade80;
  --c-gold:#facc15;
  --c-red:#f87171;
  --bg:#0f172a;
  --surface:#111827;
  --surface-2:#182235;
  --surface-3:#22304a;
  --border:#2e3b52;
  --border-strong:#3d4c66;
  --text:#e5eefb;
  --text-2:#b7c4d8;
  --text-3:#8492a8;
}

html,body{background:var(--bg)!important}
body.erp-classic{
  font-family:Arial,"Segoe UI",system-ui,sans-serif!important;
  color:var(--text);
  text-rendering:auto;
}
body.erp-classic *,
body.erp-classic *::before,
body.erp-classic *::after{
  transition:none!important;
  animation:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:none!important;
}

body.erp-classic .shell{background:var(--bg)}
body.erp-classic .side{
  background:var(--surface);
  border-right:1px solid var(--border);
}
body.erp-classic .brand{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background:var(--surface);
}
body.erp-classic .brand img{
  width:34px;height:34px;border-radius:4px;padding:2px;border:1px solid var(--border);
}
body.erp-classic .brand .wm b{font-size:15px;font-weight:800}
body.erp-classic .tag{font-size:10px;color:#d08a13;letter-spacing:.8px}
body.erp-classic .nav{padding:10px 10px 16px}
body.erp-classic .grp-label{
  padding:13px 8px 6px;
  color:var(--text-3);
  font-size:10px;
  letter-spacing:.7px;
}
body.erp-classic .nav a{
  min-height:38px;
  margin:2px 0;
  padding:8px 10px;
  border-radius:7px;
  color:var(--text-2);
  font-size:13px;
  font-weight:700;
  transform:none!important;
  border:1px solid transparent;
}
body.erp-classic .nav a:hover{background:#f1f6fc;color:var(--c-primary);border-color:#dce7f4}
body.erp-classic .nav a.active{
  background:#dcecff;
  color:var(--c-primary);
  border-color:#c3ddfa;
}
body.erp-classic .nav a.active::before{display:none}
body.erp-classic .nav a svg{width:16px;height:16px}
body.erp-classic .user{
  padding:10px 14px;
  background:var(--surface-2);
  border-top:1px solid var(--border);
}

body.erp-classic .main{background:var(--bg)}
body.erp-classic .appbar{
  height:60px;
  flex-basis:60px;
  padding:10px 18px;
  background:var(--surface)!important;
  border-bottom:1px solid var(--border);
  gap:10px;
}
body.erp-classic .appbar::after{display:none}
body.erp-classic .appbar .collapse,
body.erp-classic .home-btn,
body.erp-classic .ab-btn{
  width:38px;height:38px;border-radius:8px;
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--text);
}
body.erp-classic .appbar .collapse:hover,
body.erp-classic .home-btn:hover,
body.erp-classic .ab-btn:hover{background:var(--surface-3);color:var(--c-primary)}
body.erp-classic .appsearch{
  height:38px;
  max-width:620px;
  border-radius:8px;
  background:var(--surface);
  border:1px solid var(--border);
  padding:0 10px;
}
body.erp-classic .appsearch:focus-within{
  border-color:#8bb8e8;
  outline:2px solid #dbeafe;
}
body.erp-classic .appsearch .kbd{display:none}
body.erp-classic .appbar-r{
  background:transparent;
  border:0;
  padding:0;
  gap:6px;
}
body.erp-classic .menu-pop{
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--surface);
}

body.erp-classic .content{padding:18px 22px 44px}
body.erp-classic .content-inner{max-width:1400px;gap:14px}
body.erp-classic .topbar{align-items:center}
body.erp-classic .topbar h1{
  font-size:25px;
  font-weight:800;
  letter-spacing:0;
  line-height:1.15;
}
body.erp-classic .muted{color:var(--text-2);font-size:13px}

body.erp-classic .panel,
body.erp-classic .card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  padding:16px;
}
body.erp-classic .panel>h2,
body.erp-classic .card-title,
body.erp-classic .section-title h2{font-size:15px}

body.erp-classic button,
body.erp-classic .btn,
body.erp-classic .btn-light,
body.erp-classic .btn-dark,
body.erp-classic .btn-ok,
body.erp-classic .tool-btn{
  height:36px;
  border-radius:8px;
  padding:0 13px;
  font-size:13px;
  font-weight:800;
}
body.erp-classic button,
body.erp-classic .btn{
  background:#0b66b3;
  border:1px solid #0b66b3;
  color:#fff;
}
body.erp-classic .btn-light,
body.erp-classic .tool-btn{
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--border-strong);
}
body.erp-classic .btn-dark{background:#1f2937;color:#fff;border-color:#1f2937}
body.erp-classic .btn-ok{background:#12805c;color:#fff;border-color:#12805c}
body.erp-classic button:hover,
body.erp-classic .btn:hover,
body.erp-classic .btn-light:hover,
body.erp-classic .tool-btn:hover{
  filter:none;
  transform:none!important;
  background:#084f8d;
  color:#fff;
}
body.erp-classic .btn-light:hover,
body.erp-classic .tool-btn:hover{background:var(--surface-3);color:var(--text)}
body.erp-classic .btn svg,
body.erp-classic .btn-light svg,
body.erp-classic .btn-dark svg,
body.erp-classic .btn-ok svg,
body.erp-classic .tool-btn svg,
body.erp-classic .dash-actions svg{
  width:1rem;
  height:1rem;
  max-width:1rem;
  max-height:1rem;
  flex:0 0 auto;
}

body.erp-classic input,
body.erp-classic select,
body.erp-classic textarea{
  border-radius:8px;
  background:var(--surface);
  border:1px solid var(--border-strong);
  padding:8px 10px;
  font-size:13px;
  margin-bottom:10px;
  color:var(--text);
}
body.erp-classic input:focus,
body.erp-classic select:focus,
body.erp-classic textarea:focus{
  border-color:#0b66b3;
  outline:2px solid #dbeafe;
}
body.erp-classic select{color-scheme:light}
html[data-theme="dark"] body.erp-classic select{color-scheme:dark}
body.erp-classic select option{background:var(--surface);color:var(--text)}

body.erp-classic .table-scroll,
body.erp-classic .sheet-wrap,
body.erp-classic .customer-table-wrap{
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
  overflow:auto;
}
body.erp-classic table.sheet,
body.erp-classic .cust-tbl{
  background:var(--surface);
  border-collapse:collapse;
}
body.erp-classic table.sheet th,
body.erp-classic .cust-tbl thead th{
  background:var(--surface-3)!important;
  color:var(--text)!important;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.4px;
  border-bottom:1px solid var(--border-strong);
  padding-top:11px;
  padding-bottom:11px;
}
body.erp-classic table.sheet td,
body.erp-classic .cust-tbl tbody td{
  background:var(--surface);
  color:var(--text);
  border-bottom:1px solid #e8eef6;
  padding-top:11px;
  padding-bottom:11px;
}
body.erp-classic table.sheet tr:hover td,
body.erp-classic .cust-tbl tbody tr:hover td{background:#f4f8fd}
body.erp-classic table.sheet td:last-child,
body.erp-classic table.sheet td:last-child a,
body.erp-classic table.sheet td:last-child button{
  white-space:nowrap;
  word-break:normal;
  overflow-wrap:normal;
}
body.erp-classic table.sheet td:last-child .btn,
body.erp-classic table.sheet td:last-child .btn-light,
body.erp-classic table.sheet td:last-child .btn-ok{
  min-width:52px;
}
body.erp-classic .sheet-toolbar{
  background:var(--surface);
  border:0;
  padding:0;
}
body.erp-classic .fpop{border-radius:6px;border:1px solid var(--border)}

body.erp-classic .pill,
body.erp-classic .tagpill,
body.erp-classic .badge,
body.erp-classic .chip{
  border-radius:999px;
  background:#eef3f9;
  color:#334155;
  border:1px solid #dbe4ef;
}
body.erp-classic .status-resolved,
body.erp-classic .pill.ok,
body.erp-classic .badge.ok{background:#dcfce7;color:#166534;border-color:#bbf7d0}
body.erp-classic .status-escalated,
body.erp-classic .pill.bad,
body.erp-classic .badge.bad{background:#fee2e2;color:#991b1b;border-color:#fecaca}
html[data-theme="dark"] body.erp-classic .status-resolved,
html[data-theme="dark"] body.erp-classic .pill.ok,
html[data-theme="dark"] body.erp-classic .badge.ok{background:#123524;color:#86efac;border-color:#166534}
html[data-theme="dark"] body.erp-classic .status-escalated,
html[data-theme="dark"] body.erp-classic .pill.bad,
html[data-theme="dark"] body.erp-classic .badge.bad{background:#3b1518;color:#fecaca;border-color:#7f1d1d}

body.erp-classic .library-tabs a,
body.erp-classic .customer-tab,
body.erp-classic .ticket-tab,
body.erp-classic .field-tabs a,
body.erp-classic .tabs a{
  border-radius:8px!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  border:1px solid var(--border-strong)!important;
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
body.erp-classic .library-tabs a.active,
body.erp-classic .customer-tab.active,
body.erp-classic .ticket-tab.active,
body.erp-classic .field-tabs a.active,
body.erp-classic .tabs a.active{
  background:#0b66b3!important;
  color:#fff!important;
  border-color:#0b66b3!important;
}

body.erp-classic .cards{
  gap:10px;
}
body.erp-classic .stat{
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--surface);
  overflow:hidden;
}
body.erp-classic .stat::before{
  background:#d3e5f7;
}
body.erp-classic .stat.active,
body.erp-classic .stat:hover{
  background:#f8fbff;
  border-color:#bcd6f2;
}
body.erp-classic .stat.active::before{
  background:var(--c-primary);
}
body.erp-classic .chips,
body.erp-classic .sheet-tools,
body.erp-classic .doc-actions{
  gap:8px;
}
body.erp-classic .section-title{
  margin-bottom:10px;
}
body.erp-classic .grid,
body.erp-classic .grid3,
body.erp-classic .grid4{
  gap:14px;
}
body.erp-classic label{
  color:#475569;
  font-weight:800;
}
html[data-theme="dark"] body.erp-classic label{color:var(--text-2)}

@media(max-width:760px){
  :root{--fs:14px}
  body.erp-classic .shell{display:flex;flex-direction:row;height:100vh;overflow:hidden}
  body.erp-classic .main{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden}
  body.erp-classic .side{
    position:fixed;
    left:-260px;
    top:0;
    bottom:0;
    width:250px;
    z-index:1201;
    transform:none!important;
    transition:none!important;
  }
  body.erp-classic .shell.nav-open .side{left:0;transform:none!important}
  body.erp-classic .mobile-scrim{background:rgba(15,23,42,.24)}
  body.erp-classic .appbar{
    min-height:58px;
    height:auto;
    padding:8px 10px;
    gap:7px;
    display:grid;
    grid-template-columns:40px 40px minmax(0,1fr) auto;
    align-items:center;
    flex-wrap:nowrap;
  }
  body.erp-classic .appbar .collapse{display:grid}
  body.erp-classic .home-btn{display:grid}
  body.erp-classic .appbar .appsearch{
    order:0;
    grid-column:auto;
    max-width:none;
    min-width:0;
    height:40px;
  }
  body.erp-classic .appbar-r{
    min-width:0;
    justify-content:flex-end;
  }
  body.erp-classic .appbar .collapse,
  body.erp-classic .home-btn,
  body.erp-classic .ab-btn{
    width:40px;
    height:40px;
  }
  body.erp-classic .content{flex:1 1 auto;min-height:0;overflow-y:auto;padding:12px 10px 78px}
  body.erp-classic .content-inner{gap:12px}
  body.erp-classic .topbar{
    align-items:flex-start;
    gap:10px;
  }
  body.erp-classic .topbar h1{font-size:22px}
  body.erp-classic .panel,
  body.erp-classic .card{padding:12px;border-radius:8px}
  body.erp-classic .mobile-dock{
    display:flex;
    position:fixed;
    left:8px;
    right:8px;
    bottom:max(8px,env(safe-area-inset-bottom));
    z-index:180;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:12px;
    padding:5px;
    gap:3px;
  }
  body.erp-classic .mobile-dock a{
    min-width:0;
    flex:1;
    height:44px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    color:#475569;
    border-radius:7px;
    font-size:10px;
    font-weight:800;
  }
  body.erp-classic .mobile-dock a.active{
    background:#dbeafe;
    color:#0b66b3;
  }
  body.erp-classic .mobile-dock svg{width:17px;height:17px}
  body.erp-classic .sheet-toolbar{
    padding:8px 0;
  }
  body.erp-classic .sheet-tools{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  body.erp-classic .sheet-tools .tool-btn,
  body.erp-classic .sheet-tools button{
    width:100%;
  }
  body.erp-classic .library-tabs,
  body.erp-classic .field-tabs,
  body.erp-classic .tabs,
  body.erp-classic .doc-tabs{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:8px;
    padding-bottom:6px;
  }
  body.erp-classic .library-tabs a,
  body.erp-classic .field-tabs a,
  body.erp-classic .tabs a,
  body.erp-classic .doc-tabs a{
    flex:0 0 auto;
    white-space:nowrap;
  }
  body.erp-classic table.sheet.sg-mobile-cards tbody tr{
    border-radius:8px;
    border:1px solid var(--border);
    background:var(--surface);
    margin-bottom:10px;
    padding:2px 10px;
  }
  body.erp-classic table.sheet.sg-mobile-cards tbody td{
    padding:9px 10px;
    border-bottom:1px solid #eef2f7;
  }
  body.erp-classic table.sheet.sg-mobile-cards tbody td::before{
    color:#64748b;
    font-size:11px;
  }
}

@media(max-width:430px){
  body.erp-classic .appbar{
    grid-template-columns:40px 40px minmax(0,1fr) 40px;
  }
  body.erp-classic .appbar-r{
    display:flex;
    overflow:hidden;
  }
  body.erp-classic .appbar-r .menu-wrap:not(:first-child),
  body.erp-classic .appbar-r .ab-divider{
    display:none;
  }
  body.erp-classic .appsearch input{
    min-width:0;
  }
  body.erp-classic .topbar>div:last-child{
    width:100%;
  }
}
