﻿:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #18202f;
  --muted: #667085;
  --line: #d8dee9;
  --brand: #1f6f78;
  --brand-2: #9f3a4a;
  --accent: #d99a2b;
  --soft: #eaf3f4;
  --danger: #b42318;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
button, input, select { font: inherit; }
button, .button { border: 0; background: var(--brand); color: white; min-height: 42px; padding: 0 16px; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button:hover { filter: brightness(.95); }
.ghost { background: #eef4f5; color: #174d54; border: 1px solid #c8dde0; }
.icon { min-height: 30px; width: 30px; padding: 0; background: #f8e7e5; color: var(--danger); }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: 0 18px 50px rgba(24,32,47,.10); }
.login-card h1, .topbar h1 { margin: 0; letter-spacing: 0; }
.eyebrow { margin: 0 0 6px; color: var(--brand); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 6px; min-height: 42px; padding: 0 12px; background: white; color: var(--ink); }
.login-card label { margin: 18px 0; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.error { color: var(--danger); min-height: 20px; margin: 0; }

.shell { width: min(1440px, 100%); margin: 0 auto; padding: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.userbox { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--brand); font-weight: 800; }
.grid { display: grid; gap: 16px; }
.employee-grid { grid-template-columns: 380px minmax(0, 1fr); }
.chef-grid { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
.panel, .day { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; position: sticky; top: 16px; }
.wide { grid-column: 1 / -1; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 10px; grid-column: 2; }
.day { min-height: 190px; padding: 12px; }
.day h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: 0; }
.day h3 span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.shift-card { border-left: 4px solid var(--brand); background: #f8fbfc; border-radius: 6px; padding: 10px; margin-bottom: 8px; display: grid; gap: 4px; }
.shift-card span { color: var(--brand-2); font-weight: 800; }
.shift-card small { color: var(--muted); line-height: 1.35; }
.wide-panel { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; background: #fff4de; color: #865700; border-radius: 999px; font-weight: 800; }
.empty { color: var(--muted); margin: 8px 0; }

@media (max-width: 980px) {
  .topbar, .userbox { align-items: flex-start; }
  .topbar { flex-direction: column; }
  .employee-grid, .chef-grid, .calendar { grid-template-columns: 1fr; }
  .calendar { grid-column: auto; }
  .form-grid { position: static; }
}
