/* Seller work surfaces use the warehouse assistant's compact Fluent palette. */
:root{--bg:#f5f5f5;--surface:#fff;--ink:#242424;--muted:#616161;--line:#d1d1d1;--green:#126d50;--green-dark:#0c573f;--green-soft:#e8f3ee;--radius:6px}
body{background:var(--bg);color:var(--ink)}
body .sidebar{background:#093e30;padding:18px 12px;width:208px;scrollbar-gutter:stable}
body .sidebar .brand{font-size:22px;margin-bottom:24px;padding:0 8px}body .sidebar nav{gap:3px}body .sidebar nav a{min-height:38px;padding:7px 12px;border-radius:4px;font-size:13px}body .sidebar .nav-current{background:#1a5f49}
body .workspace{margin-right:208px}body .topbar{height:48px;padding:0 20px}body main{max-width:none;padding:20px}body h1{font-size:23px;letter-spacing:0}body h2{font-size:16px}body .page-heading{margin-bottom:16px}body .panel{border-radius:6px;margin-bottom:16px}body .panel-heading{padding:14px 16px}body .stats{gap:12px;margin-bottom:16px}body .stats article{padding:13px 16px}body .stats strong{font-size:25px}
body button,body input,body select{border-radius:4px;font-family:inherit}body button{min-height:36px;padding:7px 12px;font-size:13px}body input:not([type=checkbox]),body select{min-height:36px;font-size:13px;padding:6px 9px}body dialog{border:1px solid #b9c6be;border-radius:6px;box-shadow:0 16px 56px #173b2c30}body dialog::backdrop{background:#14292066}
body .ng-console-bar{background:#fafafa;border-bottom:1px solid #d1d1d1;padding:4px 8px}body .ng-console-tab{border-radius:4px}body .ng-console-tab button,body .ng-console-menu{min-height:36px;font-size:13px}body .ng-console-shell{font-family:Vazir,Tahoma,sans-serif}
body .console-grid-container,body .orders-panel{border-radius:5px;border-color:#d1d1d1}body .console-grid-scroll{max-height:60vh;overscroll-behavior:contain}body .console-grid th,body .request-grid th,body .request-lines-grid th{background:#f0f4f1;color:#34483d}body .console-grid-filters th,body .column-filters th{background:#fafcfb}body .console-grid-footer{padding:7px 10px;font-size:12px}body .orders-heading{margin-bottom:12px}body .orders-commandbar{padding:7px;border-radius:5px;gap:6px}body .orders-commandbar button{min-height:36px;padding:7px 11px;border-radius:4px}body .orders-filter{padding-top:10px}body .panel-title{padding:8px 12px}body .daily-orders .orders-grid-scroll{max-height:40vh}body .daily-orders .detail-panel .orders-grid-scroll{max-height:35vh;min-height:150px}body .orders-note{font-size:12px;margin:5px 0 10px}
.seller-grid-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 10px;border-bottom:1px solid #d1d1d1;background:#fafafa;direction:rtl;font-size:12px}.seller-grid-tools button,.seller-grid-tools select{min-height:32px;font-size:12px;padding:4px 10px;border:1px solid #d1d1d1;border-radius:4px;background:white;color:#242424}.seller-grid-tools select{width:auto;max-width:120px}
.seller-layout-table{table-layout:fixed;border-collapse:separate!important;border-spacing:0}.seller-layout-table th,.seller-layout-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px!important;line-height:20px}.seller-layout-table th{position:relative}.seller-layout-table[data-density=compact] td{padding:4px 8px!important;height:34px}.seller-layout-table[data-density=normal] td{padding:8px 10px!important;height:42px}.seller-layout-table[data-density=comfortable] td{padding:12px!important;height:50px}.seller-layout-table .row-actions{min-width:0!important}.seller-layout-table .row-actions button{min-height:30px;padding:3px 8px}.seller-layout-table input[type=checkbox]{width:18px;min-width:18px;height:18px;min-height:18px;margin:3px}.seller-layout-table .row-select{min-height:26px}
.seller-layout-table thead tr:first-child th{height:44px!important;top:0!important}.seller-layout-table thead tr:nth-child(2) th{top:44px!important;padding:4px!important}.seller-layout-table th button{font-size:12px!important;min-height:30px!important}.seller-layout-table th input:not([type=checkbox]){min-width:0!important;max-width:100%!important;width:100%;min-height:30px;font-size:12px;padding:4px 6px}.seller-layout-table th select{min-width:0;max-width:72px;font-size:11px}
.seller-column-resize{position:absolute;inset-inline-end:0;top:0;width:7px;height:100%;cursor:col-resize;touch-action:none;z-index:3;border-inline-end:2px solid transparent}.seller-column-resize:hover,.seller-column-resize:focus-visible{border-color:#126d50;background:#126d5020}
.seller-columns-dialog{width:min(560px,calc(100vw - 24px));max-height:90dvh;padding:16px;direction:rtl;color:#242424;background:white}.seller-columns-dialog header{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px!important;gap:12px}.seller-columns-dialog h2{margin:0;font-size:19px}.seller-grid-hint{font-size:12px;color:#616161;margin:0 0 12px}.seller-columns-list{max-height:62vh;overflow:auto;margin-bottom:12px}.seller-column-setting{display:grid;grid-template-columns:minmax(140px,1fr) 84px 36px 36px;gap:7px;align-items:center;border-bottom:1px solid #ebebeb;padding:7px 0;font-size:13px}.seller-column-setting label{display:flex;align-items:center;gap:8px}.seller-column-setting input[type=checkbox]{width:18px;min-width:18px;min-height:18px;height:18px;margin:0;accent-color:#126d50}.seller-column-setting input[type=number]{width:84px;min-width:0;direction:ltr;padding:4px}.seller-column-setting button{padding:4px;min-width:36px;min-height:36px;border:1px solid #d1d1d1;background:white;color:#126d50}
.seller-grid-fullscreen{position:fixed!important;inset:8px!important;z-index:5000!important;background:white!important;margin:0!important;display:flex!important;flex-direction:column!important;overflow:auto!important;max-height:none!important}.seller-grid-fullscreen>.console-grid-scroll,.seller-grid-fullscreen>.orders-grid-scroll{flex:1;max-height:none!important}.seller-grid-exit{align-self:flex-start;margin:8px;background:#126d50;color:white;position:sticky;top:0;z-index:5}
@media(max-width:800px){body .sidebar{position:relative;width:100%;height:auto;max-height:35vh;padding:10px;overflow:auto}body .sidebar nav{display:flex;overflow:auto}body .workspace{margin:0}body .sidebar .brand{margin-bottom:8px;font-size:18px}body main{padding:12px}body .topbar{padding:0 12px;height:44px}.seller-grid-tools button{min-height:44px}.seller-grid-tools{gap:8px}.seller-column-setting{grid-template-columns:minmax(100px,1fr) 70px 36px 36px}.seller-column-setting input[type=number]{width:70px}body .stats{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

body .console-grid.seller-layout-table th{position:relative!important}.seller-layout-table .console-grid-filter-box{min-width:0}.seller-grid-fullscreen:focus-visible{outline:3px solid #126d50}
body .console-grid.seller-layout-table thead tr th{position:relative!important;top:0!important}
@media(max-width:800px){body .ng-console-original>.sidebar{position:relative}}
/* Match the warehouse Pencil workspace: 44px header, 176px rail, 34px rows. */
:root{--bg:#f4f6f5;--ink:#20372f;--muted:#5c6f66;--line:#dce5df;--green:#12684d;--green-soft:#e7f2ec;--radius:4px}
body .sidebar{width:176px;padding:12px 8px;background:#fff;color:var(--ink);border-left:1px solid var(--line)}
body .sidebar .brand{font-size:18px;margin-bottom:12px;color:var(--ink)}body .sidebar .brand img{width:32px;height:32px}body .sidebar .brand-sub,body .sidebar .nav-label,body .sidebar .sidebar-bottom{color:var(--muted)}
body .sidebar nav a{min-height:34px;padding:6px 7px;font-size:12px;color:var(--ink);border-radius:4px}body .sidebar nav a:hover{background:#f4f6f5}body .sidebar nav a.nav-current{background:#e7f2ec;color:var(--green)}body .sidebar .sidebar-note{display:none}
body .workspace{margin-right:176px}body .topbar{height:44px;padding:0 16px;background:#123e33;color:white}body .topbar .crumb{color:#d5e5dc}body .topbar .top-badge{color:#fff;background:transparent;border-color:#52746a}
body main{padding:12px}body h1{font-size:21px}body .page-heading{margin-bottom:10px;gap:8px}body .page-heading p{font-size:12px;margin-top:4px}body .panel{border-radius:4px;margin-bottom:8px}body .panel-heading{padding:8px 12px;gap:8px}body .panel-heading p{font-size:12px;margin:4px 0}
body .stats{gap:8px;margin-bottom:8px}body .stats article{padding:8px 12px}body .stats strong{font-size:21px;margin:4px 0}body .stats span,body .stats small{font-size:11px}
body button,body input:not([type=checkbox]),body select{min-height:32px;padding:5px 9px;font-size:12px}body .supervisor-filters{gap:8px;padding:8px 12px}
body .seller-layout-table thead tr:first-child th{height:36px!important;background:#eaf0ed}body .seller-layout-table thead tr:nth-child(2) th{top:36px!important}body .console-grid.seller-layout-table thead tr th{top:0!important}body .seller-layout-table th,body .seller-layout-table td{border-left:1px solid var(--line)}
body .seller-layout-table[data-density=compact] td{height:34px;padding:4px 8px!important}body .seller-grid-tools{padding:4px 8px;gap:8px}body .seller-grid-tools button{min-height:32px}
body .daily-orders .orders-heading{margin-bottom:8px;padding-bottom:8px}body .daily-orders .orders-commandbar{gap:6px;padding:6px 8px}body .daily-orders .orders-panel{border-radius:4px}body .daily-orders .panel-title{padding:8px 12px}body .daily-orders .orders-filter{margin:8px 0}body .daily-orders .orders-note{font-size:11px;margin:6px 0}
body .daily-orders #editor{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-width:none;border-radius:4px}body #editor .editor-toolbar{padding:8px 12px;gap:12px}body #editor h2{font-size:18px}body #editor .editor-content{padding:12px}body #editor .editor-section{padding:12px;border-radius:4px}body #editor .editor-header-grid{gap:8px;margin-bottom:8px}body #editor .editor-footer{padding:8px 12px}body #editor h3{margin-bottom:8px}
@media(max-width:800px){body .sidebar{width:100%;max-height:35vh}body .workspace{margin:0}body .topbar{height:44px}body .seller-grid-tools button,body .sidebar nav a{min-height:44px}body .daily-orders .orders-commandbar button{min-height:44px}}

/* Keep every line action reachable even with a saved narrow column width. */
.seller-layout-table[data-console-grid="console-lines"] td[data-original-column="8"]{white-space:normal;text-overflow:clip}
.seller-layout-table[data-console-grid="console-lines"] td[data-original-column="8"] button{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin-block:2px}
