/* Clothing ERP UI refresh - warm retail palette, readable typography and responsive cards */
:root{
  --ink:#242622;--ink-soft:#4c514b;--muted:#72786f;--line:#e8e8e2;--surface:#fff;--canvas:#f7f7f4;
  --green:#f59b08;--green-dark:#dd8500;--green-light:#fff2d9;--gold:#f59b08;--amber:#9a6100;--amber-light:#fff4df;
  --red:#bb514c;--red-light:#fff0ee;--blue:#416e9d;--blue-light:#eaf2fb;--shadow:0 5px 22px rgba(32,35,28,.055);--radius:18px;--radius-sm:12px;--sidebar:258px;
}
html,body{font-size:15px;color:var(--ink);background:var(--canvas)}
body{line-height:1.55}
button,input,select,textarea{font-size:14px}
a{transition:color .16s ease}
.sidebar{background:#fff;color:#30332e;border-right:1px solid #ecece6;padding:24px 15px 14px;box-shadow:5px 0 22px rgba(34,39,31,.025)}
.brand{padding:3px 8px 27px;gap:11px}
.brand-mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#ffb32b,#f18b00);color:#242622;font-size:23px;box-shadow:0 4px 12px #f59b0822}
.brand-copy strong{font-size:12px;letter-spacing:.055em;color:#252820;line-height:1.35}
.brand-copy small{font-size:10px;letter-spacing:.11em;color:#85887f;margin-top:4px}
.nav-caption{font-size:11px;letter-spacing:.12em;font-weight:800;color:#92958d;padding:9px 12px 11px}
.nav-list{gap:5px}
.nav-link{color:#62665e;font-size:14px;font-weight:600;padding:11px 12px;min-height:44px;border-radius:11px;gap:12px}
.nav-link:hover{background:#fff7e9;color:#252820}
.nav-link.active{background:#fff2dc;color:#a86100;box-shadow:inset 3px 0 #f59b08}
.nav-icon{color:#777d73;font-size:18px}
.nav-link.active .nav-icon{color:#d98400}
.sidebar-bottom{padding-top:20px}
.sidebar-user{border-top:1px solid #edede7;padding:17px 7px 5px}
.avatar{background:#fff0d5;color:#8d5700;font-size:13px}
.user-meta strong{font-size:12px;color:#35382f}
.user-meta small{font-size:11px;color:#81867c}
.logout{font-size:19px;color:#767b71}
.main-area{background:var(--canvas)}
.topbar{height:76px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);padding:0 clamp(22px,3vw,42px);gap:17px}
.topbar-title strong{font-size:15px;font-weight:800}
.eyebrow,.topbar-title .eyebrow{font-size:10px;letter-spacing:.13em;color:#858a80;font-weight:800}
.topbar-actions{gap:12px}
.today-chip{font-size:12px;background:#f7f7f3;border-color:#e9e9e2;padding:8px 13px;color:#63685f}
.top-avatar{width:35px;height:35px}
.icon-button{font-size:23px}
.page-wrap{max-width:1820px;padding:32px clamp(22px,3vw,42px) 46px}
.page-heading{margin-bottom:25px;gap:20px}
.page-heading h1{font-size:clamp(29px,2.25vw,36px);line-height:1.2;letter-spacing:-.04em;margin:8px 0 9px;color:#22251f}
.page-subtitle{font-size:15px;line-height:1.55;color:#767b72;max-width:760px}
.heading-actions{gap:10px}
.btn{font-size:14px;font-weight:700;min-height:43px;padding:11px 16px;border-radius:11px;gap:9px}
.btn-primary{background:#f59b08;color:#24251f;box-shadow:0 3px 9px #f59b081c}
.btn-primary:hover{background:#e88a00;color:#20221d}
.btn-secondary{background:#fff;color:#3b4037;border-color:#dfdfd7}
.btn-secondary:hover{background:#fff8ed;border-color:#f0bf72}
.btn-quiet{font-size:13px;color:#62675e}
.btn-small{min-height:35px;padding:8px 11px;font-size:12px}
.metric-grid{gap:16px;margin-bottom:23px}
.metric-card{padding:21px;border-radius:17px;box-shadow:0 4px 18px rgba(32,35,28,.045)}
.metric-feature{background:#fff1d8;color:#292a24;border-color:#ffe4b4}
.metric-top{font-size:13px;color:#6d7168;font-weight:700}
.metric-feature .metric-top{color:#66502d}
.metric-symbol{width:35px;height:35px;border-radius:11px;background:#f6a10d18;font-size:18px}
.metric-feature .metric-symbol{background:#f5a113;color:#292a24}
.soft-green{background:#fff2d9;color:#a86600}.soft-blue{background:#ebf2fb;color:#466d98}.soft-amber{background:#fff1d5;color:#986000}
.metric-value{font-size:clamp(27px,2vw,34px);line-height:1.2;margin:18px 0 10px;font-variant-numeric:tabular-nums}
.metric-foot{font-size:12px;color:#7b8077}
.metric-feature .metric-foot{color:#7b633c}
.metric-spark i{background:#e6a43e}
.dashboard-grid{gap:18px}
.panel{border-color:#e9e9e3;border-radius:17px;box-shadow:var(--shadow)}
.panel-heading{padding:22px 23px 18px}
.panel-heading h2,.summary-panel h2,.settings-note h2{font-size:18px;line-height:1.35;letter-spacing:-.02em}
.panel-heading p{font-size:13px;line-height:1.5;color:#777d73}
.text-link{font-size:13px;color:#b86f00}
.table-wrap{border-top:1px solid #efefe9}
table{font-size:13px;line-height:1.5}
thead th{font-size:11px;letter-spacing:.045em;padding:14px 15px;color:#74796f;background:#fafaf7}
tbody td{padding:15px;color:#50554c}
.table-primary{font-size:13px;color:#292d26}
.cell-sub{font-size:12px;color:#858a80;margin-top:4px}
.amount{font-size:13px}
.status{font-size:11px;padding:6px 9px}
.status::before{width:6px;height:6px}
.stock-row{padding:13px 3px;gap:12px}
.product-monogram{width:40px;height:42px;font-size:15px}
.stock-name strong{font-size:13px}.stock-name small{font-size:11px}
.stock-count{font-size:16px}.stock-count small{font-size:11px}
.quick-actions{margin-top:30px}
.quick-actions>div:first-child h2{font-size:22px;margin:6px 0 17px}
.quick-action-grid{gap:14px}
.quick-action{padding:17px;border-radius:15px;gap:13px}
.quick-icon{width:42px;height:42px;border-radius:12px;font-size:22px}
.quick-action strong{font-size:13px}.quick-action small{font-size:11px;margin-top:4px}
.quick-action b{font-size:19px;color:#d88700}
.app-footer{font-size:11px;padding-top:19px;padding-bottom:19px;color:#858a80}
.filter-bar{gap:10px;padding:19px 21px}
.search-box{min-width:260px;gap:10px}.search-box>span{font-size:23px}
.input{min-height:44px;font-size:14px;padding:10px 13px;border-color:#dedfd7;border-radius:10px;line-height:1.45}
.input::placeholder{color:#92968d}
.filter-select,.date-filter{min-height:44px;font-size:13px}
.product-cell{gap:12px;min-width:200px}.product-thumb{width:44px;height:50px;border-radius:9px}
.row-action{width:34px;height:34px;border-radius:9px;font-size:17px}
.empty-state{padding:46px 20px;gap:10px}.empty-state strong{font-size:16px}.empty-state p{font-size:13px;line-height:1.6}.empty-icon{width:48px;height:48px;font-size:25px}
.pagination{font-size:12px;padding:16px 21px}
.form-panel{padding:28px;border-radius:17px}
.form-grid{gap:21px 20px}
.field-label{font-size:13px;font-weight:750;margin-bottom:8px;color:#33382f}
.field-help{font-size:12px;line-height:1.55;margin-top:7px;color:#7c8178}
.field-error{font-size:12px}
.form-footer{margin-top:30px;padding-top:23px}.form-footer .muted{font-size:12px}
.split-layout{gap:18px}.category-list{padding:0 23px 17px}.category-row{padding:15px 0;gap:13px}.category-icon{width:40px;height:40px;font-size:20px}.category-row strong{font-size:14px}.category-row small{font-size:12px}
.detail-grid{gap:18px}.product-summary{padding:23px;gap:23px}.detail-image,.detail-placeholder{width:160px;height:190px;border-radius:15px}.detail-summary-copy h2{font-size:24px}.detail-summary-copy .muted{font-size:14px;line-height:1.65}.price-pair{gap:30px;margin-top:22px}.price-pair small{font-size:11px}.price-pair strong{font-size:20px}
.detail-metrics .metric-card{padding:19px}.detail-metrics .muted{font-size:13px}.metric-date{font-size:21px}
.purchase-layout,.sale-layout,.settings-layout{gap:18px}.purchase-layout>.panel:first-of-type,.sale-main{padding:24px}.summary-panel{padding:23px}.summary-panel h2{font-size:23px}.summary-row{font-size:13px;padding:12px 0}.summary-row strong{font-size:14px}.summary-total{font-size:14px}.summary-total strong{font-size:24px}
.cart-table table{font-size:13px}
.scan-bar{padding:11px}.scan-symbol{width:40px;height:40px;font-size:22px}.scan-feedback{font-size:12px;min-height:24px}
.invoice-customer small,.invoice-note small{font-size:10px}.invoice-customer strong{font-size:14px}.invoice-customer span,.invoice-note p{font-size:13px}.invoice-totals div{font-size:13px;padding:9px 0}.invoice-totals .grand strong{font-size:24px}
.expense-total-banner strong{font-size:28px}.financial-list>div{font-size:13px;padding:14px 0}.financial-highlight strong{font-size:19px}
.settings-note>p{font-size:13px}.settings-note-item p{font-size:12px}.settings-note-item strong{font-size:13px}
.module-toggle-copy strong{font-size:14px}.module-toggle-copy small{font-size:12px}
.login-body{background:#f0f0ed;padding:28px}
.login-layout{width:min(100%,1120px);min-height:650px;grid-template-columns:1fr 1.02fr;border-radius:25px;box-shadow:0 24px 70px rgba(30,33,26,.12)}
.login-story{order:2;background-color:#453b2b;background-image:linear-gradient(0deg,rgba(30,29,22,.63),rgba(30,29,22,.08) 68%),url('/media/ui/login-fashion.jpg');background-size:cover;background-position:center;min-height:650px;padding:37px 38px}
.login-story:after{display:none}
.login-story .brand-mark{background:#f59b08}
.brand-light .brand-copy strong{color:#fff}.brand-light .brand-copy small{color:#fff;opacity:.85}
.story-copy{margin-top:auto;margin-bottom:36px;max-width:440px}
.story-copy .eyebrow{color:#fff9ee}
.story-copy h1{font-size:clamp(30px,3.2vw,43px);line-height:1.13;letter-spacing:-.045em;text-shadow:0 2px 18px #0004}
.story-copy h1 em{color:#ffd27f}
.story-copy p{font-size:15px;line-height:1.75;color:#fff;max-width:390px;text-shadow:0 1px 12px #0005}
.story-foot{font-size:12px;color:#fff;z-index:1}
.login-panel{order:1;padding:45px;background:#fff}
.login-card{width:min(100%,390px)}
.login-card .eyebrow{font-size:11px}.login-card h2{font-size:30px;line-height:1.23;margin:12px 0}.login-card>p{font-size:14px;line-height:1.6;margin:0 0 26px}
.login-card .field-label{font-size:13px;margin-top:17px}.login-card .input{min-height:49px;font-size:14px;border-radius:10px}.login-card .btn{min-height:49px;font-size:15px;margin-top:25px}
.login-note{font-size:12px!important;line-height:1.6;color:#7c8178!important;margin-top:19px!important}
.inline-error{font-size:13px;padding:12px 14px}
/* Product grid page */
.product-catalog{display:grid;grid-template-columns:248px minmax(0,1fr);gap:18px;align-items:start}
.product-filter-panel{padding:21px;position:sticky;top:94px}
.product-filter-title{font:800 17px/1.3 Manrope,sans-serif;margin:0 0 20px;color:#292c25}
.product-filter-form{display:grid;gap:9px}
.product-filter-form .field-label{margin:6px 0 0;font-size:13px}
.product-filter-form .btn{width:100%;margin-top:9px}
.product-filter-form .reset-filter{display:flex;justify-content:center;margin-top:1px}
.filter-divider{height:1px;background:#ededE7;margin:9px 0 3px}
.filter-note{font-size:12px;color:#858a80;line-height:1.6;margin:4px 0 0}
.product-results{min-width:0}
.product-results-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;margin-bottom:15px;flex-wrap:wrap}
.product-results-title{font:800 17px/1.3 Manrope,sans-serif;margin:0;color:#292c25}
.product-results-subtitle{font-size:12px;color:#80857c;margin:5px 0 0}
.product-results-count{border-radius:24px;background:#fff2dc;color:#9a5e00;font-size:12px;font-weight:800;padding:8px 12px;white-space:nowrap}
.product-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.product-card{background:#fff;border:1px solid #e9e9e3;border-radius:16px;overflow:hidden;min-width:0;box-shadow:0 4px 18px rgba(32,35,28,.04);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.product-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(32,35,28,.09);border-color:#f4ce91}
.product-card-media{position:relative;display:block;aspect-ratio:4/4.25;background:#f2f2ef;overflow:hidden}
.product-card-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}
.product-card:hover .product-card-media img{transform:scale(1.035)}
.product-card-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;background:radial-gradient(circle at 20% 15%,#fff 0,#f8f5ed 42%,#eee9df 100%);color:#77766d;padding:16px;text-align:center}
.product-card-placeholder span{font-size:11px;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:#9a6a25}
.product-card-placeholder strong{width:62px;height:62px;border-radius:18px;display:grid;place-items:center;background:#f5a10d;color:#2d2c25;font:800 28px Manrope,sans-serif}
.product-card-stock{position:absolute;top:11px;left:11px;border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 2px 9px #0001;padding:6px 9px;font-size:11px;font-weight:800;backdrop-filter:blur(8px)}
.product-card-stock.in-stock{color:#39734d}.product-card-stock.low-stock{color:#9b6600}.product-card-stock.out-stock{color:#b44843}
.product-card-body{padding:14px 15px 15px}
.product-card-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:7px;min-width:0}
.product-card-category{font-size:11px;color:#8a8b81;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card-sku{font-size:10px;font-weight:800;color:#9a6b26;background:#fff5e3;padding:4px 6px;border-radius:5px;white-space:nowrap}
.product-card h2{font:750 15px/1.4 Manrope,sans-serif;letter-spacing:-.015em;margin:0 0 4px;overflow-wrap:anywhere}
.product-card h2 a{color:#262923}.product-card h2 a:hover{color:#b36a00}
.product-card-brand{font-size:12px;color:#858a80;margin:0 0 13px;min-height:18px;overflow-wrap:anywhere}
.product-card-price-row{display:flex;justify-content:space-between;align-items:end;gap:8px;padding-top:11px;border-top:1px solid #f0f0ea}
.product-card-price-label{display:block;font-size:10px;color:#888d83;letter-spacing:.045em;font-weight:700;margin-bottom:4px}
.product-card-price{font:800 18px/1.25 Manrope,sans-serif;color:#252920;white-space:nowrap}
.product-card-units{font-size:12px;font-weight:800;text-align:right;color:#545950;white-space:nowrap}
.product-card-actions{display:flex;gap:8px;margin-top:13px}
.product-card-actions .btn{flex:1;min-height:36px;padding:8px;font-size:12px}
.product-catalog-empty{grid-column:1/-1;background:#fff;border:1px dashed #dfdfd6;border-radius:16px}
.product-catalog .pagination{background:#fff;border:1px solid #e9e9e3;border-radius:14px;margin-top:15px}
@media(max-width:1500px){.product-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-catalog{grid-template-columns:225px minmax(0,1fr)}}
@media(max-width:1150px){.product-catalog{grid-template-columns:1fr}.product-filter-panel{position:static}.product-filter-form{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.product-filter-title,.filter-divider,.filter-note{grid-column:1/-1}.product-filter-form .btn{margin-top:0}.product-filter-form .reset-filter{align-self:center}.product-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.sidebar{background:#fff}.page-heading h1{font-size:31px}.product-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){html,body{font-size:14px}.topbar{height:66px}.page-wrap{padding:22px 15px 30px}.page-heading h1{font-size:28px}.page-subtitle{font-size:14px}.eyebrow{font-size:10px}.btn{font-size:13px;min-height:42px}.metric-grid{gap:10px}.metric-card{padding:15px}.metric-top{font-size:11px}.metric-value{font-size:24px}.metric-foot{font-size:11px}.panel-heading{padding:18px 16px 15px}.panel-heading h2{font-size:16px}.panel-heading p{font-size:12px}.quick-action{padding:13px}.quick-action strong{font-size:12px}.quick-action small{font-size:11px}.form-panel{padding:18px}.field-label{font-size:13px}.input{font-size:14px;min-height:44px}.table-wrap table{font-size:12px}.product-catalog{gap:12px}.product-filter-panel{padding:16px}.product-filter-form{grid-template-columns:1fr 1fr;gap:9px}.product-filter-form .field-label{font-size:12px}.product-results-head{padding:15px 16px}.product-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{border-radius:13px}.product-card-body{padding:11px}.product-card h2{font-size:13px}.product-card-brand{font-size:11px;margin-bottom:10px}.product-card-price{font-size:16px}.product-card-price-label{font-size:9px}.product-card-sku{font-size:9px}.product-card-actions{gap:6px}.product-card-actions .btn{font-size:11px;min-height:34px;padding:7px 5px}.product-card-stock{font-size:10px;top:8px;left:8px}.product-results-title{font-size:16px}.login-body{padding:0}.login-layout{min-height:100vh;border-radius:0;grid-template-columns:1fr}.login-panel{padding:33px 23px 38px;order:1}.login-story{order:2;min-height:245px;padding:24px;background-position:center 45%}.login-story .brand{padding:0 0 18px}.story-copy{margin:12px 0 8px}.story-copy h1{font-size:29px;margin:10px 0}.story-copy p{font-size:13px;margin-bottom:0}.story-foot{display:none}.login-card{width:100%;max-width:430px}.login-card h2{font-size:25px}.detail-grid,.split-layout,.report-two-col{grid-template-columns:1fr}.purchase-layout,.sale-layout,.settings-layout,.invoice-detail-layout{grid-template-columns:1fr}.summary-panel{position:static}.module-toggle-list{grid-template-columns:1fr}}
@media(max-width:420px){.product-filter-form{grid-template-columns:1fr}.product-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-card-body{padding:9px}.product-card h2{font-size:12px}.product-card-price{font-size:15px}.product-card-actions .btn{font-size:10px}.metric-value{font-size:21px}.page-heading h1{font-size:25px}.topbar-title strong{font-size:13px}}