/* ==========================================================================
   MẦM NON SAO SÁNG - BRAND KIT CSS SYSTEM
   Design System Chuẩn Thương Hiệu Mầm Non Sao Sáng
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  /* Brand Palette (Từ Mầm Non Sao Sáng Brand Kit) */
  --primary: #2F9E44;         /* Xanh lá Sao Sáng */
  --primary-hover: #238C3A;
  --primary-light: #EBF7EE;
  
  --secondary: #FF7A1A;       /* Cam Năng Động */
  --secondary-hover: #E6660E;
  --secondary-light: #FFF2E6;

  --yellow: #FFC928;          /* Vàng Vui Tươi */
  --yellow-hover: #E5B210;
  --yellow-light: #FFF9E6;

  --blue: #2BA9E0;            /* Xanh Máy */
  --blue-light: #EAF7FF;
  
  --danger: #E03131;          /* Đỏ Báo Động */
  --danger-light: #FFE3E3;
  
  /* Text & Surfaces (Sáng màu, Tương phản cao) */
  --ink-main: #1F2937;
  --ink-muted: #4B5563;
  --ink-light: #6B7280;
  
  --bg-page: #F3F4F6;
  --bg-card: #FFFFFF;
  --border-color: #E5E7EB;
  --border-dark: #D1D5DB;

  /* Typography */
  --font-heading: 'Baloo 2', cursive, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
  width: 100%;
  scrollbar-gutter: stable;
}

body {
  background-color: var(--bg-page);
  color: var(--ink-main);
  line-height: 1.5;
  font-size: 14.5px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink-main);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* === SCREENS === */
.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
}
.screen.active {
  display: flex;
  flex-direction: column;
}

/* === LOGIN SCREEN === */
#loginScreen {
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 10%, #FEF9C3 0%, #F3F4F6 80%);
  overflow-y: auto;
}

.login-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-lg);
  border: 2px solid #FEF08A;
  text-align: center;
}

/* LOGIN GUIDE & NOTIFICATION SETUP CARD */
.login-guide-card {
  margin-top: 20px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px;
  text-align: left;
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.guide-zalo-tip {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.45;
  margin-bottom: 10px;
}

.guide-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
}

.guide-tab-btn {
  flex: 1;
  padding: 6px 8px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guide-content {
  display: none;
}

.guide-content.active {
  display: block;
}

.guide-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #334155;
  line-height: 1.6;
}

.guide-steps li {
  margin-bottom: 4px;
}

.remembered-account-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #1e40af;
}

.remembered-account-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.brand-header {
  margin-bottom: 24px;
}

.brand-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 12px auto;
}

.brand-header h1 {
  font-size: 26px;
  color: var(--primary);
  line-height: 1.2;
}

.brand-header p {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 600;
  margin-top: 4px;
}

.login-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-main);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="tel"],
select {
  width: 100%;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--ink-main);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  text-overflow: ellipsis;
  white-space: nowrap;
}

textarea {
  width: 100%;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--ink-main);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  white-space: pre-wrap;
  word-break: break-word;
}

input:focus, select:focus, textarea:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background-color: #FFFFFF;
}

input[readonly], input[disabled] {
  background-color: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #64748B !important;
  cursor: not-allowed;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  height: auto;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}
.btn-primary:hover, .btn-primary:active {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--border-color);
  color: var(--ink-main);
}
.btn-secondary:hover {
  background-color: var(--border-dark);
}

.btn-success {
  background-color: var(--primary);
  color: #FFFFFF;
}
.btn-success:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary-light);
}

.login-instruction {
  margin-top: 20px;
  padding: 12px 14px;
  background-color: var(--primary-light);
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-sm);
  text-align: left;
}

.login-instruction p {
  font-size: 13px;
  color: var(--primary-hover);
  font-weight: 600;
  line-height: 1.4;
}

