﻿:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #607080;
  --line: #d9e1e8;
  --panel: #ffffff;
  --soft: #f3f7fa;
  --accent: #116466;
  --accent-dark: #0b4547;
  --warning: #9a5b00;
  --danger: #b42318;
  --ok: #16794c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #eef5f8 0%, #f8fbf9 46%, #f4f1ea 100%);
}
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0; }
.login-panel, .app-panel { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(23, 32, 42, 0.08); }
.login-panel { width: min(460px, 100%); margin: 8vh auto 0; padding: 28px; }
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.brand-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 8px; background: var(--accent); color: white; font-weight: 700; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.75rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.05rem; }
.brand p, .eyebrow, .section-heading p, .hint, small, .employee-summary span, .stats-grid span { color: var(--muted); }
.login-form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 700; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 13px; color: var(--ink); background: white; }
input:focus, select:focus { border-color: var(--accent); outline: 3px solid rgba(17, 100, 102, 0.15); }
button { border: 0; border-radius: 6px; padding: 12px 16px; color: white; background: var(--accent); cursor: pointer; font-weight: 700; }
button:hover { background: var(--accent-dark); }
.secondary { border: 1px solid var(--line); color: var(--ink); background: white; }
.secondary:hover { color: white; background: var(--accent-dark); }
.hint { font-size: 0.88rem; line-height: 1.45; }
.error { min-height: 1.2em; color: var(--danger); font-weight: 700; }
.hidden { display: none; }
.app-panel { padding: 24px; }
.topbar { display: flex; justify-content: space-between; gap: 18px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.eyebrow { margin-bottom: 6px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.employee-summary, .stats-grid, .content-grid { display: grid; gap: 16px; margin-top: 20px; }
.employee-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px; background: var(--soft); border: 1px solid var(--line); }
.employee-summary div, .stats-grid article { display: grid; gap: 6px; }
.employee-summary strong { font-size: 0.98rem; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid article { min-height: 132px; padding: 18px; border: 1px solid var(--line); background: white; }
.stats-grid strong { font-size: 2.25rem; }
.content-grid { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
.table-wrap, .details-panel, .edit-panel { border: 1px solid var(--line); background: white; }
.edit-panel { margin-top: 20px; }
.edit-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.wide-field { grid-column: span 2; }
.form-actions { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
table { width: 100%; min-width: 640px; border-collapse: collapse; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; }
.status { display: inline-flex; min-width: 88px; justify-content: center; border-radius: 999px; padding: 5px 9px; font-size: 0.82rem; font-weight: 700; }
.status.approved { color: var(--ok); background: #e8f5ee; }
.status.pending { color: var(--warning); background: #fff4db; }
.details-panel { padding: 18px; }
.details-panel h3 + .upcoming-list, .details-panel h3 + .notes-list { margin-top: 12px; }
.details-panel h3:not(:first-child) { margin-top: 24px; }
.upcoming-list { display: grid; gap: 10px; }
.upcoming-item { border: 1px solid var(--line); padding: 12px; background: var(--soft); }
.upcoming-item strong { display: block; margin-bottom: 4px; }
.notes-list { display: grid; gap: 10px; padding-left: 20px; color: var(--muted); }
@media (max-width: 900px) {
  .employee-summary, .stats-grid, .content-grid, .edit-form { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { background: #f3f7fa; }
  .shell { width: 100%; padding: 0; }
  .login-panel, .app-panel { min-height: 100vh; border: 0; box-shadow: none; padding: 18px; }
  .login-panel { margin: 0; width: 100%; display: flex; flex-direction: column; justify-content: center; }
  .topbar, .section-heading { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; justify-items: stretch; }
  .top-actions { display: grid; justify-content: stretch; justify-self: stretch; }
  .top-actions, .top-actions button, .form-actions button { width: 100%; }
  .employee-summary, .stats-grid, .edit-form { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .stats-grid article { min-height: 108px; }
  table { min-width: 0; }
  thead { display: none; }
  tr { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  td { display: flex; justify-content: space-between; gap: 14px; padding: 4px 18px; border-bottom: 0; }
  td::before { color: var(--muted); font-weight: 700; }
  td:nth-child(1)::before { content: "Dates"; }
  td:nth-child(2)::before { content: "Days"; }
  td:nth-child(3)::before { content: "Type"; }
  td:nth-child(4)::before { content: "Status"; }
}
