/* ─── Design tokens — brand: Produciós OU ké! ───────────── */
/* Brand gradient: #D4006E (magenta) → #9B27AF (purple)      */
:root {
  --bg:          #100d18;
  --bg-card:     #1a1625;
  --bg-sidebar:  #120f1e;
  --border:      #2c2541;
  --primary:     #D4006E;
  --primary-dk:  #a8005a;
  --primary-lt:  #ff4da6;
  --accent:      #9B27AF;
  --accent-lt:   #c26de0;
  --brand-grad:  linear-gradient(135deg, #D4006E 0%, #9B27AF 100%);
  --success:     #2dc653;
  --success-bg:  #0d2b1a;
  --warn:        #f4a261;
  --warn-bg:     #2b1e0d;
  --info:        #4895ef;
  --info-bg:     #0d1e2b;
  --text:        #f5f0ff;
  --text-muted:  #9988bb;
  --shadow:      0 4px 24px rgba(0,0,0,.5);
}

/* ─── Light theme ───────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #f4f1fa;
  --bg-card:     #ffffff;
  --bg-sidebar:  #ede9f8;
  --border:      #ddd6f0;
  --text:        #1a1625;
  --text-muted:  #6e5e8a;
  --shadow:      0 4px 24px rgba(0,0,0,.09);
  --success-bg:  #e6f9ee;
  --warn-bg:     #fff4e5;
  --info-bg:     #e6f0ff;
}

[data-theme="light"] tbody tr:hover { background: rgba(0,0,0,.025) !important; }
[data-theme="light"] .status-fuera  { border-color: var(--border); }
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="datetime-local"],
[data-theme="light"] select          { background: #fff; }
[data-theme="light"] .btn-outline    { background: #fff; }
[data-theme="light"] .toast          { background: #fff; }

/* ─── Reset / Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body, #root {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { cursor: pointer; border: none; font-family: inherit; }
input, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ─── Layout ─────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ─── Sidebar ────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-grad);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(212,0,110,.4);
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.2px;
}

.brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  padding: 10px 10px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  width: 100%;
  text-align: left;
  transition: all .15s ease;
}

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

.nav-item.active {
  background: rgba(212, 0, 110, .15);
  color: var(--primary-lt);
  position: relative;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand-grad);
}

.nav-item .icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px 10px;
  border-top: 1px solid var(--border);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

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

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

.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-logout {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
}

.btn-logout:hover { background: rgba(212,0,110,.1); color: var(--primary-lt); }

/* ─── Main content ───────────────────────────────────────── */
.main {
  overflow-y: auto;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ─── Status indicator ───────────────────────────────────── */
.status-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.status-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-trabajando { background: var(--success-bg); color: var(--success); }
.status-trabajando .dot { background: var(--success); }

.status-pausa { background: var(--warn-bg); color: var(--warn); }
.status-pausa .dot { background: var(--warn); animation: none; }

.status-fuera { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.status-fuera .dot { background: var(--text-muted); animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ─── Timer ──────────────────────────────────────────────── */
.timer-display {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
  margin: 8px 0 4px;
}

.timer-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Action buttons ─────────────────────────────────────── */
.action-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s ease;
}

.btn:disabled { opacity: .35; cursor: not-allowed; }

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
}
.btn-primary:not(:disabled):hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,0,110,.45); }

.btn-success {
  background: var(--success);
  color: #0a2010;
}
.btn-success:not(:disabled):hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-warn {
  background: var(--warn);
  color: #1a0d00;
}
.btn-warn:not(:disabled):hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-outline {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-outline:not(:disabled):hover { border-color: var(--text-muted); color: var(--text); background: var(--bg-card); }

.btn-danger {
  background: rgba(230,57,70,.15);
  color: var(--primary-lt);
}
.btn-danger:not(:disabled):hover { background: rgba(230,57,70,.25); }

.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* ─── Stats row ──────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.03); }

tbody td {
  padding: 11px 14px;
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.badge-entrada  { background: var(--success-bg); color: var(--success); }
.badge-salida   { background: var(--info-bg);    color: var(--info); }
.badge-pausa    { background: var(--warn-bg);    color: var(--warn); }

/* ─── Form elements ──────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}

input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="datetime-local"], input[type="time"],
select, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus { border-color: var(--primary); }

textarea { resize: vertical; min-height: 76px; line-height: 1.55; }

/* ─── Reason field — elegant label-inside card ───────────── */
.reason-field {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.reason-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212,0,110,.07);
}
.reason-field > label {
  display: block;
  padding: 10px 14px 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  cursor: text;
}
.reason-field textarea {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 5px 14px 12px !important;
  resize: none !important;
  min-height: 68px;
  box-shadow: none !important;
  font-size: 14px;
}

/* ─── Time display inputs (workday editor) ───────────────── */
.time-display {
  font-size: 22px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  text-align: center;
  letter-spacing: 1px;
  padding: 12px !important;
}

/* ─── Workday editor ─────────────────────────────────────── */
.workday-editor { display: flex; flex-direction: column; gap: 14px; }
.pause-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px dashed var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}
.pause-toggle:hover { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }
.pause-toggle.active { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); border-style: solid; }

.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

