/* Văn phòng số — giao diện
   Ý tưởng: giấy tờ văn phòng Việt Nam. Nền giấy, mực xanh bút bi cho thao tác,
   dấu son đỏ chỉ dùng cho việc "đã duyệt" và cảnh báo. */
:root {
  --paper: #f5f6f2;
  --surface: #ffffff;
  --surface-2: #fafbf8;
  --ink: #1c2630;
  --ink-2: #56626c;
  --ink-3: #8a949c;
  --line: #dde2dd;
  --line-2: #eceeea;
  --blue: #1f4e8c;
  --blue-ink: #173d6e;
  --blue-soft: #e8eef7;
  --seal: #b8322a;
  --seal-soft: #fbeae7;
  --jade: #2a7556;
  --jade-soft: #e5f2ec;
  --amber: #a86d12;
  --amber-soft: #fbf1df;
  --violet: #5b4a9e;
  --violet-soft: #eeebf8;
  --focus: 0 0 0 3px rgba(31, 78, 140, .28);
  --r-sm: 6px;
  --r: 10px;
  --sidebar: 236px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; }
h1 { font-size: 22px; letter-spacing: -.01em; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 .6em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Khung ứng dụng ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 10px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; letter-spacing: -.02em; flex: none;
}
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.15; }
.brand-co { font-size: 12px; color: var(--ink-3); }
.nav-group { margin-top: 14px; }
.nav-title { font-size: 12px; color: var(--ink-3); padding: 0 10px 4px; font-weight: 500; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink);
  font-weight: 500; text-decoration: none; position: relative;
}
.nav a svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.nav a:hover { background: var(--line-2); }
.nav a.active { background: var(--blue-soft); color: var(--blue-ink); }
.nav a.active svg { color: var(--blue); }
.nav .count {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--seal); color: #fff;
  font-size: 11.5px; font-weight: 600; display: grid; place-items: center;
}
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: rgba(245, 246, 242, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.topbar .menu-btn { display: none; }
.crumbs { font-weight: 600; font-size: 15px; }
.content { padding: 22px 24px 48px; max-width: 1440px; width: 100%; }

.page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .grow p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- Nút & ô nhập ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-2); border-color: #c9cfc9; text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-ink); }
.btn.danger { color: var(--seal); }
.btn.danger.solid { background: var(--seal); border-color: var(--seal); color: #fff; }
.btn.approve { background: var(--jade); border-color: var(--jade); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field .req { color: var(--seal); }
.input, select.input, textarea.input {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font: inherit; color: var(--ink);
}
textarea.input { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.input::placeholder { color: var(--ink-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.multi { border: 1px solid var(--line); border-radius: var(--r-sm); max-height: 168px; overflow-y: auto; padding: 6px 10px; display: grid; gap: 4px; background: var(--surface); }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { width: auto; min-width: 150px; max-width: 280px; }
.toolbar .search { min-width: 240px; max-width: 360px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button {
  border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink-2); padding: 9px 12px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--blue-ink); border-color: var(--blue); }
.tabs .count { font-size: 12px; background: var(--line-2); padding: 1px 7px; border-radius: 9px; margin-left: 4px; }
.tabs button.active .count { background: var(--blue-soft); }

/* ---------- Khối & bảng ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.panel-head h2, .panel-head h3 { flex: 1; }
.panel-body { padding: 0 16px 16px; }
.panel-body.flush { padding: 0; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink-2); padding: 9px 12px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); white-space: nowrap;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td { background: #f7f9fc; }
.table .title-cell { font-weight: 500; }
.table .sub { font-size: 12.5px; color: var(--ink-3); }

.empty { padding: 36px 16px; text-align: center; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* ---------- Nhãn trạng thái ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px;
  font-weight: 500; white-space: nowrap; background: var(--line-2); color: var(--ink-2);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.blue { background: var(--blue-soft); color: var(--blue-ink); }
.badge.green { background: var(--jade-soft); color: var(--jade); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--seal-soft); color: var(--seal); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.prio { font-size: 12px; font-weight: 600; }
.prio.urgent { color: var(--seal); }
.prio.high { color: var(--amber); }
.prio.normal { color: var(--ink-3); font-weight: 500; }
.prio.low { color: var(--ink-3); font-weight: 400; }
.due-late { color: var(--seal); font-weight: 600; }
.due-today { color: var(--amber); font-weight: 600; }

.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); display: inline-grid;
  place-items: center; font-size: 11px; font-weight: 600; flex: none;
}
.avatar.lg { width: 36px; height: 36px; font-size: 13px; }
.person { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }

.progress { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; min-width: 60px; }
.progress > span { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.progress.done > span { background: var(--jade); }

/* ---------- Tổng quan ---------- */
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.dash .c-8 { grid-column: span 8; }
.dash .c-4 { grid-column: span 4; }
.dash .c-6 { grid-column: span 6; }
.dash .c-12 { grid-column: span 12; }
.today-strip {
  grid-column: span 12; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.today-strip > * { padding: 16px 18px; border-left: 1px solid var(--line-2); }
.today-strip > div:first-child { border-left: 0; background: var(--blue); color: #fff; }
.today-strip .greet { font-size: 18px; font-weight: 600; }
.today-strip .date { opacity: .8; font-size: 13px; margin-top: 2px; }
.today-strip .k { font-size: 12.5px; color: var(--ink-2); }
.today-strip .v { font-size: 26px; font-weight: 600; margin-top: 2px; letter-spacing: -.02em; }
.today-strip a.cell { color: inherit; text-decoration: none; display: block; }
.today-strip a.cell:hover { background: var(--surface-2); }
.v.late { color: var(--seal); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line-2); }
.list li:first-child { border-top: 0; }
.list li.clickable { cursor: pointer; }
.list li.clickable:hover { background: #f7f9fc; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 8px 4px 0; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar span.fill { width: 100%; max-width: 44px; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .bar.current span.fill { background: var(--jade); }
.bars .bar .lbl { font-size: 12px; color: var(--ink-3); }
.bars .bar .val { font-size: 11.5px; color: var(--ink-2); }

.funnel { display: grid; gap: 8px; }
.funnel .f-row { display: grid; grid-template-columns: 150px 1fr 120px; align-items: center; gap: 10px; font-size: 13px; }
.funnel .f-track { height: 22px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.funnel .f-track span { display: block; height: 100%; background: var(--blue); opacity: .85; }

/* ---------- Kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { min-width: 0; background: var(--line-2); border-radius: var(--r); padding: 8px; min-height: 140px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 600; font-size: 13.5px; }
.col-head .sum { margin-left: auto; font-weight: 500; color: var(--ink-2); font-size: 12.5px; }
.col.drop { background: var(--blue-soft); outline: 2px dashed var(--blue); outline-offset: -2px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; margin-bottom: 8px;
  cursor: grab; display: grid; gap: 7px; min-width: 0;
}
.card > * { min-width: 0; }
.card:hover { border-color: #b9c3cc; }
.card.dragging { opacity: .45; }
.card .t { font-weight: 500; line-height: 1.35; }
.card .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.card .meta .grow { min-width: 0; }
.col .add { width: 100%; justify-content: flex-start; color: var(--ink-2); }

/* ---------- Ngăn kéo chi tiết & hộp thoại ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 28, 36, .38); z-index: 50; display: flex; }
.overlay.center { align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 12px; width: 100%; max-width: 620px; box-shadow: 0 24px 60px rgba(20, 28, 36, .25); }
.modal.wide { max-width: 920px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line-2); }
.modal-head h2 { flex: 1; }
.modal-body { padding: 16px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line-2); }
.drawer {
  margin-left: auto; width: min(720px, 100%); height: 100%; background: var(--surface); overflow-y: auto; display: flex;
  flex-direction: column; animation: slidein .18s ease-out;
}
@keyframes slidein { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; background: var(--surface); z-index: 2; display: flex; gap: 10px; align-items: flex-start; padding: 16px 20px 12px; border-bottom: 1px solid var(--line-2); }
.drawer-head h2 { flex: 1; font-size: 18px; }
.drawer-body { padding: 16px 20px 32px; }

.props { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; align-items: center; margin-bottom: 18px; }
.props dt { color: var(--ink-2); font-size: 13px; }
.props dd { margin: 0; min-width: 0; }
.section-title { font-size: 13.5px; font-weight: 600; margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
.section-title .grow { flex: 1; }
.desc { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; }

.thread { display: grid; gap: 12px; }
.msg { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.msg .bubble { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px; }
.msg .who { font-size: 12.5px; color: var(--ink-2); margin-bottom: 2px; }
.msg .who b { color: var(--ink); font-weight: 600; }
.msg .text { white-space: pre-wrap; word-break: break-word; }
.composer { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.composer textarea { min-height: 40px; height: 40px; }

.files { display: grid; gap: 6px; }
.file { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.file svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 7px; bottom: -7px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-3); }
.timeline li.approved::after { border-color: var(--jade); background: var(--jade); }
.timeline li.rejected::after { border-color: var(--seal); background: var(--seal); }
.timeline li.pending::after { border-color: var(--amber); background: var(--amber-soft); }
.timeline li.skipped::after { border-style: dashed; }
.timeline .when { font-size: 12px; color: var(--ink-3); }

/* ---------- Phiếu đề xuất & dấu duyệt ---------- */
.slip { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-top: 18px; }
.slip-head { text-align: center; margin-bottom: 18px; }
.slip-head .kind { font-size: 12.5px; color: var(--ink-2); }
.slip-head h2 { font-size: 19px; margin-top: 4px; }
.slip-head .code { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.slip .props { grid-template-columns: 180px 1fr; }
.seal {
  position: absolute; right: 22px; top: -18px; width: 118px; height: 118px; border-radius: 50%; border: 3px solid var(--seal);
  color: var(--seal); display: grid; place-items: center; text-align: center; transform: rotate(-14deg); opacity: .88;
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5.5px var(--seal); pointer-events: none;
  animation: stamp .42s cubic-bezier(.2, 1.4, .4, 1) both;
}
.seal .s1 { font-weight: 700; font-size: 16px; letter-spacing: .02em; line-height: 1.1; }
.seal .s2 { font-size: 10.5px; margin-top: 3px; }
.seal.rejected { border-color: var(--ink-3); color: var(--ink-2); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5.5px var(--ink-3); }
@keyframes stamp { from { transform: rotate(-14deg) scale(1.6); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: .88; } }
@media (prefers-reduced-motion: reduce) { .seal, .drawer { animation: none; } }

/* ---------- Thông báo ---------- */
.bell { position: relative; }
.bell .dot { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--seal); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.popover {
  position: absolute; right: 16px; top: 52px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px rgba(20, 28, 36, .18); z-index: 40;
}
.popover .head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.popover .head .grow { flex: 1; }
.noti { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.noti:hover { background: var(--surface-2); text-decoration: none; }
.noti.unread { background: #f4f7fc; }
.noti .t { font-weight: 500; }
.noti.unread .t::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 7px; vertical-align: 2px; }
.noti .b { font-size: 12.5px; color: var(--ink-2); }
.noti .w { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); font-weight: 500; max-width: 90vw; }
.toast.error { background: var(--seal); }

/* ---------- Đăng nhập ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-side { background: var(--blue); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login-side h1 { font-size: 34px; line-height: 1.15; max-width: 12ch; font-weight: 700; }
.login-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; max-width: 34ch; opacity: .92; }
.login-side li { padding-left: 18px; position: relative; }
.login-side li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: #fff; opacity: .7; }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-form form { width: min(360px, 100%); display: grid; gap: 14px; }
.login-form .error { color: var(--seal); font-size: 13px; min-height: 18px; }

/* ---------- Báo giá in ---------- */
.lines td .input { height: 32px; }
.lines td { padding: 6px 6px; }
.lines .col-name { min-width: 220px; }
.totals { display: grid; grid-template-columns: 1fr 160px; gap: 6px 16px; max-width: 360px; margin-left: auto; margin-top: 12px; }
.totals .grand { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); padding-top: 6px; }
.doc { background: #fff; color: #111; padding: 32px 36px; border: 1px solid var(--line); border-radius: var(--r); }
.doc h1 { text-align: center; font-size: 22px; margin: 18px 0 4px; }
.doc .doc-meta { text-align: center; color: #555; margin-bottom: 18px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.doc th, .doc td { border: 1px solid #bbb; padding: 6px 8px; font-size: 13px; }
.doc th { background: #f1f1f1; }
.doc .sign { display: grid; grid-template-columns: 1fr 1fr; text-align: center; margin-top: 36px; min-height: 120px; }

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .no-print, .toasts { display: none !important; }
  .app { display: block; }
  .content { padding: 0; }
  .doc { border: 0; padding: 0; }
  .overlay { position: static; background: none; display: block; padding: 0; }
  .modal { box-shadow: none; max-width: none; }
}

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1100px) {
  .dash .c-8, .dash .c-4, .dash .c-6 { grid-column: span 12; }
  .today-strip { grid-template-columns: repeat(2, 1fr); }
  .today-strip > div:first-child { grid-column: span 2; }
  .today-strip > * { border-top: 1px solid var(--line-2); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  .app.nav-open .sidebar { transform: none; }
  .topbar { padding: 0 12px; }
  .topbar .menu-btn { display: inline-flex; }
  .content { padding: 16px 12px 40px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .props, .slip .props { grid-template-columns: 1fr; gap: 2px; }
  .props dd { margin-bottom: 8px; }
  .login { grid-template-columns: 1fr; }
  .login-side { padding: 28px 20px; }
  .login-side h1 { font-size: 26px; }
  .toolbar .search { min-width: 0; flex: 1 1 100%; }
  .seal { width: 84px; height: 84px; right: 8px; top: -22px; }
  .slip { margin-top: 18px; }
  .seal .s1 { font-size: 13px; }
  .funnel .f-row { grid-template-columns: 90px 1fr 90px; }
  .hide-sm { display: none; }
}
