@charset "UTF-8";
/**
 * style.scss
 * ----------------------------------------------------
 * 🌐 Haupt-Stylesheet
 *
 * Zentrale Sammeldatei. Importiert alle Layer in logischer Reihenfolge:
 *
 *   1. Base       → Reset, Variablen, Mixins, Grundstile
 *   2. Layout     → Navigation, Haupt-Layout
 *   3. Components → Wiederverwendbare UI-Elemente
 *   4. Pages      → Seiten-spezifische Stile
 *
 * Wird kompiliert zu: /public/assets/css/style.css
 *
 * @package     public/assets/css/scss
 */
/**
 * base/_index.scss
 * ----------------------------------------------------
 * 🔹 Base Layer — Gateway
 *
 * @forward exportiert Variablen und Mixins nach außen.
 * @use bindet Reset und Basis-Stile intern ein.
 *
 * @package     public/assets/css/scss/base
 */
/**
 * _variables.scss
 * ----------------------------------------------------
 * 🎨 Globale Design-Variablen
 *
 * Enthält alle wiederverwendbaren Designwerte:
 * Farben, Schriften, Abstände, Schatten, Breakpoints.
 *
 * @package     public/assets/css/scss/base
 */
/**
 * base/_index.scss
 * ----------------------------------------------------
 * 🔹 Base Layer — Gateway
 *
 * @forward exportiert Variablen und Mixins nach außen.
 * @use bindet Reset und Basis-Stile intern ein.
 *
 * @package     public/assets/css/scss/base
 */
/**
 * _mixins.scss
 * ----------------------------------------------------
 * 🧰 Zentrale Sass-Mixins
 *
 * @package     public/assets/css/scss/base
 */
/**
 * _reset.scss
 * ----------------------------------------------------
 * 🔄 Basis-Reset
 *
 * @package     public/assets/css/scss/base
 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

/**
 * base/_index.scss
 * ----------------------------------------------------
 * 🔹 Base Layer — Gateway
 *
 * @forward exportiert Variablen und Mixins nach außen.
 * @use bindet Reset und Basis-Stile intern ein.
 *
 * @package     public/assets/css/scss/base
 */
/**
 * _base.scss
 * ----------------------------------------------------
 * 🧱 Basis-Stile
 *
 * Globale Standarddefinitionen für Body, Typografie, Links.
 *
 * @package     public/assets/css/scss/base
 */
html {
  scrollbar-gutter: stable;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2937;
  background-color: #f3f4f6;
}

a {
  color: #2563eb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

/**
 * layout/_index.scss
 * ----------------------------------------------------
 * 🔹 Layout Layer — Gateway
 *
 * @package     public/assets/css/scss/layout
 */
/**
 * _nav.scss
 * ----------------------------------------------------
 * 🧭 Navigation
 *
 * Top-Navigation (Desktop) + Bottom-Navigation (Mobile).
 * Responsive Umschaltung per Media Query.
 *
 * @package     public/assets/css/scss/layout
 */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.nav-top__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-top__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-top__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-top__logo:hover {
  text-decoration: none;
}
.nav-top__logo-img {
  height: 36px;
  width: auto;
}
.nav-top__list {
  display: flex;
  gap: 0;
}
.nav-top__item {
  display: flex;
}
.nav-top__link {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  height: 56px;
  text-decoration: none;
  color: #1f2937;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  transition: color 150ms, border-color 150ms;
}
.nav-top__link:hover {
  color: #2563eb;
  text-decoration: none;
}
.nav-top__link--active {
  color: #2563eb;
  font-weight: 600;
  border-bottom-color: #2563eb;
}
.nav-top__user {
  color: #6b7280;
  font-size: 0.875rem;
  padding: 0 0.5rem;
}
.nav-top__link--logout {
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
}
.nav-top__link--logout svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  vertical-align: middle;
}
.nav-top__link--logout:hover svg {
  stroke: #2563eb;
}
.nav-top__page-title {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  pointer-events: none;
  white-space: nowrap;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  color: #6b7280;
  z-index: 1000;
}
.footer__separator {
  margin: 0 0.5rem;
}
.footer__legal {
  color: #6b7280;
  text-decoration: none;
}
.footer__legal:hover {
  color: #2563eb;
  text-decoration: underline;
}

.nav-bottom {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
}
.nav-bottom__list {
  display: flex;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-bottom__item {
  flex: 1;
}
.nav-bottom__link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
  color: #6b7280;
  font-size: 0.65rem;
  gap: 2px;
  transition: color 150ms;
}
.nav-bottom__link:hover {
  color: #2563eb;
  text-decoration: none;
}
.nav-bottom__link--active {
  color: #2563eb;
  font-weight: 600;
}
.nav-bottom__link--active::before {
  content: "";
  position: absolute;
  inset: 6px 4px;
  z-index: -1;
  border-radius: 12px;
  background: #dbeafe;
}
.nav-bottom__icon {
  font-size: 1.3rem;
  line-height: 1;
}

body {
  padding-bottom: 40px;
}

@media (max-width: 767px) {
  .nav-top {
    position: relative;
  }
  .nav-top__list {
    display: none;
  }
  .nav-top__user {
    display: none;
  }
  .nav-top__page-title {
    display: block;
  }
  .nav-bottom {
    display: block;
  }
  .footer {
    display: none;
  }
  body {
    padding-bottom: 64px;
  }
}
/**
 * _main.scss
 * ----------------------------------------------------
 * 📄 Haupt-Layout
 *
 * Seitenlayout, Seiten-Header, Seiten-Titel.
 *
 * @package     public/assets/css/scss/layout
 */
.main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 1.5rem 1rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

/**
 * _form-mode.scss
 * ----------------------------------------------------
 * 📝 Fokus-Modus der Formularseiten
 *
 * Body-Klasse .form-mode setzt View::render() bei Formularseiten
 * (BaseController::renderFormView()). Die Seite wirkt wie ein Popup:
 *
 *   - Kopfzeile, Bottom-Nav und Footer bleiben sichtbar, liegen aber unter
 *     einer halbtransparenten grauen Schicht (body::before, $color-form-backdrop)
 *     und sind gesperrt (Attribut inert in header.php/footer.php)
 *   - das Formular (.main) liegt als weiße Karte über der Schicht
 *     (Handy: fast volle Breite zwischen Kopfzeile und Bottom-Nav,
 *     Desktop: Formularbreite 480px + Innenabstand, mittig)
 *   - .form-actions (Abbrechen/Speichern) kleben ganz unten im Fenster (über
 *     der ausgegrauten Bottom-Nav bzw. dem Footer), als graue Leiste über die
 *     volle Kartenbreite. Sie sind immer das letzte Element der Karte (sticky
 *     wirkt im Eltern-Element): bei Inhalt unter dem Formular (Vertragsstände auf
 *     jobs/form, Schätzungen auf entry-form) außerhalb des <form>, Speichern
 *     per form="…"-Attribut
 *
 * Z-Ebenen: Kopf/Nav/Footer 1000 → graue Schicht 1001 → Karte 1002.
 * Flash-Popups (9999) liegen in .main und damit über allem.
 *
 * @package     public/assets/css/scss/layout
 */
