/* ==========================================================================
   SamaTracker Modern Theme (Inspired by Stub / Notion Clean Design)
   ========================================================================== */

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F7F5;
  --bg-hover: #EFEFEF;
  --border-color: #E9E9E7;
  --border-dark: #D4D4D1;
  --text-primary: #37352F;
  --text-secondary: #787774;
  --text-muted: #9B9A97;
  
  --primary-color: #2383E2;
  --primary-hover: #1A73E8;
  --success-color: #0F7B6C;
  --success-bg: #EBF7F5;
  --warning-color: #D9730D;
  --warning-bg: #FAF3E8;
  --danger-color: #EB5757;
  --danger-bg: #FDF1F0;
  --info-color: #2F80ED;
  --info-bg: #EEF5FC;
  
  --sidebar-width: 256px;
  --header-height: 52px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* ---------------------------------------------------------------
     Design tokens. Use these instead of raw hex values / px sizes.
     --------------------------------------------------------------- */

  /* Type scale (minimum readable size is 12px) */
  --fs-xs: 12px;    /* captions, badges, table meta */
  --fs-sm: 13px;    /* secondary text, table cells */
  --fs-base: 14px;  /* body */
  --fs-md: 16px;    /* emphasised body, inputs on phones */
  --fs-lg: 18px;
  --fs-xl: 20px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  /* Touch */
  --tap-min: 44px;
  --mobile-nav-height: 64px;

  /* Breakpoints (CSS variables can't be used inside @media). Use ONLY these, max-width:
     479px small phone | 767px phone | 1023px tablet (mobile drawer + bottom nav)
     1279px small laptop | 1439px laptop */

  /* Colour palette */
  --c-white: #ffffff;
  --c-warm-900: #201f1d;
  --c-warm-800: #37352f;
  --c-warm-600: #6e6b66;
  --c-warm-500: #787774;
  --c-warm-400: #9b9a97;
  --c-warm-300: #d4d4d1;
  --c-warm-200: #e9e9e7;
  --c-warm-150: #efefef;
  --c-warm-100: #f7f7f5;
  --c-warm-50: #faf9f6;
  --c-slate-900: #0f172a;
  --c-slate-800: #1e293b;
  --c-slate-700: #334155;
  --c-slate-600: #475569;
  --c-slate-500: #64748b;
  --c-slate-400: #94a3b8;
  --c-slate-300: #cbd5e1;
  --c-slate-200: #e2e8f0;
  --c-slate-100: #f1f5f9;
  --c-slate-50: #f8fafc;
  --c-sage-900: #202421;
  --c-sage-800: #354238;
  --c-sage-700: #3e4a40;
  --c-sage-600: #4b574b;
  --c-sage-550: #59645a;
  --c-sage-500: #6b776c;
  --c-sage-450: #7e887e;
  --c-sage-400: #858980;
  --c-sage-350: #8b948a;
  --c-sage-300: #d7d9d2;
  --c-sage-250: #dfe5df;
  --c-sage-200: #e6e9e4;
  --c-sage-150: #edf0ec;
  --c-sage-100: #f3f5f2;
  --c-sage-50: #fafbf9;
  --c-ink-900: #1b2a32;
  --c-ink-800: #24323b;
  --c-ink-700: #2d3c46;
  --c-ink-300: #aebcc5;
  --c-ink-50: #f2f7f9;
  --c-green-900: #14532d;
  --c-green-800: #166534;
  --c-green-700: #1b7340;
  --c-green-650: #137333;
  --c-green-600: #15803d;
  --c-green-550: #23885e;
  --c-green-500: #2db77b;
  --c-green-450: #22c55e;
  --c-green-400: #4ade80;
  --c-green-300: #86efac;
  --c-green-200: #bbf7d0;
  --c-green-150: #dcfce7;
  --c-green-100: #edf7f0;
  --c-green-50: #f0fdf4;
  --c-emerald-800: #065f46;
  --c-emerald-700: #047857;
  --c-emerald-600: #0f7b6c;
  --c-emerald-500: #10b981;
  --c-emerald-400: #34d399;
  --c-emerald-200: #a7f3d0;
  --c-emerald-50: #ecfdf5;
  --c-amber-800: #92400e;
  --c-amber-700: #b45309;
  --c-amber-600: #d9730d;
  --c-amber-500: #f59e0b;
  --c-amber-450: #efb748;
  --c-amber-400: #fbbf24;
  --c-amber-200: #fde68a;
  --c-amber-100: #fef3c7;
  --c-amber-50: #fffbeb;
  --c-red-700: #c94f46;
  --c-red-500: #eb5757;
  --c-coral-500: #e07a62;
  --c-red-50: #fff5f5;
  --c-blue-700: #0369a1;
  --c-blue-600: #0284c7;
  --c-blue-550: #1a73e8;
  --c-blue-500: #2383e2;
  --c-blue-200: #bae6fd;
  --c-blue-100: #e0f2fe;
  --c-blue-50: #f0f9ff;
  --c-violet-500: #8b5cf6;
  --c-violet-400: #9a84d2;
  --c-indigo-400: #8192df;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Layout */
