:root{--ink:#192337;--muted:#7d8799;--line:#e7ebf2;--bg:#f5f7fb;--blue:#3459e6;--nav:#111b31;--green:#16845b;--red:#c23b4a;--amber:#a86a13}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px}.shell{display:flex;min-height:100vh}.sidebar{width:250px;background:var(--nav);color:#fff;padding:26px 17px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:11px;padding:0 7px 33px}.brand-icon{width:42px;height:42px;background:#f3f5ff;color:#3459e6;border-radius:13px;display:grid;place-items:center;font-weight:900;font-size:14px}.brand b{font-size:12px;letter-spacing:1.3px;display:block}.brand small{font-size:9px;color:#a7b4cd;letter-spacing:1.1px;display:block;margin-top:5px}.nav-label{color:#7e8ba6;font-size:10px;letter-spacing:1.4px;padding:0 11px 11px}.nav-item{color:#bdc7db;text-decoration:none;display:flex;align-items:center;gap:12px;padding:13px 12px;border-radius:9px;margin-bottom:5px;font-weight:600}.nav-item.active{background:#27375a;color:#fff;box-shadow:inset 3px 0 #7890ff}.dot{width:9px;height:9px;border-radius:50%;background:#fff}.dot.flipkart{background:#f7c948}.dot.amazon{background:#ff9a43}.dot.meesho{background:#ed7bb0}.arrow{margin-left:auto;font-size:22px;color:#8d9ab5}.sidebar-note{margin-top:40px;background:#1b2945;border:1px solid #2a3958;border-radius:12px;padding:15px;color:#dce4f5;font-size:12px;line-height:1.55}.sidebar-note p{color:#9eabc4;margin-bottom:0}.side-footer{margin-top:auto;color:#7786a3;font-size:11px;padding:25px 8px 0}.main{min-width:0;flex:1;padding:32px clamp(18px,3.2vw,48px)}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#8a95a8;font-weight:800}h1{font-size:29px;letter-spacing:-.8px;margin:8px 0 7px}h1 span{font-weight:400;color:#7c8798}.topbar p,.section-head p{color:var(--muted);margin:0;font-size:13px}.btn{border:0;border-radius:9px;padding:12px 16px;text-decoration:none;font-weight:750;white-space:nowrap;cursor:pointer;font-size:12px;display:inline-flex;align-items:center;justify-content:center}.btn-primary{background:var(--blue);color:white}.btn-light{background:#fff;border:1px solid var(--line);color:#34415b;box-shadow:0 2px 6px #17264a08}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:23px}.stat-card,.upload-grid,.table-section{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 3px 14px #1b2a4b05}.stat-card{padding:19px 19px 17px;min-width:0}.stat-label{font-size:10px;letter-spacing:.65px;color:#818ba0;font-weight:800;line-height:1.4}.stat-value{font-size:25px;font-weight:800;letter-spacing:-.6px;margin:12px 0 7px;white-space:nowrap}.stat-card small{font-size:11px;color:#8a94a7}.red{color:var(--red)}.amber{color:var(--amber)}.green{color:var(--green)}.highlight{border-color:#cce9dd;background:linear-gradient(140deg,#fff,#f4fcf8)}.upload-grid,.table-section{padding:22px;margin-bottom:22px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:19px}.section-head h2{font-size:17px;margin:0 0 6px;letter-spacing:-.3px}.pill,.count-pill{font-size:10px;font-weight:800;border-radius:20px;padding:7px 10px;background:#f1f4ff;color:#4d62bb;white-space:nowrap}.upload-form{display:grid;grid-template-columns:1fr 1.1fr 1.5fr auto;gap:13px;align-items:end}.field{min-width:0}.field label{display:block;font-size:11px;font-weight:750;color:#566177;margin-bottom:8px}.field select,.field input{width:100%;height:42px;border:1px solid #dfe4ee;border-radius:8px;padding:0 11px;background:#fff;color:#34415b;font:inherit;font-size:12px}.field input[type=file]{padding:10px 7px;font-size:11px}.hint{font-size:11px;color:#8b95a7;margin-top:14px}.table-tools{display:flex;align-items:center;gap:10px}.table-tools input{border:1px solid #e0e5ee;border-radius:8px;height:35px;padding:0 11px;font-size:11px;width:180px;outline:none}.table-wrap{overflow:auto;border:1px solid #edf0f5;border-radius:9px}table{border-collapse:collapse;width:100%;min-width:850px}thead{background:#f8f9fc}th{text-align:left;color:#778298;font-size:10px;letter-spacing:.35px;font-weight:800;padding:13px 14px;white-space:nowrap}td{padding:14px;border-top:1px solid #eff1f6;font-size:12px;color:#46516a;white-space:nowrap}tbody tr:hover{background:#fafbff}.order-id{font-weight:750;color:#293650}.status{font-size:10px;font-weight:800;padding:6px 8px;border-radius:20px;display:inline-block}.status.delivered{background:#e6f7ef;color:#178357}.status.cancelled{background:#fff0f1;color:#bd3545}.status.returned{background:#fff4e3;color:#a26713}.status.shipped{background:#eaf1ff;color:#355bc1}.status.pending{background:#f0f2f6;color:#68758b}.empty{text-align:center;padding:40px;color:#8c96a8}.footnote{font-size:11px;color:#8b95a7;line-height:1.6;margin-top:13px}.alert{padding:12px 15px;border-radius:9px;margin:-8px 0 18px;font-size:12px}.success{background:#e8f8ef;color:#16794e}.error{background:#fff0f1;color:#b12c3b}footer{font-size:11px;color:#7d8799;padding:3px 0 12px}footer span{color:#a0a8b6}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.upload-form{grid-template-columns:1fr 1fr}.upload-form .btn{height:42px}}@media(max-width:700px){.shell{display:block}.sidebar{width:100%;padding:15px;display:block}.brand{padding:0 4px 14px}.nav-label{padding-top:5px}.nav-item{display:inline-flex;margin-right:4px;padding:10px 11px;font-size:12px}.nav-item .arrow{display:none}.sidebar-note,.side-footer{display:none}.main{padding:22px 13px}.topbar{align-items:flex-start;flex-direction:column}.topbar h1{font-size:25px}.stats{gap:9px}.stat-card{padding:14px}.stat-value{font-size:20px}.stat-label{font-size:9px}.upload-grid,.table-section{padding:15px}.upload-form{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}.table-tools{width:100%}.table-tools input{flex:1;width:100%}.btn-light{align-self:flex-start}}

/* Clear-data action and stale-page prevention UI */
.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.top-actions form{margin:0}.btn-danger{background:#fff0f0;color:#b42332;border:1px solid #f3b9bf;padding:11px 14px;border-radius:10px;font-weight:700;cursor:pointer}.btn-danger:hover{background:#ffe2e4}