body.form-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1001;
  background-color: rgba(17, 24, 39, 0.45);
}
body.form-mode .main {
  position: relative;
  z-index: 1002;
  width: auto;
  margin: 0.5rem;
  padding: 1.5rem 1rem 0;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.07), 0 4px 6px rgba(0, 0, 0, 0.05);
}
body.form-mode .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin-left: -1rem;
  margin-right: -1rem;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background-color: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  body.form-mode .main {
    max-width: calc(480px + 2 * 2rem);
    margin: 2rem auto;
    padding: 1.5rem 2rem 0;
  }
  body.form-mode .form-actions {
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/**
 * components/_index.scss
 * ----------------------------------------------------
 * 🔹 Components Layer — Gateway
 *
 * @package     public/assets/css/scss/components
 */
/**
 * _buttons.scss
 * ----------------------------------------------------
 * 🔘 Buttons
 *
 * BEM-Block .btn mit Modifiern für Varianten und Größen.
 *
 * @package     public/assets/css/scss/components
 */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms, color 150ms;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn--primary {
  background-color: #2563eb;
  color: #ffffff;
}
.btn--primary:hover {
  background-color: #1d4ed8;
  color: #ffffff;
}
.btn--secondary {
  background-color: #ffffff;
  border-color: #e5e7eb;
  color: #1f2937;
}
.btn--secondary:hover {
  background-color: #f3f4f6;
}
.btn--danger {
  background-color: #dc2626;
  color: #ffffff;
}
.btn--danger:hover {
  background-color: rgb(187.0333333333, 30.1666666667, 30.1666666667);
  color: #ffffff;
}
.btn--danger-outline {
  background-color: #ffffff;
  border-color: #dc2626;
  color: #dc2626;
}
.btn--danger-outline:hover {
  background-color: #fef2f2;
  color: #dc2626;
}
.btn--sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 4px;
}
.btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--ghost {
  background: transparent;
  border-color: #e5e7eb;
  color: #6b7280;
}
.btn--ghost:hover {
  background: #f3f4f6;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/**
 * _btn-icon.scss
 * ----------------------------------------------------
 * 🗑️ Icon-Button (z. B. Mülltonne in Listen)
 *
 * App-weit einheitlich für Jobs, Zeiten, Ausfalltage und Admin.
 * Ursprünglich .jobs__btn-icon / .zeiten__btn-icon (heute .times).
 *
 * Desktop: 32px, Farbe nur beim Hover. Touch-Geräte (@media (hover: none)):
 * 44px Tippfläche, 20px Icon, Hover-Farben dauerhaft sichtbar.
 *
 * Markup:
 *   <button class="btn-icon btn-icon--danger" type="submit" title="Löschen"><?= iconTrash() ?></button>
 *
 * @package     public/assets/css/scss/components
 */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.btn-icon:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}
.btn-icon--danger:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

@media (hover: none) {
  .btn-icon {
    width: 44px;
    height: 44px;
    background-color: #f3f4f6;
    color: #1f2937;
  }
  .btn-icon svg {
    width: 20px;
    height: 20px;
  }
  .btn-icon--danger {
    background-color: #fef2f2;
    color: #dc2626;
  }
}
/**
 * _checkbox-field.scss
 * ----------------------------------------------------
 * ☑️ Checkbox mit Beschriftung in Formularen
 *
 * Steht als eigener Block (nicht in .times__field / .jobs__field, deren
 * Regeln Inputs auf volle Breite ziehen). Hinweis und Feldfehler darunter.
 *
 *   <div class="checkbox-field">
 *       <label class="checkbox-field__label">
 *           <input type="checkbox" name="is_estimate" value="1" checked> Geschätzt
 *       </label>
 *       <small class="checkbox-field__hint">…</small>
 *       <?= fieldError($fieldErrors, 'is_estimate') ?>
 *   </div>
 *
 * Genutzt: times/entry-form.php (Geschätzt), jobs/form.php (Schätzungen werden angewandt).
 *
 * @package     public/assets/css/scss/components
 */
.checkbox-field {
  margin-bottom: 1rem;
}
.checkbox-field__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  cursor: pointer;
}
.checkbox-field__label input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  cursor: pointer;
}
.checkbox-field__hint {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
  margin-top: 0.25rem;
}

/**
 * _date-order.scss
 * ----------------------------------------------------
 * ↕️ Sortier-Kopf einer Datumsspalte („Datum ↓“)
 *
 * Button im <th> (app/views/partials/date-order-header.php): sieht aus wie
 * der Spaltenkopf selbst (Schrift und Farbe von th geerbt), dazu ein Pfeil
 * in Wachstumsrichtung des Datums: ↓ = älteste oben, ↑ = neueste oben. Ein Klick schaltet die
 * Datums-Sortierung aller Listen um (pro User gespeichert).
 *
 * @package     public/assets/css/scss/components
 */
.date-order {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.date-order:hover {
  text-decoration: underline;
}
.date-order__arrow {
  font-size: 1.1em;
  line-height: 1;
}

/**
 * _decimal-toggle.scss
 * ----------------------------------------------------
 * ⇄ Umschalter Std./Min. ↔ Dezimal
 *
 * Werte kommen doppelt aus formatMinutesBoth() (.net-hm / .net-dec).
 * .decimal-mode am body setzt der Server beim Seitenaufbau (pro User in der
 * DB, usr_decimal_hours), base/decimal-toggle.js schaltet beim Klick um und
 * speichert; die Einstellung gilt für alle Seiten (Zeiten, Dashboard).
 * Das Stundenzettel-PDF (pages/times/timesheet-pdf.js) liest dieselbe Einstellung.
 *
 * @package     public/assets/css/scss/components
 */
.net-hm {
  display: inline;
}

.net-dec {
  display: none;
}

.net-min {
  display: inline;
}
@media (max-width: 767px) {
  .net-min {
    display: block;
  }
}

.decimal-mode .net-hm {
  display: none;
}
.decimal-mode .net-dec {
  display: inline;
}

.decimal-toggle {
  background: none;
  border: 1px solid #2563eb;
  border-radius: 6px;
  padding: 2px 0.5rem;
  font-size: 0.875rem;
  color: #2563eb;
  cursor: pointer;
  white-space: nowrap;
}

/**
 * _flash.scss
 * ----------------------------------------------------
 * 💬 Flash-Popups und Auswahl-Dialoge (oben mittig)
 *
 * Gesteuert von base/flash-messages.js, das nur noch Klassen setzt:
 *   - Server-Meldungen (layout/flash.php): .flash.flash--success|--error
 *     + .flash--closable und Schließen-Button .flash__close
 *   - showFlash(msg, type):   .flash.flash--<type>
 *   - showChoice()/showConfirm(): .flash.flash--warning.flash--dialog
 *       mit .flash__text, .flash__actions, .flash__btn(--primary)
 *
 * Ein-/Ausblenden: Grundzustand unsichtbar (opacity 0, 20px höher),
 * .flash--visible blendet ein (Transition 0,25 s). Ohne JS bleiben
 * die Server-Meldungen damit unsichtbar.
 *
 * Werte und Farben 1:1 aus den früheren Inline-Styles.
 *
 * @package     public/assets/css/scss/components
 */
.flash {
  --flash-border: #fca5a5;
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 9999;
  min-width: 300px;
  max-width: 500px;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid var(--flash-border);
  background: #fef2f2;
  color: #dc2626;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.flash--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.flash--error {
  --flash-border: #fca5a5;
  background: #fef2f2;
  color: #dc2626;
}
.flash--success {
  --flash-border: #86efac;
  background: #f0fdf4;
  color: #16a34a;
}
.flash--warning {
  --flash-border: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}
.flash--closable {
  padding-right: 48px;
}
.flash--dialog {
  padding: 16px 20px;
}
.flash__close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 4px 8px;
}
.flash__close:hover {
  opacity: 1;
}
.flash__text {
  margin-bottom: 12px;
  white-space: pre-line;
}
.flash__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.flash__btn {
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid var(--flash-border);
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.flash__btn--primary {
  border: none;
  background: #dc2626;
  color: #ffffff;
}

/**
 * _forms.scss
 * ----------------------------------------------------
 * 📝 Generische Formular-Elemente
 *
 * Basis-Stile für label, input, select, textarea + .inline-form.
 * Seiten-spezifische Overrides in pages/.
 *
 * @package     public/assets/css/scss/components
 */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=date],