#app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sidebar */
#sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  user-select: none;
}

.sidebar-header {
  height: 64px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--c-white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.brand-mark-img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 48px;
}

.brand-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.brand-title {
  color: var(--c-sage-600);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.45px;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  color: var(--c-sage-400);
  font-size: var(--fs-xs);
  line-height: 1.2;
  white-space: nowrap;
}

.login-screen {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 480px;
  padding: 34px 38px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--c-white);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.login-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 24px;
}

.login-brand-mark {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: 0 0 68px;
}

.login-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.login-brand-name {
  color: var(--c-sage-600);
  font-size: clamp(23px, 2.5vw, 27px);
  font-weight: 750;
  letter-spacing: -0.75px;
  line-height: 1.08;
  white-space: nowrap;
}

.login-brand-tagline {
  color: var(--c-sage-400);
  font-size: var(--fs-xs);
  line-height: 1.25;
  white-space: nowrap;
}

.login-title {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.login-description {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.login-google-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.login-google-loading {
  color: var(--text-muted);
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 22px 0 16px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.login-divider span {
  padding: 0 12px;
}

@media (max-width: 479px) {
  .login-screen {
    min-height: 0;
    padding: 16px 8px;
  }

  .login-card {
    padding: 30px 18px;
  }

  .login-brand-lockup {
    gap: 9px;
    margin-bottom: 22px;
  }

  .login-brand-mark {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .login-brand-name {
    font-size: 20px;
  }

  .login-brand-tagline {
    font-size: var(--fs-xs);
  }

  .login-title {
    font-size: 20px;
  }

  .login-description {
    font-size: var(--fs-base);
    line-height: 1.5;
    margin-bottom: 24px;
  }
}

.brand-icon {
  width: 28px;
  height: 28px;
  background-color: var(--text-primary);
  color: var(--c-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: -0.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column !important;
  gap: 2px;
}

.nav-employee-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 0 0 auto;
}

.nav-manager-only {
  display: none;
}

[hidden] {
  display: none !important;
}

.nav-section-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 10px 4px 10px;
}

.nav-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--c-warm-200);
  color: var(--text-primary);
  font-weight: 600;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  opacity: 0.8;
}

.nav-badge {
  margin-left: auto;
  font-size: var(--fs-xs);
  padding: 1px 6px;
  border-radius: 10px;
  background-color: var(--border-color);
  color: var(--text-secondary);
}

.nav-badge.alert {
  background-color: var(--danger-bg);
  color: var(--danger-color);
  font-weight: 600;
}

/* Sidebar Footer (User info & Quick switcher) */
.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.current-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--c-green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--c-green-650);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.avatar:hover {
  transform: scale(1.04);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.user-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0 5px;
  border-radius: 3px;
  background-color: var(--border-color);
  color: var(--text-secondary);
  text-transform: uppercase;
}

.role-manager { background-color: var(--c-slate-200); color: #5D50C6; }
.role-admin { background-color: #FCE8E6; color: #D93025; }
.role-super_admin { background-color: var(--c-blue-100); color: var(--c-blue-550); }

/* Main Content Area */
#main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-primary);
}

/* App Header */
#app-header {
  height: var(--header-height);
  padding: 0 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background-color: var(--bg-primary);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.breadcrumbs span.current {
  color: var(--text-primary);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* User Switcher Dropdown */
.user-switcher-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.select-clean {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  font-size: var(--fs-sm);
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  font-weight: 500;
}

.select-clean:focus {
  border-color: var(--primary-color);
}

/* Main View Container */
#content-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 48px;
  display: flex;
  flex-direction: column;
}

/* Views must keep their natural height inside the scrolling column; otherwise
   flexbox shrinks them to the viewport and long content (e.g. the tracker's
   slot list) spills past the card border with no space at the bottom. */
#content-container > * {
  flex-shrink: 0;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background-color: var(--text-primary);
  color: var(--c-white);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
}

