/* ===== Realtor OS CRM — giao diện (nhận diện DuongEdu: xanh ngọc #2DBDB6 + cam #F5A623) ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
:root {
  --brand: #2DBDB6; --brand-dark: #1FA39C; --brand-darker: #157F79;
  --brand-050: #EAF9F8; --brand-100: #D3F1EF; --brand-200: #B7E7E4;
  --accent: #F5A623; --accent-soft: #FEF4E2; --accent-ink: #B45309;
  --canvas: #F3F6F7; --surface: #FFFFFF; --surface-2: #F8FAFB;
  --ink: #131B24; --ink-2: #56636F; --ink-3: #93A0AC;
  --line: #E7ECEE; --line-soft: #F0F4F5;
  --danger: #DC2626; --danger-soft: #FDECEC; --success: #16A34A; --success-soft: #EAF7EF;
  --radius-sm: 9px; --radius: 14px; --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(19,27,36,.06);
  --shadow: 0 2px 10px rgba(19,27,36,.05), 0 1px 3px rgba(19,27,36,.04);
  --shadow-md: 0 8px 24px rgba(19,27,36,.09);
  --shadow-lg: 0 18px 48px rgba(19,27,36,.16);
  --ring: 0 0 0 3.5px rgba(45,189,182,.18);
  --font: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
a { color: var(--brand-darker); text-decoration: none; }
::selection { background: var(--brand-100); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1200px 600px at 15% -10%, #DFF6F4 0%, transparent 55%), radial-gradient(900px 500px at 100% 110%, #FCEBD2 0%, transparent 50%), var(--canvas); }
.login-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); width: 400px; max-width: 92vw; padding: 44px 40px; border: 1px solid var(--line); }
.login-logo { display: flex; align-items: center; gap: 11px; font-size: 24px; font-weight: 800; justify-content: center; }
.login-logo .dot, .brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%); box-shadow: 0 4px 12px rgba(45,189,182,.35); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 800; flex-shrink: 0; }
.login-sub { text-align: center; color: var(--ink-2); margin: 8px 0 30px; font-size: 14px; }
.login-card label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: 13px; color: var(--ink-2); }
.login-card input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.login-card input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: var(--ring); }
.login-card button { width: 100%; margin-top: 24px; padding: 13px; background: var(--brand); color: #fff; border: none; border-radius: 11px; font-weight: 700; font-size: 15px; }
.login-card button:hover { background: var(--brand-dark); }
.login-err { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 9px; font-size: 13px; margin-top: 14px; display: none; }
.login-hint { margin-top: 20px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 20px 18px 16px; display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; }
.sidebar .brand span { color: var(--brand); }
.nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 600; margin-bottom: 3px; font-size: 13.5px; }
.nav a .ico { width: 20px; text-align: center; font-size: 16px; }
.nav a:hover { background: var(--brand-050); color: var(--brand-darker); }
.nav a.active { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; box-shadow: 0 4px 12px rgba(45,189,182,.3); }
.nav a .badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.nav a.active .badge { background: rgba(255,255,255,.28); }
.side-foot { padding: 14px; border-top: 1px solid var(--line); }
.side-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-darker)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.side-user .nm { font-weight: 700; font-size: 13px; }
.side-user .rl { font-size: 11px; color: var(--ink-3); }
.side-foot button { margin-top: 10px; width: 100%; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); padding: 8px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.side-foot button:hover { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 24px; display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 18px; font-weight: 800; }
.topbar .sub { color: var(--ink-2); font-size: 13px; }
.topbar .spacer { flex: 1; }
.content { padding: 20px 24px; flex: 1; }

/* ---------- Buttons / chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; }
.btn:hover { border-color: var(--brand-200); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.green { background: var(--success); border-color: var(--success); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { filter: brightness(.96); }
.btn.blue { background: #2563EB; border-color: #2563EB; color: #fff; }
.btn.danger { background: #fff; border-color: #F3B4B4; color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn.lg { padding: 14px 20px; font-size: 15px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line); }
.chip.dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; margin: 1px; color: #fff; }
.tag.soft { background: var(--brand-050); color: var(--brand-darker); }

/* select-chips (dùng trong modal tư vấn/chốt) */
.pick-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { padding: 7px 13px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; color: var(--ink-2); user-select: none; }
.pick:hover { border-color: var(--brand-200); }
.pick.on { background: var(--brand-050); border-color: var(--brand); color: var(--brand-darker); }
.pick.on.accent { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Cards / panels ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .lbl { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.stat .val { font-size: 26px; font-weight: 800; margin-top: 6px; }
.stat .sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.stat.accent { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-color: transparent; color: #fff; }
.stat.accent .lbl, .stat.accent .sub { color: rgba(255,255,255,.85); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.panel-head h2 { font-size: 15px; font-weight: 800; }
.panel-head .count { color: var(--ink-3); font-weight: 600; }
.empty { padding: 30px 18px; text-align: center; color: var(--ink-3); }
.empty .big { font-size: 32px; margin-bottom: 8px; }

/* ---------- Đang chăm: 2 cột (danh sách + chi tiết) ---------- */
.ws { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.ws-tab { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.ws-tab:hover { border-color: var(--brand-200); }
.ws-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ws-tab.accent.on { background: var(--accent); border-color: var(--accent); }
.ws-tab .n { background: rgba(19,27,36,.1); color: inherit; font-size: 11px; padding: 0 7px; border-radius: 999px; font-weight: 800; }
.ws-tab.on .n { background: rgba(255,255,255,.3); }

.ws-note { background: var(--success-soft); border: 1px solid #CBEAD8; border-radius: var(--radius); padding: 12px 15px; margin-bottom: 14px; font-size: 13px; }
.ws-note b { color: var(--brand-darker); }

.ws-list { display: flex; flex-direction: column; gap: 9px; max-height: calc(100vh - 210px); overflow-y: auto; padding-right: 4px; }
.ws-item { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 13px 15px; cursor: pointer; box-shadow: var(--shadow-sm); }
.ws-item:hover { border-color: var(--brand-200); }
.ws-item.sel { border-color: var(--brand); background: var(--brand-050); box-shadow: var(--ring); }
.ws-item .r1 { display: flex; align-items: baseline; gap: 8px; }
.ws-item .nm { font-weight: 700; font-size: 15px; }
.ws-item .tm { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ws-item .r2 { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-2); }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.pill-stage { color: #fff; }
.pill-lh { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

/* detail card */
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.dcard-head { padding: 18px 22px 14px; }
.dcard-head .row { display: flex; align-items: center; gap: 10px; }
.dcard-head .clock { margin-left: auto; color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.dcard-head h2 { font-size: 24px; font-weight: 800; margin: 8px 0 6px; }
.dcard-head .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-2); font-size: 12.5px; }
.phone-box { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 14px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.phone-box .pic { width: 34px; height: 34px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; font-size: 15px; }
.phone-box .num { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.phone-box .carrier { font-size: 11px; font-weight: 700; color: var(--danger); background: var(--danger-soft); padding: 2px 8px; border-radius: 6px; }
.phone-box .edit { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--brand-darker); background: none; border: none; }

.hist { list-style: none; padding: 4px 22px 8px; max-height: 260px; overflow-y: auto; }
.hist li { display: flex; gap: 10px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--line-soft); }
.hist li:last-child { border-bottom: none; }
.hist .hd { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex-shrink: 0; }
.hist .ht { flex: 1; white-space: pre-wrap; word-break: break-word; }
.hist .hm { color: var(--ink-3); font-size: 11px; white-space: nowrap; }

.dcard-actions { padding: 6px 22px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big-btn { padding: 16px; border-radius: var(--radius); border: none; font-weight: 800; font-size: 16px; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.big-btn.call { background: var(--success); } .big-btn.msg { background: #2563EB; }
.dcard-sub { padding: 0 22px 8px; }
.link-row { width: 100%; padding: 12px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); font-weight: 600; color: var(--ink-2); font-size: 13px; }
.dcard-foot { padding: 8px 22px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dcard-foot .btn { justify-content: center; padding: 13px 8px; }
.close-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.close-btn:hover { filter: brightness(.96); }

/* ---------- Table ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar input[type=search], .toolbar select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.toolbar input[type=search] { min-width: 240px; }
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; padding: 11px 14px; font-size: 12px; color: var(--ink-2); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--surface-2); }
.lead-name { font-weight: 700; }
.lead-phone { color: var(--ink-2); font-size: 12px; }
.muted { color: var(--ink-2); }
.overflow-x { overflow-x: auto; }
.flag-new { background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.flag-over { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }

/* ---------- Kanban ---------- */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.col { flex: 0 0 268px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 170px); }
.col-head { padding: 11px 14px; display: flex; align-items: center; gap: 8px; font-weight: 700; flex-wrap: wrap; }
.col-head .dotc { width: 10px; height: 10px; border-radius: 50%; }
.col-head .n { margin-left: auto; background: rgba(19,27,36,.07); color: var(--ink-2); font-size: 12px; padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.col-body { padding: 4px 10px 12px; overflow-y: auto; flex: 1; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; margin-bottom: 9px; box-shadow: var(--shadow-sm); }
.kcard:hover { border-color: var(--brand); }
.kcard.dragging { opacity: .4; }
.kcard .kname { font-weight: 700; }
.kcard .kmeta { font-size: 12px; color: var(--ink-2); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.kcard .kfoot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.kcard .kowner { font-size: 11px; color: var(--ink-3); margin-left: auto; }
.col.drop-hint { outline: 2px dashed var(--brand); outline-offset: -3px; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(19,27,36,.5); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; }
.modal.sm { max-width: 460px; } .modal.md { max-width: 560px; } .modal.lg { max-width: 920px; }
.modal-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.modal-head h2 { font-size: 18px; font-weight: 800; }
.modal-head .x { margin-left: auto; background: none; border: none; font-size: 24px; color: var(--ink-3); line-height: 1; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); }
.modal-foot.full .btn { flex: 1; justify-content: center; padding: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; margin-bottom: 5px; font-size: 13px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 70px; }
.mb-lbl { font-weight: 700; font-size: 13px; margin: 16px 0 8px; }
.mb-lbl:first-child { margin-top: 0; }
.mb-lbl .req { color: var(--danger); }

/* ---------- Lead detail (modal) ---------- */
.detail-grid { display: grid; grid-template-columns: 330px 1fr; gap: 20px; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.info-list li .k { color: var(--ink-2); width: 110px; flex-shrink: 0; }
.info-list li .v { font-weight: 600; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.timeline { list-style: none; }
.tl-item { display: flex; gap: 12px; padding-bottom: 15px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: -4px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; color: #fff; z-index: 1; }
.tl-call { background: var(--success); } .tl-sms { background: #0EA5E9; } .tl-zalo { background: #2563EB; }
.tl-email { background: #7C3AED; } .tl-meet { background: var(--accent); } .tl-note { background: var(--ink-3); }
.tl-stage { background: var(--brand); } .tl-system { background: #CBD5E1; } .tl-consult { background: var(--brand-dark); } .tl-deal { background: var(--success); }
.tl-body { flex: 1; min-width: 0; }
.tl-body .tl-txt { white-space: pre-wrap; word-break: break-word; }
.tl-body .tl-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.subhead { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 4px 0 10px; }

/* ---------- Dashboard ---------- */
.bar-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.bar-row .bl { width: 140px; font-size: 13px; flex-shrink: 0; }
.bar-track { flex: 1; background: var(--surface-2); border-radius: 6px; height: 22px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: 6px; min-width: 2px; }
.bar-row .bv { width: 46px; text-align: right; font-weight: 700; font-size: 13px; }

/* ---------- Settings / integrations ---------- */
.int-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.int-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.int-card .ih { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.int-card .ilogo { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; }
.int-card .in { font-weight: 700; }
.int-card .idesc { font-size: 12px; color: var(--ink-2); margin-bottom: 10px; min-height: 32px; }
.code-box { background: #0F172A; color: #E2E8F0; padding: 11px 13px; border-radius: 9px; font-family: 'Consolas', monospace; font-size: 12px; word-break: break-all; display: flex; align-items: center; gap: 10px; }
.code-box button { margin-left: auto; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 11px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 13px; animation: slideIn .2s ease; max-width: 340px; }
.toast.ok { background: var(--brand-dark); } .toast.err { background: var(--danger); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.pill-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.pill-toggle button { border: none; background: none; padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.pill-toggle button.on { background: #fff; color: var(--brand-darker); box-shadow: var(--shadow-sm); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; margin: 50px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.quick-times { display: flex; flex-wrap: wrap; gap: 8px; }
.daychip { display: flex; gap: 8px; margin-top: 8px; align-items: center; }

@media (max-width: 1000px) { .ws { grid-template-columns: 1fr; } .ws-list { max-height: none; } }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; width: 244px; z-index: 90; transition: left .2s; }
  .sidebar.open { left: 0; }
  .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex !important; }
}
.menu-btn { display: none; }

/* ô mật khẩu có nút con mắt hiện/ẩn */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input { width: 100%; padding-right: 42px; }
.pw-wrap .pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: auto; margin: 0; background: none; border: none; box-shadow: none;
  font-size: 17px; line-height: 1; padding: 4px; color: var(--ink-3); border-radius: 6px; cursor: pointer; }
.pw-wrap .pw-eye:hover { background: var(--surface-2); }