input[type=time],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.5rem;
  min-height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  color: #1f2937;
  background-color: #ffffff;
  transition: border-color 150ms, box-shadow 150ms;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=date]:focus,
input[type=time]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
input[type=text]:disabled,
input[type=email]:disabled,
input[type=password]:disabled,
input[type=number]:disabled,
input[type=date]:disabled,
input[type=time]:disabled,
select:disabled,
textarea:disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}
input[type=text][aria-invalid=true],
input[type=email][aria-invalid=true],
input[type=password][aria-invalid=true],
input[type=number][aria-invalid=true],
input[type=date][aria-invalid=true],
input[type=time][aria-invalid=true],
select[aria-invalid=true],
textarea[aria-invalid=true] {
  border-color: #dc2626;
}

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

form.is-submitting {
  pointer-events: none;
}
form.is-submitting button,
form.is-submitting .btn,
form.is-submitting .toggle-switch {
  opacity: 0.6;
}

.inline-form {
  display: inline;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}

/**
 * _gesture-confirm.scss
 * ----------------------------------------------------
 * ☝️ Bestätigungs-Dialog, dessen OK-Klick direkt eine Browser-Aktion auslöst
 *
 * Für Aktionen, die einen echten Klick brauchen (Dateiauswahl öffnen,
 * Teilen-Menü auf iOS): base/gesture-confirm.js ruft die Aktion direkt im
 * Click-Handler auf (showConfirm() löst erst nach der Animation auf).
 * Genutzt: „Vorhandenen Stundenzettel ersetzen?“ (times.js, OK rot) und
 * „Stundenzettel ist fertig“ → Teilen (timesheet-pdf.js, OK Primärfarbe).
 * Bis 2026-11-18 als .scanner-confirm in pages/_scanner.scss (Werte 1:1 übernommen).
 *
 * z-index über dem Scanner-Overlay (1100), weil der Dialog auch daraus geöffnet wird.
 *
 * @package     public/assets/css/scss/components
 */
.gesture-confirm {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.gesture-confirm__box {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.gesture-confirm__msg {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1f2937;
  text-align: center;
}

.gesture-confirm__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.gesture-confirm__btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.gesture-confirm__btn--danger {
  border: none;
  background: #dc2626;
  color: #ffffff;
}
.gesture-confirm__btn--primary {
  border: none;
  background: #2563eb;
  color: #ffffff;
}

/**
 * _legal.scss
 * ----------------------------------------------------
 * ⚖️ Impressum und Datenschutz (pages/legal/*)
 *
 * Inhalts-Stile für die Seiten (eingeloggt im Layout, sonst Bare-Seite
 * im Stil der Login-Seite). Komponente statt Seiten-Stil, weil das
 * Popup (base/legal-modal.js) denselben Inhalt auf jeder Seite zeigt.
 *
 * Markup:
 *   <div class="legal">
 *     <div class="legal-box [legal-box--wide]">
 *       <h1>…</h1> <h2>…</h2> <p>…</p> <ul>…</ul>
 *       <table class="legal-table">…</table>
 *       <div class="legal-nav"><a>…</a> <span>|</span> <a>…</a></div>
 *     </div>
 *   </div>
 *
 * Popup (gebaut von base/legal-modal.js, Auslöser partials/legal-link.php):
 *   <div class="legal-modal-overlay" hidden>          graue Fläche, z-index 1200
 *     <div class="legal-modal" role="dialog">           (über Navigation/Scanner, unter Flash 9999)
 *       <button class="legal-modal__close">×</button>
 *       <div class="legal-modal__tabs"><button class="legal-modal__tab[--active]">…</div>
 *       <div class="legal-modal__body">
 *         <div class="legal-modal__panel" [hidden]> .legal-box | .legal-modal__message </div>
 *   body.legal-modal-open sperrt das Scrollen der Seite dahinter.
 *
 * Vorlage: frontend/scss/base/_legal-modal.scss der Tierheim-App,
 * Farben aus base/_variables.scss.
 *
 * @package     public/assets/css/scss/components
 */
.legal {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.legal-box {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-align: left;
  overflow-wrap: break-word;
}
.legal-box--wide {
  max-width: 760px;
}
.legal-box h1 {
  margin-bottom: 1.5rem;
  color: #1f2937;
  font-size: 1.75rem;
  text-align: center;
}
.legal-box h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e5e7eb;
  color: #1f2937;
  font-size: 1.15rem;
}
.legal-box p,
.legal-box ul {
  margin-bottom: 0.75rem;
  color: #6b7280;
  line-height: 1.6;
}
.legal-box ul {
  padding-left: 1.25rem;
  list-style: disc;
}
.legal-box a {
  color: #2563eb;
  text-decoration: none;
}
.legal-box a:hover {
  text-decoration: underline;
}

.legal-table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.875rem;
  overflow-wrap: break-word;
}
.legal-table th,
.legal-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: #f3f4f6;
  color: #1f2937;
  font-weight: 600;
}
.legal-table td {
  color: #6b7280;
}

.legal-nav {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}
.legal-nav a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}
.legal-nav a:hover {
  text-decoration: underline;
}
.legal-nav span {
  margin: 0 0.5rem;
  color: #6b7280;
}

body.legal-modal-open {
  overflow: hidden;
}

.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.45);
}

.legal-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 92%;
  max-width: 760px;
  max-height: 90vh;
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.07), 0 4px 6px rgba(0, 0, 0, 0.05);
}
.legal-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 1;
  padding: 0.25rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}
