:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --border: #dde1e6;
  --text: #1f2430;
  --muted: #6b7280;
  --accent: #2f6fed;
  --accent-dark: #1e4fb8;
  --danger: #d64545;
  --ok: #1a8f5e;
  --warn: #b45309;
  --radius: 8px;
  /* Chấm công — 5 trạng thái ngày trên lịch tháng, xem app/attendance. */
  --att-cong-bg: #1a7a4c;
  --att-cong-text: #ffffff;
  --att-cong-thieu-bg: #e08a1e;
  --att-cong-thieu-text: #ffffff;
  --att-phep-bg: #f5cb42;
  --att-phep-text: #5c4400;
  --att-le-bg: #f0883e;
  --att-le-text: #ffffff;
  --att-dai-han-bg: #bfe3f7;
  --att-dai-han-text: #0b4f6c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

/* shell chặn hẳn scroll ở cấp trang (overflow:hidden) — sidebar là 1 flex
   item cố định (flex-shrink:0) bên trong nên không bao giờ bị cuốn theo dù
   nội dung .content cuộn dọc hay cuộn ngang (VD bảng rất rộng); .content là
   VÙNG DUY NHẤT thật sự cuộn được (xem min-width:0 + overflow-x bên dưới —
   thiếu min-width:0 thì 1 bảng rộng bên trong sẽ đẩy rộng cả flex item,
   kéo tràn ngang ra tới .shell/body, lúc đó cuộn ngang lại kéo theo cả
   sidebar vì nó chỉ là flex sibling, không phải fixed/sticky thật). */
