/* דיווח שעות – קו זכות. Ported from docs/design/*.dc.html (Main, Month). */

@font-face {
  font-family: "Heebo";
  src: url("/static/fonts/Heebo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #1E4F86;
  --brand-dark: #173F6C;
  --admin-header: #143A63;
  --sky: #9ADAF2;
  --ground: #F2F6FA;
  --ink: #1B2430;
  --ink-soft: #3A4452;
  --muted: #6B7685;
  --line: #E2E8EF;
  --line-soft: #EEF1F5;
  --punch-in: #2FBF71;
  --punch-out: #FF8A3D;
  --manual: #E07A1F;
  --error: #C62828;
  --error-bg: #FDECEA;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--ground);
  font-family: Heebo, system-ui, sans-serif;
  color: var(--ink);
}
a { color: #1F5F99; }
a:hover { color: #174A78; }
button, input, select, textarea { font-family: inherit; }

/* --- Header ------------------------------------------------------------ */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px; min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-header__inner--wide { max-width: 1240px; }
.site-header__start { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-logo { height: 44px; width: auto; display: block; }
.site-nav { display: flex; gap: 4px; }
.site-nav__link {
  padding: 8px 16px; border-radius: 999px; color: var(--ink-soft);
  text-decoration: none; font-size: 15px;
}
.site-nav__link.is-active { background: var(--brand); color: #FFFFFF; font-weight: 600; }
.site-nav__link.is-active:hover { color: #FFFFFF; }
.site-header__user { display: flex; align-items: center; gap: 12px; }
.site-header__user form { margin: 0; }
.site-header__name { font-size: 15px; font-weight: 500; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: #123B66;
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.btn-ghost {
  border: 1px solid #D5DCE4; background: #FFFFFF; color: var(--ink-soft);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer;
}
.btn-ghost:hover { background: var(--ground); }
a.btn-ghost { text-decoration: none; }

/* --- Alerts ------------------------------------------------------------ */
.alert { border-radius: 12px; padding: 10px 14px; font-size: 15px; font-weight: 600; }
.alert--error { background: var(--error-bg); color: #8A1C1C; }

/* --- Login / error ----------------------------------------------------- */
.page-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 420px; background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 24px; padding: 40px 32px; display: flex; flex-direction: column;
  align-items: center; gap: 16px; text-align: center;
}
.login-card__logo { height: 64px; width: auto; }
.login-card__title { margin: 0; font-size: 28px; font-weight: 800; color: var(--brand); }
.login-card__sub { margin: -8px 0 0; color: var(--ink-soft); font-size: 15px; }
.login-card__hint { margin: 0; color: var(--muted); font-size: 13px; }
.login-card .alert { width: 100%; }
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 14px 20px; border-radius: 999px; background: var(--brand); color: #FFFFFF;
  font-size: 17px; font-weight: 700; text-decoration: none;
}
.btn-google svg { background: #FFFFFF; border-radius: 50%; padding: 2px; box-sizing: content-box; }
.btn-google:hover { background: var(--brand-dark); color: #FFFFFF; }

/* --- Today page (Main.dc.html) ------------------------------------------ */
.today {
  max-width: 1160px; margin: 0 auto; padding: 32px 24px 48px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch;
}
.hero {
  flex: 999 1 560px; min-width: 0; position: relative; overflow: hidden;
  background: var(--brand); border-radius: 24px; padding: 40px; color: #FFFFFF;
  display: flex; flex-direction: column; gap: 28px;
}
.hero__tiles {
  position: absolute; top: -20px; left: -20px; width: 260px; height: 260px; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; transform: rotate(-14deg); opacity: 0.9;
}
.hero__tiles .t { border-radius: 12px; }
.hero__tiles .sky { background: var(--sky); }
.hero__tiles .b1 { background: #4A8BD0; }
.hero__tiles .b2 { background: #3A78BC; }
.hero__tiles .b3 { background: #2B67A8; }
.o12 { opacity: 0.12; } .o25 { opacity: 0.25; } .o30 { opacity: 0.3; } .o40 { opacity: 0.4; }
.o45 { opacity: 0.45; } .o50 { opacity: 0.5; } .o55 { opacity: 0.55; } .o60 { opacity: 0.6; }
.hero > * { position: relative; }
.hero > .hero__tiles { position: absolute; }
.hero__hello { display: flex; flex-direction: column; gap: 6px; }
.hero__greeting { font-size: 18px; color: #CFE6F7; }
.hero__date { font-size: 16px; color: #A9C8E6; }
.hero__alert { align-self: flex-start; }
.hero__main { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero__clock-wrap { display: flex; flex-direction: column; gap: 14px; }
.hero__clock {
  font-size: 96px; font-weight: 800; line-height: 0.9; letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.status-pill {
  align-self: flex-start; display: flex; align-items: center; gap: 8px; border-radius: 999px;
  padding: 8px 16px; font-size: 16px; font-weight: 700;
}
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; }
.status-pill--in { background: var(--punch-in); color: #06341C; }
.status-pill--in .dot { background: #06341C; }
.status-pill--out { background: #FFFFFF; color: var(--brand); }
.status-pill--out .dot { background: #8AA4BF; }
.punch-buttons { display: flex; gap: 16px; }
.punch-buttons form { margin: 0; }
.punch-btn {
  width: 132px; height: 132px; border-radius: 28px; font-size: 20px; font-weight: 800;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; border: none;
}
.punch-btn--in { background: var(--punch-in); color: #06341C; box-shadow: 0 10px 24px rgba(10, 60, 35, 0.35); }
.punch-btn--out { background: var(--punch-out); color: #3D1600; box-shadow: 0 10px 24px rgba(80, 30, 0, 0.35); }
.punch-btn:disabled { background: #2A5C93; color: #7FA3C9; cursor: not-allowed; box-shadow: none; }
.punch-btn:not(:disabled):hover { filter: brightness(1.05); }
.today-shifts {
  background: var(--brand-dark); border-radius: 16px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.today-shifts__head { display: flex; justify-content: space-between; align-items: baseline; }
.today-shifts__title { font-size: 15px; font-weight: 600; color: #CFE6F7; }
.today-shifts__total { font-size: 14px; color: #A9C8E6; }
.today-shifts__total strong { color: #FFFFFF; font-size: 20px; font-variant-numeric: tabular-nums; }
.today-shifts__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.today-shifts__empty { color: #A9C8E6; font-size: 14px; }
.shift-chip {
  display: flex; align-items: center; gap: 12px; background: #FFFFFF; color: var(--ink);
  border-radius: 12px; padding: 10px 14px; font-size: 15px; font-variant-numeric: tabular-nums;
}
.shift-chip__n {
  width: 26px; height: 26px; border-radius: 8px; background: var(--sky); color: #123B66;
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.shift-chip__dur { font-weight: 700; color: var(--brand); }

.today-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }

/* Stat tiles (shared) */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tile__label { font-size: 13px; font-weight: 600; }
.tile__value { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile__of { font-size: 15px; font-weight: 500; }
.tiles--small .tile { border-radius: 16px; padding: 14px 16px; gap: 4px; }
.tiles--small .tile__value { font-size: 26px; }
.tile--sky { background: #DDF2FB; } .tile--sky .tile__label, .tile--sky .tile__of { color: #18506F; } .tile--sky .tile__value { color: #0E3A57; }
.tile--green { background: #E2F5EA; } .tile--green .tile__label, .tile--green .tile__of { color: #1D5C3A; } .tile--green .tile__value { color: #0F3D24; }
.tile--amber { background: #FFF1D6; } .tile--amber .tile__label { color: #6E4A06; } .tile--amber .tile__value { color: #4A3104; }
.tile--violet { background: #ECE8FB; } .tile--violet .tile__label { color: #47358F; } .tile--violet .tile__value { color: #2E2163; }
.tile--red { background: #FDE7E4; } .tile--red .tile__label { color: #8A2A1E; } .tile--red .tile__value { color: #5C1A12; }

.card {
  background: #FFFFFF; border-radius: 18px; padding: 20px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.card__title { font-size: 15px; font-weight: 700; }
.week__bars {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  align-items: end; height: 120px;
}
.week__col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.week__label { font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; min-height: 14px; }
.week__bar { width: 100%; max-width: 34px; border-radius: 8px; }
.week__bar--past { background: #4A8BD0; }
.week__bar--empty { background: #D5DCE4; }
.week__bar--today { background: var(--punch-in); }
.week__bar--future { background: #E9EDF2; }
.week__day { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.missing-alert {
  background: #FFF4E5; border-radius: 18px; padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start;
}
.missing-alert__icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: #F59E0B;
  display: flex; align-items: center; justify-content: center;
}
.missing-alert__body { display: flex; flex-direction: column; gap: 4px; }
.missing-alert__title { font-size: 15px; font-weight: 700; color: #6E3B04; }
.missing-alert__text { font-size: 14px; color: #6E3B04; line-height: 1.5; }
.missing-alert__link { font-size: 14px; color: #8A4A05; font-weight: 700; }

/* --- Month page (Month.dc.html) ----------------------------------------- */
.month {
  max-width: 1240px; margin: 0 auto; padding: 28px 24px 48px;
  display: flex; flex-direction: column; gap: 18px;
}
.month__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.month__title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.month__title { margin: 0; font-size: 30px; font-weight: 800; }
.month__subject { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.icon-btn {
  width: 40px; height: 40px; border: 1px solid #D5DCE4; background: #FFFFFF; border-radius: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.chip { border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.chip--open { background: #E2F5EA; color: #1D5C3A; }
.chip--locked { background: #E9EDF2; color: #3A4452; }
.month__legend { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-off { width: 14px; height: 10px; border-radius: 3px; background: var(--line-soft); border: 1px solid #DDE3EA; }
.save-msg { display: flex; align-items: center; gap: 6px; color: #1D5C3A; font-weight: 600; }
.save-msg--error { color: var(--error); }

.info-banner {
  background: #E8F1FA; border-radius: 14px; padding: 10px 16px; font-size: 14px; color: var(--brand);
  display: flex; align-items: center; gap: 10px;
}
.info-banner--locked { background: #E9EDF2; color: var(--ink-soft); }

.month__body { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.month-table-card {
  flex: 999 1 680px; min-width: 0; background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
}
.month-table-scroll { overflow-x: auto; }
.month-table { min-width: 860px; font-size: 14px; font-variant-numeric: tabular-nums; }

.mrow {
  display: grid;
  grid-template-columns: 76px 56px 84px 84px 84px 84px 64px 118px minmax(120px, 1fr) 36px;
  align-items: center; padding: 0 12px; min-height: 44px;
  border-top: 1px solid var(--line-soft); background: #FFFFFF; margin: 0;
}
.mrow--head {
  background: var(--brand); color: #FFFFFF; font-weight: 600; height: 46px; border-top: none;
}
.mrow--head .center { text-align: center; }
.mrow--off { background: #F3F5F8; }
.mrow--error { background: #FFF8F7; }
.mrow__date { font-weight: 600; }
.mrow__dow { color: var(--ink-soft); }
.mrow__off-label { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; }
.mrow--off .cell-in, .mrow--off .cell-note { color: var(--ink-soft); }
.mrow__total { text-align: center; font-weight: 700; color: var(--brand); }
.mrow__note { padding-inline-start: 8px; }
.mrow__more { display: flex; justify-content: center; }
.mrow__extra {
  display: none; grid-column: 1 / -1; gap: 18px; flex-wrap: wrap; align-items: center;
  padding: 4px 0 10px; padding-inline-start: 132px; font-size: 13px; color: var(--ink-soft);
}
.mrow.show-extra .mrow__extra { display: flex; }
.mrow__error {
  grid-column: 1 / -1; color: var(--error); font-size: 13px; font-weight: 600;
  padding: 0 0 8px; padding-inline-start: 132px;
}
.extra-pair { display: inline-flex; align-items: center; gap: 4px; }
.extra-pair__label { font-weight: 600; margin-inline-end: 4px; }

.cell-time { display: flex; align-items: center; justify-content: center; gap: 3px; }
.cell-in {
  width: 64px; height: 34px; border: 1px solid transparent; border-radius: 8px; background: transparent;
  text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink);
}
.cell-in:hover { border-color: #C9D6E4; background: #FFFFFF; }
.cell-in:focus { outline: none; border-color: #2F74B8; background: #FFFFFF; box-shadow: 0 0 0 3px #CFE3F6; }
.cell-in::placeholder { color: #B3BCC7; }
.cell-note {
  width: 100%; min-width: 120px; height: 34px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; font-size: 13px; padding: 0 8px; color: var(--ink-soft);
}
.cell-note:hover { border-color: #C9D6E4; background: #FFFFFF; }
.cell-note:focus { outline: none; border-color: #2F74B8; background: #FFFFFF; box-shadow: 0 0 0 3px #CFE3F6; }
.cell-in:disabled, .cell-note:disabled, .type-select:disabled { cursor: default; opacity: 1; color: var(--ink-soft); }
.cell-in:disabled:hover, .cell-note:disabled:hover { border-color: transparent; background: transparent; }
.cell-error, .cell-error:hover, .cell-error:focus { border-color: var(--error); background: #FFFFFF; box-shadow: 0 0 0 2px #F6CFCB; }
.manual-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--manual); flex: none; display: inline-block; }
.legend-item .manual-dot { width: 8px; height: 8px; }

.type-select {
  height: 32px; border-radius: 8px; border: 1px solid; padding: 0 6px; font-size: 13px;
  font-weight: 600; cursor: pointer;
}
.type-work { background: transparent; color: var(--ink-soft); border-color: transparent; }
.type-vacation { background: #ECE8FB; color: #2E2163; border-color: #ECE8FB; }
.type-sick { background: #FDE7E4; color: #5C1A12; border-color: #FDE7E4; }
.type-child_sick { background: #FFF1D6; color: #4A3104; border-color: #FFF1D6; }
.type-holiday, .type-holiday_eve { background: #DDF2FB; color: #0E3A57; border-color: #DDF2FB; }
.type-tests { background: #E2F5EA; color: #0F3D24; border-color: #E2F5EA; }
.type-select.cell-error { border-color: var(--error); }

.more-btn {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid #D5DCE4; background: #FFFFFF;
  color: var(--ink-soft); font-size: 16px; line-height: 1; cursor: pointer;
}
.show-extra .more-btn { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }

.month__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.month-summary { display: flex; flex-direction: column; gap: 16px; }
.total-card {
  background: var(--brand); color: #FFFFFF; border-radius: 20px; padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.total-card__label { font-size: 14px; color: #CFE6F7; font-weight: 600; }
.total-card__value { font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.total-card__sub { font-size: 14px; color: #CFE6F7; }
.note-card { border-radius: 20px; gap: 10px; }
.note-card__label { font-size: 16px; font-weight: 700; }
.note-card__text {
  border: 1px solid #C9D6E4; border-radius: 12px; padding: 10px 12px; font-size: 14px;
  line-height: 1.6; resize: vertical;
}
.note-card__text:focus { outline: none; border-color: #2F74B8; box-shadow: 0 0 0 3px #CFE3F6; }

@media (max-width: 640px) {
  .hero { padding: 24px; }
  .hero__clock { font-size: 64px; }
  .punch-btn { width: 112px; height: 112px; }
  .site-header__name { display: none; }
}

/* --- Admin shell (AdminMonth.dc.html / Employees.dc.html) ------------------ */
body.admin { background: #F4F5F7; }
.admin-header { background: var(--admin-header); color: #FFFFFF; }
.admin-header__start { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.admin-brand { display: flex; align-items: center; gap: 12px; }
.admin-logo-chip { background: #FFFFFF; border-radius: 10px; padding: 5px 10px; display: flex; }
.admin-logo { height: 36px; width: auto; display: block; }
.admin-pill {
  font-size: 12px; background: #2F74B8; border-radius: 999px; padding: 3px 10px;
  color: #FFFFFF; font-weight: 700;
}
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav__link {
  padding: 8px 16px; border-radius: 999px; color: #D6E6F5; text-decoration: none; font-size: 15px;
}
.admin-nav__link:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.admin-nav__link.is-active { background: #FFFFFF; color: var(--admin-header); font-weight: 700; }
.admin-nav__link.is-active:hover { color: var(--admin-header); background: #FFFFFF; }
.admin-header__user { display: flex; align-items: center; gap: 12px; }
.admin-header__user form { margin: 0; }
.admin-header__name { font-size: 15px; color: #C9D3DF; }
.btn-ghost--dark { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #E3ECF5; }
.btn-ghost--dark:hover { background: rgba(255, 255, 255, 0.1); }

.admin-main {
  max-width: 1240px; margin: 0 auto; padding: 32px 24px 48px;
  display: flex; flex-direction: column; gap: 20px;
}
.admin-main--narrow { max-width: 880px; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-h1 { margin: 0; font-size: 28px; font-weight: 700; }

.btn-primary {
  height: 44px; padding: 0 18px; border: none; background: var(--brand); color: #FFFFFF;
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn-primary:hover { background: var(--brand-dark); color: #FFFFFF; }
.btn-primary--block { width: 100%; }

.alert--warn { background: #FFF4E5; color: #6E3B04; font-size: 14px; }
.ltr { direction: ltr; text-align: left; }

/* Form fields (shared by admin forms) */
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="date"], .field select, .input {
  height: 40px; border: 1px solid #C9CFD8; border-radius: 8px; padding: 0 10px; font-size: 15px;
  color: var(--ink); background: #FFFFFF; width: 100%;
}
.input--area { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.input--num { max-width: 140px; }
.field input:focus, .field select:focus, .input:focus {
  outline: none; border-color: #2F74B8; box-shadow: 0 0 0 3px #CFE3F6;
}
.field [aria-invalid="true"], .input[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 13px; font-weight: 600; }
.field__help { margin: 0; font-size: 12px; color: #5B6472; line-height: 1.5; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 18px; height: 18px; }

/* Segmented control (radio buttons) */
.seg {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #F0F2F5;
  border-radius: 10px; padding: 4px; gap: 4px;
}
.seg__opt { position: relative; display: block; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 8px;
  font-size: 14px; color: var(--ink-soft); cursor: pointer;
}
.seg__opt input:checked + span {
  background: #FFFFFF; color: var(--brand); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.seg__opt input:focus-visible + span { outline: 2px solid #2F74B8; outline-offset: 1px; }

/* --- Employees screen ------------------------------------------------------- */
.emp-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.emp-table-card {
  flex: 999 1 600px; min-width: 0; background: #FFFFFF; border: 1px solid #E2E5EA;
  border-radius: 16px; overflow: hidden;
}
.emp-table-scroll { overflow-x: auto; }
.emp-table { min-width: 620px; font-size: 14px; }
.emp-row {
  display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(170px, 1.6fr) 80px 120px 96px;
  align-items: center; gap: 8px; padding: 0 20px; min-height: 52px; border-top: 1px solid #EEF0F3;
  background: #FFFFFF; color: var(--ink); text-decoration: none; cursor: pointer;
}
a.emp-row:hover { background: #F6F9FC; color: var(--ink); }
.emp-row.is-selected, a.emp-row.is-selected:hover { background: #E8F0F8; }
.emp-row--head {
  background: #F3F6FA; color: var(--ink-soft); font-weight: 600; min-height: 46px; border-top: none;
  cursor: default;
}
.emp-row__name { font-weight: 600; }
.emp-row__email { color: var(--ink-soft); text-align: right; overflow-wrap: anywhere; }
.emp-row .num { font-variant-numeric: tabular-nums; }
.emp-empty { padding: 20px; color: var(--muted); border-top: 1px solid #EEF0F3; }
.role-badge {
  font-size: 11px; font-weight: 700; background: #E8F0F8; color: var(--brand);
  border-radius: 999px; padding: 2px 8px; margin-inline-start: 4px; white-space: nowrap;
}
.status-chip { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-chip--active { background: #E7F4EC; color: #1E6B3E; }
.status-chip--inactive { background: #F0F1F3; color: var(--ink-soft); }

.emp-side { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.emp-form {
  background: #FFFFFF; border: 2px solid var(--brand); border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px; margin: 0;
}
.emp-form__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.emp-form__title { font-size: 16px; font-weight: 700; }
.emp-form[data-pay="hourly"] .only-monthly,
.emp-form[data-pay="monthly"] .only-hourly { display: none; }
/* Login (and so the Google address) is for hourly employees and admins. */
.emp-form[data-pay="monthly"][data-role="employee"] .only-login,
.emp-form:not([data-pay="monthly"][data-role="employee"]) .only-no-login { display: none; }

.link-card {
  background: #FFFFFF; border: 1px solid #E2E5EA; border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
}
.link-card:hover { border-color: var(--brand); color: var(--ink); }
.link-card__title { font-size: 16px; font-weight: 700; color: var(--brand); }
.link-card__text { font-size: 13px; color: #5B6472; line-height: 1.5; }

/* --- Settings screen -------------------------------------------------------- */
.settings-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.settings-card { border-radius: 16px; border-color: #E2E5EA; gap: 18px; padding: 24px; }
.settings-card__title { margin: 0; font-size: 18px; font-weight: 700; }
.setting { display: flex; flex-direction: column; gap: 6px; }
.setting + .setting { border-top: 1px solid #EEF0F3; padding-top: 16px; }
.setting__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.ip { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.settings-actions { display: flex; justify-content: flex-start; }

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.toggle__input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.toggle__track {
  width: 44px; height: 24px; border-radius: 999px; background: #C9CFD8; position: relative;
  flex: none; transition: background 0.15s;
}
.toggle__track::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: inset-inline-start 0.15s;
}
.toggle__input:checked + .toggle__track { background: var(--brand); }
.toggle__input:checked + .toggle__track::after { inset-inline-start: 23px; }
.toggle__input:focus-visible + .toggle__track { outline: 2px solid #2F74B8; outline-offset: 2px; }

/* --- Admin month overview (AdminMonth.dc.html) ------------------------------ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.btn-secondary {
  height: 44px; padding: 0 18px; border: 1px solid #C9CFD8; background: #FFFFFF; color: var(--ink);
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-secondary:hover { background: #F6F9FC; color: var(--ink); }
.am-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.am-head__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.am-head__title .icon-btn { border-color: #D5DAE1; border-radius: 10px; }
.am-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.am-lock-form { margin: 0; }
.am-chip { font-size: 13px; padding: 4px 12px; }
.am-workdays { font-size: 14px; color: #5B6472; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-card {
  background: #FFFFFF; border: 1px solid #E2E5EA; border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card__label { font-size: 13px; color: #5B6472; }
.stat-card__value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-card__of { font-size: 14px; font-weight: 400; color: #5B6472; }
.stat-card--warn { background: #FFF6EC; border-color: #F1D9BC; }
.stat-card--warn .stat-card__label, .stat-card--warn .stat-card__value { color: #7A3A06; }

.am-section { background: #FFFFFF; border: 1px solid #E2E5EA; border-radius: 16px; overflow: hidden; }
.am-section__head {
  padding: 16px 20px; border-bottom: 1px solid #E2E5EA;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
}
.am-section__head--inline { justify-content: flex-start; }
.am-section__title { font-size: 17px; font-weight: 700; }
.am-section__hint { font-size: 13px; color: #5B6472; }
.am-scroll { overflow-x: auto; }
.am-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.am-table--hourly { min-width: 980px; }
.am-table--monthly { min-width: 640px; }
.am-table th { background: #F7F8FA; color: var(--ink-soft); text-align: right; font-weight: 600; padding: 12px 8px; }
.am-table td { padding: 14px 8px; border-top: 1px solid #EEF0F3; }
.am-table th:first-child, .am-table td:first-child { padding-inline-start: 20px; }
.am-table th:last-child, .am-table td:last-child { padding-inline-end: 20px; }
.am-name { font-weight: 600; text-decoration: none; color: var(--ink); }
.am-name:hover { color: var(--brand); text-decoration: underline; }
.am-strong { font-weight: 600; }
.am-muted { color: #5B6472; }
.am-notes { color: var(--ink-soft); }
.am-empty { color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag--red { background: #FBE7E7; color: #9B1C1C; }
.tag--orange { background: #FDF0E3; color: #8A3F06; }
.tag--amber { background: #FFF4D6; color: #6E4B04; }
.payroll-done { color: #1E6B3E; font-weight: 600; font-size: 13px; }
.payroll-link { font-size: 13px; color: var(--brand); }
.payroll-link--fill { font-weight: 600; }

.month__admin-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.month__admin-links a { color: var(--brand); text-decoration: none; }
.month__admin-links a:hover { text-decoration: underline; }

.payroll-form { gap: 16px; }
.payroll-form__fields {
  border: none; margin: 0; padding: 0; min-width: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px;
}
.payroll-form__wide { grid-column: 1 / -1; }
.payroll-form__fields:disabled input, .payroll-form__fields:disabled textarea { background: #F3F5F8; color: var(--ink-soft); }

@media (max-width: 640px) {
  .admin-header__name { display: none; }
  .field-pair { grid-template-columns: minmax(0, 1fr); }
  .payroll-form__fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Installed app: small window (/app) and one-click punch (/quick/*) ----------------- */
.app-bar {
  background: #FFFFFF; border-bottom: 1px solid var(--line); height: 56px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.app-bar__logo { height: 32px; width: auto; display: block; }
.app-bar__name { font-size: 14px; font-weight: 500; }
.app-main { max-width: 520px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.app-hero {
  background: var(--brand); color: #FFFFFF; border-radius: 20px; padding: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.app-hero__date { font-size: 14px; color: #CFE6F7; }
.app-hero__clock { font-size: 64px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.app-hero__pill { align-self: center; font-size: 15px; padding: 6px 14px; }
.app-hero__buttons { display: flex; gap: 12px; width: 100%; }
.app-hero__buttons form { flex: 1; margin: 0; }
.app-punch {
  width: 100%; height: 64px; border-radius: 18px; border: none; font-size: 19px; font-weight: 800;
  cursor: pointer;
}
.app-punch--in { background: var(--punch-in); color: #06341C; }
.app-punch--out { background: var(--punch-out); color: #3D1600; }
.app-punch:disabled { background: #2A5C93; color: #7FA3C9; cursor: not-allowed; }
.app-punch:not(:disabled):hover { filter: brightness(1.05); }
.app-today { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.app-today__head { display: flex; justify-content: space-between; align-items: baseline; }
.app-today__title { font-size: 14px; font-weight: 700; }
.app-today__total { font-size: 13px; color: var(--muted); }
.app-today__total strong { font-size: 18px; color: var(--brand); font-variant-numeric: tabular-nums; }
.app-today__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.app-today__row strong { color: var(--ink); }
.app-today__empty { font-size: 14px; color: var(--muted); }
.app-missing {
  background: #FFF4E5; color: #8A4A05; border-radius: 14px; padding: 12px 14px; font-size: 14px;
  font-weight: 600; text-decoration: none;
}
.app-month-link { align-self: center; font-size: 14px; font-weight: 600; padding: 6px 0 12px; }

.reminders { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; padding: 16px 18px; }
.reminders__icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: #ECE8FB; color: #47358F;
  display: flex; align-items: center; justify-content: center;
}
.reminders__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reminders__title { font-size: 15px; font-weight: 700; }
.reminders__text { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.reminders__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

.quick-window { background: #FFFFFF; }
.quick { min-height: 100vh; padding: 24px; display: flex; gap: 16px; align-items: center; justify-content: center; }
.quick__icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: #DDF2FB; color: #18506F;
}
.quick__icon--in { background: var(--punch-in); color: #06341C; }
.quick__icon--out { background: var(--punch-out); color: #3D1600; }
.quick__icon--error { background: var(--error-bg); color: var(--error); }
.quick__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.quick__title { font-size: 20px; font-weight: 700; }
.quick__text { font-size: 15px; color: var(--ink-soft); }
.quick__close { font-size: 13px; color: var(--muted); margin-top: 4px; }
