/* Cổng KPI cửa hàng — theo mẫu ka-mobile (Báo cáo KA/sites/ka-mobile): trắng / đen trung tính, xanh lá = đạt,
   đỏ = chưa đạt, số đầy đủ có ₫, khung điện thoại; phần Quản trị dùng cùng token, bố cục rộng cho máy tính. */

:root{
  color-scheme:light;
  --font:'Google Sans Flex','Google Sans',system-ui,-apple-system,'Segoe UI',sans-serif;   /* giống KA Sync (admin.css) */
  --mono:ui-monospace,SFMono-Regular,Consolas,monospace;
  --bg:#ffffff; --page:#f3f4f6; --surface:#ffffff; --text:#111827; --muted:#64748b; --line:#e5e7eb;
  --accent:#374151; --on-accent:#ffffff; --soft:#f3f4f6; --good:#15803d; --warn:#b91c1c; --warn-bg:#fef2f2;
  --good-bg:#f0fdf4; --track:#e5e7eb; --radius:18px;
}
[data-theme=dark]{
  color-scheme:dark;
  --bg:#111418; --page:#0b0d10; --surface:#111418; --text:#f3f4f6; --muted:#9ca3af; --line:#272b33;
  --accent:#d1d5db; --on-accent:#111418; --soft:#1c2027; --good:#4ade80; --warn:#f87171; --warn-bg:#2a1517;
  --good-bg:#132017; --track:#272b33;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{font:14px/1.5 var(--font);color:var(--text);background:var(--page);-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
button,input,select{font:inherit;color:inherit}
button{border:0;background:none;padding:0;cursor:pointer;text-align:inherit}
h1,h2,h3,p{margin:0}
a{color:inherit}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ic{width:16px;height:16px;flex:none}
.muted{color:var(--muted)}
.good{color:var(--good)}.warn{color:var(--warn)}

/* ---------- khung điện thoại ---------- */
.phone{min-height:100vh;background:var(--bg);display:flex;flex-direction:column;container-type:inline-size}
@media (min-width:480px){
  .stage{padding:20px 10px 28px}
  .phone{max-width:410px;margin:0 auto;min-height:calc(100vh - 48px);border:1px solid var(--line);border-radius:28px;overflow:clip}
}
.top{padding:15px 20px 0;background:var(--surface)}
.brand{display:flex;justify-content:space-between;align-items:center;gap:12px}
.brand-name{font-size:11px;font-weight:600;letter-spacing:1.3px;color:var(--muted)}
.app-label{font-size:11px;color:var(--muted);margin-top:1px}
.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--soft);color:var(--muted);font-size:11px;font-weight:600}
.title{font-size:18px;line-height:1.3;letter-spacing:-.2px;font-weight:500;margin:12px 0 4px}
.identity{color:var(--muted);font-size:12px;margin-bottom:9px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.identity select{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:4px 8px;font-size:12px;color:var(--text);max-width:100%}
.period{display:flex;border-bottom:1px solid var(--line);gap:17px}
.period button{min-height:45px;padding:5px 0 10px;color:var(--muted);border-bottom:2px solid transparent;font-size:13px;flex:1;white-space:nowrap;text-align:center}
.period button[aria-pressed=true]{color:var(--text);border-bottom-color:var(--accent);font-weight:650}
.content{padding:20px 20px 22px;flex:1}
.source{margin:0 20px;border-top:1px solid var(--line);padding:7px 0;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}
.source button{display:flex;align-items:center;gap:5px;min-height:30px;font-size:11px}
.dot{width:6px;height:6px;border-radius:50%;background:var(--muted);flex:none}
.dot.ok{background:var(--good)}.dot.err{background:var(--warn)}
.icon-btn{display:inline-flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;padding:4px;color:var(--muted)}
.nav{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--line);display:flex;padding:6px 6px calc(10px + env(safe-area-inset-bottom))}
.nav button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:54px;font-size:11px;color:var(--muted)}
.nav button .ic{width:19px;height:19px}
.nav button[aria-current=page]{color:var(--text);font-weight:650}

/* ---------- menu tính năng (điện thoại: bảng trượt; máy tính: thanh bên) ---------- */
.side{display:none}
.menu-group{font-size:10.5px;font-weight:600;letter-spacing:.7px;text-transform:uppercase;color:var(--muted);padding:14px 10px 6px}
.menu-item{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:0 10px;border-radius:10px;font-size:13px;color:var(--text);text-decoration:none;text-align:left}
.menu-item:hover{background:var(--soft)}
.menu-item[aria-current=page]{background:var(--soft);font-weight:650}
.menu-item[aria-disabled=true]{color:var(--muted);cursor:default}
.menu-item[aria-disabled=true]:hover{background:none}
.menu-item .ic{width:17px;height:17px}
.badge{margin-left:auto;font-size:10.5px;line-height:1.4;padding:1px 7px;border-radius:999px;border:1px solid var(--line);color:var(--muted);white-space:nowrap}
.sheet-backdrop{position:fixed;inset:0;z-index:30;background:rgba(17,24,39,.38);display:flex;justify-content:flex-end}
.sheet{width:min(320px,88vw);height:100%;overflow:auto;background:var(--surface);padding:14px 10px calc(14px + env(safe-area-inset-bottom));box-shadow:-10px 0 30px rgba(17,24,39,.15)}
.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:2px 6px 4px 10px}

/* ---------- máy tính: thanh bên + nội dung 2 cột ---------- */
@media (min-width:960px){
  .stage{padding:0}
  .shell{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100vh}
  .side{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow:auto;padding:20px 12px 14px;background:var(--surface);border-right:1px solid var(--line)}
  .side-brand{padding:0 10px 10px}
  .side-menu{flex:1}
  .side-foot{display:flex;align-items:center;gap:6px;padding:10px;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}
  .phone{max-width:none;margin:0;min-height:100vh;border:0;border-radius:0}
  .nav{display:none}
  .top{padding:20px 36px 0}
  .top>*{max-width:1080px}
  .title{font-size:22px;margin-top:14px}
  .period{max-width:560px}
  .content{padding:26px 36px 28px;max-width:1152px;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 44px;align-items:start}
  .content>*{grid-column:1/-1}
  .content>.section{grid-column:auto}
  .source{margin:0 36px;max-width:1080px}
  .amount,.goal-amount{font-size:48px}
}

/* menu tài khoản */
.menu-wrap{position:relative}
.menu{position:absolute;right:0;top:40px;z-index:10;min-width:230px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 10px 30px rgba(17,24,39,.12)}
.menu-head{padding:8px 10px 10px;border-bottom:1px solid var(--line);display:grid}
.menu-head small{color:var(--muted)}
.menu-theme{padding:10px;display:grid;gap:6px;font-size:12px;color:var(--muted)}
.menu>button,.menu>a{width:100%;min-height:42px;display:flex;align-items:center;gap:10px;padding:0 10px;border-radius:8px;text-decoration:none;font-size:13px}
.menu>button:hover,.menu>a:hover{background:var(--soft)}

