/* Màu lấy từ songdieu.vn: đỏ rượu vang, vàng, nền kem */
:root { color-scheme: light; --page:#fbf7f1; --surface:#fffdfa; --ink:#231819; --ink2:#5e5658; --muted:#746a6b; --line:#e8ddd0;
  --s1:#7d1424; --s2:#c9a14a; --s3:#7a8b86; --act:#7d1424; --act-ink:#fff; --bad:#b42323; --wash:#f8e9e7;
  --vang:#e0bf6e; --vang-dam:#7d5c1b; --ruou:#3a0910; --ruou-dam:#2b070d; --kem:#fbf3e6; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; --page:#160407; --surface:#25070c; --ink:#fbf3e6; --ink2:#dcc9b8; --muted:#b39f92; --line:#45151d;
  --s1:#d9667a; --s2:#e0bf6e; --s3:#8fa39c; --act:#e0bf6e; --act-ink:#2b070d; --bad:#f29a9a; --wash:#3a0f16; --vang-dam:#f0dca8; } }
  * { box-sizing: border-box; }
  body { margin:0; background:var(--page); color:var(--ink); font:16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif; -webkit-text-size-adjust:100%; }
  main { max-width:1040px; margin:0 auto; padding:16px 16px calc(96px + env(safe-area-inset-bottom)); }
  header { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
  h1 { font-size:20px; margin:0; flex:1; } h2 { font-size:17px; margin:20px 0 8px; }
  button, select, input, textarea { font:inherit; color:inherit; }
  button, .nut { min-height:44px; padding:10px 16px; border-radius:10px; border:1px solid var(--line); background:var(--surface); cursor:pointer; text-decoration:none; color:var(--ink); display:inline-flex; align-items:center; justify-content:center; }
  button[aria-current="page"] { border-color:var(--act); color:var(--act); font-weight:600; }
  .chinh { background:var(--act); border-color:var(--act); color:var(--act-ink); font-weight:600; }
  .nho { min-height:36px; padding:6px 12px; font-size:14px; }
  button:disabled, .tat { opacity:.45; pointer-events:none; }
  :focus-visible { outline:3px solid var(--s1); outline-offset:2px; }
  input[type=text], input[type=datetime-local], textarea, select { width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
  .the { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:10px; }
  .khach { display:grid; grid-template-columns:1fr auto; gap:4px 12px; align-items:center; }
  .khach .ten { font-weight:600; } .khach .nut { grid-row:span 2; }
  .phu { color:var(--ink2); font-size:14px; overflow-wrap:anywhere; } .day { grid-column:1/-1; }
  .nhan { font-size:13px; font-weight:600; color:var(--act); background:var(--wash); border-radius:6px; padding:1px 8px; margin-left:6px; white-space:nowrap; }
  .chon { display:grid; gap:8px; margin:10px 0; border:0; padding:0; }
  .chon label { display:flex; gap:10px; align-items:center; min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
  .chon label:has(input:checked) { border-color:var(--act); background:var(--wash); }
  .chon input { width:20px; height:20px; accent-color:var(--act); }
  .o4 { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
  .so { font-size:26px; font-weight:650; line-height:1.2; } .so small { font-size:15px; font-weight:400; color:var(--ink2); }
  .thanh { display:flex; gap:2px; height:22px; margin:10px 0; }
  .thanh div { border-radius:4px; min-width:4px; }
  .chugiai { display:flex; flex-wrap:wrap; gap:6px 18px; font-size:14px; color:var(--ink2); }
  .chugiai i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; }
  .cuon { overflow-x:auto; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
  table { border-collapse:collapse; width:100%; font-size:14px; font-variant-numeric:tabular-nums; }
  th, td { padding:9px 12px; text-align:right; white-space:nowrap; border-bottom:1px solid var(--line); }
  th { color:var(--ink2); font-weight:600; } th:first-child, td:first-child, .trai { text-align:left; }
  tr:last-child td { border-bottom:0; } .tong td { font-weight:650; }
  #dau { display:flex; align-items:center; gap:10px; margin-bottom:10px; } #dau > div:first-child { flex:1; min-width:0; } #dau h1 { font-size:18px; line-height:1.3; overflow-wrap:anywhere; } #nay { font-size:14px; color:var(--ink2); margin:2px 0 0; } #nay:empty { display:none; }
  #mn { position:relative; } #mn summary { list-style:none; width:44px; height:44px; border:1px solid var(--line); border-radius:10px; background:var(--surface); display:flex; align-items:center; justify-content:center; font-size:20px; cursor:pointer; }
  #mn summary::-webkit-details-marker { display:none; }
  #mn div { position:absolute; right:0; top:50px; z-index:5; min-width:200px; padding:8px; background:var(--surface); border:1px solid var(--line); border-radius:12px; display:grid; gap:6px; }
  #mn div button { justify-content:flex-start; }
  #tim { position:sticky; top:0; z-index:3; background:var(--page); margin:0 -16px; padding:8px 16px 10px; border-bottom:1px solid var(--line); }
  #tim input { width:100%; height:48px; padding:0 14px; font-size:17px; border:1px solid var(--line); border-radius:12px; background:var(--surface); -webkit-appearance:none; }
  .dl { display:flex; gap:6px; margin-top:8px; overflow-x:auto; scrollbar-width:none; } .dl::-webkit-scrollbar { display:none; } .dl:empty { display:none; } .dl button { min-height:40px; padding:6px 12px; border-radius:20px; font-size:15px; white-space:nowrap; flex:none; }
  .dl button[aria-pressed=true] { border-color:var(--act); color:var(--act); background:var(--wash); font-weight:600; }
  .kh { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1px 12px; padding:10px 0; border-bottom:1px solid var(--line); align-items:center; }
  .kh .ten { font-weight:600; overflow-wrap:anywhere; } .kh .phu { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .kh button.ten { justify-content:flex-start; text-align:left; border:0; background:none; border-radius:6px; min-height:36px; padding:2px 0; color:var(--act); }
  .kh .go { grid-column:2; grid-row:1 / span 2; min-width:64px; min-height:48px; border-radius:24px; padding:0 14px; font-weight:600; }
  .kh .hoi { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:8px; padding:10px; border-radius:10px; background:var(--wash); font-size:15px; } .kh .hoi span { flex:1 1 100%; }
  .nl { justify-self:start; max-width:100%; font-size:13px; border-radius:6px; padding:1px 8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .nl.tot { background:#e3f3e3; color:#0b5a0b; } .nl.cho { background:#fdf1d8; color:#6b4300; } .nl.hen { background:var(--wash); color:var(--act); } .nl.xau { background:#fbe4e4; color:#8f1d1d; } .nl.xam { background:var(--line); color:var(--ink2); }
  .nhans { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; min-width:0; } .nhans .nl { white-space:normal; }
  @media (prefers-color-scheme: dark) { .nl.tot { background:#12351a; color:#a6dfae; } .nl.cho { background:#3d2c08; color:#f3cf86; } .nl.hen { color:#9cc5f5; } .nl.xau { background:#42191b; color:#f3b0b0; } }
  #cb { margin:0 0 10px; padding:10px 12px; border-radius:10px; font-size:14px; background:#fdf1d8; color:#6b4300; } @media (prefers-color-scheme: dark) { #cb { background:#3d2c08; color:#f3cf86; } } #cb:empty { display:none; }
  html.khoa { overflow:hidden; }
  #hd { border:0; padding:0; color:var(--ink); background:var(--page); width:min(560px,100%); max-width:100%; max-height:88vh; max-height:88dvh; border-radius:16px; overflow:hidden; }
  #hd::backdrop { background:rgba(0,0,0,.45); } #hd[open] { display:flex; flex-direction:column; }
  @media (max-width:600px) { #hd { margin:auto 0 0; width:100%; border-radius:16px 16px 0 0; } }
  .hopHen { padding:12px; border:1px solid var(--act); border-radius:12px; background:var(--wash); } .nhanhHen { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 10px; } .nhanhHen button { min-height:40px; padding:6px 12px; border-radius:20px; font-size:15px; } .nhanhHen button[aria-pressed=true] { background:var(--act); border-color:var(--act); color:var(--act-ink); }
  .oHen { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:10px; } .oHen input { width:100%; min-width:0; min-height:48px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); -webkit-appearance:none; appearance:none; text-align:left; } .chon .oHen input { width:100%; height:48px; } .chon .oHen label { display:block; min-height:0; padding:0; border:0; background:none; margin-bottom:2px; } .chuHen { margin:10px 0 0; font-weight:600; } .chuHen.thieu { font-weight:400; color:var(--ink2); }
  .huy { margin-top:14px; text-align:center; } .huy:empty { display:none; } .huy span { display:block; font-size:14px; color:var(--ink2); margin-bottom:8px; } .huy div { display:flex; gap:8px; justify-content:center; } .huy button { min-height:44px; color:var(--ink2); }
  #hdt:focus { outline:none; }
  .hdd { display:flex; gap:12px; align-items:center; padding:14px 12px 12px 16px; background:var(--surface); border-bottom:1px solid var(--line); }
  .hdd > div { flex:1; min-width:0; } .hdd h2 { margin:0; font-size:20px; line-height:1.25; overflow-wrap:anywhere; } .hdd span { color:var(--ink2); font-variant-numeric:tabular-nums; }
  .hdd button { width:44px; height:44px; padding:0; flex:none; border:0; border-radius:50%; background:var(--line); font-size:17px; }
  .hdn { padding:14px 16px 20px; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; } .hdn:focus-visible { outline-offset:-3px; }
  .hdc { padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:var(--surface); border-top:1px solid var(--line); } .hdc .nut { width:100%; min-height:52px; font-size:17px; font-variant-numeric:tabular-nums; }
  .tq { display:grid; grid-template-columns:1fr 1fr; background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
  .tq .lon { grid-column:1/-1; display:flex; align-items:center; gap:12px; padding:12px 14px; background:var(--wash); } .tq .lon b { font-size:38px; line-height:1; color:var(--act); font-variant-numeric:tabular-nums; } .tq .lon.chu b { font-size:22px; }
  .tq .lon strong { display:block; line-height:1.3; } .tq .o { padding:10px 14px; min-width:0; } .tq .o + .o { border-left:1px solid var(--line); } .tq .o b { display:block; font-size:18px; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
  .tq .phu, .ngay .phu { font-size:13px; } .hdn .nhans { margin-top:10px; gap:6px; } .hdn .nhans .nl { padding:3px 10px; }
  .gc { margin:8px 0 0; padding:8px 12px; border-left:3px solid var(--line); color:var(--ink2); font-size:14px; overflow-wrap:anywhere; }
  .hdn h3.muc { margin:18px 0 0; font-size:15px; color:var(--ink2); font-weight:600; }
  .don { background:var(--surface); border:1px solid var(--line); border-radius:14px; margin-top:10px; overflow:hidden; } .don.gan { border-color:var(--act); }
  .don header { display:flex; gap:4px 12px; align-items:flex-start; justify-content:space-between; margin:0; padding:12px 14px 0; } .don h4 { margin:0; font-size:16px; } .don h4 small { font-size:13px; font-weight:400; color:var(--muted); margin-left:4px; }
  .don .gia { text-align:right; font-size:18px; font-weight:650; line-height:1.3; white-space:nowrap; font-variant-numeric:tabular-nums; } .don .gia small { display:block; font-size:13px; font-weight:400; color:var(--ink2); } .don.d-huy .gia { color:var(--muted); text-decoration:line-through; }
  .don .the2 { display:flex; flex-wrap:wrap; gap:4px; padding:4px 14px 0; }
  .mon { list-style:none; margin:10px 0 0; padding:0 14px; display:grid; gap:8px; } .mon li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:center; overflow-wrap:anywhere; line-height:1.35; }
  .mon .sl { min-width:34px; padding:2px 6px; border-radius:8px; text-align:center; font-weight:650; font-variant-numeric:tabular-nums; background:var(--wash); color:var(--act); } .mon .qua { color:var(--ink2); } .mon .qua .sl { background:var(--line); color:var(--ink2); }
  .ngay { display:grid; grid-template-columns:1fr 1fr; margin:12px 0 0; border-top:1px solid var(--line); background:var(--page); } .ngay div { padding:8px 14px 10px; min-width:0; } .ngay div + div { border-left:1px solid var(--line); } .ngay dt { font-size:13px; color:var(--ink2); } .ngay dd { margin:0; font-weight:600; font-size:15px; font-variant-numeric:tabular-nums; } .ngay dd span { font-weight:400; }
  .don.d-huy .mon, .don.d-huy .ngay { opacity:.7; }
  .xuong { height:132px; border-radius:14px; margin-top:10px; background:var(--line); opacity:.6; animation:nhip 1.2s ease-in-out infinite alternate; } @keyframes nhip { to { opacity:.3; } } @media (prefers-reduced-motion: reduce) { .xuong { animation:none; } }
  #loi { color:var(--bad); margin:8px 0; } #loi:empty { margin:0; } .an { display:none !important; }

  .chinh:hover { filter:brightness(1.08); } button:hover, .nut:hover { border-color:var(--vang); }
  #cb { border:1px solid var(--vang); }
  #khung { min-height:100vh; }
  .thanh-ben { background:var(--ruou); color:var(--kem); } .thanh-ben .ten-hieu { display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid rgba(224,191,110,.25); }
  .thanh-ben img { width:40px; height:40px; } .thanh-ben .ten-hieu b { display:block; font:600 19px/1.15 "Cormorant Garamond","Times New Roman",serif; letter-spacing:.06em; color:var(--vang); } .thanh-ben .ten-hieu small { font-size:12px; color:rgba(251,243,230,.8); }
  .muc-luc { display:flex; } .muc-luc button { background:none; border:0; color:rgba(251,243,230,.86); border-radius:10px; gap:10px; } .muc-luc button:hover { background:rgba(224,191,110,.1); } .muc-luc button[aria-current=page] { background:rgba(224,191,110,.16); color:var(--vang); font-weight:600; }
  .muc-luc svg { width:22px; height:22px; flex:none; }
  .nguoi-dung { font-size:14px; color:rgba(251,243,230,.82); }
  @media (min-width:900px) { #khung { display:grid; grid-template-columns:232px minmax(0,1fr); } .thanh-ben { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; } .muc-luc { flex-direction:column; gap:4px; padding:12px 10px; flex:1; } .muc-luc button { justify-content:flex-start; } .nguoi-dung { padding:12px 18px 18px; border-top:1px solid rgba(224,191,110,.25); } main { padding-top:22px; padding-bottom:40px; } }
  @media (max-width:899px) { .thanh-ben .ten-hieu { padding:10px 16px; } .thanh-ben img { width:32px; height:32px; } .thanh-ben .ten-hieu small, .nguoi-dung { display:none; }
    .muc-luc { position:fixed; left:0; right:0; bottom:0; z-index:4; background:var(--ruou-dam); border-top:1px solid rgba(224,191,110,.35); padding:4px 4px calc(4px + env(safe-area-inset-bottom)); } .muc-luc button { flex:1; flex-direction:column; gap:2px; font-size:12px; padding:6px 4px; min-height:52px; text-align:center; } }
  #dn { max-width:420px; margin:9vh auto 0; background:var(--surface); border:1px solid var(--line); border-radius:18px; overflow:hidden; } #dn .bia { background:var(--ruou); color:var(--kem); text-align:center; padding:26px 20px 22px; } #dn .bia img { width:72px; height:72px; } #dn .bia h1 { font:600 28px/1.2 "Cormorant Garamond","Times New Roman",serif; color:var(--vang); margin:8px 0 2px; } #dn .bia p { margin:0; font-size:14px; color:rgba(251,243,230,.85); } #dn form { padding:20px; }
  #dau h1 { font-size:20px; } #dau { margin-bottom:12px; } h2 { color:var(--ink); }
  .tr-dau th { background:var(--wash); }
  .mau { display:inline-block; font-size:12px; font-weight:600; border-radius:6px; padding:1px 8px; background:rgba(201,161,74,.18); color:var(--vang-dam); }
  .o-form { display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); align-items:end; } .o-form label { font-size:14px; color:var(--ink2); display:grid; gap:4px; }
  .ma-moi { font-size:22px; font-weight:650; letter-spacing:.04em; user-select:all; overflow-wrap:anywhere; }
  .viec { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); } .viec:last-child { border-bottom:0; }
  .nl.hen { background:#e4ecee; color:#24505c; } @media (prefers-color-scheme: dark) { .nl.hen { background:#16333a; color:#a9d3dd; } }
  @media (max-width:460px) { #dn { margin:6vh 14px 0; } }
  main { width:100%; min-width:0; } @media (min-width:900px) { main { padding-left:28px; padding-right:28px; } } .cuon { max-width:100%; }
