:root {
  --navy: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --bg: #f1f5f9;
  --font: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select { font-family: inherit; }

.page { max-width: 1600px; margin: auto; padding: 28px; }
.topbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.topbar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
h2 { margin: 0; font-size: 16px; }
.subtitle { margin: 7px 0 0; color: var(--muted); }

.filters {
  display: grid;
  grid-template-columns: 155px 155px 155px minmax(280px, 1fr) auto;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px #0f172a0a;
}

.filters label,
.field-label,
.field-caption {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.filters select,
.filters input,
.field-label input {
  width: 100%;
  height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  font-weight: 500;
}

.search-wrap { position: relative; display: block; }
.search-wrap > span { position: absolute; top: 18px; left: 13px; color: #94a3b8; font-size: 19px; line-height: 1; }
.filters .search-wrap input { padding-left: 40px; }
.filters input:focus,
.filters select:focus,
.field-label input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px #dbeafe; }

.button {
  height: 42px;
  align-self: end;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover { filter: brightness(.95); }
.button:disabled { cursor: wait; opacity: .65; }
.button.secondary { color: #334155; background: #fff; border: 1px solid #cbd5e1; }

.cards { display: grid; grid-template-columns: 1fr 1fr 1fr 1.45fr 1.45fr; gap: 12px; margin: 16px 0; }
.card { position: relative; min-height: 112px; padding: 20px 17px; overflow: hidden; border: 1px solid; border-radius: 10px; }
.card span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.card strong { display: block; font-size: 24px; letter-spacing: .01em; }
.card small { display: block; margin-top: 5px; color: var(--muted); }
.card i { position: absolute; top: 39px; right: 17px; font-size: 28px; font-style: normal; font-family: "Segoe UI Symbol", var(--font); }
.blue { background: #eff6ff; border-color: #bfdbfe; }
.blue i { color: #2563eb; }
.orange { background: #fff7ed; border-color: #fed7aa; }
.orange i { color: #f97316; }
.green { background: #ecfdf5; border-color: #bbf7d0; }
.green strong, .green i { color: #059669; }
.yellow { background: #fffbeb; border-color: #fde68a; }
.yellow i { color: #d97706; }
.red { background: #fff1f2; border-color: #fecdd3; }
.red strong, .red i { color: #dc2626; }

.panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.panel-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-head > div { display: flex; align-items: baseline; justify-content: space-between; }
.panel-head span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 1060px; border-collapse: collapse; }
th { height: 42px; padding: 0 14px; color: #64748b; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 11px; text-align: right; white-space: nowrap; }
th.left, td.left { text-align: left; }
td { padding: 14px; color: #0f172a; border-bottom: 1px solid #edf2f7; font-size: 13px; text-align: right; }
tbody tr:hover td { background: #f8fbff; }
.company { font-weight: 800; }
.company small { display: block; margin-top: 4px; color: #94a3b8; font-weight: 500; }
.money { color: #1d4ed8; font-weight: 700; }
.debt { color: #dc2626; font-weight: 800; }
.paid { color: #059669; font-weight: 700; }
.detail-btn { padding: 7px 10px; color: #2563eb; background: #eff6ff; border: 0; border-radius: 7px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.delete-detail-btn { padding: 7px 10px; color: #dc2626; background: #fef2f2; border: 0; border-radius: 7px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.delete-detail-btn:hover { color: #fff; background: #dc2626; }
.detail-row-actions { min-width: 112px; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.share-btn { padding: 7px 10px; color: #7c3aed; background: #f5f3ff; border: 0; border-radius: 7px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.share-btn:hover { background: #ede9fe; }
.share-btn:disabled { opacity: .65; cursor: wait; }
.empty { padding: 50px; color: var(--muted); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 18px; border-top: 1px solid var(--line); }
.pagination__numbers { display: flex; gap: 7px; }
.pagination button { min-width: 36px; height: 36px; padding: 0 10px; color: #475569; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; font-weight: 700; cursor: pointer; }
.pagination button:hover:not(:disabled),
.pagination button.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.pagination button:disabled { color: #cbd5e1; background: #f8fafc; cursor: not-allowed; }

dialog { width: min(1400px, 95vw); max-height: 90vh; padding: 0; border: 0; border-radius: 14px; box-shadow: 0 30px 80px #0f172a55; }
dialog::backdrop { background: #0f172a99; }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; padding: 20px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 21px; }
.modal-head > div > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.icon-button { width: 38px; height: 38px; color: #334155; background: #f1f5f9; border: 0; border-radius: 50%; font-size: 26px; cursor: pointer; }
.detail-table { max-height: 70vh; }
.history-dialog { width: min(1500px, 96vw); }
.history-table { max-height: 72vh; }
.history-table th { position: sticky; top: 0; z-index: 1; }
.history-table td:nth-child(2) { min-width: 260px; }
.history-table td:nth-child(5) { min-width: 300px; }
.detail-table th { position: sticky; top: 0; z-index: 1; }
.detail-table td:nth-child(3) { min-width: 330px; text-align: left; }
.detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px 24px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.detail-summary article { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.detail-summary span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.detail-summary strong { color: var(--navy); font-size: 17px; }
.detail-summary__paid strong { color: #059669; }
.detail-summary__debt strong { color: #dc2626; }
.missing-product { color: #b45309; font-style: italic; }
.edit-detail-dialog { width: min(920px, 95vw); }
.edit-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-height: 65vh; padding: 20px 24px; overflow: auto; }
.edit-detail-grid label { color: #475569; font-size: 12px; font-weight: 700; }
.edit-detail-grid input,
.edit-detail-grid textarea { width: 100%; margin-top: 6px; padding: 10px 11px; color: var(--navy); background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; outline: none; font: inherit; font-weight: 400; }
.edit-detail-grid input { height: 40px; }
.edit-detail-grid textarea { resize: vertical; }
.edit-detail-grid input:focus,
.edit-detail-grid textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px #dbeafe; }
.edit-detail-grid input[readonly] { color: #64748b; background: #f1f5f9; cursor: not-allowed; }
.edit-wide { grid-column: span 2; }
.status { display: inline-block; padding: 4px 8px; color: #b91c1c; background: #fee2e2; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status.ok { color: #15803d; background: #dcfce7; }

.import-dialog { width: min(620px, 94vw); }
.import-content { display: grid; gap: 18px; padding: 22px 24px; }
.field-label { display: block; }
.path-preview { padding: 14px 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 9px; }
.path-preview span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.path-preview strong { color: #1d4ed8; font-size: 16px; }
.file-list { max-height: 120px; margin: 8px 0 0; padding: 0; overflow: auto; list-style: none; }
.file-list li { padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 13px; }
.import-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; background: #f8fafc; border-top: 1px solid var(--line); }
.visually-hidden { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: min(440px, calc(100vw - 28px)); padding: 13px 16px; color: #fff; background: #0f172a; border-radius: 9px; box-shadow: 0 12px 35px #0f172a44; font-size: 13px; }
.toast.error { background: #b91c1c; }

.flatpickr-calendar { font-family: var(--font); }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange { background: var(--blue); border-color: var(--blue); }

@media (max-width: 1250px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-label { grid-column: span 2; }
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-label { grid-column: 1 / -1; }
  .filters .button { width: 130px; }
  .wide { grid-column: span 1; }
}

@media (max-width: 680px) {
  .page { padding: 14px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .topbar-actions { width: 100%; }
  .topbar-actions .button { flex: 1; }
  .subtitle { font-size: 13px; }
  .filters { grid-template-columns: 1fr; }
  .search-label { grid-column: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: 1 / -1; }
  .card { min-height: 100px; padding: 15px; }
  .card strong { font-size: 20px; }
  .panel-head > div { display: block; }
  .panel-head span { display: block; margin-top: 5px; }
  .toast { right: 14px; bottom: 14px; }
  .detail-summary { grid-template-columns: 1fr 1fr; padding: 12px; }
  .edit-detail-grid { grid-template-columns: 1fr; padding: 16px; }
  .edit-wide { grid-column: auto; }
}

/* Menu ngang dùng chung */
.site-menu {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #111827;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px #0f172a0d;
}
.site-menu__inner { display: flex; align-items: center; gap: 28px; max-width: 1600px; min-height: 62px; margin: auto; padding: 0 28px; }
.site-menu__brand { display: flex; align-items: center; gap: 10px; color: #111827; font-weight: 800; text-decoration: none; white-space: nowrap; }
.site-menu__brand-logo { display: block; width: 145px; height: 42px; object-fit: contain; }
.site-menu__links { display: flex; align-self: stretch; gap: 4px; }
.site-menu__links a { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #374151; border-bottom: 3px solid transparent; font-size: 13px; font-weight: 700; text-decoration: none; }
.site-menu__links a:hover,
.site-menu__links a.active { color: #1d4ed8; background: #eff6ff; border-bottom-color: #2563eb; }
.site-menu__icon { width: 18px; height: 18px; flex: 0 0 auto; fill: currentColor; }
.site-menu__account { display: flex; align-items: center; gap: 12px; margin-left: auto; color: #374151; font-size: 13px; }
.menu-button,
.menu-login { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; color: #111827; background: #fff; border: 1px solid #cbd5e1; border-radius: 7px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.menu-button:hover,
.menu-login:hover { color: #1d4ed8; background: #eff6ff; border-color: #93c5fd; }
.menu-error { padding: 12px 28px; color: #fff; background: #b91c1c; font-size: 13px; }

/* Trang đăng nhập */
.login-page { min-height: 100vh; background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 45%, #e0e7ff 100%); }
.login-shell { display: grid; min-height: calc(100vh - 62px); padding: 32px 16px; place-items: center; }
.login-card { width: min(430px, 100%); padding: 36px; background: #fff; border: 1px solid #dbe3ee; border-radius: 18px; box-shadow: 0 24px 60px #0f172a1f; }
.login-badge { display: grid; width: 54px; height: 54px; margin-bottom: 22px; place-items: center; color: #fff; background: linear-gradient(135deg, #2563eb, #4f46e5); border-radius: 14px; font-weight: 800; letter-spacing: .05em; }
.login-card h1 { font-size: 28px; }
.login-subtitle { margin: 8px 0 26px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-form { display: grid; gap: 9px; }
.login-form label { margin-top: 7px; color: #475569; font-size: 12px; font-weight: 700; }
.login-form input { width: 100%; height: 46px; padding: 0 13px; color: var(--navy); background: #fff; border: 1px solid #cbd5e1; border-radius: 9px; outline: none; font-size: 14px; }
.login-form input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px #dbeafe; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.password-toggle { position: absolute; top: 50%; right: 8px; padding: 6px 8px; color: #2563eb; background: transparent; border: 0; transform: translateY(-50%); font-size: 12px; font-weight: 700; cursor: pointer; }
.login-submit { width: 100%; height: 46px; margin-top: 14px; }
.login-error { margin: 7px 0 0; padding: 10px 12px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; font-size: 12px; }
.login-hint { margin: 22px 0 0; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; text-align: center; }

@media (max-width: 680px) {
  .site-menu__inner { gap: 12px; padding: 0 14px; }
  .site-menu__brand-logo { width: 98px; height: 34px; }
  .site-menu__links a { padding: 0 9px; }
  #menuUsername { display: none; }
  .menu-button span { display: none; }
  .menu-button { padding: 8px; }
  .login-card { padding: 28px 22px; }
}

@media (max-width: 430px) {
  .site-menu__inner { gap: 7px; padding: 0 10px; }
  .site-menu__links { gap: 0; }
  .site-menu__links a { gap: 0; padding: 0 10px; }
  .site-menu__links a span { display: none; }
  .site-menu__account { gap: 6px; }
}

/* Dashboard biểu đồ */
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.dashboard-page { display: grid; gap: 18px; }
.dashboard-page .topbar { margin-bottom: 0; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 3px #0f172a0d; }
.metric-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-card strong { display: block; margin: 9px 0 4px; color: var(--navy); font-size: 25px; line-height: 1.25; }
.metric-card small { color: #94a3b8; font-size: 11px; }
.metric-card--blue { background: #eff6ff; border-color: #bfdbfe; }
.metric-card--blue strong { color: #1d4ed8; }
.metric-card--red { background: #fff1f2; border-color: #fecdd3; }
.metric-card--red strong { color: #dc2626; }
.dashboard-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 260px; padding: 35px; color: var(--muted); background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; text-align: center; }
.dashboard-empty strong { margin-bottom: 7px; color: var(--navy); font-size: 18px; }
.dashboard-empty span { font-size: 13px; }
.dashboard-empty a { margin-top: 18px; padding: 10px 14px; color: #fff; background: var(--blue); border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); gap: 14px; }
.chart-panel { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 3px #0f172a0d; }
.chart-panel--full { grid-column: 1 / -1; }
.chart-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 15px; }
.chart-heading h2 { font-size: 15px; }
.chart-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.chart-box { position: relative; height: 320px; }
.chart-box--doughnut { height: 320px; }
.chart-box--top { height: 350px; }
.swal2-popup { font-family: var(--font); }

/* Trang công khai chia sẻ công nợ khách hàng */
.share-page { min-height: 100vh; background: #f1f5f9; }
.share-header { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 max(20px, calc((100vw - 1500px) / 2)); color: #cbd5e1; background: #0f172a; font-size: 13px; }
.share-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.share-shell { width: min(1500px, calc(100% - 32px)); margin: 24px auto; }
.share-content { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 30px #0f172a12; }
.share-transaction-heading { padding: 24px; background: linear-gradient(135deg, #ffffff, #eff6ff); border-bottom: 1px solid #dbeafe; }
.share-transaction-heading h1 { color: var(--navy); font-size: 24px; }
.share-transaction-heading p { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; color: #64748b; font-size: 14px; }
.share-transaction-heading p strong { color: #1d4ed8; font-size: 16px; }
.customer-icon { display: inline-grid; width: 30px; height: 30px; place-items: center; background: #dbeafe; border-radius: 50%; font-size: 15px; }
.share-summary { gap: 14px; padding: 20px 24px; }
.share-summary .share-stat { display: flex; min-height: 112px; align-items: center; gap: 14px; padding: 18px; border-width: 1px; }
.share-stat i { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 13px; font-size: 23px; font-style: normal; font-weight: 800; }
.share-stat div { min-width: 0; }
.share-summary .share-stat span { margin-bottom: 8px; font-size: 12px; }
.share-summary .share-stat strong { font-size: clamp(20px, 1.7vw, 28px); line-height: 1.15; white-space: nowrap; }
.share-stat--transactions { background: #eff6ff !important; border-color: #bfdbfe !important; }
.share-stat--transactions i { color: #2563eb; background: #dbeafe; }
.share-stat--transactions strong { color: #1d4ed8 !important; }
.share-stat--total { background: #fffbeb !important; border-color: #fde68a !important; }
.share-stat--total i { color: #d97706; background: #fef3c7; }
.share-stat--total strong { color: #b45309 !important; }
.share-stat--paid { background: #ecfdf5 !important; border-color: #a7f3d0 !important; }
.share-stat--paid i { color: #059669; background: #d1fae5; }
.share-stat--paid strong { color: #047857 !important; }
.share-stat--debt { background: #fff1f2 !important; border-color: #fecdd3 !important; }
.share-stat--debt i { color: #dc2626; background: #fee2e2; }
.share-stat--debt strong { color: #dc2626 !important; }
.share-title { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.share-title h1 { margin-top: 5px; font-size: 24px; }
.share-title > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.share-table { max-height: none; }
.share-footer { padding: 16px 24px; color: #94a3b8; background: #f8fafc; border-top: 1px solid var(--line); font-size: 11px; text-align: center; }
.share-message { display: flex; min-height: 240px; align-items: center; flex-direction: column; justify-content: center; gap: 8px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.share-message--error strong { color: #b91c1c; font-size: 18px; }
.public-detail-dialog { width: min(860px, 94vw); }
.public-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-height: 65vh; padding: 20px 24px; overflow: auto; background: #f8fafc; }
.public-detail-grid article { min-width: 0; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.public-detail-grid span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.public-detail-grid strong { display: block; color: var(--navy); font-size: 14px; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-panel--full { grid-column: auto; }
}

@media (max-width: 680px) {
  .share-shell { width: calc(100% - 20px); margin: 10px auto; }
  .share-transaction-heading { padding: 18px 16px; }
  .share-transaction-heading h1 { font-size: 20px; }
  .share-transaction-heading p { align-items: flex-start; font-size: 12px; }
  .share-transaction-heading p strong { font-size: 13px; overflow-wrap: anywhere; }
  .share-summary { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .share-summary .share-stat { min-height: 92px; padding: 14px; }
  .share-stat i { flex-basis: 42px; width: 42px; height: 42px; font-size: 20px; }
  .share-summary .share-stat strong { font-size: 21px; }
  .share-table table { min-width: 1150px; }
  .public-detail-grid { grid-template-columns: 1fr; padding: 14px; }
}

@media (min-width: 681px) and (max-width: 1000px) {
  .share-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-header { align-items: flex-start; flex-direction: column; }
  .dashboard-header .button-link { width: 100%; }
  .chart-panel { padding: 15px; }
  .chart-box, .chart-box--doughnut { height: 280px; }
}

/* Trạng thái Dashboard rỗng vẫn giữ biểu đồ hiển thị */
.dashboard-empty { min-height: 0; flex-direction: row; justify-content: space-between; padding: 16px 18px; text-align: left; }
.dashboard-empty > div { display: grid; gap: 4px; }
.dashboard-empty strong { margin: 0; font-size: 14px; }
.dashboard-empty a { flex-shrink: 0; margin: 0 0 0 18px; }
@media (max-width: 560px) {
  .dashboard-empty { align-items: flex-start; flex-direction: column; gap: 12px; }
  .dashboard-empty a { margin: 0; }
}
