:root{--green:#16803c;--dark:#111827;--muted:#64748b;--bg:#f6fbf6;--line:#e2e8f0;--card:#fff;--red:#dc2626;--amber:#d97706;--blue:#2563eb}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:#0f172a}.app{min-height:100vh}.auth{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#064e3b,#047857)}.auth-card{width:min(430px,92vw);background:#fff;border-radius:28px;padding:30px;box-shadow:0 24px 80px rgba(0,0,0,.25);text-align:center}.logo{width:58px;height:58px;border-radius:16px;object-fit:cover}.auth-card h1{font-size:25px;line-height:1.2;margin:14px 0 6px}.auth-card p{margin:0 0 18px;color:var(--muted);font-weight:700}.field{display:flex;flex-direction:column;gap:7px;text-align:left}.field label{font-size:12px;text-transform:uppercase;font-weight:900;color:#475569}.field input,.field select,.field textarea{width:100%;border:1px solid #dbe4ec;border-radius:14px;padding:13px 14px;font:inherit;font-weight:750;background:#fff}.field textarea{min-height:90px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.full{grid-column:1/-1}.btn{border:0;border-radius:14px;background:var(--green);color:#fff;font-weight:950;padding:12px 16px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;justify-content:center}.btn:hover{filter:brightness(.96)}.btn.light{background:#eef2f7;color:#0f172a}.btn.red{background:var(--red)}.btn.blue{background:var(--blue)}.btn:disabled{background:#cbd5e1;cursor:not-allowed}.layout{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.side{background:#111827;color:#cbd5e1;padding:18px 14px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;gap:10px;align-items:center;margin-bottom:18px}.brand strong{display:block;color:#fff;font-size:17px;line-height:1.15}.brand small{font-size:11px;color:#94a3b8}.userbox{background:#eafff0;color:#064e3b;border-radius:18px;padding:14px;margin:12px 0 14px;font-weight:850}.side .quick{width:100%;margin:0 0 10px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{border:0;background:transparent;color:#cbd5e1;border-radius:14px;padding:12px 14px;text-align:left;display:flex;gap:12px;align-items:center;font-weight:850;font-size:15px;cursor:pointer}.nav button:hover,.nav button.active{background:var(--green);color:#fff}.nav svg{width:19px;height:19px;flex:none}.logout{margin-top:14px;width:100%;background:#2b1720;color:#fecaca}.main{min-width:0}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:sticky;top:0;z-index:30}.topbar h2{margin:0;font-size:25px}.topbar small{display:block;color:var(--muted);font-weight:800;margin-top:4px}.content{padding:28px 32px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 10px 28px rgba(15,23,42,.04)}.kpi small{font-weight:950;color:#64748b;text-transform:uppercase;font-size:12px}.kpi b{display:block;margin-top:10px;font-size:27px;color:#087a34}.section{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;margin:18px 0;box-shadow:0 10px 30px rgba(15,23,42,.04)}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.section h3{margin:0 0 4px;font-size:22px}.section p{margin:0;color:var(--muted);font-weight:700}.filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:12px 0}.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:18px}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:13px 14px;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:top}.table th{background:#f8fafc;color:#475569;font-size:12px;text-transform:uppercase}.badge{display:inline-flex;border-radius:999px;padding:6px 10px;background:#dcfce7;color:#067a35;font-weight:900;font-size:12px}.badge.warn{background:#fef3c7;color:#92400e}.badge.red{background:#fee2e2;color:#991b1b}.actions{display:flex;gap:8px;flex-wrap:wrap}.linkbtn{border:0;background:transparent;color:#0f7a35;font-weight:950;cursor:pointer;padding:5px}.muted{color:var(--muted)}.empty{padding:28px;text-align:center;color:#64748b;font-weight:850}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#15803d;color:#fff;border-radius:14px;padding:12px 18px;font-weight:900;z-index:9999;box-shadow:0 18px 50px rgba(0,0,0,.25)}.toast.bad{background:#dc2626}.modal-bg{position:fixed;inset:0;background:rgba(15,23,42,.56);z-index:20000;display:flex;align-items:center;justify-content:center;padding:18px}.modal{width:min(860px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;box-shadow:0 26px 90px rgba(0,0,0,.35)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid var(--line)}.modal-head h3{margin:0;font-size:23px}.x{border:0;width:36px;height:36px;border-radius:50%;font-weight:1000;cursor:pointer;background:#f1f5f9}.modal-body{padding:20px 22px}.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid var(--line);background:#f8fafc;border-radius:0 0 24px 24px}.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:230px;overflow:auto;border:1px solid #dbe4ec;border-radius:14px;padding:10px}.checks label{display:flex;gap:8px;align-items:center;font-weight:750}.product-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:300px;overflow:auto}.prod-card{border:1px solid var(--line);border-radius:16px;padding:10px;display:flex;gap:10px;align-items:center;cursor:pointer}.prod-card:hover{border-color:#16a34a;background:#f0fdf4}.prod-card img{width:54px;height:54px;object-fit:cover;border-radius:12px;background:#f1f5f9}.mobile-toggle{display:none}.detailbox{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:12px;margin-top:10px;white-space:pre-wrap}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.tabs button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;font-weight:850;cursor:pointer}.tabs button.active{background:#0f172a;color:#fff}.side-scrim{display:none}@media(max-width:1000px){.layout{grid-template-columns:1fr}.side{position:fixed;z-index:60;left:-290px;transition:.2s;width:280px}.side.open{left:0}.mobile-toggle{display:inline-flex}.topbar{padding:0 16px}.content{padding:18px 14px}.cards{grid-template-columns:1fr 1fr}.filters{grid-template-columns:1fr 1fr}.formgrid{grid-template-columns:1fr}.checks{grid-template-columns:1fr}.product-picker{grid-template-columns:1fr}.table th,.table td{font-size:13px;padding:10px}.side-scrim.show{display:block;position:fixed;inset:0;background:rgba(15,23,42,.38);z-index:50}}@media(max-width:560px){.cards{grid-template-columns:1fr}.filters{grid-template-columns:1fr}.topbar h2{font-size:19px}.content{padding-bottom:92px}}
/* V36: dashboard cá nhân + chỉnh font/hiển thị */
body{font-family:'Inter','Segoe UI',Roboto,Arial,sans-serif;font-size:15px;letter-spacing:-.01em}.topbar h2,.section h3,.auth-card h1{font-weight:950;letter-spacing:-.035em}.nav button{font-size:14px;font-weight:900}.card{border-radius:20px}.card h3{font-size:20px;line-height:1.15}.kpi b{font-size:25px;line-height:1.1}.section p,.muted{line-height:1.45}.personal-hero{background:linear-gradient(135deg,#12b981,#057a55);color:#fff;border-radius:28px;padding:26px 30px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 16px 36px rgba(5,122,85,.22)}.personal-hero small{text-transform:uppercase;font-weight:950;opacity:.85}.personal-hero h2{font-size:32px;margin:8px 0 6px;letter-spacing:-.04em}.personal-hero p{margin:0;font-weight:800;opacity:.9;max-width:760px}.level-pill{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);padding:14px 18px;border-radius:18px;font-weight:950;white-space:nowrap}.table th{font-size:11px;letter-spacing:.02em}.table td{font-size:14px}.field label{letter-spacing:.02em}@media(max-width:760px){.personal-hero{display:block;padding:22px}.personal-hero h2{font-size:26px}.level-pill{display:inline-flex;margin-top:14px}.kpi b{font-size:22px}.card h3{font-size:18px}}

/* V37: dashboard cá nhân đẹp hơn + phân quyền rõ */
:root{--soft:#f1fbf4;--emerald:#0f8f4b;--emerald2:#11b981}.content{max-width:1540px;margin:0 auto;width:100%}.member-dash{max-width:1220px;margin:0 auto}.member-hero{background:linear-gradient(135deg,#16c784 0%,#0b7a50 58%,#075c43 100%);color:#fff;border-radius:30px;padding:28px 32px;margin-bottom:18px;display:flex;align-items:stretch;justify-content:space-between;gap:22px;box-shadow:0 22px 54px rgba(6,95,70,.22);position:relative;overflow:hidden}.member-hero:after{content:"";position:absolute;right:-120px;top:-120px;width:310px;height:310px;border-radius:50%;background:rgba(255,255,255,.12)}.member-hero .eyebrow{text-transform:uppercase;font-size:12px;font-weight:1000;letter-spacing:.08em;opacity:.82}.member-hero h2{font-size:34px;margin:7px 0 8px;letter-spacing:-.045em}.member-hero p{font-weight:800;line-height:1.5;margin:0;opacity:.93;max-width:700px}.rank-card{position:relative;z-index:1;min-width:230px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);border-radius:22px;padding:18px;display:flex;flex-direction:column;justify-content:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}.rank-card small{text-transform:uppercase;font-weight:950;opacity:.82}.rank-card b{font-size:22px;margin:8px 0 4px;line-height:1.15}.rank-card span{font-weight:950;color:#dbffe9}.progress-panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px 20px;margin-bottom:18px;box-shadow:0 14px 34px rgba(15,23,42,.055)}.progress-panel>div:first-child{display:flex;justify-content:space-between;gap:12px;font-weight:950;color:#0f172a}.progress-panel span{color:#64748b}.progress{height:13px;border-radius:999px;background:#e6f4ea;overflow:hidden;margin:12px 0 8px}.progress i{display:block;height:100%;background:linear-gradient(90deg,#16a34a,#22c55e);border-radius:999px;min-width:2%}.progress-panel p{margin:0;color:#0f7a35;font-weight:900}.member-cards .card{background:linear-gradient(180deg,#fff,#fbfffc);border-color:#dbeee3}.mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.mini-stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 10px 26px rgba(15,23,42,.045)}.mini-stat small{display:block;color:#64748b;font-size:12px;text-transform:uppercase;font-weight:950}.mini-stat b{display:block;font-size:24px;margin-top:7px;color:#0f172a}.mini-stat.ok{background:#effdf5;border-color:#c6f6d5}.mini-stat.ok b{color:#07803d}.mini-stat.warn{background:#fffbeb;border-color:#fde68a}.mini-stat.warn b{color:#b45309}.mini-stat.bad{background:#fff1f2;border-color:#fecdd3}.mini-stat.bad b{color:#be123c}.mini-stat.money b{color:#0f8f4b}.tasks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.tasks span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:13px 14px;font-weight:900;color:#334155}.smart-section{background:linear-gradient(180deg,#fff,#f8fffb)}.cards{align-items:stretch}.kpi{cursor:pointer;transition:.18s transform,.18s box-shadow}.kpi:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(15,23,42,.08)}@media(max-width:980px){.member-hero{display:block}.rank-card{margin-top:16px;min-width:0}.mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tasks{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.member-hero{padding:22px;border-radius:24px}.member-hero h2{font-size:27px}.mini-grid,.tasks{grid-template-columns:1fr}.progress-panel>div:first-child{display:block}.progress-panel span{display:block;margin-top:6px}}

/* V38: tốc độ, game hóa và CRM khách hàng */
.game-section{background:linear-gradient(180deg,#ffffff,#f3fff8);border-color:#cfeedd}.xp-pill{background:#0f8f4b;color:#fff;border-radius:999px;padding:10px 14px;font-weight:1000;white-space:nowrap}.game-grid{display:grid;grid-template-columns:1fr 2fr;gap:14px;margin:12px 0}.game-card{background:#ecfdf5;border:1px solid #bbf7d0;border-radius:18px;padding:16px}.game-card small{font-weight:950;text-transform:uppercase;color:#047857}.game-card b{display:block;font-size:22px;margin:6px 0;color:#064e3b}.badges{display:flex;gap:10px;flex-wrap:wrap;align-content:flex-start}.badges span,.tasks span.done{background:#dcfce7;color:#065f46;border-color:#bbf7d0}.badges span{border-radius:999px;padding:10px 12px;font-weight:950;border:1px solid #bbf7d0}.commission-preview{margin-top:12px;background:#f8fafc;border:1px dashed #bbf7d0;border-radius:16px;padding:12px;color:#065f46;font-weight:900}.prod-card b{font-size:13px;line-height:1.25}.content{scroll-behavior:smooth}.section,.card,.modal{animation:ecoFade .16s ease-out}@keyframes ecoFade{from{opacity:.72;transform:translateY(3px)}to{opacity:1;transform:none}}@media(max-width:760px){.game-grid{grid-template-columns:1fr}.xp-pill{display:inline-flex;margin-top:8px}.badges span{font-size:13px}}


/* V39 admin dashboards per menu */
.dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;padding:6px 0 2px}.dashboard-head h3{font-size:26px;margin:4px 0 6px;letter-spacing:-.04em}.dashboard-head p{max-width:900px}.dashboard-head .eyebrow{display:inline-flex;background:#ecfdf5;color:#047857;border:1px solid #bbf7d0;border-radius:999px;padding:5px 10px;font-size:11px;text-transform:uppercase;font-weight:1000;letter-spacing:.08em}.head-actions{display:flex;gap:10px;align-items:center}.dash-section{background:linear-gradient(180deg,#fff,#f7fffa);border-color:#d9f2e2}.admin-cards{grid-template-columns:repeat(5,minmax(0,1fr))}.mini-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}.mini-dashboard h4{grid-column:1/-1;margin:4px 0 2px;font-size:17px}.mini-dashboard div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.mini-dashboard span{display:block;color:#64748b;font-size:12px;font-weight:950;text-transform:uppercase}.mini-dashboard b{display:block;margin-top:5px;color:#0f172a;font-size:18px}.kpi small{min-height:28px}.kpi b{font-size:23px}.section-head h3{letter-spacing:-.035em}@media(max-width:1200px){.admin-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.mini-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.admin-cards{grid-template-columns:1fr}.dashboard-head{display:block}.head-actions{margin-top:12px}.mini-dashboard{grid-template-columns:1fr}}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 18px}.copybox{display:flex;gap:10px;margin:10px 0 14px}.copybox input{flex:1;border:1px solid #d7e8dc;border-radius:12px;padding:12px;background:#f8fff9}.community-feed{display:grid;gap:14px}.post{border:1px solid #dcecdf;background:#fff;border-radius:18px;padding:16px;box-shadow:0 8px 22px rgba(0,72,8,.06)}.post h4{margin:10px 0 8px;color:#0b5c25}.post small{display:block;color:#6b7a6d;margin-top:2px}.post-actions{display:flex;gap:8px;margin-top:12px}.post-actions button{border:1px solid #cfe4d3;background:#f4fff6;border-radius:999px;padding:8px 12px;cursor:pointer}.modal-foot .btn{min-width:100px}.badge.draft{background:#eef3ff;color:#2454a6}.commission-preview{margin-top:10px;padding:12px;border-radius:14px;background:linear-gradient(135deg,#f5fff4,#fffbea);border:1px solid #dcf0d6}.member-dash .card,.section,.post{transition:.16s ease}.member-dash .card:hover,.section:hover{transform:translateY(-1px)}
.auth-tabs .btn{min-width:0;white-space:normal;line-height:1.15;text-align:center;padding-inline:10px}
@media(min-width:420px){.auth-tabs .btn{white-space:nowrap}}

/* V41 Admin & Member Dashboard 2.0 */
:root{--brand:#04813d;--brand2:#15b86a;--ink:#0f172a;--muted:#64748b;--paper:#ffffff;--bg:#f4f8f5;--line:#dfeee3}.layout{background:linear-gradient(180deg,#f5faf6,#eef7f1)}.main{background:transparent}.topbar{backdrop-filter:saturate(120%) blur(10px);background:rgba(255,255,255,.82);border-bottom:1px solid #e5efe7}.side{box-shadow:10px 0 28px rgba(15,23,42,.06)}.nav button{border-radius:16px;margin-bottom:4px}.nav button.active{background:linear-gradient(135deg,#0b7a44,#13a763);box-shadow:0 10px 24px rgba(4,129,61,.2)}.command-center{background:linear-gradient(135deg,#ffffff,#f1fff6);border-color:#cdebd7}.filterbar{background:#f8fffa;border:1px solid #d8efdf;border-radius:20px;padding:12px;margin:8px 0 18px}.filter-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.filter-pills button{border:1px solid #cfe7d5;background:#fff;border-radius:999px;padding:8px 12px;font-weight:900;cursor:pointer}.filter-pills button.active{background:#0b7a44;color:#fff;border-color:#0b7a44}.filters.compact{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.ai-panel{background:linear-gradient(135deg,#052e1b,#0f7a44);color:#fff;border:0;box-shadow:0 22px 50px rgba(5,46,27,.22)}.ai-panel h3,.ai-panel p{color:#fff}.insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.insights div{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:16px}.insights b{font-size:16px}.insights p{margin:6px 0 0;opacity:.92;font-weight:750}.card.kpi{position:relative;overflow:hidden;border:1px solid #ddecdf;background:linear-gradient(180deg,#fff,#fafffb)}.card.kpi:after{content:"";position:absolute;right:-24px;top:-24px;width:78px;height:78px;background:#e8fff0;border-radius:50%}.card.kpi small,.card.kpi b{position:relative;z-index:1}.modal{max-height:90vh;overflow:auto}.section{border-radius:24px}.table{border-radius:16px;overflow:hidden}.table th{background:#f4faf6;color:#0f5130}.head-actions .btn{white-space:nowrap}@media(max-width:1180px){.filters.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.insights{grid-template-columns:1fr}}@media(max-width:640px){.filters.compact{grid-template-columns:1fr}.filterbar{padding:10px}.filter-pills button{flex:1}.ai-panel{border-radius:20px}.dashboard-head h3{font-size:22px}}

/* V42 Modern ERP UI + secure login */
:root{
  --green:#0F9D58;--green-2:#0B7D45;--green-soft:#ECFDF3;
  --dark:#101828;--muted:#667085;--bg:#F7FAF8;--line:#E8ECEF;--card:#FFFFFF;
  --shadow:0 14px 40px rgba(16,24,40,.06);
}

/* V107 final override: nút + mobile dùng icon thật, không dùng pseudo lớn */
@media(max-width:760px){
  .top-actions .create-order{
    display:inline-grid!important;
    place-items:center!important;
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    padding:0!important;
    border-radius:16px!important;
    background:linear-gradient(135deg,#0f9d58,#10b981)!important;
    box-shadow:0 12px 24px rgba(15,157,88,.22)!important;
    font-size:0!important;
    color:#fff!important;
  }
  .top-actions .create-order::before,
  .top-actions .create-order::after{
    content:none!important;
    display:none!important;
  }
  .top-actions .create-order span{display:none!important}
  .top-actions .create-order svg{
    display:block!important;
    width:22px!important;
    height:22px!important;
    color:#fff!important;
    stroke:#fff!important;
    stroke-width:2.5!important;
  }
}

/* V109: Thành quả quản trị - dashboard doanh thu/lợi nhuận chuyên sâu */
.sales-admin-v109{display:grid;gap:16px}
.sales-hero-v109{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;border:1px solid #d8eadf;background:linear-gradient(135deg,#f6fff9,#fff);border-radius:18px;padding:20px 22px}
.sales-hero-v109 span{display:inline-flex;width:max-content;max-width:100%;font-size:12px;font-weight:900;color:#087443;text-transform:uppercase;background:#eafff2;border:1px solid #bfeccb;border-radius:999px;padding:6px 12px}
.sales-hero-v109 h2{margin:10px 0 6px;font-size:28px;line-height:1.15;color:#10251c}
.sales-hero-v109 p{margin:0;color:#667085;font-weight:700;line-height:1.5;max-width:780px}
.sales-hero-score{min-width:260px;border:1px solid #d8eadf;background:#fff;border-radius:16px;padding:14px 16px}
.sales-hero-score b{display:block;font-size:34px;line-height:1;color:#087443;margin:8px 0}
.sales-hero-score small{display:block;color:#475467;font-weight:800}
.sales-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sales-metric-card{position:relative;overflow:hidden;border:1px solid #dfe9e3;background:#fff;border-radius:16px;padding:16px;min-height:116px;box-shadow:0 10px 22px rgba(16,24,40,.04)}
.sales-metric-card:after{content:"";position:absolute;right:-20px;top:-22px;width:86px;height:86px;border-radius:28px;background:#e9fff0}
.sales-metric-card.orange:after{background:#fff2df}
.sales-metric-card.neutral:after{background:#f4f7f5}
.sales-metric-card span{position:relative;z-index:1;display:block;color:#667085;font-size:13px;font-weight:900}
.sales-metric-card b{position:relative;z-index:1;display:block;margin:8px 0 6px;color:#087443;font-size:25px;line-height:1.12;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-metric-card.orange b{color:#bd4b12}
.sales-metric-card.neutral b{color:#1d2939}
.sales-metric-card small{position:relative;z-index:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#667085;font-size:12px;font-weight:800;line-height:1.4}
.sales-ratio-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sales-ratio-grid>div{border:1px solid #dfe9e3;background:#f8fbf9;border-radius:14px;padding:13px 14px}
.sales-ratio-grid span,.sales-status-strip span{display:block;color:#667085;font-size:12px;font-weight:900;text-transform:uppercase}
.sales-ratio-grid b,.sales-status-strip b{display:block;margin:5px 0;color:#10251c;font-size:21px;line-height:1.1}
.sales-ratio-grid small,.sales-status-strip small{color:#667085;font-weight:800}
.sales-analysis-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sales-insight-card{border:1px solid #dfe9e3;background:#fff;border-radius:16px;padding:15px;min-height:210px}
.sales-insight-card h3{margin:0 0 12px;font-size:16px;color:#10251c}
.sales-insight-list{display:grid;gap:8px}
.sales-insight-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border-bottom:1px dashed #e4ece6;padding-bottom:8px}
.sales-insight-list span{font-weight:800;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-insight-list b{color:#087443;white-space:nowrap}
.sales-empty-mini{color:#667085;font-weight:800;background:#f8fbf9;border-radius:12px;padding:14px}
.sales-detail-panel{border:1px solid #d8eadf;background:#fff;border-radius:18px;padding:18px}
.sales-status-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}
.sales-status-strip>div{border:1px solid #e4ece6;border-radius:14px;background:#f8fbf9;padding:12px}
.sales-table-wrap .tablewrap{border-radius:14px}
.sales-table-wrap table th{font-size:12px;color:#667085;text-transform:uppercase;white-space:nowrap}
.sales-table-wrap table td{font-size:14px;vertical-align:middle}
.sales-money{color:#087443;white-space:nowrap}
.line-one{display:block;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.text-ok{color:#087443}.text-warn{color:#bd4b12}
@media(max-width:1180px){
  .sales-metric-grid,.sales-analysis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sales-ratio-grid,.sales-status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .sales-hero-v109{grid-template-columns:1fr;padding:16px;border-radius:16px}
  .sales-hero-v109 h2{font-size:22px}
  .sales-hero-score{min-width:0}
  .sales-metric-grid,.sales-analysis-grid,.sales-ratio-grid,.sales-status-strip{grid-template-columns:1fr}
  .sales-metric-card{min-height:104px;padding:14px}
  .sales-metric-card b{font-size:22px}
  .sales-detail-panel{padding:14px;border-radius:16px}
  .sales-table-wrap .tablewrap{overflow-x:auto}
  .line-one{max-width:150px}
}

/* V107: Học viện Ecofami + nút tạo đơn mobile mềm hơn */
.academy-page{display:grid;gap:16px}
.academy-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#0b7a44,#16a34a);color:#fff;border-radius:24px;padding:24px;box-shadow:0 18px 48px rgba(15,157,88,.18)}
.academy-hero span{display:inline-flex;border:1px solid rgba(255,255,255,.34);background:rgba(255,255,255,.14);border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900;text-transform:uppercase}
.academy-hero h2{margin:10px 0 6px;font-size:28px;letter-spacing:-.04em}
.academy-hero p{margin:0;color:rgba(255,255,255,.88);font-weight:750;max-width:780px}
.academy-hero .btn{background:#fff!important;color:#087443!important;box-shadow:none!important}
.academy-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.academy-kpi-grid div,.academy-panel{background:#fff;border:1px solid #dfeee3;border-radius:20px;box-shadow:0 12px 32px rgba(15,23,42,.05)}
.academy-kpi-grid div{padding:16px 18px}
.academy-kpi-grid span{display:block;color:#667085;font-size:12px;font-weight:900;text-transform:uppercase}
.academy-kpi-grid b{display:block;margin-top:8px;color:#067647;font-size:24px;letter-spacing:-.03em}
.academy-panel{padding:18px}
.academy-course-list,.academy-admin-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.academy-course-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;border:1px solid #e4ece6;background:linear-gradient(180deg,#fff,#fbfffc);border-radius:18px;padding:14px;min-width:0}
.academy-course-card.done{border-color:#a6f4c5;background:#f6fef9}
.academy-course-icon{width:48px;height:48px;border-radius:16px;background:#ecfdf3;color:#087443;display:grid;place-items:center;flex:none}
.academy-course-icon.big{width:64px;height:64px;border-radius:20px}
.academy-course-icon svg{width:24px;height:24px}
.academy-course-main{min-width:0}
.academy-course-main span{color:#087443;font-size:11px;font-weight:900;text-transform:uppercase}
.academy-course-main h3{margin:4px 0 5px;font-size:17px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.academy-course-main p{margin:0;color:#667085;font-size:13px;font-weight:700;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.academy-course-main small{display:block;margin-top:7px;color:#667085;font-weight:800}
.academy-progress{height:7px;background:#e8f5ec;border-radius:999px;overflow:hidden;margin-top:10px}
.academy-progress i{display:block;height:100%;background:linear-gradient(90deg,#0f9d58,#22c55e);border-radius:inherit}
.academy-progress.large{height:10px;margin:16px 0}
.academy-actions{display:flex;gap:8px;align-items:center}
.academy-detail{display:grid;gap:16px}
.academy-detail-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center}
.academy-detail-head span{color:#087443;font-size:12px;font-weight:900;text-transform:uppercase}
.academy-detail-head h2{margin:3px 0;font-size:24px;letter-spacing:-.04em}
.academy-detail-head p{margin:0;color:#667085;font-weight:700;line-height:1.5}
.academy-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.academy-detail-grid div{border:1px solid #e4ece6;border-radius:14px;padding:12px;background:#fbfffc}
.academy-detail-grid span{display:block;color:#667085;font-size:11px;font-weight:900;text-transform:uppercase}
.academy-detail-grid b{display:block;margin-top:5px;color:#101828}
.academy-detail-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.academy-course-form{display:grid;gap:18px}
.academy-lessons-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-top:1px solid #e4ece6;padding-top:16px}
.academy-lessons-head h3{margin:0 0 4px;font-size:20px}
.academy-lessons-head p{margin:0;color:#667085;font-weight:700}
.academy-lesson-editor{display:grid;gap:12px}
.tr-lesson-row{border:1px solid #dfeee3;background:#fbfffc;border-radius:18px;padding:14px}
.tr-lesson-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.tr-lesson-top b{font-size:15px;color:#075e3a}
.academy-lesson-list{display:grid;gap:10px}
.academy-lesson-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e4ece6;border-radius:16px;background:#fff;padding:13px}
.academy-lesson-card span{color:#087443;font-size:11px;font-weight:900;text-transform:uppercase}
.academy-lesson-card h3{margin:4px 0;font-size:17px}
.academy-lesson-card p{margin:0;color:#667085;font-weight:700;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.academy-lesson-card small{display:block;margin-top:6px;color:#667085;font-weight:800}
.academy-lesson-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){
  .academy-hero{padding:18px;border-radius:20px;display:grid;gap:14px}
  .academy-hero h2{font-size:24px}
  .academy-hero .btn{justify-self:flex-start}
  .academy-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .academy-kpi-grid div{padding:13px}
  .academy-kpi-grid b{font-size:20px}
  .academy-panel{padding:14px;border-radius:18px}
  .academy-course-list,.academy-admin-list{grid-template-columns:1fr}
  .academy-course-card{grid-template-columns:42px minmax(0,1fr);gap:10px;padding:12px}
  .academy-course-icon{width:42px;height:42px;border-radius:14px}
  .academy-course-icon svg{width:21px;height:21px}
  .academy-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
  .academy-actions .btn{min-height:40px}
  .academy-detail-head{grid-template-columns:1fr;text-align:left}
  .academy-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .academy-detail-actions{display:grid;grid-template-columns:1fr}
  .academy-lessons-head{display:grid}
  .academy-lessons-head .btn{justify-self:flex-start}
  .tr-lesson-row{padding:12px;border-radius:16px}
  .academy-lesson-card{grid-template-columns:1fr}
  .academy-lesson-actions{display:grid;grid-template-columns:1fr}
  .top-actions .create-order{
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    border-radius:16px!important;
    padding:0!important;
    background:linear-gradient(135deg,#0f9d58,#10b981)!important;
    box-shadow:0 12px 24px rgba(15,157,88,.22)!important;
    font-size:0!important;
    color:#fff!important;
  }
  .top-actions .create-order::before{content:none!important;display:none!important}
  .top-actions .create-order span{display:none!important}
  .top-actions .create-order svg{
    display:block!important;
    width:22px!important;
    height:22px!important;
    color:#fff!important;
    stroke-width:2.5!important;
  }
}
html,body{font-family:'Be Vietnam Pro','Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;background:var(--bg);color:var(--dark);font-size:14px;letter-spacing:-.018em;}
.auth{background:radial-gradient(circle at 20% 10%,#17b26a 0,#075c43 38%,#043928 100%)}
.auth-card{border-radius:30px;padding:34px;box-shadow:0 30px 90px rgba(0,0,0,.28);text-align:left}.auth-card .logo{display:block;margin:0 auto 14px}.auth-card h1{text-align:center;font-size:24px;letter-spacing:-.045em}.auth-card p{text-align:center;font-weight:700}.auth-tabs{background:#f2f6f4;border-radius:16px;padding:5px}.auth-tabs .btn{border-radius:12px}.remember-row{display:flex;gap:9px;align-items:center;justify-content:space-between;margin:12px 0 14px;color:#475467;font-weight:700;font-size:13px}.remember-row label{display:flex;gap:8px;align-items:center;cursor:pointer}.remember-row input{width:16px;height:16px;accent-color:#12B76A;margin:0}.forgot-link{border:0;background:none;color:#0f9d58;font-weight:850;font-size:13px;cursor:pointer;padding:0;text-decoration:underline}.forgot-link:hover{color:#0b7a45}.forgot-box{margin-top:10px;padding-top:4px}.forgot-box .field{margin-bottom:12px}.forgot-box small.forgot-hint{display:block;color:#667085;font-weight:650;margin:-4px 0 12px}.forgot-box .forgot-back{display:block;text-align:center;margin-top:12px;border:0;background:none;color:#667085;font-weight:750;font-size:13px;cursor:pointer;text-decoration:underline}.field label{font-size:11px;letter-spacing:.06em;color:#667085}.field input,.field select,.field textarea{border-color:#E4E7EC;border-radius:13px;font-weight:650;background:#FCFCFD;transition:.15s}.field input:focus,.field select:focus,.field textarea:focus{outline:0;border-color:#12B76A;box-shadow:0 0 0 4px rgba(18,183,106,.12);background:#fff}
.layout{grid-template-columns:268px 1fr;background:#F7FAF8}.side{background:#101828;padding:20px 14px;box-shadow:12px 0 34px rgba(16,24,40,.07)}.brand{margin-bottom:18px}.brand strong{font-size:16px;letter-spacing:-.025em}.brand small{font-size:11px;color:#98A2B3}.userbox{background:linear-gradient(135deg,#ECFDF3,#D1FADF);color:#064e3b;border:1px solid #A6F4C5;border-radius:20px;padding:16px;margin-bottom:14px}.userbox b{font-size:16px}.nav{gap:4px}.nav button{font-size:14px;font-weight:800;padding:11px 13px;border-radius:13px;color:#D0D5DD}.nav button:hover{background:#1D2939;color:#fff}.nav button.active{background:linear-gradient(135deg,#0F9D58,#0B7D45);box-shadow:0 10px 26px rgba(15,157,88,.28);color:#fff}.nav svg{width:18px;height:18px}.logout{background:#3A1520;color:#FECACA}.quick,.create-order{box-shadow:0 10px 24px rgba(15,157,88,.22)}
.topbar{height:76px;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);padding:0 28px;border-color:#EAECF0}.top-title{display:flex;align-items:center;gap:12px}.topbar h2{font-size:24px;letter-spacing:-.045em}.topbar small{font-size:12px;color:#667085}.top-actions{display:flex;align-items:center;gap:10px}.topbar-filters{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);padding:7px;border-radius:16px;box-shadow:0 8px 24px rgba(16,24,40,.04)}.topbar-filters select,.topbar-filters input{height:38px;border:1px solid #E4E7EC;border-radius:11px;padding:0 10px;font:inherit;font-weight:750;background:#FCFCFD;color:#344054}.topbar-filters input{max-width:145px}.content{padding:28px;max-width:1500px}
.section{border-radius:28px;border-color:var(--line);box-shadow:var(--shadow);padding:22px}.dashboard-head h3,.section h3{font-size:24px;letter-spacing:-.045em}.dashboard-head .eyebrow{background:#ECFDF3;color:#067647;border-color:#ABEFC6}.command-center{background:#fff;border-color:#EAECF0}.filterbar.advanced-filter{background:#fff;border:1px solid #EAECF0;border-radius:18px;padding:0;margin:6px 0 18px;overflow:hidden}.advanced-filter summary{cursor:pointer;list-style:none;padding:12px 14px;font-weight:850;color:#0B7D45}.advanced-filter summary::-webkit-details-marker{display:none}.advanced-filter .filters{padding:0 14px 14px}.filters.compact{grid-template-columns:repeat(5,minmax(0,1fr)) auto auto}.filters.compact input,.filters.compact select{height:42px;border:1px solid #E4E7EC;border-radius:12px;padding:0 12px;font:inherit;font-weight:650;background:#FCFCFD}.filter-pills{margin-bottom:8px}
.cards{gap:14px}.admin-cards{grid-template-columns:repeat(5,minmax(0,1fr))}.card{border-color:#EAECF0;border-radius:22px;box-shadow:0 10px 28px rgba(16,24,40,.045)}.card.kpi{background:#fff}.card.kpi:after{background:linear-gradient(135deg,#E9FFF1,#F7FEF9);right:-32px;top:-32px;width:92px;height:92px}.kpi small{font-size:11px;color:#667085;letter-spacing:.04em;min-height:20px}.kpi b{font-size:25px;color:#087443;letter-spacing:-.04em}.ai-panel{border-radius:26px;background:linear-gradient(135deg,#063E2A,#0B7D45);box-shadow:0 24px 60px rgba(7,68,43,.24)}.insights{grid-template-columns:repeat(3,minmax(0,1fr))}.insights div{border-radius:20px;background:rgba(255,255,255,.13)}.tablewrap{border-color:#EAECF0;border-radius:20px}.table th{background:#F9FAFB;color:#475467;font-size:11px;letter-spacing:.04em}.table td{font-size:13.5px}.badge{font-size:11px;background:#DCFCE7;color:#067647}.btn{background:#0F9D58;border-radius:13px;font-weight:900;box-shadow:none}.btn:hover{background:#0B7D45;filter:none}.btn.light{background:#F2F4F7;color:#344054}.btn.red{background:#D92D20}.modal{border-radius:28px}.modal-head{padding:20px 24px}.modal-head h3{letter-spacing:-.04em}.modal-foot{background:#F9FAFB}
@media(max-width:1180px){.topbar{height:auto;min-height:76px;padding:14px 18px;align-items:flex-start}.top-actions{flex-wrap:wrap;justify-content:flex-end}.topbar-filters{order:2;width:100%;justify-content:flex-end}.admin-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.insights{grid-template-columns:1fr}.filters.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.topbar{display:block}.top-title{margin-bottom:12px}.top-actions{justify-content:stretch}.topbar-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.topbar-filters select{grid-column:1/-1}.topbar-filters input{max-width:none;width:100%}.create-order{width:100%}.content{padding:18px 14px}.admin-cards{grid-template-columns:1fr}.section{padding:18px;border-radius:22px}.filters.compact{grid-template-columns:1fr}.auth-card{padding:26px 20px}.auth-card h1{font-size:21px}.layout{grid-template-columns:1fr}}


/* V43 Modern ERP UI + Secure Login: refined typography, compact top filters, no bulky in-page filters */
:root{--green:#0B7D45;--green2:#12B76A;--ink:#101828;--muted:#667085;--bg:#F6FAF7;--line:#E6EAE8;--card:#FFFFFF;--shadow:0 14px 36px rgba(16,24,40,.055)}
html,body{font-family:'Be Vietnam Pro','Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-weight:500;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision;letter-spacing:-.018em}
body *{font-family:inherit!important}.side{width:280px;background:#101828;padding:18px 14px}.layout{grid-template-columns:280px minmax(0,1fr)}.brand strong{font-size:16px;font-weight:900;letter-spacing:-.03em}.brand small{font-weight:500}.userbox{font-size:14px;line-height:1.5;border-radius:18px}.nav{gap:4px}.nav button{height:44px;padding:0 13px;border-radius:13px;font-size:14px;font-weight:800;letter-spacing:-.015em}.nav svg{width:18px;height:18px}.btn{height:42px;border-radius:13px;font-size:14px;font-weight:850;padding:0 16px;background:#0B7D45}.btn:hover{background:#06673A}.quick{height:46px}.topbar{height:72px;padding:0 26px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(16px);box-shadow:0 2px 16px rgba(16,24,40,.025)}.top-title{display:flex;align-items:center;gap:12px;min-width:220px}.topbar h2{font-size:25px;font-weight:900;letter-spacing:-.05em;margin:0}.topbar small{font-size:12px;font-weight:700;color:#667085}.top-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}.create-order{height:44px;padding:0 22px;white-space:nowrap;border-radius:14px}.topbar-filters{display:flex!important;align-items:center;justify-content:flex-end;gap:7px;background:#fff;border:1px solid #E6EAE8;border-radius:17px;padding:7px;box-shadow:0 10px 30px rgba(16,24,40,.05);max-width:780px;min-width:0}.topbar-filters select,.topbar-filters input{height:34px;border:1px solid #E4E7EC;border-radius:10px;background:#FCFCFD;color:#344054;font-size:12px;font-weight:700;padding:0 9px;outline:0}.topbar-filters select:focus,.topbar-filters input:focus{border-color:#12B76A;box-shadow:0 0 0 3px rgba(18,183,106,.12)}.topbar-filters select{max-width:112px}.topbar-filters input[type="date"]{width:125px}.topbar-filters input:not([type="date"]){width:128px}.topbar-filters .filter-apply{height:34px;border-radius:10px;padding:0 12px;font-size:12px}.content{padding:26px 32px;max-width:1560px}.section{border-radius:24px;border:1px solid #E6EAE8;background:#fff;box-shadow:var(--shadow);padding:22px}.dash-section{background:#fff;border-color:#E6EAE8}.dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}.dashboard-head h3{font-size:27px;font-weight:900;letter-spacing:-.055em;margin:6px 0 5px}.dashboard-head p{font-size:14px;font-weight:650;color:#667085;max-width:900px}.dashboard-head .eyebrow{background:#ECFDF3;color:#087443;border:1px solid #ABEFC6;font-size:11px;font-weight:850;letter-spacing:.05em;padding:5px 10px;border-radius:999px}.head-actions{display:flex;gap:10px;align-items:center}.cards{gap:14px}.admin-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.card{border:1px solid #E6EAE8;border-radius:22px;box-shadow:0 10px 24px rgba(16,24,40,.04);padding:18px;background:#fff}.card.kpi{background:linear-gradient(180deg,#fff,#FBFFFC);border-color:#E5EFE8}.card.kpi:after{background:linear-gradient(135deg,#E8FFF0,#F7FEFA);width:88px;height:88px}.kpi small{font-size:11px;font-weight:850;color:#667085;letter-spacing:.035em;min-height:18px}.kpi b{font-size:25px;font-weight:900;color:#067647;letter-spacing:-.045em}.ai-panel{background:linear-gradient(135deg,#063B28,#087443);border-radius:24px}.ai-panel h3{font-size:24px;font-weight:900}.insights{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.insights div{border-radius:18px;padding:15px;background:rgba(255,255,255,.12)}.insights b{font-weight:900}.insights p{font-weight:600}.table th{font-size:11px;font-weight:850;color:#475467;background:#F9FAFB}.table td{font-size:13.5px;font-weight:560;color:#1D2939}.field input,.field select,.field textarea{font-weight:600;border-color:#E4E7EC;background:#FCFCFD}.field label{font-weight:850;color:#667085}.auth-card{font-family:'Be Vietnam Pro','Inter',sans-serif!important}.auth-card input:-webkit-autofill{-webkit-text-fill-color:#101828;transition:background-color 99999s ease-in-out 0s}.remember-row{display:flex!important}.filterbar,.advanced-filter{display:none!important}.modal{font-family:'Be Vietnam Pro','Inter',sans-serif!important}.modal-head h3{font-size:22px;font-weight:900}.modal-foot .btn{height:42px}
@media(max-width:1280px){.topbar{height:auto;min-height:72px;padding:12px 18px;align-items:flex-start}.top-actions{flex-wrap:wrap}.topbar-filters{order:2;max-width:none;width:100%;justify-content:flex-start}.admin-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.insights{grid-template-columns:1fr}}
@media(max-width:760px){.layout{grid-template-columns:1fr}.topbar{display:block}.top-title{margin-bottom:12px}.topbar-filters{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%}.topbar-filters select,.topbar-filters input,.topbar-filters input[type="date"]{width:100%;max-width:none}.topbar-filters select:first-child{grid-column:1/-1}.topbar-filters .filter-apply{grid-column:1/-1;width:100%}.create-order{width:100%}.content{padding:18px 14px}.admin-cards{grid-template-columns:1fr}.dashboard-head{display:block}.dashboard-head h3{font-size:23px}.section{border-radius:20px;padding:18px}}

/* V44: admin wallet, honors, community refinements */
.report-grid,.wallet-admin-grid,.community-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0 18px}.honor-banner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.honor-banner{display:flex;gap:14px;align-items:center;border:1px solid #D1FADF;background:linear-gradient(135deg,#F6FEF9,#ECFDF3);border-radius:22px;padding:16px;box-shadow:0 12px 28px rgba(16,24,40,.045)}.honor-banner .avatar{width:68px;height:68px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,#0F9D58,#12B76A);color:#fff;font-weight:950;font-size:20px;flex:none;overflow:hidden}.honor-banner .avatar img{width:100%;height:100%;object-fit:cover}.honor-banner small{display:inline-flex;background:#D1FADF;color:#067647;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:900;text-transform:uppercase}.honor-banner b{display:block;font-size:20px;margin:7px 0 4px;letter-spacing:-.04em}.honor-banner p{font-weight:750;color:#344054;margin:0 0 5px}.honor-banner span{font-size:12px;font-weight:850;color:#667085}.community-admin-grid .tablewrap{grid-column:1/-1}.post{background:#fff;border:1px solid #EAECF0;border-radius:20px;padding:16px;margin-bottom:12px}.post>div:first-child{display:flex;align-items:center;justify-content:space-between;color:#667085}.post h4{margin:10px 0 6px;font-size:18px}.post p{color:#344054}.post-actions{display:flex;gap:8px;margin-top:12px}.post-actions button{border:1px solid #D0D5DD;background:#fff;border-radius:999px;padding:8px 12px;font-weight:850;cursor:pointer}.post-actions button:hover{background:#F9FAFB;border-color:#12B76A}.section h3+ .tablewrap{margin-top:10px}@media(max-width:900px){.report-grid,.wallet-admin-grid,.community-admin-grid,.honor-banner-grid{grid-template-columns:1fr}}

/* V45 Smart UI: live refresh, role permissions, notification bell */
.notify-bell{height:42px;width:46px;border:1px solid #E6EAE8;background:#fff;border-radius:14px;display:grid;place-items:center;position:relative;cursor:pointer;font-size:18px;box-shadow:0 10px 24px rgba(16,24,40,.045)}
.notify-bell:hover{border-color:#12B76A;background:#F6FEF9}.notify-count{position:absolute;right:-5px;top:-6px;min-width:20px;height:20px;border-radius:999px;background:#F04438;color:#fff;font-size:11px;font-weight:900;place-items:center;border:2px solid #fff}.notification-list{display:grid;gap:10px;max-height:520px;overflow:auto}.notification-item{border:1px solid #EAECF0;border-radius:16px;padding:13px 14px;background:#fff}.notification-item.unread{border-color:#ABEFC6;background:#F6FEF9}.notification-item b{font-size:14px}.notification-item p{margin:5px 0;color:#344054}.notification-item small{color:#667085;font-weight:700}.product-picker .muted{font-size:12px}.commission-preview{margin-top:12px;padding:12px 14px;border-radius:16px;background:#F6FEF9;border:1px solid #D1FADF;color:#067647;font-weight:800}.badge.draft{background:#FFF7ED;color:#B45309}.section-head .actions{display:flex;gap:8px;flex-wrap:wrap}.top-actions{gap:8px}.modal .save{min-width:120px}
@media(max-width:760px){.notify-bell{width:100%}.top-actions .notify-bell{grid-column:1/-1}.section-head .actions{width:100%}.section-head .actions .btn{flex:1}}

/* V49: vinh danh popup, badge va tuong tac vi Ecofami */
.honor-banner{cursor:pointer}
.honor-badge{position:relative;overflow:visible!important}
.honor-badge em{position:absolute;right:-8px;bottom:-8px;width:30px;height:30px;border-radius:999px;background:#fff;border:2px solid #D1FADF;display:grid;place-items:center;font-style:normal;font-size:16px;box-shadow:0 8px 20px rgba(16,24,40,.12)}
.honor-stats{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.honor-stats span{background:#fff;border:1px solid #D1FADF;border-radius:999px;padding:5px 9px;color:#067647;font-size:11px;font-weight:900}
.honor-detail{text-align:center}
.honor-detail .avatar.big{width:118px;height:118px;border-radius:32px;margin:0 auto 14px;display:grid;place-items:center;background:linear-gradient(135deg,#0F9D58,#12B76A);color:#fff;font-size:32px;font-weight:950}
.honor-detail .avatar.big img{width:100%;height:100%;object-fit:cover;border-radius:32px}
.honor-detail h3{margin:8px 0 4px}
.honor-detail>p{margin:0 0 16px;color:#667085;font-weight:750}
.metric-grid{display:grid;grid-template-columns:minmax(120px,.8fr) 1.2fr;gap:10px;text-align:left;background:#F9FAFB;border:1px solid #EAECF0;border-radius:18px;padding:14px;margin:14px 0}
.metric-grid span{color:#667085;font-weight:850}
.metric-grid b{color:#101828}
@media(max-width:560px){.metric-grid{grid-template-columns:1fr}.honor-detail .actions .btn{width:100%}}

/* V50: Cong dong, phan quyen, mobile topbar */
.top-filter-menu{position:relative;flex:none}.top-filter-menu summary{list-style:none;height:42px;border:1px solid #E6EAE8;background:#fff;border-radius:14px;padding:0 13px;display:inline-flex;align-items:center;gap:6px;font-weight:900;color:#344054;cursor:pointer;box-shadow:0 10px 24px rgba(16,24,40,.045)}.top-filter-menu summary::-webkit-details-marker{display:none}.top-filter-menu[open] .topbar-filters{position:absolute;right:0;top:48px;z-index:80;width:min(760px,calc(100vw - 28px));max-width:none;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}.community-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.community-group{display:flex;gap:14px;align-items:flex-start;border:1px solid #EAECF0;border-radius:20px;background:#fff;padding:15px;box-shadow:0 10px 26px rgba(16,24,40,.045)}.group-avatar{width:54px;height:54px;border-radius:16px;background:#ECFDF3;color:#067647;display:grid;place-items:center;font-weight:950;overflow:hidden;flex:none}.group-avatar img{width:100%;height:100%;object-fit:cover}.community-group b{display:block;font-size:16px;margin-bottom:4px}.community-group small{display:block;color:#667085;font-weight:750}.community-group p{margin:8px 0 12px;color:#344054}.member-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:320px;overflow:auto;border:1px solid #E4E7EC;border-radius:16px;padding:10px;background:#FCFCFD}.member-picker label{display:flex;gap:9px;align-items:center;background:#fff;border:1px solid #EAECF0;border-radius:14px;padding:9px}.member-picker small{display:block;color:#667085;font-size:11px;margin-top:2px}.mini-avatar{width:30px;height:30px;border-radius:999px;background:#ECFDF3;color:#067647;display:grid;place-items:center;font-weight:950;flex:none}.chat-list{display:grid;gap:10px;max-height:430px;overflow:auto;padding-right:4px}.chat-msg{border:1px solid #EAECF0;background:#fff;border-radius:18px;padding:12px 14px}.chat-msg>div:first-child{display:flex;justify-content:space-between;gap:10px;color:#667085}.chat-msg p{margin:8px 0;color:#1D2939;white-space:pre-wrap}.chat-files{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.chat-files span{border:1px solid #D1FADF;background:#F6FEF9;color:#067647;border-radius:999px;padding:6px 10px;font-weight:850;font-size:12px}.chat-compose{margin-top:14px;padding-top:14px;border-top:1px solid #EAECF0}.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.permission-grid label{border:1px solid #EAECF0;border-radius:12px;padding:9px;background:#fff;font-weight:800}
@media(max-width:900px){.community-groups,.member-picker,.permission-grid{grid-template-columns:1fr}}
@media(max-width:760px){.topbar{height:60px!important;min-height:60px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:8px 10px!important;overflow:visible}.top-title{margin:0!important;min-width:0!important;flex:1;gap:8px}.top-title h2{font-size:15px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:36vw}.top-title small{display:none!important}.mobile-toggle{display:inline-flex!important;width:38px!important;min-width:38px!important;height:38px!important;padding:0!important}.top-actions{margin-left:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important;min-width:auto}.notify-bell{width:38px!important;min-width:38px!important;height:38px!important}.create-order{width:38px!important;min-width:38px!important;height:38px!important;padding:0!important;font-size:0!important}.create-order:before{content:"+";font-size:20px;line-height:1}.top-filter-menu summary{height:38px;font-size:12px;padding:0 9px}.top-filter-menu[open] .topbar-filters{top:44px;right:0;grid-template-columns:1fr;width:calc(100vw - 20px)}.topbar-filters select,.topbar-filters input,.topbar-filters input[type="date"]{width:100%!important;max-width:none!important}.topbar-filters .filter-apply{width:100%;grid-column:auto!important}}

/* Gamification */
.gm-summary-card,.game-section{background:linear-gradient(180deg,#fff,#f6fff9);border-color:#D1FADF}
.gm-level-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;color:#101828}.gm-level-line b{font-size:18px}.gm-level-line span{font-weight:800;color:#667085}.gm-main-progress{height:14px;background:#E8F5EE}.gm-main-progress i{background:linear-gradient(90deg,#067647,#12B76A)}
.gm-mini-lines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.gm-mini-lines span,.gm-state{border:1px solid #D1FADF;background:#F6FEF9;color:#067647;border-radius:14px;padding:10px 12px;font-weight:850}
.gm-page{display:grid;gap:18px}.gm-hero{display:grid;grid-template-columns:82px minmax(0,1fr);gap:18px;align-items:center;background:linear-gradient(135deg,#063B28,#087443 65%,#12B76A);color:#fff;border-radius:24px;padding:24px;box-shadow:0 22px 54px rgba(6,95,70,.22)}.gm-hero span{font-size:12px;text-transform:uppercase;font-weight:900;letter-spacing:.05em;opacity:.86}.gm-hero h3{margin:5px 0;font-size:28px}.gm-hero p,.gm-hero small{color:#fff;font-weight:800;opacity:.92}.gm-avatar{width:82px;height:82px;border-radius:24px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.32);display:grid;place-items:center;font-size:30px;font-weight:950}
.gm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.gm-missions{display:grid;gap:12px}.gm-mission{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #EAECF0;background:#fff;border-radius:18px;padding:14px}.gm-mission b{display:block;color:#101828}.gm-mission p{margin:4px 0 10px;color:#667085}.gm-progress{height:9px;background:#EEF4F0;border-radius:999px;overflow:hidden}.gm-progress i{display:block;height:100%;background:#12B76A;border-radius:999px}.gm-mission small{display:block;margin-top:7px;color:#667085;font-weight:800}
.gm-badges{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.gm-badge{border:1px solid #EAECF0;background:#fff;border-radius:18px;padding:14px;min-height:142px}.gm-badge span{width:42px;height:42px;border-radius:999px;background:#FFF7E6;border:1px solid #FEDF89;color:#B54708;display:grid;place-items:center;font-size:22px}.gm-badge b{display:block;margin:10px 0 5px}.gm-badge small{color:#667085;font-weight:750}.gm-badge.locked{filter:grayscale(.35);opacity:.72}
.gm-streaks,.gm-leaderboard,.gm-logs{display:grid;gap:10px}.gm-streak,.gm-rank-row,.gm-logs>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;align-items:center;border:1px solid #EAECF0;background:#fff;border-radius:16px;padding:12px}.gm-streak{grid-template-columns:minmax(0,1fr) auto}.gm-streak span,.gm-rank-row small,.gm-logs small{color:#667085;font-weight:800}.gm-streak b,.gm-rank-row strong,.gm-logs b{color:#067647}.gm-controls{display:flex;gap:8px;margin-bottom:12px}.gm-controls select{height:42px;border:1px solid #E4E7EC;border-radius:12px;background:#fff;padding:0 10px;font:inherit;font-weight:750}
@media(max-width:1100px){.gm-badges{grid-template-columns:repeat(3,minmax(0,1fr))}.gm-grid{grid-template-columns:1fr}}
@media(max-width:760px){.gm-hero{grid-template-columns:1fr;padding:20px;border-radius:20px}.gm-avatar{width:64px;height:64px;border-radius:18px}.gm-hero h3{font-size:23px}.gm-mini-lines{grid-template-columns:1fr}.gm-mission{grid-template-columns:1fr}.gm-mission .btn{width:100%}.gm-badges{grid-template-columns:1fr 1fr}.gm-rank-row,.gm-logs>div{grid-template-columns:44px minmax(0,1fr);align-items:start}.gm-rank-row strong,.gm-rank-row small,.gm-logs small{grid-column:2}.gm-controls{display:grid;grid-template-columns:1fr}.gm-controls .btn{width:100%}}
@media(max-width:480px){.gm-badges{grid-template-columns:1fr}.gm-level-line{display:block}.gm-level-line span{display:block;margin-top:4px}}

/* V52: order detail, honors delete, permission search select */
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}
.detail-panel{border:1px solid #EAECF0;background:#fff;border-radius:18px;padding:14px;box-shadow:0 10px 26px rgba(16,24,40,.04)}
.detail-panel h4{margin:0 0 10px;color:#101828;font-size:15px;font-weight:950}
.detail-panel p{margin:6px 0;color:#344054;font-weight:650;line-height:1.45}
.order-detail-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:14px}
.permission-matrix{display:grid;gap:10px;max-height:420px;overflow:auto;padding-right:4px}
.perm-row{display:grid;grid-template-columns:minmax(150px,.8fr) repeat(6,minmax(88px,1fr));gap:8px;align-items:center;border:1px solid #EAECF0;background:#FCFCFD;border-radius:16px;padding:10px}
.perm-row b{color:#064E3B;font-weight:950}
.perm-row label{display:flex;align-items:center;gap:6px;border:1px solid #EAECF0;background:#fff;border-radius:12px;padding:8px;font-size:12px;font-weight:850;color:#344054}
.perm-row input{accent-color:#0F8F4F}
.product-cell{display:flex;gap:10px;align-items:center;min-width:220px}
.product-cell img{width:44px;height:44px;border-radius:12px;object-fit:cover;background:#F2F4F7;flex:none}
.product-cell b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}
.bulk-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 14px;padding:12px 14px;border:1px solid #D1FADF;background:#F6FEF9;border-radius:18px;box-shadow:0 12px 28px rgba(16,24,40,.055)}
.bulk-bar[hidden]{display:none!important}.bulk-bar b{margin-right:auto;color:#067647;font-weight:950}.product-admin-table th:first-child,.product-admin-table td:first-child{width:42px;text-align:center}.product-admin-table input[type="checkbox"]{width:18px;height:18px;accent-color:#0F8F4F}.line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}
@media(max-width:900px){.detail-grid{grid-template-columns:1fr}.perm-row{grid-template-columns:1fr 1fr}.perm-row b{grid-column:1/-1}.order-detail-actions .btn,.order-detail-actions .linkbtn{flex:1}}
@media(max-width:560px){.perm-row{grid-template-columns:1fr}.product-cell{min-width:0}.detail-panel{padding:12px}.order-detail-actions{justify-content:stretch}.bulk-bar{position:fixed;left:10px;right:10px;bottom:10px;z-index:95;border-radius:20px;padding:12px;box-shadow:0 22px 70px rgba(16,24,40,.24)}.bulk-bar .btn{flex:1;min-width:130px}.product-admin-table td:first-child{display:block;text-align:left}.product-admin-table td:first-child:before{content:"Chọn";display:inline-block;margin-right:10px}}

/* V51 SaaS refactor: command cards, bottom-sheet filters, lazy AI and mobile data cards */
.filter-trigger{height:42px;border:1px solid #E6EAE8;background:#fff;border-radius:14px;padding:0 14px;font-weight:900;color:#344054;cursor:pointer;box-shadow:0 10px 24px rgba(16,24,40,.045)}.filter-sheet{display:none}.filter-sheet.open{display:block}.filter-backdrop{position:fixed;inset:0;background:rgba(16,24,40,.38);z-index:90}.filter-panel{position:fixed;right:18px;top:74px;z-index:91;width:min(780px,calc(100vw - 36px));background:#fff;border:1px solid #EAECF0;border-radius:20px;box-shadow:0 24px 80px rgba(16,24,40,.22);overflow:hidden}.filter-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #EAECF0}.filter-head b{font-size:16px}.filter-panel .topbar-filters{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:none;width:100%;box-shadow:none;border:0;border-radius:0;padding:14px}.filter-panel .topbar-filters input,.filter-panel .topbar-filters select{height:42px;width:100%!important;max-width:none!important}.filter-actions{grid-column:1/-1;display:flex;gap:10px;justify-content:flex-end}.quick-actions-section{background:#fff}.quick-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.quick-card{min-height:126px;border:1px solid #EAECF0;background:linear-gradient(180deg,#fff,#FBFCFD);border-radius:18px;padding:18px;text-align:left;cursor:pointer;box-shadow:0 12px 30px rgba(16,24,40,.06);transition:.18s ease}.quick-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--qa) 45%,#EAECF0);box-shadow:0 18px 42px rgba(16,24,40,.12)}.quick-card span{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:color-mix(in srgb,var(--qa) 13%,#fff);font-size:30px;margin-bottom:14px}.quick-card b{display:block;color:#101828;font-size:16px}.ai-accordion{background:#102A43;color:#fff;border:0}.ai-accordion h3,.ai-accordion p{color:#fff}.ai-list{display:grid;gap:10px}.ai-list.collapsed{display:none}.ai-item{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:18px;overflow:hidden}.ai-item summary{cursor:pointer;display:grid;grid-template-columns:42px 1fr auto auto;gap:10px;align-items:center;padding:14px 16px;list-style:none}.ai-item summary::-webkit-details-marker{display:none}.ai-ico{font-size:26px}.ai-item b{font-size:15px}.ai-item em{font-style:normal;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900}.ai-item em.up{background:#DCFCE7;color:#067647}.ai-item em.down{background:#FEF3C7;color:#92400E}.ai-item i{font-style:normal;font-weight:900;color:#fff}.ai-body{padding:0 16px 16px 68px;color:#ECFDF3;font-weight:700;line-height:1.55}.prod-card b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.prod-card .muted{display:block;line-height:1.35}.member-search-select{border:1px solid #E4E7EC;border-radius:16px;background:#FCFCFD;padding:10px}.member-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:8px}.member-chips span{display:inline-flex;align-items:center;gap:6px;background:#ECFDF3;color:#067647;border:1px solid #ABEFC6;border-radius:999px;padding:6px 9px;font-weight:850}.member-chips button{border:0;background:transparent;cursor:pointer;font-weight:900}.member-search-input{width:100%;height:42px;border:1px solid #E4E7EC;border-radius:12px;padding:0 12px}.member-search-results{display:grid;gap:8px;max-height:300px;overflow:auto;margin-top:10px}.member-search-results button{display:grid;grid-template-columns:34px 1fr;gap:8px;text-align:left;align-items:center;border:1px solid #EAECF0;background:#fff;border-radius:14px;padding:9px;cursor:pointer}.member-search-results small{display:block;color:#667085}.notification-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.notification-tools select{height:42px;border:1px solid #E4E7EC;border-radius:12px;padding:0 10px;font:inherit;font-weight:750}.notification-item{display:grid;gap:5px}.modal{width:min(920px,96vw)}@media(max-width:900px){.quick-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-panel{top:auto;left:0;right:0;bottom:0;width:100%;height:70vh;border-radius:22px 22px 0 0}.filter-panel .topbar-filters{grid-template-columns:1fr;align-content:start;max-height:calc(70vh - 58px);overflow:auto}.filter-actions{position:sticky;bottom:0;background:#fff;padding-top:8px}.modal-bg{align-items:flex-end;padding:0}.modal{width:100vw;max-height:92vh;border-radius:22px 22px 0 0}.modal-body{max-height:calc(92vh - 138px);overflow:auto}.tablewrap{border:0;overflow:visible}.table,.table thead,.table tbody,.table tr,.table td{display:block;width:100%}.table thead{display:none}.table tr{background:#fff;border:1px solid #EAECF0;border-radius:18px;margin:10px 0;padding:10px;box-shadow:0 8px 22px rgba(16,24,40,.045)}.table td{border:0!important;display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;padding:8px 6px!important;align-items:start;word-break:break-word}.table td:before{content:attr(data-label);font-size:11px;font-weight:900;color:#667085;text-transform:uppercase}.table td img{max-width:64px}.table td:nth-child(2){font-weight:800}.table td:nth-child(2)>*{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.table td[data-label="Thao tác"]{grid-template-columns:1fr;gap:6px}.table td[data-label="Thao tác"]:before{margin-bottom:2px}.table td[data-label="Thao tác"] .row-actions{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;gap:6px;padding-bottom:2px}.table td[data-label="Thao tác"] .row-actions::-webkit-scrollbar{display:none}.table td[data-label="Thao tác"] .linkbtn,.table td[data-label="Thao tác"] .btn{white-space:nowrap;flex:none;padding:7px 10px;font-size:12.5px}}@media(max-width:560px){.quick-action-grid{grid-template-columns:1fr 1fr;gap:10px}.quick-card{min-height:104px;padding:14px;border-radius:18px}.quick-card span{width:44px;height:44px;font-size:24px;margin-bottom:10px}.quick-card b{font-size:14px}.ai-item summary{grid-template-columns:34px 1fr;gap:8px}.ai-item em,.ai-item i{grid-column:2}.ai-body{padding:0 14px 14px 56px}.table td{grid-template-columns:96px minmax(0,1fr)}}

/* V55: app-like mobile navigation */
@media(max-width:760px){
  body{background:#f7faf8}
  .content{padding:14px 10px 100px!important}
  .side{left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:74px!important;z-index:70!important;padding:6px 8px!important;border-radius:22px 22px 0 0;display:flex;align-items:center;box-shadow:0 -18px 48px rgba(16,24,40,.18);overflow:hidden}
  .side.open{height:86vh!important;display:block;overflow:auto;padding:16px 14px!important;border-radius:24px 24px 0 0}
  .side:not(.open) .brand,.side:not(.open) .userbox,.side:not(.open) .quick,.side:not(.open) .logout{display:none!important}
  .side:not(.open) .nav{display:grid!important;grid-template-columns:repeat(5,1fr);gap:4px;width:100%}
  .side:not(.open) .nav button{height:60px;padding:6px 4px!important;border-radius:16px;justify-content:center;text-align:center;display:flex;flex-direction:column;gap:3px;font-size:10px;line-height:1.1}
  .side:not(.open) .nav button:nth-child(n+6){display:none}
  .side:not(.open) .nav svg{width:20px;height:20px}
  .side-scrim.show{display:block!important;position:fixed;inset:0;background:rgba(15,23,42,.38);z-index:55}
  .filter-trigger{height:38px;padding:0 10px}
  .filter-panel{height:76vh!important}
}

/* V56: Ecofami premium admin theme */
:root{--eco-primary:#159447;--eco-primary-700:#08713a;--eco-primary-50:#effcf4;--eco-accent:#f28c28;--eco-accent-50:#fff7ed;--eco-ink:#153322;--eco-text:#26352d;--eco-muted:#6b7c72;--eco-border:#dfe9e3;--eco-bg:#f7fbf8;--eco-shadow:0 14px 36px rgba(21,52,34,.08)}
body{background:var(--eco-bg)!important;color:var(--eco-text)!important;letter-spacing:0!important}.side{background:linear-gradient(180deg,#0b3d24,#082d1b)!important}.nav button.active,.btn{background:var(--eco-primary)!important}.btn:hover{background:var(--eco-primary-700)!important}.btn.light{background:#f3f7f4!important;color:var(--eco-ink)!important;border:1px solid var(--eco-border)}.btn.red{background:#dc2626!important}.topbar{border-color:var(--eco-border)!important}.section{border-color:var(--eco-border)!important;box-shadow:var(--eco-shadow)!important}.dashboard-head .eyebrow,.badge{background:var(--eco-primary-50)!important;color:var(--eco-primary-700)!important;border:1px solid #bfe8cc!important}.badge.warn,.tone-orange .badge{background:var(--eco-accent-50)!important;color:#b45309!important;border-color:#fed7aa!important}.filter-trigger,.more-trigger{height:40px;border:1px solid var(--eco-border);background:#fff;border-radius:13px;padding:0 13px;font-weight:900;color:var(--eco-ink);cursor:pointer;box-shadow:0 8px 22px rgba(21,52,34,.06)}.filter-chip{display:inline-flex;align-items:center;height:40px;border:1px solid #cfe7d6;background:var(--eco-primary-50);color:var(--eco-primary-700);border-radius:999px;padding:0 12px;font-weight:850;white-space:nowrap}.eco-filter-panel{max-width:760px}.v56-filter{padding:16px;display:grid;gap:14px}.quick-range{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.quick-range button{border:1px solid var(--eco-border);background:#fff;border-radius:12px;height:38px;font-weight:850;color:var(--eco-text);cursor:pointer}.quick-range button.active{background:var(--eco-primary);border-color:var(--eco-primary);color:#fff}.v56-filter .formgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.active-filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.active-filter-bar span{display:inline-flex;gap:5px;align-items:center;border:1px solid #d7eadc;background:#fbfffc;border-radius:999px;padding:7px 10px;color:var(--eco-muted);font-weight:750}.active-filter-bar b{color:var(--eco-primary-700)}.kpi-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}.kpi-card{position:relative;min-height:126px;border:1px solid var(--eco-border);background:linear-gradient(180deg,#fff,#fbfffc);border-radius:20px;padding:18px;text-align:left;box-shadow:0 10px 26px rgba(21,52,34,.055);cursor:pointer;overflow:hidden}.kpi-card:after{content:"";position:absolute;right:-18px;top:-18px;width:78px;height:78px;border-radius:50%;background:#e7f8ed}.kpi-card.tone-orange:after{background:#fff0dc}.kpi-card span,.kpi-card b,.kpi-card small{position:relative;z-index:1;display:block}.kpi-card span{font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:var(--eco-muted);font-weight:900}.kpi-card b{margin:12px 0 6px;font-size:26px;line-height:1.05;color:var(--eco-primary-700);font-weight:950}.kpi-card.tone-orange b{color:#c25f12}.kpi-card small{color:var(--eco-muted);font-weight:750;line-height:1.35}.overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.top-list-card{border:1px solid var(--eco-border);background:#fff;border-radius:20px;padding:16px;box-shadow:0 10px 26px rgba(21,52,34,.05);min-width:0}.top-list-card h3{font-size:17px;margin:0 0 12px;color:var(--eco-ink)}.rank-list{display:grid;gap:9px}.rank-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #edf3ef;background:#fbfdfb;border-radius:14px;padding:10px}.rank-row em{width:26px;height:26px;border-radius:999px;background:var(--eco-primary-50);color:var(--eco-primary-700);display:grid;place-items:center;font-style:normal;font-weight:950}.rank-row span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:850;color:var(--eco-text)}.rank-row b{font-size:13px;color:var(--eco-primary-700);white-space:nowrap}.light-insights{background:#fff!important;color:var(--eco-text)!important}.light-insights h3,.light-insights p{color:inherit!important}.insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.insight-card{border:1px solid var(--eco-border);background:#fbfffc;border-radius:18px;padding:15px}.insight-card.warn{background:var(--eco-accent-50);border-color:#fed7aa}.insight-card b{display:block;color:var(--eco-ink);margin-bottom:6px}.insight-card p{margin:0!important;color:var(--eco-muted)!important;line-height:1.45}.empty-state{border:1px dashed #bfd6c6;background:#fbfffc;border-radius:20px;padding:28px;text-align:center;color:var(--eco-muted);display:grid;gap:6px}.empty-state b{color:var(--eco-ink)}.skeleton-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.skeleton-grid i{height:118px;border-radius:18px;background:linear-gradient(90deg,#eef4f0,#fff,#eef4f0);background-size:240% 100%;animation:ecoSkeleton 1.1s linear infinite}@keyframes ecoSkeleton{to{background-position:-240% 0}}.more-trigger{display:none}.more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.more-grid button{border:1px solid var(--eco-border);background:#fff;border-radius:16px;padding:14px;text-align:left;display:flex;align-items:center;gap:10px;font-weight:850;color:var(--eco-text);cursor:pointer}.more-grid svg{width:20px;height:20px;color:var(--eco-primary)}.log-filter .formgrid{align-items:end}.table td{line-height:1.45}.table td,.table th{word-break:normal}.line-clamp-2,.product-cell b{word-break:normal}
@media(max-width:1180px){.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.overview-grid,.insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v56-filter .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.more-trigger{display:inline-flex!important;align-items:center;justify-content:center;width:38px!important;min-width:38px!important;height:38px!important;padding:0!important}.filter-chip{display:none}.quick-range{grid-template-columns:repeat(2,minmax(0,1fr))}.v56-filter .formgrid{grid-template-columns:1fr}.kpi-grid,.overview-grid,.insight-grid,.skeleton-grid{grid-template-columns:1fr!important}.kpi-card{min-height:104px}.top-list-card{padding:14px}.rank-row{grid-template-columns:30px minmax(0,1fr);}.rank-row b{grid-column:2}.more-grid{grid-template-columns:1fr}.eco-filter-panel{border-radius:22px 22px 0 0!important}}
/* V57: promotion discount rows + referral tree */
.referral-readonly input[readonly]{background:#f6fef9;border-color:#abefc6;color:#087443;font-weight:850}.avatar.mini{width:30px;height:30px;border-radius:999px;background:var(--eco-primary-50);color:var(--eco-primary-700);display:inline-grid;place-items:center;font-weight:950}.order-detail .tablewrap,.modal .tablewrap{overflow:auto}.commission-preview b{color:var(--eco-primary-700)}.product-picker+.full .table th,.product-picker+.full .table td{white-space:nowrap}.product-picker+.full .table td:first-child{min-width:180px;white-space:normal;font-weight:850}
@media(max-width:760px){.product-picker+.full .table{min-width:860px}.commission-preview{font-size:13px;line-height:1.55}.referral-readonly{grid-column:1/-1}}

/* V59: Typography system, mobile nav/filter, order modal and promotion actions */
:root{
  --font-sans:'Be Vietnam Pro','Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --text-xs:12px;--text-sm:14px;--text-base:16px;--text-lg:18px;--text-xl:20px;--text-2xl:24px;--text-page:28px;--text-display:32px;
  --weight-regular:400;--weight-medium:500;--weight-semibold:600;--weight-bold:700;
  --money-green:#087443;--money-orange:#ea7a18;
}
*{font-family:var(--font-sans)!important}
html,body{font-size:var(--text-base)!important;line-height:1.45!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1{font-size:var(--text-display)!important;font-weight:var(--weight-bold)!important;line-height:1.2!important}
h2,.topbar h2{font-size:var(--text-page)!important;font-weight:var(--weight-bold)!important;line-height:1.2!important;letter-spacing:-.025em!important}
h3,.section h3{font-size:var(--text-2xl)!important;font-weight:var(--weight-bold)!important;line-height:1.25!important}
.card h3,.modal-head h3{font-size:var(--text-xl)!important;font-weight:var(--weight-semibold)!important}
.section p,.modal-body,.field input,.field select,.field textarea,.table td{font-size:var(--text-base)!important;font-weight:var(--weight-medium)!important;line-height:1.45!important}
.field label,.table th,.kpi small{font-size:var(--text-sm)!important;font-weight:var(--weight-semibold)!important;color:#475569!important;letter-spacing:0!important;text-transform:none!important}
small,.muted,.caption{font-size:13px!important;line-height:1.45!important}.btn,button{font-size:var(--text-base)!important;font-weight:var(--weight-semibold)!important}.nav button{font-size:15px!important}.kpi b,.kpi-card b{font-size:28px!important;font-weight:700!important}.money,.price,.total-pay{font-size:22px!important;font-weight:700!important;color:var(--money-green)!important}.total-pay{color:var(--money-orange)!important}.line-clamp-2,.product-cell b,.prod-card b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:normal!important}.row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row-actions .linkbtn{padding:7px 9px;border-radius:10px;background:#f8fafc}.row-actions .linkbtn.warn{color:#b45309;background:#fffbeb}.row-actions .linkbtn.red{color:#dc2626;background:#fff1f2}.product-picker+.full .table{min-width:1040px}.product-picker+.full .tablewrap{max-width:100%;overflow:auto}.commission-preview{font-size:16px!important;line-height:1.5!important;border-radius:16px;padding:12px 14px;background:#f0fdf4;border:1px solid #bbf7d0;color:#087443}.modal .table th,.modal .table td{white-space:normal!important;min-width:120px}.modal .table td:first-child{min-width:210px;max-width:260px}.modal-foot{position:sticky;bottom:0;z-index:5}.filter-trigger:before{content:'⚙ ';}.more-trigger{display:none!important}
@media(max-width:760px){
  html,body{font-size:16px!important}.topbar{height:68px!important;padding:0 14px!important}.top-title{min-width:0}.topbar h2{font-size:22px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar small{display:none!important}.top-actions{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;align-items:center!important}.notify-bell,.create-order,.filter-trigger{width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;border-radius:16px!important;display:inline-grid!important;place-items:center!important;font-size:0!important}.notify-bell{font-size:18px!important}.create-order::before{content:'+';font-size:24px;font-weight:800}.filter-trigger::before{content:'⚙';font-size:18px}.create-order{font-size:0!important}.topbar .btn.create-order{overflow:hidden}.content{padding:14px 10px 104px!important}.section{padding:16px!important;border-radius:22px!important;margin:14px 0!important}.cards,.admin-cards,.kpi-grid{grid-template-columns:1fr!important;gap:10px!important}.card,.kpi-card{min-height:auto!important;padding:16px!important}.kpi b,.kpi-card b{font-size:22px!important}.field label,.table th{font-size:14px!important}.field input,.field select,.field textarea{font-size:16px!important;padding:13px 14px!important}.modal-bg{align-items:flex-end!important;padding:0!important;z-index:20000!important}.modal{width:100vw!important;max-width:100vw!important;max-height:92vh!important;border-radius:24px 24px 0 0!important}.modal-head{padding:18px 18px!important}.modal-body{padding:16px!important;max-height:calc(92vh - 140px)!important;overflow:auto!important}.modal-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important}.product-picker{grid-template-columns:1fr!important;max-height:280px!important}.prod-card{min-height:76px}.prod-card b{font-size:15px!important}.product-picker+.full .tablewrap{overflow-x:auto!important;border:1px solid #e5e7eb!important;border-radius:16px!important}.product-picker+.full .table,.modal .table.force-wide{display:table!important;min-width:900px!important}.product-picker+.full .table thead,.product-picker+.full .table tbody{display:table-header-group!important}.product-picker+.full .table tbody{display:table-row-group!important}.product-picker+.full .table tr{display:table-row!important;margin:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important}.product-picker+.full .table th,.product-picker+.full .table td{display:table-cell!important;padding:12px!important;border-bottom:1px solid #edf2f7!important}.product-picker+.full .table td:before{display:none!important}.filter-sheet.open .filter-panel{height:72vh!important;max-height:72vh!important;border-radius:24px 24px 0 0!important;bottom:0!important;top:auto!important}.filter-panel .topbar-filters{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}.side:not(.open) .nav{grid-template-columns:repeat(6,1fr)!important}.side:not(.open) .nav button:nth-child(n+6){display:flex!important}.side:not(.open) .nav button:nth-child(n+7){display:none!important}.side:not(.open) .nav button{font-size:11px!important}.side.open .nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.side.open .nav button{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;font-size:14px!important;height:auto!important}.side.open .logout{display:flex!important;margin-bottom:env(safe-area-inset-bottom)!important;background:#fff1f2!important;color:#b91c1c!important}.side.open .brand,.side.open .userbox,.side.open .quick{display:flex!important}.toast{width:calc(100vw - 24px)!important;bottom:88px!important;text-align:center!important;font-size:14px!important}
}

/* V60: Order create transaction hotfix + mobile order detail UX */
.smart-order-detail{display:grid;gap:16px;max-width:100%;overflow:hidden}.order-detail-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;margin-bottom:4px}.order-product-list{display:grid;gap:10px}.order-product-card{border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;box-shadow:0 8px 20px rgba(15,23,42,.04)}.op-main{min-width:0}.op-main b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.35;color:#0f172a}.op-main span,.op-meta{color:#64748b;font-size:13px;font-weight:750;line-height:1.45}.op-money{font-weight:900;color:#087443;white-space:nowrap}.op-meta{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.op-meta span{border:1px solid #eef2f7;background:#f8fafc;border-radius:999px;padding:5px 8px}.order-summary{margin-top:2px}.order-summary p{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed #e5e7eb;padding:8px 0}.order-summary p:last-child{border-bottom:0}.detail-panel{min-width:0}.detail-panel p{overflow-wrap:anywhere}.modal-body{overflow-x:hidden!important}
@media(max-width:760px){.order-detail-toolbar{position:sticky;top:0;z-index:3;background:#fff;padding-bottom:8px;justify-content:stretch}.order-detail-toolbar .btn,.order-detail-toolbar .linkbtn{flex:1 1 calc(50% - 6px);min-height:42px;border-radius:14px;background:#f8fafc}.order-detail-toolbar .btn{color:#0f172a}.order-detail-toolbar .linkbtn.red{background:#fff1f2;color:#dc2626}.smart-order-detail .detail-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px}.order-product-card{grid-template-columns:1fr;padding:12px;border-radius:16px}.op-money{justify-self:start;font-size:16px}.op-meta{display:grid;grid-template-columns:1fr;gap:6px}.op-meta span{border-radius:12px}.order-summary p{font-size:14px!important}.modal .tablewrap{max-width:100%;overflow:auto!important;border:1px solid #e5e7eb!important;border-radius:16px!important}.toast.bad{bottom:96px!important}}

/* V61: mobile order UX + unified typography hotfix */
:root{--text-base:15px;--text-sm:13px;--text-lg:17px;--text-xl:20px;--text-page:24px;--text-2xl:22px;--text-display:30px}
.modal,.modal *{font-family:var(--font-sans,'Be Vietnam Pro','Inter',system-ui,-apple-system,'Segoe UI',sans-serif)!important;letter-spacing:-.01em!important}.modal-body,.modal-body p,.modal-body span,.modal-body b,.modal-body input,.modal-body select{font-size:15px!important;line-height:1.45!important}.modal h3{font-size:22px!important}.modal h4{font-size:17px!important;line-height:1.35!important;margin:14px 0 10px!important}.product-picker-search{display:block!important;max-height:260px!important;overflow:auto;border:1px solid #e5e7eb;border-radius:18px;background:#fff}.product-picker-search .prod-card{margin:8px;border-radius:16px;align-items:center;min-width:0}.product-picker-search .prod-info{min-width:0;display:grid;gap:4px}.product-picker-search .prod-card b{font-size:15px!important;line-height:1.3!important;-webkit-line-clamp:2!important;word-break:normal!important;overflow-wrap:anywhere}.product-search-hint{padding:18px!important}.selected-order-zone h3{font-size:20px!important;margin:8px 0 10px!important}.selected-order-list{display:grid;gap:10px}.selected-order-card{border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:13px 14px;box-shadow:0 6px 18px rgba(15,23,42,.04);max-width:100%;overflow:hidden}.so-title{font-size:15px!important;font-weight:850;color:#0f172a;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:10px}.so-grid{display:grid;grid-template-columns:minmax(92px,.85fr) minmax(0,1.15fr);gap:7px 10px;padding:10px;border:1px solid #eef2f7;background:#f8fafc;border-radius:14px}.so-grid span{color:#64748b;font-weight:750;font-size:13px!important}.so-grid b{font-size:14px!important;font-weight:850;color:#0f172a;min-width:0;overflow-wrap:anywhere;text-align:right}.so-bottom{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:10px;flex-wrap:wrap}.so-bottom label{display:inline-flex;align-items:center;gap:8px;font-size:14px!important;font-weight:850;color:#334155}.so-bottom input{width:68px!important;min-width:68px!important;padding:9px 8px!important;border-radius:12px!important;border:1px solid #dbe4ec!important;text-align:center}.so-bottom strong{font-size:16px!important;color:#087443;font-weight:950}.so-bottom .linkbtn{background:#fff1f2!important;color:#dc2626!important;border-radius:12px!important;padding:8px 10px!important}.commission-preview{font-size:14px!important;line-height:1.55!important;overflow-wrap:anywhere}.commission-preview b{font-size:15px!important}.order-modal-smart .field label{font-size:13px!important}.order-modal-smart .field input,.order-modal-smart .field select{font-size:15px!important;font-weight:700!important}.op-main b{font-size:15px!important;line-height:1.35!important}.op-main span,.op-meta,.op-meta span{font-size:13px!important}.op-money{font-size:15px!important}.order-detail-toolbar .btn,.order-detail-toolbar .linkbtn{font-size:14px!important}
@media(max-width:760px){html,body{font-size:15px!important}.modal{max-height:94vh!important}.modal-head h3{font-size:22px!important}.modal-body{padding:14px!important;max-height:calc(94vh - 132px)!important}.modal-body,.modal-body p,.modal-body span,.modal-body b,.modal-body input,.modal-body select{font-size:15px!important}.product-picker-search{max-height:230px!important}.product-picker-search .prod-card{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;padding:10px!important}.product-picker-search .prod-card img{width:58px!important;height:58px!important}.selected-order-card{padding:12px!important;border-radius:16px!important}.so-grid{grid-template-columns:1fr auto!important}.so-grid b{text-align:right;max-width:150px}.so-bottom{gap:8px}.so-bottom strong{margin-left:auto}.modal-foot .btn{flex:1 1 0;min-width:0;padding-left:10px!important;padding-right:10px!important}.modal-foot{gap:8px!important}.toast{font-size:14px!important;line-height:1.35!important}.smart-order-detail{gap:12px}.order-product-card{padding:12px!important}.op-main b{-webkit-line-clamp:2!important}.op-meta span{font-size:12px!important;padding:6px 8px!important}.detail-panel p{font-size:14px!important;line-height:1.45!important}.order-summary p{font-size:14px!important;align-items:flex-start}}
/* V62 payment logic UX */
.payment-help{background:#f8fbf7;border:1px solid #dceee3;border-radius:16px;padding:12px 14px;color:#173126;line-height:1.45;font-size:14px}
.payment-help b{color:#087443}.payment-help small{display:block;margin-top:4px;color:#53636f}
@media(max-width:680px){.payment-help{font-size:13px;border-radius:14px;padding:10px 12px}.order-modal-smart .field label{font-size:13px}.order-modal-smart select,.order-modal-smart input{font-size:15px}}


/* V64: tối ưu mục Đơn hàng thành viên/admin, bộ lọc & công nợ chính xác */
.create-order-btn,.topbar .create-order,.side .quick{white-space:nowrap!important;min-width:max-content;line-height:1!important}.order-section-head{align-items:center}.order-filter-bar{display:flex;gap:10px;align-items:end;justify-content:space-between;flex-wrap:wrap;margin:8px 0 14px;padding:10px;border:1px solid #e5e7eb;background:#f8fafc;border-radius:16px}.order-filter-bar label{display:flex;align-items:center;gap:8px;font-weight:900;color:#475569}.order-filter-bar select{border:1px solid #dbe4ec;border-radius:12px;padding:10px 12px;background:#fff;font-weight:850;color:#0f172a}.order-table-wrap .tablewrap{overflow:auto}.order-table-wrap .table{table-layout:fixed;min-width:980px}.order-table-wrap .table th,.order-table-wrap .table td{white-space:nowrap;vertical-align:middle;line-height:1.25}.order-table-wrap .table th:nth-child(1),.order-table-wrap .table td:nth-child(1){width:145px}.order-table-wrap .table th:nth-child(2),.order-table-wrap .table td:nth-child(2){width:92px}.order-table-wrap .table th:nth-child(3),.order-table-wrap .table td:nth-child(3){width:105px}.order-table-wrap .table th:nth-child(4),.order-table-wrap .table td:nth-child(4){width:105px}.order-table-wrap .table th:nth-child(5),.order-table-wrap .table td:nth-child(5){width:132px}.order-table-wrap .table th:nth-child(6),.order-table-wrap .table td:nth-child(6){width:108px}.order-table-wrap .table th:nth-last-child(2),.order-table-wrap .table td:nth-last-child(2){width:280px}.order-table-wrap .table th:last-child,.order-table-wrap .table td:last-child{width:86px}.order-product-inline{display:block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}.order-code,.nowrap,.order-type,.pay-method,.money-cell{white-space:nowrap}.pay-method{display:inline-block;max-width:120px;overflow:hidden;text-overflow:ellipsis}.order-page-section .mini-grid,.order-page-section .dash-mini{overflow:hidden}.order-page-section .actions,.order-table-wrap .actions{display:grid;gap:4px;align-content:center}.order-table-wrap .linkbtn{white-space:nowrap;padding:4px 2px}
@media(max-width:760px){.topbar{gap:8px}.topbar .top-actions{gap:8px}.topbar .create-order{padding:12px 13px!important;border-radius:14px!important;font-size:13px!important;white-space:nowrap!important;flex:none!important}.side .quick{white-space:nowrap!important}.order-section-head{display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important}.order-section-head h3{font-size:20px!important}.order-section-head p{font-size:13px!important}.order-section-head .create-order-btn{padding:11px 12px!important;font-size:13px!important;border-radius:14px!important}.order-filter-bar{display:grid;grid-template-columns:1fr;gap:9px;padding:10px;border-radius:14px}.order-filter-bar label{display:grid;grid-template-columns:70px 1fr}.order-filter-bar select,.order-filter-bar .btn{width:100%;min-height:42px}.order-table-wrap .tablewrap{border:0!important;overflow:visible!important}.order-table-wrap .table{display:block!important;min-width:0!important;width:100%!important}.order-table-wrap .table thead{display:none!important}.order-table-wrap .table tbody{display:grid!important;gap:10px!important}.order-table-wrap .table tr{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px 10px!important;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:12px!important;box-shadow:0 8px 20px rgba(15,23,42,.04);overflow:hidden}.order-table-wrap .table td{display:block!important;border:0!important;padding:0!important;font-size:13px!important;white-space:nowrap!important;min-width:0}.order-table-wrap .table td:before{content:attr(data-label);display:block;color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase;margin-bottom:3px}.order-table-wrap .table td:nth-child(1),.order-table-wrap .table td:nth-last-child(2),.order-table-wrap .table td:last-child{grid-column:1/-1}.order-product-inline{max-width:100%;font-size:14px!important}.order-table-wrap .actions{display:flex!important;justify-content:flex-start;gap:12px;flex-wrap:wrap}.order-table-wrap .linkbtn{background:#f0fdf4;border-radius:10px;padding:8px 10px!important}.money-cell{font-size:14px!important}.pay-method{max-width:100%;font-weight:850}.cards.kpi-grid,.cards.admin-cards,.cards{gap:10px!important}.card.kpi b{font-size:21px!important;word-break:normal!important}.modal-foot .btn{white-space:nowrap!important;font-size:14px!important}}

/* V66: desktop order table readability hotfix - prevent text overlap/covering */
.order-table-wrap .tablewrap{width:100%;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}
.order-table-wrap .table{table-layout:fixed!important;min-width:1380px!important;border-collapse:separate!important;border-spacing:0!important}
.order-table-wrap .table th,.order-table-wrap .table td{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;vertical-align:middle!important;line-height:1.28!important;max-width:1px!important;background:#fff}
.order-table-wrap .table th{background:#f8fafc!important}
.order-table-wrap .table td *{min-width:0;max-width:100%}
.order-table-wrap .table .order-code,
.order-table-wrap .table .nowrap,
.order-table-wrap .table .order-type,
.order-table-wrap .table .pay-method,
.order-table-wrap .table .money-cell{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:100%!important}
.order-table-wrap .table td:nth-child(1),.order-table-wrap .table th:nth-child(1){width:170px!important}
.order-table-wrap .table td:nth-child(2),.order-table-wrap .table th:nth-child(2){width:130px!important}
.order-table-wrap .table td:nth-child(3),.order-table-wrap .table th:nth-child(3){width:115px!important}
.order-table-wrap .table td:nth-child(4),.order-table-wrap .table th:nth-child(4){width:125px!important}
.order-table-wrap .table td:nth-child(5),.order-table-wrap .table th:nth-child(5){width:145px!important}
.order-table-wrap .table td:nth-child(6),.order-table-wrap .table th:nth-child(6){width:120px!important}
.order-table-wrap .table td:nth-child(7),.order-table-wrap .table th:nth-child(7){width:125px!important}
.order-table-wrap .table td:nth-child(8),.order-table-wrap .table th:nth-child(8){width:130px!important}
.order-table-wrap .table td:nth-child(9),.order-table-wrap .table th:nth-child(9){width:255px!important}
.order-table-wrap .table td:nth-child(10),.order-table-wrap .table th:nth-child(10){width:165px!important}
.order-product-inline{display:block!important;max-width:235px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-weight:850!important}
.order-table-wrap .actions{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;align-items:center!important;justify-content:flex-start!important;overflow:hidden!important}
.order-table-wrap .actions .linkbtn,.order-table-wrap .linkbtn{font-size:13px!important;line-height:1!important;padding:7px 6px!important;white-space:nowrap!important;flex:0 0 auto!important}
@media(min-width:761px){.order-table-wrap .table td:before{display:none!important}.order-table-wrap .table td{font-size:14px!important}.order-table-wrap .table th{font-size:11px!important}.order-table-wrap .table tr{height:58px}.order-page-section .section,.order-page-section{min-width:0!important}.main,.content{min-width:0!important}.topbar .btn,.topbar .create-order,.create-order-btn{white-space:nowrap!important}}
@media(max-width:760px){.order-table-wrap .table{min-width:0!important}.order-table-wrap .table th,.order-table-wrap .table td{max-width:none!important;background:transparent}.order-table-wrap .table tr{height:auto}.order-product-inline{max-width:100%!important}.order-table-wrap .actions{flex-wrap:wrap!important;overflow:visible!important}}

/* V68: Admin member table UX - no overlap, no wrapping, smart filters */
.member-page-section{min-width:0!important;overflow:hidden!important}.member-section-head{align-items:center!important}.member-section-head .btn{white-space:nowrap!important}.member-filter-bar{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr auto auto;gap:10px;align-items:end;margin:10px 0 14px;padding:12px;border:1px solid #dfeee3;background:#f8fffa;border-radius:18px}.member-filter-bar label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:950;color:#475569;text-transform:uppercase}.member-filter-bar input,.member-filter-bar select{border:1px solid #dbe4ec;border-radius:13px;padding:11px 12px;background:#fff;font-weight:850;color:#0f172a;min-width:0}.member-filter-bar .btn{min-height:43px;white-space:nowrap}.member-table-wrap .tablewrap{width:100%;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}.member-table-wrap .table{table-layout:fixed!important;min-width:1450px!important;border-collapse:separate!important;border-spacing:0!important}.member-table-wrap .table th,.member-table-wrap .table td{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;vertical-align:middle!important;line-height:1.25!important;background:#fff;max-width:1px!important}.member-table-wrap .table th{background:#f8fafc!important}.member-table-wrap .clip,.member-table-wrap .nowrap,.member-table-wrap .money-cell,.member-table-wrap .member-name-cell{display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.member-table-wrap .member-name-cell{font-weight:900}.member-table-wrap .money-cell{font-weight:900;color:#0f7a35}.member-table-wrap .member-actions{display:flex!important;gap:6px 5px!important;align-items:flex-start!important;flex-wrap:wrap!important;overflow:visible!important;padding:2px 0!important}.member-table-wrap .linkbtn{font-size:13px!important;line-height:1!important;padding:7px 6px!important;white-space:nowrap!important;flex:0 0 auto!important}.member-table-wrap .table td:nth-child(1),.member-table-wrap .table th:nth-child(1){width:10.47%!important}.member-table-wrap .table td:nth-child(2),.member-table-wrap .table th:nth-child(2){width:14.4%!important}.member-table-wrap .table td:nth-child(3),.member-table-wrap .table th:nth-child(3){width:7.2%!important}.member-table-wrap .table td:nth-child(4),.member-table-wrap .table th:nth-child(4){width:9.49%!important}.member-table-wrap .table td:nth-child(5),.member-table-wrap .table th:nth-child(5){width:7.2%!important}.member-table-wrap .table td:nth-child(6),.member-table-wrap .table th:nth-child(6){width:5.89%!important}.member-table-wrap .table td:nth-child(7),.member-table-wrap .table th:nth-child(7){width:6.87%!important}.member-table-wrap .table td:nth-child(8),.member-table-wrap .table th:nth-child(8){width:9.49%!important}.member-table-wrap .table td:nth-child(9),.member-table-wrap .table th:nth-child(9){width:8.18%!important}.member-table-wrap .table td:nth-child(10),.member-table-wrap .table th:nth-child(10){width:4.91%!important}.member-table-wrap .table td:nth-child(11),.member-table-wrap .table th:nth-child(11){width:8.18%!important}.member-table-wrap .table td:nth-child(12),.member-table-wrap .table th:nth-child(12){width:7.72%!important;max-width:none!important;overflow:visible!important;white-space:normal!important}
@media(max-width:1100px){.member-filter-bar{grid-template-columns:1fr 1fr 1fr}.member-filter-bar .btn{width:100%}}
@media(max-width:760px){.member-filter-bar{grid-template-columns:1fr!important;gap:9px;padding:10px;border-radius:14px}.member-filter-bar label{font-size:11px}.member-table-wrap .table{min-width:0!important}.member-table-wrap .tablewrap{border:0!important;overflow:visible!important}.member-table-wrap .table{display:block!important;width:100%!important}.member-table-wrap .table thead{display:none!important}.member-table-wrap .table tbody{display:grid!important;gap:10px!important}.member-table-wrap .table tr{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px 10px!important;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:12px!important;box-shadow:0 8px 20px rgba(15,23,42,.04);overflow:hidden}.member-table-wrap .table td{display:block!important;border:0!important;padding:0!important;font-size:13px!important;white-space:nowrap!important;max-width:none!important;background:transparent!important}.member-table-wrap .table td:before{content:attr(data-label);display:block;color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase;margin-bottom:3px}.member-table-wrap .table td:nth-child(1),.member-table-wrap .table td:nth-child(2),.member-table-wrap .table td:last-child{grid-column:1/-1}.member-table-wrap .member-actions{flex-wrap:wrap!important;overflow:visible!important}.member-table-wrap .linkbtn{background:#f0fdf4;border-radius:10px;padding:8px 10px!important}}

/* V70: mobile app navigation, compact top actions, functional filter sheet */
.bottom-nav{display:none}
.top-actions svg,.mobile-toggle svg,.filter-trigger svg,.notify-bell svg,.create-order svg,.nav svg,.quick svg,.logout svg{width:20px;height:20px;flex:none}
.filter-trigger{display:inline-flex!important;align-items:center;justify-content:center;gap:7px}
.filter-sheet[hidden]{display:none!important}
.notify-bell,.create-order,.mobile-toggle{display:inline-grid!important;place-items:center}
.admin-wallet-section{border-color:#bbf7d0!important;background:linear-gradient(180deg,#fff,#f6fff9)!important}
.system-wallet-section{border-color:#dbe4ec!important;background:#fff!important}
.wallet-split-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:14px;align-items:stretch;margin:10px 0 18px}
.wallet-note-panel{border:1px solid #d8efdf;background:#f8fffa;border-radius:18px;padding:16px;display:flex;flex-direction:column;justify-content:center}
.wallet-note-panel b{font-size:16px;color:#064e3b;margin-bottom:8px}
.wallet-note-panel p{margin:0;color:#475569;font-weight:700;line-height:1.55}
.wallet-note-panel span{color:#475569;font-weight:600;line-height:1.5}
.wallet-note-details{margin-top:8px;color:#64748b;font-size:13px;line-height:1.5}
.wallet-note-success{border-color:#b7e7c5;background:#f0fdf4}
.wallet-note-info{border-color:#bfdbfe;background:#eff6ff}
.wallet-note-warning{border-color:#fed7aa;background:#fff7ed}
@media(max-width:760px){.wallet-split-grid{grid-template-columns:1fr}.admin-wallet-section .section-head,.system-wallet-section .section-head{display:block!important}.admin-wallet-section .actions{margin-top:12px;display:grid!important;grid-template-columns:1fr}.admin-wallet-section .actions .btn{width:100%!important}}

/* V75: modern wallet dashboard */
.wallet-modern{display:grid;gap:16px}.wallet-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.wallet-tabs button,.wallet-subtabs button{border:1px solid #dfeee3;background:#fff;color:#345044;border-radius:999px;padding:10px 14px;font-weight:900;cursor:pointer}.wallet-tabs button.active,.wallet-subtabs button.active{background:#0f9d58;color:#fff;border-color:#0f9d58}.wallet-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:14px}.wallet-kpi-grid.member{grid-template-columns:repeat(4,minmax(0,1fr))}.wallet-kpi{border:1px solid #e4ece6;background:#fff;border-radius:18px;padding:15px 16px;box-shadow:0 10px 26px rgba(15,23,42,.045);min-height:104px}.wallet-kpi span{display:block;color:#64748b;font-weight:950;font-size:12px;text-transform:uppercase;line-height:1.25}.wallet-kpi b{display:block;margin-top:10px;font-size:23px;color:#087443;letter-spacing:-.02em;overflow-wrap:anywhere;word-break:break-word}.wallet-kpi small{display:block;margin-top:6px;color:#64748b;font-weight:750}.wallet-kpi.orange b{color:#c05621}.wallet-kpi.gold b{color:#b7791f}.wallet-kpi.red b{color:#dc2626}.wallet-chart{border:1px solid #dfeee3;background:#fff;border-radius:22px;padding:18px;box-shadow:0 12px 32px rgba(15,23,42,.05);margin-bottom:14px}.wallet-chart-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.wallet-chart h3{margin:0 0 4px}.wallet-chart p{margin:0;color:#64748b;font-weight:750}.wallet-legend{display:flex;gap:8px;flex-wrap:wrap}.wallet-legend span{font-size:12px;font-weight:900;border-radius:999px;padding:6px 9px;background:#f8fafc}.wallet-legend .in{color:#087443}.wallet-legend .out{color:#c05621}.wallet-legend .withdraw{color:#dc2626}.wallet-legend .bonus{color:#b7791f}.wallet-legend .commission{color:#2563eb}.wallet-bars{display:flex;gap:12px;align-items:end;height:166px;margin-top:18px;overflow:auto;padding-bottom:6px}.wallet-day{display:grid;grid-template-columns:repeat(5,10px);gap:4px;align-items:end;min-width:78px;height:145px;position:relative;padding-top:18px}.wallet-day small{position:absolute;top:0;left:0;font-size:11px;color:#64748b;font-weight:900}.wallet-day i{display:block;border-radius:999px 999px 3px 3px;min-height:4px}.wallet-day .inAmt{background:#16a34a}.wallet-day .outAmt{background:#f97316}.wallet-day .withdraw{background:#ef4444}.wallet-day .bonus{background:#eab308}.wallet-day .commission{background:#2563eb}.wallet-action-strip{display:flex;gap:10px;flex-wrap:wrap}.wallet-panel{border:1px solid #e4ece6;background:#fff;border-radius:22px;padding:16px;box-shadow:0 12px 32px rgba(15,23,42,.05)}.wallet-subtabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.wallet-request-list,.wallet-mobile-cards,.wallet-timeline{display:grid;gap:10px}.wallet-request-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:12px;align-items:center;border:1px solid #e5e7eb;border-radius:16px;padding:12px 14px;background:#fff}.wallet-request-card div:first-child{display:grid;gap:4px}.wallet-request-card span{color:#64748b;font-size:12px;font-weight:800}.wallet-request-card strong{color:#0f7a35}.wallet-filter-collapsed{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.wallet-mobile-cards{display:none}.wallet-timeline-card{border:1px solid #e5e7eb;background:#fff;border-radius:18px;padding:14px;text-align:left;display:grid;grid-template-columns:1fr auto;gap:4px 12px;cursor:pointer;box-shadow:0 8px 22px rgba(15,23,42,.04)}.wallet-timeline-card strong{font-size:20px;color:#087443}.wallet-timeline-card.minus strong{color:#dc2626}.wallet-timeline-card b{color:#0f172a}.wallet-timeline-card span,.wallet-timeline-card em{color:#64748b;font-style:normal;font-weight:800}.wallet-timeline-card p{grid-column:1/-1;margin:5px 0 0;color:#475569}.wallet-member-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(135deg,#0b7a44,#16a34a);border-radius:24px;padding:22px;color:#fff;margin-bottom:14px}.wallet-member-hero span{font-weight:900;text-transform:uppercase;font-size:12px;opacity:.86}.wallet-member-hero b{display:block;font-size:34px;margin:6px 0}.wallet-member-hero p{margin:0;opacity:.9;font-weight:750}.wallet-member-hero .btn.light{background:#fff!important}.wallet-withdraw-panel{max-width:860px}.wallet-drawer-bg{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:12000;display:flex;justify-content:flex-end}.wallet-drawer{width:min(460px,100vw);height:100%;background:#fff;box-shadow:-24px 0 70px rgba(15,23,42,.25);display:grid;grid-template-rows:auto 1fr}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e5e7eb}.drawer-head h3{margin:0}.drawer-body{padding:18px 20px;overflow:auto}.drawer-detail{display:grid;gap:10px}.drawer-detail p{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px;border-bottom:1px solid #eef2f7;padding:0 0 10px;margin:0}.drawer-detail b{color:#475569}.drawer-detail span{font-weight:850;color:#0f172a;overflow-wrap:anywhere}
@media(max-width:1180px){.wallet-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wallet-kpi-grid.member{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.wallet-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wallet-tabs button{border-radius:14px;min-height:42px}.wallet-kpi-grid,.wallet-kpi-grid.member{grid-template-columns:1fr 1fr!important;gap:10px}.wallet-kpi{min-height:94px;padding:13px}.wallet-kpi b{font-size:19px}.wallet-chart{padding:14px;border-radius:18px}.wallet-chart-head{display:block}.wallet-legend{margin-top:10px}.wallet-bars{height:142px}.wallet-day{height:120px;min-width:70px}.wallet-action-strip{display:grid;grid-template-columns:1fr}.wallet-action-strip .btn{width:100%}.wallet-panel{padding:13px;border-radius:18px}.wallet-desktop-table{display:none}.wallet-mobile-cards{display:grid}.wallet-request-card{grid-template-columns:1fr;gap:8px}.wallet-request-card .actions{display:flex;gap:8px;flex-wrap:wrap}.wallet-filter-collapsed{align-items:stretch;display:grid;grid-template-columns:1fr}.wallet-member-hero{display:block;padding:18px;border-radius:20px}.wallet-member-hero b{font-size:27px}.wallet-member-hero .actions{display:grid;grid-template-columns:1fr;margin-top:14px}.wallet-timeline-card{grid-template-columns:1fr}.wallet-timeline-card strong{font-size:18px}.wallet-drawer-bg{align-items:flex-end}.wallet-drawer{width:100vw;height:min(86vh,720px);border-radius:24px 24px 0 0}.drawer-detail p{grid-template-columns:1fr;gap:4px}.modal .formgrid{grid-template-columns:1fr!important}}
@media(max-width:400px){.wallet-kpi-grid,.wallet-kpi-grid.member{grid-template-columns:1fr 1fr!important;gap:8px}.wallet-kpi{padding:11px;min-height:84px}.wallet-kpi span{font-size:10.5px}.wallet-kpi b{font-size:16px;margin-top:7px}.wallet-kpi small{font-size:11px;margin-top:4px}.wallet-member-hero b{font-size:23px}.wallet-member-hero{padding:16px}}
@media(max-width:760px){
  body{background:#f7faf8!important}
  .layout{display:block!important;min-height:100vh!important}
  .main{min-width:0!important}
  .content{padding:14px 10px calc(96px + env(safe-area-inset-bottom))!important}
  .topbar{height:62px!important;min-height:62px!important;padding:8px 10px!important;display:flex!important;align-items:center!important;gap:8px!important;overflow:visible!important;z-index:90!important}
  .top-title{flex:1 1 auto!important;min-width:0!important;margin:0!important;display:flex!important;align-items:center!important;gap:8px!important}
  .top-title h2{font-size:19px!important;line-height:1.1!important;max-width:42vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .top-title small,.filter-chip{display:none!important}
  .mobile-toggle,.notify-bell,.create-order,.filter-trigger{width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;border-radius:15px!important;font-size:0!important;box-shadow:0 8px 18px rgba(16,24,40,.06)!important}
  .mobile-toggle svg,.notify-bell svg,.create-order svg,.filter-trigger svg{width:21px!important;height:21px!important}
  .create-order span,.filter-trigger span{display:none!important}
  .create-order::before,.filter-trigger::before{content:none!important}
  .top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:nowrap!important;margin-left:auto!important}
  .notify-count{display:grid}
  .side{display:none!important}
  .side.open{display:block!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:min(88dvh,760px)!important;z-index:130!important;padding:16px 14px calc(20px + env(safe-area-inset-bottom))!important;border-radius:24px 24px 0 0!important;overflow:auto!important;background:linear-gradient(180deg,#064e2f,#062b1c)!important;box-shadow:0 -24px 60px rgba(2,44,26,.32)!important}
  .side.open .brand{display:flex!important;margin-bottom:14px!important}
  .side.open .brand .logo{width:54px!important;height:54px!important;border-radius:16px!important}
  .side.open .brand strong{font-size:17px!important;line-height:1.15!important}
  .side.open .userbox{display:block!important;margin:12px 0 14px!important;border-radius:18px!important;padding:13px 14px!important;line-height:1.35!important}
  .side.open .quick{display:flex!important;width:100%!important;min-height:50px!important;border-radius:16px!important;margin:0 0 14px!important;gap:8px!important}
  .side.open .nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
  .side.open .nav button{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-height:46px!important;height:auto!important;padding:10px 11px!important;border-radius:14px!important;text-align:left!important;font-size:13.5px!important;line-height:1.2!important;color:#e5f7ec!important;background:rgba(255,255,255,.04)!important}
  .side.open .nav button.active{background:#16a34a!important;color:#fff!important}
  .side.open .nav button span{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .side.open .logout{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;min-height:50px!important;margin:14px 0 0!important;border-radius:16px!important;background:#fff1f2!important;color:#b91c1c!important}
  .side-scrim.show{display:block!important;position:fixed!important;inset:0!important;background:rgba(15,23,42,.42)!important;z-index:120!important}
  .bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:100;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#064e2f,#052f1f);border-radius:22px 22px 0 0;box-shadow:0 -18px 44px rgba(2,44,26,.28)}
  .bottom-nav button{border:0;background:transparent;color:rgba(255,255,255,.78);border-radius:16px;min-width:0;height:60px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-weight:850;line-height:1.05}
  .bottom-nav button.active{background:#18a957;color:#fff;box-shadow:0 10px 22px rgba(24,169,87,.26)}
  .bottom-nav svg{width:21px;height:21px;flex:none}
  .bottom-nav span{display:block;max-width:100%;font-size:11px;line-height:1.05;white-space:normal;overflow-wrap:anywhere;text-align:center}
  .filter-sheet.open{display:block!important}
  .filter-backdrop{z-index:140!important}
  .filter-sheet.open .filter-panel{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:min(78dvh,680px)!important;max-height:min(78dvh,680px)!important;z-index:150!important;border-radius:24px 24px 0 0!important;overflow:hidden!important}
  .eco-filter-panel .v56-filter{max-height:calc(min(78dvh,680px) - 58px)!important;overflow:auto!important;padding:12px 14px calc(14px + env(safe-area-inset-bottom))!important}
  .eco-filter-panel .formgrid{grid-template-columns:1fr!important;gap:10px!important}
  .quick-range{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .quick-range button{min-height:42px!important;border-radius:13px!important}
  .filter-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;position:sticky!important;bottom:0!important;background:#fff!important;padding-top:10px!important}
  .filter-actions .btn{width:100%!important;min-height:44px!important}
  .filter-actions .btn:first-child{grid-column:1/-1!important}
}

/* V71: fix mobile filter sheet so fields are visible above action buttons */
@media(max-width:760px){
  body.filter-open{overflow:hidden!important}
  body.filter-open .topbar{z-index:90!important}
  body.filter-open .bottom-nav{z-index:80!important}
  .filter-sheet.open{
    position:fixed!important;
    inset:0!important;
    z-index:10000!important;
    display:block!important;
    width:100vw!important;
    height:100dvh!important;
    pointer-events:auto!important;
  }
  .filter-sheet.open .filter-backdrop{
    position:fixed!important;
    inset:0!important;
    background:rgba(15,23,42,.42)!important;
    z-index:10000!important;
    pointer-events:auto!important;
  }
  .filter-sheet.open .filter-panel,
  .filter-sheet.open .eco-filter-panel{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    top:calc(74px + env(safe-area-inset-top))!important;
    bottom:calc(94px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    height:auto!important;
    max-height:none!important;
    z-index:10001!important;
    border-radius:22px!important;
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 24px 70px rgba(15,23,42,.26)!important;
    pointer-events:auto!important;
  }
  .filter-sheet.open .filter-head{
    min-height:56px!important;
    padding:14px 16px!important;
    background:#fff!important;
  }
  .filter-sheet.open .v56-filter{
    min-height:0!important;
    max-height:none!important;
    height:100%!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
    padding:12px 14px calc(14px + env(safe-area-inset-bottom))!important;
  }
  .filter-sheet.open .quick-range{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    order:1!important;
  }
  .filter-sheet.open .quick-range button{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:42px!important;
    padding:9px 10px!important;
    border-radius:13px!important;
    font-size:14px!important;
    font-weight:850!important;
  }
  .filter-sheet.open .formgrid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    order:2!important;
  }
  .filter-sheet.open .field{
    display:flex!important;
    flex-direction:column!important;
    gap:6px!important;
  }
  .filter-sheet.open .field label{
    font-size:12px!important;
    font-weight:900!important;
    color:#475569!important;
  }
  .filter-sheet.open .field input,
  .filter-sheet.open .field select{
    width:100%!important;
    min-height:44px!important;
    border-radius:13px!important;
    font-size:16px!important;
  }
  .filter-sheet.open .filter-actions{
    order:3!important;
    position:static!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin-top:auto!important;
    padding:10px 0 0!important;
    background:#fff!important;
  }
  .filter-sheet.open .filter-actions .btn{
    width:100%!important;
    min-height:46px!important;
    border-radius:14px!important;
    font-size:15px!important;
  }
  .filter-sheet.open .filter-actions .btn:first-child{
    grid-column:1/-1!important;
  }
}

/* V69: desktop order list compact fit + JPG download action clarity */
@media(min-width:761px){
  .order-page-section{overflow:hidden!important;min-width:0!important}
  .order-table-wrap{min-width:0!important;overflow:hidden!important}
  .order-table-wrap .tablewrap{width:100%!important;overflow-x:auto!important;overflow-y:visible!important;border-radius:16px!important}
  .order-table-wrap .table{table-layout:fixed!important;min-width:1260px!important;width:100%!important;border-collapse:separate!important;border-spacing:0!important}
  .order-table-wrap .table th,.order-table-wrap .table td{padding:11px 10px!important;font-size:13px!important;line-height:1.22!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;vertical-align:middle!important;max-width:1px!important}
  .order-table-wrap .table th{font-size:10.5px!important;letter-spacing:.01em!important}
  .order-table-wrap .table tr{height:54px!important}
  .order-table-wrap .table td:nth-child(1),.order-table-wrap .table th:nth-child(1){width:125px!important}
  .order-table-wrap .table td:nth-child(2),.order-table-wrap .table th:nth-child(2){width:105px!important}
  .order-table-wrap .table td:nth-child(3),.order-table-wrap .table th:nth-child(3){width:105px!important}
  .order-table-wrap .table td:nth-child(4),.order-table-wrap .table th:nth-child(4){width:115px!important}
  .order-table-wrap .table td:nth-child(5),.order-table-wrap .table th:nth-child(5){width:120px!important}
  .order-table-wrap .table td:nth-child(6),.order-table-wrap .table th:nth-child(6){width:110px!important}
  .order-table-wrap .table td:nth-child(7),.order-table-wrap .table th:nth-child(7){width:110px!important}
  .order-table-wrap .table td:nth-child(8),.order-table-wrap .table th:nth-child(8){width:105px!important}
  .order-table-wrap .table td:nth-child(9),.order-table-wrap .table th:nth-child(9){width:165px!important}
  .order-table-wrap .table td:nth-child(10),.order-table-wrap .table th:nth-child(10){width:200px!important;max-width:none!important;overflow:visible!important}
  .order-product-inline{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important;font-weight:850!important}
  .order-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;flex-wrap:nowrap!important;white-space:nowrap!important;overflow:visible!important;min-width:0!important}
  .order-actions .linkbtn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:auto!important;font-size:12.5px!important;line-height:1!important;padding:7px 5px!important;border-radius:9px!important;background:#f0fdf4!important;color:#087a34!important;white-space:nowrap!important;flex:0 0 auto!important}
  .order-actions .linkbtn.red{background:#fff1f2!important;color:#dc2626!important}
  .order-table-wrap .badge{padding:5px 8px!important;font-size:11px!important;white-space:nowrap!important}
  .order-table-wrap .money-cell{font-size:13px!important;font-weight:950!important}
}

/* V70: Order list balanced desktop layout like Member section */
@media(min-width:761px){
  .order-page-section .section-head{align-items:center!important;margin-bottom:14px!important}
  .order-page-section h3{font-size:22px!important;letter-spacing:-.03em!important}
  .order-table-wrap{overflow:hidden!important;border-radius:18px!important}
  .order-table-wrap .tablewrap{width:100%!important;overflow-x:auto!important;overflow-y:visible!important;border-radius:18px!important;border:1px solid #e2e8f0!important;background:#fff!important}
  .order-table-wrap .table{table-layout:fixed!important;min-width:1380px!important;width:100%!important;border-collapse:separate!important;border-spacing:0!important}
  .order-table-wrap .table th,
  .order-table-wrap .table td{padding:13px 12px!important;font-size:14px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;vertical-align:middle!important;max-width:1px!important;background:#fff!important}
  .order-table-wrap .table th{background:#f8fafc!important;color:#475569!important;font-size:11.5px!important;font-weight:950!important;letter-spacing:.015em!important;text-transform:uppercase!important}
  .order-table-wrap .table tr{height:60px!important}
  .order-table-wrap .table td:nth-child(1),.order-table-wrap .table th:nth-child(1){width:140px!important}
  .order-table-wrap .table td:nth-child(2),.order-table-wrap .table th:nth-child(2){width:120px!important}
  .order-table-wrap .table td:nth-child(3),.order-table-wrap .table th:nth-child(3){width:115px!important}
  .order-table-wrap .table td:nth-child(4),.order-table-wrap .table th:nth-child(4){width:125px!important}
  .order-table-wrap .table td:nth-child(5),.order-table-wrap .table th:nth-child(5){width:135px!important}
  .order-table-wrap .table td:nth-child(6),.order-table-wrap .table th:nth-child(6){width:125px!important}
  .order-table-wrap .table td:nth-child(7),.order-table-wrap .table th:nth-child(7){width:125px!important}
  .order-table-wrap .table td:nth-child(8),.order-table-wrap .table th:nth-child(8){width:115px!important}
  .order-table-wrap .table td:nth-child(9),.order-table-wrap .table th:nth-child(9){width:205px!important}
  .order-table-wrap .table td:nth-child(10),.order-table-wrap .table th:nth-child(10){width:220px!important;max-width:none!important;overflow:visible!important}
  .order-table-wrap .order-code,
  .order-table-wrap .nowrap,
  .order-table-wrap .order-type,
  .order-table-wrap .pay-method,
  .order-table-wrap .money-cell,
  .order-product-inline{display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .order-table-wrap .money-cell{font-size:14px!important;font-weight:950!important;color:#0f172a!important}
  .order-product-inline{font-size:14px!important;font-weight:900!important;color:#0f172a!important}
  .order-table-wrap .badge{padding:6px 10px!important;font-size:12px!important;line-height:1!important;border-radius:999px!important;white-space:nowrap!important}
  .order-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;flex-wrap:nowrap!important;white-space:nowrap!important;overflow:visible!important;min-width:0!important}
  .order-actions .linkbtn{display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;font-weight:950!important;line-height:1!important;padding:7px 7px!important;border-radius:10px!important;background:#f0fdf4!important;color:#087a34!important;white-space:nowrap!important;flex:0 0 auto!important}
  .order-actions .linkbtn.red{background:#fff1f2!important;color:#dc2626!important}
}
@media(min-width:761px) and (max-width:1320px){
  .order-table-wrap .table{min-width:1320px!important}
  .order-table-wrap .table th,.order-table-wrap .table td{font-size:13.5px!important;padding:12px 10px!important}
  .order-actions{gap:5px!important}
  .order-actions .linkbtn{font-size:12.5px!important;padding:7px 5px!important}
}

/* V71: Desktop order table full-screen readable fix
   - Không ép min-width lớn làm bảng bị thu nhỏ/không full màn hình
   - Bảng Đơn hàng chiếm 100% vùng nội dung
   - Cột thao tác tự xuống 2 hàng an toàn, không cắt mất nút Duyệt
*/
@media (min-width:761px){
  .content{max-width:none!important;width:100%!important;margin:0!important;padding-left:26px!important;padding-right:26px!important;}
  .order-page-section{width:100%!important;max-width:none!important;overflow:visible!important;}
  .order-table-wrap{width:100%!important;max-width:none!important;overflow:visible!important;}
  .order-table-wrap .tablewrap{width:100%!important;max-width:100%!important;overflow-x:hidden!important;overflow-y:visible!important;border-radius:18px!important;}
  .order-table-wrap .table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;}
  .order-table-wrap .table th,
  .order-table-wrap .table td{padding:12px 8px!important;font-size:14px!important;line-height:1.3!important;max-width:none!important;vertical-align:middle!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .order-table-wrap .table th{font-size:11px!important;font-weight:950!important;letter-spacing:0!important;}
  .order-table-wrap .table tr{height:auto!important;min-height:58px!important;}
  .order-table-wrap .table td:nth-child(1),.order-table-wrap .table th:nth-child(1){width:9%!important;}
  .order-table-wrap .table td:nth-child(2),.order-table-wrap .table th:nth-child(2){width:8%!important;}
  .order-table-wrap .table td:nth-child(3),.order-table-wrap .table th:nth-child(3){width:8%!important;}
  .order-table-wrap .table td:nth-child(4),.order-table-wrap .table th:nth-child(4){width:9%!important;}
  .order-table-wrap .table td:nth-child(5),.order-table-wrap .table th:nth-child(5){width:10%!important;}
  .order-table-wrap .table td:nth-child(6),.order-table-wrap .table th:nth-child(6){width:9%!important;}
  .order-table-wrap .table td:nth-child(7),.order-table-wrap .table th:nth-child(7){width:9%!important;}
  .order-table-wrap .table td:nth-child(8),.order-table-wrap .table th:nth-child(8){width:9%!important;}
  .order-table-wrap .table td:nth-child(9),.order-table-wrap .table th:nth-child(9){width:15%!important;}
  .order-table-wrap .table td:nth-child(10),.order-table-wrap .table th:nth-child(10){width:14%!important;overflow:visible!important;white-space:normal!important;}
  .order-table-wrap .order-code,
  .order-table-wrap .nowrap,
  .order-table-wrap .order-type,
  .order-table-wrap .pay-method,
  .order-table-wrap .money-cell,
  .order-product-inline{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
  .order-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;white-space:normal!important;overflow:visible!important;min-width:0!important;max-width:100%!important;}
  .order-actions .linkbtn{font-size:13px!important;font-weight:950!important;line-height:1!important;padding:7px 6px!important;border-radius:9px!important;min-width:34px!important;white-space:nowrap!important;flex:0 0 auto!important;}
}
@media (min-width:761px) and (max-width:1380px){
  .content{padding-left:18px!important;padding-right:18px!important;}
  .order-table-wrap .table th,
  .order-table-wrap .table td{font-size:13px!important;padding:11px 6px!important;}
  .order-table-wrap .table th{font-size:10px!important;}
  .order-actions{gap:4px!important;}
  .order-actions .linkbtn{font-size:12px!important;padding:6px 5px!important;min-width:30px!important;}
  .order-table-wrap .badge{font-size:11px!important;padding:5px 7px!important;}
}
/* V72 dashboard KPI detail hotfix */
.smart-metric-popup .tablewrap{max-height:58vh;overflow:auto;border-radius:16px;border:1px solid #e7edf0}.smart-metric-popup .table{min-width:760px}.metric-note{margin:10px 0 14px}.text-danger{color:#b42318}.pill.orange{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}.pill.green{background:#ecfdf3;color:#087443;border:1px solid #b7ebc6}

/* V73 Product & inventory UX hotfix */
.product-filter-bar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:14px 0 16px;padding:12px;border:1px solid #e3eee8;border-radius:18px;background:#f8fffb}
.product-filter-bar .field{margin:0}.product-search-box{flex:1 1 320px}.product-category-box{flex:0 1 220px}.product-filter-bar input,.product-filter-bar select{height:44px}
.product-tablewrap .table{table-layout:auto}.product-admin-table th,.product-admin-table td{padding:12px 10px;vertical-align:middle}.product-admin-table th:nth-child(3),.product-admin-table td:nth-child(3){min-width:260px}.product-admin-table th:nth-child(5),.product-admin-table td:nth-child(5){min-width:130px}.product-admin-table th:nth-child(10),.product-admin-table td:nth-child(10){white-space:nowrap}.product-admin-table .line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}
.product-group{margin:18px 0 22px}.product-group-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;padding:0 2px}.product-group-title b{font-size:18px;color:#103d29}.product-group-title span{font-size:13px;color:#64748b;font-weight:700}
.member-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.member-product-card{position:relative;display:grid;grid-template-columns:68px 1fr 42px;align-items:center;gap:12px;border:1px solid #e3eee8;border-radius:18px;padding:14px;background:#fff;min-width:0;min-height:96px;box-shadow:0 8px 24px rgba(8,70,38,.04);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.member-product-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(8,70,38,.09);border-color:#bfe8cf}.member-product-card img{width:68px;height:68px;border-radius:16px;object-fit:cover;flex:0 0 auto;background:#f6faf8}.mp-info{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:6px;padding-right:2px}.mp-info b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#10251d;line-height:1.25;font-size:14px}.mp-info span{display:block;color:#087a34;font-weight:800;font-size:13px;line-height:1.25}.cart-icon-btn{width:38px;height:38px;border:0;border-radius:999px;background:#109447;color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 22px rgba(16,148,71,.22);transition:transform .16s ease,background .16s ease,box-shadow .16s ease;justify-self:end}.cart-icon-btn svg{width:19px;height:19px}.cart-icon-btn:hover{transform:scale(1.06);background:#087a34;box-shadow:0 14px 26px rgba(16,148,71,.28)}.cart-icon-btn:active{transform:scale(.96)}
@media(max-width:720px){.product-filter-bar{display:grid;grid-template-columns:1fr;align-items:stretch}.member-product-grid{grid-template-columns:1fr;gap:10px}.member-product-card{grid-template-columns:62px 1fr 38px;min-height:88px;padding:12px}.member-product-card img{width:62px;height:62px}.cart-icon-btn{width:36px;height:36px}.cart-icon-btn svg{width:18px;height:18px}.product-admin-table th:nth-child(3),.product-admin-table td:nth-child(3){min-width:0}}


/* V74 product quick edit popup */
.quick-product-edit{display:flex;flex-direction:column;gap:14px}.product-edit-head{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #dfeee5;border-radius:16px;background:#f8fffb}.product-edit-head img{width:64px;height:64px;border-radius:14px;object-fit:cover}.product-edit-head b{display:block;font-weight:900;color:#10251d}.product-edit-head small{display:block;color:#66758a;margin-top:4px}.quick-product-edit .tablewrap{max-height:320px;overflow:auto;border-radius:14px}.quick-product-edit .hint.success{border:1px solid #c8efd8;background:#f0fff6;border-radius:14px;padding:12px;color:#06753e;font-weight:700}.bulk-bar .btn{white-space:nowrap}@media(max-width:768px){.product-edit-head{align-items:flex-start}.quick-product-edit .formgrid{grid-template-columns:1fr}.quick-product-edit .tablewrap{max-height:260px}}

/* V77 - Promotion detail and participant UX */
.promo-new-customer-note{display:block;margin-top:7px;color:#087443;font-size:12px;line-height:1.45}
.promo-section .table td,
.promo-section .table th{vertical-align:middle;line-height:1.35}
.promo-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:flex-end;white-space:nowrap}
.promo-actions .btn,.promo-actions .linkbtn{min-height:32px;padding:7px 10px;border-radius:10px;font-size:13px}
.promo-participants-link{font-weight:800;color:#087a3a;background:#eefcf3;border:1px solid #bbf7d0;border-radius:999px;padding:7px 12px;white-space:nowrap}
.promo-detail .detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}
.promo-detail .detail-panel{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:14px 16px}
.promo-detail .detail-panel h4{margin:0 0 10px;color:#14392d}
.promo-detail .detail-panel p{margin:7px 0;line-height:1.45}
.promo-participant-summary{background:#ecfdf5;border:1px solid #bbf7d0;border-radius:14px;padding:12px 14px;margin-bottom:12px;color:#04723d}
@media(max-width:760px){.promo-detail .detail-grid{grid-template-columns:1fr}.promo-actions{justify-content:flex-start;flex-wrap:wrap}.promo-actions .btn,.promo-actions .linkbtn{font-size:12px;padding:7px 9px}.promo-section .row-actions{width:100%}.promo-section .promo-participants-link{white-space:normal;text-align:left}}

/* V78 Promotion picker UX */
.promo-smart-form{align-items:start}.promo-picker{background:#f8fffb;border:1px solid #dbeee5;border-radius:16px;padding:14px}.promo-picker-search{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:center}.promo-picker-search input{width:100%;height:42px;border:1px solid #dbe3ed;border-radius:12px;padding:0 12px;font-weight:700}.promo-picker-search span{font-size:12px;color:#64748b;white-space:nowrap}.promo-selected{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;min-height:34px}.promo-selected em{color:#94a3b8;font-style:normal;font-weight:700}.promo-product-chip{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid #dbeee5;border-radius:999px;padding:5px 8px;max-width:320px}.promo-product-chip img{width:24px;height:24px;border-radius:8px;object-fit:cover}.promo-product-chip b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.promo-product-chip button{border:0;background:#fee2e2;color:#b91c1c;border-radius:50%;width:22px;height:22px;font-weight:900;cursor:pointer}.promo-product-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;max-height:260px;overflow:auto;padding:4px}.promo-product-result{display:flex;align-items:center;gap:10px;text-align:left;background:#fff;border:1px solid #e5edf3;border-radius:14px;padding:8px;cursor:pointer;min-width:0}.promo-product-result:hover{border-color:#16a34a;box-shadow:0 8px 20px rgba(16,128,74,.08)}.promo-product-result img{width:42px;height:42px;border-radius:11px;object-fit:cover;flex:0 0 auto}.promo-product-result span{display:flex;flex-direction:column;min-width:0;flex:1}.promo-product-result b{font-size:12.5px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.promo-product-result small{font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.promo-product-result i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#149447;color:#fff;font-style:normal;font-weight:900}.promo-form-note{padding:12px 14px;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:14px;color:#065f46;font-weight:700}.empty.mini{padding:12px;font-size:13px}@media(max-width:760px){.promo-picker-search{grid-template-columns:1fr}.promo-product-results{grid-template-columns:1fr;max-height:220px}.promo-product-chip{max-width:100%}}
.progress-mini{display:inline-block;width:84px;height:8px;background:#e8f2ec;border-radius:99px;vertical-align:middle;margin-right:6px;overflow:hidden;border:1px solid #d7eadf}.progress-mini span{display:block;height:100%;background:#149648;border-radius:99px}.money-cell{white-space:nowrap;font-weight:800}.nowrap{white-space:nowrap}
/* V82 Project system UX */
.project-smart-form .eligibility-picker{border:1px solid #dbeee4;background:#f7fffa;border-radius:16px;padding:14px}
.project-smart-form .eligibility-picker .hint{font-size:13px;color:#64748b;margin-bottom:10px;font-weight:600}
.project-smart-form .eligibility-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.project-smart-form .eligibility-grid>b,.project-smart-form .eligibility-grid b{display:block;margin-bottom:8px;color:#0f3f2c}
.project-smart-form .checks{max-height:180px;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.project-smart-form .checks label{display:flex;gap:8px;align-items:center;padding:8px;border-radius:10px;background:#fff;min-height:38px}
.project-smart-form .member-search-select{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:8px}
.project-smart-form .member-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.project-smart-form .member-chips span{background:#e8fff2;color:#047857;border:1px solid #bbf7d0;border-radius:999px;padding:5px 8px;font-size:12px;font-weight:700}
.project-smart-form .member-search-results{max-height:190px;overflow:auto;margin-top:6px;display:grid;gap:6px}
.project-smart-form .member-search-results button{border:1px solid #e5e7eb;background:#fff;border-radius:12px;padding:8px;text-align:left;display:grid;grid-template-columns:32px 1fr;gap:6px;align-items:center}
.project-smart-form .member-search-results small{display:block;color:#64748b;margin-top:2px}
.order-detail-actions,.project-detail-actions{display:flex;gap:8px;flex-wrap:wrap}.modal .tablewrap{max-width:100%;overflow:auto}
@media(max-width:760px){.project-smart-form .eligibility-grid{grid-template-columns:1fr}.project-smart-form .checks{grid-template-columns:1fr}}

/* V76 project donation history */
.donation-progress{margin:10px 0 18px;height:10px}
.project-donation-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:10px 0 18px}
.project-donation-card{border:1px solid #dbe9df;background:#fff;border-radius:14px;padding:12px;display:grid;gap:8px;box-shadow:0 8px 22px rgba(20,83,45,.06)}
.project-donation-card>div{display:grid;gap:2px}
.project-donation-card strong{font-size:20px;color:#078342}
.project-donation-card b{color:#23352b}
.project-donation-card span,.project-donation-card small{color:#667085}
.project-donation-card em{justify-self:start;font-style:normal;background:#dcfce7;color:#047857;border:1px solid #bbf7d0;border-radius:999px;padding:4px 10px;font-weight:800;font-size:12px}
.project-donation-card p{margin:0;color:#334155}
@media(max-width:760px){.project-donation-list{grid-template-columns:1fr}.project-donation-card{border-radius:12px}.modal .donation-progress{margin-bottom:12px}}

/* V77 Honors redesign */
.honor-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 14px}
.honor-tabs button{border:1px solid #dce9e2;background:#fff;color:#17382c;border-radius:12px;padding:12px 10px;font-weight:900;cursor:pointer}
.honor-tabs button.active{background:#109447;color:#fff;border-color:#109447;box-shadow:0 10px 22px rgba(16,148,71,.18)}
.honors-board .section-head,.honors-manual .section-head,.honor-admin-list .section-head,.honor-history .section-head{align-items:center}
.honor-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.honor-column{border:1px solid #dfeee5;background:#fbfefc;border-radius:16px;padding:14px;min-width:0}
.honor-column h3{margin:0 0 12px;color:#123b2c;font-size:16px}
.honor-ranks{display:grid;gap:10px}
.honor-rank-card,.honor-manual-card{background:#fff;border:1px solid #e3ece7;border-radius:14px;padding:12px;box-shadow:0 8px 20px rgba(15,80,45,.05);min-width:0}
.honor-rank-card span,.honor-manual-card span{display:inline-flex;width:max-content;background:#ecfdf5;color:#087443;border:1px solid #bbf7d0;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900}
.honor-rank-card b,.honor-manual-card b{display:block;margin-top:8px;color:#142d24;line-height:1.25}
.honor-rank-card small,.honor-manual-card small{display:block;margin-top:5px;color:#667085;line-height:1.35}
.honor-card-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.honor-card-actions .linkbtn{font-size:12px;padding:7px 9px;border-radius:9px}
.honor-manual-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.honor-manual-card{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.honor-detail.redesigned{display:grid;gap:14px}
.honor-detail-head{display:flex;gap:14px;align-items:center;background:#f8fffb;border:1px solid #dbeee4;border-radius:16px;padding:14px}
.honor-detail-head h3{margin:4px 0;color:#102d23}
.honor-detail-head p{margin:0;color:#667085}
.honor-detail-head>div:last-child>span{font-weight:900;color:#087443}
.honor-form small{display:block;margin-top:6px;color:#667085;font-weight:800}
@media(max-width:1180px){.honor-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.honor-tabs{grid-template-columns:repeat(2,1fr)}.honor-columns{grid-template-columns:1fr}.honor-manual-list{grid-template-columns:1fr}.honor-manual-card{display:grid}.honor-detail-head{align-items:flex-start}.honor-card-actions .linkbtn{flex:1 1 auto}}

/* V78 overview dashboard */
.overview-dashboard{display:grid;gap:16px}
.overview-hero{border:1px solid #dfeee5;background:linear-gradient(135deg,#ffffff,#f3fff7);border-radius:22px;padding:22px;box-shadow:0 12px 32px rgba(15,80,45,.06)}
.overview-hero.member{background:linear-gradient(135deg,#0b7a44,#16a34a);color:#fff}
.overview-hero span{display:inline-flex;background:#ecfdf5;color:#087443;border:1px solid #bbf7d0;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:950;text-transform:uppercase}
.overview-hero.member span{background:rgba(255,255,255,.16);color:#fff;border-color:rgba(255,255,255,.28)}
.overview-hero h2{font-size:28px;line-height:1.15;margin:8px 0 6px;letter-spacing:0;color:#10251d}
.overview-hero.member h2,.overview-hero.member p{color:#fff}
.overview-hero p{margin:0;color:#667085;font-size:14px;font-weight:700;max-width:880px}
.overview-date-filter{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e1eee6;background:#fff;border-radius:18px;padding:12px;box-shadow:0 10px 26px rgba(15,23,42,.04)}
.overview-filter-pills{display:flex;gap:8px;flex-wrap:wrap}
.overview-filter-pills button{border:1px solid #dcebe2;background:#fff;color:#344054;border-radius:999px;padding:9px 12px;font-size:13px;font-weight:900;cursor:pointer}
.overview-filter-pills button.active{background:#0f9d58;color:#fff;border-color:#0f9d58}
.overview-custom-range{display:flex;gap:8px;align-items:center}
.overview-custom-range input{height:38px;border:1px solid #dbe4ec;border-radius:12px;padding:0 10px;font-weight:800;color:#344054;background:#fcfcfd}
.overview-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.overview-kpi-card{border:1px solid #e2eee6;background:#fff;border-radius:18px;padding:15px;text-align:left;display:grid;grid-template-columns:34px minmax(0,1fr);gap:4px 10px;box-shadow:0 10px 24px rgba(15,23,42,.045);cursor:pointer;min-height:128px;align-content:start}
.overview-kpi-card i{width:34px;height:34px;border-radius:12px;background:#ecfdf5;color:#0f9d58;display:grid;place-items:center;grid-row:1/4}
.overview-kpi-card i svg{width:21px;height:21px}
.overview-kpi-card.orange i{background:#fff7ed;color:#f97316}.overview-kpi-card.red i{background:#fef2f2;color:#dc2626}
.overview-kpi-card span{font-size:13px;font-weight:900;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overview-kpi-card b{font-size:25px;line-height:1.1;color:#087443;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overview-kpi-card.orange b{color:#c05621}.overview-kpi-card.red b{color:#dc2626}
.overview-kpi-card small,.overview-kpi-card em{font-size:12px;color:#667085;font-style:normal;font-weight:750;line-height:1.35}
.overview-kpi-card em{color:#087443}
.overview-section{border:1px solid #e2eee6;background:#fff;border-radius:22px;padding:18px;box-shadow:0 12px 32px rgba(15,23,42,.045)}
.overview-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.overview-section-head h3{margin:0 0 4px;font-size:19px;line-height:1.2;color:#10251d;letter-spacing:0}
.overview-section-head p{margin:0;color:#667085;font-size:13px;font-weight:700}
.overview-alert-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.overview-alert-card{border:1px solid #e2eee6;border-radius:16px;padding:14px;background:#fbfffc;display:grid;gap:8px}
.overview-alert-card.warn{background:#fffaf0;border-color:#fed7aa}.overview-alert-card.danger{background:#fff5f5;border-color:#fecaca}.overview-alert-card.info{background:#eff6ff;border-color:#bfdbfe}.overview-alert-card.good{background:#f0fff6;border-color:#bbf7d0}
.overview-alert-card b{font-size:15px;color:#1f2937}.overview-alert-card p{margin:0;color:#667085;font-size:13px;line-height:1.4}.overview-alert-card button{justify-self:start;border:0;background:#0f9d58;color:#fff;border-radius:10px;padding:8px 11px;font-weight:900;cursor:pointer}
.overview-alert-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.overview-alert-badge{font-size:11px;font-weight:900;padding:3px 8px;border-radius:999px;white-space:nowrap}
.overview-alert-badge.danger{background:#fecaca;color:#991b1b}.overview-alert-badge.warn{background:#fed7aa;color:#9a3412}.overview-alert-badge.info{background:#bfdbfe;color:#1e40af}.overview-alert-badge.good{background:#bbf7d0;color:#065f46}
.task-detail-modal{max-height:60vh;overflow:auto}
.overview-stable{border:1px dashed #bbf7d0;background:#f0fff6;color:#087443;border-radius:16px;padding:16px;font-weight:900;text-align:center}
.overview-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.overview-action-card{border:1px solid #e2eee6;background:#fff;border-radius:16px;padding:14px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:3px 10px;text-align:left;cursor:pointer;min-height:86px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.overview-action-card:hover{border-color:#abefc6;transform:translateY(-1px)}
.overview-action-card i{grid-row:1/3;width:38px;height:38px;border-radius:13px;background:#ecfdf5;color:#0f9d58;display:grid;place-items:center}
.overview-action-card.primary i{background:#fff7ed;color:#f97316}
.overview-action-card i svg{width:24px;height:24px}
.overview-action-card b{font-size:15px;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overview-action-card span{font-size:12px;color:#667085;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overview-ranking-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.overview-ranking-card{border:1px solid #e2eee6;background:#fff;border-radius:16px;padding:14px;min-width:0}
.overview-ranking-card h3{font-size:16px;margin:0 0 10px;color:#10251d}
.overview-ranking-card p{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:8px;align-items:center;margin:0;padding:9px 0;border-top:1px solid #eef4f0}
.overview-ranking-card p:first-child{border-top:0}
.overview-ranking-card em{width:26px;height:26px;border-radius:999px;background:#ecfdf5;color:#087443;display:grid;place-items:center;font-style:normal;font-weight:950;font-size:12px}
.overview-ranking-card .ranking-more{display:block;width:100%;text-align:center;margin-top:10px;padding-top:10px;border-top:1px solid #eef4f0;font-size:13px}
.overview-ai-section{background:linear-gradient(180deg,#fff,#f6fffa);border:1px solid #dfeee5;box-shadow:0 12px 32px rgba(15,23,42,.045)}
.overview-ai-section .overview-section-head h3{color:#10251d;font-size:19px;display:flex;align-items:center;gap:8px}
.overview-ai-section .overview-section-head h3 svg{width:20px;height:20px;color:#0f9d58;flex:none}
.overview-ai-section .overview-section-head p{color:#667085}
.overview-ai-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.overview-ai-card{background:#fff;border:1px solid #e2eee6;border-radius:16px;padding:16px;box-shadow:0 8px 22px rgba(15,23,42,.04);transition:.15s transform,.15s box-shadow,.15s border-color}
.overview-ai-card:hover{border-color:#abefc6;transform:translateY(-1px);box-shadow:0 12px 28px rgba(15,23,42,.07)}
.overview-ai-card i{font-style:normal;display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:12px;background:#ecfdf5;color:#0f9d58;margin-bottom:10px}
.overview-ai-card i svg{width:20px;height:20px}
.overview-ai-card b{display:block;color:#10251d;font-size:15px;margin-bottom:6px}
.overview-ai-card p{margin:0;color:#667085;font-size:13px;line-height:1.55;font-weight:600}
.overview-ai-card.warn i{background:#fff7ed;color:#c05621}
.overview-ai-card.down i{background:#fee2e2;color:#991b1b}
.overview-ai-card.up i{background:#ecfdf5;color:#0f9d58}
@media(max-width:560px){.overview-ai-grid{grid-template-columns:1fr}}
.overview-ranking-card span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#334155;font-weight:850}
.overview-ranking-card b{font-size:13px;color:#087443;white-space:nowrap}
.overview-no-data{color:#667085;font-weight:800;padding:10px 0}
.overview-log-list{display:grid;gap:8px}
.overview-log-list div{display:grid;grid-template-columns:180px minmax(0,1fr) 150px;gap:10px;border:1px solid #eef4f0;border-radius:14px;padding:10px;background:#fbfffc}
.overview-log-list b,.overview-log-list span,.overview-log-list small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overview-log-list b{color:#10251d}.overview-log-list span,.overview-log-list small{color:#667085}
.overview-skeleton{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.overview-skeleton i{height:124px;border-radius:18px;background:linear-gradient(90deg,#eef4f0,#fff,#eef4f0);background-size:240% 100%;animation:ecoSkeleton 1.1s linear infinite}
@media(max-width:1180px){.overview-kpi-grid,.overview-alert-grid,.overview-ranking-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.overview-date-filter{display:grid}.overview-custom-range{justify-content:flex-start}.overview-log-list div{grid-template-columns:1fr}}
@media(max-width:760px){.overview-dashboard{gap:12px}.overview-hero,.overview-section{border-radius:18px;padding:15px}.overview-hero h2{font-size:24px}.overview-date-filter{border-radius:16px;padding:10px}.overview-filter-pills{display:grid;grid-template-columns:repeat(2,1fr)}.overview-filter-pills button{padding:10px 8px}.overview-custom-range{display:grid;grid-template-columns:1fr 1fr}.overview-custom-range .btn{grid-column:1/-1;width:100%}.overview-kpi-grid,.overview-alert-grid,.overview-ranking-grid,.overview-skeleton{grid-template-columns:1fr}.overview-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.overview-action-card{grid-template-columns:1fr;min-height:104px}.overview-action-card i{grid-row:auto}.overview-kpi-card{min-height:112px}.overview-kpi-card b{font-size:22px}.overview-section-head{display:block}.overview-log-list div{grid-template-columns:1fr}.overview-ranking-card p{grid-template-columns:26px minmax(0,1fr)}.overview-ranking-card b{grid-column:2}}

/* V79 compact overview filters and KPI compare text */
.overview-date-filter{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}
.overview-filter-pills{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.overview-filter-pills::-webkit-scrollbar{display:none}
.overview-filter-pills button{flex:0 0 auto!important;white-space:nowrap!important;min-width:max-content!important}
.overview-kpi-card small,.overview-kpi-card em{grid-column:2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.overview-kpi-card em{display:block!important;margin-top:2px!important}
@media(max-width:760px){
 .overview-date-filter{grid-template-columns:1fr!important;padding:8px!important}
 .overview-filter-pills{width:100%!important;padding-bottom:2px!important}
 .overview-filter-pills button{height:38px!important;padding:0 13px!important;font-size:13px!important;border-radius:999px!important}
 .overview-custom-range{display:none!important}
 .overview-filter-pills:has(button.active:last-child)+.overview-custom-range{display:grid!important;grid-template-columns:1fr 1fr auto!important;gap:8px!important;margin-top:8px!important}
 .overview-custom-range input{height:36px!important;min-width:0!important;font-size:12px!important;padding:0 8px!important}
 .overview-custom-range .btn{grid-column:auto!important;width:auto!important;height:36px!important;padding:0 10px!important;font-size:12px!important}
 .overview-kpi-card{grid-template-columns:44px minmax(0,1fr)!important;gap:5px 10px!important}
 .overview-kpi-card i{grid-row:1/5!important}
 .overview-kpi-card small,.overview-kpi-card em{grid-column:2!important;font-size:13px!important;line-height:1.35!important;white-space:nowrap!important;max-width:100%!important}
}

/* V80 focused honors */
.honors-focused .section-head{align-items:center}
.honor-create-btn{white-space:nowrap!important;min-width:max-content!important}
.honor-focused-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.honor-focused-block{border:1px solid #dfeee5;background:#fbfffc;border-radius:18px;padding:14px;min-width:0}
.honor-focused-block h3{font-size:18px!important;line-height:1.2;margin:0 0 12px;color:#103d2d;letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.honor-focused-list{display:grid;gap:10px}
.honor-person-card{border:1px solid #e3ece7;background:#fff;border-radius:16px;padding:12px;display:grid;gap:10px;box-shadow:0 8px 20px rgba(15,80,45,.05);cursor:pointer;min-width:0}
.honor-rank-badge{justify-self:start;background:#ecfdf5;color:#087443;border:1px solid #bbf7d0;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:950;white-space:nowrap}
.honor-person-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;min-width:0}
.honor-avatar{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#0f9d58,#16a34a);color:#fff;display:grid;place-items:center;overflow:hidden;font-weight:950;flex:none}
.honor-avatar img,.honor-avatar span{width:100%;height:100%;display:grid;place-items:center;object-fit:cover}
.honor-person-row b{display:block;font-size:16px;color:#10251d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25}
.honor-person-row p{margin:4px 0 0;color:#667085;font-weight:800;font-size:13px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.honor-person-card>button{justify-self:start;border:0;background:#ecfdf5;color:#087443;border-radius:10px;padding:8px 12px;font-weight:950;font-size:13px;white-space:nowrap;cursor:pointer}
.honor-empty-focused{border-style:dashed;text-align:center;color:#667085;font-weight:900}
.honor-admin-list{display:none!important}
.focused-detail .metric-grid b{overflow-wrap:anywhere}
.honor-admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #eef2f7}
.honor-admin-actions .btn{white-space:nowrap;min-width:max-content}
.honor-detail-head.focused h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.honor-detail-head.focused p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:1180px){.honor-focused-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .honor-tabs-compact{position:sticky;top:68px;z-index:3;background:#f7faf8;padding:6px 0;margin:0 -2px 10px;display:flex!important;overflow-x:auto;gap:8px;scrollbar-width:none}
 .honor-tabs-compact::-webkit-scrollbar{display:none}
 .honor-tabs-compact button{flex:0 0 auto;min-width:92px;height:42px;padding:0 14px!important;white-space:nowrap}
 .honors-focused .section-head{display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important}
 .honors-focused .section-head h3{font-size:22px!important}
 .honors-focused .section-head p{font-size:13px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .honor-create-btn{height:40px!important;padding:0 12px!important;font-size:13px!important;border-radius:12px!important}
 .honor-focused-grid{grid-template-columns:1fr;gap:12px}
 .honor-focused-block{padding:12px;border-radius:16px}
 .honor-focused-block h3{font-size:21px!important;margin-bottom:10px}
 .honor-person-card{padding:12px;gap:9px}
 .honor-person-row{grid-template-columns:38px minmax(0,1fr)}
 .honor-avatar{width:38px;height:38px;border-radius:12px}
 .honor-person-row b{font-size:16px}
 .honor-person-row p{font-size:13px}
 .honor-person-card>button{width:auto;justify-self:end;padding:8px 12px}
 .honor-admin-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .honor-admin-actions .btn{width:100%;min-width:0}
}

/* V81 member overview and CRM */
.member-overview-v81,.crm-page{display:grid;gap:16px}
.member-welcome{border:1px solid #dbeee4;background:linear-gradient(135deg,#0b7a44,#14a95b);color:#fff;border-radius:22px;padding:22px;box-shadow:0 16px 38px rgba(15,80,45,.14)}
.member-welcome span,.overview-hero span{display:inline-flex;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:950;text-transform:uppercase}
.member-welcome span{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28)}
.member-welcome h2{margin:8px 0 6px;font-size:28px;line-height:1.15;color:#fff}
.member-welcome p{margin:0;max-width:780px;font-weight:750;color:rgba(255,255,255,.9)}
.member-rank-panel{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:14px;align-items:center;border:1px solid #dbeee4;background:#fff;border-radius:22px;padding:18px;box-shadow:0 12px 30px rgba(15,80,45,.055)}
.rank-copy span{font-size:12px;text-transform:uppercase;font-weight:950;color:#087443}.rank-copy h3{margin:5px 0;font-size:25px;color:#10251d}.rank-copy p{margin:5px 0;color:#667085;font-weight:800}
.rank-meter{border:1px solid #e2eee6;background:#fbfffc;border-radius:18px;padding:14px}.rank-meter b{font-size:30px;color:#087443}.rank-meter small{display:block;color:#667085;font-weight:850;margin-top:7px}
.rank-meter .progress,.member-task .task-progress{height:11px;border-radius:999px;background:#e6f4ea;overflow:hidden;margin:10px 0}.rank-meter .progress i,.member-task .task-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0f9d58,#22c55e)}
.member-kpi-grid,.crm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.member-kpi,.crm-kpis div{border:1px solid #e2eee6;background:#fff;border-radius:18px;padding:14px;text-align:left;box-shadow:0 10px 24px rgba(15,23,42,.045);min-width:0}
.member-kpi{display:grid;grid-template-columns:36px minmax(0,1fr);gap:4px 10px;cursor:pointer}
.member-kpi i{grid-row:1/4;width:36px;height:36px;border-radius:13px;background:#ecfdf5;color:#0f9d58;display:grid;place-items:center}.member-kpi svg{width:22px;height:22px}
.member-kpi span,.crm-kpis span{font-size:12px;color:#667085;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-kpi b,.crm-kpis b{font-size:23px;color:#087443;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-kpi small{font-size:12px;color:#667085;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-section{border:1px solid #e2eee6;background:#fff;border-radius:22px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.045)}
.member-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.member-task{border:1px solid #e2eee6;background:#fbfffc;border-radius:16px;padding:14px;display:grid;gap:8px}.member-task.done{background:#f0fff6;border-color:#bbf7d0}.member-task.doing{background:#fffaf0;border-color:#fed7aa}
.member-task b{display:block;color:#10251d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-task p{margin:0;color:#667085;font-size:13px;line-height:1.35}.member-task small{color:#087443;font-weight:850}.member-task button,.member-tip-list button,.crm-actions button,.crm-actions a{border:0;border-radius:10px;background:#0f9d58;color:#fff;padding:9px 11px;font-weight:900;text-decoration:none;cursor:pointer;text-align:center}
.member-tip-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.member-tip-list button{text-align:left;background:#ecfdf5;color:#087443;border:1px solid #bbf7d0}
.crm-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 190px 220px auto auto;gap:10px;border:1px solid #e2eee6;background:#fff;border-radius:18px;padding:12px}.crm-toolbar input,.crm-toolbar select{height:42px;border:1px solid #dbe4ec;border-radius:12px;padding:0 12px;font-weight:800;background:#fcfcfd;min-width:0}
.crm-card-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.crm-card{border:1px solid #e2eee6;background:#fff;border-radius:18px;padding:14px;box-shadow:0 10px 24px rgba(15,23,42,.045);min-width:0}.crm-card>div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.crm-card b{font-size:16px;color:#10251d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-card span,.crm-card small{display:block;color:#667085;font-weight:800}.crm-card p{margin:8px 0;color:#334155;font-weight:850;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.crm-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}.crm-actions a,.crm-actions button{font-size:12px;padding:8px 6px}.crm-actions button:nth-child(2),.crm-actions button:nth-child(3){background:#f3f7f4;color:#10251d;border:1px solid #dbeee4}
.crm-detail h3{margin:12px 0 8px;color:#10251d}.crm-detail p{margin:7px 0;color:#334155;font-weight:750}
@media(max-width:1180px){.member-kpi-grid,.crm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.member-task-grid,.crm-card-list{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-toolbar{grid-template-columns:1fr 1fr auto auto}.crm-toolbar select:nth-of-type(2){grid-column:1/-1}}
@media(max-width:760px){.member-welcome,.member-rank-panel,.member-section{border-radius:18px;padding:15px}.member-welcome h2{font-size:23px}.member-rank-panel{grid-template-columns:1fr}.member-kpi-grid,.crm-kpis,.member-task-grid,.member-tip-list,.crm-card-list{grid-template-columns:1fr}.member-kpi{min-height:96px}.crm-toolbar{grid-template-columns:1fr}.crm-toolbar .btn{width:100%}.crm-card>div:first-child{display:block}.crm-actions{grid-template-columns:repeat(2,1fr)}.rank-copy h3{font-size:22px}.rank-meter b{font-size:26px}}

/* V82 compact CRM cards and actions */
.crm-page{gap:14px}
.crm-page .overview-hero{padding:18px 20px!important;border-radius:20px!important}
.crm-page .overview-hero h2{font-size:24px!important;margin:7px 0 4px!important;line-height:1.18!important}
.crm-page .overview-hero p{font-size:13px!important;line-height:1.45!important}
.crm-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.crm-kpis div{min-height:68px;padding:12px 14px!important;display:grid;align-content:center;gap:4px}
.crm-kpis span{display:block!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.crm-kpis b{display:block!important;font-size:24px!important;line-height:1!important;color:#087443!important}
.crm-toolbar{padding:10px!important;gap:8px!important;border-radius:16px!important;align-items:center}
.crm-toolbar input,.crm-toolbar select{height:38px!important;border-radius:11px!important;font-size:13px!important}
.crm-toolbar .btn{height:38px!important;min-height:38px!important;padding:0 14px!important;border-radius:11px!important;font-size:13px!important;white-space:nowrap!important}
.crm-card-list{grid-template-columns:repeat(3,minmax(280px,1fr));gap:10px}
.crm-card{padding:12px!important;border-radius:16px!important;display:grid;gap:7px;align-content:start}
.crm-card>div:first-child{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important}
.crm-card b{font-size:15px!important;line-height:1.25!important;max-width:100%}
.crm-card>div:first-child span{font-size:13px!important;white-space:nowrap!important;color:#536173!important}
.crm-card p{margin:0!important;font-size:13px!important;line-height:1.35!important;-webkit-line-clamp:1!important;min-height:18px}
.crm-card small{font-size:12px!important;line-height:1.28!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.crm-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin-top:4px!important}
.crm-actions a,.crm-actions button{height:32px!important;min-height:32px!important;padding:0 6px!important;border-radius:10px!important;font-size:12px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;box-shadow:none!important}
.crm-actions a{background:#0f9d58!important;color:#fff!important}
.crm-actions button{background:#f5faf7!important;color:#10251d!important;border:1px solid #dbeee4!important}
.crm-actions button:last-child{background:#0f9d58!important;color:#fff!important;border-color:#0f9d58!important}
@media(max-width:1180px){.crm-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-card-list{grid-template-columns:repeat(2,minmax(260px,1fr))}.crm-toolbar{grid-template-columns:minmax(180px,1fr) minmax(150px,.5fr) minmax(170px,.6fr) auto auto!important}}
@media(max-width:760px){.crm-page{gap:10px}.crm-page .overview-hero{padding:14px!important;border-radius:18px!important}.crm-page .overview-hero h2{font-size:22px!important}.crm-kpis{display:flex!important;gap:8px!important;overflow-x:auto!important;scrollbar-width:none}.crm-kpis::-webkit-scrollbar{display:none}.crm-kpis div{flex:0 0 132px;min-height:62px;padding:10px 12px!important}.crm-kpis b{font-size:21px!important}.crm-toolbar{grid-template-columns:1fr 1fr!important}.crm-toolbar input{grid-column:1/-1}.crm-toolbar select{min-width:0}.crm-toolbar .btn{width:100%!important;padding:0 10px!important}.crm-card-list{grid-template-columns:1fr!important;gap:9px}.crm-card{padding:11px!important;border-radius:15px!important}.crm-card>div:first-child{grid-template-columns:minmax(0,1fr) auto!important}.crm-card b{font-size:15px!important}.crm-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}.crm-actions a,.crm-actions button{height:30px!important;font-size:11px!important;padding:0 4px!important;border-radius:9px!important}}

/* V83 CRM richer cards + icon actions */
.crm-card .crm-main{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:start!important}
.crm-card .crm-main>div{min-width:0}.crm-card .crm-main em{font-style:normal;border:1px solid #bbf7d0;background:#ecfdf5;color:#087443;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:950;white-space:nowrap}
.crm-info-grid{display:grid;grid-template-columns:74px minmax(0,1fr) 64px minmax(0,1fr);gap:4px 8px;border:1px solid #eef4f0;background:#fbfffc;border-radius:12px;padding:8px}
.crm-info-grid span{font-size:10px!important;line-height:1.2!important;text-transform:uppercase;color:#7a8794!important;font-weight:950!important;white-space:nowrap!important}
.crm-info-grid b{font-size:12px!important;line-height:1.25!important;color:#1f2937!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.crm-actions.icon-actions a,.crm-actions.icon-actions button{gap:4px!important}
.crm-actions.icon-actions svg{width:14px!important;height:14px!important;flex:none}
.crm-note-head{display:grid;gap:4px;border:1px solid #e2eee6;background:#fbfffc;border-radius:14px;padding:12px;margin-bottom:10px}.crm-note-head b{font-size:17px;color:#10251d}.crm-note-head span,.crm-note-head small{color:#667085;font-weight:850}
.crm-note-modal .detailbox{margin-bottom:12px;max-height:110px;overflow:auto}
@media(max-width:760px){.crm-info-grid{grid-template-columns:72px minmax(0,1fr);gap:3px 8px;padding:7px}.crm-info-grid span{font-size:9px!important}.crm-info-grid b{font-size:12px!important}.crm-card p{font-size:12px!important}.crm-card small{font-size:11px!important}.crm-actions.icon-actions a,.crm-actions.icon-actions button{height:38px!important;display:grid!important;place-items:center!important;gap:2px!important;padding:3px 2px!important}.crm-actions.icon-actions svg{width:17px!important;height:17px!important}.crm-actions.icon-actions span{font-size:10px!important;line-height:1!important;color:inherit!important;font-weight:900!important;display:block!important}.crm-card .crm-main em{font-size:10px;padding:4px 7px}}

/* V84 compact member tasks */
.tasks-compact-section{padding:16px!important}
.tasks-compact-section .overview-section-head{margin-bottom:10px!important}
.tasks-compact-section .overview-section-head h3{font-size:20px!important}
.tasks-compact-section .overview-section-head p{font-size:13px!important;line-height:1.35!important}
.member-task-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important}
.member-task.compact{padding:11px!important;border-radius:14px!important;gap:7px!important;background:#fff!important}
.member-task.compact.done{background:#f3fff7!important}
.task-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.task-top b{font-size:14px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.task-top span{border-radius:999px;background:#ecfdf5;color:#087443;border:1px solid #bbf7d0;padding:3px 7px;font-size:10px;font-weight:950;white-space:nowrap}
.member-task.compact p{font-size:12px!important;line-height:1.3!important;margin:0!important;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.task-line{height:6px;border-radius:999px;background:#e6f4ea;overflow:hidden}
.task-line i{display:block;height:100%;border-radius:999px;background:#0f9d58}
.task-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.task-bottom small{font-size:11px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#087443;font-weight:850}
.task-bottom button{height:28px!important;min-width:48px!important;padding:0 10px!important;border-radius:9px!important;font-size:12px!important;line-height:1!important}
@media(max-width:1180px){.member-task-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.tasks-compact-section{padding:14px!important}.tasks-compact-section .overview-section-head h3{font-size:22px!important}.tasks-compact-section .overview-section-head p{font-size:13px!important}.member-task-grid.compact{grid-template-columns:1fr!important;gap:8px!important}.member-task.compact{padding:10px 11px!important;min-height:0!important}.task-top b{font-size:15px!important}.task-bottom button{height:30px!important}.member-overview-v81{gap:12px!important}}

/* V85 order dashboard */
.orders-v85{display:grid;gap:14px}
.orders-hero{border:1px solid #dfeee5;background:linear-gradient(135deg,#fff,#f3fff7);border-radius:22px;padding:18px 20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;box-shadow:0 12px 32px rgba(15,80,45,.06)}
.orders-hero span{display:inline-flex;background:#ecfdf5;color:#087443;border:1px solid #bbf7d0;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:950;text-transform:uppercase}
.orders-hero h2{font-size:25px;line-height:1.15;margin:7px 0 5px;color:#10251d}.orders-hero p{margin:0;color:#667085;font-size:13px;font-weight:750;line-height:1.45}.orders-hero .btn{height:42px;white-space:nowrap}
.order-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.order-kpi{border:1px solid #e2eee6;background:#fff;border-radius:16px;padding:13px 14px;box-shadow:0 10px 24px rgba(15,23,42,.04);min-width:0}.order-kpi span{display:block;font-size:12px;color:#667085;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-kpi b{display:block;margin:5px 0 2px;color:#087443;font-size:22px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-kpi small{display:block;color:#667085;font-size:11px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-kpi.warn b{color:#c05621}.order-kpi.red b{color:#dc2626}
.order-toolbar-v85{border:1px solid #e2eee6;background:#fff;border-radius:18px;padding:10px;display:grid;grid-template-columns:minmax(260px,1fr) 170px 170px 170px auto auto;gap:8px;align-items:center}.order-searchbox{height:40px;border:1px solid #dbe4ec;border-radius:12px;background:#fcfcfd;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;padding:0 10px}.order-searchbox svg{width:18px;height:18px;color:#087443}.order-searchbox input{border:0;background:transparent;outline:0;font:inherit;font-size:13px;font-weight:800;min-width:0}.order-toolbar-v85 select{height:40px;border:1px solid #dbe4ec;border-radius:12px;background:#fcfcfd;padding:0 10px;font:inherit;font-size:13px;font-weight:800;min-width:0}.order-toolbar-v85 .btn{height:40px;min-height:40px;padding:0 13px;border-radius:12px;font-size:13px;white-space:nowrap}
.order-status-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.order-status-strip div{border:1px solid #e2eee6;background:#fbfffc;border-radius:14px;padding:10px 12px}.order-status-strip span{display:block;color:#667085;font-size:11px;font-weight:950;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-status-strip b{display:block;margin-top:4px;color:#10251d;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-card-grid{display:grid;grid-template-columns:repeat(3,minmax(300px,1fr));gap:10px}.order-card-v85{border:1px solid #e2eee6;background:#fff;border-radius:18px;padding:13px;box-shadow:0 10px 24px rgba(15,23,42,.045);display:grid;gap:9px;min-width:0}.order-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}.order-card-head b{display:block;color:#10251d;font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-card-head span{display:block;margin-top:3px;color:#334155;font-size:13px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-card-head em{font-style:normal;border-radius:999px;border:1px solid #bbf7d0;background:#ecfdf5;color:#087443;padding:4px 8px;font-size:11px;font-weight:950;white-space:nowrap}.order-card-head em.pending{background:#fff7ed;border-color:#fed7aa;color:#b45309}.order-card-head em.cancelled,.order-card-head em.rejected{background:#fef2f2;border-color:#fecaca;color:#dc2626}.order-card-head em.draft{background:#eef2ff;border-color:#c7d2fe;color:#4338ca}
.order-card-info{display:grid;grid-template-columns:70px minmax(0,1fr) 72px minmax(0,1fr);gap:4px 8px;border:1px solid #eef4f0;background:#fbfffc;border-radius:12px;padding:8px}.order-card-info span{font-size:10px;text-transform:uppercase;color:#7a8794;font-weight:950;white-space:nowrap}.order-card-info b{font-size:12px;color:#1f2937;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-card-v85 p{margin:0;color:#536173;font-size:12px;font-weight:800;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-card-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.order-card-actions button{border:1px solid #dbeee4;background:#f5faf7;color:#10251d;border-radius:10px;height:32px;font-size:12px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.order-card-actions button.ok,.order-card-actions button:last-child:not(.red){background:#0f9d58;color:#fff;border-color:#0f9d58}.order-card-actions button.red{background:#fef2f2;color:#dc2626;border-color:#fecaca}
@media(max-width:1280px){.order-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.order-toolbar-v85{grid-template-columns:minmax(220px,1fr) repeat(3,minmax(140px,.5fr)) auto auto}.order-card-grid{grid-template-columns:repeat(2,minmax(280px,1fr))}}
@media(max-width:760px){.orders-v85{gap:10px}.orders-hero{grid-template-columns:1fr;padding:14px;border-radius:18px}.orders-hero h2{font-size:22px}.orders-hero .btn{width:100%;height:38px}.order-kpi-grid{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}.order-kpi-grid::-webkit-scrollbar{display:none}.order-kpi{flex:0 0 138px;padding:10px 12px}.order-kpi b{font-size:20px}.order-toolbar-v85{grid-template-columns:1fr 1fr;padding:9px;border-radius:16px}.order-searchbox{grid-column:1/-1;height:38px}.order-toolbar-v85 select,.order-toolbar-v85 .btn{height:36px;min-height:36px;font-size:12px;padding:0 9px}.order-status-strip{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}.order-status-strip::-webkit-scrollbar{display:none}.order-status-strip div{flex:0 0 126px;padding:9px 10px}.order-card-grid{grid-template-columns:1fr;gap:9px}.order-card-v85{padding:11px;border-radius:16px}.order-card-info{grid-template-columns:64px minmax(0,1fr);gap:3px 8px;padding:7px}.order-card-info span{font-size:9px}.order-card-info b{font-size:12px}.order-card-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.order-card-actions button{height:31px;font-size:11px;padding:0 4px;border-radius:9px}.order-card-v85 p{font-size:12px}}

/* V86 order visual polish */
.orders-v85{gap:16px!important}
.orders-hero{padding:20px 22px!important;border-radius:24px!important}
.orders-hero h2{font-size:24px!important;font-weight:950!important;letter-spacing:0!important}
.orders-hero p{font-size:13.5px!important;color:#5f6f82!important;font-weight:700!important;max-width:760px}
.order-kpi{padding:15px 16px!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#fbfffc)!important}
.order-kpi span{font-size:12px!important;color:#667085!important;text-transform:none!important;letter-spacing:0!important}
.order-kpi b{font-size:22px!important;margin:7px 0 5px!important;font-weight:900!important;letter-spacing:0!important}
.order-kpi small{font-size:12px!important;color:#667085!important;font-weight:700!important}
.order-toolbar-v85{padding:12px!important;border-radius:20px!important;background:#ffffff!important;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.order-searchbox,.order-toolbar-v85 select{height:42px!important;border-radius:13px!important}
.order-searchbox input,.order-toolbar-v85 select{font-size:13px!important;font-weight:750!important;color:#334155!important}
.order-toolbar-v85 .btn{height:42px!important;min-height:42px!important;border-radius:13px!important;font-size:13px!important;font-weight:900!important}
.order-status-strip{gap:12px!important}
.order-status-strip div{padding:12px 14px!important;border-radius:16px!important;background:#fcfffd!important}
.order-status-strip span{font-size:11px!important;color:#778397!important;letter-spacing:.02em!important}
.order-status-strip b{font-size:18px!important;font-weight:900!important;color:#10251d!important}
.order-card-grid{gap:14px!important}
.order-card-v85{padding:16px!important;border-radius:20px!important;gap:12px!important;background:#fff!important;box-shadow:0 10px 26px rgba(15,23,42,.045)!important}
.order-card-head{align-items:center!important}
.order-card-head b{font-size:16px!important;font-weight:900!important;color:#0f1f18!important;letter-spacing:0!important}
.order-card-head span{font-size:13px!important;font-weight:700!important;color:#475569!important}
.order-card-head em{font-size:11px!important;font-weight:900!important;padding:5px 9px!important}
.order-card-info{grid-template-columns:82px minmax(0,1fr) 72px minmax(0,1fr)!important;gap:7px 12px!important;padding:11px 12px!important;border-radius:15px!important;background:#fbfefc!important}
.order-card-info span{font-size:10px!important;color:#7b8795!important;font-weight:850!important;letter-spacing:.02em!important}
.order-card-info b{font-size:13px!important;color:#0f172a!important;font-weight:850!important;letter-spacing:0!important}
.order-card-v85 p{font-size:13px!important;color:#46566a!important;font-weight:750!important;line-height:1.45!important;padding:0 2px!important}
.order-card-actions{gap:8px!important}
.order-card-actions button{height:36px!important;border-radius:12px!important;font-size:13px!important;font-weight:850!important}
.order-card-actions button.light{background:#f8fbf9!important;color:#10251d!important}
.order-card-actions button.ok{background:#0f9d58!important;color:#fff!important}
.order-card-actions button.red{background:#fff5f5!important;color:#dc2626!important}
@media(max-width:760px){.orders-v85{gap:12px!important}.orders-hero{padding:15px!important;border-radius:18px!important}.orders-hero h2{font-size:22px!important}.orders-hero p{font-size:13px!important}.order-kpi{padding:11px 12px!important;border-radius:15px!important}.order-kpi b{font-size:20px!important}.order-toolbar-v85{padding:10px!important;border-radius:17px!important;gap:7px!important}.order-searchbox,.order-toolbar-v85 select,.order-toolbar-v85 .btn{height:38px!important;min-height:38px!important;border-radius:12px!important}.order-card-grid{gap:10px!important}.order-card-v85{padding:13px!important;border-radius:17px!important;gap:10px!important}.order-card-head b{font-size:15px!important}.order-card-head span{font-size:12px!important}.order-card-info{grid-template-columns:72px minmax(0,1fr)!important;gap:5px 9px!important;padding:9px 10px!important}.order-card-info span{font-size:9px!important}.order-card-info b{font-size:12px!important}.order-card-v85 p{font-size:12px!important;line-height:1.35!important}.order-card-actions{gap:6px!important}.order-card-actions button{height:33px!important;font-size:11.5px!important;border-radius:10px!important}}

/* V88 filter guard + profile settings */
.filter-sheet{display:none}
.filter-sheet.open{display:block!important}
.filter-sheet[hidden]{display:none!important}
.filter-sheet.open .filter-backdrop{position:fixed!important;inset:0!important;background:rgba(16,24,40,.38)!important;z-index:1200!important}
.filter-sheet.open .filter-panel{z-index:1201!important}
.filter-head .x{width:36px!important;height:36px!important;border-radius:12px!important;display:grid!important;place-items:center!important}
.profile-v88{display:grid;gap:16px}
.profile-hero-v88{border:1px solid #dbeee4;background:linear-gradient(135deg,#0b7a44,#12a862);color:#fff;border-radius:26px;padding:22px;display:grid;grid-template-columns:92px minmax(0,1fr) 300px;gap:18px;align-items:center;box-shadow:0 18px 42px rgba(15,80,45,.16);overflow:hidden}
.profile-avatar-v88{width:92px;height:92px;border-radius:26px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);display:grid;place-items:center;overflow:hidden;font-size:34px;font-weight:950;box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
.profile-avatar-v88 img{width:100%;height:100%;object-fit:cover}
.profile-avatar-v88 span{color:#fff}
.profile-main-v88{min-width:0}.profile-main-v88 span{display:inline-flex;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.14);border-radius:999px;padding:5px 10px;font-size:11px;font-weight:950;text-transform:uppercase}.profile-main-v88 h2{margin:8px 0 4px;font-size:28px;line-height:1.15;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-main-v88 p{margin:0;color:rgba(255,255,255,.88);font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-tags-v88{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.profile-tags-v88 b{border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.26);padding:6px 10px;font-size:12px;color:#fff;white-space:nowrap}
.profile-rank-v88{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.13);border-radius:20px;padding:14px;min-width:0}.profile-rank-v88 small{display:block;color:rgba(255,255,255,.78);font-weight:900;text-transform:uppercase;font-size:11px}.profile-rank-v88 b{display:block;margin:6px 0 10px;color:#fff;font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-rank-v88 em{display:block;margin-top:8px;font-style:normal;color:#eafff0;font-weight:850;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-progress-v88{height:10px;border-radius:999px;background:rgba(255,255,255,.24);overflow:hidden}.profile-progress-v88 i{display:block;height:100%;border-radius:999px;background:#fff}
.profile-kpis-v88{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.profile-kpis-v88 div{border:1px solid #e2eee6;background:#fff;border-radius:18px;padding:14px 15px;box-shadow:0 10px 24px rgba(15,23,42,.045);min-width:0}.profile-kpis-v88 span{display:block;color:#667085;font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-kpis-v88 b{display:block;margin-top:7px;color:#087443;font-size:22px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-grid-v88{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:14px}.profile-card-v88{border:1px solid #e2eee6;background:#fff;border-radius:22px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.045);min-width:0}.profile-form-v88 .field input{height:44px;border-radius:13px}.profile-save-v88{height:44px;border-radius:13px;align-self:end}.profile-check-v88 label{display:flex;align-items:center;gap:8px;text-transform:none;font-size:13px;color:#334155}
.profile-rank-list-v88{display:grid;gap:9px;margin-bottom:14px}.profile-rank-list-v88 div{border:1px solid #eef4f0;background:#fbfffc;border-radius:14px;padding:11px 12px}.profile-rank-list-v88 span{display:block;color:#667085;font-size:11px;text-transform:uppercase;font-weight:900}.profile-rank-list-v88 b{display:block;margin-top:4px;color:#10251d;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-achievements-v88{display:grid;gap:9px}.profile-achievements-v88 article{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;border:1px solid #e2eee6;background:#fbfffc;border-radius:15px;padding:10px}.profile-achievements-v88 i{width:38px;height:38px;border-radius:13px;background:#ecfdf5;color:#087443;display:grid;place-items:center}.profile-achievements-v88 svg{width:20px;height:20px}.profile-achievements-v88 b{display:block;color:#10251d;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-achievements-v88 span{display:block;color:#667085;font-size:12px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:980px){.profile-hero-v88{grid-template-columns:76px minmax(0,1fr);border-radius:22px}.profile-avatar-v88{width:76px;height:76px;border-radius:22px}.profile-rank-v88{grid-column:1/-1}.profile-grid-v88{grid-template-columns:1fr}.profile-kpis-v88{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.filter-sheet.open .filter-panel{left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%!important;max-width:none!important;max-height:82dvh!important;height:auto!important;border-radius:24px 24px 0 0!important;overflow:auto!important}.filter-sheet.open .filter-actions{position:sticky!important;bottom:0!important;background:#fff!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;padding-top:10px!important}.filter-sheet.open .filter-actions .btn{height:42px!important;white-space:nowrap!important}.profile-v88{gap:12px}.profile-hero-v88{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:15px;border-radius:20px}.profile-avatar-v88{width:64px;height:64px;border-radius:19px;font-size:24px}.profile-main-v88 h2{font-size:21px}.profile-main-v88 p{font-size:12px}.profile-tags-v88 b{font-size:11px;padding:5px 8px}.profile-kpis-v88{grid-template-columns:1fr 1fr;gap:9px}.profile-kpis-v88 div{padding:11px 12px;border-radius:15px}.profile-kpis-v88 b{font-size:19px}.profile-card-v88{padding:14px;border-radius:18px}.profile-form-v88{grid-template-columns:1fr!important}.profile-save-v88{width:100%}.profile-achievements-v88 article{grid-template-columns:34px minmax(0,1fr);padding:9px}.profile-achievements-v88 i{width:34px;height:34px;border-radius:12px}}

/* V89 profile upload + Vietnamese role polish */
.profile-check-v88 label{display:inline-flex!important;align-items:center!important;gap:10px!important;font-size:14px!important;font-weight:800!important;line-height:1.35!important;color:#334155!important;white-space:normal!important;text-transform:none!important}
.profile-check-v88 input[type="checkbox"],#pfPayBank{appearance:auto!important;-webkit-appearance:checkbox!important;width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;min-height:16px!important;max-height:16px!important;accent-color:#0f9d58!important;margin:0!important;transform:none!important;border-radius:4px!important;flex:0 0 16px!important}
.avatar-upload-v88{min-width:0!important}.avatar-upload-row-v88{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;border:1px solid #e2eee6!important;background:#fbfffc!important;border-radius:16px!important;padding:12px!important}.avatar-preview-v88{width:72px!important;height:72px!important;border-radius:20px!important;background:#ecfdf5!important;border:1px solid #bbf7d0!important;display:grid!important;place-items:center!important;overflow:hidden!important;color:#087443!important;font-weight:950!important;font-size:24px!important}.avatar-preview-v88 .profile-avatar-v88{width:72px!important;height:72px!important;border:0!important;border-radius:20px!important;box-shadow:none!important;background:#ecfdf5!important;color:#087443!important}.avatar-preview-v88 img,.avatar-preview-v88 .profile-avatar-v88 img{width:100%!important;height:100%!important;object-fit:cover!important}.avatar-upload-actions-v88{display:grid!important;gap:6px!important;min-width:0!important}.avatar-upload-actions-v88 .btn{height:38px!important;min-height:38px!important;width:max-content!important;max-width:100%!important;padding:0 14px!important;border-radius:12px!important;font-size:13px!important;white-space:nowrap!important}.avatar-upload-actions-v88 small{display:block!important;color:#667085!important;font-size:12px!important;font-weight:700!important;line-height:1.35!important}
.profile-main-v88 .profile-tags-v88 b,.userbox small,.table td,.permission-grid label{word-break:normal!important;overflow-wrap:normal!important}.profile-tags-v88 b{max-width:100%;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media(max-width:760px){.avatar-upload-row-v88{grid-template-columns:58px minmax(0,1fr)!important;padding:10px!important}.avatar-preview-v88,.avatar-preview-v88 .profile-avatar-v88{width:58px!important;height:58px!important;border-radius:17px!important}.avatar-upload-actions-v88 .btn{width:100%!important;font-size:12.5px!important}.profile-check-v88 label{align-items:flex-start!important}.profile-check-v88 input[type="checkbox"],#pfPayBank{margin-top:2px!important}}

/* V90 premium honors layout */
.honors-focused-v90{background:linear-gradient(180deg,#ffffff,#f8fffb)!important;border:1px solid #dbeee4!important}
.honor-focused-grid-v90{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.honor-focused-block-v90{border:1px solid #d8f3e2!important;background:linear-gradient(180deg,#f5fff9,#fff)!important;border-radius:22px!important;padding:16px!important;box-shadow:0 12px 28px rgba(8,116,67,.06)!important;min-width:0!important}
.honor-focused-block-v90 h3{margin:0 0 12px!important;color:#073f2a!important;font-size:20px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.honor-person-card-v90{border:1px solid #e2eee6!important;background:#fff!important;border-radius:18px!important;padding:14px!important;box-shadow:0 10px 24px rgba(15,23,42,.04)!important;display:grid!important;gap:10px!important;min-width:0!important}
.honor-person-card-v90 .honor-person-row{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;min-width:0!important}
.honor-avatar-v90{width:58px!important;height:58px!important;border-radius:18px!important;background:#0f9d58!important;display:grid!important;place-items:center!important;overflow:hidden!important;color:#fff!important;font-weight:950!important;font-size:20px!important;flex:0 0 auto!important}
.honor-avatar-v90 img{width:100%!important;height:100%!important;object-fit:cover!important}
.honor-person-card-v90 b{display:block!important;color:#10251d!important;font-size:17px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.honor-person-card-v90 p{margin:4px 0 0!important;color:#087443!important;font-size:13px!important;font-weight:850!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.honor-person-card-v90 button{justify-self:start!important;border:0!important;background:#ecfdf5!important;color:#087443!important;border-radius:999px!important;padding:8px 14px!important;font-size:13px!important;font-weight:900!important;white-space:nowrap!important}
.honor-empty-small{padding:18px!important;border-radius:16px!important;background:#fff!important;color:#667085!important;font-weight:800!important}
.honor-certificate-v90{display:grid!important;gap:14px!important;text-align:center!important;background:radial-gradient(circle at top,#effdf5 0,#fff 42%,#fff 100%)!important;border:1px solid #d8f3e2!important;border-radius:24px!important;padding:24px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)!important}
.honor-logo-v90{display:inline-flex!important;justify-content:center!important;align-items:center!important;gap:10px!important;margin:auto!important;border:1px solid #d8f3e2!important;background:#fff!important;border-radius:999px!important;padding:7px 14px!important;color:#087443!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.04em!important}
.honor-logo-v90 img{width:34px!important;height:34px!important;border-radius:50%!important;object-fit:cover!important}
.honor-title-v90 small{display:block!important;color:#c46200!important;font-size:13px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.08em!important}.honor-title-v90 h2{margin:6px 0 0!important;color:#073f2a!important;font-size:25px!important;line-height:1.15!important}
.honor-avatar-center-v90{width:112px!important;height:112px!important;margin:2px auto!important;border-radius:32px!important;background:#0f9d58!important;display:grid!important;place-items:center!important;overflow:hidden!important;color:#fff!important;font-size:42px!important;font-weight:950!important;box-shadow:0 18px 36px rgba(8,116,67,.2)!important;border:5px solid #fff!important;outline:1px solid #bbf7d0!important}
.honor-avatar-center-v90 img{width:100%!important;height:100%!important;object-fit:cover!important}.honor-certificate-v90 h1{margin:0!important;color:#10251d!important;font-size:32px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.honor-achievement-v90{justify-self:center!important;background:linear-gradient(135deg,#0f9d58,#087443)!important;color:#fff!important;border-radius:999px!important;padding:10px 18px!important;font-weight:950!important;font-size:16px!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.honor-wish-v90{border:1px dashed #bbf7d0!important;background:#fbfffc!important;border-radius:18px!important;padding:16px!important;text-align:left!important}.honor-wish-v90 h3{margin:0 0 8px!important;text-align:center!important;color:#073f2a!important;font-size:20px!important}.honor-wish-v90 p{margin:0!important;color:#475467!important;font-size:15px!important;line-height:1.65!important;font-weight:700!important}.honor-reactions-v90,.honor-admin-actions-v90{display:flex!important;justify-content:center!important;gap:8px!important;flex-wrap:wrap!important}.honor-admin-actions-v90{border-top:1px solid #eef4f0!important;padding-top:12px!important}
@media(max-width:900px){.honor-focused-grid-v90{grid-template-columns:1fr!important}.honor-title-v90 h2{font-size:22px!important}.honor-certificate-v90 h1{font-size:28px!important}}
@media(max-width:760px){.honor-focused-block-v90{padding:13px!important;border-radius:20px!important}.honor-focused-block-v90 h3{font-size:19px!important}.honor-person-card-v90{padding:12px!important;border-radius:17px!important}.honor-person-card-v90 .honor-person-row{grid-template-columns:52px minmax(0,1fr)!important}.honor-avatar-v90{width:52px!important;height:52px!important;border-radius:16px!important}.honor-person-card-v90 b{font-size:16px!important}.honor-certificate-v90{padding:16px!important;border-radius:22px!important}.honor-logo-v90 img{width:30px!important;height:30px!important}.honor-title-v90 h2{font-size:20px!important}.honor-avatar-center-v90{width:92px!important;height:92px!important;border-radius:28px!important;font-size:34px!important}.honor-certificate-v90 h1{font-size:24px!important}.honor-achievement-v90{font-size:13px!important;padding:9px 13px!important}.honor-wish-v90 p{font-size:14px!important}.modal .honor-certificate-v90{margin:-4px!important}}

/* V91 - Order commission breakdown */
.order-summary-v91{padding:18px;border-radius:18px;background:#fff;border:1px solid #dbe7df;box-shadow:0 10px 26px rgba(15,60,35,.06)}
.commission-breakdown-v91{margin-top:10px;border:1px solid #d7eadf;border-radius:16px;background:linear-gradient(180deg,#f8fffb,#ffffff);overflow:hidden}
.commission-breakdown-v91 summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;font-weight:800;color:#123827}
.commission-breakdown-v91 summary::-webkit-details-marker{display:none}
.commission-breakdown-v91 summary:after{content:'Xem chi tiết';font-size:13px;font-weight:800;color:#087a34;background:#e9f8ef;border:1px solid #c9efd8;border-radius:999px;padding:6px 10px;white-space:nowrap}
.commission-breakdown-v91[open] summary:after{content:'Thu gọn'}
.commission-breakdown-v91 summary b{color:#0b7f39;font-size:18px;white-space:nowrap}
.commission-breakdown-body-v91{border-top:1px solid #e2eee7;padding:12px 16px 14px;display:grid;gap:10px}
.commission-breakdown-body-v91 div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed #e1ece6}
.commission-breakdown-body-v91 div:last-of-type{border-bottom:0}
.commission-breakdown-body-v91 span{color:#5d6b78;font-weight:700}
.commission-breakdown-body-v91 b{color:#122033;font-weight:900;text-align:right;white-space:nowrap}
.commission-total-v91{margin-top:4px;padding-top:12px!important;border-top:1px solid #d7eadf!important;border-bottom:0!important}
.commission-total-v91 span{color:#0b3f25!important;font-weight:900!important}
.commission-total-v91 b{color:#c05600!important;font-size:17px!important}
.commission-breakdown-body-v91 p{margin:6px 0 0;color:#64748b;font-size:13px;line-height:1.45;background:#f8fafc;border-radius:12px;padding:10px 12px}
@media(max-width:680px){.commission-breakdown-v91 summary{align-items:flex-start;flex-direction:column}.commission-breakdown-v91 summary:after{align-self:flex-start}.commission-breakdown-body-v91 div{align-items:flex-start}.commission-breakdown-body-v91 b{max-width:45%;white-space:normal}}

/* V93 customer discount + commission preview */
.customer-discount-input{max-width:92px;text-align:right;border:1px solid #cfe8dc;border-radius:12px;padding:8px 10px;font-weight:800;color:#067a3f;background:#fff}
.so-grid b small{display:block;font-size:11px;color:#6b7280;margin-top:4px;font-weight:600;text-align:right}
.order-preview-total.v93{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:16px;padding:14px}
.order-preview-total.v93 span{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#64748b}.order-preview-total.v93 b{color:#047857;font-size:16px}.commission-breakdown-v91.v93{margin:12px 0;background:#fff;border:1px solid #dbeafe;border-radius:14px;overflow:hidden}.commission-breakdown-v91.v93 summary{padding:10px 12px;cursor:pointer}.commission-breakdown-v91.v93 summary span{font-weight:800;color:#0f3d2e}.selected-order-card .total-pay{color:#ea580c}.order-product-card .op-meta{display:flex;flex-wrap:wrap;gap:8px}.order-product-card .op-meta span{background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;padding:6px 10px;white-space:nowrap}
@media(max-width:760px){.order-preview-total.v93{grid-template-columns:1fr 1fr}.so-grid{grid-template-columns:1fr 1fr}.customer-discount-input{width:86px}}

/* V98 honors certificate cards + promotion commission config */
.honors-v98{background:linear-gradient(180deg,#fff,#f7fffb)!important;border:1px solid #dbeee4!important;border-radius:24px!important}
.honor-tabs-v98{display:flex!important;gap:8px!important;overflow-x:auto!important;padding:2px!important;margin-bottom:12px!important;scrollbar-width:none}
.honor-tabs-v98::-webkit-scrollbar{display:none}
.honor-tabs-v98 button{flex:0 0 auto!important;min-width:92px!important;height:40px!important;border-radius:14px!important;white-space:nowrap!important;font-size:14px!important}
.honor-grid-v98{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.honor-block-v98{border:1px solid #d8f3e2!important;background:linear-gradient(180deg,#f4fff8,#fff)!important;border-radius:22px!important;padding:14px!important;min-width:0!important;box-shadow:0 12px 30px rgba(8,116,67,.055)!important}
.honor-block-head-v98{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:12px!important}
.honor-block-head-v98 h3{margin:0!important;color:#073f2a!important;font-size:19px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.honor-block-head-v98 span{flex:0 0 auto!important;border-radius:999px!important;background:#ecfdf5!important;border:1px solid #bbf7d0!important;color:#087443!important;padding:5px 9px!important;font-size:11px!important;font-weight:900!important;white-space:nowrap!important}
.honor-list-v98{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.honor-card-v98{position:relative!important;border:1px solid #e2eee6!important;background:#fff!important;border-radius:20px!important;padding:13px!important;min-width:0!important;text-align:center!important;display:grid!important;gap:8px!important;box-shadow:0 10px 24px rgba(15,23,42,.045)!important;overflow:hidden!important}
.honor-card-v98:before{content:""!important;position:absolute!important;inset:0 0 auto!important;height:56px!important;background:linear-gradient(135deg,#ecfdf5,#fff7ed)!important;z-index:0!important}
.honor-card-v98>*{position:relative!important;z-index:1!important}
.honor-brand-v98{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;margin:0 auto!important;border-radius:999px!important;background:#fff!important;border:1px solid #d8f3e2!important;padding:5px 8px!important;max-width:100%!important}
.honor-brand-v98 img{width:22px!important;height:22px!important;border-radius:50%!important;object-fit:cover!important}
.honor-brand-v98 span{font-size:10px!important;text-transform:uppercase!important;color:#087443!important;font-weight:950!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.honor-rank-v98{justify-self:center!important;border-radius:999px!important;background:#0f9d58!important;color:#fff!important;padding:5px 10px!important;font-size:12px!important;font-weight:950!important;white-space:nowrap!important;box-shadow:0 8px 18px rgba(15,157,88,.18)!important}
.honor-avatar-v98{width:64px!important;height:64px!important;margin:0 auto!important;border-radius:20px!important;background:#0f9d58!important;color:#fff!important;display:grid!important;place-items:center!important;overflow:hidden!important;font-size:24px!important;font-weight:950!important;border:4px solid #fff!important;outline:1px solid #bbf7d0!important}
.honor-avatar-v98 img{width:100%!important;height:100%!important;object-fit:cover!important}
.honor-card-v98 h4{margin:0!important;color:#10251d!important;font-size:16px!important;line-height:1.22!important;font-weight:950!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.honor-card-v98 p{margin:0!important;min-height:34px!important;color:#475569!important;font-size:12px!important;font-weight:760!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.honor-card-v98 button{height:32px!important;border:0!important;border-radius:999px!important;background:#ecfdf5!important;color:#087443!important;font-weight:900!important;font-size:12.5px!important;padding:0 12px!important;white-space:nowrap!important;justify-self:center!important}
.honor-empty-v98{grid-column:1/-1!important;border:1px dashed #bbf7d0!important;background:#fbfffc!important;border-radius:22px!important;padding:28px!important;text-align:center!important;display:grid!important;place-items:center!important;gap:8px!important;color:#667085!important}
.honor-empty-v98 img{width:58px!important;height:58px!important;border-radius:18px!important;object-fit:cover!important}.honor-empty-v98 b{color:#073f2a!important;font-size:18px!important}.honor-empty-v98 span{font-size:13px!important;font-weight:700!important;max-width:520px!important}
.promo-v98{align-items:start!important}
.promo-commission-wrap-v98{border:1px solid #d8f3e2!important;background:#fbfffc!important;border-radius:18px!important;padding:14px!important;display:grid!important;gap:10px!important}
.promo-commission-wrap-v98 h4{margin:0!important;color:#073f2a!important;font-size:17px!important}.promo-commission-wrap-v98>p{margin:0!important;color:#667085!important;font-size:13px!important;font-weight:750!important;line-height:1.4!important}
.promo-commission-card-v98{border:1px solid #e2eee6!important;background:#fff!important;border-radius:15px!important;padding:11px!important;display:grid!important;gap:8px!important;min-width:0!important}
.promo-commission-card-v98>label:first-child{display:flex!important;align-items:center!important;gap:8px!important;font-size:13px!important;font-weight:900!important;color:#10251d!important;text-transform:none!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.promo-commission-card-v98 input[type="checkbox"]{width:16px!important;height:16px!important;min-width:16px!important;accent-color:#0f9d58!important}
.promo-commission-row-v98{display:grid!important;grid-template-columns:130px minmax(0,1fr)!important;gap:8px!important}
.promo-commission-row-v98 select,.promo-commission-row-v98 input{height:38px!important;border:1px solid #dbe4ec!important;border-radius:12px!important;padding:0 10px!important;font-size:13px!important;font-weight:800!important;min-width:0!important}
.promo-mini-check-v98{display:flex!important;gap:8px!important;align-items:center!important;color:#667085!important;font-size:12px!important;font-weight:760!important;line-height:1.3!important;text-transform:none!important}
@media(max-width:1100px){.honor-list-v98{grid-template-columns:1fr!important}.honor-grid-v98{grid-template-columns:1fr!important}}
@media(max-width:760px){.honors-v98{padding:14px!important;border-radius:20px!important}.honor-tabs-v98 button{min-width:78px!important;height:38px!important;font-size:13px!important}.honor-grid-v98{gap:10px!important}.honor-block-v98{padding:12px!important;border-radius:18px!important}.honor-block-head-v98 h3{font-size:18px!important}.honor-card-v98{grid-template-columns:58px minmax(0,1fr) auto!important;text-align:left!important;align-items:center!important;gap:8px!important;padding:11px!important}.honor-card-v98:before{height:100%!important;width:68px!important}.honor-brand-v98{grid-column:1/-1!important;justify-self:start!important;margin:0!important}.honor-rank-v98{grid-column:3!important;grid-row:2!important;font-size:11px!important;padding:5px 8px!important}.honor-avatar-v98{grid-column:1!important;grid-row:2/5!important;width:54px!important;height:54px!important;border-radius:17px!important}.honor-card-v98 h4{grid-column:2!important;grid-row:2!important;font-size:15px!important}.honor-card-v98 p{grid-column:2/4!important;grid-row:3!important;min-height:0!important;font-size:12px!important}.honor-card-v98 button{grid-column:2!important;grid-row:4!important;justify-self:start!important;height:30px!important}.promo-commission-row-v98{grid-template-columns:1fr!important}.promo-commission-card-v98>label:first-child{white-space:normal!important}}

/* V100 premium honors + avatar sync */
.honor-tabs-v100{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 0 12px;padding:2px}
.honor-tabs-v100::-webkit-scrollbar{display:none}
.honor-tabs-v100 button{flex:0 0 auto;min-width:88px;height:40px;border:1px solid #dbeee4;background:#fff;color:#163428;border-radius:14px;font-weight:900;font-size:14px;white-space:nowrap}
.honor-tabs-v100 button.active{background:#0f9d58;color:#fff;border-color:#0f9d58;box-shadow:0 10px 22px rgba(15,157,88,.18)}
.honors-v100{background:linear-gradient(180deg,#ffffff,#f7fffb)!important;border:1px solid #dbeee4!important;border-radius:24px!important}
.honor-grid-v100{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.honor-block-v100{border:1px solid #d8f3e2;background:linear-gradient(180deg,#f5fff9,#fff);border-radius:22px;padding:15px;min-width:0;box-shadow:0 14px 32px rgba(8,116,67,.06)}
.honor-block-head-v100{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.honor-block-head-v100 h3{margin:0;color:#073f2a;font-size:20px;line-height:1.2;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.honor-block-head-v100 span{flex:0 0 auto;border:1px solid #bbf7d0;background:#ecfdf5;color:#087443;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;white-space:nowrap}
.honor-list-v100{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.honor-card-v100{position:relative;overflow:hidden;border:1px solid #e2eee6;background:#fff;border-radius:20px;padding:13px;min-width:0;text-align:center;display:grid;gap:8px;box-shadow:0 10px 24px rgba(15,23,42,.045)}
.honor-card-v100:before{content:"";position:absolute;inset:0 0 auto;height:60px;background:linear-gradient(135deg,#ecfdf5,#fff7ed)}
.honor-card-v100>*{position:relative;z-index:1}
.honor-card-brand-v100{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:0 auto;border:1px solid #d8f3e2;background:#fff;border-radius:999px;padding:5px 8px;max-width:100%}
.honor-card-brand-v100 img{width:22px;height:22px;border-radius:50%;object-fit:cover}
.honor-card-brand-v100 span{color:#087443;font-size:10px;font-weight:950;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.honor-rank-v100{justify-self:center;background:#0f9d58;color:#fff;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:950;white-space:nowrap;box-shadow:0 8px 18px rgba(15,157,88,.18)}
.honor-avatar-premium-v100,.honor-avatar-inline-v100{width:64px;height:64px;margin:0 auto;border-radius:20px;background:#0f9d58;color:#fff;display:grid;place-items:center;overflow:hidden;font-size:24px;font-weight:950;border:4px solid #fff;outline:1px solid #bbf7d0}
.honor-avatar-inline-v100{width:58px;height:58px;border-radius:18px;margin:0}
.honor-avatar-premium-v100 img,.honor-avatar-inline-v100 img{width:100%;height:100%;object-fit:cover}
.honor-card-v100 h4{margin:0;color:#10251d;font-size:16px;line-height:1.22;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.honor-card-v100 p{margin:0;color:#475569;font-size:12.5px;font-weight:760;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px}
.honor-card-v100 button{height:32px;border:0;border-radius:999px;background:#ecfdf5;color:#087443;font-weight:900;font-size:12.5px;padding:0 12px;white-space:nowrap;justify-self:center;cursor:pointer}
.honor-empty-v100{grid-column:1/-1;border:1px dashed #bbf7d0;background:#fbfffc;border-radius:22px;padding:28px;text-align:center;display:grid;place-items:center;gap:8px;color:#667085}
.honor-empty-v100 img{width:58px;height:58px;border-radius:18px;object-fit:cover}
.honor-empty-v100 b{color:#073f2a;font-size:18px}
.honor-cert-v100{display:grid;gap:14px;text-align:center;background:radial-gradient(circle at top,#effdf5 0,#fff 44%,#fff 100%);border:1px solid #d8f3e2;border-radius:26px;padding:26px;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.honor-cert-brand-v100{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin:auto;border:1px solid #d8f3e2;background:#fff;border-radius:999px;padding:7px 14px;color:#087443;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
.honor-cert-brand-v100 img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.honor-cert-copy-v100 small{display:block;color:#c46200;font-size:13px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}
.honor-cert-copy-v100 h2{margin:5px 0 0;color:#073f2a;font-size:31px;line-height:1.05;font-weight:950}
.honor-cert-avatar-v100{width:118px;height:118px;margin:2px auto;border-radius:34px;background:#0f9d58;color:#fff;display:grid;place-items:center;overflow:hidden;font-size:44px;font-weight:950;box-shadow:0 18px 36px rgba(8,116,67,.2);border:5px solid #fff;outline:1px solid #bbf7d0}
.honor-cert-avatar-v100 img{width:100%;height:100%;object-fit:cover}
.honor-cert-v100 h1{margin:0;color:#10251d;font-size:34px;line-height:1.1;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.honor-cert-achievement-v100{justify-self:center;max-width:100%;background:linear-gradient(135deg,#0f9d58,#087443);color:#fff;border-radius:999px;padding:10px 18px;font-weight:950;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.honor-cert-wish-v100{border:1px dashed #bbf7d0;background:#fbfffc;border-radius:18px;padding:16px;text-align:left}
.honor-cert-wish-v100 h3{margin:0 0 8px;text-align:center;color:#073f2a;font-size:20px}
.honor-cert-wish-v100 p{margin:0;color:#475467;font-size:15px;line-height:1.65;font-weight:700}
.honor-reactions-v100,.honor-admin-actions-v100{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.honor-admin-actions-v100{border-top:1px solid #eef4f0;padding-top:12px}
@media(max-width:1100px){.honor-list-v100{grid-template-columns:1fr}.honor-grid-v100{grid-template-columns:1fr}}
@media(max-width:760px){
 .honor-tabs-v100 button{min-width:76px;height:38px;font-size:13px}
 .honors-v100{padding:14px!important;border-radius:20px!important}
 .honor-grid-v100{gap:10px}
 .honor-block-v100{padding:12px;border-radius:18px}
 .honor-block-head-v100 h3{font-size:18px}
 .honor-card-v100{grid-template-columns:56px minmax(0,1fr) auto;text-align:left;align-items:center;gap:8px;padding:11px;border-radius:18px}
 .honor-card-v100:before{height:100%;width:66px}
 .honor-card-brand-v100{grid-column:1/-1;justify-self:start;margin:0}
 .honor-rank-v100{grid-column:3;grid-row:2;font-size:11px;padding:5px 8px}
 .honor-avatar-premium-v100{grid-column:1;grid-row:2/5;width:54px;height:54px;border-radius:17px}
 .honor-card-v100 h4{grid-column:2;grid-row:2;font-size:15px}
 .honor-card-v100 p{grid-column:2/4;grid-row:3;font-size:12px;min-height:0;-webkit-line-clamp:1}
 .honor-card-v100 button{grid-column:2;grid-row:4;justify-self:start;height:30px}
 .honor-cert-v100{padding:16px;border-radius:22px}
 .honor-cert-brand-v100 img{width:30px;height:30px}
 .honor-cert-copy-v100 h2{font-size:26px}
 .honor-cert-avatar-v100{width:94px;height:94px;border-radius:28px;font-size:34px}
 .honor-cert-v100 h1{font-size:24px}
 .honor-cert-achievement-v100{font-size:13px;padding:9px 13px}
 .honor-cert-wish-v100 p{font-size:14px;line-height:1.55}
}

/* V101 advanced CRM */
.crm-page-v101{display:grid;gap:14px}
.crm-hero-v101{border:1px solid #dbeee4;background:linear-gradient(135deg,#fff,#f3fff7);border-radius:24px;padding:18px 20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;box-shadow:0 12px 32px rgba(15,80,45,.06)}
.crm-hero-v101 span{display:inline-flex;background:#ecfdf5;color:#087443;border:1px solid #bbf7d0;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:950;text-transform:uppercase;white-space:nowrap}
.crm-hero-v101 h2{margin:7px 0 5px;color:#10251d;font-size:25px;line-height:1.15;font-weight:950}
.crm-hero-v101 p{margin:0;color:#667085;font-size:13.5px;font-weight:750;line-height:1.45;max-width:820px}
.crm-hero-v101 .btn{height:42px;white-space:nowrap}
.crm-kpis-v101{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.crm-kpi-v101{border:1px solid #e2eee6;background:#fff;border-radius:17px;padding:12px 14px;box-shadow:0 10px 24px rgba(15,23,42,.045);min-width:0}
.crm-kpi-v101 span{display:block;color:#667085;font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-kpi-v101 b{display:block;margin:6px 0 3px;color:#087443;font-size:22px;line-height:1;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-kpi-v101 small{display:block;color:#667085;font-size:11.5px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-kpi-v101.warn b{color:#c05621}.crm-kpi-v101.bad b{color:#dc2626}.crm-kpi-v101.neutral b{color:#334155}
.crm-toolbar-v101{border:1px solid #e2eee6;background:#fff;border-radius:18px;padding:10px;display:grid;grid-template-columns:minmax(260px,1.3fr) repeat(4,minmax(140px,.7fr)) minmax(130px,.6fr) minmax(150px,.7fr) minmax(145px,.7fr) auto auto;gap:8px;align-items:center;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.crm-search-v101{height:40px;border:1px solid #dbe4ec;border-radius:12px;background:#fcfcfd;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;padding:0 10px;min-width:0}
.crm-search-v101 svg{width:18px;height:18px;color:#087443}.crm-search-v101 input{border:0;background:transparent;outline:0;font:inherit;font-size:13px;font-weight:800;min-width:0;color:#334155}
.crm-toolbar-v101 select,.crm-toolbar-v101 input:not(.crm-search-v101 input){height:40px;border:1px solid #dbe4ec;border-radius:12px;background:#fcfcfd;padding:0 10px;font:inherit;font-size:13px;font-weight:800;min-width:0;color:#334155}
.crm-toolbar-v101 .btn{height:40px;min-height:40px;padding:0 13px;border-radius:12px;font-size:13px;font-weight:900;white-space:nowrap}
.crm-card-list-v101{display:grid;grid-template-columns:repeat(3,minmax(300px,1fr));gap:12px}
.crm-card-v101{border:1px solid #eaeef0;background:#fff;border-radius:16px;padding:15px 15px 11px;box-shadow:0 1px 2px rgba(15,23,42,.03);display:grid;gap:10px;min-width:0;align-content:start;transition:box-shadow .15s ease,border-color .15s ease}
.crm-card-v101:hover{box-shadow:0 8px 22px rgba(15,23,42,.07);border-color:#d6ebdd}
.crm-card-v101.good{border-color:#cdeeda}.crm-card-v101.warn{border-color:#fbdfb8}.crm-card-v101.bad{border-color:#f7d0d0}
.crm-card-head-v101{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
.crm-card-head-v101 b{display:block;color:#111827;font-size:15px;line-height:1.25;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-card-head-v101 span{display:block;margin-top:2px;color:#8a94a3;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-card-head-v101 em{font-style:normal;border-radius:999px;border:1px solid #bdead1;background:#f1fdf7;color:#087443;padding:3px 9px;font-size:10.5px;font-weight:800;white-space:nowrap;max-width:135px;overflow:hidden;text-overflow:ellipsis}
.crm-card-v101.warn .crm-card-head-v101 em{background:#fff8ef;border-color:#fbdfb8;color:#b45309}.crm-card-v101.bad .crm-card-head-v101 em{background:#fdf3f3;border-color:#f7d0d0;color:#dc2626}.crm-card-v101.neutral .crm-card-head-v101 em{background:#f8fafc;border-color:#e5e9ee;color:#64748b}
.crm-mini-v101{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);gap:5px 10px}
.crm-mini-v101 span{font-size:10.5px;color:#9aa4b2;font-weight:700}
.crm-mini-v101 b{font-size:12px;color:#334155;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-card-v101 p{margin:0;color:#64748b;font-size:12.5px;font-weight:600;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-card-v101 small{display:block;color:#9aa4b2;font-size:11.5px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-actions-v101{display:flex;gap:4px;padding-top:9px;margin-top:1px;border-top:1px solid #f0f3f2}
.crm-actions-v101 a,.crm-actions-v101 button{flex:1;border:1px solid transparent;background:transparent;color:#64748b;border-radius:9px;height:30px;display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:11.5px;font-weight:700;white-space:nowrap;text-decoration:none;cursor:pointer;overflow:hidden;transition:background .15s ease,color .15s ease}
.crm-actions-v101 a:hover,.crm-actions-v101 button:hover{background:#f3f6f4;color:#10251d}
.crm-actions-v101 a:first-child{color:#087443;font-weight:800}
.crm-actions-v101 button:last-child{background:#087443;color:#fff;font-weight:800}
.crm-actions-v101 button:last-child:hover{background:#0a8a4d;color:#fff}
.crm-actions-v101 svg{width:14px;height:14px;flex:none}
.crm-report-grid-v101{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.crm-report-card-v101{border:1px solid #e2eee6;background:#fff;border-radius:18px;padding:14px;box-shadow:0 10px 24px rgba(15,23,42,.04);min-width:0}
.crm-report-card-v101 h3{margin:0 0 10px;color:#10251d;font-size:16px}
.crm-report-card-v101 div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:7px 0;border-bottom:1px dashed #e2eee6}.crm-report-card-v101 div:last-child{border-bottom:0}
.crm-report-card-v101 span{font-size:13px;color:#475569;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-report-card-v101 b{font-size:13px;color:#087443;font-weight:950;white-space:nowrap}
.crm-detail-v101{display:grid;gap:14px}
.crm-detail-head-v101{border:1px solid #dbeee4;background:linear-gradient(135deg,#f3fff7,#fff);border-radius:20px;padding:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.crm-detail-head-v101 span{display:inline-flex;border-radius:999px;background:#ecfdf5;border:1px solid #bbf7d0;color:#087443;padding:5px 9px;font-size:11px;font-weight:950}.crm-detail-head-v101 h2{margin:7px 0 3px;color:#10251d;font-size:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-detail-head-v101 p{margin:0;color:#667085;font-weight:800}
.crm-detail-actions-v101{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.crm-detail-actions-v101 .btn{height:36px;border-radius:12px;white-space:nowrap}
.crm-detail-kpis-v101{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.crm-detail-kpis-v101 div{border:1px solid #e2eee6;background:#fff;border-radius:14px;padding:10px 12px}.crm-detail-kpis-v101 span{display:block;color:#667085;font-size:11px;font-weight:900;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-detail-kpis-v101 b{display:block;margin-top:4px;color:#10251d;font-size:15px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-detail-grid-v101{display:grid;grid-template-columns:1fr 1fr;gap:10px}.crm-detail-grid-v101>div{border:1px solid #e2eee6;background:#fff;border-radius:16px;padding:14px}.crm-detail-grid-v101 h3,.crm-detail-v101>h3{margin:0 0 8px;color:#10251d;font-size:18px}.crm-detail-grid-v101 p{margin:7px 0;color:#475569;font-weight:750}
.crm-order-timeline-v101,.crm-care-timeline-v101{display:grid;gap:8px}.crm-order-timeline-v101 article,.crm-care-timeline-v101 article{border:1px solid #e2eee6;background:#fbfffc;border-radius:14px;padding:11px;display:grid;gap:4px}.crm-order-timeline-v101 b{color:#10251d}.crm-order-timeline-v101 span,.crm-care-timeline-v101 span{color:#667085;font-size:12px;font-weight:800}.crm-order-timeline-v101 p,.crm-care-timeline-v101 p{margin:0;color:#475569;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-order-timeline-v101 strong{color:#087443}.crm-care-timeline-v101 em{font-style:normal;color:#b45309;font-size:12px;font-weight:900}
@media(max-width:1320px){.crm-kpis-v101{grid-template-columns:repeat(4,minmax(0,1fr))}.crm-toolbar-v101{grid-template-columns:minmax(260px,1fr) repeat(3,minmax(140px,.7fr)) auto auto}.crm-card-list-v101{grid-template-columns:repeat(2,minmax(280px,1fr))}.crm-report-grid-v101{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .crm-page-v101{gap:10px}
 .crm-hero-v101{grid-template-columns:1fr;padding:14px;border-radius:18px}.crm-hero-v101 h2{font-size:22px}.crm-hero-v101 p{font-size:13px}.crm-hero-v101 .btn{width:100%;height:38px}
 .crm-kpis-v101{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}.crm-kpis-v101::-webkit-scrollbar{display:none}.crm-kpi-v101{flex:0 0 142px;padding:10px 12px;border-radius:15px}.crm-kpi-v101 b{font-size:20px}
 .crm-toolbar-v101{grid-template-columns:1fr 1fr;padding:9px;border-radius:16px;gap:7px}.crm-search-v101{grid-column:1/-1;height:38px}.crm-toolbar-v101 select,.crm-toolbar-v101 input:not(.crm-search-v101 input),.crm-toolbar-v101 .btn{height:36px;min-height:36px;font-size:12px;border-radius:11px;padding:0 8px}.crm-toolbar-v101 .btn{width:100%}
 .crm-card-list-v101{grid-template-columns:1fr;gap:9px}.crm-card-v101{padding:12px 12px 10px;border-radius:15px;gap:8px}.crm-card-head-v101 b{font-size:14.5px}.crm-card-head-v101 em{font-size:10px;max-width:120px}.crm-mini-v101{grid-template-columns:auto minmax(0,1fr);gap:4px 8px}.crm-mini-v101 span{font-size:10px}.crm-mini-v101 b{font-size:12px}.crm-card-v101 p,.crm-card-v101 small{font-size:12px}
 .crm-actions-v101{gap:4px;padding-top:8px}.crm-actions-v101 a,.crm-actions-v101 button{height:34px;border-radius:9px}.crm-actions-v101 svg{width:14px;height:14px}.crm-actions-v101 span{font-size:11px;line-height:1}
 .crm-report-grid-v101{grid-template-columns:1fr}
 .crm-detail-head-v101{grid-template-columns:1fr;padding:13px;border-radius:18px}.crm-detail-actions-v101{justify-content:stretch}.crm-detail-actions-v101 .btn{flex:1}.crm-detail-head-v101 h2{font-size:22px}.crm-detail-kpis-v101{grid-template-columns:1fr 1fr}.crm-detail-grid-v101{grid-template-columns:1fr}.crm-order-timeline-v101 p,.crm-care-timeline-v101 p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}

/* V102: Redesign khu vực Thông báo - gọn, hiện đại, chuẩn app */
.notif-wrap{display:flex;flex-direction:column;gap:12px}
.notif-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;position:sticky;top:-1px;background:#fff;padding-bottom:6px;z-index:2}
.notif-seg{display:flex;background:#F2F4F7;border-radius:999px;padding:3px;gap:2px}
.notif-seg button{border:0;background:transparent;color:#475467;font-weight:800;font-size:13px;padding:7px 14px;border-radius:999px;cursor:pointer;transition:.15s ease}
.notif-seg button.active{background:#fff;color:#0f172a;box-shadow:0 2px 8px rgba(16,24,40,.12)}
.notif-toolbar select{height:36px;border:1px solid #E4E7EC;border-radius:10px;padding:0 10px;font:inherit;font-weight:700;font-size:13px;color:#344054;background:#fff}
.notif-actions{display:flex;gap:6px;margin-left:auto}
.notif-iconbtn{width:36px;height:36px;border:1px solid #E4E7EC;background:#fff;border-radius:10px;display:grid;place-items:center;cursor:pointer;color:#344054}
.notif-iconbtn:hover{background:#F6FEF9;border-color:#12B76A;color:#0B7D45}
.notif-iconbtn svg{width:16px;height:16px}
.notif-iconbtn.danger:hover{background:#FEF3F2;border-color:#F04438;color:#D92D20}
.notif-list{display:flex;flex-direction:column;gap:6px;max-height:min(560px,68vh);overflow:auto;padding-right:2px}
.notif-item{position:relative;display:flex;gap:11px;align-items:flex-start;padding:11px 12px;border-radius:16px;background:#fff;border:1px solid transparent;transition:.14s ease}
.notif-item:hover{background:#F9FAFB}
.notif-item.unread{background:#F6FEF9;border-color:#D1FADF}
.notif-ico{width:38px;height:38px;min-width:38px;border-radius:12px;display:grid;place-items:center}
.notif-ico svg{width:18px;height:18px}
.notif-ico.tone-green{background:#DCFCE7;color:#087443}
.notif-ico.tone-amber{background:#FEF3C7;color:#92400E}
.notif-ico.tone-blue{background:#DBEAFE;color:#1D4ED8}
.notif-ico.tone-purple{background:#EDE9FE;color:#6D28D9}
.notif-ico.tone-slate{background:#F1F5F9;color:#475569}
.notif-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.notif-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.notif-top b{font-size:14px;color:#0f172a;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}
.notif-time{font-size:11.5px;color:#98A2B3;font-weight:700;white-space:nowrap}
.notif-main p{margin:0;font-size:13px;color:#475467;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notif-tag{align-self:flex-start;margin-top:3px;font-size:10.5px;font-weight:800;padding:2px 8px;border-radius:999px;letter-spacing:.01em}
.notif-tag.tone-green{background:#DCFCE7;color:#087443}
.notif-tag.tone-amber{background:#FEF3C7;color:#92400E}
.notif-tag.tone-blue{background:#DBEAFE;color:#1D4ED8}
.notif-tag.tone-purple{background:#EDE9FE;color:#6D28D9}
.notif-tag.tone-slate{background:#F1F5F9;color:#475569}
.notif-dot{width:8px;height:8px;border-radius:50%;background:#12B76A;margin-top:6px;flex:none}
.notif-empty{padding:44px 20px;text-align:center;color:#98A2B3;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:30px}
.notif-empty b{font-size:15px;color:#344054}
.notif-empty small{font-size:13px;font-weight:600;color:#98A2B3}
@media(max-width:760px){
  .notif-toolbar{flex-wrap:wrap}
  .notif-actions{margin-left:0}
  .notif-seg{flex:1}
  .notif-seg button{flex:1;text-align:center}
  .notif-toolbar select{flex:1;min-width:0}
  .notif-top b{max-width:60%}
  .notif-item{padding:10px}
}

/* V102: chống tràn chữ/xuống dòng lỗi/mất chữ cho các ô bảng và khối văn bản dài (tên dự án, ghi chú, số liệu ủng hộ...) */
.cell-title-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;word-break:break-word;line-height:1.35;font-weight:850;min-width:0}
.cell-clip{display:block;overflow-wrap:anywhere;word-break:break-word;min-width:0;line-height:1.35}
.donation-cell{display:flex;flex-direction:column;gap:2px;min-width:0}
.donation-cell b{font-weight:900;color:#087443;white-space:nowrap}
.donation-cell small{color:#667085;font-weight:750;white-space:nowrap}
.insight-subtitle{font-size:15px;font-weight:900;color:#101828;margin:16px 0 8px}
.project-admin-insights .tablewrap{margin-bottom:6px}
/* Bảo vệ chung: mọi ô bảng khi không bị ép nowrap ở nơi khác sẽ tự xuống dòng theo từ, không cắt/mất chữ */
.table td,.table th{overflow-wrap:anywhere}
.table td>*{min-width:0}
@media(max-width:760px){
  .cell-title-2,.cell-clip{-webkit-line-clamp:3}
  .donation-cell{align-items:flex-start}
}
.referral-qr-v102{
  display:grid;
  grid-template-columns:minmax(0,1fr) 180px;
  gap:18px;
  align-items:center;
  padding:18px;
  margin-bottom:16px;
  border:1px solid #d7f3e4;
  border-radius:18px;
  background:linear-gradient(135deg,#f4fff8 0%,#ffffff 58%,#fff8ed 100%);
  box-shadow:0 14px 34px rgba(15,95,62,.08);
}
.referral-qr-v102 span{display:inline-flex;font-size:12px;font-weight:900;color:#047857;text-transform:uppercase;letter-spacing:.02em}
.referral-qr-v102 h3{margin:6px 0 8px;font-size:22px;line-height:1.25;color:#133226}
.referral-qr-v102 p{margin:0 0 12px;color:#64748b;font-weight:700;line-height:1.55}
.referral-qr-v102 img{width:180px;height:180px;justify-self:end;border-radius:16px;border:1px solid #dbeee4;background:#fff;padding:10px}
.reuse-reminder-v102{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(220px,.85fr) auto;
  gap:16px;
  align-items:center;
  border:1px solid #dbeee4;
  background:#fff;
}
.reuse-reminder-v102.warn{background:linear-gradient(135deg,#fffdf5,#ffffff)}
.reuse-reminder-v102.done{background:linear-gradient(135deg,#effdf5,#ffffff)}
.reuse-reminder-v102 span{font-size:12px;font-weight:900;text-transform:uppercase;color:#047857}
.reuse-reminder-v102 h3{margin:4px 0 6px;font-size:20px;line-height:1.25;color:#143226}
.reuse-reminder-v102 p,.reuse-reminder-v102 small{margin:0;color:#64748b;font-weight:700;line-height:1.5}
.reuse-meter-v102 b{display:block;margin-bottom:8px;color:#0f5132}
.reuse-meter-v102 .progress{height:8px;border-radius:999px;background:#e8f5ee;overflow:hidden}
.reuse-meter-v102 .progress i{display:block;height:100%;border-radius:999px;background:#16a34a}
.project-delete-v102{margin-left:8px}
@media(max-width:760px){
  .referral-qr-v102{grid-template-columns:1fr;text-align:left;padding:14px;border-radius:16px}
  .referral-qr-v102 img{width:150px;height:150px;justify-self:center}
  .referral-qr-v102 h3{font-size:18px}
  .reuse-reminder-v102{grid-template-columns:1fr;gap:12px}
  .reuse-reminder-v102 .btn{width:100%;min-height:42px}
}

/* V103: microcopy ngắn gọn, chống tràn chữ sau khi đổi ngôn ngữ hiển thị */
.nav button span,
.bottom-nav span,
.quick-card b,
.member-kpi span,
.order-card-actions button,
.crm-actions-v101 span,
.btn,
.linkbtn,
.filter-trigger span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.nav button span{max-width:150px}
.topbar h2,
.dashboard-head h3,
.overview-hero h2,
.orders-hero h2,
.crm-hero-v101 h2,
.member-welcome h2{
  overflow-wrap:anywhere;
}
.dashboard-head p,
.overview-hero p,
.orders-hero p,
.crm-hero-v101 p,
.member-welcome p,
.member-section p,
.order-card-v85 p,
.crm-card-v101 p{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.btn,.linkbtn{max-width:100%;line-height:1.15}
@media(max-width:760px){
  .nav button span{max-width:118px}
  .bottom-nav span{max-width:64px;font-size:11px}
  .btn,.linkbtn{font-size:13px}
  .create-order{min-width:44px}
  .create-order:not(.btn-icon){padding-inline:10px}
  .member-kpi span,.quick-card b{-webkit-line-clamp:1;display:block}
}

/* V104: nút Gieo mầm một dòng + phản hồi tải trang nhanh hơn */
.top-actions{
  flex-wrap:nowrap!important;
  align-items:center!important;
}
.top-actions .create-order,
.side .quick{
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  flex:0 0 auto!important;
  min-width:118px!important;
  width:auto!important;
  padding-inline:18px!important;
  line-height:1!important;
}
.top-actions .create-order{
  height:44px!important;
  min-height:44px!important;
}
.top-actions .create-order svg,
.side .quick svg{
  flex:0 0 auto!important;
}
.fast-loading-bar{
  position:fixed;
  left:268px;
  right:0;
  top:0;
  height:3px;
  z-index:1200;
  background:linear-gradient(90deg,#0F9D58,#22c55e,#f59e0b);
  transform-origin:left center;
  animation:ecoFastLoad 1.1s ease-in-out infinite;
  box-shadow:0 2px 10px rgba(15,157,88,.28);
}
@keyframes ecoFastLoad{
  0%{transform:scaleX(.12);opacity:.45}
  55%{transform:scaleX(.72);opacity:1}
  100%{transform:scaleX(1);opacity:.2}
}
@media(max-width:1000px){
  .fast-loading-bar{left:0}
}
@media(max-width:760px){
  .top-actions .create-order{
    min-width:52px!important;
    width:52px!important;
    height:52px!important;
    padding:0!important;
    font-size:0!important;
    border-radius:16px!important;
  }
  .top-actions .create-order::before{
    content:"+"!important;
    font-size:30px!important;
    line-height:1!important;
    font-weight:700!important;
  }
  .top-actions .create-order::first-letter{font-size:0}
  .top-actions .create-order svg{width:22px!important;height:22px!important}
}

/* V106: chuẩn hóa nút một dòng trên desktop/mobile, tránh chữ bị xổ dòng hoặc chồng dấu + */
button,
.btn,
.linkbtn,
.actbtn,
.pill-btn,
.create-order-btn,
.top-actions .create-order,
.side .quick,
.modal-foot button,
.section-head button,
.actions button,
.crm-actions-v101 button,
.crm-actions-v101 a,
.order-detail-toolbar button,
.honor-create-btn{
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  line-height:1.15!important;
  max-width:100%;
}
.btn,
.top-actions .create-order,
.create-order-btn,
.side .quick{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:40px!important;
}
.top-actions .create-order{
  min-width:128px!important;
  max-width:150px!important;
  height:44px!important;
  padding:0 16px!important;
}
.top-actions .create-order svg,
.side .quick svg,
.btn svg{
  flex:0 0 auto!important;
}
@media(max-width:760px){
  .top-actions{
    gap:8px!important;
  }
  .top-actions .create-order{
    position:relative!important;
    flex:0 0 54px!important;
    width:54px!important;
    min-width:54px!important;
    max-width:54px!important;
    height:54px!important;
    min-height:54px!important;
    padding:0!important;
    border-radius:18px!important;
    font-size:0!important;
    color:transparent!important;
  }
  .top-actions .create-order svg,
  .top-actions .create-order span,
  .top-actions .create-order i{
    display:none!important;
  }
  .top-actions .create-order::before{
    content:"+"!important;
    display:block!important;
    color:#fff!important;
    font-size:34px!important;
    line-height:1!important;
    font-weight:800!important;
  }
  .create-order-btn{
    min-width:0!important;
    padding-inline:12px!important;
    font-size:13px!important;
  }
  .section-head{
    gap:12px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:flex-start!important;
  }
  .section-head .btn,
  .section-head button{
    justify-self:flex-start!important;
    max-width:100%!important;
    padding-inline:12px!important;
    font-size:13px!important;
  }
  .modal-foot button,
  .actions button,
  .order-detail-toolbar button{
    min-width:0!important;
    padding-inline:12px!important;
  }
}

/* V107 final override: nút + mobile dùng icon thật, không dùng pseudo lớn */
@media(max-width:760px){
  .top-actions .create-order{
    display:inline-grid!important;
    place-items:center!important;
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    padding:0!important;
    border-radius:16px!important;
    background:linear-gradient(135deg,#0f9d58,#10b981)!important;
    box-shadow:0 12px 24px rgba(15,157,88,.22)!important;
    font-size:0!important;
    color:#fff!important;
  }
  .top-actions .create-order::before,
  .top-actions .create-order::after{
    content:none!important;
    display:none!important;
  }
  .top-actions .create-order span{display:none!important}
  .top-actions .create-order svg{
    display:block!important;
    width:22px!important;
    height:22px!important;
    color:#fff!important;
    stroke:#fff!important;
    stroke-width:2.5!important;
  }
}

/* ============================================================================
 * PATCH v109 — Đội nhóm (mục 34/34.1) + Error/stale state dùng chung (mục 35)
 * ==========================================================================*/
.data-error-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#FFFBEB;border:1px solid #FDE68A;border-radius:20px;padding:14px 16px}
.data-error-banner b{color:#92400E;display:block}
.data-error-banner span{color:#92400E;font-weight:700;font-size:13px}
.team-filter-bar{background:#F8FFFA;border:1px solid #d8efdf}
.team-suggest-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.team-suggest-list li{background:#F6FEF9;border:1px solid #D1FADF;border-radius:14px;padding:11px 14px;font-weight:800;color:#067647}
.team-route-group{border:1px solid var(--line);border-radius:20px;margin-bottom:12px;overflow:hidden;background:#fff}
.team-route-group summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;font-size:16px;background:#F9FAFB}
.team-route-group summary::-webkit-details-marker{display:none}
.team-route-group .badge{background:#DCFCE7;color:#067647}
.team-member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}
.team-member-card{border:1px solid #EAECF0;border-radius:18px;padding:14px;cursor:pointer;background:linear-gradient(180deg,#fff,#fbfffc);box-shadow:0 8px 22px rgba(16,24,40,.045);transition:.15s ease}
.team-member-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(16,24,40,.08);border-color:#12B76A}
.team-member-top{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.team-member-name{flex:1;min-width:0}
.team-member-name b{display:block;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-member-name small{display:block;color:#667085;font-weight:700}
.team-member-top .badge{white-space:nowrap}
.team-member-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.team-member-meta div{background:#F9FAFB;border-radius:12px;padding:8px 10px;min-width:0}
.team-member-meta span{display:block;color:#667085;font-size:10.5px;text-transform:uppercase;font-weight:900}
.team-member-meta b{display:block;margin-top:3px;font-size:12.5px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-member-card .linkbtn{padding:0;font-size:13px}
.team-avatar{width:36px;height:36px;border-radius:12px;background:#0F9D58;color:#fff;display:grid;place-items:center;font-weight:950;flex:none}
@media(max-width:1180px){.team-member-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .team-filter-bar .formgrid{grid-template-columns:1fr 1fr}
  .team-member-grid{grid-template-columns:1fr;padding:10px;gap:10px}
  .team-route-group summary{padding:12px 14px;font-size:15px}
  .data-error-banner{flex-direction:column;align-items:flex-start}
  .data-error-banner .btn{width:100%}
}

/* ===== Bảo trì web (Maintenance mode) — theo nhận diện Ecofami ===== */
.maint-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(1200px 800px at 20% -10%,rgba(21,148,71,.18),transparent),linear-gradient(160deg,#052e1b 0%,#0b7a44 55%,#0f8f4b 100%)}
.maint-card{width:min(520px,94vw);background:#fff;border-radius:28px;padding:36px 34px 30px;text-align:center;box-shadow:0 30px 90px rgba(4,20,12,.35);position:relative;overflow:hidden}
.maint-card:before{content:"";position:absolute;right:-70px;top:-70px;width:200px;height:200px;border-radius:50%;background:var(--eco-primary-50,#effcf4)}
.maint-logo{width:56px;height:56px;border-radius:16px;object-fit:cover;position:relative;z-index:1}
.maint-badge{display:inline-flex;margin:14px 0 4px;background:var(--eco-accent-50,#fff7ed);color:var(--eco-accent,#f28c28);font-weight:950;font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:6px 14px;border-radius:999px;position:relative;z-index:1}
.maint-icon{width:64px;height:64px;color:var(--eco-primary,#159447);margin:14px auto 6px;display:block;position:relative;z-index:1}
.maint-card h1{font-size:23px;line-height:1.3;margin:8px 0 10px;color:var(--eco-ink,#153322);position:relative;z-index:1}
.maint-card p{margin:0 auto;max-width:400px;color:var(--eco-muted,#6b7c72);font-weight:700;line-height:1.6;position:relative;z-index:1}
.maint-dots{display:flex;gap:7px;justify-content:center;margin:20px 0 22px;position:relative;z-index:1}
.maint-dots span{width:9px;height:9px;border-radius:50%;background:var(--eco-primary,#159447);opacity:.35;animation:maintPulse 1.2s ease-in-out infinite}
.maint-dots span:nth-child(2){animation-delay:.2s}
.maint-dots span:nth-child(3){animation-delay:.4s}
@keyframes maintPulse{0%,80%,100%{opacity:.25;transform:scale(.85)}40%{opacity:1;transform:scale(1)}}
.maint-foot{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;position:relative;z-index:1}
.maint-admin-link{background:transparent;color:var(--eco-primary-700,#08713a);text-decoration:underline;box-shadow:none}
.maint-admin-link:hover{filter:none;opacity:.8}
#maintAdminBox{position:relative;z-index:1}

/* Công tắc bật/tắt bảo trì trong trang Cài đặt */
.switch{position:relative;display:inline-block;width:52px;height:30px;flex:none}
.switch input{opacity:0;width:0;height:0}
.switch .slider{position:absolute;cursor:pointer;inset:0;background:#dfe9e3;border-radius:999px;transition:.2s}
.switch .slider:before{content:"";position:absolute;height:22px;width:22px;left:4px;bottom:4px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.switch input:checked+.slider{background:var(--eco-accent,#f28c28)}
.switch input:checked+.slider:before{transform:translateX(22px)}
.maint-toggle-row{display:flex;align-items:center;gap:14px}
.maint-toggle-label{font-size:14px;color:var(--eco-ink,#153322)}
.maint-admin-card textarea{width:100%;min-height:80px;border:1px solid var(--eco-border,#dfe9e3);border-radius:14px;padding:12px 14px;font:inherit;font-weight:700;resize:vertical}

/* V63: AI Gợi ý nhập hàng & Dự báo nhập hàng — redesign (đồng bộ theme xanh Ecofami, đa sắc theo trạng thái, responsive) */
.section.ai-panel.ai-accordion{background:linear-gradient(180deg,#f4fbf6 0%,#ffffff 42%);color:var(--eco-ink,#153322);border:1px solid var(--eco-border,#dfe9e3);position:relative;overflow:hidden;padding-top:20px}
.section.ai-panel.ai-accordion:before{content:"";position:absolute;left:0;top:0;right:0;height:5px;background:linear-gradient(90deg,#159447 0%,#12b981 30%,#f28c28 65%,#2563eb 100%)}
.section.ai-panel.ai-accordion h3,.section.ai-panel.ai-accordion p{color:var(--eco-ink,#153322)!important}
.section.ai-panel.ai-accordion p{color:var(--eco-muted,#6b7c72)!important;font-weight:700}
.section.ai-panel.ai-accordion .section-head{align-items:flex-start;gap:16px}
.panel-title-row{display:flex;align-items:flex-start;gap:14px;min-width:0}
.panel-ico{flex:none;width:46px;height:46px;border-radius:16px;display:grid;place-items:center;font-size:22px;background:linear-gradient(135deg,#159447,#0b7a44);box-shadow:0 8px 18px rgba(21,52,34,.18)}
.panel-eyebrow{display:inline-flex;background:var(--eco-primary-50,#effcf4);color:var(--eco-primary-700,#08713a);border:1px solid #bfe8cc;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}
.section.ai-panel.ai-accordion h3{margin:0 0 4px}
.panel-toggle-btn{white-space:nowrap;background:#fff!important;border:1px solid var(--eco-border,#dfe9e3);color:var(--eco-primary-700,#08713a)!important;box-shadow:0 6px 16px rgba(21,52,34,.08)}
.panel-toggle-btn:hover{background:var(--eco-primary-50,#effcf4)!important}
.panel-body-placeholder{padding:18px;text-align:center;background:#fbfffc;border:1px dashed #cfe7d6;border-radius:16px;margin-top:2px}

/* AI list items (AI Gợi ý nhập hàng) */
.ai-list{display:grid;gap:10px}
.ai-item{background:#fff;border:1px solid var(--eco-border,#dfe9e3);border-left:5px solid #94a3b8;border-radius:16px;overflow:hidden;box-shadow:0 6px 18px rgba(16,24,40,.05);transition:.15s box-shadow,.15s transform}
.ai-item:hover{box-shadow:0 12px 26px rgba(16,24,40,.09);transform:translateY(-1px)}
.ai-item.tone-bad{border-left-color:#dc2626}
.ai-item.tone-warn{border-left-color:#d97706}
.ai-item.tone-ok{border-left-color:#16a34a}
.ai-item.tone-info{border-left-color:#2563eb}
.ai-item summary{cursor:pointer;display:grid;grid-template-columns:40px 1fr auto auto;gap:10px;align-items:center;padding:13px 15px;list-style:none}
.ai-item summary::-webkit-details-marker{display:none}
.ai-ico{font-size:22px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#f8fafc}
.ai-item b{font-size:15px;color:var(--eco-ink,#153322);min-width:0}
.tone-badge-bad,.tone-badge-warn,.tone-badge-ok,.tone-badge-info{font-style:normal;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;white-space:nowrap}
.tone-badge-bad{background:#fee2e2;color:#b91c1c}
.tone-badge-warn{background:#fef3c7;color:#92400e}
.tone-badge-ok{background:#dcfce7;color:#166534}
.tone-badge-info{background:#dbeafe;color:#1d4ed8}
.ai-chevron{color:#94a3b8;font-weight:900;transition:.15s transform}
.ai-item[open] .ai-chevron{transform:rotate(180deg)}
.ai-body{padding:0 15px 15px 65px;color:#334155;font-weight:600;line-height:1.55;border-top:1px dashed #eef2f7;margin-top:-1px;padding-top:12px}

/* Forecast summary tiles (Dự báo nhập hàng & quản lý kho) */
.forecast-mini-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:10px}
.forecast-mini-head b{font-size:16px;color:var(--eco-ink,#153322)}
.forecast-mini-head span{color:var(--eco-muted,#6b7c72);font-weight:700;font-size:13px}
.forecast-grid{margin:0 0 16px;grid-template-columns:repeat(6,minmax(0,1fr))}
.mini-stat.info{background:#eff6ff;border-color:#bfdbfe}
.mini-stat.info b{color:#1d4ed8}
.mini-stat.neutral{background:#f8fafc;border-color:#e2e8f0}
.mini-stat.neutral b{color:#475569}
.forecast-table .tablewrap{border-color:var(--eco-border,#dfe9e3)}

@media(max-width:1180px){.forecast-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.section.ai-panel.ai-accordion .section-head{flex-direction:column}.section.ai-panel.ai-accordion .actions{width:100%}.panel-toggle-btn{width:100%;justify-content:center}}
@media(max-width:760px){.forecast-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-item summary{grid-template-columns:36px 1fr auto;grid-template-areas:"ico title chevron" "badge badge badge";row-gap:6px;padding:12px}.ai-item .ai-ico{grid-area:ico}.ai-item summary>b{grid-area:title}.ai-item .ai-chevron{grid-area:chevron}.ai-item .tone-badge-bad,.ai-item .tone-badge-warn,.ai-item .tone-badge-ok,.ai-item .tone-badge-info{grid-area:badge;justify-self:start;margin-top:2px}.ai-body{padding-left:15px}.panel-ico{width:40px;height:40px;font-size:19px}}
@media(max-width:560px){.forecast-grid{grid-template-columns:1fr}}
.rank-badge{display:inline-flex!important;align-items:center;padding:5px 10px!important;border-radius:999px;background:#e0f2fe;color:#075985;font-weight:900!important;font-size:12.5px!important;white-space:nowrap}
.member-table-wrap button.linkbtn{background:#f0fdf4;border-radius:10px}
.member-table-wrap button.linkbtn.money-cell{background:#f0fdf4;color:#0f7a35!important;font-weight:900}
.orders-hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-self:end;align-items:center}
.orders-hero-actions .btn{height:42px;white-space:nowrap}
.order-kpi-grid-insight{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));margin-top:10px}
.order-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 4px 4px;flex-wrap:wrap}
.order-pagination span{color:#475569;font-weight:850;font-size:13px}
.order-pagination-btns{display:flex;gap:8px}
.order-pagination-btns .btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:760px){.orders-hero-actions{width:100%;justify-content:stretch}.orders-hero-actions .btn{flex:1}.order-pagination{justify-content:center;text-align:center}}
.referral-hero-admin{background:linear-gradient(180deg,#fff,#f6fffa);border-color:#d9f2e2}
.referral-tip-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.referral-tip{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px}
.referral-tip b{display:block;margin-bottom:6px;font-size:14px}
.referral-tip span{display:block;color:#64748b;font-size:12.5px;font-weight:650;line-height:1.5}
@media(max-width:1000px){.referral-tip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.referral-tip-grid{grid-template-columns:1fr}}

/* ==== V110: Vinh danh nâng cấp - TOP3 theo thời gian thực, tải ảnh, bộ lọc ==== */
.honor-period-tabs-v110{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 12px}
.honor-period-tabs-v110 button{height:38px;padding:0 16px;border-radius:999px;border:1px solid #d8f3e2;background:#fff;color:#087443;font-weight:850;font-size:13.5px;cursor:pointer;transition:.15s}
.honor-period-tabs-v110 button.active{background:#0f9d58;color:#fff;border-color:#0f9d58;box-shadow:0 10px 22px rgba(15,157,88,.18)}
.honor-period-nav-v110{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.honor-period-nav-v110 button{height:34px;min-width:34px;border-radius:10px;border:1px solid #e2e8f0;background:#fff;cursor:pointer;font-size:16px;font-weight:900;color:#334155}
.honor-period-nav-v110 b{color:#073f2a;font-size:14.5px;font-weight:900}
.honor-period-now-v110{width:auto!important;padding:0 12px;font-size:12.5px!important;color:#0f9d58!important;border-color:#bbf7d0!important}
.honors-board-v110{background:linear-gradient(180deg,#ffffff,#f7fffb)!important;border:1px solid #dbeee4!important;border-radius:24px!important}
.honor-cat-columns-v110{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:6px}
.honor-cat-v110{border:1px solid #d8f3e2;background:linear-gradient(180deg,#f5fff9,#fff);border-radius:22px;padding:16px;min-width:0;box-shadow:0 14px 32px rgba(8,116,67,.06)}
.honor-cat-head-v110{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.honor-cat-head-v110 h3{margin:0;color:#073f2a;font-size:16px;font-weight:950;line-height:1.25}
.honor-cat-emoji-v110{font-size:22px}
.honor-cat-grid-v110{display:grid;gap:10px}
.honor-slot-v110{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:10px;border:1px solid #eef4f0;border-radius:16px;padding:10px 12px;background:#fff}
.honor-slot-v110.r1{border-color:#fbbf24;background:linear-gradient(90deg,#fffbeb,#fff)}
.honor-slot-v110.r2{border-color:#cbd5e1;background:linear-gradient(90deg,#f8fafc,#fff)}
.honor-slot-v110.r3{border-color:#fdba74;background:linear-gradient(90deg,#fff7ed,#fff)}
.honor-slot-v110.empty{opacity:.6;border-style:dashed}
.honor-slot-rank-v110{grid-row:1/3;justify-self:start;background:#0f9d58;color:#fff;border-radius:999px;padding:4px 9px;font-size:10.5px;font-weight:950;white-space:nowrap}
.honor-slot-v110.r1 .honor-slot-rank-v110{background:#f59e0b}
.honor-slot-v110.r2 .honor-slot-rank-v110{background:#64748b}
.honor-slot-v110.r3 .honor-slot-rank-v110{background:#ea580c}
.honor-slot-avatar-v110{grid-column:2;grid-row:1;width:38px;height:38px;border-radius:12px;background:#0f9d58;color:#fff;display:grid;place-items:center;overflow:hidden;font-weight:900;font-size:15px}
.honor-slot-avatar-v110.placeholder{background:#e2e8f0;color:#94a3b8}
.honor-slot-avatar-v110 img{width:100%;height:100%;object-fit:cover}
.honor-slot-name-v110{grid-column:3;grid-row:1;justify-self:end;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#10251d;font-size:13.5px;font-weight:900}
.honor-slot-score-v110{grid-column:2/4;grid-row:2;color:#087443;font-size:12.5px;font-weight:850}
.honor-slot-empty-v110{grid-column:2/4;color:#94a3b8;font-size:12px;font-weight:700}
.honor-cat-cta-v110{margin-top:12px;border:1px dashed #bbf7d0;background:#fbfffc;border-radius:14px;padding:10px 12px;text-align:center;color:#087443;font-size:12.5px;font-weight:800}
.honor-manual-section-v110{margin-top:18px}
.honor-manual-grid-v110{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.honor-manual-card-v110{border:1px solid #e2eee6;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.045);display:flex;flex-direction:column}
.honor-manual-media-v110{width:100%;height:130px;background:#f0fdf4;display:flex;align-items:center;justify-content:center;overflow:hidden}
.honor-manual-media-v110 img{width:100%;height:100%;object-fit:cover}
.honor-manual-fallback-v110{font-size:38px}
.honor-manual-body-v110{padding:12px 14px;display:grid;gap:4px}
.honor-manual-type-v110{color:#087443;font-size:11px;font-weight:900;text-transform:uppercase}
.honor-manual-body-v110 b{color:#10251d;font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.honor-manual-body-v110 small{color:#64748b;font-size:12px;font-weight:700}
.honor-manual-actions-v110{display:flex;gap:10px;margin-top:6px}
.honor-image-field-v110 label{margin-bottom:6px}
.honor-image-row-v110{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.honor-image-preview-v110{width:96px;height:96px;border-radius:16px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #e2e8f0;flex:0 0 auto}
.honor-image-preview-v110 img{width:100%;height:100%;object-fit:cover}
.honor-image-preview-v110 span{color:#94a3b8;font-size:11px;text-align:center;padding:4px}
.honor-image-actions-v110{display:flex;flex-direction:column;gap:6px;flex:1;min-width:180px}
.honor-image-actions-v110 small{color:#64748b;font-size:11.5px;line-height:1.4}
@media(max-width:1000px){.honor-cat-columns-v110{grid-template-columns:1fr}}

/* V111 CANONICAL HONORS BOARD (2026-07-14)
   Every recognition uses a single TOP 2 - TOP 1 - TOP 3 composition.
   The former special-honors gallery was intentionally removed: it duplicated
   cards already displayed in the ranking blocks. */
.honors-board-v111{background:linear-gradient(180deg,#fff,#f7fffb)!important;border:1px solid #dbeee4!important;border-radius:24px!important}
.honor-top-groups-v111{display:grid;grid-template-columns:1fr;gap:16px}
.honor-top-block-v111{min-width:0;border:1px solid #d8f3e2;background:linear-gradient(180deg,#f5fff9,#fff);border-radius:22px;padding:15px;box-shadow:0 14px 32px rgba(8,116,67,.06)}
.honor-top-block-head-v111{display:flex;align-items:center;gap:8px;margin-bottom:13px}.honor-top-block-head-v111>span{font-size:20px}.honor-top-block-head-v111 h3{margin:0;color:#073f2a;font-size:17px;font-weight:950;line-height:1.25}
.honor-top-grid-v111{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:8px}
.honor-top-card-v111{position:relative;display:grid;justify-items:center;gap:6px;min-width:0;padding:10px 7px 11px;border:1px solid #e2eee6;border-radius:17px;background:#fff;text-align:center;box-shadow:0 10px 24px rgba(15,23,42,.045);overflow:hidden}
.honor-top-card-v111:before{content:"";position:absolute;inset:0 0 auto;height:50px;background:linear-gradient(135deg,#ecfdf5,#fff7ed)}.honor-top-card-v111>*{position:relative;z-index:1}
.honor-top-card-v111.rank-1{margin:-9px 0 -2px;padding:14px 10px 14px;border:2px solid #d9ae4d;background:linear-gradient(180deg,#fffdf4,#fff);box-shadow:0 17px 34px rgba(174,126,24,.16)}
.honor-top-card-v111.rank-2{border-color:#b7c4ce}.honor-top-card-v111.rank-3{border-color:#df9f77}
.honor-top-rank-v111{border-radius:999px;background:#0f9d58;color:#fff;padding:4px 7px;font-size:10px;font-weight:950;letter-spacing:.04em;white-space:nowrap}.rank-1 .honor-top-rank-v111{background:#c78916;padding:5px 9px}.rank-2 .honor-top-rank-v111{background:#64748b}.rank-3 .honor-top-rank-v111{background:#d96725}
.honor-top-brand-v111{display:flex;align-items:center;justify-content:center;gap:4px;max-width:100%;padding:3px 5px;border-radius:999px;background:#fff;border:1px solid #d8f3e2}.honor-top-brand-v111 img{width:16px;height:16px;border-radius:50%;object-fit:cover}.honor-top-brand-v111 span{font-size:8px;font-weight:950;color:#087443;white-space:nowrap}
.honor-top-avatar-v111{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;overflow:hidden;background:#0f9d58;color:#fff;border:3px solid #fff;outline:1px solid #bbf7d0;font-weight:950;font-size:19px}.honor-top-avatar-v111 img{width:100%;height:100%;object-fit:cover}.rank-1 .honor-top-avatar-v111{width:62px;height:62px;border-radius:20px;font-size:24px;box-shadow:0 12px 22px rgba(8,116,67,.18)}
.honor-top-card-v111 h4{width:100%;margin:0;color:#10251d;font-size:13px;line-height:1.18;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-1 h4{font-size:15px}.honor-top-card-v111 strong{font-size:10px;color:#087443;line-height:1.2;white-space:nowrap}.honor-top-card-v111 p{min-height:28px;margin:0;color:#475569;font-size:10px;line-height:1.3;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rank-1 p{font-size:11px}
.honor-top-actions-v111{display:flex;justify-content:center;flex-wrap:wrap;gap:4px;width:100%;margin-top:1px}.honor-top-actions-v111 button{appearance:none;border:1px solid #bde8cb;background:#fff;color:#087443;border-radius:999px;padding:5px 7px;font-size:10px;font-weight:900;line-height:1;white-space:nowrap;cursor:pointer}.honor-top-actions-v111 button.primary{background:#0f9d58;border-color:#0f9d58;color:#fff}.honor-top-actions-v111 button.danger{border-color:#fecaca;color:#b42318}.honor-top-actions-v111 button:hover{filter:brightness(.97)}
.honor-top-empty-v111{min-height:170px;align-content:center;gap:10px;border-style:dashed;background:#fbfffc;color:#64748b}.honor-top-empty-v111 span{font-weight:950;color:#087443}.honor-top-empty-v111 b{font-size:11px;line-height:1.4}.honor-top-detail-v111{display:grid;justify-items:center;gap:10px;text-align:center;padding:8px}.honor-top-detail-v111 img{width:48px;height:48px;border-radius:50%;object-fit:cover}.honor-top-detail-v111 span{color:#087443;font-size:12px;font-weight:950;letter-spacing:.08em}.honor-top-detail-v111 h2,.honor-top-detail-v111 p{margin:0}.honor-top-detail-v111 b{color:#c78916}
@media(max-width:760px){.honor-top-groups-v111{grid-template-columns:1fr;gap:12px}.honor-top-block-v111{padding:12px;border-radius:18px}.honor-top-block-head-v111 h3{font-size:16px}.honor-top-grid-v111{gap:6px}.honor-top-card-v111{padding:9px 4px 10px;border-radius:14px;gap:5px}.honor-top-card-v111.rank-1{margin:-7px 0 -1px;padding:12px 5px}.honor-top-brand-v111{padding:2px 3px}.honor-top-brand-v111 img{width:14px;height:14px}.honor-top-brand-v111 span{font-size:7px}.honor-top-avatar-v111{width:42px;height:42px;border-radius:14px;font-size:16px}.rank-1 .honor-top-avatar-v111{width:56px;height:56px;border-radius:18px;font-size:21px}.honor-top-card-v111 h4{font-size:12px}.rank-1 h4{font-size:14px}.honor-top-card-v111 strong{font-size:9px}.honor-top-card-v111 p{font-size:9px;min-height:24px}.rank-1 p{font-size:10px}.honor-top-actions-v111{gap:3px}.honor-top-actions-v111 button{padding:5px 6px;font-size:9px}.honor-top-empty-v111{min-height:148px}}
@media(max-width:640px){.honor-slot-name-v110{max-width:100px}.honor-manual-grid-v110{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}

/* ===== Zalo-style community chat (V45) ===== */
.zalo-app{display:grid;grid-template-columns:320px 1fr;gap:0;border:1px solid #EAECF0;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 10px 26px rgba(16,24,40,.045);height:min(720px,78vh);margin-bottom:18px}
.zalo-sidebar{border-right:1px solid #EAECF0;display:flex;flex-direction:column;background:#FAFBFC;min-width:0}
.zalo-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 8px}
.zalo-sidebar-head h3{margin:0;font-size:17px}
.zalo-search{margin:0 14px 10px;border:1px solid #E4E7EC;border-radius:12px;padding:9px 12px;background:#fff}
.zalo-group-list{flex:1;overflow-y:auto;padding:0 8px}
.zalo-group-item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;cursor:pointer}
.zalo-group-item:hover{background:#F2F4F7}
.zalo-group-item.active{background:#ECFDF3}
.zalo-group-item .group-avatar{width:46px;height:46px;border-radius:14px;background:#ECFDF3;color:#067647;display:grid;place-items:center;font-weight:950;flex:none;overflow:hidden}
.zalo-group-item .group-avatar img{width:100%;height:100%;object-fit:cover}
.zalo-group-info{min-width:0;flex:1}
.zalo-group-info b{display:block;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zalo-group-info small{display:block;color:#667085;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zalo-group-meta small{color:#98A2B3;font-size:11px}
.zalo-sidebar-foot{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-top:1px solid #EAECF0}
.zalo-sidebar-foot .linkbtn{text-align:left;background:none;border:0;padding:8px 0;color:#12B76A;font-weight:850;cursor:pointer}
.zalo-main{display:flex;flex-direction:column;min-width:0;background:#fff}
.zalo-empty{margin:auto;text-align:center;color:#667085;padding:30px;max-width:320px}
.zalo-empty div{font-size:40px;margin-bottom:10px}
.zalo-chat-head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #EAECF0}
.zalo-chat-head-info{flex:1;min-width:0}
.zalo-chat-head-info b{display:block;font-size:15.5px}
.zalo-chat-head-info small{color:#667085;font-size:12px}
.zalo-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#F8FAFB}
.zalo-bubble-row{display:flex}
.zalo-bubble-row.mine{justify-content:flex-end}
.zalo-bubble-row.theirs{justify-content:flex-start}
.zalo-bubble{max-width:72%;background:#fff;border:1px solid #EAECF0;border-radius:16px;padding:10px 13px}
.zalo-bubble-row.mine .zalo-bubble{background:#DCFCE7;border-color:#BBF7D0}
.bubble-author{display:block;font-size:12px;color:#12B76A;margin-bottom:3px}
.zalo-bubble p{margin:2px 0;color:#1D2939;white-space:pre-wrap;word-break:break-word}
.bubble-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.bubble-meta small{color:#98A2B3;font-size:11px}
.bubble-meta .linkbtn{background:none;border:0;color:#667085;cursor:pointer;font-weight:800;font-size:12px}
.chat-media-wrap{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.chat-media{max-width:220px;max-height:220px;border-radius:12px;display:block;object-fit:cover}
.chat-file-chip{display:inline-flex;gap:6px;align-items:center;border:1px solid #D1FADF;background:#F6FEF9;color:#067647;border-radius:999px;padding:6px 10px;font-weight:850;font-size:12px;text-decoration:none}
.share-card{display:flex;gap:10px;align-items:center;border:1px solid #D0D5DD;background:#F9FAFB;border-radius:14px;padding:10px;margin-top:6px}
.share-card .group-avatar{width:40px;height:40px;border-radius:10px;background:#fff;display:grid;place-items:center;flex:none;overflow:hidden}
.share-card .group-avatar img{width:100%;height:100%;object-fit:cover}
.share-card b{display:block;font-size:13.5px}
.share-card small{color:#667085;font-size:11.5px}
.share-card em{display:block;color:#12B76A;font-weight:900;font-style:normal;margin-top:2px}
.share-card.data{flex-direction:column;align-items:stretch;gap:4px}
.share-card.data b{margin-bottom:4px}
.share-row{display:flex;justify-content:space-between;font-size:12.5px;color:#344054;padding:2px 0}
.share-row b{color:#101828}
.zalo-compose{border-top:1px solid #EAECF0;padding:10px 14px 14px;background:#fff}
.zalo-compose-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.zalo-compose-tools label.btn{cursor:pointer;display:inline-flex;align-items:center}
.zalo-compose-row{display:flex;gap:10px;align-items:flex-end}
.zalo-compose-row textarea{flex:1;min-height:44px;max-height:120px;border:1px solid #E4E7EC;border-radius:14px;padding:11px 13px;resize:vertical;font-family:inherit}
#chatComposePreview .chat-files{margin-bottom:8px}
.preview-chip{display:inline-flex;gap:6px;align-items:center;border:1px solid #D1FADF;background:#F6FEF9;color:#067647;border-radius:999px;padding:6px 10px;font-weight:850;font-size:12px;margin:0 6px 6px 0}
.preview-chip.share{border-color:#FED7AA;background:#FFFAEB;color:#B54708}
.preview-chip a{cursor:pointer;color:#98A2B3;font-weight:900}
.share-pick-list{display:grid;gap:8px;max-height:340px;overflow:auto;margin-top:10px}
.share-pick-item{display:flex;gap:10px;align-items:center;border:1px solid #EAECF0;border-radius:14px;padding:9px;cursor:pointer}
.share-pick-item:hover{background:#F9FAFB}
.share-pick-item .group-avatar{width:38px;height:38px;border-radius:10px;overflow:hidden;flex:none}
.share-pick-item .group-avatar img{width:100%;height:100%;object-fit:cover}
@media(max-width:900px){.zalo-app{grid-template-columns:1fr;height:auto}.zalo-sidebar{border-right:0;border-bottom:1px solid #EAECF0;max-height:260px}.zalo-main{min-height:520px}}

/* === CRM 360°: hồ sơ khách hàng 360° thông minh (drawer, tabs, chỉ số nhanh, tag, chăm sóc, lịch hẹn) === */
.crm360-drawer-bg{align-items:center!important;justify-content:center!important;padding:18px!important}
.crm360-drawer{width:min(640px,94vw);height:auto;max-height:88vh;border-radius:24px;box-shadow:0 26px 90px rgba(0,0,0,.35)}
.crm360-drawer .drawer-body{max-height:calc(88vh - 64px)}
.crm360-head-actions svg{width:18px;height:18px;flex:none}
.crm360-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.crm360-head-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.crm360-head-main b{font-size:20px;word-break:break-word}
.crm360-head-main span{color:var(--muted);font-weight:700}
.crm360-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.crm360-chip{display:inline-flex;border-radius:999px;padding:4px 10px;background:#eef2f7;color:#0f172a;font-weight:850;font-size:11px}
.crm360-chip.good{background:#dcfce7;color:#067a35}
.crm360-chip.bad{background:#fee2e2;color:#991b1b}
.crm360-chip.warn{background:#fef3c7;color:#92400e}
.crm360-head-actions{display:flex;gap:8px;flex:none}
.crm360-head-actions .btn{padding:10px}
.crm360-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.crm360-quick{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.crm360-quick span{display:block;font-size:11px;color:var(--muted);font-weight:850;text-transform:uppercase}
.crm360-quick b{display:block;margin-top:4px;font-size:14px;word-break:break-word}
.crm360-suggest{border:1px dashed #cbd5e1;border-radius:16px;padding:12px 14px;margin-bottom:14px;background:#f8fafc}
.crm360-suggest b{display:block;margin-bottom:4px;color:#0f172a}
.crm360-suggest p{margin:0;color:#334155;font-weight:700}
.crm360-suggest.warn{background:#fffbeb;border-color:#fde68a}
.crm360-suggest.bad{background:#fef2f2;border-color:#fecaca}
.crm360-suggest.good{background:#f0fdf4;border-color:#bbf7d0}
.crm360-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.crm360-box{border:1px solid var(--line);border-radius:16px;padding:12px 14px}
.crm360-box h4{margin:0 0 8px}
.crm360-box p{margin:0 0 6px;font-weight:700}
.crm360-actions-list{margin:0;padding-left:18px}
.crm360-actions-list li{margin-bottom:6px;font-weight:700}
.crm360-tabs{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;padding-bottom:4px}
.crm360-tabs button{flex:none}
.crm360-list{display:flex;flex-direction:column;gap:10px}
.crm360-list-item{border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.crm360-list-item>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.crm360-list-item b{display:block}
.crm360-list-item span{color:var(--muted);font-weight:700;font-size:13px}
.crm360-list-item p{margin:6px 0 0}
.crm360-list-item small{color:#334155}
.crm360-list-right-row{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.crm360-list-item .actions{display:flex;gap:8px;margin-top:8px;justify-content:flex-end}
.crm360-form{border:1px dashed #cbd5e1;border-radius:16px;padding:12px 14px;margin-bottom:14px}
.crm360-form h4{margin:0 0 8px}
.crm360-form .btn{margin-top:10px}
.crm360-form-inline{display:flex;gap:8px;margin-bottom:12px}
.crm360-form-inline input{flex:1;border:1px solid #dbe4ec;border-radius:14px;padding:11px 14px;font:inherit;font-weight:750}
.crm360-tags{display:flex;gap:8px;flex-wrap:wrap}
.crm360-tag{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 6px 6px 12px;background:#eef2f7;font-weight:850}
.crm360-tag button{border:0;background:transparent;cursor:pointer;font-weight:1000;color:#64748b;width:20px;height:20px;border-radius:50%}
.crm360-tag button:hover{background:#e2e8f0}
@media(max-width:1000px){
  .crm360-drawer{width:94vw;max-height:90vh;border-radius:20px}
  .crm360-grid2{grid-template-columns:1fr}
  .crm360-head-actions{width:100%;justify-content:flex-end}
}
@media(max-width:560px){
  .crm360-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crm360-form-inline{flex-direction:column}
  .crm360-form-inline .btn{width:100%}
}

/* Member commission modal (Hoa hồng theo thành viên): bộ lọc ngày luôn xuống dòng
   gọn gàng thay vì chồng chữ lên input ngày, hoạt động tốt cả trên máy tính và điện thoại. */
.member-commission-filter.overview-date-filter{display:flex!important;flex-wrap:wrap!important;gap:10px!important;row-gap:10px!important;align-items:center!important}
.member-commission-filter .overview-filter-pills{flex:1 1 320px!important;flex-wrap:wrap!important;overflow:visible!important;min-width:0!important;-webkit-overflow-scrolling:auto}
.member-commission-filter .overview-filter-pills button{min-width:auto!important;flex:0 0 auto!important}
.member-commission-filter .overview-custom-range{flex:1 1 260px!important;flex-wrap:wrap!important;justify-content:flex-end!important;min-width:0!important}
.member-commission-filter .overview-custom-range input{flex:1 1 130px!important;min-width:0!important}
.member-commission-filter .overview-custom-range .btn{flex:0 0 auto!important;white-space:nowrap!important}
@media(max-width:640px){
  .member-commission-filter.overview-date-filter{flex-direction:column!important;align-items:stretch!important}
  .member-commission-filter .overview-filter-pills{flex:0 0 auto!important;width:100%!important;min-height:0!important}
  .member-commission-filter .overview-custom-range{flex:0 0 auto!important;width:100%!important;justify-content:stretch!important;min-height:0!important}
  .member-commission-filter .overview-custom-range input{flex:1 1 45%!important}
  .member-commission-filter .overview-custom-range .btn{flex:1 1 100%!important}
}

/* Member table row actions: gọn thành 1 nút "Thao tác ⋮" mở menu nổi, không còn tràn/dày đặc ở bất kỳ độ rộng màn hình nào */
.member-actions-menu{position:relative;display:inline-block}
.action-menu-btn{border:1px solid #dcebe2!important;background:#fff!important;color:#0f7a35!important;font-weight:850!important;font-size:13px!important;padding:8px 12px!important;border-radius:10px!important;cursor:pointer;white-space:nowrap!important;line-height:1!important}
.action-menu-btn:hover{background:#f0fdf4!important}
.action-menu-list{position:absolute;top:calc(100% + 6px);right:0;min-width:168px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 16px 40px rgba(15,23,42,.18);padding:6px;display:none;flex-direction:column;gap:2px;z-index:500}
.action-menu-list.open{display:flex}
.action-menu-list.open-up{top:auto;bottom:calc(100% + 6px)}
.action-menu-list button{border:0;background:transparent;text-align:left;padding:10px 12px;border-radius:9px;font-weight:850;font-size:13.5px;color:#0f172a;cursor:pointer;white-space:nowrap;width:100%}
.action-menu-list button:hover{background:#f1f5f9}
.action-menu-list button.danger{color:#dc2626}
.action-menu-list button.danger:hover{background:#fff1f2}
.member-table-wrap .table tr{overflow:visible!important}
@media(max-width:760px){
  .member-actions-menu{width:100%}
  .action-menu-btn{width:100%!important;text-align:center!important;padding:10px 12px!important}
  .action-menu-list{left:0;right:0;min-width:0}
}

/* V104: Thanh vien - giao dien dang the, dong bo chuan thiet ke So ket noi */
.member-page-v104{display:grid;gap:14px}
.member-hero-v104{border:1px solid #dbeee4;background:linear-gradient(135deg,#fff,#f3fff7);border-radius:24px;padding:18px 20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;box-shadow:0 12px 32px rgba(15,80,45,.06)}
.member-hero-v104 span{display:inline-flex;background:#ecfdf5;color:#087443;border:1px solid #bbf7d0;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:950;text-transform:uppercase;white-space:nowrap}
.member-hero-v104 h2{margin:7px 0 5px;color:#10251d;font-size:25px;line-height:1.15;font-weight:950}
.member-hero-v104 p{margin:0;color:#667085;font-size:13.5px;font-weight:750;line-height:1.45;max-width:820px}
.member-hero-v104 .btn{height:42px;white-space:nowrap}
.member-toolbar-v104{border:1px solid #e2eee6;background:#fff;border-radius:18px;padding:10px;display:grid;grid-template-columns:minmax(220px,1.3fr) repeat(3,minmax(140px,.7fr)) auto auto;gap:8px;align-items:center;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.member-search-v104{height:40px;border:1px solid #dbe4ec;border-radius:12px;background:#fcfcfd;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;padding:0 10px;min-width:0}
.member-search-v104 svg{width:18px;height:18px;color:#087443}
.member-search-v104 input{border:0;background:transparent;outline:0;font:inherit;font-size:13px;font-weight:800;min-width:0;color:#334155}
.member-toolbar-v104 select{height:40px;border:1px solid #dbe4ec;border-radius:12px;background:#fcfcfd;padding:0 10px;font:inherit;font-size:13px;font-weight:800;min-width:0;color:#334155}
.member-toolbar-v104 .btn{height:40px;min-height:40px;padding:0 13px;border-radius:12px;font-size:13px;font-weight:900;white-space:nowrap}
.member-card-list-v104{display:grid;grid-template-columns:repeat(3,minmax(300px,1fr));gap:12px}
.member-card-v104{border:1px solid #eaeef0;background:#fff;border-radius:16px;padding:15px 15px 12px;box-shadow:0 1px 2px rgba(15,23,42,.03);display:grid;gap:10px;min-width:0;align-content:start;transition:box-shadow .15s ease,border-color .15s ease}
.member-card-v104:hover{box-shadow:0 8px 22px rgba(15,23,42,.07);border-color:#d6ebdd}
.member-card-head-v104{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
.member-card-head-v104 b{display:block;color:#111827;font-size:15px;line-height:1.25;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-card-head-v104 span{display:block;margin-top:2px;color:#8a94a3;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-card-head-v104 em{font-style:normal;border-radius:999px;border:1px solid #bdead1;background:#f1fdf7;color:#087443;padding:3px 9px;font-size:10.5px;font-weight:800;white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.member-mini-v104{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);gap:5px 10px}
.member-mini-v104 span{font-size:10.5px;color:#9aa4b2;font-weight:700}
.member-mini-v104 b{font-size:12px;color:#334155;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-mini-v104 .linkbtn{font-size:12px;font-weight:800;padding:0}
.member-card-v104 p{margin:0;color:#64748b;font-size:12.5px;font-weight:600;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-card-foot-v104{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:9px;margin-top:1px;border-top:1px solid #f0f3f2}
.member-card-foot-v104 .member-actions-menu{position:relative}
@media(max-width:1320px){
  .member-card-list-v104{grid-template-columns:repeat(2,minmax(280px,1fr))}
  .member-toolbar-v104{grid-template-columns:minmax(220px,1fr) repeat(2,minmax(140px,.7fr)) auto auto}
}
@media(max-width:980px){
  .member-hero-v104{grid-template-columns:1fr;padding:14px;border-radius:18px}
  .member-hero-v104 h2{font-size:22px}
  .member-hero-v104 p{font-size:13px}
  .member-hero-v104 .btn{width:100%;height:38px}
}
@media(max-width:760px){
  .member-page-v104{gap:10px}
  .member-toolbar-v104{grid-template-columns:1fr 1fr;padding:9px;border-radius:16px;gap:7px}
  .member-search-v104{grid-column:1/-1;height:38px}
  .member-toolbar-v104 select,.member-toolbar-v104 .btn{height:36px;min-height:36px;font-size:12px;border-radius:11px;padding:0 8px}
  .member-toolbar-v104 .btn{width:100%}
  .member-card-list-v104{grid-template-columns:1fr;gap:9px}
  .member-card-v104{padding:12px 12px 10px;border-radius:15px;gap:8px}
  .member-card-head-v104 b{font-size:14.5px}
  .member-card-head-v104 em{font-size:10px;max-width:130px}
  .member-mini-v104{grid-template-columns:auto minmax(0,1fr);gap:4px 8px}
  .member-mini-v104 span{font-size:10px}
  .member-mini-v104 b{font-size:12px}
  .member-card-v104 p{font-size:12px;white-space:normal}
  .member-card-foot-v104{flex-wrap:wrap}
}

/* V105: khoa ten/SDT khi tao don cho chinh minh */
.order-modal-smart input.field-locked,.order-modal-smart input[readonly]{background:#f6fef9;border-color:#abefc6;color:#087443;cursor:not-allowed}

/* V111: pham vi uu dai theo nhom san pham va doi tuong ap dung */
.promo-v111 .promo-check-list{max-height:190px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;padding:10px;border:1px solid #d8eadf;border-radius:14px;background:#fbfffd}
.promo-v111 .promo-check-list label{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border:1px solid #e4efe8;border-radius:12px;background:#fff;font-weight:700;color:#173d2b}
.promo-v111 .promo-check-list input{margin-top:2px}
.promo-v111 #pmProductSearch,.promo-v111 #pmMemberSearch{width:100%;margin-bottom:10px}

/* Bổ sung: avatar khách hàng trong Sổ kết nối (thẻ danh sách + hồ sơ 360°) */
.crm-card-head-v101{grid-template-columns:40px minmax(0,1fr) auto}
.crm-card-avatar-v101{width:40px;height:40px;border-radius:12px;overflow:hidden;background:#ecfdf5;color:#087443;font-weight:900;font-size:16px;display:grid;place-items:center;border:1px solid #bbf7d0}
.crm-card-avatar-v101 img{width:100%;height:100%;object-fit:cover}
.crm360-head-avatar{flex:none;width:220px}
.crm360-head-avatar .avatar-preview-v88{width:56px!important;height:56px!important;border-radius:16px!important;font-size:18px!important}
.crm360-head-avatar .avatar-upload-actions-v88 .btn{height:32px!important;min-height:32px!important;font-size:12px!important;padding:0 10px!important}
@media(max-width:760px){.crm360-head-avatar{width:100%}}
.crm360-list-item .crm360-chip{margin-left:6px;vertical-align:middle}

/* ===== V103: Vi thanh qua redesign - action cards, VietQR panel, points sync ===== */
.wallet-action-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.wallet-action-card{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #e4ece6;background:#fff;border-radius:18px;padding:14px 14px;cursor:pointer;box-shadow:0 8px 22px rgba(15,23,42,.045);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.wallet-action-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,23,42,.09);border-color:#c9e6d4}
.wallet-action-card .wac-ico{flex:none;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#eafff0;color:#0f9d58}
.wallet-action-card.blue .wac-ico{background:#eaf1ff;color:#2563eb}
.wallet-action-card.purple .wac-ico{background:#f3ecff;color:#7c3aed}
.wallet-action-card.gold .wac-ico{background:#fff6e0;color:#b7791f}
.wallet-action-card.red .wac-ico{background:#fee2e2;color:#dc2626}
.wallet-action-card .wac-txt{display:grid;gap:2px;min-width:0}
.wallet-action-card .wac-txt b{font-size:13.5px;color:#0f172a;line-height:1.25}
.wallet-action-card .wac-txt small{color:#64748b;font-weight:750;font-size:11.5px;overflow-wrap:anywhere}
.wallet-action-card .wac-arrow{margin-left:auto;color:#94a3b8;font-weight:900;flex:none}
@media(max-width:1180px){.wallet-action-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.wallet-action-strip{grid-template-columns:1fr;gap:10px}.wallet-action-card{padding:13px}}

.linkbtn.blue{color:#2563eb;background:#eaf1ff;border-radius:10px;padding:6px 10px}

.wallet-qr-panel{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;align-items:start;border:1px solid #dfeee3;border-radius:18px;padding:14px;background:#f8fffb}
.wallet-qr-panel img{width:150px;height:150px;border-radius:14px;border:1px solid #e2eee6;background:#fff;object-fit:contain}
.wallet-qr-fields{display:grid;gap:8px}
.wallet-qr-fields>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px dashed #e2eee6;padding-bottom:6px}
.wallet-qr-fields span{color:#64748b;font-weight:800;font-size:12px;text-transform:uppercase}
.wallet-qr-fields b{color:#0f172a;font-weight:900;overflow-wrap:anywhere;text-align:right}
.wallet-qr-fields .btn.mini{padding:6px 10px;font-size:11px;border-radius:10px}
.wallet-qr-hint{grid-column:1/-1;margin:8px 0 0;color:#0f7a35;font-weight:750;font-size:12.5px;background:#eafff0;border-radius:12px;padding:9px 11px}
@media(max-width:520px){.wallet-qr-panel{grid-template-columns:1fr;justify-items:center;text-align:center}.wallet-qr-fields>div{justify-content:space-between;width:100%}}

.wallet-points-linkbar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff8e6;border:1px solid #fde9b8;color:#92620a;border-radius:14px;padding:10px 12px;margin-bottom:12px;font-weight:750;font-size:13px}
@media(max-width:600px){.wallet-points-linkbar{flex-direction:column;align-items:flex-start}}

.gm-points-card{background:linear-gradient(180deg,#fffdf5,#fff)}
.gm-points-card .eyebrow{font-size:11px;text-transform:uppercase;font-weight:900;color:#b7791f;letter-spacing:.04em}
.gm-points-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:4px}
.gm-points-kpis>div{border:1px solid #f3e4bd;background:#fffaf0;border-radius:16px;padding:12px 14px}
.gm-points-kpis span{display:block;color:#92620a;font-weight:800;font-size:11.5px;text-transform:uppercase}
.gm-points-kpis b{display:block;margin-top:6px;font-size:19px;color:#b7791f}
.gm-points-kpis b.warn{color:#dc2626}
.gm-points-recent{display:grid;gap:6px;margin-top:12px}
.gm-points-row{display:grid;grid-template-columns:auto auto 1fr;gap:10px;align-items:center;border-top:1px dashed #f3e4bd;padding-top:8px;font-size:12.5px}
.gm-points-row span{color:#94a3b8;font-weight:700}
.gm-points-row b{font-weight:900}
.gm-points-row b.plus{color:#0f9d58}
.gm-points-row b.minus{color:#dc2626}
.gm-points-row em{color:#475569;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.gm-points-kpis{grid-template-columns:1fr 1fr}.gm-points-row{grid-template-columns:1fr;gap:2px}.gm-points-row em{white-space:normal}}

/* ===== V104: Wallet date filter bar + member wallet list ===== */
.wallet-date-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid #e4ece6;border-radius:16px;padding:10px 12px;margin-bottom:12px}
.wallet-date-presets{display:flex;gap:6px;flex-wrap:wrap}
.wallet-date-presets button{border:1px solid #dfeee3;background:#f8fafc;color:#345044;border-radius:999px;padding:7px 12px;font-weight:850;font-size:12.5px;cursor:pointer}
.wallet-date-presets button.active{background:#0f9d58;color:#fff;border-color:#0f9d58}
.wallet-date-custom{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.wallet-date-custom input[type=date]{-webkit-appearance:none;appearance:none;border:1px solid #dbe4ec;border-radius:10px;padding:6px 8px;font-weight:750;font-size:12.5px;height:36px;line-height:20px;background:#fff;color:#0f172a;box-sizing:border-box;display:inline-block;vertical-align:middle;flex:1 1 96px;min-width:88px}
.wallet-date-custom span{color:#94a3b8;font-weight:900;flex:0 0 auto}
.wallet-date-custom .btn{flex:1 1 100%}
@media(max-width:760px){.wallet-date-bar{flex-direction:column;align-items:stretch;max-width:100%;box-sizing:border-box}.wallet-date-presets{width:100%}.wallet-date-custom{flex-wrap:wrap;width:100%;box-sizing:border-box}.wallet-date-custom input[type=date]{flex:1 1 96px;min-width:88px;width:auto;height:36px;box-sizing:border-box}.wallet-date-custom .btn{flex:1 1 100%;margin-top:2px}}
@media(max-width:480px){.wallet-date-custom input[type=date]{min-width:80px;height:34px;font-size:11.5px;padding:5px 6px}.wallet-date-custom span{display:inline-block}}
.wallet-modern,.wallet-panel,.wallet-chart,.wallet-chart-head,.wallet-legend,.wallet-kpi-grid,.wallet-action-strip{max-width:100%;box-sizing:border-box}
.content{overflow-x:hidden}
.wallet-chart{overflow:hidden}

.wallet-member-search-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.wallet-member-search-row input{flex:1;min-width:220px;border:1px solid #dbe4ec;border-radius:13px;padding:10px 13px;font-weight:750}
.wallet-member-search-row span{color:#64748b;font-weight:800;font-size:12.5px;white-space:nowrap}
.wallet-member-card{border:1px solid #e5e7eb;border-radius:16px;padding:13px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04);display:grid;gap:6px}
.wallet-member-card .wmc-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.wallet-member-card .wmc-head b{font-size:15px}
.wallet-member-card .wmc-head span{color:#64748b;font-weight:750;font-size:12.5px}
.wallet-member-card .wmc-row{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;border-top:1px dashed #eef2f7;padding-top:6px}
.wallet-member-card .wmc-row span{color:#64748b;font-weight:800}
.wallet-member-card .wmc-row strong{color:#087443;font-size:15px}
.wallet-member-card .btn{margin-top:6px}

/* ===== V113: Chi tiết sản phẩm thông minh - điểm nổi bật, so sánh tính năng, đánh giá ===== */
.product-detail-view h4{margin:18px 0 8px;color:#0f172a;font-size:15px}
.product-detail-head{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.product-detail-head img{width:96px;height:96px;object-fit:cover;border-radius:16px;border:1px solid #e5e7eb}
.product-detail-head h3{margin:0 0 4px;font-size:19px}
.product-detail-head p{margin:4px 0}
.product-detail-sales{margin-top:10px}
.product-highlight-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.product-highlight-list li{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:8px 12px;font-weight:700;color:#166534}
.feature-score-list{display:grid;gap:10px}
.feature-score-row{display:grid;grid-template-columns:150px 1fr 56px;align-items:center;gap:10px}
.feature-score-label{font-weight:800;color:#334155;font-size:13px}
.feature-score-track{height:10px;border-radius:999px;background:#eef2f7;overflow:hidden}
.feature-score-fill{height:100%;background:linear-gradient(90deg,#16a34a,#22c55e);border-radius:999px}
.feature-score-value{font-weight:900;color:#0f172a;text-align:right;font-size:12.5px}
.product-review-list{display:grid;gap:10px}
.product-review-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:10px 12px}
.product-review-card .pr-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.product-review-card .pr-head .pr-stars{margin-left:auto}
.product-review-card p{margin:6px 0;color:#334155}
.pr-stars{color:#f59e0b;letter-spacing:1px}
.verified-buyer-badge{background:#dcfce7;color:#067647;font-size:11px;padding:4px 9px}
.product-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.product-detail-view .muted.mini{margin:0 0 10px}
.member-detail-actions .btn{flex:1;min-width:160px}
.member-product-card{cursor:pointer}
.product-showcase-form h4{margin:0 0 8px}
.showcase-row{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.showcase-row input[type=text]{flex:1;border:1px solid #dbe4ec;border-radius:12px;padding:8px 10px;font-weight:650}
.showcase-row input[type=number]{border:1px solid #dbe4ec;border-radius:12px;padding:8px 10px;font-weight:650}
.btn.small{padding:6px 12px;font-size:12.5px}
@media(max-width:560px){.feature-score-row{grid-template-columns:1fr;gap:4px}.feature-score-value{text-align:left}}
/* Inventory toolbar (Quản lý kho nâng cao) — lưới nút riêng, không dùng chung .actions
   để tránh bị flex:1 ép co dồn 7 nút vào 1 hàng và cắt chữ trên điện thoại. */
.inv-toolbar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.inv-toolbar-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:#f8fafc;border-radius:16px;padding:16px 8px;cursor:pointer;font-weight:850;font-size:13px;color:#0f172a;text-align:center;line-height:1.25;transition:.15s ease;min-height:84px}
.inv-toolbar-btn svg{width:20px;height:20px;padding:9px;border-radius:12px;background:#e6f4ea;color:#0f7a35;box-sizing:content-box}
.inv-toolbar-btn:hover{border-color:#16a34a;background:#f0fdf4;transform:translateY(-2px)}
.inv-toolbar-btn:hover svg{background:#dcfce7}
.inv-toolbar-btn:first-child{background:linear-gradient(135deg,#16a34a,#15803d);color:#fff;border-color:transparent;box-shadow:0 10px 24px rgba(21,128,61,.22)}
.inv-toolbar-btn:first-child svg{background:rgba(255,255,255,.2);color:#fff}
.inv-toolbar-btn:first-child:hover svg{background:rgba(255,255,255,.3)}
@media(max-width:1000px){.inv-toolbar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.inv-toolbar-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.inv-toolbar-btn{padding:14px 6px;font-size:12.5px;min-height:78px}.inv-toolbar-btn svg{width:18px;height:18px;padding:8px}}
.commissions-filterbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}.commissions-filterbar select,.commissions-filterbar input{height:42px;border:1px solid #dbe4ec;border-radius:12px;padding:0 12px;font:inherit;font-weight:750;background:#fff}.commissions-filterbar span{color:#64748b}.commissions-bulkbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:10px 14px;margin-bottom:12px}.commissions-bulkbar label{display:flex;align-items:center;gap:8px;font-weight:850;color:#334155}.cm-row-actions{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}
@media(max-width:760px){.commissions-filterbar{flex-direction:column;align-items:stretch}.commissions-filterbar select,.commissions-filterbar input,.commissions-filterbar .btn{width:100%}.commissions-bulkbar{flex-direction:column;align-items:stretch}}

.is-processing{opacity:.7!important;cursor:wait!important;position:relative!important}.is-processing::after{content:'';display:inline-block;width:11px;height:11px;margin-left:7px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-1px;animation:ecoSpin .7s linear infinite}@keyframes ecoSpin{to{transform:rotate(360deg)}}
/* Hóa đơn & thuế — premium responsive finance workspace */
.tax-page-v2{max-width:1540px;margin:0 auto;padding:8px 0 48px;color:#173b2d}.tax-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;background:linear-gradient(135deg,#f5fff8,#fff);border:1px solid #d6eddf;border-radius:24px;padding:28px 30px;margin-bottom:16px;box-shadow:0 12px 35px rgba(19,72,43,.06)}.tax-hero h2{margin:6px 0;font-size:30px;letter-spacing:-.03em}.tax-hero p{margin:0;color:#6d8277;max-width:720px}.tax-connection-pill{display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:150px}.tax-connection-pill small{color:#778b81}.tax-live-dot{width:11px;height:11px;border-radius:50%;background:#cbd5d0;box-shadow:0 0 0 5px #eef5f0;margin-bottom:5px}.tax-live-dot.is-live{background:#39b54a;box-shadow:0 0 0 5px #e3f7e7}.tax-nav{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px}.tax-nav button{border:1px solid #d7e8dd;background:#fff;color:#547064;border-radius:12px;padding:11px 15px;font:600 13px inherit;cursor:pointer;transition:.2s}.tax-nav button:hover,.tax-nav button.active{background:#0d9448;color:#fff;border-color:#0d9448;box-shadow:0 7px 18px rgba(13,148,72,.18)}.tax-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.tax-kpi-grid article{min-height:145px;background:#fff;border:1px solid #dcece1;border-radius:18px;padding:17px;display:flex;flex-direction:column;gap:7px;box-shadow:0 7px 22px rgba(24,78,48,.05)}.tax-kpi-grid small{color:#70857a;font-weight:700}.tax-kpi-grid strong{font-size:23px;letter-spacing:-.03em;color:#078642;white-space:nowrap}.tax-kpi-grid em{font-style:normal;color:#8b9c93;font-size:11px}.tax-kpi-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;background:#e8f8ed;color:#14964d}.tax-kpi-icon svg{width:17px;height:17px}.tax-muted{font-size:17px!important;color:#7f9188!important}.tax-workflow,.tax-panel{background:#fff;border:1px solid #dcece1;border-radius:20px;padding:22px;margin-bottom:16px;box-shadow:0 7px 22px rgba(24,78,48,.04)}.tax-workflow{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#f5fcf7}.tax-workflow h3,.tax-panel h3{margin:5px 0 6px;color:#143c2b}.tax-workflow p,.tax-panel p{margin:0;color:#73877c;font-size:13px}.tax-flow{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.tax-flow span{background:#fff;border:1px solid #cce5d4;border-radius:999px;padding:9px 12px;font-size:12px;font-weight:700;white-space:nowrap}.tax-flow i{color:#38a95e;font-style:normal}.tax-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}.tax-count{color:#0d9448;font-weight:800}.tax-table-wrap{overflow:auto;border:1px solid #e1eee5;border-radius:15px}.tax-table{width:100%;border-collapse:collapse;min-width:760px}.tax-table th,.tax-table td{padding:13px 14px;border-bottom:1px solid #edf3ef;text-align:left;font-size:12px}.tax-table th{background:#f6fbf7;color:#6b8074;text-transform:uppercase;font-size:10px;letter-spacing:.04em}.tax-table tr:last-child td{border-bottom:0}.tax-state{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.tax-state.pending{background:#fff5dc;color:#a96f00}.tax-state.success{background:#e5f8ea;color:#198448}.tax-link{border:0;background:none;color:#078642;font-weight:800;cursor:pointer}.tax-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tax-form-grid label{display:flex;flex-direction:column;gap:7px;color:#527064;font-size:12px;font-weight:700}.tax-form-grid input,.tax-form-grid select{width:100%;min-height:42px;padding:10px 12px;border:1px solid #d6e7dc;border-radius:11px;background:#fbfefc;color:#173b2d;font:500 13px inherit;outline:none}.tax-form-grid input:focus,.tax-form-grid select:focus{border-color:#39b54a;box-shadow:0 0 0 3px #e2f7e7}.tax-form-foot{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:18px;padding-top:15px;border-top:1px solid #edf3ef}.tax-form-foot .actions{display:flex;gap:9px}.tax-split-panels{display:grid;grid-template-columns:1fr 1fr;gap:28px}.tax-mini-list{display:grid;gap:8px;margin-top:15px}.tax-mini-list div{display:flex;justify-content:space-between;padding:11px 12px;border-radius:10px;background:#f6fbf7}.tax-mini-list b{color:#078642}.tax-rule-note{margin-top:15px;padding:13px;border-radius:12px;background:#fff8e8;color:#906514;font-size:12px}.status-badge.ok{background:#e5f8ea;color:#198448}.status-badge.neutral{background:#eef3f0;color:#667a70}.status-badge.warn{background:#fff4d9;color:#986b13}.ok-text{color:#198448!important}
@media (max-width:1100px){.tax-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tax-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.tax-page-v2{padding:0 0 90px}.tax-hero{padding:20px;border-radius:18px;flex-direction:column}.tax-hero h2{font-size:25px}.tax-connection-pill{align-items:flex-start}.tax-nav{overflow:auto;flex-wrap:nowrap;padding-bottom:3px;scrollbar-width:none}.tax-nav button{flex:0 0 auto;padding:10px 12px}.tax-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tax-kpi-grid article{min-height:126px;padding:13px;border-radius:15px}.tax-kpi-grid strong{font-size:17px}.tax-kpi-grid small{font-size:11px}.tax-workflow{display:block;padding:17px}.tax-flow{justify-content:flex-start;margin-top:14px;gap:6px}.tax-flow i{display:none}.tax-flow span{font-size:10px;padding:8px}.tax-panel{padding:16px;border-radius:17px}.tax-panel-head{display:block}.tax-panel-head .tax-state,.tax-count{display:inline-flex;margin-top:10px}.tax-form-grid{grid-template-columns:1fr;gap:11px}.tax-form-foot{display:block}.tax-form-foot>div{display:flex;flex-wrap:wrap;margin-top:12px}.tax-form-foot .btn{margin:0 8px 8px 0}.tax-split-panels{display:block}.tax-split-panels>div+div{margin-top:22px}.tax-table{min-width:0}.tax-table thead{display:none}.tax-table,.tax-table tbody,.tax-table tr,.tax-table td{display:block;width:100%}.tax-table tr{padding:12px;border-bottom:1px solid #e7f0ea}.tax-table tr:last-child{border-bottom:0}.tax-table td{border:0;padding:4px 0;display:flex;justify-content:space-between;gap:12px;text-align:right}.tax-table td:before{content:attr(data-label);font-weight:700;color:#789084;text-align:left}.tax-table td.empty{display:block;text-align:center}.tax-table td.empty:before{display:none}}
/* Tax workflow refinements */
.tax-rules-live{margin-top:16px;display:grid;gap:10px}.tax-rules-live h4{margin:0;color:#173b2d}.tax-rule-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:12px;padding:14px;border:1px solid #dcece1;border-radius:15px;background:linear-gradient(135deg,#fbfffc,#f3fbf5)}.tax-rule-row span{display:grid;gap:4px;min-width:0}.tax-rule-row span b{color:#174b34;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tax-rule-row small{color:#71877a;font-size:11px}.tax-rule-row strong{color:#087443;white-space:nowrap}.tax-rule-row em{font-style:normal;color:#9a6a12;background:#fff5dc;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.tax-rule-row .tax-link{border:1px solid #bfe4ca;border-radius:9px;padding:6px 10px;background:#fff;white-space:nowrap}.tax-withholdings-live{margin-top:20px;padding-top:18px;border-top:1px solid #e7f0ea}.invoice-request-btn{border-color:#bfe4ca!important;color:#087443!important;background:#effbf2!important}
@media (max-width:680px){.tax-rule-row{grid-template-columns:1fr auto;gap:8px}.tax-rule-row strong{font-size:13px}.tax-rule-row em{justify-self:start}.tax-rule-row .tax-link{justify-self:end;grid-row:1 / span 2;grid-column:2}}
/* V128 tax configuration: real products/ranks, responsive without fixed data. */
.tax-rules-v128{gap:22px!important}.tax-rule-section{border:1px solid #dcece1;border-radius:18px;padding:18px;background:linear-gradient(135deg,#fff,#f8fdf9)}.tax-section-title,.tax-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}.tax-section-title h4,.tax-editor-head h4{font-size:18px;margin:4px 0;color:#143c2b}.tax-section-title p,.tax-rank-scope p{margin:0;color:#70857a;font-size:12px;line-height:1.55;max-width:720px}.tax-product-search{width:100%;min-height:42px;padding:10px 12px;border:1px solid #d6e7dc;border-radius:11px;background:#fff;font:500 13px inherit;margin-bottom:10px}.tax-product-list{max-height:280px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-right:3px}.tax-product-option{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #e0eee4;border-radius:12px;background:#fff;cursor:pointer}.tax-product-option input{accent-color:#15984d;flex:0 0 auto}.tax-product-option span{display:grid;gap:3px;min-width:0;flex:1}.tax-product-option b{font-size:12px;color:#173b2d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tax-product-option small{font-size:10px;color:#788d81;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tax-product-option em{font-style:normal;color:#a16800;font-size:10px;font-weight:800;white-space:nowrap}.tax-section-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e8f1eb;margin-top:14px;padding-top:14px;color:#72877c;font-size:11px}.tax-rule-cards{display:grid;gap:9px;margin-bottom:18px}.tax-rule-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:11px;padding:12px 14px;border:1px solid #dcece1;border-radius:14px;background:#f9fdf9}.tax-rule-card>div{display:grid;gap:3px;min-width:0}.tax-rule-card b{color:#174b34;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tax-rule-card small{font-size:11px;color:#72877c}.tax-rule-card strong{color:#087443;white-space:nowrap}.tax-rule-card strong i{font-style:normal;color:#789084;font-size:11px;font-weight:600}.tax-rule-card .tax-link{border:1px solid #bfe4ca;border-radius:9px;background:#fff;padding:6px 10px;white-space:nowrap}.tax-rule-editor{border-top:1px solid #e7f0ea;padding-top:16px}.tax-field-note{display:grid!important;gap:7px!important;color:#527064!important;font-size:12px!important;font-weight:700!important;margin-top:14px}.tax-field-note input{min-height:42px;padding:10px 12px;border:1px solid #d6e7dc;border-radius:11px;background:#fff;font:500 13px inherit}.tax-rank-scope{border:1px solid #dcece1;border-radius:13px;margin:14px 0 0;padding:12px}.tax-rank-scope legend{font-weight:800;color:#174b34;padding:0 5px}.tax-rank-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.tax-rank-option{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid #d7eadc;border-radius:999px;padding:8px 10px;font-size:12px;font-weight:700;color:#315c46;cursor:pointer}.tax-rank-option input{accent-color:#15984d}@media (max-width:680px){.tax-rule-section{padding:14px}.tax-section-title,.tax-editor-head,.tax-section-actions{display:block}.tax-section-title .tax-state{margin-top:8px}.tax-product-list{grid-template-columns:1fr;max-height:240px}.tax-section-actions .btn{width:100%;margin-top:10px}.tax-rule-card{grid-template-columns:1fr auto;gap:8px}.tax-rule-card strong{grid-column:1}.tax-rule-card .tax-state{grid-column:1}.tax-rule-card .tax-link{grid-column:2;grid-row:1 / span 3}.tax-rank-options{display:grid;grid-template-columns:1fr}.tax-rank-option{border-radius:10px}}
/* Invoice request at checkout */
.invoice-vat-preview{margin:12px 0;padding:12px 14px;border:1px solid #bfe8cc;border-radius:14px;background:#f2fbf5;color:#174b2b}.invoice-vat-preview>div{display:flex;justify-content:space-between;gap:14px;padding:4px 0}.invoice-vat-preview b{white-space:nowrap}.invoice-vat-preview .invoice-vat-total{margin-top:6px;padding-top:8px;border-top:1px solid #cdebd5;color:#087f3f;font-size:1.05em}.invoice-vat-preview small{display:block;margin-top:6px;color:#63736a}@media(max-width:640px){.invoice-vat-preview>div{font-size:.92rem}.invoice-vat-preview b{font-size:.95rem}}
.tax-date-filter{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:16px 0;padding:18px 20px;border:1px solid #d7eee0;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(22,101,52,.05)}.tax-date-filter h3{margin:4px 0 3px}.tax-date-filter p{margin:0;color:#718277}.tax-date-controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.tax-date-controls label{display:grid;gap:5px;min-width:145px;color:#53665a;font-size:.82rem;font-weight:700}.tax-date-controls select,.tax-date-controls input{min-height:40px;padding:8px 10px;border:1px solid #cfe6d6;border-radius:10px;background:#fff;color:#20382a}.tax-date-controls .btn{min-height:40px;white-space:nowrap}@media(max-width:760px){.tax-date-filter{display:block;padding:15px}.tax-date-controls{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;align-items:end}.tax-date-controls label:first-child{grid-column:1/-1}.tax-date-controls .btn{width:100%;grid-column:1/-1}.tax-date-controls label{min-width:0}}
.tax-workflow-queue .tax-actions{display:flex;gap:8px;flex-wrap:wrap}.tax-workflow-queue .tax-actions .danger{color:#b42318;border-color:#f0c4c4}.tax-workflow-queue td:first-child,.tax-workflow-queue th:first-child{white-space:nowrap}.tax-workflow-queue td:first-child input,.tax-workflow-queue th:first-child input{margin-right:8px;vertical-align:middle}
.tax-row-actions{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.tax-row-actions .tax-link{white-space:nowrap}.tax-row-actions .tax-link.danger{color:#b42318;border-color:#f3c5c5;background:#fff8f8}
.order-invoice-request{padding:14px 16px;border:1px solid #d7eadc;border-radius:15px;background:#f7fcf8}.invoice-check{display:flex;align-items:center;gap:9px;font-weight:800;color:#174b34}.invoice-check input{width:18px;height:18px;accent-color:#159447}.invoice-check span{font-size:12px;font-weight:600;color:#789084}.invoice-fields{margin-top:12px}.invoice-fields[hidden]{display:none}.invoice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.invoice-grid label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#527064}.invoice-grid input{min-height:40px;padding:9px 11px;border:1px solid #d6e7dc;border-radius:10px;background:#fff;font:500 13px inherit}.invoice-grid input:focus{outline:none;border-color:#39b54a;box-shadow:0 0 0 3px #e2f7e7}@media(max-width:680px){.invoice-grid{grid-template-columns:1fr}.invoice-check{align-items:flex-start;line-height:1.4}.invoice-check span{display:block}}

/* V126 HEADER COUNTS (2026-07-14)
   Keep cart/notification counts inside their buttons.  Counts are compact and
   remain readable on desktop and mobile without covering their SVG icons. */
.top-actions .notify-bell{position:relative;overflow:visible;isolation:isolate}
.top-actions .notify-bell>svg{transform:translate(-2px,2px)}
.top-actions .notify-count{display:none;right:2px;top:2px;z-index:2;box-sizing:border-box;min-width:16px;height:16px;padding:0 3px;border:1.5px solid #fff;border-radius:999px;place-items:center;line-height:1;font-size:9px;font-weight:900;letter-spacing:-.02em;box-shadow:0 2px 5px rgba(127,29,29,.22)}
@media(max-width:760px){.top-actions .notify-bell{width:42px!important;min-width:42px!important;height:42px}.top-actions .notify-count{right:-2px;top:-2px;min-width:15px;height:15px;font-size:8px;padding:0 2px}.top-actions .notify-bell>svg{transform:translate(-1px,2px)}}

/* V127 PRODUCT CATALOG (2026-07-14)
   Fixed 1:1 media frame keeps every source image intact.  `contain` is
   intentional: do not crop product bottles, packaging, or promotion art. */
.member-product-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:14px!important}
.member-product-card.product-card-premium{display:flex!important;flex-direction:column!important;gap:10px!important;padding:12px!important;border:1px solid #dbeee2!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 22px rgba(15,80,45,.06)!important;min-width:0!important}
.product-card-premium .product-card-media{position:relative!important;width:100%!important;aspect-ratio:1 / 1!important;overflow:hidden!important;border-radius:14px!important;background:#f8fbf9!important}
.product-card-premium .product-card-media>img{display:block!important;width:100%!important;height:100%!important;min-height:0!important;object-fit:contain!important;background:#f8fbf9!important}
.product-card-premium .product-card-media .product-discount-badge{position:absolute!important;top:8px!important;right:8px!important;width:42px!important;height:42px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#ee4d2d!important;color:#fff!important;font-size:11px!important;font-weight:900!important;line-height:1!important;box-shadow:0 4px 10px rgba(183,49,28,.25)!important}
.product-card-premium .mp-info{display:grid!important;gap:5px!important;min-width:0!important}
.product-card-premium .mp-info>b{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;min-height:38px!important;line-height:1.3!important}
.product-card-premium .mp-info>small{color:#7b8d83!important}
.product-card-premium .product-price-line{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;min-width:0!important}
.product-card-premium .product-price-line strong{color:#11853f!important;font-size:20px!important;white-space:nowrap!important}
.product-card-premium .product-price-line del{color:#84948b!important;font-size:12px!important;white-space:nowrap!important}
.product-card-premium .product-promo-badge{display:inline-flex!important;width:max-content!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;margin:0!important;padding:4px 7px!important;border-radius:7px!important;background:#eaf8ed!important;color:#16783b!important;font-size:11px!important;font-weight:900!important}
.product-card-premium .product-card-commission{color:#9a6a0b!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.product-card-premium .product-commission-note{color:#718278!important;font-size:10px!important;line-height:1.25!important}
.product-card-premium .product-card-stock{color:#687a70!important;font-size:12px!important}
.product-card-premium .product-card-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:auto!important}
.product-card-premium .product-card-actions .btn{min-width:0!important;padding:8px 5px!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap!important}
@media(max-width:640px){.member-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.member-product-card.product-card-premium{gap:8px!important;padding:9px!important;border-radius:15px!important}.product-card-premium .product-card-media{border-radius:11px!important}.product-card-premium .mp-info>b{min-height:34px!important;font-size:13px!important}.product-card-premium .product-price-line strong{font-size:16px!important}.product-card-premium .product-price-line del{font-size:10px!important}.product-card-premium .product-card-commission,.product-card-premium .product-card-stock{font-size:10px!important}.product-card-premium .product-card-actions{gap:5px!important}.product-card-premium .product-card-actions .btn{padding:7px 2px!important;font-size:10px!important}.product-card-premium .product-card-media .product-discount-badge{top:6px!important;right:6px!important;width:34px!important;height:34px!important;font-size:9px!important}}
/* Lucky wheel visual refresh */
.lucky-wheel-admin-card{border:1px solid #bfe8cf!important;background:linear-gradient(135deg,#f4fff8 0%,#ffffff 62%,#effbf3 100%)!important;box-shadow:0 14px 32px rgba(15,118,66,.08)}.lucky-wheel-admin-card h3{font-size:25px;letter-spacing:-.02em}.lucky-wheel-admin-card .eyebrow{color:#07864d;font-weight:900}.lucky-wheel-admin-card .section-head{align-items:center}.lucky-wheel-admin-card .btn{border-radius:12px}.lw-admin-summary{padding:12px 14px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px #e2f2e7}.lw-admin-summary b{color:#087f46}.lw-condition-config{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lw-condition-config>div{padding:12px;border:1px solid #d8efe0;border-radius:14px;background:#fbfffc}.lw-condition-grid{display:flex;gap:12px;align-items:center;margin-top:8px}.lw-condition-grid input[type=number]{width:76px}.lw-prize-row{background:#fbfffc;padding:8px;border-radius:12px}
/* Personalized daily tasks */
.lw-prize-row select[data-lw="prize_ref_id"],.lw-prize-row input[data-lw="prize_meta"]{min-width:220px}.lw-prize-row small[data-lw-link-note]{display:block;color:#64748b;font-size:11px;min-width:220px}
.lw-admin-form-v2 h4{margin:20px 0 10px}.lw-condition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lw-condition-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid #d9eee3;border-radius:14px;background:#f8fffb}.lw-condition-card b{width:100%;color:#174b38}.lw-condition-card input{max-width:110px}.lw-reward-card{padding:14px;margin:10px 0;border:1px solid #dcebe3;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(16,76,52,.06)}.lw-reward-title{display:flex;gap:10px;margin-bottom:10px}.lw-reward-title input{flex:1;font-weight:600}.lw-reward-fields,.lw-reward-link{display:grid;grid-template-columns:1.2fr .8fr .9fr .8fr;gap:10px}.lw-reward-link{grid-template-columns:1fr 1fr;margin-top:10px}.lw-reward-card label{display:flex;flex-direction:column;gap:5px;color:#47675a;font-size:12px;font-weight:600}.lw-reward-card input,.lw-reward-card select{width:100%;box-sizing:border-box}.lw-reward-card small{font-weight:400;color:#7a9186}.lw-reward-card [data-lw="prize_ref_id"],.lw-reward-card [data-lw="prize_meta"]{display:block}.lw-admin-form-v2 .lw-prize-list{overflow:visible}@media(max-width:800px){.lw-condition-grid,.lw-reward-fields,.lw-reward-link{grid-template-columns:1fr}.lw-reward-title{flex-direction:column}}
.lw-milestone-list{display:flex;flex-direction:column;gap:7px;width:100%;margin-top:8px}.lw-milestone-list>span{font-size:12px;color:#47675a;font-weight:600}.lw-milestone-line{display:flex;gap:7px;align-items:center}.lw-milestone-line input{flex:1;max-width:none!important}.lw-milestone-line button{padding:6px 10px}
.lw-milestone-list-v3{display:flex;flex-direction:column;gap:10px;width:100%;margin-top:10px;padding:12px;border:1px solid #d9eee3;border-radius:12px;background:#f8fffb}.lw-milestone-line-v3{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end}.lw-milestone-line-v3 label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:#47675a}.lw-milestone-line-v3 input{max-width:none!important}@media(max-width:700px){.lw-milestone-line-v3{grid-template-columns:1fr}.lw-milestone-line-v3 button{width:max-content}}
.personal-task-list{display:grid;gap:10px}.personal-task-card{display:flex;justify-content:space-between;gap:16px;padding:14px;border:1px solid #dcefe4;border-radius:14px;background:#fff}.personal-task-card.done{background:#f2fff7}.personal-task-main{min-width:0;flex:1}.personal-task-main h4{margin:4px 0 5px;color:#064e3b}.personal-task-main p{margin:0 0 6px;color:#64748b}.personal-task-main small{color:#64748b}.personal-task-main .progress{margin-top:8px}.task-group{font-size:11px;text-transform:uppercase;color:#0f9f5b;font-weight:700}.personal-task-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.task-done{color:#07864d;white-space:nowrap}@media(max-width:700px){.personal-task-card{display:block}.personal-task-actions{justify-content:flex-start;margin-top:10px}}
.lucky-wheel-member-card{border:1px solid #f6d58c;background:linear-gradient(135deg,#fffaf0,#fff 58%,#fff5d9);overflow:hidden}.lucky-wheel-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.lucky-wheel-card-head h3{margin:4px 0}.lucky-wheel-card-head p{margin:0;color:#64748b}.lucky-wheel-spins{min-width:100px;text-align:center;border-radius:18px;padding:10px 14px;background:#fff1bd;color:#9a6200}.lucky-wheel-spins b{display:block;font-size:28px;line-height:1}.lucky-wheel-spins span{font-size:12px;font-weight:800}.lucky-wheel-card-grid{display:grid;grid-template-columns:180px 1fr;gap:22px;align-items:center;margin-top:14px}.lucky-wheel-preview{position:relative;width:160px;height:160px;margin:auto}.lucky-wheel-disc{width:160px;height:160px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#ffd166 0 18%,#ef476f 18% 36%,#06d6a0 36% 54%,#118ab2 54% 72%,#f78c6b 72% 86%,#8338ec 86%);border:8px solid #fff;box-shadow:0 8px 25px #b7791f33;color:#fff;text-align:center;font-weight:1000;letter-spacing:1px}.lucky-wheel-pointer{position:absolute;z-index:2;top:-12px;left:calc(50% - 10px);color:#d97706;font-style:normal;font-size:22px}.lucky-wheel-info>b{color:#8a5600;font-size:18px}.lucky-wheel-info p{color:#64748b;line-height:1.5}.lucky-wheel-prizes{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.lucky-wheel-prizes span{padding:6px 9px;border-radius:999px;background:#fff1c7;color:#8a5600;font-size:12px;font-weight:800}.lucky-wheel-admin-card{border:1px solid #d8efdf;background:#f8fffa}.lw-admin-summary{display:flex;gap:20px;flex-wrap:wrap;color:#64748b}.lw-admin-form{max-height:70vh;overflow:auto}.lw-prize-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:15px 0 8px}.lw-prize-head h4{margin:0}.lw-prize-head p{margin:4px 0;color:#64748b;font-size:12px}.lw-prize-list{display:grid;gap:8px}.lw-prize-row{display:grid;grid-template-columns:1.5fr 1fr .75fr .75fr .9fr auto;gap:7px;align-items:center}.lw-prize-row input,.lw-prize-row select{min-width:0;padding:9px;border:1px solid #dbe8df;border-radius:10px}.lucky-wheel-modal{text-align:center;position:relative;padding:8px}.lucky-wheel-modal .lucky-wheel-disc{margin:8px auto 16px;width:230px;height:230px}.lucky-wheel-modal .lucky-wheel-pointer{left:calc(50% - 10px);top:0}.spin-disc.is-spinning{animation:luckyWheelSpin 1.8s cubic-bezier(.12,.75,.2,1)}@keyframes luckyWheelSpin{to{transform:rotate(1080deg)}}.lucky-wheel-sector-labels{font-size:11px;max-width:170px;display:flex;flex-wrap:wrap;justify-content:center;gap:4px}.lucky-wheel-sector-labels span{background:#ffffffcc;color:#5b3a00;border-radius:6px;padding:3px 5px}.lucky-wheel-result{margin:12px auto;padding:12px;border-radius:14px;background:#fff7d6;color:#8a5600;display:flex;flex-direction:column;gap:4px}.lw-rules p{line-height:1.55;color:#475569}.lw-rules table{width:100%}@media(max-width:700px){.lucky-wheel-card-grid{grid-template-columns:1fr}.lucky-wheel-preview{width:135px;height:135px}.lucky-wheel-preview .lucky-wheel-disc{width:135px;height:135px}.lw-prize-row{grid-template-columns:1fr 1fr}.lw-prize-row input,.lw-prize-row select{width:100%}}
