/* ===== TERMINPLANER — Encass Design System ===== */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* === TOKENS === */
:root {
  --nav:        #e0e3e6;
  --blue:       #143256;
  --blue-dark:  #0f2540;
  --blue-mid:   #1b4a7a;
  --blue-lt:    #e8f0f8;
  --orange:     #e68f11;
  --text:       #143256;
  --muted:      #6b7280;
  --border:     #e2e8f0;
  --bg:         #f5f7fa;
  --white:      #ffffff;
  --error:      #dc2626;

  /* Functional status */
  --booked:   #dc2626;
  --free:     #16a34a;
  --partial:  #d97706;
  --live:     #9333ea;

  --radius: 12px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 36px rgba(0,72,153,.14);
}

/* === BASE === */
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === HEADER / NAV === */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  height: 56px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue);
  justify-self: start;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}
.header-logo:hover { text-decoration: none; opacity: .85; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: center;
}
.main-nav-link {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: background .15s;
}
.main-nav-link:hover { background: rgba(0,0,0,.08); text-decoration: none; color: var(--blue); }
.main-nav-link.active {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

/* User avatar right */
.user-avatar-wrap {
  position: relative;
  justify-self: end;
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .5px;
  transition: background .15s, transform .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.user-avatar:hover { background: var(--blue-mid); transform: scale(1.05); }

.avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 300;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.avatar-dropdown.open { display: flex; }
.avatar-dropdown-name { font-weight: 700; font-size: 14px; padding: 6px 10px 2px; color: var(--text); }
.avatar-dropdown-role { font-size: 12px; color: var(--muted); padding: 0 10px 6px; }
.avatar-hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.avatar-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background .12s;
}
.avatar-menu-item:hover { background: var(--blue-lt); text-decoration: none; }
.avatar-menu-item.active { color: var(--blue); font-weight: 600; background: var(--blue-lt); }
.avatar-logout { color: var(--error); }
.avatar-logout:hover { background: rgba(220,38,38,.07); color: #991b1b; }

/* === FOOTER === */
.app-footer {
  margin-top: auto;
}
.footer-main {
  background: var(--nav);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { font-weight: 800; font-size: 1rem; color: var(--blue); letter-spacing: -.02em; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--blue); text-decoration: none; }
.footer-copy {
  background: var(--blue-dark);
  padding: 10px 24px;
  text-align: center;
  font-size: 12px;
  color: #8b9ab0;
}

/* === DATE BAR (Termine) === */
.date-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.date-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-input {
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.date-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,50,86,.08); }
.btn-icon {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--blue);
  transition: background .15s, border-color .15s;
}
.btn-icon:hover { background: var(--blue-lt); border-color: var(--blue); }
.weekday-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  min-width: 26px;
  text-align: center;
}

/* === MAIN CONTENT === */
.app-main { flex: 1; padding: 24px 24px 60px; max-width: 1200px; width: 100%; margin: 0 auto; }

/* === CARDS === */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
/* Legacy glass class → clean card */
.glass {
  background: var(--white);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}

/* === SECTION HEADER === */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 10px;
}
.section-header h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.section-header::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}
.section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-booked  { background: var(--booked); }
.dot-partial { background: var(--partial); }
.dot-free    { background: var(--free); }

/* === KOLLEGE GRID === */
.kollegen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