.toast.toast-success { background-color: #0B6B5D; }
.toast.toast-error { background-color: #D32F2F; }
.toast.toast-warning { background-color: #C26307; }

/* Mobile Menu Toggle & Backdrop Defaults (Desktop Hidden) */
.mobile-menu-toggle {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

/* ==========================================================================
   Responsive Adaptations (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1023px) {
  #app-layout {
    width: 100%;
    min-width: 0;
    position: relative;
  }

  /* Hamburger Menu Button */
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--c-white);
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 8px;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .mobile-menu-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--border-dark);
  }

  .mobile-menu-toggle:active {
    transform: scale(0.96);
  }

  /* Backdrop Overlay */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  #app-layout.sidebar-mobile-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Off-canvas Slide-out Drawer */
  #sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 275px;
    max-width: 84vw;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    box-shadow: none;
    background-color: var(--bg-secondary);
  }

  #app-layout.sidebar-mobile-open #sidebar {
    transform: translateX(0);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
  }

  .sidebar-header {
    height: 58px;
    padding: 0 14px;
    justify-content: flex-start;
  }

  .brand {
    justify-content: flex-start;
    width: 100%;
  }

  .brand-copy {
    display: flex;
  }

  .brand-mark-img {
    display: block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .sidebar-nav {
    align-items: stretch;
    padding: 10px 8px;
    flex-direction: column !important;
  }

  .nav-item {
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    height: auto;
    padding: 8px 10px;
  }

  .nav-item > span {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
  }

  .sidebar-footer {
    display: flex;
    justify-content: flex-start;
    padding: 10px 8px;
  }

  .current-user-card {
    min-width: 0;
    gap: 8px;
  }

  .user-details {
    min-width: 0;
    overflow: hidden;
  }

  .user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #btn-sidebar-logout {
    flex: 0 0 auto;
  }

  /* Full-width Main Wrapper */
  #main-wrapper {
    width: 100vw;
    min-width: 0;
    flex: 1 1 100%;
  }

  #app-header {
    height: 50px;
    padding: 0 12px;
  }

  .header-left {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .breadcrumbs {
    gap: 4px;
    font-size: var(--fs-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .breadcrumbs > span:first-child,
  .breadcrumbs > span:nth-child(2) {
    display: none;
  }

  #header-auth-section {
    display: none !important;
  }

  #content-container {
    min-width: 0;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
  }

  #toast-container {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .toast {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  #app-header {
    height: 48px;
    padding: 0 10px;
  }

  .mobile-menu-toggle {
    width: 32px;
    height: 32px;
    margin-right: 6px;
  }

  #content-container {
    padding: 10px 8px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .page-header .btn {
    width: 100%;
    justify-content: center;
  }
}

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


/* ==========================================================================
   Mobile app shell: bottom tab bar + touch-friendly sizing
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  body.is-signed-in .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 997; /* below the drawer backdrop (998) and drawer (999) */
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: var(--c-white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.06);
  }

  .mobile-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: var(--tap-min);
    padding: 6px 2px;
    border: 0;
    background: none;
    color: var(--text-secondary);
    font: inherit;
    font-size: var(--fs-xs);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-tab svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tab span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tab.active {
    color: var(--c-green-700);
    font-weight: 600;
  }

  .mobile-tab:focus-visible {
    outline: 2px solid var(--c-green-700);
    outline-offset: -4px;
    border-radius: var(--radius-md);
  }

  /* Leave room for the tab bar under scrolling content and toasts */
  body.is-signed-in #content-container {
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + var(--space-4));
  }

  body.is-signed-in #toast-container {
    bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + var(--space-3));
  }

  /* The tab bar's "More" replaces the hamburger on phones */
  body.is-signed-in .mobile-menu-toggle {
    display: none;
  }

  #app-header {
    padding-left: max(var(--space-4), env(safe-area-inset-left, 0px));
    padding-right: max(var(--space-4), env(safe-area-inset-right, 0px));
  }

  #content-container {
    padding-left: max(var(--space-3), env(safe-area-inset-left, 0px));
    padding-right: max(var(--space-3), env(safe-area-inset-right, 0px));
  }

  /* 16px inputs stop iOS Safari from zooming in on focus */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: var(--fs-md) !important;
  }
}

/* Touch targets: 44px minimum on phones and on touch tablets */
@media (max-width: 767px), (max-width: 1023px) and (pointer: coarse) {
  .btn,
  .form-input,
  .form-select,
  .nav-item,
  .tab-btn,
  .ts-view-btn,
  .ts-stepper-btn,
  .mobile-menu-toggle,
  .team-leaves-tab-pill {
    /* Accessibility floor: wins over component-specific heights */
    min-height: var(--tap-min) !important;
  }

  .ts-stepper-btn {
    min-width: var(--tap-min);
  }

  .mobile-menu-toggle {
    min-width: var(--tap-min);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.login-help {
  margin: 14px 0 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: left;
  line-height: 1.5;
}