/* === MAIN APP HEADER (COMPACT MOBILE-FIRST SSOT) === */
.app-header {
  background-color: #FFFFFF;
  border-bottom: 1.5px solid #E2E8F0;
  padding: 4px 10px 0 10px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
  padding: 2px 0 4px 0;
}

.user-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.app-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.user-info {
  min-width: 0;
  flex: 1;
}

.user-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.user-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.user-role-badge {
  display: inline-block;
  background-color: #FEF3C7;
  color: #B45309;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  line-height: 1.3;
}

.user-email {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.user-bar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-logout-compact {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 28px;
}
.btn-logout-compact:hover, .btn-logout-compact:active {
  background: #FEE2E2;
  color: #991B1B;
}

.notif-banner-compact {
  background: #FFFBEB;
  border-bottom: 1px solid #FDE68A;
  color: #92400E;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.btn-enable-notif {
  background: #D97706;
  color: #FFFFFF;
  border: none;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 10.5px;
  cursor: pointer;
  white-space: nowrap;
}

/* Facebook-Style Top Navigation Bar (Super Compact) */
.fb-top-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 900px;
  margin: 2px auto 0 auto;
  border-top: 1px solid #F1F5F9;
}

.fb-tab {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 3px 0 2px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  transition: all 0.15s ease;
  gap: 1px;
  min-height: 44px;
  touch-action: manipulation;
}

.fb-tab .tab-icon {
  font-size: 15px;
  line-height: 1;
}

