/* Titanium Lunch — Titanium Telecom (tema claro corporativo) */

:root {
  --bg: #f0f4f8;
  --bg-subtle: #e8eef5;
  --surface: #ffffff;
  --surface-elevated: #f8fafc;
  --border: #e2e8f0;
  --border-solid: #dbe3ed;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #1e6fff;
  --accent-soft: #e8f1ff;
  --accent-hover: #1558d6;
  --silver: #94a3b8;
  --navy: #0f2744;
  --yes-start: #0d9488;
  --yes-end: #2dd4bf;
  --yes-bg: #ecfdf5;
  --no-start: #dc2626;
  --no-end: #f87171;
  --no-bg: #fef2f2;
  --pending-bg: #eff6ff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 39, 68, 0.06);
  --shadow: 0 4px 24px rgba(15, 39, 68, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 39, 68, 0.1);
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(30, 111, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(192, 200, 216, 0.25), transparent),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand--center {
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--navy) 0%, #2c5282 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-system {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 0.35rem;
  background: var(--surface-elevated);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.nav-link {
  padding: 0.45rem 1rem;
  border-radius: 7px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link.is-active {
  color: var(--accent);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-admin {
  color: var(--navy);
  font-weight: 600;
}

/* Main */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.site-footer {
  text-align: center;
  padding: 1.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Page toolbar (home) */
.page-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.page-toolbar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.page-toolbar-title time {
  font-family: var(--font-mono);
  font-weight: 500;
}

.page-toolbar-weekday {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-kiosk-link {
  white-space: nowrap;
}

/* Progress bar */
.day-progress,
.kiosk-progress {
  margin-bottom: 1.25rem;
}

.day-progress-meta,
.kiosk-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.kiosk-progress-pct,
#progress-pct {
  font-family: var(--font-mono);
  color: var(--navy);
  font-weight: 600;
}

.day-progress-track,
.kiosk-progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.day-progress-fill,
.kiosk-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #4d8fff);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero / dates (legacy) */
.page-hero {
  margin-bottom: 1.75rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.hero-date {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.date-weekday {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
}

.date-value {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-family: var(--font-mono);
  color: var(--navy);
  font-weight: 500;
}

.hero-notice {
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.hero-notice--warn {
  color: #b45309;
  background: #fffbeb;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #fde68a;
  display: inline-block;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow);
}

.stat-card.is-updating {
  animation: fadeStat 0.35s ease;
}

@keyframes fadeStat {
  0% { opacity: 0.7; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

.stat-card--yes {
  border-left: 3px solid var(--yes-start);
}

.stat-card--no {
  border-left: 3px solid var(--no-start);
}

.stat-card--pending {
  border-left: 3px solid var(--accent);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-card--yes .stat-icon {
  background: var(--yes-bg);
  color: var(--yes-start);
}

.stat-card--no .stat-icon {
  background: var(--no-bg);
  color: var(--no-start);
}

.stat-card--pending .stat-icon {
  background: var(--pending-bg);
  color: var(--accent);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-pill--pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-pill--yes {
  background: var(--yes-bg);
  color: #047857;
}

.status-pill--no {
  background: var(--no-bg);
  color: #b91c1c;
}

/* Filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-solid);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-chip:hover {
  border-color: var(--silver);
  color: var(--text);
}

.filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Departments */
.dept-block {
  margin-bottom: 2rem;
}

.dept-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dept-title::before {
  content: '';
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
}

.employee-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.employee-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.employee-row:hover {
  border-color: var(--border-solid);
  box-shadow: var(--shadow);
}

.employee-row.is-pending {
  border-color: #fde68a;
  background: linear-gradient(to right, #fffbeb 0%, #fff 12%);
}

.employee-row-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-width: 160px;
}

.employee-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.lunch-actions {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
  max-width: 420px;
}

.btn-lunch {
  flex: 1;
  min-width: 130px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  background: var(--surface-elevated);
  border: 1.5px solid var(--border-solid);
  color: var(--text-muted);
  transition: all var(--transition);
}

.btn-lunch:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--silver);
  background: var(--surface);
}

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

.btn-yes.active {
  background: linear-gradient(135deg, var(--yes-start), #14b8a6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-no.active {
  background: linear-gradient(135deg, var(--no-start), #ef4444);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.btn-lunch.pulse {
  animation: pulseBtn 0.4s ease;
}

@keyframes pulseBtn {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* Page titles */
.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.page-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Forms & filters */
.report-filters,
.admin-form,
.login-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.report-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.report-filters-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
}

.filter-actions--top {
  margin: 0;
}

.filter-group {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.filter-group legend {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
  cursor: pointer;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
}

.radio-chip span {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-solid);
  font-size: 0.85rem;
  background: var(--surface-elevated);
  color: var(--text-muted);
  transition: all var(--transition);
}

.radio-chip input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.filter-field--hidden {
  display: none;
}

.filter-field--period {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

input[type='text'],
input[type='password'],
input[type='date'],
select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.15);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, var(--accent));
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 111, 255, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.05);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 111, 255, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-solid);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-ghost {
  background: var(--surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--silver);
  background: var(--surface);
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  font-family: inherit;
  font-weight: 500;
}

.btn-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.btn-link--danger {
  color: #dc2626;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--surface-elevated);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.data-table th:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.data-table th.sorted-asc .sort-indicator::after {
  content: ' ↑';
  color: var(--accent);
}

.data-table th.sorted-desc .sort-indicator::after {
  content: ' ↓';
  color: var(--accent);
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tfoot td {
  background: var(--surface-elevated);
  font-weight: 500;
}

.table-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem !important;
}

.report-date-notice {
  margin: 0 0 1rem;
  padding: 0.65rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  border-radius: 8px;
  font-size: 0.88rem;
}

.report-date-notice.is-hidden {
  display: none;
}

.report-summary {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.status-yes {
  color: #0d9488;
  font-weight: 600;
}

.status-no {
  color: #dc2626;
  font-weight: 600;
}

.status-pending {
  color: #b45309;
  font-weight: 600;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--transition);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.pagination button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Admin */
.admin-panel {
  max-width: 1100px;
}

.admin-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-summary-item {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-summary-item strong {
  color: var(--navy);
  font-family: var(--font-mono);
}

.admin-summary-item--warn strong {
  color: #b45309;
}

.admin-health {
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}

.admin-health summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
}

.admin-health-list {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.admin-health-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem;
}

.admin-health-list dt {
  color: var(--text-muted);
  font-weight: 500;
}

.admin-table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.admin-table-search {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.admin-table-filter {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.admin-table-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.emp-table-row.is-hidden {
  display: none;
}

.admin-header {
  margin-bottom: 1.5rem;
}

.admin-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  width: fit-content;
}

.admin-tab {
  padding: 0.5rem 1rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all var(--transition);
}

.admin-tab:hover {
  color: var(--text);
  background: var(--surface-elevated);
}

.admin-tab.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 1.5rem;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.admin-card h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--navy);
}

.admin-card--wide {
  min-width: 0;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
}

.form-error {
  background: var(--no-bg);
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.flash--ok {
  background: var(--yes-bg);
  border: 1px solid #a7f3d0;
  color: #047857;
}

.flash--error {
  background: var(--no-bg);
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge--ok {
  background: var(--yes-bg);
  color: #047857;
}

.badge--muted {
  background: var(--surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.actions-cell {
  white-space: nowrap;
}

.inline-form {
  display: inline;
}

.simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.simple-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.simple-list-item:last-child {
  border-bottom: none;
}

.simple-list-actions {
  display: flex;
  gap: 0.75rem;
}

/* Login */
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(30, 111, 255, 0.1), transparent),
    linear-gradient(180deg, #f8fafc, var(--bg));
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

.login-back {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.login-back a {
  color: var(--text-muted);
}

.login-back a:hover {
  color: var(--accent);
}

/* Print */
.print-only {
  display: none;
}

@media print {
  .site-header,
  .site-footer,
  .report-filters,
  .filter-actions,
  .pagination,
  .main-nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .print-only {
    display: block;
    margin-bottom: 1rem;
  }

  .data-table th,
  .data-table td {
    border: 1px solid #ccc;
    color: #000;
  }

  .site-main {
    max-width: none;
    padding: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .employee-row {
    flex-direction: column;
    align-items: stretch;
  }

  .lunch-actions {
    flex-direction: column;
    max-width: none;
    width: 100%;
  }

  .btn-lunch {
    width: 100%;
    min-width: unset;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: stretch;
  }

  .nav-link {
    flex: 1;
    text-align: center;
  }

  .page-hero {
    padding: 1.15rem;
  }
}

/* ========== Modo Quiosque ========== */
.kiosk-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f6f9;
  overflow-x: hidden;
}

.kiosk-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 39, 68, 0.04);
  flex-shrink: 0;
}

.kiosk-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem 0;
}

.kiosk-brand-company {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.kiosk-brand-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.kiosk-datetime {
  text-align: right;
}

.kiosk-weekday {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.kiosk-date {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}

.kiosk-clock {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.kiosk-alert {
  margin: 0.5rem 1.25rem 0;
  padding: 0.55rem 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 8px;
  font-size: 0.85rem;
}

.kiosk-progress {
  padding: 0.65rem 1.25rem 0;
  margin-bottom: 0;
}

.kiosk-stats {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem 0.85rem;
}

.kiosk-stat {
  background: var(--surface-elevated);
  border-radius: 10px;
  padding: 0.55rem 0.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.kiosk-stat--highlight {
  background: #fff;
  border-color: #bfdbfe;
  box-shadow: 0 0 0 1px rgba(30, 111, 255, 0.08);
}

.kiosk-stat--highlight .kiosk-stat-num {
  color: var(--accent);
}

.kiosk-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}

.kiosk-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

.kiosk-locked {
  margin: 0.5rem 1.25rem 0;
  padding: 0.55rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
}

.kiosk-toolbar {
  padding: 0.75rem 1.25rem;
  background: #f4f6f9;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.kiosk-search-box {
  position: relative;
}

.kiosk-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--silver);
  pointer-events: none;
}

.kiosk-search {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.65rem;
  font-size: 1rem;
  border: 1px solid var(--border-solid);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-body);
}

.kiosk-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.12);
}

.kiosk-list-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.kiosk-main {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem 2rem;
  -webkit-overflow-scrolling: touch;
}

.kiosk-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.65rem;
}

.kiosk-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.kiosk-card.is-pending {
  border-color: #fcd34d;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.08);
}

.kiosk-card.is-pending .kiosk-card-head {
  background: #fffbeb;
}

.kiosk-card.is-marked {
  opacity: 0.92;
}

.kiosk-card.is-marked .kiosk-actions {
  padding: 0.5rem 0.75rem 0.75rem;
}

.kiosk-card.is-marked .kiosk-btn {
  min-height: 40px;
  font-size: 0.82rem;
  padding: 0.5rem;
}

.kiosk-card.is-hidden {
  display: none;
}

.kiosk-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.kiosk-no-results {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.kiosk-no-results.is-hidden {
  display: none;
}

.employee-row.is-saving {
  opacity: 0.65;
  pointer-events: none;
}

.employee-row.is-saving .btn-lunch {
  cursor: wait;
}

.employee-row.is-marked-yes {
  border-left: 3px solid #0d9488;
}

.employee-row.is-marked-no {
  border-left: 3px solid #dc2626;
}

/* Toasts */
.toast-root {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(15, 39, 68, 0.15);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
}

.toast--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.toast--info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
}

.toast-undo {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.9;
}

.toast-undo:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 39, 68, 0.45);
}

.modal-panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.modal-message {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Kiosk PIN */
.kiosk-pin-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f9;
  padding: 1.5rem;
}

.kiosk-pin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow);
}

.kiosk-pin-lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.kiosk-pin-footer {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}

.kiosk-pin-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.kiosk-pin-footer a:hover {
  color: var(--accent);
}

.kiosk-pin-input {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  letter-spacing: 0.35em;
  padding: 0.85rem;
  border: 1px solid var(--border-solid);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.kiosk-pin-form .btn-block {
  width: 100%;
}

/* A11y + admin upload */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-file {
  cursor: pointer;
  position: relative;
}

.upload-excel-form {
  display: inline;
}

.kiosk-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.35;
}

.kiosk-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem;
  max-width: none;
  width: 100%;
}

.kiosk-card.is-pending .kiosk-btn {
  min-height: 48px;
  font-size: 0.88rem;
  font-weight: 600;
}

.kiosk-btn {
  min-width: unset;
  touch-action: manipulation;
}

.kiosk-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.sync-list-form {
  margin-top: 0.75rem;
}

@media (max-width: 600px) {
  .kiosk-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .kiosk-datetime {
    text-align: left;
  }

  .kiosk-stats {
    grid-template-columns: 1fr;
  }

  .kiosk-grid {
    grid-template-columns: 1fr;
  }

  .kiosk-card.is-pending .kiosk-actions,
  .kiosk-actions {
    grid-template-columns: 1fr;
  }

  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-kiosk-link {
    width: 100%;
    justify-content: center;
  }

  .report-table-wrap {
    display: none;
  }

  .report-cards {
    display: grid;
    gap: 0.75rem;
  }
}

.hero-notice--info {
  background: var(--accent-soft);
  color: var(--navy);
  border: 1px solid rgba(30, 111, 255, 0.2);
}

.hero-notice--info a {
  color: var(--accent-hover);
  font-weight: 600;
}

.kiosk-top-row {
  align-items: center;
}

.btn-kiosk-lock {
  flex-shrink: 0;
  margin-left: auto;
}

.login-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  text-align: center;
}

.import-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.import-log-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.import-log-item:last-child {
  border-bottom: none;
}

.report-cards {
  display: none;
}

.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.report-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.report-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
  font-size: 0.875rem;
}

.report-card-meta dt {
  color: var(--text-muted);
  font-weight: 500;
}

.report-card-meta dd {
  margin: 0.15rem 0 0;
}

.report-source-col {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.flash-link {
  display: inline-block;
  margin-left: 0.5rem;
  font-weight: 600;
  color: var(--accent-hover);
}

.pin-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pin-inline-input {
  width: 4.5rem;
  padding: 0.2rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.modal-panel--pin {
  max-width: 22rem;
  text-align: center;
}

.pin-modal-subtitle {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pin-display {
  font-family: var(--font-mono);
  font-size: 2rem;
  letter-spacing: 0.35em;
  margin-bottom: 1rem;
  color: var(--navy);
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pin-pad-key {
  min-height: 3rem;
  font-size: 1.35rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  transition: background var(--transition);
}

.pin-pad-key:hover {
  background: var(--accent-soft);
}

.pin-pad-spacer {
  visibility: hidden;
}

.pin-input.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
