/*
  Medewerker-PWA (Medewerker.dc.html, 390×844, scan-first) — gedeelde stijlen voor
  EmployeeLayout.razor + alle Components/Pages/Employee/*.razor-pagina's (incl. de publieke
  gast-scanpagina, GastScan.razor). Bewust een los, globaal bestand i.p.v. verspreid over
  losse .razor.css-bestanden: de knop-/kaart-/pill-maten hier zijn structureel groter
  (44px-tapdoelen, CLAUDE.md §16.4) dan de desktop-admin-varianten in tokens.css (.btn/.card
  daar zijn getuned voor de compacte werkplek) en horen dus niet in tokens.css zelf, maar
  worden wel door meerdere pagina's gedeeld. Geen offline-ondersteuning (geen service worker/
  scanbuffer) — de medewerker-app vereist gewoon een actieve verbinding.
*/

.emp-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.emp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  /* #262d34 is dezelfde hex als de gedocumenteerde admin-sidebar-achtergrond
     (AdminLayout.razor.css: "AAA 1.4.6: #aeb6be haalde 6,8:1 op #262d34 — opgelicht naar
     7,6:1") — wit op deze achtergrond haalt ≈15,8:1, ruim boven de AAA-eis. Bewust hardcoded
     i.p.v. een token (deze chrome is altijd donker, ongeacht het licht/donker-thema). */
  background: #262d34;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.emp-header-brand {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
}

.emp-header-who {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .5px;
  color: #cfd5db;
  min-width: 0;
}

/* Truncatie bij een lange gebruikersnaam + keurmeester-badge op smalle schermen
   (audit-bevinding 2026-07-20, patroon .geb-summary/.cat-summary) — .emp-header-who
   zelf is nu shrinkbaar (min-width:0), deze span kapt de tekst zelf netjes af i.p.v.
   de sticky header te laten overlopen/horizontaal scrollen. */
.emp-header-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.emp-header-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

/* Uitloggen-menu — het admin-equivalent (AdminUserMenu.razor.css) is component-scoped en
   lekt niet naar deze globale employee-chrome (bekende les, CLAUDE.md-logboek), dus hier
   een eigen, globale set met dezelfde klassenamen als in EmployeeLayout.razor gebruikt. */
.admin-user-menu-wrap {
  position: relative;
  display: inline-flex;
}

.admin-user-menu.emp-user-menu {
  position: absolute;
  top: 34px;
  right: 0;
  width: 180px;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(24, 28, 32, .28);
  z-index: 45;
  color: var(--ink);
}

.admin-user-menu-footer {
  padding: 10px;
}

.admin-logout-btn {
  width: 100%;
  justify-content: center;
}

.emp-main {
  flex: 1;
  padding: 16px 16px 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.emp-main h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.emp-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.emp-title-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--mut);
}

/* ---- Bottom-nav + FAB ---- */

.emp-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 64px;
  background: var(--card);
  border-top: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 20;
}

.emp-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mut);
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.emp-nav-item-active {
  color: var(--accent-ink);
}

.emp-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  margin-top: -28px;
  box-shadow: var(--shadow-overlay);
  border: 3px solid var(--card);
}

/* ---- Installatiebanner ---- */

.emp-install-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 80px;
  width: calc(100% - 32px);
  max-width: 448px;
  background: #262d34; /* contrastcheck: zie .emp-header hierboven */
  color: #fff;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 21;
}

.emp-install-title {
  font-weight: 700;
  font-size: 13px;
}

.emp-install-sub {
  font-size: 11.5px;
  color: #cfd5db;
}

.emp-install-btn {
  flex: none;
}

.emp-install-close {
  flex: none;
  color: #cfd5db;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Kaarten (Geleend / Item-detail) ---- */

.emp-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
}

.emp-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex: none;
  background: linear-gradient(135deg, var(--bd2) 25%, var(--bd) 25%, var(--bd) 50%, var(--bd2) 50%, var(--bd2) 75%, var(--bd) 75%);
  background-size: 10px 10px;
}

.emp-card-body {
  flex: 1;
  min-width: 0;
}

.emp-card-name {
  font-weight: 700;
  font-size: 14px;
}

.emp-card-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--mut);
}

.emp-card-meta {
  font-size: 12px;
  color: var(--ink2);
  margin-top: 4px;
}

.emp-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* .emp-card als klikbare <button> (Producten.razor) i.p.v. informatieve <div> (Geleend.razor)
   — reset alleen de browser-standaard knop-chrome, .emp-card's eigen achtergrond/rand/padding
   blijven gewoon gelden (CSS-class-regels komen ná user-agent-defaults). */
.emp-card-button {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
}

.emp-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--mut);
  font-size: 13px;
}