.shell { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar tự nó KHÔNG cuộn — chia 3 vùng: brand+"Quay lại" cố định trên
   cùng, danh sách nhãn (.sidebar-nav-scroll) cuộn riêng ở giữa, tài
   khoản+đăng xuất cố định dưới cùng. Trước đây cả .sidebar là 1 khối cuộn
   chung (overflow-y:auto trên chính .sidebar) — khi danh sách nhãn dài hơn
   màn hình, cuộn xuống để thấy nhãn ở dưới sẽ kéo luôn "Quay lại" ở trên
   ra khỏi màn hình theo, dù về mặt DOM nó vẫn nằm "trong sidebar". */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #1b2130;
  color: #cfd6e4;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.sidebar-fixed-top { flex-shrink: 0; padding-top: 16px; display: flex; flex-direction: column; }
/* display:flex + flex-direction:column ở cả 3 vùng — các <a> nhãn bên
   trong dựa vào việc LÀM CON TRỰC TIẾP của 1 flex container để tự
   "blockify" xếp theo cột (chưa từng khai display:block riêng cho
   .sidebar a) — thiếu dòng này thì các nhãn tràn lên cùng 1 dòng thay vì
   xếp dọc, vì .sidebar-nav-scroll không tự nó là flex container. */
.sidebar-nav-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar-fixed-bottom { flex-shrink: 0; padding-bottom: 16px; display: flex; flex-direction: column; }
.sidebar .brand {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  padding: 8px 20px 20px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar .brand img { border-radius: 6px; flex-shrink: 0; }
.sidebar .brand:hover { background: none; }
/* Không còn dùng ở base.html (04/08/2026: "Quay lại" chuyển vào .toolbar
   của từng trang qua injectBackButton() trong app.js) — vẫn giữ lại vì
   platform_admin/base.html (khu vực quản trị nền tảng riêng, ngoài phạm vi
   thay đổi lần này) vẫn dùng class này. */
.sidebar-back {
  display: block; margin: 0 12px 12px; padding: 8px 8px;
  font-size: 13px; font-weight: 600; color: #cfd6e4;
  background: #262e42; border-radius: 6px;
}
.sidebar-back:hover { background: #303952; }
.sidebar a {
  color: #cfd6e4;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 13.5px;
  border-left: 3px solid transparent;
}
.sidebar a:hover { background: #262e42; }
.sidebar a.active {
  background: #262e42;
  border-left-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.sidebar .nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #cfd6e4;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.sidebar .nav-group-toggle:hover { background: #262e42; }
.sidebar .nav-group-toggle::after {
  content: "▸";
  font-size: 11px;
  transition: transform .15s;
}
.sidebar .nav-group-toggle.expanded::after { transform: rotate(90deg); }
.sidebar .nav-subgroup { display: flex; flex-direction: column; }
.sidebar .nav-subgroup.collapsed { display: none; }
.sidebar a.sub {
  padding-left: 36px;
  font-size: 13px;
  color: #a9b2c6;
}
.sidebar a.sub.active { color: #fff; }
.sidebar .nav-group-toggle.sub { padding-left: 36px; font-size: 13px; font-weight: 500; color: #a9b2c6; }
.sidebar a.sub2 { padding-left: 52px; font-size: 12.5px; }
.sidebar .nav-group-toggle.sub2 { padding-left: 52px; font-size: 12.5px; font-weight: 500; color: #a9b2c6; }
.sidebar a.sub3 { padding-left: 68px; font-size: 12px; }

.content {
  flex: 1;
  /* min-width:0 huỷ mặc định min-width:auto của flex item — thiếu dòng này
     thì 1 bảng rộng bên trong ép .content không co lại được, tràn ra ngoài
     .shell (xem giải thích ở .shell phía trên). */
  min-width: 0;
  padding: 28px 36px;
  max-width: 1100px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: auto;
}

h1 { font-size: 22px; margin: 0 0 12px; }
h2 { font-size: 17px; margin: 0 0 8px; }
h3 { font-size: 14.5px; margin: 20px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
p { color: var(--muted); line-height: 1.5; }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
.card h2 { color: var(--accent-dark); }
.card p { margin: 0; }

.card-group { cursor: pointer; }
.card-group h2 { display: flex; align-items: center; justify-content: space-between; }
.card-group-arrow { font-size: 13px; transition: transform .15s; color: var(--muted); }
.card-group.expanded .card-group-arrow { transform: rotate(90deg); }
.card-group-links { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.card-group-links.collapsed { display: none; }
.card-group-links a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .15s, transform .15s;
  cursor: default;
}
.card-group-links a:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); cursor: pointer; }
.card-group-links h3 { margin: 0 0 2px; font-size: 14.5px; color: var(--accent-dark); text-transform: none; letter-spacing: normal; }
.card-group-links p { margin: 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  scroll-margin-top: 20px;
}

/* Sticky by default — every page's toolbar (title + action buttons) stays
   reachable while its content scrolls, instead of needing to scroll back
   to the top to click an action. */
.toolbar {
  display: flex; justify-content: flex-start; align-items: center; gap: 12px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0; margin: -10px 0 16px;
}
/* Nhóm nút thao tác luôn dạt hẳn sang phải trong hàng của nó — kể cả khi
   tiêu đề quá dài khiến nhóm nút bị đẩy xuống dòng dưới (flex-wrap ở trên),
   margin-left:auto vẫn kéo nó về mép phải của DÒNG ĐÓ thay vì dính liền
   ngay sau tiêu đề. */
.toolbar > .section-actions { margin-left: auto; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: #eef0f4; color: var(--text); }
.btn.secondary:hover { background: #e1e4ea; }
.btn.danger { background: var(--danger); }
.btn.small { padding: 5px 10px; font-size: 12.5px; }

form.inline { display: inline; }

.label-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.label-tabs a {
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.label-tabs a:hover { color: var(--text); }
.label-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th, table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
tr.row-clickable { cursor: pointer; }
tr.row-clickable:hover { background: var(--bg); }

.icon-action { display: inline-block; text-decoration: none; font-size: 15px; margin-right: 10px; cursor: pointer; }
.icon-action:last-child { margin-right: 0; }
tr.row-flagged-delete { background: #fdecec; }
tr.row-flagged-delete:hover { background: #fbdada; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.field input[type=text], .field input[type=date], .field input[type=datetime-local],
.field input[type=number], .field input[type=email], .field input[type=password],
.field select, .field textarea {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
}
.field textarea { min-height: 70px; resize: vertical; }
.field.field-checkbox label { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; cursor: pointer; }
.field.field-checkbox input { width: auto; }
.hint { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.quick-date-input { margin-top: 4px; font-size: 12px !important; padding: 5px 7px !important; color: var(--muted); }

.path-picker { display: flex; gap: 8px; }
.path-picker input { flex: 1; }
.path-picker .btn { flex-shrink: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0 16px; }

.repeat-table-wrap { overflow-x: auto; }
.repeat-table input, .repeat-table select, .repeat-table textarea { width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: 5px 6px; font-size: 12.5px; font-family: inherit; }
.repeat-table textarea { resize: vertical; }
.repeat-table .row-actions { white-space: nowrap; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge.locked { background: #eef0f4; color: var(--muted); }
.badge.open { background: #e6f4ea; color: var(--ok); }
.badge.overdue { background: #fdecec; color: var(--danger); }
.badge.done { background: #eef0f4; color: var(--muted); text-decoration: line-through; }
.badge.warn { background: #fef3e2; color: var(--warn); }

/* Gantt-style progress bar: red = elapsed, green = remaining, shared by
   Kế hoạch công việc's cards and Nhắc việc's table cells. */
.gantt-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: #eef0f4; }
.gantt-bar .elapsed { background: var(--danger); }
.gantt-bar .remaining { background: var(--ok); }
.gantt-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.gantt-cell { min-width: 160px; }

/* Real Gantt chart table (Kế hoạch công việc's step list): every bar sits
   on the SAME shared timeline (item.start_at → item.due_at), positioned
   and sized proportionally to its own dates — not just filling its cell
   edge-to-edge — so a 1-month step visibly reads shorter than a 6-month
   one, and later-starting steps sit further right. */
.gantt-table-wrap { overflow-x: auto; }
.gantt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gantt-table th, .gantt-table td { text-align: center; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.gantt-table td:nth-child(2), .gantt-table td:nth-child(3) { text-align: left; }
.gantt-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.gantt-col { min-width: 340px; }
.gantt-row-main { background: var(--row-main-bg, #e9ecf3); }
.gantt-row-main td { font-weight: 600; }
.gantt-track-wrap { padding-bottom: 16px; }
.gantt-track { position: relative; height: 18px; background: #eef0f4; border-radius: 4px; }
.gantt-track-bar { position: absolute; top: 0; height: 100%; border-radius: 4px; overflow: hidden; display: flex; min-width: 6px; }
.gantt-track-bar .elapsed { background: var(--danger); }
.gantt-track-bar .remaining { background: var(--ok); }
.gantt-track-bar.done { background: var(--muted); }
.gantt-track-labels { position: relative; height: 14px; margin-top: 2px; font-weight: normal; }
.gantt-track-label { position: absolute; top: 0; font-size: 10px; color: var(--muted); white-space: nowrap; transform: translateX(-4px); }
.gantt-table .muted-cell { color: var(--muted); font-size: 12px; font-weight: normal; }

.plan-card-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.plan-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--panel); }
.plan-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.plan-card-header h3 { margin: 0; font-size: 15px; color: var(--text); text-transform: none; letter-spacing: normal; }
.plan-card .note { font-size: 12.5px; margin: 0 0 10px; }
.plan-card .gantt-bar { margin-top: 6px; }
.plan-card-link { display: block; text-decoration: none; cursor: pointer; }
.plan-card-link:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
.extend-form { display: inline-flex; gap: 6px; align-items: center; }
.extend-form input[type=datetime-local] { padding: 5px 7px; border: 1px solid var(--border); border-radius: 6px; font-size: 12.5px; font-family: inherit; }

details.completed-section { margin-top: 20px; }
details.completed-section summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }

.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 900px; }

.pie-stats { display: flex; gap: 32px; flex-wrap: wrap; margin: 16px 0 24px; }
.pie-stat-block { display: flex; align-items: center; gap: 16px; }
.pie-stat-block h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.pie-legend { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.pie-legend li { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; white-space: nowrap; }
.pie-legend .swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

.hidden-form { display: none !important; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 24, 32, 0.45);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal-box { width: 90%; max-width: 420px; margin: 0; box-shadow: 0 12px 32px rgba(0,0,0,.25); }

.loading-box {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--panel); padding: 32px 44px; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.loading-spinner { font-size: 42px; animation: hourglass-flip 1.4s ease-in-out infinite; }
.loading-box p { margin: 0; color: var(--text); font-size: 13.5px; }
@keyframes hourglass-flip {
  0%, 40% { transform: rotate(0deg); }
  50%, 90% { transform: rotate(180deg); }
  100% { transform: rotate(180deg); }
}

.flash-list { margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; font-size: 13px; }
.flash-success { background: #e6f4ea; color: var(--ok); }
.flash-error { background: #fdecec; color: var(--danger); }
.flash-info { background: #eaf1fd; color: var(--accent-dark); }

.section-actions { display: flex; gap: 8px; margin-top: 16px; }

.settings-group { margin-bottom: 28px; scroll-margin-top: 20px; }
.settings-group h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.ai-task-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ai-task-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; }
.ai-task-row input { width: auto; }

.empty-state { color: var(--muted); padding: 30px 0; text-align: center; }

.notification-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.notification-list li { padding: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.notification-list li.unread { border-color: var(--accent); background: #f5f8ff; }
.notification-link-btn { display: block; width: 100%; text-align: left; background: none; border: none; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.notification-title { font-weight: 600; margin-bottom: 4px; }
.notification-body { font-size: 13.5px; margin-bottom: 6px; white-space: pre-wrap; }
.card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }

.archive-layout { display: flex; gap: 20px; margin-top: 16px; align-items: flex-start; }
.archive-nav {
  width: 220px;
  flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.archive-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
}
.archive-nav a:hover { background: var(--bg); }
.archive-nav a.active { background: var(--accent); color: #fff; font-weight: 600; }
.archive-nav-arrow {
  display: inline-block;
  width: 14px;
  font-size: 10px;
  color: var(--muted);
  transition: transform .15s;
}
.archive-nav a.active .archive-nav-arrow { color: #fff; }
.archive-nav-arrow.expanded { transform: rotate(90deg); }
.archive-nav-arrow.spacer { visibility: hidden; }

.archive-panel {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 320px;
}
.archive-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.archive-breadcrumb a { color: var(--accent); text-decoration: none; }
.archive-breadcrumb a:hover { text-decoration: underline; }
.archive-breadcrumb .current { color: var(--text); font-weight: 600; }

.archive-folder-actions { display: flex; gap: 8px; margin-bottom: 16px; }

.archive-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.archive-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.archive-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
.archive-card-icon { font-size: 28px; margin-bottom: 6px; }
.archive-card-name { font-size: 12.5px; word-break: break-word; }
.archive-card.is-dir .archive-card-name { font-weight: 600; }
.archive-card-size { font-size: 11px; color: var(--muted); margin-top: 4px; }

.sidebar .logged-in-as { padding: 10px 20px 0; font-size: 11.5px; color: #6b7488; word-break: break-all; }
.sidebar .logout-link { color: #9aa4b8; }

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.auth-card .brand { font-weight: 700; font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.auth-card .brand img { border-radius: 6px; }
.auth-card h1 { font-size: 18px; margin: 0 0 4px; }
.auth-card .btn { width: 100%; text-align: center; margin-top: 6px; }

/* Chấm công — lịch tháng bên trái (to hơn), tác vụ + thống kê bên phải. */
.attendance-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .attendance-layout { grid-template-columns: 1fr; } }

.month-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.month-nav h3 { margin: 0; min-width: 130px; text-align: center; }

.att-calendar { width: 100%; border-collapse: collapse; table-layout: fixed; }
.att-calendar th { font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 4px; text-align: center; }
.att-calendar td { border: 1px solid var(--border); height: 64px; vertical-align: top; padding: 4px; position: relative; }
.att-calendar td.empty { border-color: transparent; }
.att-day-num { font-size: 12.5px; font-weight: 600; }
.att-day-label { font-size: 10.5px; margin-top: 2px; line-height: 1.2; }
.att-day-hours { font-size: 10px; margin-top: 2px; opacity: 0.9; }
.att-day-today { outline: 2px solid var(--accent); outline-offset: -2px; }

.att-day-cham_cong { background: var(--att-cong-bg); color: var(--att-cong-text); }
.att-day-cham_cong_thieu { background: var(--att-cong-thieu-bg); color: var(--att-cong-thieu-text); }
.att-day-nghi_phep { background: var(--att-phep-bg); color: var(--att-phep-text); }
.att-day-le { background: var(--att-le-bg); color: var(--att-le-text); }
.att-day-nghi_dai_han { background: var(--att-dai-han-bg); color: var(--att-dai-han-text); }

.att-day-form { margin: 0; }
.att-day-form button { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; }

.att-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.att-legend span { display: inline-flex; align-items: center; gap: 5px; }
.att-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.att-checkin-buttons { display: flex; gap: 10px; }
.att-checkin-buttons .btn { flex: 1; }

.att-hours-box { display: flex; justify-content: space-between; text-align: center; }
.att-hours-box div { flex: 1; }
.att-hours-box .att-hours-value { font-size: 20px; font-weight: 700; margin-top: 4px; }

.att-stats-list { list-style: none; margin: 0; padding: 0; }
.att-stats-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); }
.att-stats-list li:last-child { border-bottom: none; }
.att-stats-list strong { font-size: 15px; }