/* ---------- khối số liệu ---------- */
.hero{padding:0 0 20px;border-bottom:1px solid var(--line)}
.hero-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}
.amount{font-size:clamp(34px,11.3cqi,46px);line-height:1.12;letter-spacing:-1.4px;margin:5px 0 22px;font-weight:700;white-space:nowrap}
.amount span{font-size:18px;font-weight:400;margin-left:7px;color:var(--muted);letter-spacing:0}
.hero-line{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.attainment{display:flex;flex-direction:column;gap:2px}
.attainment strong{font-size:34px;line-height:1.05;font-weight:700;letter-spacing:-1px}
.attainment small,.plan span{font-size:12px;color:var(--muted)}
.plan{display:flex;flex-direction:column;gap:5px;text-align:right;min-width:0}
.plan b{font-size:18px;line-height:1.2;font-weight:600;white-space:nowrap}
.plan b small{font-size:12px;font-weight:400;color:var(--muted)}
.progress{height:5px;background:var(--track);border-radius:4px;overflow:hidden}
.progress span{display:block;height:100%;background:var(--accent);border-radius:inherit}
.hero .progress{height:6px;margin:13px 0 15px}
[data-status=met] .progress span{background:var(--good)}
[data-status=below] .progress span{background:var(--warn)}
.hero[data-status=met] .attainment strong,.hero[data-status=met] .hero-foot strong{color:var(--good)}
.hero[data-status=below] .attainment strong,.hero[data-status=below] .hero-foot strong{color:var(--warn)}
.hero-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:var(--muted)}
.hero-foot strong{font-size:22px;line-height:1.25;font-weight:650;letter-spacing:-.4px;white-space:nowrap;color:var(--text)}
.hero-foot strong small{font-size:12px;font-weight:400}
.rank{margin-top:10px;font-size:12px;color:var(--muted)}
.rank b{color:var(--text);font-weight:650}
.section{margin-top:23px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.section-title{font-size:13px;font-weight:500;color:var(--muted);line-height:1.4}
.meta{color:var(--muted);font-size:11px}
.visits{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:11px}
.visits strong{font-size:38px;line-height:1.1;letter-spacing:-1px;font-weight:700}
.visits strong small{font-size:13px;font-weight:400;letter-spacing:0}
.visits-plan{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
.visits-plan b{font-size:22px;line-height:1.2;font-weight:650}
.visits-plan small{color:var(--muted);font-size:11px}
.visit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 0 0;border-top:1px solid var(--line)}
.visit-grid div{display:flex;flex-direction:column;gap:2px}
.visit-grid strong{font-size:26px;line-height:1.2;font-weight:650}
.visit-grid span{color:var(--muted);font-size:11px}
.breakdown{width:100%;display:block;padding:15px 0 16px;border-bottom:1px solid var(--line);text-align:left}
.breakdown-main{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:7px;font-size:12px;color:var(--muted)}
.breakdown-main strong{font-size:22px;line-height:1.2;font-weight:650;letter-spacing:-.3px;color:var(--text);white-space:nowrap}
.breakdown-main strong small{font-size:12px;font-weight:400;color:var(--muted);letter-spacing:0}
.breakdown .progress{height:3px}
.breakdown-foot{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin-top:7px}
.breakdown-foot>span:last-child{font-size:18px;font-weight:650;line-height:1.2;white-space:nowrap}
.breakdown-foot small{font-size:11px;font-weight:400}
.note{display:flex;align-items:flex-start;gap:9px;background:var(--soft);color:var(--muted);padding:12px 13px;border-radius:12px;font-size:12px;margin-top:17px}
.note .ic{margin-top:2px}
.note strong{font-weight:650}
.note.alert{background:var(--warn-bg);color:var(--warn)}
.alert-value{display:block;font-size:23px;line-height:1.3;letter-spacing:-.4px;font-weight:650;margin-top:2px}
.alert-value small{font-size:12px;font-weight:400}
.back{display:flex;align-items:center;gap:6px;min-height:38px;font-size:12px;color:var(--accent);margin-bottom:10px}
.empty{text-align:center;padding:38px 8px 40px}
.empty .ic{width:30px;height:30px;color:var(--muted);margin-bottom:16px}
.empty h3{font-size:18px;line-height:1.4;margin:0 0 9px;font-weight:650}
.empty p{color:var(--muted);font-size:13px;margin:0 auto 20px;max-width:290px}
.primary{background:var(--accent);color:var(--on-accent);border-radius:11px;min-height:44px;padding:10px 16px;font-weight:600;font-size:13px;text-align:center}
.loading{color:var(--muted);font-size:13px;padding:30px 0;text-align:center}

/* đội KTV */
.team-summary{display:flex;padding:16px 0 0}
.team-summary div{flex:1}
.team-summary div+div{border-left:1px solid var(--line);padding-left:16px}
.team-summary strong{display:block;font-size:34px;line-height:1.2;font-weight:700;letter-spacing:-.8px;margin-bottom:3px}
.team-summary strong span{font-size:16px;letter-spacing:0;font-weight:400}
.team-summary>div>span{font-size:11px;color:var(--muted)}
.segments{display:flex;gap:7px;margin:0 0 5px;flex-wrap:wrap}
.segments button{min-height:36px;padding:7px 10px;border-radius:8px;color:var(--muted);font-size:11px}
.segments button[aria-pressed=true]{background:var(--soft);color:var(--text);font-weight:650}
.staff{display:flex;align-items:center;width:100%;gap:14px;min-height:78px;padding:14px 0;border-bottom:1px solid var(--line);text-align:left}
.staff-info{flex:1;min-width:0}
.staff-name{display:block;font-size:13px}
.staff-meta{display:block;font-size:11px;margin-top:3px;color:var(--muted)}
.staff-value{text-align:right;white-space:nowrap}
.staff-value strong{display:block;font-size:21px;line-height:1.25;font-weight:650;letter-spacing:-.3px}
.staff-value>span{display:block;font-size:17px;font-weight:600;margin-top:4px}
.staff.me{background:var(--soft);margin:0 -8px;padding-left:8px;padding-right:8px;width:calc(100% + 16px);border-radius:10px}

/* lịch sử */
.chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;align-items:end;margin:20px 0 3px}
.day-col{text-align:center;min-width:0}
.day-bar{height:100px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:6px}
.day-bar span{width:65%;display:block;background:var(--accent);border-radius:5px 5px 0 0;min-height:2px}
.day-col[data-status=met] .day-bar span{background:var(--good)}
.day-col[data-status=below] .day-bar span{background:var(--warn)}
.day-bar em{font-style:normal;font-size:16px;color:var(--muted)}
.day-col small{font-size:11px;color:var(--muted)}
.day-col[aria-pressed=true] small{color:var(--text);font-weight:650}
.history-row{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:13px 0;border-bottom:1px solid var(--line);text-align:left;min-height:61px}
.history-row>span{font-size:12px}
.history-row>span>small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.history-row strong small{font-size:12px;font-weight:400}
.history-row strong{font-size:20px;font-weight:650;white-space:nowrap}

/* mục tiêu */
.goal-amount{margin:8px 0 14px;font-size:clamp(34px,11.3cqi,46px);line-height:1.15;font-weight:700;letter-spacing:-1.3px;white-space:nowrap}
.goal-amount>b{font:inherit}
.goal-amount>b>small{font-size:18px;font-weight:400;color:var(--muted);letter-spacing:0}
.goal-amount>small{display:block;margin-top:9px;font-size:12px;font-weight:400;letter-spacing:0;line-height:1.5;color:var(--muted);white-space:normal}
.goal-amount>small b{font-size:16px;font-weight:500;color:var(--text)}
.goal-caption{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:22px 0 13px;color:var(--muted);font-size:12px}
.goal-caption>div{display:flex;flex-direction:column;gap:5px}
.goal-caption>div:last-child{text-align:right}
.month-pct{font-size:34px;line-height:1.1;font-weight:700;letter-spacing:-.7px;color:var(--text)}
.remaining{font-size:22px;font-weight:650;letter-spacing:-.3px;line-height:1.2;color:var(--text);white-space:nowrap}
.remaining small{font-size:12px;font-weight:400}
.goal-label{font-size:12px;color:var(--muted);margin:6px 0}
.forecast{padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px;font-size:12px}
.forecast strong{font-size:23px;font-weight:650;line-height:1.25;letter-spacing:-.4px}
.forecast strong small{font-size:12px;font-weight:400}
.forecast .good,.forecast .warn{font-size:18px;font-weight:600}
.basis{width:100%;font-size:12px;border-collapse:collapse}
.basis td{padding:9px 0;border-bottom:1px solid var(--line)}
.basis td+td{text-align:right;font-weight:600}
.source-entry{margin:15px 0}
.source-entry strong{display:block;font-size:13px;font-weight:600}
.source-entry p{margin:5px 0;color:var(--muted);font-size:12px}

@media (max-width:365px){
  .top,.content{padding-left:14px;padding-right:14px}
  .source{margin-left:14px;margin-right:14px}
  .plan b{font-size:16px}
  .staff-value strong{font-size:19px}
  .breakdown-main strong{font-size:20px}
  .remaining{font-size:20px}
}

/* ---------- đăng nhập ---------- */
.field{display:grid;gap:6px;font-weight:600;font-size:13px}
.field>span{font-size:13px;font-weight:600}
.input,.select{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:16px;color:var(--text)}
.input:focus,.select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.err-text{color:var(--warn);font-size:13px;font-weight:600}
.hint{font-size:12px;color:var(--muted)}