.emp-cta-dashed {
  border: 2px dashed var(--bd3);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Mobiele knoppen (44px-tapdoel, groter dan de desktop .btn-primary/.btn-secondary) ---- */

.emp-btn-primary,
.emp-btn-secondary {
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 11px;
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

.emp-btn-primary {
  background: var(--accent);
  color: #fff;
}

.emp-btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.emp-btn-secondary {
  background: var(--card);
  color: var(--ink);
  /* --bd-input i.p.v. --bd3 (audit-bevinding 2026-07-20, patroon tokens.css .btn-secondary):
     --bd3 haalt maar ~1,45:1 contrast tegen --card, onder de WCAG 1.4.11-eis van 3:1. */
  border: 1.5px solid var(--bd-input, var(--bd3));
}

.emp-btn-secondary:hover:not(:disabled) {
  border-color: var(--bd-h);
}

.emp-btn-primary:disabled,
.emp-btn-secondary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.emp-btn-dark {
  background: #262d34; /* contrastcheck: zie .emp-header hierboven */
  color: #fff;
}

/* ---- Scanner ---- */

.emp-scanner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #242b32; /* geen tekst op deze achtergrond (camerabeeld) — geen contrastcheck nodig */
  aspect-ratio: 3 / 4;
}

.emp-scanner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emp-scanner-frame {
  position: absolute;
  inset: 15%;
  border: 3px solid #fff;
  border-radius: 12px;
  pointer-events: none;
}

.emp-scanner-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.emp-scanner-controls button {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
}

/* ---- Chips (project-keuze) ---- */

.emp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emp-chip {
  /* --bd-input i.p.v. --bd3 (audit-bevinding 2026-07-20): niet-geselecteerde staat is anders
     onder de WCAG 1.4.11-eis van 3:1 (zie .emp-btn-secondary/tokens.css .btn-secondary). */
  border: 1.5px solid var(--bd-input, var(--bd3));
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 44px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.emp-chip[aria-pressed="true"] {
  background: var(--pink-badge-bg);
  border-color: var(--accent);
  color: var(--pink-badge-ink);
}

/* ---- Confirmatie ---- */

.emp-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 40px 12px;
}

/* Een class-selector met dezelfde specificiteit als het UA-stylesheet's [hidden] { display:
   none } wint normaliter van die browser-default (auteur-CSS komt later in de cascade) —
   zonder deze regel bleef #gast-done zichtbaar ondanks het hidden-attribuut (bevinding
   live-verificatie 2026-07-20, gastscan-bevestigingsscherm stond meteen open). */
.emp-confirm[hidden] {
  display: none;
}

.emp-confirm-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--tgreen2);
  color: var(--tgreen3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.emp-confirm-title {
  font-size: 17px;
  font-weight: 700;
}

.emp-confirm-text {
  font-size: 13.5px;
  color: var(--ink2);
}

/* ---- Schade-melden ---- */

.emp-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emp-photo-thumb {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--bd);
}

.emp-photo-add {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  border: 2px dashed var(--bd3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mut);
  font-size: 22px;
  cursor: pointer;
  position: relative;
}

.emp-photo-add input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ---- FAQ-accordion ---- */

.emp-faq-item {
  border: 1px solid var(--bd);
  border-radius: 12px;
  overflow: hidden;
}

.emp-faq-q {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: none;
  padding: 14px;
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  min-height: 44px;
}

.emp-faq-a {
  padding: 0 14px 14px;
  font-size: 13px;
  color: var(--ink2);
}

/* ---- Keurmeester-wachtrij ---- */

.emp-keur-scope {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--mut);
}

.emp-keur-warning {
  background: var(--pink-badge-bg);
  color: var(--pink-badge-ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
}

.emp-keur-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 481px) {
  .emp-bottom-nav,
  .emp-install-banner {
    left: 50%;
  }
}

/* ---- Gast-scanpagina (GastScan.razor, statisch/publiek, geen bottom-nav/FAB-chrome) ---- */

.emp-gast-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.emp-gast-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.emp-gast-lang-row {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 10px;
}

.emp-gast-lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Vlag-chip: vaste 18x13-verhouding (3:2), afgeronde hoeken, over het <select> gelegd —
   employee.css is een globaal (niet component-scoped) stijlblad, dus geen ::deep nodig. */
.emp-gast-lang-flag {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 13px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--bd3, var(--bd));
  pointer-events: none;
  z-index: 1;
}

.emp-gast-lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.emp-gast-lang-select {
  width: auto;
  min-width: 120px;
  height: var(--control-height);
  min-height: var(--control-height);
  font-size: 13px;
  padding-left: 36px;
}

.emp-gast-url {
  margin-left: auto;
  font-size: 11px;
  color: var(--mut);
}

.emp-gast-hint {
  font-size: 12px;
  color: var(--mut);
  margin: 0;
}

.emp-gast-error {
  color: var(--tamber3);
  font-size: 12.5px;
  margin: 0;
}

.emp-gast-footer {
  text-align: center;
  font-size: 10px;
  color: var(--mut);
}

.emp-gast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.emp-gast-table th,
.emp-gast-table td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--bd2);
  font-weight: 400;
  color: var(--ink2);
}

.emp-gast-table th {
  color: var(--mut);
  font-weight: 600;
  width: 45%;
}
