:root { --p:#0f766e; --p2:#14b8a6; --bg:#f4f7f7; --card:#fff; --ink:#1f2937; --mut:#6b7280; --line:#e5e7eb;
        --ok:#16a34a; --warn:#d97706; --bad:#dc2626; --r:12px; }
* { box-sizing: border-box; }
body { margin:0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--ink); font-size:15px; }
a { color:var(--p); text-decoration:none; }
.top { background:var(--p); color:#fff; }
.top .in { max-width:1180px; margin:auto; display:flex; align-items:center; gap:14px; padding:12px 20px; flex-wrap:wrap; }
.top .brand { font-weight:700; font-size:18px; color:#fff; display:flex; align-items:center; gap:8px; letter-spacing:.2px; }
.top .brand img { width:28px; height:28px; }
.top nav { display:flex; gap:4px; flex:1; flex-wrap:wrap; }
.top nav a { color:#d1fae5; padding:6px 9px; border-radius:8px; white-space:nowrap; font-size:14.5px; }
.top nav a.on, .top nav a:hover { background:rgba(255,255,255,.15); color:#fff; }
.top .me { font-size:13px; color:#d1fae5; }
.top .me a { color:#fff; margin-left:8px; }
main { max-width:1100px; margin:24px auto; padding:0 20px; }
h1 { font-size:24px; margin:0 0 16px; }
h2 { font-size:18px; margin:0 0 12px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:20px; margin-bottom:20px; }
.grid { display:grid; gap:16px; }
.g3 { grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); }
.g2 { grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); }
.kpi .n { font-size:32px; font-weight:700; color:var(--p); }
.kpi .l { color:var(--mut); font-size:13px; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-size:12px; text-transform:uppercase; letter-spacing:.4px; color:var(--mut); font-weight:600; }
td.n, th.n { text-align:right; }
.badge { display:inline-block; padding:3px 10px; border-radius:99px; font-size:12px; font-weight:600; background:#e5e7eb; }
.b-NEW { background:#dbeafe; color:#1d4ed8; } .b-CONFIRMED { background:#fef3c7; color:#92400e; }
.b-PAID, .b-PROCESSING, .b-PACKED { background:#ccfbf1; color:#0f766e; }
.b-SHIPPED, .b-COMPLETED { background:#dcfce7; color:#166534; } .b-CANCELLED { background:#fee2e2; color:#991b1b; }
.btn { display:inline-block; background:var(--p); color:#fff; border:0; padding:10px 18px; border-radius:10px; font-size:15px; cursor:pointer; font-weight:600; }
.btn:hover { background:#115e59; }
.btn.ghost { background:#fff; color:var(--p); border:1px solid var(--p); }
.btn.sm { padding:6px 12px; font-size:13px; }
input, select, textarea { width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px; font:inherit; background:#fff; }
input:focus, select:focus, textarea:focus { outline:2px solid var(--p2); border-color:transparent; }
label { display:block; font-size:13px; font-weight:600; margin:0 0 6px; color:#374151; }
.field { margin-bottom:14px; }
.errorlist { color:var(--bad); font-size:13px; margin:4px 0; padding-left:16px; }
.msgs { list-style:none; padding:0; margin:0 0 16px; }
.msgs li { padding:12px 16px; border-radius:10px; margin-bottom:8px; background:#dcfce7; color:#166534; }
.msgs li.error { background:#fee2e2; color:#991b1b; } .msgs li.warning { background:#fef3c7; color:#92400e; }
.lines td { padding:6px 4px; border:0; }
.lines tr.line { border-bottom:1px solid var(--line); }
.total { font-size:20px; font-weight:700; text-align:right; margin-top:12px; }
.timeline { display:flex; gap:0; margin:8px 0 4px; overflow-x:auto; }
.timeline .s { flex:1; min-width:90px; text-align:center; font-size:12px; color:var(--mut); position:relative; padding-top:22px; }
.timeline .s:before { content:""; position:absolute; top:6px; left:50%; width:12px; height:12px; margin-left:-6px; border-radius:50%; background:#d1d5db; z-index:1; }
.timeline .s:after { content:""; position:absolute; top:11px; left:-50%; width:100%; height:2px; background:#d1d5db; }
.timeline .s:first-child:after { display:none; }
.timeline .s.done { color:var(--p); font-weight:600; } .timeline .s.done:before, .timeline .s.done:after { background:var(--p); }
.timeline .s.current:before { box-shadow:0 0 0 4px #99f6e4; }
.muted { color:var(--mut); font-size:13px; }
.row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.spacer { flex:1; }
.login { max-width:400px; margin:10vh auto; }
.login .brand { text-align:center; font-size:26px; font-weight:800; color:var(--p); margin-bottom:24px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.login .brand small { font-size:13px; font-weight:500; color:var(--mut); letter-spacing:.5px; }
.empty { text-align:center; padding:40px; color:var(--mut); }
@media (max-width:700px){ .hide-m { display:none; } .lines td { display:block; } }
.lang { display:flex; gap:2px; background:rgba(0,0,0,.15); border-radius:8px; padding:2px; }
.lang button { background:none; border:0; color:#d1fae5; font:inherit; font-size:12px; font-weight:700; padding:4px 8px; border-radius:6px; cursor:pointer; }
.lang button.on { background:#fff; color:var(--p); }
.login .lang { background:#e5e7eb; } .login .lang button { color:var(--mut); } .login .lang button.on { background:var(--p); color:#fff; }
.pchat { display:flex; flex-direction:column; height:calc(100vh - 140px); min-height:420px; padding:0; overflow:hidden; }
.pchat-head { padding:16px 20px; border-bottom:1px solid var(--line); }
.pchat-head h1 { margin:0 0 4px; font-size:20px; }
.pchat-head p { margin:0; }
.pchat-msgs { flex:1; overflow-y:auto; padding:16px 20px; background:#efeae2; display:flex; flex-direction:column; gap:6px; }
.pchat-msgs .empty { margin:auto; color:var(--mut); }
.pm { max-width:75%; background:#fff; padding:7px 10px 5px; border-radius:9px; align-self:flex-start; box-shadow:0 1px 1px rgba(0,0,0,.08); word-wrap:break-word; }
.pm.mine { align-self:flex-end; background:#d9fdd3; }
.pm img { max-width:240px; max-height:240px; border-radius:6px; display:block; margin-bottom:4px; }
.pm-who { font-size:11px; font-weight:700; color:var(--p); }
.pm-time { font-size:10.5px; color:var(--mut); text-align:right; }
.pchat-compose { padding:10px 14px; border-top:1px solid var(--line); background:#fff; }
.pchat-compose .row { flex-wrap:nowrap; }
.pchat-compose textarea { resize:none; min-height:42px; }
.dot { display:inline-block; background:#25d366; color:#fff; font-size:11px; font-weight:700; border-radius:99px; padding:0 6px; margin-left:4px; }
.tabs { display:flex; gap:2px; background:#e5e7eb; padding:3px; border-radius:9px; }
.tabs a { padding:6px 14px; border-radius:7px; color:var(--mut); font-weight:600; font-size:13px; }
.tabs a.on { background:#fff; color:var(--p); }
a.card { color:inherit; display:block; }
a.card:hover { border-color:var(--p2); }
.quick { display:flex !important; flex-direction:column; gap:4px; }
.payme { border-color:#f59e0b; background:#fffbeb; }
.paybar { padding:8px 0; border-top:1px solid #fde68a; }
.paybar:first-of-type { border-top:0; }
.paybox { background:#f0fdfa; border:1px solid #99f6e4; border-radius:10px; padding:14px; margin:10px 0; }
.paylogos { font-size:12px; color:var(--mut); margin-top:8px; }
.t-OPEN { background:#fee2e2; color:#991b1b; } .t-IN_PROGRESS { background:#fef3c7; color:#92400e; }
.t-WAITING { background:#dbeafe; color:#1d4ed8; } .t-RESOLVED, .t-CLOSED { background:#dcfce7; color:#166534; }
.thread { display:flex; flex-direction:column; gap:12px; margin:16px 0; }
.tmsg { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; max-width:85%; }
.tmsg.mine { align-self:flex-end; background:#f0fdfa; border-color:#99f6e4; }
.tmsg-head { display:flex; justify-content:space-between; gap:16px; margin-bottom:6px; font-size:13px; }
.pchat-head { gap:12px; flex-wrap:nowrap; }
.pchat-av { width:42px; height:42px; border-radius:50%; background:var(--p); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px; flex:none; }

@media (max-width:1380px){ .top .me .who { display:none; } }
.top nav { flex-wrap:nowrap; }
@media (max-width:1000px){ .top nav { flex-wrap:wrap; } }

/* delivery method choice */
.ship-opts { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
.ship-opt { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid #d1d5db; border-radius:10px;
            cursor:pointer; font-weight:500; background:#fff; }
.ship-opt:has(input:checked) { border-color:#0f766e; background:#f0fdfa; box-shadow:0 0 0 1px #0f766e inset; }
.ship-opt input { accent-color:#0f766e; width:18px; height:18px; margin:0; }
