:root{--navy:#071b3a;--blue:#0d47a1;--gold:#f4c84b;--ink:#12203a;--muted:#68758a;--bg:#f5f7fb;--white:#fff;--line:#e4e9f0;--green:#168b52;--red:#d63a35;--orange:#c77d10;--shadow:0 18px 50px rgba(18,32,58,.14)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}button,input,select{font:inherit}.hidden{display:none!important}
.topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:30}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:11px;background:var(--navy);color:var(--gold);display:grid;place-items:center;font-weight:900}.brand h1{font-size:18px;margin:0}.brand p{margin:2px 0 0;font-size:11px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:9px}.last-updated{font-size:11px;color:var(--muted)}.lang-btn,.refresh-btn{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 12px;cursor:pointer;font-weight:800}.refresh-btn{background:var(--navy);border-color:var(--navy);color:#fff}
.content{max-width:1450px;margin:auto;padding:27px 22px 60px}.summary-row{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:20px}.eyebrow{font-size:11px;color:var(--blue);font-weight:900;letter-spacing:.14em;text-transform:uppercase;margin:0 0 4px}.summary-row h2{font-size:29px;margin:0}.hero-sub{color:var(--muted);font-size:13px;margin:7px 0 0}.amount-card{background:var(--navy);border-radius:13px;color:#fff;padding:13px 19px;min-width:190px}.amount-card span{font-size:10px;color:#cfd8e8}.amount-card strong{display:block;color:var(--gold);font-size:25px;margin-top:2px}
.toolbar{display:flex;gap:9px;margin-bottom:12px}.search-wrap{flex:1;min-width:200px;background:#fff;border:1px solid var(--line);height:43px;border-radius:10px;display:flex;align-items:center;padding:0 12px;color:var(--muted)}.search-wrap input{border:0;outline:0;background:transparent;width:100%;padding:0 8px}.toolbar select{height:43px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 12px;min-width:150px;outline:0;font-weight:700;color:var(--ink)}
.orders-panel{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.orders-head,.order-row{display:grid;grid-template-columns:150px 190px minmax(240px,1fr) 125px 72px;align-items:center}.orders-head{min-height:42px;background:#f8f9fc;border-bottom:1px solid var(--line);font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:900;color:var(--muted);padding:0 15px}.order-row{min-height:82px;padding:10px 15px;border-bottom:1px solid #edf0f4;cursor:pointer;transition:.15s}.order-row:last-child{border-bottom:0}.order-row:hover{background:#fbfcff}.date-main{font-weight:850;font-size:12px}.date-time{font-size:11px;color:var(--muted);margin-top:3px}.customer-main{font-size:13px;font-weight:850}.customer-mobile{font-size:11px;color:var(--muted);margin-top:3px}.product-preview{display:flex;align-items:center;gap:6px;min-width:0}.product-chip{font-size:11px;background:#f3f5f8;border:1px solid #e9edf2;border-radius:7px;padding:5px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}.more-products{font-size:10px;color:var(--muted);white-space:nowrap}.row-amount{font-size:14px;font-weight:900}.status-select{width:135px;height:34px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:0 8px;font-size:11px;font-weight:850;outline:0}.view-btn{border:1px solid var(--line);background:#fff;border-radius:8px;height:34px;width:55px;cursor:pointer;font-size:11px;font-weight:900;color:var(--blue)}.view-btn:hover{background:#f2f6ff}.status-select[data-status="paid"],.status-select[data-status="delivered"]{border-color:#b8dfc8;background:#f5fcf8;color:var(--green)}.status-select[data-status="not-paid"],.status-select[data-status="not-delivered"]{border-color:#f0c9c7;background:#fff8f8;color:var(--red)}
.loading,.empty{text-align:center;padding:55px;color:var(--muted)}.empty div{font-size:40px}.empty h3{margin:7px 0}.empty p{font-size:13px}
.modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:18px}.modal-backdrop{position:absolute;inset:0;background:rgba(4,13,28,.58);backdrop-filter:blur(3px)}.modal-card{position:relative;width:min(650px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:25px}.modal-close{position:absolute;right:15px;top:13px;border:0;background:#f1f3f6;width:33px;height:33px;border-radius:50%;font-size:23px;line-height:1;cursor:pointer}.modal-top{display:flex;justify-content:space-between;gap:20px;padding-right:35px}.modal-kicker{font-size:10px;letter-spacing:.14em;color:var(--blue);font-weight:900;margin:0 0 5px}.modal-top h2{margin:0;font-size:24px}.muted{color:var(--muted);font-size:12px;margin:5px 0}.modal-total{text-align:right}.modal-total span{font-size:10px;color:var(--muted);display:block}.modal-total strong{font-size:25px;color:var(--navy)}.detail-grid{display:grid;grid-template-columns:1fr 1.5fr;gap:10px;margin:20px 0 17px}.detail-grid>div{background:#f7f9fc;border:1px solid var(--line);border-radius:10px;padding:11px}.detail-grid label,.modal-status label{display:block;font-size:10px;color:var(--muted);font-weight:850;margin-bottom:4px}.detail-grid strong{display:block;font-size:12px;line-height:1.4}.modal-section-title{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:9px;font-size:12px;font-weight:900}.modal-products{display:flex;flex-direction:column;gap:7px;padding:9px 0}.modal-product{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:10px;border:1px solid #edf0f4;border-radius:9px}.modal-product-name{font-size:12px;font-weight:800}.modal-product-ta{display:block;color:var(--muted);font-size:10px;font-weight:600;margin-top:2px}.modal-product-qty{font-size:11px;color:var(--muted)}.modal-product-price{font-size:12px;font-weight:900}.modal-status{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid var(--line);padding-top:15px;margin-top:5px}.modal-status select{width:100%;height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 9px;font-weight:800;outline:0}
@media(max-width:1050px){.orders-head,.order-row{grid-template-columns:125px 165px minmax(180px,1fr) 105px 125px 135px 62px}.product-chip{max-width:105px}.status-select{width:115px}}
@media(max-width:800px){.topbar{padding:0 14px}.last-updated{display:none}.content{padding:20px 12px 45px}.summary-row{align-items:stretch;flex-direction:column;gap:13px}.amount-card{min-width:0}.toolbar{flex-direction:column}.toolbar select{width:100%}.orders-panel{overflow:visible;background:transparent;border:0}.orders-head{display:none}.order-row{display:grid;grid-template-columns:1fr auto;gap:8px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:9px;padding:13px}.order-row .date-cell{grid-column:1}.order-row .customer-cell{grid-column:1}.order-row .product-cell{grid-column:1/-1}.order-row .amount-cell{grid-column:1}.order-row .view-cell{grid-column:2;grid-row:1 / span 2;align-self:start}.modal-card{padding:21px 16px}.detail-grid,.modal-status{grid-template-columns:1fr}.modal-top h2{font-size:20px}}
@media(max-width:470px){.brand p{display:none}.brand h1{font-size:16px}.lang-btn{padding:8px 9px}.refresh-btn{padding:8px 9px}.summary-row h2{font-size:25px}.product-chip{max-width:160px}.order-row .view-cell{grid-column:2;grid-row:1 / span 3}}