/* === KOLLEGE CARD === */
.kollege-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .15s;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}
.card-header:hover { background: var(--blue-lt); }
.card-name-row { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.card-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-badges { display: flex; gap: 5px; flex-shrink: 0; }
.card-toggle { color: var(--muted); font-size: 11px; flex-shrink: 0; transition: transform .15s; }
.card-toggle.open { transform: rotate(180deg); }

/* === SLOT TABS === */
.card-body { border-top: 1px solid var(--border); }
.slot-tabs { display: flex; border-bottom: 1px solid var(--border); }
.slot-tab {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: color .12s, border-color .12s, background .12s;
}
.slot-tab:hover { color: var(--blue); background: var(--blue-lt); }
.slot-tab.active { color: var(--blue); font-weight: 700; border-bottom-color: var(--blue); }

.slot-panel { display: none; padding: 12px 14px; }
.slot-panel.active { display: block; }

/* === BOOKING ITEMS === */
.booking-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.booking-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 12px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.booking-info { flex: 1; font-size: 13px; }
.booking-nr   { font-weight: 700; color: var(--blue); font-size: 12px; margin-bottom: 2px; }
.booking-mieter  { color: var(--text); }
.booking-strasse { color: var(--muted); font-size: 12px; }
.booking-desc    { color: var(--muted); font-size: 12px; }
.booking-source  { font-size: 11px; color: var(--muted); margin-top: 4px; }
.booking-source.manual { color: var(--blue-mid); }

.booking-item.has-auftrag { border-left: 3px solid var(--blue); }
.booking-auftrag-label { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 3px; }
.booking-notiz { font-size: 12px; color: var(--orange); font-style: italic; margin-top: 2px; }
.booking-meta-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.booking-status-badge { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.bs-offen       { background: rgba(20,50,86,.1);    color: var(--blue); }
.bs-eingeplant  { background: rgba(230,143,17,.13); color: #92400e; }
.bs-teil_fertig { background: rgba(124,58,237,.1);  color: #7c3aed; }
.bs-erledigt    { background: rgba(22,163,74,.1);   color: #15803d; }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.badge-booked { background: rgba(220,38,38,.1); color: var(--booked); }
.badge-free   { background: rgba(22,163,74,.1);  color: var(--free);   }
.badge-offen  { background: #fef3c7; color: #92400e; }

.booking-item.offen-booking { border-left-color: #f59e0b; background: #fffbeb; }
.booking-item.teilfertig-booking { border-left-color: #7c3aed; background: rgba(124,58,237,0.05); }
.booking-info.ad-clickable { cursor: pointer; }
.booking-info.ad-clickable:hover { opacity: .82; }
.slot-add-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 18px; font-size: 22px; font-weight: 300;
  color: var(--muted); border: 2px dashed var(--border);
  border-radius: 8px; background: none; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  margin-top: 4px;
}
.slot-add-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }

/* === AUFTRAG EDIT MODAL (shared) === */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.history-timeline { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.history-entry { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; }
.history-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 4px; }
.history-dot.angelegt          { background: var(--blue); }
.history-dot.geaendert         { background: var(--muted); }
.history-dot.status_geaendert  { background: var(--orange); }
.history-dot.termin_gebucht    { background: #16a34a; }
.history-dot.termin_geloescht  { background: var(--error); }
.history-dot.notiz             { background: #7c3aed; }
.history-body  { flex: 1; }
.history-meta  { color: var(--muted); font-size: 11px; }
.history-detail { color: var(--text); margin-top: 1px; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .15s, transform .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  padding: 10px 22px;
  box-shadow: 0 4px 16px rgba(230,143,17,.3);
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  padding: 8px 18px;
}
.btn-secondary:hover { background: var(--blue-mid); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  padding: 8px 18px;
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--blue-lt); border-color: var(--blue); }

.btn-danger {
  background: rgba(220,38,38,.1);
  color: var(--error);
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid rgba(220,38,38,.2);
}
.btn-danger:hover { background: rgba(220,38,38,.18); }

.btn-sm { font-size: 13px; padding: 6px 12px; }
.btn-full { width: 100%; }

/* === FORMS === */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text); }

input[type=text], input[type=email], input[type=password],
input[type=date], input[type=number], input[type=search], input[type=tel],
textarea, select {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20,50,86,.08);
}

/* === ALERTS === */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.alert-error   { background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.2); }
.alert-success { background: rgba(22,163,74,.08);  color: #15803d; border: 1px solid rgba(22,163,74,.2);  }

/* === SEARCH BAR === */
.search-bar {
  position: relative;
  margin-bottom: 20px;
}
.search-bar input {
  padding: 11px 16px;
  font-size: 14px;
  border-radius: 10px;
}
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
}
.search-result-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--blue-lt); }
.sr-date { font-size: 11px; color: var(--muted); margin-top: 2px; }
.hidden { display: none !important; }

/* === LOGIN === */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
}
.login-card {
  width: 100%;
  max-width: 380px;
  padding: 36px 32px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-logo { font-size: 2rem; text-align: center; margin-bottom: 8px; }
.login-card h1 { font-size: 1.5rem; font-weight: 800; text-align: center; color: var(--blue); margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 24px; }

/* === SECTION CARD === */
.section-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 16px;
}