/* ---------- Quản trị (máy tính) ---------- */
.admin-top{position:sticky;top:0;z-index:5;background:var(--surface);border-bottom:1px solid var(--line)}
.admin-top-in{max-width:1280px;margin:0 auto;min-height:56px;padding:8px 20px;display:flex;align-items:center;gap:14px}
.admin-top .grow{flex:1}
main.admin{max-width:1280px;margin:0 auto;padding:20px 20px 48px;display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
.head{display:grid;gap:6px}
.head h1{font-size:23px;line-height:1.25;letter-spacing:-.5px;font-weight:650}
.admin-body{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;min-width:0}
.pad{padding:18px 20px}
.card h2{font-size:15px;font-weight:650}
.card-title{padding:14px 16px 10px}
.tabs-scroll{overflow-x:auto;padding-bottom:2px}
.seg{display:inline-flex;padding:3px;gap:2px;border-radius:10px;background:var(--soft);border:1px solid var(--line)}
.tabs-scroll .seg{flex-wrap:nowrap}
.seg button{min-height:36px;padding:0 12px;border-radius:8px;font-weight:600;font-size:13px;color:var(--muted);white-space:nowrap}
.seg button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(17,24,39,.1)}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13px}
.admin th,.admin td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
.admin thead th{font-weight:600;color:var(--muted);background:var(--soft)}
.admin td .input,.admin td .select{min-height:38px;font-size:14px}
.admin td.num,.admin th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.admin tr.group-row td{background:var(--soft);font-weight:650;font-size:12.5px;color:var(--muted);padding:8px 12px}
.admin tr.total-row td{font-weight:650}
.admin td small.sub{display:block;color:var(--muted);font-size:11.5px;font-weight:400}
.store-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 16px;padding:14px 16px 10px}
.store-head .hint{margin:0}
.month-stores{display:flex;gap:6px}
.month-store{display:grid;gap:2px;font-size:11px;color:var(--muted);white-space:nowrap}
.month-store .select.sm{min-height:32px;font-size:12px;padding:0 4px;width:138px;min-width:0}
.admin td .select{min-width:150px}
.admin td.name-cell{min-width:170px}
.month-store.fixed .select{border-color:var(--accent);font-weight:600}
.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.actions>.field{flex:1 1 200px;min-width:0}
.btn{min-height:40px;padding:8px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-weight:600;font-size:13px;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;color:var(--text)}
.btn:hover{background:var(--soft)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn.sm{min-height:34px;padding:6px 12px}
.btn.subtle{border-color:transparent}
.btn:disabled{opacity:.55;cursor:default}
.mono{font-family:var(--mono);font-size:12.5px}
.notice{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--soft);font-size:13px}
.notice.ok{border-color:#bbf7d0;background:var(--good-bg)}
.notice.warn{border-color:#fecaca;background:var(--warn-bg)}
.st{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:13px}
.st.ok{color:var(--good)}.st.warn,.st.err{color:var(--warn)}.st.muted{color:var(--muted)}
.switch{position:relative;display:inline-flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}
.switch input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.switch .trk{width:40px;height:20px;padding:0 3px;border-radius:999px;background:#9ca3af;display:flex;align-items:center;flex:none}
.switch .trk::after{content:'';width:14px;height:14px;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.switch input:checked~.trk{background:var(--good);justify-content:flex-end}
.switch input:focus-visible~.trk{outline:2px solid var(--accent);outline-offset:2px}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:20;max-width:calc(100% - 32px);display:flex;align-items:center;gap:8px;
  padding:10px 14px;border-radius:12px;background:var(--text);color:var(--bg);font-weight:600;font-size:13px;box-shadow:0 10px 30px rgba(17,24,39,.2)}
.toast.err{background:var(--warn);color:#fff}
.toast-close{color:inherit;display:inline-flex;padding:2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* =====================================================================================================
   Lớp màu Fluent 2 + kính (Mica / Acrylic) — theo quy tắc giao diện KA Sync (docs/FAQ.md):
   nền Mica gần phẳng có ánh xanh; Acrylic (mờ kính) CHỈ cho thanh trên, menu, thanh dưới, bảng trượt, toast;
   số liệu nằm trên mặt trắng đặc, chia bằng đường kẻ. Màu thương hiệu: xanh Fluent, phụ teal. Không dùng tím.
   Đạt = xanh lá, chưa đạt = đỏ giữ nguyên ý nghĩa.
   ===================================================================================================== */
:root{
  --brand:#0f6cbd; --brand-hover:#115ea3; --brand-soft:#ebf3fc; --brand-line:#b4d6fa; --teal:#038387;
  --accent:#0f6cbd; --on-accent:#ffffff;
  --page:#eef2f6; --line:#e3e8ef;
  --acrylic:rgba(255,255,255,.68); --acrylic-line:rgba(255,255,255,.7);
  --shadow-1:0 1px 2px rgba(15,23,42,.05),0 2px 8px rgba(15,40,80,.05);
  --shadow-2:0 2px 6px rgba(15,23,42,.06),0 12px 32px rgba(15,40,80,.10);
  --mica:radial-gradient(1100px 620px at -5% -10%,rgba(15,108,189,.17),transparent 62%),
         radial-gradient(900px 540px at 105% -5%,rgba(3,131,135,.13),transparent 60%),
         radial-gradient(900px 700px at 60% 115%,rgba(15,108,189,.08),transparent 60%),#eef2f6;
}
[data-theme=dark]{
  --brand:#479ef5; --brand-hover:#62abf5; --brand-soft:rgba(71,158,245,.14); --brand-line:rgba(71,158,245,.4); --teal:#4cc2c4;
  --accent:#479ef5; --on-accent:#0b0d10;
  --page:#0d1015; --line:#262b33;
  --acrylic:rgba(24,28,34,.72); --acrylic-line:rgba(255,255,255,.06);
  --shadow-1:0 1px 2px rgba(0,0,0,.3); --shadow-2:0 12px 32px rgba(0,0,0,.45);
  --mica:radial-gradient(1100px 620px at -5% -10%,rgba(71,158,245,.13),transparent 62%),
         radial-gradient(900px 540px at 105% -5%,rgba(76,194,196,.09),transparent 60%),#0d1015;
}
body{background:var(--mica);background-attachment:fixed}
.acrylic,.admin-top,.nav,.sheet,.menu,.side{background:var(--acrylic);-webkit-backdrop-filter:blur(28px) saturate(1.6);backdrop-filter:blur(28px) saturate(1.6)}
.sheet-backdrop{background:rgba(15,23,42,.28);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.menu{border-color:var(--acrylic-line);box-shadow:var(--shadow-2)}
.toast{box-shadow:var(--shadow-2)}

/* điểm nhấn màu thương hiệu */
.progress span{background:var(--brand)}
.period button[aria-pressed=true]{border-bottom-color:var(--brand)}
.nav button[aria-current=page]{color:var(--brand)}
.menu-item[aria-current=page]{background:var(--brand-soft);color:var(--brand)}
.menu-item[aria-current=page] .ic{color:var(--brand)}
.back{color:var(--brand)}
.primary,.btn.primary{background:var(--brand);border-color:var(--brand);color:var(--on-accent)}
.primary:hover,.btn.primary:hover{background:var(--brand-hover)}
.avatar{background:var(--brand-soft);color:var(--brand)}
.segments button[aria-pressed=true]{background:var(--brand-soft);color:var(--brand)}
.seg button[aria-pressed=true]{color:var(--brand)}
.dot.ok{background:var(--good);box-shadow:0 0 0 3px rgba(21,128,61,.15)}
:focus-visible{outline-color:var(--brand)}
.input:focus,.select:focus{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.switch input:checked~.trk{background:var(--brand)}
.brand-name{color:var(--brand);letter-spacing:1.6px}
.day-bar span{background:var(--brand)}
.notice{background:var(--surface)}

/* điện thoại / máy tính bảng: khung trắng đặc nổi trên nền Mica */
@media (min-width:480px){
  .phone{border-color:var(--acrylic-line);box-shadow:var(--shadow-2)}
}
.nav{border-top-color:var(--acrylic-line)}

/* máy tính: thanh bên Acrylic, đầu trang Acrylic dính trên cùng, số liệu trên mặt trắng */
@media (min-width:960px){
  .phone{background:transparent;box-shadow:none}
  .side{border-right-color:var(--acrylic-line);box-shadow:1px 0 0 var(--line)}
  .top{position:sticky;top:0;z-index:4;background:var(--acrylic);-webkit-backdrop-filter:blur(28px) saturate(1.6);backdrop-filter:blur(28px) saturate(1.6);
    border-bottom:1px solid var(--line)}
  .top>*{max-width:1080px}
  .content{margin:24px 36px 20px;width:auto;max-width:1080px;padding:28px 32px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-1)}
  .source{border-top:0}
  /* tên thương hiệu đã ở thanh bên: đầu trang chỉ giữ nút tài khoản */
  .top .brand{height:0;justify-content:flex-end}
  .top .brand>div:first-child{display:none}
  .top .brand .menu-wrap{transform:translateY(14px)}
}

/* quản trị */
.admin-top{border-bottom-color:var(--line)}
.card{border-color:var(--line);box-shadow:var(--shadow-1)}
.admin thead th{white-space:nowrap}
.admin td.mono{white-space:nowrap}
.admin .switch{white-space:nowrap}
.admin tr.group-row td{background:var(--brand-soft);color:var(--brand)}

/* ô chọn file: tiếng Việt, bấm hoặc kéo thả */
.file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.drop{display:flex;align-items:center;gap:12px;flex:1 1 320px;min-height:56px;padding:10px 16px;border:1.5px dashed var(--brand-line);border-radius:12px;
  background:var(--brand-soft);color:var(--text);cursor:pointer;font-size:13px}
.drop .ic{width:20px;height:20px;color:var(--brand)}
.drop b{color:var(--brand);font-weight:650}
.drop .file-name{margin-left:auto;color:var(--muted);font-size:12px;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50%}
.drop.has-file .file-name{color:var(--text);font-weight:600}
.drop.over{border-style:solid;border-color:var(--brand)}
.file-input:focus-visible+.drop{outline:2px solid var(--brand);outline-offset:2px}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .acrylic,.admin-top,.nav,.sheet,.menu,.side,.top{background:var(--surface)}
}

/* phân tích nguyên nhân + báo cáo Power BI */
.reasons{margin:6px 0 0;padding-left:18px;display:grid;gap:4px}
.split{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.split>span{font-size:13px;display:grid;gap:2px}
.split small{font-size:11px;color:var(--muted)}
.split strong{font-size:20px;font-weight:650;white-space:nowrap}
.split.main>span{font-weight:650}
.link-btn{display:inline-flex;align-items:center;gap:4px;margin-top:8px;font-size:12px;font-weight:600;color:var(--brand)}
.link-btn.block{display:flex;width:100%;justify-content:flex-start;gap:8px;min-height:44px;margin:10px 0 0;padding:0 12px;border-radius:12px;background:var(--brand-soft)}
.link-btn.block .ic:last-child{margin-left:auto}
.report-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0 12px}
.report-head strong{font-size:15px}
/* Khung Power BI luôn 16:9 (khổ báo cáo Power BI mặc định); màn thấp thì thu hẹp để cả khung nằm trong màn hình */
.report-frame{position:relative;width:100%;max-width:max(320px,calc((100vh - 230px) * 16 / 9));margin-inline:auto;aspect-ratio:16/9;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--soft)}
.report-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.check{display:inline-flex;align-items:center;gap:6px;font-size:13px;min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer}
.check input{accent-color:var(--brand)}

/* So sánh và ghi nhận bổ sung: bảng cuộn trong vùng riêng trên điện thoại. */
.comparison-wrap{max-width:100%;overflow:auto;overscroll-behavior-inline:contain;border:1px solid var(--line);border-radius:12px;margin:14px 0}
.comparison-table{width:100%;min-width:620px;border-collapse:collapse;font-variant-numeric:tabular-nums}
.comparison-table th,.comparison-table td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top;font-size:13px}
.comparison-table thead th{background:var(--soft);font-size:12px;color:var(--muted);font-weight:600}
.comparison-table tbody th{font-weight:500;min-width:170px}
.comparison-table td{white-space:nowrap}
.comparison-table tr:last-child>*{border-bottom:0}
.comparison-delta{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:5px;white-space:normal}
.history-controls{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:12px 0}
.history-controls .field{margin:0;min-width:190px;font-size:12px}
.history-controls .input{min-height:42px}
.signal{border-left:3px solid var(--brand);padding:10px 14px;margin:10px 0;background:var(--brand-soft);border-radius:0 10px 10px 0}
.signal strong{font-size:14px}.signal p{font-size:12px;line-height:1.6;margin:5px 0 0;color:var(--muted)}
.source-split{margin:0;font-size:12px}
.source-split>div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--line)}
.source-split dt{color:var(--muted)}.source-split dd{margin:0;white-space:nowrap;font-weight:600}
.rap-line{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0 0;margin-top:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.rap-line strong{font-size:20px;color:var(--text);font-weight:600;white-space:nowrap}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.manual-form{display:grid;gap:14px}.manual-form h2,.manual-form p{margin:0}.manual-form .field{margin:0}
.manual-form textarea{resize:vertical;min-height:70px}
.manual-row-detail{display:grid;gap:8px;margin-top:8px;min-width:180px}.manual-row-detail:empty{display:none}
.manual-log:empty{display:none}.manual-log{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.allocation-table{min-width:800px}
.scroll-hint{display:none}
@media(max-width:959px){.scroll-hint{display:block;margin-top:12px}}
@media(min-width:960px){.content>.section:has(.comparison-wrap){grid-column:1/-1}}
@media(max-width:600px){.form-grid,.form-grid.three{grid-template-columns:1fr}.comparison-table th,.comparison-table td{padding:10px}.history-controls{gap:8px}.manual-form{padding:16px}}

/* màn Phân tích gọn: kết luận, điểm cần chú ý, so sánh 4 chỉ số, chi tiết gập */
.verdict{display:grid;gap:4px;padding:2px 0 18px;border-bottom:1px solid var(--line)}
.verdict-main{font-size:34px;line-height:1.15;font-weight:700;letter-spacing:-.8px}
.verdict[data-status=below] .verdict-main{color:var(--warn)}
.verdict[data-status=met] .verdict-main{color:var(--good)}
.verdict-sub{font-size:12px;color:var(--muted)}
.verdict-reason{font-size:14px;font-weight:600;margin-top:6px}
.verdict-bar{display:flex;gap:3px;height:8px;margin-top:8px}
.verdict-bar span{border-radius:4px}
.verdict-bar .neg,.verdict-legend i.neg{background:var(--warn)}
.verdict-bar .pos,.verdict-legend i.pos{background:var(--good)}
.verdict-legend{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;color:var(--muted)}
.verdict-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px}
.focus{display:grid;gap:2px;width:100%;padding:11px 0;border-bottom:1px solid var(--line);text-align:left}
.focus strong{font-size:14px;font-weight:650}
.focus span{font-size:11.5px;color:var(--muted)}
button.focus strong::after{content:' ›';color:var(--brand)}
.cmp{display:grid;grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr));gap:0 8px;align-items:baseline}
.cmp.three{grid-template-columns:minmax(0,1.1fr) repeat(3,minmax(0,1fr))}
.cmp>span{padding:8px 0;border-bottom:1px solid var(--line)}
.cmp-head{font-size:11px;color:var(--muted);text-align:right}
.cmp-name{font-size:12px}
.cmp-cell{display:grid;text-align:right}
.cmp-cell b{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmp-cell small{font-size:11px;font-weight:600}
details.more{margin-top:22px;border:1px solid var(--line);border-radius:14px;padding:0 14px}
details.more>summary{cursor:pointer;list-style:none;min-height:48px;display:flex;align-items:center;gap:8px;font-weight:650;font-size:13px;color:var(--brand)}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary::before{content:'▸';transition:transform .15s}
details.more[open]>summary::before{transform:rotate(90deg)}
details.more>summary small{font-weight:400;color:var(--muted);font-size:11px}
details.more[open]{padding-bottom:12px}
.footnote{margin-top:14px}
@media (min-width:960px){.content>details.more{grid-column:1/-1}}

/* Chia việc cho KTV */

/* ---------- biểu đồ (dataviz): màu đã chạy validate_palette.js, sáng + tối ---------- */
:root{--viz-1:#2a78d6;--viz-2:#eb6834;--viz-3:#1baf7a;--viz-grid:#e8ebf0;--viz-axis:#c3c2b7;--viz-ink:#52514e;
  --h-n3:#c43e3d;--h-n2:#ee8d89;--h-n1:#f8d4d2;--h-p1:#cde2fb;--h-p2:#86b6ef;--h-p3:#2a78d6;--h-off:#f3f4f6;--h-nodata:#ffffff}
[data-theme=dark]{--viz-1:#3987e5;--viz-2:#d95926;--viz-3:#199e70;--viz-grid:#262b33;--viz-axis:#383835;--viz-ink:#c3c2b7;
  --h-n3:#e66767;--h-n2:#9b3e3d;--h-n1:#55302f;--h-p1:#1f3a5f;--h-p2:#2c5d9e;--h-p3:#3987e5;--h-off:#1c2027;--h-nodata:#111418}
.viz-wrap{position:relative}
.viz-tip{position:absolute;z-index:5;pointer-events:none;display:grid;gap:1px;max-width:240px;padding:7px 10px;border-radius:10px;
  background:var(--text);color:var(--bg);font-size:11.5px;box-shadow:var(--shadow-2)}
.viz-tip b{font-weight:650}
.viz-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:11px;color:var(--muted);margin:2px 0 10px}
.viz-legend span{display:inline-flex;align-items:center;gap:6px}
.viz-legend i{display:inline-block;flex:none}
.viz-legend .sw{width:10px;height:10px;border-radius:3px}
.viz-legend .ln{width:18px;height:0;border-top:2px solid var(--viz-1)}
.viz-legend .ln.plan{border-top:2px dashed var(--muted)}
.viz-legend .ln.fc{border-top:2px dashed var(--viz-1)}
.viz-legend .hc{width:12px;height:12px;border-radius:3px}
.s1{background:var(--viz-1)}.s2{background:var(--viz-2)}.s3{background:var(--viz-3)}
.hc.n3,.heat-cell.n3,.cal-cell.n3{background:var(--h-n3)}
.hc.n2,.heat-cell.n2,.cal-cell.n2{background:var(--h-n2)}
.hc.n1,.heat-cell.n1,.cal-cell.n1{background:var(--h-n1)}
.hc.p1,.heat-cell.p1,.cal-cell.p1{background:var(--h-p1)}
.hc.p2,.heat-cell.p2,.cal-cell.p2{background:var(--h-p2)}
.hc.p3,.heat-cell.p3,.cal-cell.p3{background:var(--h-p3)}
.hc.off,.heat-cell.off,.cal-cell.off{background:var(--h-off)}
.hc.nodata,.heat-cell.nodata,.cal-cell.nodata{background:var(--h-nodata);box-shadow:inset 0 0 0 1px var(--line)}
.heat-cell.noplan,.cal-cell.noplan{background:repeating-linear-gradient(135deg,var(--h-off) 0 3px,var(--line) 3px 4px)}
.heat-scroll{overflow-x:auto;padding-bottom:4px}
.heat{display:grid;gap:2px;align-items:center;min-width:560px}
.heat-day{font-size:10px;color:var(--muted);text-align:center}
.heat-name{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:6px;position:sticky;left:0;background:var(--surface)}
.heat-cell{height:22px;border-radius:4px}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.cal-head{font-size:10.5px;color:var(--muted);text-align:center;padding-bottom:2px}
.cal-cell{min-height:44px;border-radius:8px;padding:4px 6px;display:grid;align-content:space-between;font-size:11px}
.cal-cell b{font-weight:600}
.cal-cell small{font-size:10.5px;font-weight:650;justify-self:end}
.cal-cell.n3 b,.cal-cell.n3 small,.cal-cell.p3 b,.cal-cell.p3 small{color:#fff}
.cal-cell.future{background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--muted)}
.v-svg{display:block;width:100%;height:auto;overflow:visible}
.v-grid{stroke:var(--viz-grid);stroke-width:1}
.v-tick{font-size:11px;fill:var(--muted)}
.v-plan{fill:none;stroke:var(--muted);stroke-width:2;stroke-dasharray:5 4}
.v-act{fill:none;stroke:var(--viz-1);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.v-fc{fill:none;stroke:var(--viz-1);stroke-width:2;stroke-dasharray:4 4;opacity:.8}
.v-dot{fill:var(--viz-1);stroke:var(--surface);stroke-width:2}
.v-lab{font-size:11px;fill:var(--viz-ink)}
.v-lab.strong{font-weight:650;fill:var(--text)}
.v-cross{stroke:var(--viz-axis);stroke-width:1}
.v-hit{fill:transparent;cursor:crosshair}
.mix{display:grid;gap:12px}
.mix-row{display:grid;gap:4px}
.mix-row.total{padding-top:10px;border-top:1px solid var(--line)}
.mix-name{display:flex;justify-content:space-between;gap:8px;font-size:12.5px}
.mix-name b{font-weight:600}
.mix-name small{color:var(--muted);font-size:11.5px;white-space:nowrap}
.mix-bar{display:flex;gap:2px;height:12px}
.mix-bar i{display:block;height:100%;border-radius:3px}
.mix-bar em{font-size:11px;color:var(--muted);font-style:normal}
.mix-txt{font-size:11px;color:var(--muted)}
.verdict-main.muted{color:var(--muted)}
@media (min-width:960px){.content>.section.wide{grid-column:1/-1}}
.heat{min-width:0;justify-content:start}
.heat-cell.future{background:transparent;box-shadow:inset 0 0 0 1px var(--line);opacity:.6}

/* lịch hoạt động 12 tháng (theo mẫu): ô vuông bo góc, một màu đậm dần, bậc 4–5 = đạt KH */
:root{--y0:#eef1f5;--y1:#cde2fb;--y2:#86b6ef;--y3:#5598e7;--y4:#256abf;--y5:#0d366b;--y-off:#e3e6eb;--cell:13px}
[data-theme=dark]{--y0:#1c2027;--y1:#1a3352;--y2:#1f4f8a;--y3:#2a6ec4;--y4:#4f93e8;--y5:#9cc8f7;--y-off:#2a2f37}
.yc,.heat-cell,.cal-cell{border-radius:3px}
.yc.l0,.heat-cell.l0,.cal-cell.l0{background:var(--y0)}
.yc.l1,.heat-cell.l1,.cal-cell.l1{background:var(--y1)}
.yc.l2,.heat-cell.l2,.cal-cell.l2{background:var(--y2)}
.yc.l3,.heat-cell.l3,.cal-cell.l3{background:var(--y3)}
.yc.l4,.heat-cell.l4,.cal-cell.l4{background:var(--y4)}
.yc.l5,.heat-cell.l5,.cal-cell.l5{background:var(--y5)}
.yc.off,.heat-cell.off,.cal-cell.off{background:var(--y-off)}
.yc.noplan,.heat-cell.noplan,.cal-cell.noplan{background:repeating-linear-gradient(135deg,var(--y0) 0 3px,var(--y2) 3px 4px)}
.heat-cell{height:20px}
.year-scroll{overflow-x:auto;padding-bottom:6px}
.year-inner{display:grid;gap:4px;width:max-content}
.year-months{display:grid;grid-auto-flow:column;column-gap:3px;margin-left:26px;font-size:10.5px;color:var(--muted);height:14px}
.year-months span{white-space:nowrap}
.year-body{display:flex;gap:4px}
.year-days{display:grid;grid-template-rows:repeat(7,var(--cell));row-gap:3px;width:22px;font-size:10px;color:var(--muted);line-height:var(--cell)}
.year-grid{display:grid;grid-template-rows:repeat(7,var(--cell));grid-auto-flow:column;grid-auto-columns:var(--cell);gap:3px}
.year-grid .yc{display:block;width:var(--cell);height:var(--cell)}
.year-grid .yc:hover{outline:2px solid var(--text);outline-offset:1px}
.year-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:8px 0 2px;font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.yl-steps{display:inline-flex;gap:3px}
.yl-steps .yc{display:block;width:12px;height:12px}
.yl-note{flex-basis:100%;text-transform:none;letter-spacing:0;font-size:11px}
.ytiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 16px;margin:4px 0 14px}
.ytiles.low{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line)}
.ytile{display:grid;gap:1px;min-width:0}
.ytile span{font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.ytile b{font-size:18px;font-weight:700;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ytile small{font-size:11px;color:var(--muted)}
@media (max-width:600px){.ytiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:960px){:root{--cell:14px}}
.year-days{position:sticky;left:0;z-index:1;background:var(--surface)}

/* Power BI nhiều báo cáo (CLAUDE-20261105-01) */
.pbi-groups{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.pbi-groups button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-size:14px;font-weight:600;cursor:pointer}
.pbi-groups button:hover{border-color:var(--brand-line)}
.pbi-groups button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff}
.pbi-count{min-width:20px;padding:0 6px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:11px;line-height:18px;text-align:center}
.pbi-groups button[aria-pressed=true] .pbi-count{background:rgba(255,255,255,.22);color:#fff}
.pbi-tag{display:inline-block;margin-right:8px;padding:1px 8px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:11px;font-weight:600;vertical-align:1px}
.pbi-grant summary{cursor:pointer;color:var(--brand);font-size:13px;white-space:nowrap}
.pbi-grant-box{display:grid;gap:6px;margin-top:8px;min-width:220px}
.check.off{opacity:.6}
.pbi-order{display:flex;gap:4px}
.pbi-order .btn{min-width:32px;padding:0 8px}
.pbi-order .btn[disabled]{opacity:.35;cursor:default}
tr.pbi-on td{background:var(--soft)}
.pbi-editing{outline:2px solid var(--accent);outline-offset:-2px}
.pbi-list{list-style:none;margin:0;padding:0 16px 8px}
.pbi-list li{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:12px 8px;border-top:1px solid var(--line);border-radius:10px}
.pbi-list li.pbi-on{background:var(--soft)}
.pbi-info{display:grid;gap:2px;min-width:0}
.pbi-info strong{font-size:14px}
.pbi-acts{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:719px){.pbi-list li{grid-template-columns:auto 1fr}.pbi-acts{grid-column:1/-1;justify-content:flex-start}}

/* Trang xem Power BI — tiện cho người xem (CLAUDE-20261105-03) */
@media (max-width:719px){                                   /* điện thoại: nút nhóm 1 hàng, vuốt ngang */
  .pbi-groups{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;margin-inline:-16px;padding:2px 16px 4px;scrollbar-width:none}
  .pbi-groups::-webkit-scrollbar{display:none}
  .pbi-groups button{flex:none;scroll-snap-align:start}
  .pbi-groups + .segments{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .pbi-groups + .segments button{flex:none}
}
.pbi-actions{display:flex;gap:6px;flex:none}
.pbi-actions .btn svg{width:16px;height:16px}
@media (max-width:719px){                                   /* điện thoại: tên báo cáo 1 dòng riêng, 2 nút hàng dưới */
  .pbi-stage{margin-top:2px}
  .report-head:has(.pbi-actions){flex-wrap:wrap;gap:8px}
  .report-head:has(.pbi-actions) > div:first-child{flex:1 1 100%}
  .pbi-actions{width:100%}
  .pbi-actions .btn.primary{flex:1}
}
.pbi-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:13px}
.pbi-loading .spin{width:18px;height:18px;border:2px solid var(--track);border-top-color:var(--brand);border-radius:50%;animation:pbi-spin .9s linear infinite}
@keyframes pbi-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.pbi-loading .spin{animation:none}}
.pbi-bar,.pbi-rotate{display:none}
/* chế độ toàn màn hình trong cổng: phủ kín cửa sổ, khung 16:9 lớn nhất vừa màn hình */
.pbi-stage.pbi-full{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#0b0d10}
.pbi-full .pbi-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;color:#f3f4f6;font-size:14px}
.pbi-full .pbi-bar strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pbi-full .report-frame{max-width:min(100%,calc((100dvh - 64px) * 16 / 9));border-color:transparent;border-radius:6px}
@media (orientation:portrait){.pbi-full .pbi-rotate{display:block;margin:0;color:#9ca3af;font-size:12px}}
body.pbi-lock{overflow:hidden}

/* Hành động khắc phục + chế độ họp (CLAUDE-20261105-04) */
.hd-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:12px 14px;border:1px solid var(--brand-line);border-radius:14px;background:var(--brand-soft)}
.hd-cta > div{display:grid;gap:2px;min-width:0}
.hd-cta strong{font-size:14px}
.hd-create{flex:none}
.hd-picker{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 12px}
.hd-picker .select{max-width:420px;flex:1 1 220px}
.hd-month{display:flex;align-items:center;gap:6px}
.hd-month strong{min-width:120px;text-align:center;font-size:15px}
.icon-btn.flip svg{transform:scaleX(-1)}
.icon-btn[disabled]{opacity:.35}
.hd-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:6px}
.hd-stat{display:grid;justify-items:center;gap:2px;padding:10px 6px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.hd-stat strong{font-size:20px;font-variant-numeric:tabular-nums}
.hd-stat span{font-size:12px;color:var(--muted)}
.hd-stat.warn strong{color:var(--warn)}
.hd-count{min-width:22px;padding:0 7px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:12px;line-height:20px;text-align:center}
.hd-store{margin:14px 0 6px;font-size:12px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--muted)}
.hd-empty{padding:14px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:13px;text-align:center}
.hd-item{border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-top:8px;overflow:hidden}
.hd-item.open{border-color:var(--brand-line);box-shadow:0 2px 10px rgba(15,40,80,.06)}
.hd-sum{display:flex;width:100%;align-items:center;gap:12px;padding:12px 14px;text-align:left;background:none;border:0;cursor:pointer;color:inherit}
.hd-sum-main{flex:1;display:grid;gap:3px;min-width:0}
.hd-sum-main strong{font-size:14px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.hd-sum-side{display:grid;justify-items:end;gap:6px;flex:none}
.hd-bar{display:block;width:64px;height:5px;border-radius:99px;background:var(--track);overflow:hidden}
.hd-bar i{display:block;height:100%;background:var(--brand);border-radius:inherit}
.hd-st{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:600;white-space:nowrap}
.hd-st.new{background:var(--brand-soft);color:var(--brand)}
.hd-st.run{background:rgba(217,119,6,.14);color:#b45309}
.hd-st.ok{background:var(--good-bg);color:var(--good)}
.hd-st.warn{background:var(--warn-bg);color:var(--warn)}
.hd-st.off{background:var(--soft);color:var(--muted)}
[data-theme=dark] .hd-st.run{color:#fbbf24}
.hd-detail{display:grid;gap:12px;padding:4px 14px 14px;border-top:1px solid var(--line)}
.hd-arrow{color:var(--muted);font-size:18px}
.hd-dl{display:grid;grid-template-columns:120px 1fr;gap:6px 12px;margin:0;font-size:13.5px}
.hd-dl dt{color:var(--muted)}
.hd-dl dd{margin:0;white-space:pre-wrap}
@media (max-width:719px){.hd-dl{grid-template-columns:1fr}.hd-dl dt{margin-top:6px}}
.hd-tools{display:flex;flex-wrap:wrap;gap:8px}
.hd-tools .btn svg{width:16px;height:16px}
.hd-update{display:grid;gap:10px;padding:12px;border-radius:12px;background:var(--soft)}
.hd-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:519px){.hd-row{grid-template-columns:1fr}}
.hd-ta{min-height:76px;padding:10px 12px;resize:vertical;font:inherit;line-height:1.45}
.hd-label{font-size:13px;font-weight:600}
.hd-history{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:10px}
.hd-history li{display:grid;gap:2px;padding-left:12px;border-left:3px solid var(--line)}
.hd-history li.ket_luan{border-left-color:var(--brand)}
.hd-history p{margin:2px 0;white-space:pre-wrap;font-size:13px}
.hd-more summary{cursor:pointer;color:var(--brand);font-size:13px;font-weight:600}
/* form tạo / sửa: khung giữa màn hình (điện thoại: kín màn) */
.hd-backdrop{justify-content:center;align-items:center;padding:16px}
.hd-dialog{width:min(640px,100%);max-height:calc(100dvh - 32px);display:flex;background:var(--surface);border-radius:18px;box-shadow:0 24px 60px rgba(15,23,42,.28);overflow:hidden}
.hd-form{display:flex;flex-direction:column;width:100%;min-height:0}
.hd-form-head,.hd-form-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line)}
.hd-form-head h2{font-size:17px;margin:0}
.hd-form-foot{border-bottom:0;border-top:1px solid var(--line);justify-content:flex-end}
.hd-form-body{display:grid;gap:12px;padding:16px 18px;overflow:auto}
@media (max-width:719px){.hd-backdrop{padding:0;align-items:stretch}.hd-dialog{max-height:none;height:100dvh;border-radius:0}}
/* trình bày trong họp */
.hd-present{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;background:var(--page);overflow:auto}
.hd-p-bar{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px max(16px,env(safe-area-inset-left));background:var(--surface);border-bottom:1px solid var(--line)}
.hd-p-bar strong{font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hd-p-nav{display:flex;gap:6px;flex:none}
.hd-p-nav .btn{min-width:40px;font-size:16px}
.hd-p-body{display:grid;gap:18px;width:min(1120px,100%);margin:0 auto;padding:22px 20px 40px}
.hd-p-head h2{margin:4px 0 8px;font-size:clamp(20px,2.6vw,30px);line-height:1.25}
.hd-p-tags{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.hd-p-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.hd-p-grid section{padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.hd-p-grid h3{margin:0 0 6px;font-size:13px;color:var(--muted);font-weight:600}
.hd-p-grid p,.hd-p-grid li{margin:4px 0;font-size:15px;line-height:1.5;white-space:pre-wrap}
.hd-p-grid ul{margin:0;padding-left:18px}
@media (max-width:899px){.hd-p-grid{grid-template-columns:1fr}}
.hd-conclude{display:grid;gap:10px;padding:16px;border:1px solid var(--brand-line);border-radius:14px;background:var(--brand-soft)}
.hd-conclude h3{margin:0;font-size:15px}
/* luồng họp tự nhập (CLAUDE-20261105-05) */
.hd-backdrop{z-index:1100}
.hd-picker .seg{flex:none}
.hd-month .select{min-width:0;max-width:320px}
.hd-unit{max-width:220px}
.hd-ky-pick{display:grid;gap:8px}
.hd-ky-pick .seg{justify-self:start}
.hd-ready{display:flex;align-items:center;gap:10px;margin:2px 0 6px;padding:10px 14px;border-radius:12px;font-size:13.5px;font-weight:600}
.hd-ready.warn{background:var(--warn-bg);color:var(--warn)}
.hd-ready.ok{background:var(--good-bg);color:var(--good)}
.hd-ready svg{width:18px;height:18px;flex:none}
.hd-units{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.hd-unit-chip{padding:4px 10px;border-radius:999px;background:var(--good-bg);color:var(--good);font-size:12px;font-weight:600}
.hd-unit-chip.warn{background:var(--warn-bg);color:var(--warn)}
.hd-actions-bar{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.hd-actions-bar .btn svg{width:16px;height:16px}
.hd-item.late{border-left:3px solid var(--warn)}
.hd-goal{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px}
.hd-goal > div{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:160px;flex:1 1 180px}
.hd-goal > div.now{border-color:var(--brand-line);background:var(--brand-soft)}
.hd-goal strong{font-size:clamp(16px,2vw,22px);line-height:1.3}
.hd-goal .hd-arrow{align-self:center;flex:none}
.hd-p-grid h3 .hd-st{margin-left:6px;vertical-align:1px}
.hd-conclude-btns{display:flex;flex-wrap:wrap;gap:8px}
.hd-newdue{max-width:240px}
.hd-minutes{margin:0;padding:14px;border-radius:12px;background:var(--soft);white-space:pre-wrap;font:13px/1.6 var(--mono);max-height:60vh;overflow:auto}

/* Menu gọn (CLAUDE-20261106-03) */
.menu-group{padding-top:18px}
.menu-soon{margin-top:10px;border-top:1px solid var(--line);padding-top:6px}
.menu-soon summary{display:flex;align-items:center;min-height:36px;padding:0 10px;font-size:12px;color:var(--muted);cursor:pointer;border-radius:10px;list-style:none}
.menu-soon summary::-webkit-details-marker{display:none}
.menu-soon summary::after{content:'›';margin-left:auto;transition:transform .15s}
.menu-soon[open] summary::after{transform:rotate(90deg)}
.menu-soon summary:hover{background:var(--soft)}
button.side-foot{width:100%;text-align:left;background:none;cursor:pointer}
button.side-foot:hover,button.side-foot[aria-current=page]{background:var(--soft)}
.side-foot .grow{flex:1}
.side-foot .ic{width:14px;height:14px}

/* ---------- Tin Honda (tin_honda.js): danh sách theo ngày + bài đọc; máy tính 2 cột, điện thoại lần lượt ---------- */
.tin{--c-blue:#0F6CBD;--c-green:#107C10;--c-orange:#C75000;--c-red:#C50F1F;--c-teal:#038387;--c-grey:#616161;display:grid;gap:12px}
[data-theme=dark] .tin{--c-blue:#62ABF5;--c-green:#54B054;--c-orange:#F7A35C;--c-red:#F1707B;--c-teal:#4BC2C2;--c-grey:#A0A0A0}
.tin [data-color=blue]{--c:var(--c-blue)}.tin [data-color=green]{--c:var(--c-green)}.tin [data-color=orange]{--c:var(--c-orange)}
.tin [data-color=red]{--c:var(--c-red)}.tin [data-color=teal]{--c:var(--c-teal)}.tin [data-color=grey]{--c:var(--c-grey)}
.tin .sq{display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--c,var(--muted));flex:none}
.tin .n{font-size:11px;color:var(--muted);font-weight:500;margin-left:4px}
.tin-bar{display:grid;gap:10px}
.tin-search{position:relative;display:block}
.tin-search .ic{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted)}
.tin-search .input{padding-left:36px}
.tin-chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.tin-chips::-webkit-scrollbar{display:none}
.tin-chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:12.5px;white-space:nowrap}
.tin-chip:hover{background:var(--soft)}
.tin-chip[aria-pressed=true]{border-color:var(--brand);background:var(--brand-soft);color:var(--brand);font-weight:600}
.tin-chip[aria-pressed=true] .n{color:inherit}
.tin-sum{font-size:12px}
.tin-sum b{color:var(--text)}
.tin-tag{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);font-weight:600;white-space:nowrap}
.tin-new{font-size:10.5px;font-weight:700;color:var(--brand);background:var(--brand-soft);border-radius:6px;padding:0 6px;line-height:18px}
.tin-h{font-size:11px;font-weight:650;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);margin:14px 0 6px;display:flex;align-items:center}
.tin-list>:first-child .tin-h,.tin-list>.tin-agenda:first-child .tin-h{margin-top:2px}
.tin-row{display:grid;gap:4px;width:100%;padding:12px 12px;border-radius:12px;border:1px solid transparent;text-align:left;background:var(--surface)}
.tin-row+.tin-row{margin-top:4px}
.tin-row:hover{background:var(--soft)}
.tin-row[aria-current]{border-color:var(--brand);background:var(--brand-soft)}
.tin-row .meta{display:flex;align-items:center;gap:8px}
.tin-row .time{margin-left:auto;font-size:11.5px;color:var(--muted);white-space:nowrap}
.tin-row .ttl{font-size:14px;line-height:1.4;font-weight:650}
.tin-row .sum{font-size:12.5px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tin-row .flags{display:flex;gap:12px;flex-wrap:wrap}
.tin-row .flags .st{font-size:12px}
.tin-row.old .ttl{font-weight:500;color:var(--muted)}
.tin-agenda{padding-bottom:4px}
.tin-dues{display:grid;gap:6px}
.tin-due{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);text-align:left}
.tin-due:hover{background:var(--soft)}
.tin-due .when{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:650;white-space:nowrap;grid-row:span 2}
.tin-due.soon .when{color:var(--warn)}
.tin-due .what{font-size:13px;line-height:1.4}
.tin-due .from{display:flex;align-items:center;gap:6px;min-width:0;font-size:11.5px;color:var(--muted)}
.tin-due .from .tin-tag{display:none}
.tin-due .ttl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tin-more{width:100%;margin-top:10px}
.tin-reader{display:grid;gap:14px;align-content:start;min-width:0}
.tin-reader-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tin-reader-head .meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.tin-reader-head .grow{flex:1;min-width:0}
.tin-title{font-size:20px;line-height:1.35;font-weight:650;letter-spacing:-.2px}
.tin-note{align-items:flex-start;flex-wrap:nowrap}
.tin-note .ic{color:var(--warn);margin-top:2px}
.tin-note ul{margin:4px 0 0;padding-left:18px}
.tin-body{font-size:14.5px;line-height:1.65;display:grid;gap:10px;overflow-wrap:anywhere}
.tin-body ul,.tin-body ol{margin:0;padding-left:22px;display:grid;gap:4px}
.tin-table{overflow-x:auto;border:1px solid var(--line);border-radius:10px}
.tin-table table{border-collapse:collapse;width:100%;font-size:13px}
.tin-table th,.tin-table td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:7px 10px;text-align:left;vertical-align:top}
.tin-table th{background:var(--soft);font-weight:650}
.tin-table tr>:last-child{border-right:0}
.tin-table tbody tr:last-child>*{border-bottom:0}
.tin-cards{display:grid;gap:8px}
.tin-card{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:grid;gap:6px;font-size:13px}
.tin-card dl{margin:0;display:grid;grid-template-columns:minmax(90px,38%) 1fr;gap:4px 12px}
.tin-card dt{color:var(--muted)}.tin-card dd{margin:0}
.tin-sec h3{font-size:13px;font-weight:650;margin:0 0 8px}
.tin-files{display:grid;gap:6px}
.tin-file{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:6px 10px 6px 6px;background:var(--surface)}
.tin-file .open{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-decoration:none;min-height:40px}
.tin-file .open:hover .name{text-decoration:underline}
.tin-file .thumb{width:40px;height:40px;flex:none;border-radius:8px;background:var(--soft);display:grid;place-items:center;font-size:10px;font-weight:700;color:var(--muted);object-fit:cover}
.tin-file .name{flex:1;min-width:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tin-file .size{font-size:11.5px;color:var(--muted);white-space:nowrap}
.tin-file .go{font-size:12.5px;font-weight:600;color:var(--brand);text-decoration:none;padding:6px 4px}
.tin-file.off{padding:6px 10px 6px 6px;color:var(--muted)}
.tin-file.off .size{white-space:normal;text-align:right;max-width:45%}
.tin-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px}
.tin-actions .btn{display:inline-flex;align-items:center;gap:8px;text-decoration:none}
.tin-pick{display:none}
.tin-list{position:relative}
.tin-pick .hint{display:flex;align-items:center;gap:8px;font-size:12.5px;padding:12px 14px;border:1px dashed var(--line);border-radius:12px}
.tin-x{display:none}
.tin-wrap.reading .tin-list{display:none}
@media (max-width:959px){.tin.reading>.tin-bar,.tin.reading>.tin-sum{display:none}}
@media (min-width:960px){
  .tin-bar{grid-template-columns:minmax(240px,340px) minmax(0,1fr);align-items:center}
  .tin-wrap{display:grid;grid-template-columns:minmax(300px,400px) minmax(0,1fr);gap:28px;align-items:start}
  .tin-wrap.reading .tin-list{display:block}
  .tin-list{max-height:calc(100vh - 250px);overflow:auto;padding-right:6px}
  .tin-reader{position:sticky;top:150px;max-height:calc(100vh - 170px);overflow:auto;padding:4px 18px 20px 2px}
  .tin-pick{display:grid;gap:12px}
  .tin-agenda.list{display:none}
  .tin-back{display:none}
  .tin-x{display:inline-flex}
  .tin-title{font-size:23px}
}

/* ---------- Trang đăng nhập (06/11/2026) — theo bản thiết kế Báo cáo KA/sites/ka-mobile/dist/login.html ----------
   Luôn nền sáng (cả khi chọn giao diện tối). Máy tính: thẻ kính giữa nền sóng, nền dịch theo con trỏ. Điện thoại: không khung. */
.login{--l-blue:#0755e9;--l-blue-hover:#0346ce;--l-ink:#0d153c;--l-muted:#515b77;--l-border:#c3cce1;--l-danger:#b42332;--mx:0px;--my:0px;
  color-scheme:light;position:relative;min-height:100svh;color:var(--l-ink);background:#f4f8ff;font-family:var(--font);font-synthesis:none}
.login-scenery{position:fixed;inset:0;overflow:hidden;z-index:0;pointer-events:none}
.login-scenery img{width:100%;height:100%;display:block;object-fit:cover;transform:scale(1.035)}
.login-stage{position:relative;z-index:1;min-height:100svh;padding:42px 24px;display:grid;grid-template-columns:minmax(0,1fr);place-items:center}
.login-card{min-width:0;width:460px;max-width:100%;padding:30px 48px 26px;border:1.5px solid #fff;border-radius:32px;background:rgb(255 255 255 / 91%);
  box-shadow:0 18px 45px -18px rgb(42 100 201 / 40%),0 4px 12px rgb(49 107 201 / 7%);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.login-brand{display:flex;justify-content:center;align-items:center;gap:12px;white-space:nowrap;font-size:36px;font-weight:700;line-height:44px;letter-spacing:-1.3px;mix-blend-mode:multiply}
.login-brand img{display:block;object-fit:contain;mix-blend-mode:multiply}
.login-intro{margin-top:24px;text-align:center}
.login-intro h1{margin:0;font-size:26px;line-height:32px;font-weight:700;letter-spacing:-.65px}
.login-intro p{margin:6px 0 0;font-size:15px;line-height:22px;color:#303a5a}
.login-form{margin-top:20px}
.login-field+.login-field{margin-top:10px}
.login-input{position:relative}
.login-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:21px;height:21px;color:var(--l-ink);opacity:.68;pointer-events:none}
.login-input>input{appearance:none;width:100%;height:44px;border:1px solid var(--l-border);border-radius:10px;background:rgb(255 255 255 / 74%);color:var(--l-ink);
  font:16px/22px var(--font);padding:10px 14px 10px 49px;outline:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.login-field.has-reveal input{padding-right:48px}
.login-input>input::placeholder{color:#424d6c;opacity:1}
.login-input>input:focus{border-color:#4d86ec;background:#fff;box-shadow:0 0 0 3px rgb(51 115 237 / 12%)}
.login-input:focus-within .login-icon{opacity:.86}
.login-input>input[aria-invalid=true]{border-color:var(--l-danger)}
.login-error{margin:6px 2px 0;color:var(--l-danger);font-size:12px;line-height:18px}
.login-reveal{width:42px;height:42px;display:grid;place-items:center;position:absolute;right:1px;top:1px;padding:0;border-radius:8px;color:var(--l-ink);opacity:.6}
.login-reveal .ic{width:20px;height:20px}
.login-reveal:hover{opacity:1;background:#eef4ff}
.login-remember{width:fit-content;min-height:30px;margin:10px 0 0;display:flex;align-items:center;gap:10px;cursor:pointer;font-size:15px;line-height:22px}
.login-remember input{width:19px;height:19px;margin:0;accent-color:var(--l-blue);cursor:pointer}
.login-alert{margin:10px 0 0;padding:9px 12px;border-radius:10px;background:#fdecee;color:var(--l-danger);font-size:13.5px;line-height:20px}
.login-submit{position:relative;width:100%;height:49px;margin-top:13px;padding:0 14px;border:1px solid #034bd6;border-radius:11px;background:var(--l-blue);color:#fff;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / 18%),0 4px 10px rgb(7 85 233 / 8%);font:600 18px/24px var(--font);display:flex;align-items:center;justify-content:center;gap:10px;
  text-decoration:none;text-align:center;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.login-submit:active{transform:translateY(1px) scale(.99)}
.login-submit:disabled{cursor:wait;opacity:.92}
.login-submit.sm{height:44px;margin-top:24px;font-size:16px;border-radius:9px}
.login-spin{width:20px;height:20px}
.login-spin.is-off{display:none}
.login-link{display:block;width:fit-content;min-height:28px;margin:14px auto 0;padding:2px 5px;border-radius:5px;color:#034ad8;font-size:16px;line-height:24px;font-weight:500}
.login-link:hover{text-decoration:underline;text-underline-offset:4px}
.login :focus-visible{outline:3px solid #1e65ed;outline-offset:4px}
.login-input>input:focus-visible{outline:none}   /* ô nhập đã có viền xanh + quầng sáng riêng: không vẽ thêm viền thứ hai */
.login-dialog{width:min(360px,calc(100% - 40px));padding:28px;border:1px solid #fff;border-radius:24px;background:#fff;color:var(--l-ink);box-shadow:0 24px 80px rgb(21 52 107 / 20%)}
.login-dialog::backdrop{background:rgb(18 35 66 / 18%);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
.login-dialog-x{position:absolute;right:12px;top:12px;width:32px;height:32px;display:grid;place-items:center;border-radius:8px;color:var(--l-ink)}
.login-dialog-x:hover{background:#eef3fa}
.login-dialog-ic{width:28px;height:28px;opacity:.68}
.login-dialog h2{margin:17px 0 10px;font-size:23px;line-height:30px;letter-spacing:-.4px}
.login-dialog p{margin:0;font-size:15px;line-height:23px;color:var(--l-muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (min-width:601px) and (hover:hover) and (pointer:fine){
  .login.is-entering .login-card{animation:login-in .6s cubic-bezier(.2,.7,.2,1) both}
  .login-scenery img{transform:translate3d(var(--mx),var(--my),0) scale(1.04);transition:transform 1.3s cubic-bezier(.15,.65,.25,1);will-change:transform}
  .login.is-entering .login-scenery img{animation:login-scenery .6s ease both}
  .login-submit:not(:disabled):hover{background:var(--l-blue-hover);transform:translateY(-2px);box-shadow:0 8px 20px -8px rgb(7 85 233 / 70%)}
  .login-submit:not(:disabled):active{transform:translateY(0) scale(.99)}
  .login-submit:disabled .login-spin{animation:login-spin 1s linear infinite}
}
@media (max-width:600px){
  .login{background:#f7faff}
  .login-scenery img{transform:none;object-position:center}
  .login-stage{padding:56px 32px 72px}
  .login-card{width:360px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  .login-brand{gap:10px;font-size:clamp(30px,9.65vw,38px);line-height:48px;letter-spacing:-1.05px}
  .login-brand img{width:clamp(38px,11.7vw,46px);height:clamp(38px,11.7vw,46px)}
  .login-intro{margin-top:28px}
  .login-intro h1{font-size:27px;line-height:34px}
  .login-intro p{font-size:16px}
  .login-form{margin-top:26px}
  .login-input>input{height:46px;padding-top:11px;padding-bottom:11px}
  .login-reveal{height:44px;width:44px}
  .login-remember{margin-top:14px;font-size:16px;min-height:34px}
  .login-submit{height:50px;margin-top:18px;font-size:19px}
  .login-submit:disabled .login-spin{animation:login-spin 1s linear infinite}
  .login-link{margin-top:18px;font-size:17px}
}
@media (max-height:520px){.login-stage{padding-top:26px;padding-bottom:40px}}
@media (prefers-reduced-motion:reduce){
  .login *,.login *::before,.login *::after{animation:none!important;transition:none!important}
  .login-scenery img{transform:none!important}
}
@keyframes login-in{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}
@keyframes login-scenery{from{opacity:.6}to{opacity:1}}
@keyframes login-spin{to{transform:rotate(360deg)}}