.legal-modal__close:hover {
  color: #1f2937;
}
.legal-modal__tabs {
  display: flex;
  flex-shrink: 0;
  padding-right: 2.5rem;
  border-bottom: 2px solid #e5e7eb;
}
.legal-modal__tab {
  flex: 1;
  margin-bottom: -2px;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: color 150ms, border-color 150ms;
}
.legal-modal__tab:hover {
  color: #1f2937;
}
.legal-modal__tab--active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
.legal-modal__body {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.legal-modal__message {
  padding: 3rem 1rem;
  text-align: center;
  color: #6b7280;
}
.legal-modal__message a {
  color: #2563eb;
}
.legal-modal .legal-box {
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 767px) {
  .legal {
    padding: 0;
  }
  .legal-modal-overlay {
    align-items: flex-start;
    padding-top: 5vh;
  }
  .legal-modal {
    width: 96%;
  }
  .legal-modal__tab {
    padding: 0.7rem 0.5rem;
    font-size: 0.9rem;
  }
  .legal-box {
    padding: 1.5rem 1rem;
  }
  .legal-table {
    font-size: 0.8rem;
  }
  .legal-table th,
  .legal-table td {
    padding: 0.35rem 0.5rem;
  }
}
/**
 * _list-card.scss
 * ----------------------------------------------------
 * 🗂️ Listen-Karte (Mobile-Ansicht von Listen)
 *
 * App-weit einheitliche Karte für Jobs, Admin-User und Ausfall-Typen.
 * Ursprünglich .jobs__card / .admin__card.
 *
 * Aufbau (Klick auf die Karte = Bearbeiten, data-href):
 *   oben:  Name links, Aktiv-Schalter rechts
 *   unten: Meta-/Detail-Text links, Mülltonne rechts
 *   → Schalter und Mülltonne liegen bewusst weit auseinander (kein Fehltippen)
 *
 * Markup:
 *   <div class="list-card [list-card--inactive]" data-href="…">
 *       <div class="list-card__header">
 *           <span class="list-card__name">…</span>
 *           <div class="list-card__actions" onclick="event.stopPropagation()">…Schalter…</div>
 *       </div>
 *       <div class="list-card__footer">
 *           <div class="list-card__body">
 *               <div class="list-card__meta"><span>…</span><span>…</span></div>
 *               <div class="list-card__details">…</div>   (optional)
 *           </div>
 *           <div class="list-card__actions" onclick="event.stopPropagation()">…Mülltonne…</div>
 *       </div>
 *   </div>
 *
 * @package     public/assets/css/scss/components
 */
.list-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.list-card:active {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.list-card--inactive .list-card__name,
.list-card--inactive .list-card__meta,
.list-card--inactive .list-card__details {
  color: #6b7280;
}

.list-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.list-card__name {
  font-weight: 600;
  font-size: 1.125rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.list-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.list-card__body {
  flex: 1;
  min-width: 0;
}

.list-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.list-card__details {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/**
 * _password-field.scss
 * ----------------------------------------------------
 * 🔑 Passwortfeld mit Augen-Symbol („Passwort anzeigen“)
 *
 * Markup: app/views/partials/password-input.php, Verhalten:
 * base/password-toggle.js. Genutzt auf Login, Passwort zurücksetzen,
 * Einstellungen und User-Formular (Admin). Das Input behält die Optik der Seite
 * (z. B. .login__input, .settings__field input), hier kommt nur der
 * Platz für das Auge rechts dazu.
 *
 *   <div class="password-field">
 *       <input class="password-field__input login__input" type="password" …>
 *       <button class="password-field__toggle" type="button">
 *           <svg class="password-field__icon password-field__icon--show">…</svg>
 *           <svg class="password-field__icon password-field__icon--hide" hidden>…</svg>
 *       </button>
 *   </div>
 *
 * @package     public/assets/css/scss/components
 */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field .password-field__input {
  width: 100%;
  padding-right: 2.75rem;
}
.password-field__toggle {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
}
.password-field__toggle:hover {
  color: #1f2937;
}
.password-field__icon {
  width: 1.25rem;
  height: 1.25rem;
}

/**
 * _pull-refresh.scss
 * ----------------------------------------------------
 * 🔄 Pull-to-Refresh – Anzeige (Kreis mit Pfeil bzw. Spinner)
 *
 * Übernommen aus der Tierheim-App (frontend/scss/base/_pull-to-refresh.scss),
 * Farben aus den Stunden-Variablen. Markup in layout/header.php (#pullToRefresh),
 * Geste in base/pull-to-refresh.js (setzt die Position per transform).
 *
 * Position: direkt unter dem festen Kopf (.header, $nav-top-height, auch mobil),
 * damit die Anzeige nicht hinter der Kopfzeile verschwindet.
 *   --dragging  folgt dem Finger (ohne Übergang)
 *   --ready     Schwelle erreicht → Pfeil zeigt nach oben
 *   --loading   Seite lädt neu → Spinner statt Pfeil
 *
 * @package     public/assets/css/scss/components
 */
.pull-refresh {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateY(-100%);
  z-index: 900;
  transition: transform 0.25s ease;
}
.pull-refresh--dragging {
  transition: none;
}
.pull-refresh--ready .pull-refresh__icon {
  transform: rotate(180deg);
}
.pull-refresh--loading .pull-refresh__icon {
  display: none;
}
.pull-refresh--loading .pull-refresh__spinner {
  display: flex;
}
.pull-refresh__icon, .pull-refresh__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pull-refresh__icon {
  transition: transform 0.2s ease;
}
.pull-refresh__icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #2563eb;
}
.pull-refresh__spinner {
  display: none;
}
.pull-refresh__spinner::after {
  content: "";
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: pull-refresh-spin 1s linear infinite;
}

@keyframes pull-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}
/**
 * _soll-ist.scss
 * ----------------------------------------------------
 * ⚖️ Soll/Ist-Kennzahlen (Festanstellung)
 *
 * Drei Kennzahlen Ist | Soll | Differenz nebeneinander, darunter
 * „inkl. … Ausfall, … Feiertag“ (.soll-ist__note). Markup:
 * app/views/partials/soll-ist-stats.php, genutzt in der Soll/Ist-Karte
 * im Dashboard (partials/year-summary.php) und in der Monatsansicht
 * Zeiten (partials/warnings.php), jeweils in einer .warning-card.
 * .soll-ist__overtime = Überstunden-Saldo darunter (nur Dashboard).
 * (Bis 2026-11-19: .warning-soll-ist in pages/_warnings.scss)
 *
 * @package     public/assets/css/scss/components
 */
.soll-ist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.soll-ist__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: #1f2937;
  text-decoration: none;
}
.soll-ist__item--ok {
  color: #16a34a;
}
.soll-ist__item--under {
  color: #dc2626;
}
.soll-ist__item[href]:hover .soll-ist__value {
  text-decoration: underline;
}
.soll-ist__label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.soll-ist__value {
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}
.soll-ist__note {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #6b7280;
}
.soll-ist__note .net-min {
  display: inline;
}
.soll-ist__note-part {
  white-space: nowrap;
}
.soll-ist__overtime {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
}
.soll-ist__overtime .net-min {
  display: inline;
}
@media (max-width: 767px) {
  .soll-ist {
    gap: 0.5rem;
  }
  .soll-ist__value {
    font-size: 1rem;
  }
}

/**
 * _subnav.scss
 * ----------------------------------------------------
 * 🗂️ Sub-Navigation (Reiter unter der Hauptnavigation)
 *
 * App-weit einheitlich für Seiten mit Unterbereichen:
 *   Zeiten: Arbeitszeiten | Ausfalltage | Urlaub & Überstunden
 *   Admin:  User-Verwaltung | Ausfall-Typen
 * Mobil: kleinere Abstände/Schrift, lange Reiter brechen zentriert um.
 * Ersetzt den Seitentitel auf Listen-Seiten; Formulare zeigen sie
 * ebenfalls (über dem .page-title). Ursprünglich .zeiten-subnav.
 *
 * Markup: app/views/partials/subnav.php ($subnavItems vom Controller)
 *   <nav class="subnav">
 *       <a class="subnav__link subnav__link--active" href="…">Arbeitszeiten</a>
 *       <a class="subnav__link" href="…">Ausfalltage</a>
 *   </nav>
 *
 * @package     public/assets/css/scss/components
 */
.subnav {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.5rem;
}
.subnav__link {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.subnav__link:hover {
  color: #1f2937;
  background-color: #e5e7eb;
  text-decoration: none;
}
.subnav__link--active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
@media (max-width: 767px) {
  .subnav__link {
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
    text-align: center;
  }
}

/**
 * _table.scss
 * ----------------------------------------------------
 * 📊 Zentrale Tabellen-Stile
 *
 * Alle <table>-Elemente bekommen die Klasse "table".
 * Zebra, Hover, Zeilenrand und Basis-Layout sind hier definiert —
 * page-spezifische SCSS enthalten nur noch Overrides.
 *
 * Zeilenrand (seit 2026-11-19, Wunsch User): jede Zeile ist ein abgerundeter
 * Block mit Rand links und rechts in einer Farbe ($color-row-edge, Grau; seit
 * 2026-11-21, vorher passend zum Zebra Sandbeige/Grau). Die Regeln stehen in :where() und haben damit
 * nur die Spezifität von .table — Seiten überschreiben sie einfach (z. B. die
 * Monatsansicht Zeiten: Rand pro Tag statt pro Zeile, Wochenende blau).
 * Mobil ist der Rand schmaler und die Tabelle ragt in den Seitenrand, damit
 * beide Ränder sichtbar bleiben.
 *
 * @package     public/assets/css/scss/components
 */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 0.25rem;
}
.table th {
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}
.table td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}
.table tbody tr:nth-child(even) td {
  background: rgb(236, 237.5, 240.5);
}
.table tbody tr:hover td {
  background: #f3f4f6;
}
.table--clickable tbody tr {
  cursor: pointer;
}
.table :where(thead th:first-child, tfoot td:first-child) {
  border-left: 6px solid transparent;
}
.table :where(thead th:last-child, tfoot td:last-child) {
  border-right: 6px solid transparent;
}
.table :where(tbody td:first-child) {
  border-left: 6px solid #b8bec7;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.table :where(tbody td:last-child) {
  border-right: 6px solid #b8bec7;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
@media (max-width: 767px) {
  .table :where(th:first-child, td:first-child) {
    border-left-width: 4px;
  }
  .table :where(th:last-child, td:last-child) {
    border-right-width: 4px;
  }
}

.table .table-divider td {
  font-size: 0.875rem;
  color: #2563eb;
  font-weight: 600;
  padding-top: 1.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #2563eb;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 0;
  background: transparent !important;
}
.table .table-divider td::before {
  content: "▾";
  margin-right: 0.25rem;
}

.table tbody tr.table-divider:first-child td {
  padding-top: 0.25rem;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  padding: 2px 3px 4px;
}

@media (max-width: 767px) {
  .table-scroll,
  :not(.table-scroll) > .table {
    width: calc(100% + 1rem);
    max-width: none;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  .table-scroll > .table {
    width: 100%;
  }
}
/**
 * _toggle-switch.scss
 * ----------------------------------------------------
 * 🔘 Aktiv-Schalter (Toggle-Switch)
 *
 * App-weit einheitlicher Schalter für „aktiv/inaktiv“ in Listen
 * (Jobs, Admin-User, Ausfall-Typen). Ursprünglich .jobs__toggle.
 *
 * Markup:
 *   <form method="post" action="…&action=toggle" class="toggle-switch-form">
 *       <?= csrfInput() ?>
 *       <input type="hidden" name="id" value="…">
 *       <label class="toggle-switch" title="Deaktivieren">
 *           <input type="checkbox" checked onchange="this.closest('form').requestSubmit()">
 *           <span class="toggle-switch__track"><span class="toggle-switch__thumb"></span></span>
 *       </label>
 *   </form>
 *
 * requestSubmit() statt submit(): nur so greift der Doppelklick-Schutz
 * (base/submit-guard.js).
 *
 * Nicht änderbar (z. B. eigener Account): label + Modifier --disabled,
 * checkbox mit disabled, ohne Formular.
 *
 * @package     public/assets/css/scss/components
 */
.toggle-switch-form {
  display: flex;
  align-items: center;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.toggle-switch input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch--disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.toggle-switch__track {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background-color: #9ca3af;
  border-radius: 10px;
  transition: background-color 0.2s;
}
.toggle-switch input:checked ~ .toggle-switch__track {
  background-color: #2563eb;
}

.toggle-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.toggle-switch input:checked ~ .toggle-switch__track .toggle-switch__thumb {
  transform: translateX(16px);
}

/**
 * pages/_index.scss
 * ----------------------------------------------------
 * 🔹 Pages Layer — Gateway
 *
 * @package     public/assets/css/scss/pages
 */
/**
 * _login.scss
 * ----------------------------------------------------
 * 🔐 Login-Seite
 *
 * Zentriertes Login-Formular mit Card-Layout.
 *
 * @package     public/assets/css/scss/pages
 */
.login-page {
  min-height: 100vh;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login {
  width: 100%;
  max-width: 420px;
}
.login__box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.07), 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 3rem 2rem;
}
.login__logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}
.login__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1f2937;
}
.login__error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid rgb(241.25, 169.75, 169.75);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.login__success {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.login__text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
.login__link {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #2563eb;
  text-decoration: none;
}
.login__link:hover {
  text-decoration: underline;
}
.login__legal {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
}
.login__legal-link {
  color: #6b7280;
  text-decoration: none;
}
.login__legal-link:hover {
  color: #2563eb;
  text-decoration: underline;
}
.login__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.login__field {
  display: flex;
  flex-direction: column;
}
.login__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.login__input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  color: #1f2937;
  background-color: #ffffff;
  transition: border-color 150ms, box-shadow 150ms;
}
.login__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
.login__submit {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms;
  margin-top: 0.25rem;
}
.login__submit:hover {
  background-color: #1d4ed8;
}

