/* ===== TSM Wireframe - shared styles (desktop-first) ===== */
:root {
  --sidebar-w: 230px;
  --topbar-h: 56px;
  --brand: #f97316;        /* cam chủ đạo */
  --brand-dark: #ea580c;   /* cam đậm (hover/active) */
  --brand-soft: #fff3e9;   /* cam nhạt (nền) */
  --brand-border: #ffd9bd; /* viền cam nhạt */
}

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f6f7f9;
  color: #212529;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid #e3e6ea;
  display: flex;
  align-items: center;
  padding: 0 18px;
  z-index: 1030;
}
.topbar .brand {
  font-weight: 700;
  color: var(--brand);
  font-size: 1.1rem;
  white-space: nowrap;
}
.topbar .menu-toggle {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  color: #495057;
  line-height: 1;
  padding: 4px 10px;
  margin-right: 8px;
  border-radius: 6px;
  cursor: pointer;
}
.topbar .menu-toggle:hover { background: var(--brand-soft); color: var(--brand); }
.topbar .brand i { margin-right: 6px; }
.topbar .brand .brand-center {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--brand-border);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  vertical-align: middle;
}

/* Sidebar (nền trắng, điểm nhấn cam) */
.sidebar {
  position: fixed;
  top: var(--topbar-h); bottom: 0; left: 0;
  width: var(--sidebar-w);
  background: #fff4ea;
  border-right: 1px solid #ffe1c9;
  padding-top: 12px;
  overflow-y: auto;
  display: flex;            /* xếp dọc để ghim phần footer (version + liên hệ) xuống đáy */
  flex-direction: column;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5b6573;
  text-decoration: none;
  padding: 11px 20px;
  font-size: .95rem;
}
.sidebar a i { width: 20px; text-align: center; color: #adb5bd; }
.sidebar a:hover { background: #ffe6d2; color: var(--brand-dark); }
.sidebar a:hover i { color: var(--brand-dark); }
.sidebar a.active { background: var(--brand); color: #fff; }
.sidebar a.active i { color: #fff; }
.sidebar .group-label {
  color: #9aa3af;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 20px 4px;
}
/* Chân sidebar: phiên bản + thông tin liên hệ (ghim xuống đáy) */
.sidebar-footer {
  margin-top: auto;
  padding: 14px 20px;
  border-top: 1px solid #ffe1c9;
  color: #9aa3af;
  font-size: .75rem;
  line-height: 1.45;
}
.sidebar-footer > div { display: flex; align-items: flex-start; gap: 6px; }
.sidebar-footer > div + div { margin-top: 5px; }
.sidebar-footer .ver { font-weight: 600; color: #6c757d; }
.sidebar-footer i { flex: 0 0 auto; margin-top: 1px; color: #c08457; }
/* email/SĐT dài: tự xuống dòng theo ký tự, canh thụt đều dưới icon, không tràn sidebar */
.sidebar-footer a { display: inline; padding: 0; font-size: inherit; color: var(--brand-dark); overflow-wrap: anywhere; }
.sidebar-footer a:hover { background: none; text-decoration: underline; }

/* Thông báo dạng toast (góc DƯỚI phải, nhỏ gọn để không che nút bấm) */
#toast-stack { top: auto; bottom: 0; z-index: 1090; }
#toast-stack .toast { font-size: .82rem; min-width: 0; max-width: 300px; }
#toast-stack .toast-body { padding: 8px 12px; }
#toast-stack .btn-close { padding: .5rem; }

/* Content */
.content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: 22px 26px;
}

/* Ẩn/hiện menu */
.sidebar, .content { transition: margin-left .2s ease; }
body.sidebar-collapsed .sidebar { margin-left: calc(-1 * var(--sidebar-w)); }
body.sidebar-collapsed .content { margin-left: 0; }


.page-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.page-sub { color: #6c757d; font-size: .9rem; margin-bottom: 18px; }

/* Thanh thao tác dính trên cùng cho form dài (nút Lưu/Huỷ luôn thấy) */
.form-actions {
  position: sticky;
  top: var(--topbar-h);
  z-index: 6;
  background: #f6f7f9;
  padding: 10px 0 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

/* ===== Control gọn, vừa nội dung (toàn cục) ===== */
.form-control, .form-select { font-size: .9rem; }
input[type="date"], input[type="time"], input[type="month"], .js-date { max-width: 175px; }
.js-date::placeholder { color: #c4c9d0; }   /* gợi ý dd/mm/yyyy: xám nhạt hơn */
input[type="number"] { max-width: 120px; }
.money-input { max-width: 200px; }

/* Bộ chọn tháng (MM/YYYY): input + nút lịch + bảng chọn Tháng/Năm */
.month-picker { display: inline-block; position: relative; }
.month-picker .input-group { width: auto; }
.month-picker .month-input { max-width: 110px; }
.month-pop {
  position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 4px; width: 220px;
  background: #fff; border: 1px solid #e3e6ea; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12); padding: 8px;
}
.month-pop .mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.month-pop .mp-year { font-weight: 700; color: #1f2d3d; }
.month-pop .mp-nav { border: none; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 10px; color: #5b6573; border-radius: 6px; }
.month-pop .mp-nav:hover { background: var(--brand-soft); color: var(--brand); }
.month-pop .mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.month-pop .mp-m { border: 1px solid #e3e6ea; background: #fff; border-radius: 6px; padding: 6px 0; font-size: .8rem; cursor: pointer; }
.month-pop .mp-m:hover { background: var(--brand-soft); border-color: var(--brand-border); color: var(--brand-dark); }
.month-pop .mp-m.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.card { border: 1px solid #e6e9ee; }
.card-header { background: #fff; font-weight: 600; }

.table thead th { background: #f1f3f6; font-size: .82rem; text-transform: none; letter-spacing: 0; color: #5b6573; }

.badge-soft-green { background: #e3f6e9; color: #198754; }
.badge-soft-red { background: #fde8e8; color: #dc3545; }
.badge-soft-gray { background: #eceff3; color: #6c757d; }
.badge-soft-blue { background: var(--brand-soft); color: var(--brand-dark); }
.badge-soft-amber { background: #fff3da; color: #b8860b; }
.badge-soft-purple { background: #efe6fb; color: #7e3ff2; }

.wf-note {
  background: #fffbe6;
  border: 1px dashed #e6c200;
  color: #7a6500;
  font-size: .82rem;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.stat-card .num { font-size: 1.8rem; font-weight: 700; }
.stat-card .lbl { color: #6c757d; font-size: .85rem; }

/* ===== Bảng điểm danh dạng register ===== */
.att-table { border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.att-table th, .att-table td { border: 1px solid #e6e9ee; text-align: center; white-space: nowrap; padding: 6px 8px; }
.att-table thead th { background: #f1f3f6; position: sticky; top: 0; z-index: 3; }
.att-table .stick { position: sticky; left: 0; background: #fff; text-align: left; min-width: 190px; z-index: 2; }
.att-table thead .stick { background: #f1f3f6; z-index: 4; }
.att-table .col-day { font-size: .72rem; color: #6c757d; font-weight: 500; }
.att-table .col-date { font-weight: 600; }
.att-table .today { background: #fff7e0 !important; }
.att-table td.future { background: #f8f9fa; }
.att-table .form-check-input { width: 1.2em; height: 1.2em; cursor: pointer; }
.att-scroll { overflow-x: auto; }
.att-table .cnt { font-weight: 600; color: #198754; background: #f6fbf7; }

/* Điều hướng tháng */
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-nav .month-label {
  flex: 1;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 6px 10px;
  white-space: nowrap;
}
.month-nav .btn { white-space: nowrap; }

/* Bảng điểm danh - tất cả ngày trong tháng */
.att-table th.sched { background: var(--brand-soft); }
.att-table td.sched-cell { background: #fff9f4; }
.att-table .weekend { background: #f3f1f1; }
.att-table thead th.weekend { background: #ebe7e7; }
.att-table td.future { background: #f8f9fa; }
.att-table .col-date { font-size: .9rem; }
.att-table .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin: 2px auto; }
.att-table .dot-off { background: transparent; }
.lgd { display: inline-block; padding: 1px 7px; border-radius: 4px; margin-left: 4px; font-size: .75rem; }
.lgd-sched { background: var(--brand-soft); color: var(--brand-dark); }
.lgd-weekend { background: #ebe7e7; color: #6c757d; }
.lgd-today { background: #fff7e0; color: #b8860b; }

/* Chế độ thu gọn: ẩn các cột KHÔNG phải ngày học và KHÔNG có dữ liệu */
.att-table.compact .col-extra:not(.col-has-data) { display: none; }
.att-table .note-btn { cursor: pointer; border: none; background: transparent; padding: 0; }
.att-table td.blocked { background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 4px, #eceff3 4px, #eceff3 8px); }

/* Khi in: ẩn menu/topbar và các nút, mở rộng nội dung */
@media print {
  .topbar, .sidebar, .no-print { display: none !important; }
  .content { margin: 0 !important; }
}

/* ===== Điểm danh theo "tháng học" (buổi 1..N) ===== */
.period-tabs { border-bottom: 0; }
.buoi-scroll { overflow-x: auto; }
.buoi-table { border-collapse: separate; border-spacing: 0; font-size: .9rem; width: 100%; }
.buoi-table th, .buoi-table td { border-bottom: 1px solid #eef0f3; text-align: center; padding: 8px 6px; white-space: nowrap; }
.buoi-table .stick { position: sticky; left: 0; background: #fff; text-align: left; min-width: 190px; z-index: 2; }
.buoi-table tbody tr:nth-child(even) .stick { background: #fafbfc; }
.buoi-table thead th { background: #f1f3f6; position: sticky; top: 0; z-index: 3; vertical-align: top; }
.buoi-table thead .stick { z-index: 4; }
.buoi-table .buoi-no { font-weight: 600; }
.buoi-table .buoi-date { font-size: .8rem; padding: 2px 4px; width: 104px; margin: 0; }
.buoi-date-row { display: flex; align-items: center; justify-content: center; gap: 2px; margin: 3px auto 0; }
.buoi-date-clear { border: none; background: transparent; color: #c0c4ca; cursor: pointer; padding: 0; font-size: .9rem; line-height: 1; }
.buoi-date-clear:hover { color: #dc3545; }
/* Icon lịch của ô ngày -> tông cam, to & dễ bấm hơn */
.buoi-date::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .9;
  filter: invert(58%) sepia(64%) saturate(2614%) hue-rotate(346deg) brightness(99%) contrast(95%);
}
.buoi-date::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.buoi-table .buoi-undated { color: #adb5bd; font-style: italic; font-size: .75rem; margin-top: 4px; }
.buoi-table td.col-undated, .buoi-table th.col-undated { background: #f8f9fa; }
.buoi-table .cnt { font-weight: 700; color: #198754; background: #f6fbf7; min-width: 56px; border-left: 2px solid #d7dde6; }
.buoi-table .rm-buoi { border: none; background: transparent; color: #c7ccd2; cursor: pointer; font-size: .75rem; padding: 0 2px; }
.buoi-table .rm-buoi:hover { color: #dc3545; }
/* Icon ghi chú buổi: to & dễ bấm hơn, hover nổi bật */
.buoi-table .note-ic { cursor: pointer; font-size: 1.15rem; line-height: 1; padding: 3px; border-radius: 6px; }
.buoi-table .note-ic:hover { background: var(--brand-soft); color: var(--brand) !important; }

/* Ô điểm danh dạng heatmap (label bọc checkbox ẩn) */
.hm-box { display: inline-block; cursor: pointer; margin: 0; }
.hm-box input { position: absolute; opacity: 0; width: 0; height: 0; }
.hm-mark {
  width: 28px; height: 28px; border: 1px solid #e3e6ea; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; color: transparent;
  background: #fff; transition: transform .05s ease;
}
.hm-box:hover .hm-mark { border-color: var(--brand); transform: scale(1.1); }
.att-cb:checked + .hm-mark { background: var(--brand); border-color: var(--brand); color: #fff; }
/* Buổi chưa có ngày -> ô khoá, không click được */
.att-cb:disabled + .hm-mark { background: #f3f4f6; border-style: dashed; opacity: .55; }
/* Đã điểm danh CÓ HỌC nhưng bị khoá: giữ dấu ✓ rõ (cam nhạt) để phân biệt với ô vắng/khoá */
.att-cb:checked:disabled + .hm-mark {
  background: var(--brand-soft); border-style: solid; border-color: var(--brand-border);
  color: var(--brand-dark); opacity: 1;
}
.hm-box:has(.att-cb:disabled) { cursor: not-allowed; }
.hm-box:has(.att-cb:disabled):hover .hm-mark { border-color: #e3e6ea; transform: none; }
/* Hàng HS bị khoá điểm danh (Tạm nghỉ / Nghỉ học / đã xoá): làm mờ tên cho dễ nhận biết */
.buoi-table tr.row-locked .stick { color: #adb5bd; }

/* ===== Override Bootstrap: primary = cam ===== */
:root {
  --bs-primary: #f97316;
  --bs-primary-rgb: 249, 115, 22;
  --bs-link-color: #ea580c;
  --bs-link-color-rgb: 234, 88, 12;
  --bs-link-hover-color: #c2410c;
  --bs-link-hover-color-rgb: 194, 65, 12;
}
a { color: var(--brand-dark); }
a:hover { color: #c2410c; }
.btn-primary {
  --bs-btn-bg: #f97316;          --bs-btn-border-color: #f97316;
  --bs-btn-hover-bg: #ea580c;    --bs-btn-hover-border-color: #ea580c;
  --bs-btn-active-bg: #ea580c;   --bs-btn-active-border-color: #ea580c;
  --bs-btn-disabled-bg: #f97316; --bs-btn-disabled-border-color: #f97316;
}
.btn-outline-primary {
  --bs-btn-color: #ea580c;       --bs-btn-border-color: #f97316;
  --bs-btn-hover-bg: #f97316;    --bs-btn-hover-border-color: #f97316;
  --bs-btn-active-bg: #f97316;   --bs-btn-active-border-color: #f97316;
}
.btn-link { --bs-btn-color: #ea580c; --bs-btn-hover-color: #c2410c; }
.text-primary { color: var(--brand-dark) !important; }
.bg-primary { background-color: var(--brand) !important; }
.text-bg-primary { background-color: var(--brand) !important; color: #fff !important; }
.badge.bg-primary, .badge.text-bg-primary { background-color: var(--brand) !important; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-control:focus, .form-select:focus { border-color: var(--brand-border); box-shadow: 0 0 0 .2rem rgba(249, 115, 22, .18); }
.nav-tabs .nav-link.active { color: var(--brand-dark); }
.page-link { color: var(--brand-dark); }
.page-item.active .page-link { background-color: var(--brand); border-color: var(--brand); }

/* Nút thu gọn (collapse) có mũi tên xổ xuống — tự xoay khi mở */
.collapse-toggle .chevron { transition: transform .2s ease; }
.collapse-toggle:not(.collapsed) .chevron { transform: rotate(180deg); }

/* ===== Responsive: điện thoại / máy tính bảng dọc (< 992px = breakpoint lg của Bootstrap) =====
   Máy tính (>= 992px) giữ nguyên giao diện ở trên. Dưới 992px:
   - Lớp bọc #sidebar (.sidebar-wrap) là Bootstrap offcanvas-lg -> menu trượt từ trái (mở bằng nút ☰).
   - .sidebar bên trong thôi "position: fixed" (nằm trong khung offcanvas), nội dung chiếm hết chiều ngang.
   - Trạng thái thu gọn của máy tính (body.sidebar-collapsed) không có tác dụng. */
@media (max-width: 991.98px) {
  .sidebar-wrap {
    --bs-offcanvas-width: 270px;
    --bs-offcanvas-bg: #fff4ea;          /* cùng màu nền sidebar */
  }
  .sidebar-wrap .offcanvas-header {
    padding: 12px 16px;
    border-bottom: 1px solid #ffe1c9;
  }
  .sidebar-wrap .offcanvas-header .brand {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.1rem;
  }
  .sidebar-wrap .offcanvas-header .brand i { margin-right: 6px; }
  .sidebar {
    position: static;
    width: auto;
    flex: 1 1 auto;
    min-height: 0;                       /* cho phép cuộn bên trong khung offcanvas */
    border-right: 0;
    padding-top: 6px;
    transition: none;
    margin-left: 0 !important;           /* bỏ hiệu ứng thu gọn của máy tính */
  }
  .content {
    margin-left: 0 !important;
    padding: 14px 12px;
    transition: none;
  }
  .topbar { padding: 0 10px; }
  .topbar .menu-toggle { margin-right: 4px; }

  /* Bảng trong .table-responsive: không xuống dòng từng chữ -> bảng cuộn ngang trong khung.
     Dòng thông báo trống (td colspan) vẫn được xuống dòng. */
  .table-responsive > .table th,
  .table-responsive > .table td { white-space: nowrap; }
  /* Dòng thông báo trống (td colspan) rộng bằng cả bảng -> chữ canh giữa bị khuất; canh trái để luôn đọc được */
  .table-responsive > .table td[colspan] {
    white-space: normal;
    text-align: left !important;
  }

  /* Cột tên (học sinh / nhóm) dính trái khi cuộn ngang — gắn class .col-name cho th + td */
  .table-responsive > .table .col-name {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: inset -1px 0 0 #e6e9ee;   /* vạch ngăn với các cột trượt bên dưới */
  }
  .table-responsive > .table thead .col-name { background: #f1f3f6; z-index: 2; }
  /* Giữ hiệu ứng hover của .table-hover cho ô dính */
  .table-hover > tbody > tr:hover > .col-name { background: #f5f5f5; }
}

/* Điện thoại (< 576px): topbar gọn — chỉ còn icon tài khoản, tên cơ sở cắt "…" */
@media (max-width: 575.98px) {
  .topbar .user-name { display: none; }
  .topbar .brand {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
  }
  .topbar .brand .brand-center {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 6px;
    padding: 2px 8px;
  }
  .topbar .dropdown { flex-shrink: 0; padding-left: 8px; }

  /* Hàng tiêu đề trang (.page-head): tiêu đề trên, nút thao tác xuống dòng dưới */
  .page-head { flex-wrap: wrap; row-gap: 10px; }
  .page-head > :first-child { flex: 1 1 100%; }      /* khối tiêu đề chiếm trọn 1 dòng */
  .page-head > .ms-auto { margin-left: 0 !important; }
  .page-head .btn { white-space: nowrap; }

  /* iPhone tự phóng to khi chạm vào ô nhập có chữ < 16px -> ép 16px cho mọi loại ô
     (CSS toàn cục đang đặt .9rem; gồm cả ô -sm, ô chọn tháng, ô hiển thị của flatpickr) */
  .form-control, .form-select,
  .form-control-sm, .form-select-sm,
  .input-group-sm > .form-control, .input-group-sm > .form-select,
  .flatpickr-input { font-size: 16px; }

  /* Lưới điểm danh: cột tên dính trái hẹp lại (190px ≈ nửa màn hình) để thấy nhiều cột buổi hơn;
     tên dài cắt "…". Ô ngày của buổi cũng 16px (chống phóng to) nên nới bề rộng. */
  .buoi-table .stick, .att-table .stick {
    min-width: 140px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .buoi-table .buoi-date { font-size: 16px; width: 118px; }
}

/* ===== Đóng tiền & Điểm danh trên điện thoại (< 768px) — 2 màn dùng nhiều nhất =====
   Markup chỉ hiện ở điện thoại nhờ .d-md-none (payments/list.html, attendance/grid.html). */

/* --- Đóng tiền: danh sách thẻ --- */
.pay-filter {
  display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #eef0f3;
  position: sticky; top: var(--topbar-h); background: #fff; z-index: 5;
}
.pay-filter button {
  flex: 1 1 0; border: 1px solid #e3e6ea; background: #fff; color: #5b6573;
  border-radius: 999px; padding: 6px 4px; font-size: .85rem; white-space: nowrap;
}
.pay-filter button .cnt { font-weight: 700; }
.pay-filter button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pay-card { padding: 12px; border-bottom: 1px solid #eef0f3; }
.pay-card:last-of-type { border-bottom: 0; }
.pay-card .pay-name { font-weight: 600; font-size: 1rem; }
.pay-card .pay-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #6c757d; font-size: .88rem; margin-top: 4px; }
.pay-card .pay-meta i { color: #adb5bd; }
.pay-card .pay-note { color: #6c757d; font-size: .82rem; margin-top: 4px; }
.pay-card .badge { font-size: .78rem; }

/* --- Điểm danh: chọn buổi + chế độ từng buổi --- */
.buoi-picker {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px;
  border-bottom: 1px solid #eef0f3;
}
.buoi-picker .bp {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; line-height: 1.15;
  border: 1px dashed #d0d5dc; background: #f8f9fa; color: #8a94a3;
  border-radius: 10px; padding: 6px 10px; min-width: 70px;
}
.buoi-picker .bp .bp-no { font-weight: 600; font-size: .85rem; }
.buoi-picker .bp .bp-date { font-size: .75rem; }
.buoi-picker .bp.dated { border-style: solid; border-color: var(--brand-border); background: var(--brand-soft); color: var(--brand-dark); }
.buoi-picker .bp.active { background: var(--brand); border: 1px solid var(--brand); color: #fff; }

/* Nút Lưu dính đáy màn hình (trong form, luôn thấy khi cuộn danh sách học sinh) */
.att-savebar {
  position: sticky; bottom: 0; z-index: 6;
  padding: 10px 12px; background: #fff; border-top: 1px solid #e3e6ea;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, .06);
}

@media (max-width: 767.98px) {
  /* Chế độ từng buổi: bảng chỉ còn 3 cột -> tên hiện đủ, ô tick to dễ bấm */
  .buoi-table.focus-mode .stick {
    position: static; min-width: 0; max-width: none; width: 100%;
    white-space: normal; overflow: visible; font-size: .95rem;
  }
  .buoi-table.focus-mode th, .buoi-table.focus-mode td { padding: 10px 8px; }
  .buoi-table.focus-mode .hm-mark { width: 40px; height: 40px; border-radius: 10px; font-size: 1.2rem; }
  .buoi-table.focus-mode .cnt { min-width: 64px; }
  .buoi-table.focus-mode thead th { position: static; }
  /* Nút xoá buổi (x nhỏ) dễ bấm nhầm trên điện thoại -> to hơn chút */
  .buoi-table.focus-mode .rm-buoi { font-size: .95rem; padding: 0 6px; }
}
.buoi-today { padding: 10px 12px 0; }
