/* ==========================================================================
   DIALLO HRMS — RESPONSIVE DESIGN ARCHITECTURE & BREAKPOINTS
   Mobile-First & Adaptive Enterprise SaaS Grid System
   Breakpoints:
     - Extra Small Mobile: < 480px
     - Small Mobile:       480px - 639px
     - Mobile Devices:     < 768px
     - Tablet Devices:     768px - 1024px
     - Small Laptops:      1025px - 1199px
     - Desktop Standard:   1200px - 1599px
     - Ultra-wide Screens: >= 1600px
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL BOX MODEL SAFETY NET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. TABLET SCREENS (768px to 1024px)
   Optimize workspace for iPads and touch tablets without cramped sidebars
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Default sidebar to collapsed compact icon mode on tablet */
  .app-container:not(.sidebar-expanded) .app-sidebar {
    width: var(--sidebar-collapsed-width, 72px);
  }
  .app-container:not(.sidebar-expanded) .app-sidebar .sidebar-section-title,
  .app-container:not(.sidebar-expanded) .app-sidebar .nav-text,
  .app-container:not(.sidebar-expanded) .app-sidebar .nav-badge,
  .app-container:not(.sidebar-expanded) .app-sidebar .sidebar-footer {
    display: none;
  }
  .app-container:not(.sidebar-expanded) .app-sidebar .nav-link {
    justify-content: center;
    padding: 10px;
  }
  .app-container:not(.sidebar-expanded) .main-wrapper {
    margin-left: var(--sidebar-collapsed-width, 72px);
  }

  .main-content {
    padding: 20px 20px 36px 20px;
    max-width: 100%;
  }

  /* Header adjustments for tablet */
  .header-center {
    max-width: 220px;
    margin: 0 12px;
  }
  .header-dropdown-btn span.label-text {
    max-width: 110px;
  }
  .user-name-label {
    max-width: 80px;
  }
  .user-role-label {
    display: none;
  }

  /* Dashboard Grid: switch from 12 cols to 2 equal columns */
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .col-span-8,
  .col-span-4,
  .col-span-6,
  .col-span-12,
  .col-span-9,
  .col-span-3 {
    grid-column: span 2;
  }

  /* Form columns on tablet */
  .form-row .col-3,
  .form-row .col-4 {
    grid-column: span 6;
  }
  .form-row .col-8 {
    grid-column: span 12;
  }

  /* Grids */
  .grid-3-col,
  .grid-4-col {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Notification popover on tablet */
  .notification-popover {
    width: 300px;
    max-width: calc(100vw - 24px);
  }
}