.fb-tab .tab-label {
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.fb-tab:hover {
  background-color: #F8FAFC;
}

.fb-tab.active {
  color: #16A34A;
  border-bottom-color: #16A34A;
}

.fb-tab.active .tab-label {
  color: #16A34A;
  font-weight: 800;
}

/* APP CONTAINER */
.app-container {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 10px;
  padding-bottom: calc(85px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

/* === COMPACT CONTROLS STRIP (BỘ LỌC SIÊU GỌN) === */
.compact-controls-wrapper {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin-bottom: 8px;
  padding: 6px 8px;
}

.compact-controls-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 520px) {
  .compact-controls-bar {
    grid-template-columns: 110px 1fr 1.2fr auto;
  }
}

.compact-field {
  min-width: 0;
  width: 100%;
}

.compact-date-field {
  min-width: 0;
}

.compact-campus-field {
  min-width: 0;
}

.compact-class-field {
  min-width: 0;
}

.compact-input, .compact-select {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
}

.compact-input:focus, .compact-select:focus {
  border-color: #16A34A;
  background: #FFFFFF;
}

.btn-compact-more {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  padding: 0 8px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.btn-compact-more:hover, .btn-compact-more:active {
  background: #E2E8F0;
  color: #0F172A;
}

.advanced-filter-panel {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #CBD5E1;
  animation: filterSlideDown 0.2s ease-out;
}

@keyframes filterSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.adv-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.adv-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}
.adv-filter-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.adv-filter-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-adv-action {
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-adv-action.btn-add {
  background: #16A34A;
  color: #FFFFFF;
}

.btn-adv-action.btn-inactive {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

/* === COMPACT SUMMARY STRIP (TÓM TẮT ĐIỂM DANH GỌN GÀNG) === */
.compact-summary-strip {
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  padding: 6px 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.summary-date-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #0284C7;
  background: #E0F2FE;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #BAE6FD;
  white-space: nowrap;
}

.summary-stats-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.stat-pill {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.stat-pill strong {
  font-weight: 800;
  color: #0F172A;
}
.stat-pill.stat-present strong { color: #16A34A; }
.stat-pill.stat-late strong { color: #D97706; }
.stat-pill.stat-excused strong { color: #0284C7; }
.stat-pill.stat-unexcused strong { color: #DC2626; }

.summary-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-fast-all-present {
  background: #FFFFFF;
  border: 1.5px solid #86EFAC;
  color: #15803D;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.08);
}
.btn-fast-all-present:hover, .btn-fast-all-present:active {
  background: #F0FDF4;
  border-color: #16A34A;
}

/* === STUDENT SECTION & CARDS (TIÊU CHUẨN GỌN NHẸ 1 HÀNG 4 NÚT) === */
.student-section {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 10px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #F1F5F9;
  flex-wrap: wrap;
}

.section-title-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
}

.student-list-heading {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  white-space: nowrap;
}

.save-status {
  font-size: 11px;
  color: #16A34A;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}

.btn-pending-reqs {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 20px;
  font-weight: 800;
  cursor: pointer;
}

.btn-header-add-student {
  background: #16A34A;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.2);
  min-height: 32px;
}

.btn-header-add-student:hover {
  background: #15803D;
  transform: translateY(-1px);
}

.btn-header-add-student:active {
  transform: translateY(0);
}

.student-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Thẻ học sinh (Siêu Gọn ~95-105px) */
.student-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1.5px solid #E2E8F0;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.student-card.marked-present {
  border-color: #86EFAC;
  background: #F0FDF4;
}
.student-card.marked-late {
  border-color: #FDE047;
  background: #FEFCE8;
}
.student-card.marked-excused {
  border-color: #BAE6FD;
  background: #F0F9FF;
}
.student-card.marked-unexcused {
  border-color: #FECACA;
  background: #FEF2F2;
}
.student-card.marked-morning-excused {
  border-color: #BAE6FD;
  background: #F0F9FF;
}
.student-card.marked-afternoon-excused {
  border-color: #BAE6FD;
  background: #F0F9FF;
}
.student-card.student-inactive {
  opacity: 0.7;
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.student-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.student-avatar {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: #F97316;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.student-main-content {
  min-width: 0;
  flex: 1;
}

.student-name-box {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: nowrap;
}

.student-idx {
  font-size: 12.5px;
  font-weight: 800;
  color: #0284C7;
  flex-shrink: 0;
}

.student-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.nickname {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  white-space: nowrap;
  flex-shrink: 0;
}

.student-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #64748B;
  flex-wrap: wrap;
  margin-top: 1px;
}

.meta-dot {
  color: #CBD5E1;
  font-weight: 800;
}

.meta-code {
  color: #475569;
  font-weight: 700;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 800;
}
.status-indicator.active { color: #16A34A; }
.status-indicator.paused { color: #D97706; }
.status-indicator.dropped { color: #DC2626; }

.badge-breakfast {
  font-size: 10px;
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-special-attendance {
  font-size: 10px;
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-birthday {
  font-size: 10px;
  background: #FAE8FF;
  color: #86198F;
  border: 1px solid #F0ABFC;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-allergy {
  font-size: 10px;
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 800;
  white-space: nowrap;
}

.student-menu-wrapper {
  flex-shrink: 0;
}

.btn-student-more {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.btn-student-more:hover, .btn-student-more:active {
  background: #E2E8F0;
  color: #0F172A;
}

/* 4 Nút Điểm Danh Xếp 1 Hàng 4 Cột Siêu Gọn Chuẩn Mobile */
.status-buttons {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
}

.status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
  touch-action: manipulation;
}

.status-btn .btn-badge {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.status-btn.present .btn-badge { background-color: #16A34A; }
.status-btn.present.active {
  background: #16A34A !important;
  border-color: #15803D !important;
  color: #FFFFFF !important;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
}

.status-btn.late .btn-badge { background-color: #D97706; }
.status-btn.late.active {
  background: #D97706 !important;
  border-color: #B45309 !important;
  color: #FFFFFF !important;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.3);
}

.status-btn.excused .btn-badge { background-color: #0284C7; }
.status-btn.excused.active {
  background: #0284C7 !important;
  border-color: #0369A1 !important;
  color: #FFFFFF !important;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
}

.status-btn.unexcused .btn-badge { background-color: #DC2626; }
.status-btn.unexcused.active {
  background: #DC2626 !important;
  border-color: #B91C1C !important;
  color: #FFFFFF !important;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

.status-btn.active .btn-badge {
  background-color: #FFFFFF !important;
}

/* === FLOATING SAVE BAR === */
.floating-save {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #FFFFFF;
  border-top: 1.5px solid #CBD5E1;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: center;
  z-index: 150;
}

.btn-save {
  width: 100%;
  max-width: 600px;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 12px;
  background: #16A34A;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* === PORTAL ACTION SHEET (BOTTOM SHEET CHO MOBILE ⋮) === */
.action-sheet-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}

.action-sheet-overlay.active {
  display: flex !important;
  animation: fadeIn 0.15s ease-out;
}

.action-sheet-card {
  width: 100%;
  max-width: 500px;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  max-height: 85dvh;
  overflow-y: auto;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.2);
  padding: 8px 14px calc(14px + env(safe-area-inset-bottom));
  animation: slideUp 0.2s ease-out;
  border-top: 1px solid #E2E8F0;
  box-sizing: border-box;
}

.action-sheet-grabber {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: #CBD5E1;
  margin: 4px auto 10px auto;
}

.action-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 8px;
}

.action-sheet-student-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.action-sheet-avatar {
  width: 38px;
  height: 38px;
  border-radius: 99px;
  background: #F97316;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-sheet-names {
  min-width: 0;
  flex: 1;
}

.action-sheet-name {
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-sheet-meta {
  font-size: 11.5px;
  color: #64748B;
  font-weight: 700;
  margin-top: 1px;
}

.action-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #64748B;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.action-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.action-sheet-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1E293B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  min-height: 44px;
  box-sizing: border-box;
}

.action-sheet-btn:hover, .action-sheet-btn:active {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

.action-sheet-btn .btn-icon {
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}

.action-sheet-btn.btn-warning {
  color: #B45309;
  background: #FFFBEB;
  border-color: #FDE68A;
}
.action-sheet-btn.btn-danger {
  color: #DC2626;
  background: #FEF2F2;
  border-color: #FECACA;
}
.action-sheet-btn.btn-success {
  color: #15803D;
  background: #F0FDF4;
  border-color: #86EFAC;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === MODAL OVERLAY & CARD (UNIFIED SSOT) === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  border: 1.5px solid #CBD5E1;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-card.modal-large {
  max-width: 1080px;
  width: 95vw;
}

/* Mobile Responsive Report Cards */
.mobile-report-cards {
  display: none;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 640px) {
  .desktop-report-table {
    display: none !important;
  }
  .mobile-report-cards {
    display: flex !important;
  }
  .modal-card.modal-large {
    width: 96vw !important;
    max-height: 94vh !important;
    margin: 5px auto !important;
  }
  .modal-header {
    padding: 12px 14px !important;
  }
  .modal-header h3 {
    font-size: 14.5px !important;
  }
  .modal-body {
    padding: 12px 14px !important;
  }
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid #F1F5F9;
  background: #FAFAFA;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  line-height: 1.3;
}

.close-modal, .btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  font-size: 18px;
  font-weight: 800;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.close-modal:hover, .btn-close-modal:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #DC2626;
  transform: scale(1.08);
}

.modal-body {
  padding: 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.modal-actions .btn {
  white-space: nowrap;
  padding: 10px 12px;
  font-size: 14px;
  flex: 1 1 auto;
}

/* User Settings Section Card */
.settings-section-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-blue {
  background-color: #0284C7;
  color: #FFFFFF;
}
.btn-blue:hover, .btn-blue:active {
  background-color: #0369A1;
}

/* Report Table */
.table-wrapper {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.report-table th, .report-table td {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.report-table th:first-child, .report-table td:first-child {
  position: sticky;
  left: 0;
  background: #FFFFFF;
  z-index: 5;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.report-table th {
  background: var(--bg-page);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink-muted);
}
.report-table th:first-child {
  background: var(--bg-page);
  z-index: 6;
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--ink-main);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   ENHANCED UI/UX COMPONENTS FOR LMS SAO SÁNG (LIGHT MODE, HIGH CONTRAST)
   ========================================================================== */

/* Student Card Header & Edit Button Fixes */
.student-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.student-name-text {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink-main);
  line-height: 1.35;
  word-break: break-word;
}

.student-idx {
  font-weight: 800;
  margin-right: 4px;
}

.name-main {
  font-weight: 800;
}

.nickname {
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-muted);
  margin-left: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
  margin-left: 6px;
  white-space: nowrap;
  vertical-align: middle;
}

.status-pill-active {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.status-pill-inactive {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}

.btn-edit-student {
  flex-shrink: 0;
  background: #EEF2FF;
  color: #4F46E5;
  border: 1.5px solid #C7D2FE;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  margin-top: 1px;
}

.btn-edit-student:hover {
  background: #4F46E5;
  color: #FFFFFF;
  border-color: #4338CA;
}

/* Attendance Action Buttons (Row 3 Action Grid / Direct Grid Items) */
.attendance-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

@media (max-width: 480px) {
  .attendance-action-grid {
    grid-template-columns: 1fr;
  }
}

.attendance-action {
  width: 100%;
  min-height: 44px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm, 10px);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.attendance-action--primary,
.btn-quick-add {
  background-color: #16A34A !important;
  color: #FFFFFF !important;
  border: 1.5px solid #16A34A !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.attendance-action--primary:hover,
.btn-quick-add:hover {
  background-color: #15803D !important;
  border-color: #15803D !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

.attendance-action--primary:active,
.btn-quick-add:active {
  transform: translateY(0);
}

.attendance-action--secondary,
.btn-inactive-trigger {
  background-color: #F8FAFC !important;
  color: #334155 !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.attendance-action--secondary:hover,
.btn-inactive-trigger:hover {
  background-color: #F1F5F9 !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
  transform: translateY(-1px);
}

.attendance-action--secondary:active,
.btn-inactive-trigger:active {
  transform: translateY(0);
}

/* Inactive Modal Toolbar & Lists */
.inactive-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.inactive-search-input {
  flex: 1 1 200px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #CBD5E1;
  font-size: 14px;
  font-weight: 600;
}

.inactive-filter-select {
  flex: 0 0 170px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #CBD5E1;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  background-color: #FFFFFF;
}

.inactive-refresh-btn {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 13.5px;
}

.inactive-students-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.inactive-student-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}

.inactive-student-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .inactive-student-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .inactive-card-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.inactive-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inactive-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inactive-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
}

.inactive-card-meta {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 600;
}

.inactive-card-meta strong {
  color: #334155;
}

/* Inactive Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
}

.badge-status-paused {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}

.badge-status-dropped {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}

.badge-status-pending {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.btn-restore-student {
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 14px;
  background: #F0FDF4;
  color: #15803D;
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-restore-student:hover {
  background: #DCFCE7;
  border-color: #4ADE80;
  color: #166534;
}

.btn-restore-student:active {
  transform: scale(0.98);
}

/* Edit Student Modal Form Section Components */
.form-section-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.form-section-card.manager-card {
  background: #F0F9FF;
  border-color: #BAE6FD;
}

.section-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #0369A1;
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.sub-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 4px;
}

.form-control, .form-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.readonly-input {
  background: #F1F5F9 !important;
  color: #475569 !important;
  font-weight: 800 !important;
  border-color: #E2E8F0 !important;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

@media (max-width: 520px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

.teacher-request-box {
  margin-top: 12px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px dashed #E2E8F0;
}

.btn-warning-soft {
  background: #FEF3C7;
  color: #92400E;
  border: 1.5px solid #FCD34D;
  font-weight: 800;
}
.btn-warning-soft:hover {
  background: #FDE68A;
}

.btn-light {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}
.btn-light:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.w-full {
  width: 100%;
}

.text-brand { color: #0284C7; }
.text-slate { color: #64748B; }
.text-sm { font-size: 13px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }

/* Quick Add & Status Toggle Buttons */
.btn-pause-student:hover {
  background: #FDE68A !important;
}

.btn-resume-student:hover {
  background: #BBF7D0 !important;
}

/* ==========================================================================
   MONTHLY GROWTH MEASUREMENTS (CÂN ĐO THÁNG CỦA BÉ) STYLES
   ========================================================================== */
.growth-modal-card {
  max-width: 840px !important;
  width: 98vw !important;
  height: 94vh !important;
  max-height: 94vh !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #F8FAFC !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2) !important;
}

@media (max-width: 640px) {
  #growthModal {
    padding: 0 !important;
  }
  .growth-modal-card {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }
}

.growth-filter-chip {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 20px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.growth-filter-chip:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.growth-filter-chip.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.growth-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  padding: 12px 14px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.growth-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.05);
}

.growth-card.is-done {
  border-left: 4px solid #16A34A;
}

.growth-card.is-pending {
  border-left: 4px solid #F59E0B;
}

.growth-input-box {
  flex: 1;
  min-width: 130px;
  background: #F8FAFC;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.growth-input-box:focus-within {
  border-color: #0284C7;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.growth-num-input {
  width: 100%;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  background: #FFFFFF;
  text-align: right;
  outline: none;
  transition: all 0.15s ease;
}

.growth-num-input:focus {
  border-color: #0284C7;
  background: #F0F9FF;
}

.btn-copy-prev {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.btn-copy-prev:hover {
  background: #DBEAFE;
}

/* =========================================================
   THIẾT KẾ ĐIỂM DANH 1-CHẠM THEO NGÀY (UNIFIED DAILY ATTENDANCE)
   Light mode, không glassmorphism, tương phản cao, rõ ràng
   ========================================================= */
.session-banner-unified {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.session-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #0284C7;
  flex-shrink: 0;
}

.session-banner-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
}

.session-banner-desc {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
}

.excused-sub-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  align-items: center;
  animation: fadeInFast 0.2s ease;
}

@keyframes fadeInFast {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.sub-option-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
  margin-right: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sub-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.sub-option-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #94A3B8;
}

.sub-option-btn.active-chip {
  background: #0284C7;
  border-color: #0369A1;
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3);
}

.sub-option-btn.active-chip.refund-chip {
  background: #D97706;
  border-color: #B45309;
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.3);
}

.badge-special-attendance {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-special-attendance.morning-excused {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.badge-special-attendance.afternoon-excused {
  background: #E0F2FE;
  color: #075985;
  border: 1px solid #BAE6FD;
}

.student-card.marked-morning-excused {
  border-color: #F59E0B;
  background: #FFFDF5;
}

.student-card.marked-afternoon-excused {
  border-color: #0EA5E9;
  background: #F8FCFF;
}

@keyframes sidequestFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === DEDICATED BIRTHDAY SCREEN STYLES (BRIGHT UI, ZERO GLASSMORPHISM) === */
#birthdayScreen {
  background: #FFFDF7;
  scrollbar-gutter: stable;
}

#birthdayScreen h1,
#birthdayScreen h2,
#birthdayScreen h3 {
  font-family: var(--font-heading, 'Baloo 2', sans-serif);
  text-wrap: pretty;
}

.birthday-page-chip {
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.birthday-page-chip:hover {
  background: #FEF3C7 !important;
  border-color: #F59E0B !important;
}

.birthday-page-chip:active {
  transform: scale(0.96);
  background: #FDE68A !important;
}

#birthdayPageTextarea {
  font-size: 16px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#birthdayPageTextarea:focus {
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

#btnSubmitBirthdayPage:active {
  transform: scale(0.98);
}

#btnBackFromBirthday:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
}

@media (max-width: 640px) {
  #birthdayScreen main {
    padding: 14px 12px 36px !important;
  }
}
