@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";:root{color:#202944;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--primary:#6258d9;--primary-dark:#5146c5;--primary-soft:#f0edff;--background:#f5f6fa;--surface:#fff;--card-bg:#fff;--input-bg:#f8f9fc;--hover-bg:#f5f6ff;--table-header-bg:#f9f9fc;--text-primary:#202944;--text-secondary:#68758a;--text-muted:#8490a5;--border:#eaecf2;--border-color:#e9edf3;--sidebar-width:255px;background:#f5f6fa;font-family:Inter,sans-serif}*{box-sizing:border-box}body{background:var(--background);min-width:320px;min-height:100vh;color:var(--text-primary);margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh}.sidebar{width:var(--sidebar-width);color:#fff;z-index:20;background:#202944;flex-direction:column;padding:25px 17px 17px;display:flex;position:fixed;inset:0 auto 0 0}.main-area{margin-left:var(--sidebar-width);min-height:100vh}.page-content{max-width:1600px;margin:auto;padding:30px 34px 45px}.sidebar-brand{align-items:center;gap:12px;padding:0 8px 35px;display:flex}.brand-icon{background:var(--primary);color:#fff;border-radius:13px;place-items:center;width:42px;height:42px;display:grid}.sidebar-brand h2{margin:0;font-size:17px;font-weight:700}.sidebar-brand span{color:#aab2c7;margin-top:4px;font-size:10px;display:block}.sidebar-section-label{color:#8792aa;letter-spacing:1.2px;padding:0 12px 13px;font-size:10px;font-weight:700}.sidebar-nav{flex-direction:column;gap:6px;display:flex}.nav-link{color:#b8c0d1;border-radius:9px;align-items:center;gap:13px;min-height:46px;padding:0 13px;font-size:13px;font-weight:500;transition:all .2s;display:flex}.nav-link:hover{color:#fff;background:#303b58}.nav-link.active{background:var(--primary);color:#fff;box-shadow:0 5px 15px #6258d933}.sidebar-bottom{margin-top:auto}.sidebar-status{background:#303b58;border-radius:10px;align-items:center;gap:11px;padding:13px 11px;display:flex}.status-dot{background:#43c58a;border-radius:50%;width:9px;height:9px;box-shadow:0 0 0 4px #43c58a1f}.sidebar-status strong{font-size:11px;display:block}.sidebar-status span:not(.status-dot){color:#aab2c7;margin-top:4px;font-size:10px;display:block}.sidebar-version{color:#8792aa;text-align:center;margin-top:17px;font-size:10px}.sidebar-close,.sidebar-overlay{display:none}.topbar{background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;height:88px;padding:0 34px;display:flex}.topbar-left{align-items:center;gap:12px;display:flex}.topbar h1{margin:0;font-size:18px;font-weight:700}.topbar p{color:var(--text-secondary);margin:5px 0 0;font-size:11px}.topbar-right{align-items:center;gap:20px;display:flex}.topbar-search{border:1px solid var(--border);color:#929bad;border-radius:8px;align-items:center;gap:9px;width:210px;height:39px;padding:0 10px;font-size:11px;display:flex}.topbar-search kbd{border:1px solid var(--border);border-radius:4px;margin-left:auto;padding:3px 5px;font-size:10px}.user-avatar{width:36px;height:36px;color:var(--primary);background:#eeeaff;border-radius:50%;place-items:center;font-size:13px;font-weight:700;display:grid}.menu-button{color:var(--text-primary);background:0 0;border:none;display:none}.page-eyebrow{color:var(--primary);letter-spacing:1.3px;margin-bottom:7px;font-size:10px;font-weight:800;display:block}.primary-button,.secondary-button,.danger-button{cursor:pointer;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 16px;font-size:13px;font-weight:650;transition:all .2s;display:inline-flex}.primary-button{background:var(--primary);color:#fff;border:1px solid var(--primary)}.primary-button:hover{background:var(--primary-dark);border-color:var(--primary-dark);transform:translateY(-1px)}.secondary-button{background:var(--surface);color:var(--text-secondary);border:1px solid var(--border-color)}.secondary-button:hover{color:var(--text-primary);background:#f4f5f9}.danger-button{color:#fff;background:#d65360;border:1px solid #d65360}.danger-button:hover{background:#bd414e;border-color:#bd414e}.primary-button:disabled,.secondary-button:disabled,.danger-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.icon-button,.modal-close-button{width:36px;height:36px;color:var(--text-secondary);background:var(--surface);border:1px solid var(--border-color);cursor:pointer;border-radius:9px;place-items:center;transition:all .15s;display:grid}.icon-button:hover,.modal-close-button:hover{color:var(--primary);background:var(--hover-bg);border-color:#dcd8fa}.status-badge{text-transform:capitalize;border-radius:20px;align-items:center;padding:5px 10px;font-size:10px;font-weight:650;display:inline-flex}.status-badge.pending,.status-pending{color:#b7791f;background:#fff4e5}.status-badge.confirmed,.status-confirmed{color:#16865b;background:#e8f8f0}.status-badge.cancelled,.status-cancelled{color:#c44d5a;background:#fff0f1}.status-default{color:#77778b;background:#f0f0f5}@keyframes spin{to{transform:rotate(360deg)}}.coming-soon h2{margin-top:0;font-size:18px}.coming-soon p{color:var(--text-secondary);font-size:12px}.coming-soon span{color:var(--primary);margin-top:15px;font-size:11px;display:inline-block}@media (width<=760px){.sidebar{transition:transform .25s;transform:translate(-100%)}.sidebar.sidebar-open{transform:translate(0)}.sidebar-overlay{z-index:19;background:#141c3073;display:block;position:fixed;inset:0}.sidebar-close{color:#fff;background:0 0;border:none;place-items:center;margin-left:auto;display:grid}.main-area{margin-left:0}.menu-button{place-items:center;display:grid}.topbar{height:75px;padding:0 17px}.topbar-search{display:none}.page-content{padding:23px 17px 35px}}@media (width<=480px){.topbar h1{font-size:15px}.topbar p{font-size:9px}}.dashboard-page{width:100%;min-width:0;color:var(--text-primary);flex-direction:column;gap:24px;display:flex}.dashboard-header{justify-content:space-between;align-items:center;gap:16px;display:flex}.dashboard-eyebrow,.dashboard-panel-label{color:var(--text-muted);letter-spacing:1.2px;margin-bottom:7px;font-size:10px;font-weight:800;display:block}.dashboard-header h1{margin:0;font-size:28px;font-weight:750}.dashboard-header p{color:var(--text-muted);margin:7px 0 0;font-size:13px}.dashboard-refresh{border:1px solid var(--border-color);background:var(--surface);color:var(--text-secondary);cursor:pointer;border-radius:9px;justify-content:center;align-items:center;gap:8px;padding:10px 15px;font-size:12px;font-weight:650;transition:all .15s;display:inline-flex}.dashboard-refresh:hover{background:var(--hover-bg);color:var(--primary)}.dashboard-refresh:disabled{opacity:.6;cursor:not-allowed}.dashboard-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.dashboard-stat-card,.dashboard-panel{border:1px solid var(--border-color);background:var(--surface);border-radius:13px;min-width:0;box-shadow:0 3px 12px #1e1e3c06}.dashboard-stat-card{padding:19px}.dashboard-stat-top,.dashboard-panel-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.dashboard-stat-top>span{color:var(--text-secondary);font-size:12px;font-weight:600}.dashboard-stat-card>strong{letter-spacing:-.8px;margin-top:17px;font-size:29px;font-weight:750;display:block}.dashboard-stat-caption{color:var(--text-muted);margin-top:7px;font-size:11px;display:block}.dashboard-stat-icon,.dashboard-panel-icon{border-radius:11px;flex-shrink:0;justify-content:center;align-items:center;width:39px;height:39px;display:flex}.dashboard-stat-icon.purple,.dashboard-panel-icon.purple{background:var(--primary-soft);color:var(--primary)}.dashboard-stat-icon.blue{color:#4786e8;background:#eaf2ff}.dashboard-stat-icon.orange{color:#e99a42;background:#fff3e7}.dashboard-stat-icon.green,.dashboard-panel-icon.green{color:#32a66a;background:#e8f8ef}.dashboard-main-grid{grid-template-columns:1.15fr .85fr;gap:16px;display:grid}.dashboard-panel{padding:21px}.dashboard-panel-header{margin-bottom:20px}.dashboard-panel-header h2{margin:0;font-size:16px;font-weight:700}.revenue-value{margin-top:26px}.revenue-value span{letter-spacing:-1px;font-size:clamp(28px,4vw,38px);font-weight:780}.dashboard-muted{color:var(--text-muted);margin:7px 0 22px;font-size:12px}.revenue-footer{border-top:1px solid var(--border);flex-wrap:wrap;gap:18px;padding-top:16px;display:flex}.revenue-footer div{color:var(--text-secondary);align-items:center;gap:7px;font-size:11px;display:flex}.revenue-footer div:first-child svg{color:#32a66a}.revenue-footer div:nth-child(2) svg{color:#d66d6d}.revenue-footer div:nth-child(3) svg{color:#e99a42}.inventory-total{align-items:baseline;gap:10px;margin:23px 0;display:flex}.inventory-total strong{font-size:34px;font-weight:780}.inventory-total span{color:var(--text-muted);font-size:12px}.inventory-indicators{border-top:1px solid var(--border);border-bottom:1px solid var(--border);grid-template-columns:1fr 1fr;gap:12px;padding:15px 0;display:grid}.inventory-indicator{justify-content:space-between;align-items:center;gap:8px;display:flex}.inventory-indicator-label{color:var(--text-secondary);align-items:center;gap:7px;font-size:11px;display:flex}.inventory-indicator strong{font-size:15px}.inventory-dot{border-radius:50%;width:7px;height:7px}.inventory-dot.warning{background:#e9a34c}.inventory-dot.danger{background:#dc6d75}.dashboard-text-link,.dashboard-view-all{color:var(--primary);align-items:center;gap:7px;font-size:11px;font-weight:700;text-decoration:none;display:inline-flex}.dashboard-text-link{margin-top:17px}.dashboard-bottom-grid{grid-template-columns:1.25fr .75fr;gap:16px;display:grid}.dashboard-view-all{white-space:nowrap}.recent-orders-list{flex-direction:column;display:flex}.recent-order-row{border-top:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:15px;padding:13px 0;display:grid}.recent-order-main{align-items:center;gap:11px;min-width:0;display:flex}.recent-order-icon{background:var(--primary-soft);width:36px;height:36px;color:var(--primary);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.recent-order-main>div:last-child,.recent-order-info{flex-direction:column;gap:5px;min-width:0;display:flex}.recent-order-main strong,.recent-order-info strong{font-size:12px;font-weight:700}.recent-order-main span,.recent-order-info span{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.recent-order-info{align-items:flex-end}.dashboard-status{white-space:nowrap;border-radius:20px;justify-content:center;align-items:center;padding:5px 8px;font-size:9px;font-weight:750;display:inline-flex}.dashboard-empty{min-height:180px;color:var(--text-muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:9px;display:flex}.dashboard-empty strong{color:var(--text-secondary);font-size:13px}.dashboard-empty p{margin:0;font-size:11px}.quick-actions-panel{flex-direction:column;display:flex}.dashboard-action-link{color:inherit;border:1px solid #0000;border-radius:10px;align-items:center;gap:12px;padding:13px 10px;text-decoration:none;transition:background .15s,border-color .15s;display:flex}.dashboard-action-link+.dashboard-action-link{margin-top:7px}.dashboard-action-link:hover{background:var(--hover-bg);border-color:#ece9ff}.dashboard-action-icon{background:var(--primary-soft);width:37px;height:37px;color:var(--primary);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.dashboard-action-link>div:nth-child(2){flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.dashboard-action-link strong{font-size:12px;font-weight:700}.dashboard-action-link span{color:var(--text-muted);font-size:10px}.dashboard-action-link>svg{color:var(--text-muted)}.primary-action{background:#f8f6ff}.primary-action .dashboard-action-icon{background:var(--primary);color:#fff}.dashboard-error{color:#bd5555;background:#fff7f7;border:1px solid #f2d1d1;border-radius:10px;align-items:center;gap:12px;padding:14px;display:flex}.dashboard-error>div{flex:1;min-width:0}.dashboard-error strong{font-size:12px}.dashboard-error p{overflow-wrap:anywhere;margin:4px 0 0;font-size:11px}.dashboard-error button{background:var(--surface);color:#bd5555;cursor:pointer;border:1px solid #e8bcbc;border-radius:7px;padding:7px 11px;font-size:11px}.dashboard-loading{min-height:300px;color:var(--text-secondary);justify-content:center;align-items:center;gap:11px;font-size:13px;display:flex}.spin-icon{animation:1s linear infinite spin}@media (width<=1100px){.dashboard-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=850px){.dashboard-main-grid,.dashboard-bottom-grid{grid-template-columns:1fr}}@media (width<=560px){.dashboard-page{gap:16px}.dashboard-header{align-items:flex-start}.dashboard-header h1{font-size:23px}.dashboard-header p{max-width:230px;line-height:1.5}.dashboard-refresh{padding:9px;font-size:0}.dashboard-refresh svg{width:17px;height:17px}.dashboard-stats-grid{gap:10px}.dashboard-stat-card{padding:14px}.dashboard-stat-card>strong{font-size:24px}.dashboard-stat-top>span{font-size:10px}.dashboard-stat-icon{width:33px;height:33px}.dashboard-panel{padding:16px}.recent-order-row{grid-template-columns:minmax(0,1fr) auto;gap:9px}.recent-order-info{display:none}.dashboard-status{font-size:8px}.inventory-indicators{grid-template-columns:1fr}.revenue-footer{gap:11px}}.products-page{flex-direction:column;gap:24px;width:100%;min-width:0;display:flex}.products-page .page-header{justify-content:space-between;align-items:center;gap:20px;display:flex}.products-page .page-header h1{color:var(--text-primary);margin:0;font-size:27px;font-weight:750}.products-page .page-header p{color:var(--text-muted);margin:7px 0 0;font-size:14px}.products-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.product-stat-card{background:var(--surface);border:1px solid var(--border-color);border-radius:13px;align-items:center;gap:15px;min-width:0;padding:19px;display:flex}.product-stat-icon{border-radius:11px;flex-shrink:0;justify-content:center;align-items:center;width:43px;height:43px;display:flex}.product-stat-icon.purple{background:var(--primary-soft);color:var(--primary)}.product-stat-icon.green{color:#269c65;background:#e8f7ef}.product-stat-icon.orange{color:#e49a32;background:#fff4e6}.product-stat-icon.red{color:#e15b63;background:#ffeded}.product-stat-card span{color:var(--text-muted);margin-bottom:5px;font-size:12px;display:block}.product-stat-card h3{color:var(--text-primary);margin:0;font-size:23px;font-weight:750}.products-page .alert{border-radius:9px;align-items:center;gap:10px;padding:12px 15px;font-size:13px;display:flex}.products-page .alert button{cursor:pointer;background:0 0;border:none;margin-left:auto;display:flex}.alert-error{color:#bb4149;background:#fff0f0;border:1px solid #f5d6d6}.alert-success{color:#218657;background:#edfaf3;border:1px solid #d2f0df}.products-container{background:var(--surface);border:1px solid var(--border-color);border-radius:13px;overflow:hidden}.products-toolbar{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;gap:15px;padding:19px 20px;display:flex}.products-search{background:var(--input-bg);border:1px solid var(--border-color);width:min(390px,100%);color:var(--text-muted);border-radius:8px;align-items:center;gap:10px;padding:0 12px;display:flex}.products-search input{width:100%;min-width:0;color:var(--text-primary);background:0 0;border:none;outline:none;padding:11px 0;font-size:12px}.products-search input::placeholder{color:var(--text-muted)}.products-filters{align-items:center;gap:9px;display:flex}.products-filters select{background:var(--surface);border:1px solid var(--border-color);color:var(--text-secondary);cursor:pointer;border-radius:8px;outline:none;padding:10px 12px;font-size:12px}.refresh-button{border:1px solid var(--border-color);width:37px;height:37px;color:var(--primary);background:var(--surface);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;display:flex}.refresh-button:hover{background:var(--hover-bg)}.products-table-header{padding:18px 20px}.products-table-header h2{color:var(--text-primary);margin:0 0 5px;font-size:15px}.products-table-header span{color:var(--text-muted);font-size:11px}.products-table-wrapper{width:100%;overflow-x:auto}.products-table{border-collapse:collapse;text-align:left;white-space:nowrap;width:100%}.products-table th{background:var(--table-header-bg);color:var(--text-muted);border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);padding:14px 18px;font-size:11px;font-weight:650}.products-table td{color:var(--text-secondary);border-bottom:1px solid var(--border);padding:15px 18px;font-size:12px}.products-table tbody tr:last-child td{border-bottom:none}.products-table tbody tr:hover{background:var(--hover-bg)}.product-name-cell{align-items:center;gap:11px;display:flex}.product-avatar{background:var(--primary-soft);width:36px;height:36px;color:var(--primary);border-radius:9px;justify-content:center;align-items:center;display:flex}.product-name-cell strong{color:var(--text-primary);font-size:12px;font-weight:650;display:block}.product-name-cell span{color:var(--text-muted);margin-top:4px;font-size:10px;display:block}.product-sku{color:var(--text-secondary);font-family:monospace;font-size:11px}.product-price{font-weight:700;color:var(--text-primary)!important}.status-active,.stock-available{color:#26885a;background:#eaf8f0}.status-inactive,.stock-out{color:#d15a62;background:#fff0f0}.stock-low{color:#ce8a27;background:#fff5e7}.product-actions{align-items:center;gap:7px;display:flex}.action-button{cursor:pointer;border:none;border-radius:7px;justify-content:center;align-items:center;width:31px;height:31px;transition:all .2s;display:flex}.edit-action{background:var(--primary-soft);color:var(--primary)}.edit-action:hover{background:#e4e0ff}.deactivate-action{color:#d45b63;background:#fff0f0}.deactivate-action:hover{background:#ffe1e1}.products-state{min-height:240px;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:30px;display:flex}.products-state h3{color:var(--text-primary);margin:0;font-size:16px}.products-state p{margin:0;font-size:12px}.loading-icon{color:var(--primary);animation:1s linear infinite spin}.product-modal-overlay{z-index:1000;background:#1919307a;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.product-modal{background:var(--surface);border-radius:15px;width:100%;max-width:590px;max-height:90vh;overflow-y:auto;box-shadow:0 15px 55px #00000029}.product-modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:flex-start;padding:23px 25px;display:flex}.product-modal-header h2{color:var(--text-primary);margin:0 0 7px;font-size:18px}.product-modal-header p{color:var(--text-muted);margin:0;font-size:12px}.product-modal form{padding:23px 25px}.product-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;display:grid}.form-field{flex-direction:column;gap:8px;min-width:0;display:flex}.form-field.full-width{grid-column:1/-1}.form-field label{color:var(--text-secondary);font-size:12px;font-weight:650}.form-field input,.form-field textarea{box-sizing:border-box;border:1px solid var(--border-color);width:100%;color:var(--text-primary);background:#fcfcfe;border-radius:8px;outline:none;padding:11px 12px;font-family:inherit;font-size:12px}.form-field input:focus,.form-field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6258d91a}.form-field textarea{resize:vertical;min-height:90px}.product-modal-footer{border-top:1px solid var(--border-color);justify-content:flex-end;gap:10px;margin-top:25px;padding-top:19px;display:flex}@media (width<=1100px){.products-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.products-page .page-header{align-items:flex-start}.products-toolbar{flex-direction:column;align-items:stretch}.products-search{width:auto}.products-filters{flex-wrap:wrap}.products-filters select{flex:1;min-width:0}}@media (width<=480px){.products-stats{grid-template-columns:1fr 1fr;gap:10px}.product-stat-card{gap:9px;padding:12px}.product-stat-icon{width:35px;height:35px}.product-stat-card h3{font-size:19px}.product-stat-card span{font-size:10px}.products-page .page-header h1{font-size:23px}.product-form-grid{grid-template-columns:1fr}.form-field.full-width{grid-column:auto}.product-modal{max-height:95vh}.product-modal-header,.product-modal form{padding:18px}}.orders-page{flex-direction:column;gap:24px;width:100%;min-width:0;display:flex}.orders-page .page-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.orders-page .page-heading h1{margin:5px 0}.orders-page .page-heading p{color:var(--text-muted);margin:0;font-size:14px}.orders-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.orders-stat-card{background:var(--surface);border:1px solid var(--border-color);border-radius:14px;align-items:center;gap:14px;min-width:0;padding:19px;display:flex}.orders-stat-icon{border-radius:12px;flex-shrink:0;place-items:center;width:44px;height:44px;display:grid}.stat-icon-blue{color:#5368db;background:#edf0ff}.stat-icon-orange{color:#d58a27;background:#fff5e7}.stat-icon-green{color:#21976a;background:#e8f8f0}.stat-icon-red{color:#d45b67;background:#fff0f1}.orders-stat-card>div:last-child{flex-direction:column;gap:5px;min-width:0;display:flex}.orders-stat-card span{color:var(--text-muted);font-size:12px}.orders-stat-card strong{color:var(--text-primary);font-size:23px;font-weight:750}.orders-content{background:var(--surface);border:1px solid var(--border-color);border-radius:15px;overflow:hidden}.orders-toolbar{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;gap:14px;padding:18px 20px;display:flex}.orders-search{width:min(420px,100%);color:var(--text-muted);background:var(--input-bg);border:1px solid var(--border-color);border-radius:9px;align-items:center;gap:10px;padding:10px 12px;display:flex}.orders-search input{width:100%;min-width:0;color:var(--text-primary);font:inherit;background:0 0;border:0;outline:0;font-size:13px}.orders-toolbar-actions{align-items:center;gap:9px;display:flex}.orders-toolbar-actions select{min-height:39px;color:var(--text-primary);background:var(--surface);border:1px solid var(--border-color);border-radius:9px;outline:none;padding:0 12px}.orders-table-wrapper{width:100%;overflow-x:auto}.orders-table{border-collapse:collapse;text-align:left;white-space:nowrap;width:100%}.orders-table th{color:var(--text-muted);background:var(--table-header-bg);text-transform:uppercase;letter-spacing:.5px;padding:14px 20px;font-size:11px;font-weight:700}.orders-table td{color:var(--text-primary);border-top:1px solid var(--border);padding:16px 20px;font-size:13px}.orders-table tbody tr:hover{background:var(--hover-bg)}.order-number{color:var(--primary);font-weight:750}.order-customer{flex-direction:column;gap:5px;display:flex}.order-customer strong{font-size:13px;font-weight:650}.order-customer span,.order-date{color:var(--text-muted)!important;font-size:11px!important}.order-amount{font-size:13px;font-weight:750}.order-status{border-radius:20px;align-items:center;gap:7px;width:fit-content;padding:6px 10px;font-size:11px;font-weight:700;display:inline-flex}.order-status>span{background:currentColor;border-radius:50%;width:6px;height:6px}.view-order-button{color:var(--primary);border:1px solid var(--border-color);cursor:pointer;background:0 0;border-radius:8px;align-items:center;gap:7px;padding:7px 10px;font-size:12px;font-weight:650;display:inline-flex}.view-order-button:hover{background:var(--hover-bg);border-color:var(--primary)}.orders-table-message{height:180px;text-align:center!important;color:var(--text-muted)!important}.orders-table-message svg{margin:0 auto 10px;display:block}.orders-table-message strong,.orders-table-message span{margin-top:5px;display:block}.orders-table-message strong{color:var(--text-primary)}.orders-table-footer{color:var(--text-muted);border-top:1px solid var(--border-color);padding:14px 20px;font-size:11px}.orders-alert{border-radius:9px;align-items:center;gap:10px;padding:12px 14px;font-size:13px;display:flex}.orders-alert span{flex:1}.orders-alert button{cursor:pointer;background:0 0;border:0;place-items:center;padding:3px;display:grid}.orders-alert-error{color:#b83f4c;background:#fff0f1;border:1px solid #f8d5d9}.orders-alert-success{color:#167b54;background:#eaf8f1;border:1px solid #ced}.orders-modal-overlay{z-index:1000;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0f172a8c;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.orders-modal{background:var(--surface);border:1px solid var(--border-color);border-radius:17px;flex-direction:column;width:min(760px,100%);max-height:min(90vh,900px);display:flex;overflow:hidden;box-shadow:0 24px 80px #0f172a33}.orders-modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:flex-start;gap:20px;padding:23px 25px;display:flex}.orders-modal-header h2{color:var(--text-primary);margin:6px 0;font-size:21px}.orders-modal-header p{color:var(--text-muted);margin:0;font-size:12px}.orders-modal-body{padding:23px 25px;overflow-y:auto}.orders-modal-footer{border-top:1px solid var(--border-color);justify-content:flex-end;align-items:center;gap:10px;padding:17px 25px;display:flex}.remove-order-item-button:disabled,.add-order-item-button:disabled{opacity:.55;cursor:not-allowed}.form-section-title{color:var(--text-primary);align-items:center;gap:8px;font-size:13px;font-weight:750;display:flex}.order-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:16px 0 25px;display:grid}.order-form-field{flex-direction:column;gap:7px;min-width:0;display:flex}.order-form-field>span{color:var(--text-secondary);font-size:11px;font-weight:650}.order-form-field input,.order-form-field select{width:100%;min-width:0;height:41px;color:var(--text-primary);background:var(--input-bg);border:1px solid var(--border-color);font:inherit;border-radius:8px;outline:none;padding:0 11px;font-size:12px}.order-form-field input:focus,.order-form-field select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6258d91a}.form-section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.add-order-item-button{color:var(--primary);background:var(--hover-bg);cursor:pointer;border:1px solid #0000;border-radius:7px;align-items:center;gap:5px;padding:7px 10px;font-size:11px;font-weight:700;display:inline-flex}.order-draft-items{flex-direction:column;gap:12px;display:flex}.order-draft-row{background:var(--input-bg);border:1px solid var(--border-color);border-radius:10px;grid-template-columns:minmax(180px,1fr) 95px 95px 34px;align-items:end;gap:12px;padding:13px;display:grid}.draft-product-field small{color:var(--text-muted);font-size:10px}.draft-line-total{flex-direction:column;gap:8px;padding-bottom:10px;display:flex}.draft-line-total span{color:var(--text-muted);font-size:10px}.draft-line-total strong{color:var(--text-primary);font-size:12px}.remove-order-item-button{color:#c44d5a;cursor:pointer;background:0 0;border:1px solid #f2d9dc;border-radius:8px;place-items:center;width:33px;height:38px;display:grid}.order-estimated-total{background:var(--hover-bg);border-radius:10px;justify-content:space-between;align-items:center;gap:15px;margin-top:18px;padding:15px;display:flex}.order-estimated-total>div{flex-direction:column;gap:5px;display:flex}.order-estimated-total span{color:var(--text-primary);font-size:12px;font-weight:750}.order-estimated-total small{color:var(--text-muted);font-size:10px}.order-estimated-total strong{color:var(--primary);font-size:20px}.order-products-message{color:var(--text-muted);background:var(--input-bg);border:1px dashed var(--border-color);text-align:center;border-radius:9px;padding:18px;font-size:12px}.order-details-modal{width:min(650px,100%)}.order-detail-customer{background:var(--input-bg);border:1px solid var(--border-color);border-radius:11px;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:16px;display:grid}.order-detail-info{min-width:0;color:var(--primary);align-items:flex-start;gap:10px;display:flex}.order-detail-info>div{flex-direction:column;gap:5px;min-width:0;display:flex}.order-detail-info span{color:var(--text-muted);font-size:10px}.order-detail-info strong{overflow-wrap:anywhere;color:var(--text-primary);font-size:12px}.order-detail-items-title{margin:25px 0 13px}.order-detail-items{flex-direction:column;display:flex}.order-detail-item{border-bottom:1px solid var(--border);color:var(--text-primary);justify-content:space-between;align-items:center;gap:15px;padding:13px 0;font-size:12px;display:flex}.order-detail-product{flex-direction:column;gap:5px;display:flex}.order-detail-product span{color:var(--text-muted);font-size:10px}.order-detail-total{color:var(--text-primary);border-top:1px solid var(--border-color);justify-content:space-between;align-items:center;margin-top:17px;padding-top:15px;font-size:13px;font-weight:750;display:flex}.order-detail-total strong{color:var(--primary);font-size:20px}.order-details-loading{min-height:220px;color:var(--text-muted);justify-content:center;align-items:center;gap:12px;font-size:13px;display:flex}.order-details-loading svg{animation:1s linear infinite spin}@media (width<=1050px){.orders-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=700px){.orders-page .page-heading{flex-direction:column;align-items:flex-start}.orders-toolbar{flex-direction:column;align-items:stretch}.orders-search{width:100%}.orders-toolbar-actions{justify-content:space-between}.orders-table th,.orders-table td{padding:13px 14px}.orders-modal-overlay{align-items:flex-end;padding:0}.orders-modal{border-radius:17px 17px 0 0;width:100%;max-height:94vh}.orders-modal-header,.orders-modal-body{padding:19px}.orders-modal-footer{flex-wrap:wrap;padding:14px 19px}.orders-modal-footer button{flex:1}.order-form-grid{grid-template-columns:1fr}.order-draft-row{grid-template-columns:minmax(0,1fr) 85px 34px;gap:9px}.draft-product-field{grid-column:1/-1}.draft-line-total{padding-bottom:9px}.order-detail-customer{grid-template-columns:1fr}}@media (width<=420px){.orders-stats{gap:9px}.orders-stat-card{gap:9px;padding:12px}.orders-stat-icon{width:36px;height:36px}.orders-stat-card strong{font-size:19px}.orders-stat-card span{font-size:10px}}.create-order-modal{min-height:0}.create-order-modal>form{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.create-order-modal .orders-modal-body{overscroll-behavior:contain;flex:1;min-height:0;overflow-y:auto}.create-order-modal .orders-modal-footer{background:var(--surface);z-index:2;flex-shrink:0;position:relative}.create-order-page{width:100%;min-width:0;color:var(--text-primary);flex-direction:column;gap:24px;display:flex}.order-section{background:var(--surface);border:1px solid var(--border);border-radius:13px;padding:21px;box-shadow:0 3px 12px #1e1e3c06}.order-section h2{color:var(--text-primary);margin:0 0 18px;font-size:16px;font-weight:700}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.form-group{flex-direction:column;gap:7px;min-width:0;display:flex}.form-group label{color:var(--text-secondary);font-size:12px;font-weight:650}.form-group input,.add-product-row select,.quantity-input{border:1px solid var(--border-color);width:100%;min-width:0;height:41px;color:var(--text-primary);background:#fcfcfe;border-radius:8px;outline:none;padding:0 12px;font-size:12px;transition:border-color .15s,box-shadow .15s}.form-group input:focus,.add-product-row select:focus,.quantity-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6258d91a}.add-product-row{gap:12px;margin-bottom:18px;display:flex}.add-product-row select{flex:1}.remove-button{color:#d45b63;background:#fff0f0;border:1px solid #f5d6d6;border-radius:8px;justify-content:center;align-items:center;padding:7px 11px;font-size:12px;font-weight:650;transition:all .2s;display:inline-flex}.remove-button:hover{background:#ffe1e1}.order-items-table{border:1px solid var(--border);border-radius:10px;width:100%;overflow-x:auto}.order-items-table table{border-collapse:collapse;text-align:left;white-space:nowrap;width:100%}.order-items-table th{background:var(--table-header-bg);color:var(--text-secondary);border-bottom:1px solid var(--border);padding:13px 16px;font-size:11px;font-weight:700}.order-items-table td{color:var(--text-primary);border-bottom:1px solid var(--border);padding:14px 16px;font-size:12px}.order-items-table tbody tr:last-child td{border-bottom:none}.order-items-table tbody tr:hover{background:var(--hover-bg)}.order-items-table td small{color:var(--text-secondary);margin-top:4px;font-size:10px;display:block}.quantity-input{width:75px;height:36px;padding:0 10px}.empty-state{text-align:center;color:var(--text-secondary);background:var(--input-bg);border:1px dashed var(--border-color);border-radius:10px;padding:32px 20px;font-size:12px}.order-summary{background:var(--surface);border:1px solid var(--border);border-radius:13px;justify-content:flex-end;align-items:center;gap:36px;padding:20px 21px;display:flex}.order-summary div{flex-direction:column;gap:5px;display:flex}.order-summary span{color:var(--text-secondary);font-size:11px;font-weight:600}.order-summary strong{color:var(--text-primary);font-size:20px;font-weight:750}.order-summary .total-amount{color:var(--primary)}.order-actions{justify-content:flex-end;gap:10px;display:flex}.error-message{color:#bb4149;background:#fff0f0;border:1px solid #f5d6d6;border-radius:9px;padding:12px 15px;font-size:13px}@media (width<=760px){.form-grid{grid-template-columns:1fr}.add-product-row{flex-direction:column}.order-summary{justify-content:space-between;gap:15px}}.create-order-page .page-header{justify-content:space-between;align-items:center;gap:20px;display:flex}.create-order-page .page-header h1{color:var(--text-primary);margin:0;font-size:27px;font-weight:750}.create-order-page .page-header p{color:var(--text-muted);margin:7px 0 0;font-size:14px}