/**
 * _admin.scss
 * ----------------------------------------------------
 * 🛠️ Admin-Bereich
 *
 * User-Verwaltung, Formulare und Tabellen im Admin-Bereich.
 * Seitenkopf: Sub-Navigation (components/_subnav.scss) + .page-actions
 * bzw. .page-title (layout/_main.scss), keine eigenen Header-Klassen.
 *
 * @package     public/assets/css/scss/pages
 */
.admin {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
}
.admin__table {
  margin-top: 1rem;
}
.admin__row {
  cursor: pointer;
}
.admin__row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  position: relative;
  z-index: 1;
}
.admin__row--inactive td {
  color: #6b7280;
}
.admin__actions {
  width: 1px;
  white-space: nowrap;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
.admin__delete-form {
  display: inline;
}
.admin__form-title {
  max-width: 480px;
  margin: 0 auto 1rem;
}
.admin__form {
  max-width: 480px;
  margin: 0 auto;
}
.admin__field {
  margin-bottom: 1rem;
}
.admin__hint {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
  margin-top: 0.25rem;
}
.admin__table {
  display: table;
}
.admin__cards {
  display: none;
}
@media (max-width: 767px) {
  .admin__table {
    display: none;
  }
  .admin__cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
}

/**
 * _dashboard.scss
 * ----------------------------------------------------
 * 🏠 Dashboard — Jahresübersicht
 *
 * @package     public/assets/css/scss/pages
 */
.dashboard__section-title {
  margin: 2rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  text-align: center;
}
.dashboard__empty {
  padding: 1.5rem 0;
  color: #6b7280;
}
.dashboard__empty a {
  color: #2563eb;
  text-decoration: underline;
}
.dashboard__filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.dashboard__filter-select {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  color: #1f2937;
  cursor: pointer;
}
.dashboard__year-table {
  margin-top: 1rem;
}
.dashboard__year-table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dashboard__year-table .net-min {
  display: inline;
}
.dashboard__year-table .dashboard__absence {
  white-space: nowrap;
}
.dashboard__year-row {
  cursor: pointer;
}
.dashboard__year-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  position: relative;
  z-index: 1;
}
.dashboard__year-num, .dashboard__year-table th.dashboard__year-num {
  text-align: right;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #6b7280;
}
.dashboard__year-diff--ok {
  color: #16a34a;
}
.dashboard__year-diff--under {
  color: #dc2626;
}
.dashboard__month-short {
  display: none;
}
.dashboard__netto-diff {
  display: inline;
}
.dashboard__netto-diff--mobile {
  display: none;
}
.dashboard__absence {
  display: block;
  margin-top: 1px;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
}
@media (max-width: 767px) {
  .dashboard__year-table th, .dashboard__year-table td {
    padding: 0.25rem;
  }
  .dashboard__year-table tbody td:has(+ .dashboard__diff-col) {
    border-right: 4px solid #b8bec7;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
  }
  .dashboard__year-table th:has(+ .dashboard__diff-col),
  .dashboard__year-table tfoot td:has(+ .dashboard__diff-col) {
    border-right: 4px solid transparent;
  }
  .dashboard__month-long {
    display: none;
  }
  .dashboard__month-short {
    display: inline;
  }
  .dashboard__absence, .dashboard__diff-col {
    display: none;
  }
  .dashboard__netto-diff, .dashboard__netto-diff--mobile {
    display: block;
    margin-top: 1px;
  }
}