/* --------------------------------------------------------------------------
   2. SMALL LAPTOPS (1025px to 1199px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1199px) {
  .dashboard-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
  }
  .col-span-8 { grid-column: span 12; }
  .col-span-4 { grid-column: span 12; }
  .col-span-6 { grid-column: span 6; }

  .main-content {
    padding: 24px 20px 40px 20px;
  }
  .header-center {
    max-width: 320px;
  }
}

/* --------------------------------------------------------------------------
   3. MOBILE DEVICES (< 768px)
   Complete off-canvas navigation, stacked cards, full touch scrolling
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Prevent horizontal document spill */
  html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .app-container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  /* Off-canvas mobile navigation drawer */
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
    z-index: 60;
    width: 280px;
    max-width: 85vw;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .app-container.mobile-sidebar-open .app-sidebar {
    transform: translateX(0);
  }
  .app-container.mobile-sidebar-open .sidebar-backdrop {
    display: block;
    opacity: 1;
    z-index: 55;
  }

  .main-wrapper {
    margin-left: 0 !important;
    max-width: 100vw;
    width: 100%;
    overflow-x: hidden;
  }

  /* Mobile App Header */
  .app-header {
    padding: 0 10px;
    gap: 8px;
    height: var(--header-height, 58px);
  }

  .header-left {
    gap: 8px;
    min-width: 0;
  }

  .brand-logo {
    gap: 6px;
    font-size: 1.05rem;
  }
  .brand-icon-box {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  /* Hide wide search bar from header on mobile */
  .header-center {
    display: none !important;
  }

  .header-right {
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Hide text labels in header buttons on mobile */
  .header-dropdown-btn span.label-text,
  .user-profile-trigger .user-name-label,
  .user-profile-trigger .user-role-label {
    display: none !important;
  }

  .header-dropdown-btn {
    padding: 6px 8px;
    height: 32px;
  }

  .header-icon-btn {
    width: 32px;
    height: 32px;
  }

  .user-profile-trigger {
    padding: 2px 4px 2px 2px;
  }
  .avatar-img {
    width: 28px;
    height: 28px;
  }

  /* Notification popover: full-width flyout on mobile */
  .notification-popover {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    right: -8px !important;
    left: auto !important;
  }

  /* Dropdown popover: prevent overflow */
  .dropdown-popover {
    max-width: calc(100vw - 20px);
    right: 0;
    left: auto;
  }

  /* Page Headers & Action Bars */
  .page-header {
    margin-bottom: 18px;
  }

  .page-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .page-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .page-subtitle {
    font-size: 0.8rem;
  }

  .page-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  .page-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .main-content {
    padding: 14px 10px 32px 10px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Welcome Banner */
  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .welcome-banner .welcome-date-badge {
    align-self: flex-start;
  }

  /* KPI Cards Grid: 2 compact columns on mobile */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .kpi-card {
    padding: 12px 10px !important;
  }
  .kpi-value {
    font-size: 1.35rem !important;
  }
  .kpi-label {
    font-size: 0.72rem !important;
  }
  .kpi-subtitle {
    display: none;
  }

  /* Dashboard & General Grids: Single column on mobile */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .col-span-8,
  .col-span-4,
  .col-span-6,
  .col-span-12,
  .col-span-9,
  .col-span-3 {
    grid-column: span 1 !important;
  }

  .module-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .grid,
  .grid-responsive,
  .grid-2-col,
  .grid-3-col,
  .grid-4-col {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  /* Force override inline 2-col and 3-col styles on mobile */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"],
  [style*="grid-template-columns: repeat(auto-fill, minmax(320px, 1fr))"],
  [style*="grid-template-columns: repeat(auto-fill, minmax(310px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  .flex-responsive {
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Tab Navigation: silky horizontal touch scroll */
  .tab-list,
  .tabs-nav,
  .nav-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 16px;
    width: 100%;
    scrollbar-width: none;
  }
  .tab-list::-webkit-scrollbar,
  .tabs-nav::-webkit-scrollbar,
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 0.825rem;
  }

  /* Table Card & Responsive Table Scrolling */
  .table-card,
  .table-responsive,
  .card:has(.data-table) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
    box-sizing: border-box;
  }
  .data-table {
    min-width: 600px !important;
  }
  .data-table th,
  .data-table td {
    padding: 10px 10px;
    font-size: 0.78rem;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }
  .table-search-box {
    max-width: 100% !important;
    min-width: 100% !important;
    width: 100% !important;
  }
  .table-filters-group {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .table-filters-group::-webkit-scrollbar {
    display: none;
  }
  .table-actions-group {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Form Layouts */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .col-12, .col-6, .col-4, .col-3, .col-8, .col-9, .col-10 {
    grid-column: span 1 !important;
  }

  /* Modal Dialogs */
  .modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-dialog {
    margin: 0 auto;
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
    max-height: 92vh;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow-y: auto;
  }
  .modal-header {
    padding: 14px 16px;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 2;
  }
  .modal-body {
    padding: 16px 14px;
    overflow-y: auto;
  }
  .modal-footer {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: stretch;
    display: flex;
    flex-direction: row;
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-main);
    z-index: 2;
  }
  .modal-footer .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }

  /* Slide-Over Drawers */
  .drawer-panel {
    width: 100% !important;
    max-width: 100% !important;
    border-left: none;
  }
  .drawer-header {
    padding: 16px 18px;
  }
  .drawer-body {
    padding: 16px 14px;
  }

  /* Card padding adjustments */
  .card {
    border-radius: var(--radius-md);
  }
  .card-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .card-body {
    padding: 12px 14px;
  }

  /* Quick Access Shortcuts */
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  /* Action items on mobile: stack */
  .action-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .action-item-buttons {
    width: 100%;
    justify-content: flex-end;
  }

  /* Welcome banner responsive */
  .welcome-text h1 {
    font-size: 1.2rem;
  }
}

/* --------------------------------------------------------------------------
   4. SMALL MOBILE SCREENS (< 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  #header-branch-wrapper {
    display: none !important;
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Compliance table on small mobile */
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-header .btn,
  .card-header button {
    align-self: flex-start;
  }
}

