/* Reference-inspired workspace. Screen-only so commercial print layouts stay independent. */
@media screen {
 html:not([data-theme="dark"]){--bg:#f4f5f8;--surface-2:#f8f9fb;--surface-3:#edf0f5;--border:#e3e6ec;--border-strong:#cdd3df;--text:#202635;--text-2:#596579;--text-3:#6c7789}
 body.erp-classic{font-family:"Segoe UI",Arial,system-ui,sans-serif!important;line-height:1.45}
 body.erp-classic .content{padding:24px 28px 48px}
 body.erp-classic .content-inner{gap:20px}
 body.erp-classic .brand{min-height:72px;padding:18px 20px}
 body.erp-classic .nav{padding:14px 12px}
 body.erp-classic .nav a{min-height:42px;font-weight:600;padding:10px 12px}
 body.erp-classic .nav a.active{background:var(--surface-3);border-color:transparent;color:var(--c-primary)}
 body.erp-classic .nav a:hover{background:var(--surface-2);border-color:var(--border);color:var(--text)}
 body.erp-classic .grp-label,body.erp-classic .tag{letter-spacing:0}
 body.erp-classic .appbar{height:72px;flex-basis:72px;padding:14px 26px}
 body.erp-classic .appsearch{background:var(--surface-2);max-width:560px;border-color:transparent}
 body.erp-classic .appsearch input{border:0!important;background:transparent!important;margin:0!important;padding:0!important;outline:0!important;width:100%;min-width:0}
 body.erp-classic .appsearch svg{flex-shrink:0}
 body.erp-classic .topbar h1,body.erp-classic .dash-title h1{font-size:28px;font-weight:700;line-height:1.25}
 body.erp-classic .dash-title .muted{margin-top:6px}
 body.erp-classic .panel,body.erp-classic .card{padding:20px}
 body.erp-classic .panel .panel,body.erp-classic .card .card{border:0;padding-inline:0}
 body.erp-classic .ticket-tabs{padding:0;border:0;border-radius:0;background:transparent;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
 body.erp-classic .sg-work-queues{padding:0 0 16px}
 body.erp-classic .sg-work-queues h2{font-size:16px;margin-bottom:10px}
 body.erp-classic .sg-work-queues a{display:inline-flex;align-items:center;min-height:36px;margin:0 12px 6px 0;color:var(--c-primary);font-size:13px;font-weight:600;gap:8px}
 body.erp-classic .ticket-panel table.sheet td:nth-child(3){min-width:90px;overflow-wrap:normal}
 body.erp-classic .ticket-panel table.sheet td:nth-child(2){min-width:175px}
 @media(min-width:761px){
  body.erp-classic .ticket-panel table.sheet td:last-child{position:sticky;right:0;border-left:1px solid var(--border);min-width:76px;z-index:1}
 }
 @media(min-width:1600px){body.erp-classic .ticket-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}}
 body.erp-classic .ticket-tab{justify-content:space-between;min-height:78px;padding:16px;font-weight:600}
 body.erp-classic .ticket-tab-count{font-family:inherit;font-weight:700;font-size:22px;background:transparent}
 body.erp-classic .ticket-tab.active{background:#0b66b3!important}
 body.erp-classic .ticket-tab.active .ticket-tab-count{background:transparent}
 body.erp-classic button,body.erp-classic .btn,body.erp-classic .btn-light,body.erp-classic .tool-btn{font-weight:600}
 body.erp-classic label{font-weight:600;color:var(--text-2)}
 body.erp-classic table.sheet th,body.erp-classic .cust-tbl thead th{text-transform:none;letter-spacing:0;font-size:12px;font-weight:600;background:var(--surface-2)!important}
 body.erp-classic table.sheet td,body.erp-classic .cust-tbl tbody td{padding-top:14px;padding-bottom:14px;border-color:var(--border)}
 body.erp-classic table.sheet tr:hover td,body.erp-classic .cust-tbl tbody tr:hover td{background:var(--surface-2);color:var(--text)}
 body.erp-classic .sheet-toolbar{gap:12px;padding-bottom:10px;flex-wrap:wrap}
 body.erp-classic .navigation-feedback{border-left:4px solid var(--c-primary)}
 body.erp-classic .navigation-feedback button{background:transparent;color:var(--text);padding:0;border:0}
 body.erp-classic :focus-visible{outline:2px solid var(--c-primary);outline-offset:3px}
 html[data-theme="dark"] body.erp-classic .mobile-dock a{color:var(--text-2)}
 html[data-theme="dark"] body.erp-classic .mobile-dock a.active{background:var(--surface-3);color:var(--c-primary)}
 @media(max-width:760px){
  body.erp-classic .shell{height:100dvh}
  body.erp-classic .appbar{height:auto;min-height:104px;flex-basis:auto;padding:8px 12px;grid-template-columns:40px minmax(0,1fr) auto;gap:6px 10px}
  body.erp-classic .appbar .home-btn{justify-self:start}
  body.erp-classic .appbar .appbar-r{grid-column:3;grid-row:1;overflow:visible}
  body.erp-classic .appbar-r .menu-wrap{display:block!important}
  body.erp-classic .appbar-r .ab-divider{display:none}
  body.erp-classic .appbar .appsearch{grid-column:1 / -1;grid-row:2;width:100%;max-width:none;height:38px}
  body.erp-classic .sg-action-dock:empty{display:none}
  body.erp-classic .content{padding:16px 12px 92px}
  body.erp-classic .content-inner{gap:16px}
  body.erp-classic .topbar h1,body.erp-classic .dash-title h1{font-size:24px}
  body.erp-classic .panel,body.erp-classic .card{padding:14px}
  body.erp-classic .ticket-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.erp-classic .ticket-tab{min-height:78px;padding:12px;gap:6px;font-size:12px}
  body.erp-classic .ticket-tab-count{font-size:20px;padding:0;min-width:26px}
  body.erp-classic .dash-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
  body.erp-classic .dash-actions .btn{padding:0 8px;font-size:12px}
  body.erp-classic .menu-pop{position:fixed;top:60px;right:12px;left:auto;width:min(340px,calc(100vw - 24px));max-height:70dvh;overflow:auto}
  body.erp-classic .navigation-feedback{bottom:calc(82px + env(safe-area-inset-bottom));font-size:13px}
  body.erp-classic .mobile-dock{bottom:calc(8px + env(safe-area-inset-bottom))}
  body.erp-classic .sheet-tools{display:flex;flex-wrap:wrap}
  body.erp-classic .sheet-tools .tool-btn,body.erp-classic .sheet-tools button{width:auto;min-height:40px}
 }
}