/* ─── Login page ─────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.login-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-grad);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(212,0,110,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.login-company {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.login-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.login-heading {
  font-size: 22px;
  font-weight: 700;
  margin: 24px 0 6px;
}

.login-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--brand-grad);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
  transition: all .15s;
}

.btn-login:not(:disabled):hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,0,110,.5); }
.btn-login:disabled { opacity: .5; }

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.alert-error { background: rgba(212,0,110,.15); color: var(--primary-lt); border: 1px solid rgba(212,0,110,.3); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(45,198,83,.3); }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(72,149,239,.3); }

/* ─── Report controls ────────────────────────────────────── */
.report-controls {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.week-label {
  font-size: 14px;
  font-weight: 600;
  min-width: 200px;
  text-align: center;
}

/* ─── Summary totals ─────────────────────────────────────── */
.summary-band {
  background: var(--brand-grad);
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.summary-item { text-align: center; }

.summary-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.summary-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ─── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-text { font-size: 14px; }

/* ─── Loading spinner ────────────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: var(--text-muted);
}

/* ─── Toast ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow);
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn .2s ease;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--primary-lt); }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── Language toggle ────────────────────────────────────── */
.lang-toggle {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
  padding: 0;
  font-family: inherit;
}

.lang-opt {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  color: var(--text-muted);
  background: transparent;
  transition: all .2s;
}

.lang-opt.active {
  background: var(--brand-grad);
  color: #fff;
}

/* ─── Admin ──────────────────────────────────────────────── */
.employee-row { cursor: pointer; }
.employee-row:hover { background: rgba(255,255,255,.04) !important; }

/* ─── Responsive grid helpers ────────────────────────────── */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ─── Mobile topbar (hidden on desktop) ──────────────────── */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 100;
  flex-shrink: 0;
}

.hamburger {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .15s;
}
.hamburger:hover { background: var(--bg-card); }

.topbar-logo {
  height: 36px;
  object-fit: contain;
  flex: 1;
}

/* ─── Sidebar backdrop (mobile overlay) ──────────────────── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  backdrop-filter: blur(2px);
}

/* ─── Sidebar close button (mobile only) ─────────────────── */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
.sidebar-close-btn:hover { background: var(--bg-card); color: var(--text); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Show mobile topbar */
  .mobile-topbar { display: flex; }
  .sidebar-backdrop { display: block; }
  .sidebar-close-btn { display: block; }

  /* Layout: single block column */
  .layout {
    display: block;
    height: 100vh;
    overflow: hidden;
  }

  /* Sidebar → left drawer/overlay */
  .sidebar {
    position: fixed;
    top: 0; bottom: 0;
    left: -280px;
    width: 260px;
    z-index: 300;
    transition: left .25s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    border-right: 1px solid var(--border);
    flex-direction: column;
  }
  .sidebar.sidebar-open { left: 0; }
  .sidebar-brand { padding: 20px 16px 16px; border-bottom: 1px solid var(--border); }

  /* Main: full viewport minus topbar */
  .main {
    height: 100vh;
    padding: 72px 16px 24px;
    overflow-y: auto;
    gap: 16px;
  }

  /* Page header stacks on mobile */
  .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-header .btn { align-self: stretch; justify-content: center; }

  /* Form grids collapse */
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  /* Corrections mode selector: 2 cols on mobile instead of 3 */
  .corr-mode-grid { grid-template-columns: 1fr 1fr !important; }
  .corr-mode-grid > :last-child { grid-column: 1 / -1; }

  /* ── Employee table → cards on mobile ── */
  .emp-table { display: block; }
  .emp-table thead { display: none; }
  .emp-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .emp-table tbody tr {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto auto;
    gap: 6px 10px;
    border: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 12px;
    padding: 14px !important;
    background: var(--bg);
  }
  .emp-table tbody tr:hover { background: var(--bg) !important; }
  .emp-table tbody td {
    display: block;
    border: none !important;
    padding: 0 !important;
    font-size: 13px;
  }
  /* Nome: avatar + name, full width */
  .emp-table td:nth-child(1) { grid-column: 1 / -1; }
  /* Email: full width, muted */
  .emp-table td:nth-child(2) { grid-column: 1 / -1; font-size: 12px !important; padding-left: 38px !important; margin-top: -2px; }
  /* Código: left */
  .emp-table td:nth-child(3) { grid-column: 1; align-self: center; }
  /* Rol: right, aligned */
  .emp-table td:nth-child(4) { grid-column: 2; text-align: right; align-self: center; }
  /* Estado: hidden (já visible no rol row) */
  .emp-table td:nth-child(5) { display: none; }
  /* Accions: full width, wrapping buttons */
  .emp-table td:nth-child(6) { grid-column: 1 / -1; margin-top: 4px; }
  .emp-table td:nth-child(6) > div { flex-wrap: wrap; gap: 6px; }
  .emp-table td:nth-child(6) .btn { flex: 1; justify-content: center; min-width: 80px; }

  /* Dashboard panels */
  .status-panel { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .timer-display { font-size: 38px; }

  /* Action buttons: full-width stacked */
  .action-grid { flex-direction: column; }
  .action-grid .btn { justify-content: center; width: 100%; }

  /* Reports summary */
  .summary-band { gap: 12px 20px; justify-content: flex-start; padding: 16px 18px; }
  .summary-item { min-width: 40%; }
  .summary-val { font-size: 22px; }

  /* Form rows collapse */
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row .btn { align-self: flex-start; }
  .week-label { min-width: unset; text-align: left; }
  .report-controls { flex-direction: column; align-items: stretch; }

  /* Cards with less padding */
  .card { padding: 16px; border-radius: 12px; }
  .login-card { padding: 28px 20px; border-radius: 16px; }

  /* Toast: centered at bottom */
  .toast-container { left: 12px; right: 12px; bottom: 16px; }
  .toast { min-width: unset; width: 100%; }
}