/**
 * _jobs.scss
 * ----------------------------------------------------
 * 💼 Jobs-Seite
 *
 * Liste und Formular für Job-Verwaltung.
 *
 * @package     public/assets/css/scss/pages
 */
.jobs__table {
  margin-top: 1rem;
}
.jobs__row {
  cursor: pointer;
}
.jobs__row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  position: relative;
  z-index: 1;
}
.jobs__row--inactive td {
  color: #6b7280;
}
.jobs__actions {
  width: 1px;
  white-space: nowrap;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
.jobs__table {
  display: table;
}
.jobs__cards {
  display: none;
}
@media (max-width: 767px) {
  .jobs__table {
    display: none;
  }
  .jobs__cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
}
.jobs__empty {
  color: #6b7280;
  margin-top: 1rem;
}
.jobs__back-link {
  display: block;
  max-width: 480px;
  margin: 0 auto 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
}
.jobs__back-link:hover {
  color: #2563eb;
}
.jobs__form-title {
  max-width: 480px;
  margin: 0 auto 1rem;
}
.jobs__form {
  max-width: 480px;
  margin: 0 auto;
}
.jobs__field {
  margin-bottom: 1rem;
}
.jobs__hint {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
  margin-top: 0.25rem;
}
.jobs__hint--warn {
  color: #d97706;
  font-weight: 500;
}
.jobs__section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.25rem;
}
.jobs__delete-form {
  display: inline;
}
.jobs__contracts {
  max-width: 480px;
  margin: 2rem auto 0;
}
.jobs__contract-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}
.jobs__contract-current {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 6px;
  padding: 0 0.5rem;
}
.jobs__contract-job {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
.jobs__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.jobs__readonly {
  font-weight: 500;
}
.jobs__schedule {
  border: 0;
  padding: 0;
  min-width: 0;
}
.jobs__schedule-legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.jobs__schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.jobs__schedule-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.25rem;
  align-items: center;
}
.jobs__schedule-row--head {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}
.jobs__schedule-day {
  margin: 0;
}
.jobs__schedule-input, .jobs__schedule-time, .jobs__schedule-break {
  text-align: center;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.jobs__schedule-input[readonly], .jobs__schedule-break:disabled {
  background-color: #f3f4f6;
  color: #6b7280;
}
.jobs__schedule-warning {
  grid-column: 1/-1;
  margin-top: 0;
}
.jobs__schedule-summary {
  font-weight: 500;
}

/**
 * _timer.scss
 * ----------------------------------------------------
 * ⏱️ Timer-Widget
 *
 * @package     public/assets/css/scss/pages
 */
.timer-widget {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.timer-widget__start-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.timer-widget__job-select {
  flex: 1 1 200px;
  min-width: 160px;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  background: #ffffff;
  color: #1f2937;
}
.timer-widget__job-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.timer-widget__running {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.timer-widget__job-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #6b7280;
}

.timer-widget__display {
  font-size: 1.875rem;
  font-weight: 700;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  color: #1f2937;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .timer-widget__display {
    font-size: 3rem;
  }
}

.timer-widget__stop-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.timer-widget__break-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.timer-widget__break-input {
  width: 60px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
}
.timer-widget__break-input:focus {
  outline: none;
  border-color: #2563eb;
}

.timer-widget__no-jobs {
  color: #6b7280;
  font-size: 0.875rem;
}
.timer-widget__no-jobs a {
  color: #2563eb;
  text-decoration: none;
}
.timer-widget__no-jobs a:hover {
  text-decoration: underline;
}

.timer-widget__edit {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timer-widget__edit-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.timer-widget__edit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.timer-widget__edit-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.timer-widget__edit-label--full {
  grid-column: 1/-1;
}

.timer-widget__edit-input {
  padding: 0.25rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  color: #1f2937;
  background: #ffffff;
}
.timer-widget__edit-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.timer-widget__edit-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.timer-widget__sync-banner {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d97706;
  border-radius: 6px;
  background: #fffbeb;
  font-size: 0.875rem;
  color: #d97706;
  text-align: left;
}

.timer-widget__sync-text {
  display: block;
  margin-bottom: 0.5rem;
}

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

/**
 * _times.scss
 * ----------------------------------------------------
 * 📋 Zeiten-Bereich (Arbeitszeiten + Ausfalltage)
 *
 * .times      Seitenblock: Monats-Filter, Eintrags-Tabelle, Eintrag-Formular,
 *             gemeinsame Formularfelder (auch im Ausfalltag-Formular)
 * .times-pdf  gespeicherter Stundenzettel (PDF) der Monatsansicht
 *
 * Ausfalltage + Dashboard-Widget: pages/_absences.scss
 * Sub-Navigation: components/_subnav.scss
 * (Bis 2026-11-17: .zeiten / .zeiten-pdf in _entries.scss)
 *
 * @package     public/assets/css/scss/pages
 */
.times__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.times__filter-select {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  color: #1f2937;
  cursor: pointer;
  flex: 1;
}
.times__filter-select[type=month] {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-image: none;
  padding-right: 0.5rem;
}
@media (hover: none) {
  .times__filter-select[type=month] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    padding-right: 1.5rem;
  }
}
.times__add-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.times__scan-group {
  display: flex;
  gap: 1rem;
}
@media (min-width: 768px) {
  .times__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
  }
  .times__toolbar .times__header,
  .times__toolbar .times__add-wrap {
    margin-bottom: 0;
  }
  .times__toolbar .times__header {
    gap: 0.5rem;
  }
  .times__toolbar .times__add-wrap {
    margin-left: auto;
  }
  .times__toolbar .times__filter-select {
    flex: 0 0 auto;
    width: auto;
    max-width: 240px;
  }
}
.times__table {
  width: 100%;
}
.times__table td {
  font-size: 0.875rem;
}
.times__table tbody tr:nth-child(even):not(:hover) td,
.times__table tbody tr.times__day-row:hover td {
  background: transparent;
}
.times__table td:first-child {
  border-left-color: #b8bec7;
  border-radius: 0;
}
.times__table td:last-child {
  border-right-color: #b8bec7;
  border-radius: 0;
}
.times__table tbody tr.times__day-row td:first-child {
  border-top-left-radius: 6px;
}
.times__table tbody tr.times__day-row td:last-child {
  border-top-right-radius: 6px;
}
.times__table tbody tr:has(+ .times__day-row) td:first-child,
.times__table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}
.times__table tbody tr:has(+ .times__day-row) td:last-child,
.times__table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}
.times__table tbody tr:has(+ .times__day-row) td {
  border-bottom: none;
}
.times__day-row td {
  font-weight: 600;
  color: #1f2937;
  padding-top: 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
}
.times__day-row + tr td {
  padding-top: 0.25rem;
}
.times__day-row .times__day-sum {
  font-weight: 700;
}
.times__day-sum-sign {
  color: #6b7280;
  font-weight: 400;
}
.times__day-diff {
  margin-left: 0.5rem;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0.75;
}
.times__day-diff .net-min {
  display: inline;
}
.times__day-diff--ok {
  color: #16a34a;
}
.times__day-diff--under {
  color: #dc2626;
}
.times__day--alt {
  background-color: rgb(236, 237.5, 240.5);
}
.times__day--sat td:first-child {
  border-left-color: #93c5fd;
}
.times__day--sat td:last-child {
  border-right-color: #93c5fd;
}
.times__day--sun td:first-child {
  border-left-color: #1d4ed8;
}
.times__day--sun td:last-child {
  border-right-color: #1d4ed8;
}
.times__row {
  cursor: pointer;
}
.times__row td:first-child {
  padding-left: 1.5rem;
}
.times__row .times__net {
  font-weight: 400;
}
.times__row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  position: relative;
  z-index: 1;
}
.times__row--holiday td, .times__row--absence td {
  color: #6b7280;
}
.times__row--holiday .times__net, .times__row--absence .times__net {
  font-weight: 400;
}
.times__row--holiday {
  cursor: default;
}
.times__row--holiday:hover {
  box-shadow: none;
}
.times__row-detail {
  display: block;
  font-size: 0.875rem;
  margin-top: 2px;
  white-space: nowrap;
}
.times__job-name {
  display: block;
  color: #6b7280;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.times__net {
  font-weight: 600;
  white-space: nowrap;
}
.times__table .times__net {
  text-align: right;
}
.times__overnight {
  font-size: 0.7em;
  color: #2563eb;
  font-weight: 600;
  vertical-align: super;
}
.times__time-range {
  display: block;
  color: #1f2937;
  white-space: nowrap;
}
.times__time {
  white-space: nowrap;
}
.times__break-inline {
  display: none;
  white-space: nowrap;
  color: #6b7280;
}
.times__actions {
  width: 1px;
  white-space: nowrap;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}
