/* =========================================================
   Kloksysteem v2 — Design System
   ========================================================= */

:root {
  /* Brand */
  --primary:       #6C63FF;
  --primary-dark:  #5A52D5;
  --primary-light: #EAE9FF;
  --accent:        #FF6584;

  /* Neutrals */
  --bg:            #F4F5F7;
  --surface:       #FFFFFF;
  --surface-2:     #F9FAFB;
  --border:        #E5E7EB;
  --text:          #111827;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;

  /* Status */
  --green:         #10B981;
  --green-light:   #D1FAE5;
  --yellow:        #F59E0B;
  --yellow-light:  #FEF3C7;
  --red:           #EF4444;
  --red-light:     #FEE2E2;
  --blue:          #3B82F6;
  --blue-light:    #DBEAFE;
  --purple:        #8B5CF6;
  --purple-light:  #EDE9FE;

  /* Sizes */
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.12);

  /* Sidebar */
  --sidebar-w:     240px;
  --header-h:      64px;
}

/* Dark mode */
[data-theme="dark"] {
  --bg:          #0F1117;
  --surface:     #1A1D27;
  --surface-2:   #21242F;
  --border:      #2D3142;
  --text:        #F1F5F9;
  --text-muted:  #94A3B8;
  --text-light:  #64748B;
  --primary-light: #2D2B4E;
  --green-light: #064E3B;
  --yellow-light:#451A03;
  --red-light:   #450A0A;
  --blue-light:  #1E3A5F;
  --purple-light:#2E1065;
}

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

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* =========================================================
   Layout
   ========================================================= */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform .25s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.sidebar-logo .logo-text {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--text);
}
.sidebar-logo .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 16px 20px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  border-radius: 0;
  text-decoration: none;
  position: relative;
}
.nav-item:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.nav-item.active { background: var(--primary-light); color: var(--primary); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}
.nav-item i { width: 18px; text-align: center; font-size: 15px; }

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

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top bar */
.topbar {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

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

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.topbar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Page */
.page-content {
  padding: 28px;
  flex: 1;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.page-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =========================================================
   Cards / Surfaces
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.card-body { padding: 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* =========================================================
   Stat Cards
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow); }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.stat-icon.green  { background: var(--green-light);  color: var(--green); }
.stat-icon.blue   { background: var(--blue-light);   color: var(--blue); }
.stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-icon.yellow { background: var(--yellow-light); color: var(--yellow); }
.stat-icon.red    { background: var(--red-light);    color: var(--red); }
.stat-icon.primary{ background: var(--primary-light);color: var(--primary); }

.stat-info {}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

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

.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-danger:hover { background: #DC2626; }

.btn-success {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-success:hover { background: #059669; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding: 7px 10px;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}
.btn-icon {
  padding: 7px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   Forms
   ========================================================= */
.form-group { margin-bottom: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
label .required { color: var(--red); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 9px 13px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}
.form-control::placeholder { color: var(--text-light); }

select.form-control { appearance: none; cursor: pointer; }

textarea.form-control { resize: vertical; min-height: 80px; }

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Toggle / Checkbox */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.toggle {
  position: relative;
  width: 40px; height: 22px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 11px;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }

tbody td {
  padding: 12px 14px;
  color: var(--text);
  vertical-align: middle;
}

.td-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* =========================================================
   Badges / Tags
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}
.badge-green  { background: var(--green-light);  color: var(--green); }
.badge-blue   { background: var(--blue-light);   color: var(--blue); }
.badge-yellow { background: var(--yellow-light); color: var(--yellow); }
.badge-red    { background: var(--red-light);    color: var(--red); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-gray   { background: var(--surface-2);    color: var(--text-muted); }

/* =========================================================
   Modal
   ========================================================= */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .2s ease;
}
.modal-lg { max-width: 680px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 17px; font-weight: 700; color: var(--text); }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: background .15s;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-body { padding: 20px 24px; }

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* =========================================================
   Alerts / Toasts
   ========================================================= */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: var(--green-light);  color: var(--green); }
.alert-warning { background: var(--yellow-light); color: var(--yellow); }
.alert-error   { background: var(--red-light);    color: var(--red); }
.alert-info    { background: var(--blue-light);   color: var(--blue); }

.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  animation: toastIn .25s ease;
  min-width: 240px;
  max-width: 320px;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   Empty state
   ========================================================= */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .4;
}
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p  { font-size: 14px; max-width: 300px; }

/* =========================================================
   Login page
   ========================================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-logo {
  width: 64px; height: 64px;
  background: var(--primary);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(108,99,255,.35);
}

.login-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.login-card .subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

.pin-input-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.pin-input-row input {
  width: 56px; height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pin-input-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}

/* =========================================================
   Calendar strip
   ========================================================= */
.calendar-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
}
.cal-day {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all .15s;
  min-width: 56px;
  font-size: 13px;
}
.cal-day:hover { border-color: var(--primary); background: var(--primary-light); }
.cal-day.today { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-day.has-entry { border-color: var(--green); }
.cal-day.has-entry .cal-dot { display: block; }
.cal-dot {
  display: none;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 4px;
}
.cal-day.today .cal-dot { background: rgba(255,255,255,.6); }
.cal-day-name { font-size: 11px; opacity: .7; margin-bottom: 2px; }
.cal-day-num { font-size: 16px; font-weight: 700; }

/* =========================================================
   Month tabs
   ========================================================= */
.month-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.month-tab {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  background: var(--surface);
  transition: all .15s;
  text-decoration: none;
}
.month-tab:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.month-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =========================================================
   Vacation banner
   ========================================================= */
.vacation-banner {
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.vacation-banner i { font-size: 24px; opacity: .9; }
.vacation-banner .vb-text b { display: block; font-size: 15px; font-weight: 700; }
.vacation-banner .vb-text span { font-size: 13px; opacity: .85; }

/* =========================================================
   Recurring day chip
   ========================================================= */
.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin: 3px;
}
.day-chip .chip-remove {
  cursor: pointer;
  opacity: .6;
  transition: opacity .15s;
  font-size: 11px;
}
.day-chip .chip-remove:hover { opacity: 1; }

/* =========================================================
   Mobile hamburger
   ========================================================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border: none;
  background: none;
}
.hamburger span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    width: 260px;
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: none;
    box-shadow: var(--shadow-lg);
  }
  .main-content { margin-left: 0; }
  .hamburger { display: flex; }

  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 16px; }
  .topbar { padding: 0 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
}

/* =========================================================
   Utility classes
   ========================================================= */
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 12px; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12{ margin-top: 12px; }
.mt-16{ margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16{ margin-bottom: 16px; }
.mb-24{ margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* Print */
@media print {
  .sidebar, .topbar, .btn, .td-actions { display: none !important; }
  .main-content { margin-left: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* =========================================================
   Login pagina (layout_blank)
   ========================================================= */
body:has(.login-card) {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.06);
}
.login-logo {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
}
.login-card h1 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.login-card .subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.alert-error {
  background: var(--red-light); border: 1px solid var(--red); color: var(--red);
  border-radius: 8px; padding: 10px 14px; font-size: 13px;
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px; text-align: left;
}
.pin-label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 16px;
}
.pin-input-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; }
.pin-digit {
  width: 60px; height: 64px; text-align: center;
  font-size: 26px; font-weight: 700; font-family: 'Inter', sans-serif;
  color: var(--text); background: var(--surface-2);
  border: 1.5px solid var(--border); border-radius: 10px;
  outline: none; caret-color: transparent;
  transition: border-color .15s, box-shadow .15s;
  -webkit-text-security: disc;
}
.pin-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,.12); background: var(--surface); }
.pin-digit.filled { border-color: var(--primary); background: var(--surface); }
.btn-login {
  width: 100%; padding: 13px; font-size: 14px; font-weight: 600;
  font-family: 'Inter', sans-serif; color: #fff; background: var(--primary);
  border: none; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
}
.btn-login:hover { background: var(--primary-dark); }
.login-footer { margin-top: 24px; font-size: 12px; color: var(--text-light); }
@media (max-width: 480px) {
  .login-card { padding: 32px 20px 28px; margin: 16px; }
  .pin-digit { width: 52px; height: 58px; font-size: 22px; }
}

/* Werkdag bevestiging melding */
.alert-werkdag {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--yellow-light);
  border: 1.5px solid var(--yellow);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.alert-werkdag-icon {
  font-size: 24px;
  color: var(--yellow);
  flex-shrink: 0;
}
.alert-werkdag-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--text);
}
.alert-werkdag-body strong {
  font-size: 15px;
  font-weight: 600;
}
.alert-werkdag-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .alert-werkdag { flex-wrap: wrap; }
  .alert-werkdag-actions { width: 100%; }
}