/* === ABSENCE CHIP === */
.absence-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}
.absence-chip.absence-urlaub    { background: var(--blue-lt); color: var(--blue); }
.absence-chip.absence-krank     { background: rgba(220,38,38,.1); color: var(--error); }
.absence-chip.absence-sonstiges { background: rgba(217,119,6,.1); color: #92400e; }

/* === AUFTRAG SEARCHABLE DROPDOWN === */
.auftrag-search-wrap { position: relative; }
.auftrag-search-wrap input[type="text"] { width: 100%; padding-right: 32px; }
.auftrag-clear-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
}
.auftrag-clear-btn:hover { background: rgba(220,38,38,.08); color: var(--error); }

.auftrag-dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 600;
  list-style: none;
  padding: 4px;
  margin: 0;
}
.auftrag-dropdown-list li {
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: background .1s;
}
.auftrag-dropdown-list li:hover,
.auftrag-dropdown-list li.focused  { background: var(--blue-lt); }
.auftrag-dropdown-list li.selected { background: var(--blue-lt); font-weight: 600; }
.auftrag-dropdown-list .adl-nr    { font-weight: 700; color: var(--blue); font-size: 12px; }
.auftrag-dropdown-list .adl-sub   { color: var(--muted); font-size: 11px; margin-top: 1px; }
.auftrag-dropdown-list .adl-empty { padding: 12px 10px; color: var(--muted); font-size: 13px; cursor: default; }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,37,64,.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
}
.modal-header h2 { font-size: 1rem; font-weight: 700; }
.modal-close {
  background: none;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  font-family: inherit;
}
.modal-close:hover { background: rgba(220,38,38,.08); color: var(--error); border-color: rgba(220,38,38,.3); }
.modal-body { overflow-y: auto; padding: 16px 20px; flex: 1; }
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
}
.modal-date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.modal-date-nav .date-input { width: 150px; }
.modal-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--blue-lt);
  border: 1px solid rgba(20,50,86,.15);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}
.modal-auftrag-info {
  background: var(--blue-lt);
  border: 1px solid rgba(20,50,86,.12);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}
.modal-auftrag-info.hidden { display: none; }
.modal-auftrag-info .ai-nr  { font-weight: 700; color: var(--blue); }
.modal-auftrag-info .ai-row { color: var(--muted); margin-top: 3px; }
.modal-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 16px 0 8px;
}

/* Kollegen list in modal */
.modal-kollegen-list { display: flex; flex-direction: column; gap: 6px; }
.modal-kollege-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  transition: border-color .12s;
}
.modal-kollege-row.fully-booked { opacity: .4; }
.modal-kollege-row.recommended  { border-color: rgba(22,163,74,.4); background: rgba(22,163,74,.05); }
.modal-kollege-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-kollege-name { flex: 1; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-prox-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 99px; white-space: nowrap; flex-shrink: 0; font-weight: 700;
}
.modal-prox-badge.closest { background: rgba(22,163,74,.12); color: #15803d; border: 1px solid rgba(22,163,74,.25); }
.modal-prox-badge.near    { background: var(--blue-lt);      color: var(--blue); border: 1px solid rgba(20,50,86,.15); }
.modal-prox-badge.far     { background: var(--bg);           color: var(--muted); border: 1px solid var(--border); }
.modal-prox-badge.nojob   { background: var(--bg);           color: var(--muted); border: 1px solid var(--border); }
.modal-slot-btns { display: flex; gap: 6px; flex-shrink: 0; }
.slot-pick-btn {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
  font-family: inherit;
}
.slot-pick-btn:disabled { opacity: .3; cursor: not-allowed; }
.slot-pick-btn:not(:disabled):hover { background: var(--blue-lt); border-color: var(--blue); color: var(--blue); }
.slot-pick-btn.selected { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* === EMPTY STATE === */
.empty-state {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .header-inner { padding: 0 14px; }
  .header-logo span:not(.header-icon) { display: none; }
  .app-main { padding: 14px 12px 60px; }
  .date-bar-inner { gap: 6px; padding: 8px 12px; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* === PRINT === */
@media print {
  .app-header, .app-footer, .search-bar, .btn, button, .date-bar { display: none !important; }
}