.times__delete-form {
  display: inline;
}
.times__summary, .times__prev-diff {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.times__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
.times__summary-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.5rem;
  margin-left: auto;
}
.times__summary-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.times__summary-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.times__summary-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}
.times__summary-value .net-min {
  display: inline;
}
.times__summary-value--secondary {
  font-size: 1rem;
  font-weight: 600;
}
.times__summary-note {
  font-size: 0.875rem;
  color: #6b7280;
  white-space: nowrap;
}
.times__summary-note .net-min {
  display: inline;
}
.times__estimate {
  color: #6b7280;
  font-weight: 400;
  margin-left: 0.25rem;
}
.times__estimate .net-min {
  display: inline;
}
.times__estimate--only {
  margin-left: 0;
}
@media (max-width: 767px) {
  .times__estimate:not(.times__estimate--only) {
    display: block;
    margin-left: 0;
  }
}
.times__prev-diff {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
}
.times__prev-diff-calc {
  flex: 1 1 240px;
  max-width: 320px;
  margin: 0;
  font-size: 0.875rem;
  color: #1f2937;
}
@media (max-width: 767px) {
  .times__prev-diff-calc {
    max-width: none;
  }
}
.times__prev-diff-calc dt, .times__prev-diff-calc dd {
  margin: 0;
}
.times__prev-diff-calc dd {
  white-space: nowrap;
}
.times__prev-diff-calc dd .net-min {
  display: inline;
}
.times__prev-diff-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2px 0;
}
.times__prev-diff-row--total {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid #d1d5db;
  font-weight: 700;
}
.times__estimate-hints {
  max-width: 480px;
  margin: 1.5rem auto 0;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.times__estimate-hints h2 {
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.times__estimate-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
}
.times__estimate-hint + .times__estimate-hint {
  border-top: 1px solid #e5e7eb;
}
.times__estimate-hint:last-child {
  padding-bottom: 0;
}
.times__estimate-hint-net {
  margin-left: auto;
  color: #6b7280;
}
.times__estimate-hint-net .net-min {
  display: inline;
}
.times__estimate-hint-actions {
  display: flex;
  flex-shrink: 0;
}
.times__empty {
  color: #6b7280;
  margin-top: 1rem;
}
.times__form {
  max-width: 480px;
  margin: 0 auto;
}
.times__field {
  margin-bottom: 1rem;
}
.times__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #1f2937;
}
.times__field input,
.times__field select {
  width: 100%;
}
@media (min-width: 768px) {
  .times__field--narrow {
    max-width: 185px;
  }
}
.times__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 767px) {
  .times__header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .times__filter-select {
    width: 100%;
  }
  .times__add-wrap {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .times__add-wrap > .btn {
    flex: 1 1 0;
    text-align: center;
    white-space: nowrap;
  }
  .times__scan-group {
    flex: 1 1 100%;
    gap: 0.5rem;
  }
  .times__scan-group .btn {
    flex: 1 1 0;
    text-align: center;
    white-space: nowrap;
  }
  .times__table th, .times__table td {
    padding: 0.25rem 0.5rem;
  }
  .times__day-row td {
    padding-top: 0.5rem;
    padding-bottom: 0;
  }
  .times__row td:first-child {
    padding-left: 1rem;
  }
  .times__break {
    display: none;
  }
  .times__break-inline {
    display: inline;
  }
  .times__time-range, .times__row-detail, .times__summary-note {
    white-space: normal;
  }
  .times__job-name {
    max-width: 80px;
  }
  .times__field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.times-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.times-pdf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .times-pdf {
    justify-content: space-between;
  }
}
.times-pdf:has(+ .times-pdf) {
  margin-bottom: 0;
}
.times-pdf + .times-pdf {
  margin-top: 0.5rem;
}
.times-pdf__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
.times-pdf__kind {
  font-weight: 700;
}
.times-pdf__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.times-pdf__delete-form {
  display: inline;
}

/**
 * _absences.scss
 * ----------------------------------------------------
 * 📅 Ausfalltage (Urlaub, Krank, Feiertag …)
 *
 * .absences wird an zwei Stellen genutzt:
 *   - Ausfalltage-Seite (times/absence.php): Filter, Urlaubs-Badge, Liste
 *     („+ Ausfall“ über .times__add-wrap, pages/_times.scss)
 *   - Dashboard (dashboard.php): Abwesenheits-Widget (__widget, __badge,
 *     __other-row)
 * Das Buchungsformular ist eine eigene Seite (times/absence-form.php,
 * .times__form/.times__field); bis 2026-11-20 aufklappbar über der Liste
 * (__form-wrap, __form-title, __field-row, entfernt).
 * (Bis 2026-11-17: .urlaub in _entries.scss)
 *
 * @package     public/assets/css/scss/pages
 */
.absences__filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.absences__filter select {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  color: #1f2937;
  cursor: pointer;
  flex: 1;
}
@media (max-width: 767px) {
  .absences__filter {
    flex-wrap: wrap;
  }
  .absences__filter .absences__filter-type {
    flex-basis: 100%;
  }
}
.absences__widget {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.absences__badge {
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.15s, filter 0.15s;
}
.absences__badge:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  filter: brightness(0.96);
  text-decoration: none;
}
.absences__badge--ok {
  border-color: #16a34a;
  color: #16a34a;
  background: #f0fdf4;
}
.absences__badge--warn {
  border-color: #d97706;
  color: #d97706;
  background: #fffbeb;
}
.absences__badge--danger {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}
.absences__badge-hint {
  flex-basis: 100%;
  font-weight: 400;
}
.absences__badge-title {
  font-weight: 700;
}
.absences__other-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #fde68a;
  background: #fefce8;
  color: #1f2937;
  text-decoration: none;
  transition: box-shadow 0.15s, filter 0.15s;
}
.absences__other-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  filter: brightness(0.96);
  text-decoration: none;
}
.absences__table {
  margin-bottom: 1rem;
}
.absences__table td {
  font-size: 0.875rem;
}
.absences__row {
  cursor: pointer;
}
.absences__row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  position: relative;
  z-index: 1;
}
.absences__row--holiday {
  cursor: default;
}
.absences__row--holiday:hover {
  box-shadow: none;
}
.absences__row--holiday td {
  background-color: #f3f4f6;
  color: #6b7280;
}
.absences__date-short {
  display: none;
}
.absences__holiday-tag {
  margin-left: 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.absences__hours-note {
  display: block;
  font-size: 0.875rem;
}
.absences__notice {
  max-width: 640px;
  margin: 0 auto 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d97706;
  border-radius: 8px;
  background: #fffbeb;
  font-size: 0.875rem;
  color: #1f2937;
}
.absences__notice a {
  font-weight: 500;
  white-space: nowrap;
}
.absences__job {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
.absences__actions {
  width: 1px;
  white-space: nowrap;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}
.absences__empty {
  color: #6b7280;
  margin-top: 1rem;
}
@media (max-width: 767px) {
  .absences__table th, .absences__table td {
    padding: 0.25rem 0.5rem;
  }
  .absences__table td {
    hyphens: auto;
  }
  .absences__date-long {
    display: none;
  }
  .absences__date-short {
    display: inline;
  }
  .absences__holiday-tag {
    display: block;
    margin-left: 0;
    white-space: nowrap;
    hyphens: none;
  }
}

/**
 * _balances.scss
 * ----------------------------------------------------
 * ⚖️ Seite „Urlaub & Überstunden“ (times/balances.php): Urlaubskonto, Überstundenkonto
 *    (Korrekturen-Liste nutzt .absences__table/.absences__row aus _absences.scss)
 *
 * Filter und Badge kommen aus _absences.scss (.absences__filter,
 * .absences__badge), Formularfelder aus _times.scss (.times__field).
 *
 * @package     public/assets/css/scss/pages
 */
.balances__card {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.balances__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.balances__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.balances__title-row .balances__title {
  margin-bottom: 0;
}
.balances__balance--ok {
  color: #16a34a !important;
}
.balances__balance--under {
  color: #dc2626 !important;
}
.balances__list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  margin: 1rem 0;
}
.balances__list dt {
  color: #6b7280;
}
.balances__list dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.balances__total {
  font-weight: 600;
  color: #1f2937 !important;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.25rem;
}
.balances__source {
  font-size: 0.875rem;
  color: #6b7280;
}
.balances__intro {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
.balances__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 767px) {
  .balances__field-row {
    grid-template-columns: 1fr;
  }
}

/**
 * _warnings.scss
 * ----------------------------------------------------
 * ⚠️ Warnungen & Grenzwert-Anzeigen
 *
 * Minijob/Midijob-Grenzwarnungen; Festanstellung Soll/Ist als Baustein
 * components/_soll-ist.scss in derselben .warning-card.
 *
 * @package     public/assets/css/scss/pages
 */
.warning-card {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #e5e7eb;
  background: #ffffff;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.warning-card--ok {
  border-left-color: #16a34a;
}
.warning-card--warn {
  border-left-color: #d97706;
  background: #fffbeb;
}
.warning-card--danger {
  border-left-color: #dc2626;
  background: #fef2f2;
}
.warning-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.warning-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.warning-card__header .warning-card__title {
  margin-bottom: 0;
}
.warning-card__details {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.warning-card__amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}
.warning-card__limit {
  font-size: 0.875rem;
  color: #6b7280;
}
.warning-card__pct {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  margin-left: auto;
}
.warning-card__hours {
  margin-top: 1rem;
}
.warning-card__earnings {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
.warning-card__rolling {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.warning-card__tag {
  display: inline-block;
  padding: 2px 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 0.5rem;
}
.warning-card__tag--warn {
  background: #fef3c7;
  color: #d97706;
}
.warning-card__tag--danger {
  background: #fef2f2;
  color: #dc2626;
}
.warning-card__message {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.warning-card--warn .warning-card__message {
  color: #d97706;
}
.warning-card--danger .warning-card__message {
  color: #dc2626;
}

.warning-progress {
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  margin-top: 0.5rem;
  overflow: hidden;
}
.warning-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  transition: width 0.3s ease;
}
.warning-card--warn .warning-progress__bar {
  background: #d97706;
}
.warning-card--danger .warning-progress__bar {
  background: #dc2626;
}

/**
 * _settings.scss
 * ----------------------------------------------------
 * ⚙️ Einstellungen: Übersicht (settings/index.php) und die Formularseiten
 *    Name/Passwort (settings/name-form.php, settings/password-form.php, Fokus-Modus)
 *
 * __row/__value: Anzeige in der Übersicht, Wert links, Button „Ändern“ rechts
 *
 * @package     public/assets/css/scss/pages
 */
.settings {
  max-width: 480px;
  margin: 0 auto;
}
.settings__section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}
.settings__section:first-of-type {
  margin-top: 1.5rem;
  border-top: none;
  padding-top: 0;
}
.settings__section-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 1rem;
}
.settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.settings__value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  color: #1f2937;
}
.settings__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.settings__link {
  font-size: 1rem;
  color: #2563eb;
  text-decoration: none;
}
.settings__link:hover {
  text-decoration: underline;
}
.settings__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.settings__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.settings__field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}
.settings__field input {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  background: #ffffff;
  color: #1f2937;
}
.settings__field input:focus {
  outline: none;
  border-color: #2563eb;
}