/* --------------------------------------------------------------------------
   5. EXTRA SMALL MOBILE SCREENS (< 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 479px) {
  #header-company-wrapper {
    display: none !important;
  }

  .app-header {
    padding: 0 6px;
    gap: 4px;
  }

  .brand-logo .brand-name span.hrms-tag {
    display: none !important;
  }

  .header-right {
    gap: 4px;
  }

  .main-content {
    padding: 12px 6px 28px 6px;
  }

  .page-title {
    font-size: 1.2rem;
  }

  .kpi-value {
    font-size: 1.25rem !important;
  }

  .kpi-icon-box {
    width: 30px;
    height: 30px;
  }

  .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .btn {
    padding: 8px 10px;
    font-size: 0.825rem;
  }

  /* Stacked page actions */
  .page-actions .btn {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   6. ULTRA-WIDE & LARGE MONITORS (>= 1600px)
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  .main-content {
    max-width: 1680px;
    padding: 28px 40px 60px 40px;
  }
  .dashboard-grid {
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   7. TYPOGRAPHY SYSTEM INHERITANCE ACROSS ALL VIEWPORTS & COMPLIANCE TABLE
   -------------------------------------------------------------------------- */
body, input, button, select, textarea, table, th, td {
  font-family: var(--font-family, 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#compliance-guidelines-table {
  width: 100%;
  border-collapse: collapse;
}

#compliance-guidelines-table th,
#compliance-guidelines-table td {
  font-family: inherit;
}

@media (max-width: 768px) {
  #compliance-guidelines-table {
    min-width: 520px !important;
  }
  #compliance-guidelines-table th,
  #compliance-guidelines-table td {
    padding: 10px 8px !important;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 480px) {
  #compliance-guidelines-table {
    min-width: 450px !important;
  }
  #compliance-guidelines-table th,
  #compliance-guidelines-table td {
    padding: 8px 6px !important;
    font-size: 0.775rem !important;
  }
}

/* ==========================================================================
   8. TIMECARD STATION, ACTION BUTTONS & DASHBOARD RESPONSIVE ARCHITECTURE
   Laptop, Tablet, and Mobile Optimization
   ========================================================================== */

/* Daily Shift & Timecard Station Base (Desktop / Laptop >= 1025px) */
.timecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-main);
  padding: 16px 20px 14px 20px;
}
.timecard-header-main {
  min-width: 0;
  flex: 1 1 auto;
}
.timecard-header-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}
.timecard-header-status {
  flex-shrink: 0;
}

.timecard-station-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(230px, 1fr) minmax(270px, 1.15fr);
  gap: 16px;
  align-items: stretch;
}

.timecard-timer-card,
.timecard-actions-panel {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-main, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  padding: 14px 18px;
  min-height: 104px;
  box-sizing: border-box;
}

.timecard-timer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  transition: all 0.2s ease;
}

.timecard-actions-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.timecard-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.timecard-action-grid .btn {
  height: 42px;
  min-height: 42px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.timecard-action-grid .btn svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

/* ESS Terminal Layout (ESS View) */
.ess-terminal-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ess-terminal-timer-info {
  flex: 1 1 320px;
  min-width: 0;
}

.ess-terminal-actions {
  flex: 0 0 320px;
  max-width: 100%;
}

/* Quick Self-Service Actions Launchpad */
.emp-quick-launchpad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.emp-quick-launchpad .btn {
  padding: 14px 8px;
  height: auto;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-md);
  min-height: 84px;
}