/**
 * _scanner.scss
 * ----------------------------------------------------
 * 📷 Dokumentenscanner (Stundenzettel fotografieren)
 *
 * Vollbild-UI, kein App-Layout.
 * 3 Zustände: capture | correct | preview
 *
 * @package     public/assets/css/scss/pages
 */
.scanner {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
}
.scanner--overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  min-height: unset;
  height: 100dvh;
}

.scanner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.scanner__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 1.25rem;
  color: #1f2937;
  cursor: pointer;
  text-decoration: none;
  border-radius: 6px;
  flex-shrink: 0;
}
.scanner__back:hover {
  background: #f3f4f6;
}

.scanner__title {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scanner__page-count {
  font-size: 0.875rem;
  color: #6b7280;
  min-width: 36px;
  text-align: right;
}

.scanner__section {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.scanner__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}
.scanner__stage--capture {
  gap: 1.5rem;
}
.scanner__stage--correct {
  padding: 1rem;
  overflow: hidden;
}
.scanner__stage--preview {
  justify-content: flex-start;
  padding-top: 1rem;
}

.scanner__hint {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

.scanner__capture-btn {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.scanner__canvas-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: calc(100dvh - 200px);
  overflow: hidden;
}
.scanner__canvas-wrap canvas:not(.scanner__loupe) {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 200px);
  -o-object-fit: contain;
     object-fit: contain;
}

.scanner__loupe {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 10;
}

.scanner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: all;
  touch-action: none;
}

.scanner__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  width: 100%;
  justify-content: center;
}

.scanner__page-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.scanner__page-thumb {
  width: 120px;
  height: 170px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.scanner__page-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.scanner__page-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.scanner__footer {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
}
.scanner__footer--preview {
  gap: 1rem;
  flex-wrap: wrap;
}

.scanner-error {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgb(241.25, 169.75, 169.75);
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 200;
  white-space: nowrap;
}