/* Leave Balances Grid */
.emp-leave-balances-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Week Attendance Rhythm — default 6-col for Mon-Sat work week */
.week-rhythm-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  text-align: center;
}

/* 3 Metrics Row */
.metrics-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

/* Header Auto-Fit for Laptops & Desktops */
@media (max-width: 1380px) {
  #header-branch-wrapper {
    display: none !important;
  }
}
@media (max-width: 1150px) {
  #header-company-wrapper {
    display: none !important;
  }
  .header-center {
    max-width: 180px;
  }
}

/* --------------------------------------------------------------------------
   SMALL LAPTOPS — Timecard & Launchpad (1025px - 1199px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1199px) {
  .timecard-station-grid {
    grid-template-columns: minmax(240px, 1fr) minmax(210px, 1fr) minmax(240px, 1fr);
    gap: 12px;
  }
  .timecard-actions-panel {
    grid-column: span 1;
  }
  .emp-quick-launchpad {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .ess-terminal-actions {
    flex: 1 1 100%;
  }
}

/* --------------------------------------------------------------------------
   TABLETS (768px - 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .timecard-station-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .timecard-actions-panel {
    grid-column: span 2;
  }
  .timecard-action-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .emp-quick-launchpad {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .ess-terminal-actions {
    flex: 1 1 100%;
  }
  .ess-terminal-actions .timecard-action-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Week rhythm on tablet: keep all 6 days side by side */
  .week-rhythm-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }
  .week-rhythm-grid > div {
    padding: 10px 4px;
  }
}

/* --------------------------------------------------------------------------
   MOBILE DEVICES (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .timecard-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 14px 12px 14px;
    gap: 8px;
  }
  .timecard-header-subtitle {
    font-size: 0.75rem;
  }

  /* Timecard Station on Mobile */
  .timecard-station-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .timecard-timer-card {
    padding: 12px 14px;
  }
  .timecard-actions-panel {
    width: 100%;
  }
  .timecard-action-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100%;
  }
  .timecard-action-grid .btn {
    height: 44px;
    min-height: 44px;
    font-size: 0.82rem;
    padding: 0 8px;
  }

  /* ESS Terminal Layout on Mobile */
  .ess-terminal-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .ess-terminal-timer-info {
    width: 100%;
  }
  .ess-terminal-actions {
    width: 100%;
    flex: none;
  }
  .ess-terminal-actions .timecard-action-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100%;
  }

  /* Quick Actions Launchpad on Mobile */
  .emp-quick-launchpad {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .emp-quick-launchpad .btn {
    padding: 10px 4px !important;
    min-height: 72px;
  }
  .emp-quick-launchpad .btn span:last-child {
    font-size: 0.72rem !important;
    line-height: 1.2;
  }

  /* Leave Balances Grid on Mobile */
  .emp-leave-balances-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Week Rhythm on Mobile: 3+3 wrapped grid for 6-day week */
  .week-rhythm-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .week-rhythm-grid > div {
    padding: 8px 4px !important;
  }
  .week-rhythm-grid .badge {
    font-size: 0.58rem !important;
    padding: 1px 3px !important;
  }

  /* Metrics Row on Mobile */
  .metrics-row-3 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* --------------------------------------------------------------------------
   EXTRA SMALL MOBILE (< 440px)
   -------------------------------------------------------------------------- */
@media (max-width: 440px) {
  #emp-live-timer {
    font-size: 1.55rem !important;
  }
  #ess-timer-display {
    font-size: 1.65rem !important;
  }
  .emp-quick-launchpad {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .timecard-action-grid .btn {
    font-size: 0.76rem;
    gap: 4px;
    padding: 0 4px;
  }
  .timecard-action-grid .btn svg {
    width: 15px;
    height: 15px;
  }

  /* Week rhythm on extra small: 2+2+2 grid */
  .week-rhythm-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
  }
}
