
:root {
  --bg: #f3f7fb;
  --bg-2: #edf4fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --border: #d8e4f0;
  --text: #19324b;
  --muted: #6c7b8f;
  --primary: #1e78d7;
  --primary-dark: #145fb1;
  --secondary: #35b6c8;
  --green: #67c587;
  --orange: #ff9c63;
  --purple: #8f69ff;
  --danger: #e65656;
  --shadow: 0 14px 34px rgba(20, 66, 111, .10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f6fbff 0%, var(--bg) 100%);
}
a { color: inherit; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 300px; padding: 22px 18px; background: linear-gradient(180deg, #0d3058 0%, #144979 55%, #15629c 100%);
  color: #fff; position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow: hidden;
}
.sidebar-scroll { height: 100%; overflow: auto; padding-right: 6px; }
.brand-block { display: grid; gap: 12px; margin-bottom: 18px; }
.brand-copy h2 { margin: 0; font-size: 28px; }
.brand-copy p { margin: 0; color: rgba(255,255,255,.72); }
.brand-art.selected-logo { width: 110px; background: #fff; border-radius: 24px; padding: 10px; box-shadow: 0 14px 28px rgba(0,0,0,.18); }
.main-nav { display: grid; gap: 10px; margin-top: 14px; }
.main-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-decoration: none;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.08); color: #fff; font-weight: 600;
}
.main-nav a:hover { background: rgba(255,255,255,.18); }
.nav-pill { margin-left: auto; }
.flat-panel { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; }
.hotel-switcher { padding: 14px; }
.hotel-switcher label, .hotel-switcher .muted { color: rgba(255,255,255,.78); }
.hotel-switcher select {
  width: 100%; margin-top: 8px; background: rgba(255,255,255,.96); border: 0; padding: 11px 12px; border-radius: 12px;
}
.content { flex: 1; padding: 26px 28px 96px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 20px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px); box-shadow: var(--shadow); border-radius: var(--radius-xl);
}
.topbar-title { font-weight: 800; font-size: 20px; }
.topbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mobile-topbar, .mobile-bottom-nav, .mobile-backdrop { display: none; }
.cards, .schedule-stats { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.schedule-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.card, .panel, .stat-card {
  background: var(--surface); border-radius: var(--radius-xl); padding: 18px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.9);
}
.glass-panel { background: rgba(255,255,255,.88); backdrop-filter: blur(8px); }
.page-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.flat-page-header h1 { margin: 0 0 8px; font-size: 34px; }
.flat-page-header p { margin: 0; }
.badge-soft, .pill {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700;
}
.badge-soft { background: linear-gradient(135deg, #dff4ff 0%, #eaf8ee 100%); color: #155f93; padding: 11px 16px; }
.pill { background: #e8f2ff; color: var(--primary-dark); font-size: 12px; padding: 6px 10px; }
.brand-version { background: rgba(255,255,255,.16); color: #fff; }
.pill-blue { background: #d7ecff; color: #0f5aa0; }
.small-text { font-size: 12px; }
.muted { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.schedule-grid { grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr); align-items: start; }
.dashboard-grid { align-items: start; }
input, select, button, textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; background: #fff; color: var(--text);
}
button, .btn {
  width: auto; border: none; cursor: pointer; padding: 11px 16px; border-radius: 12px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
button:hover, .btn:hover { filter: brightness(0.97); }
.ghost-btn { background: #eef6ff; color: var(--primary-dark); }
.danger-btn { background: linear-gradient(135deg, #f87171 0%, #ef4444 100%); }
.table-wrap, .schedule-wrap { overflow: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 11px 10px; border-bottom: 1px solid #e9eff6; text-align: left; vertical-align: top; }
thead th { background: #f2f8ff; position: sticky; top: 0; z-index: 2; }
.flash { padding: 13px 14px; margin-bottom: 16px; border-radius: 14px; }
.flash.success { background: #dcfce7; }
.flash.error { background: #fee2e2; }
.toolbar, .inline-form, .inline-actions, .quick-links, .info-list, .mobile-sum-row { display:flex; gap:12px; flex-wrap:wrap; }
.toolbar { justify-content: space-between; margin-bottom: 16px; }
.schedule-toolbar { padding: 14px 18px; }
.compact-form label { display:block; font-size:12px; color: var(--muted); margin-bottom: 4px; }
.compact-form input { margin-bottom: 0; }
.stat-card { min-height: 110px; }
.stat-card strong { font-size: 24px; display:block; margin-top:8px; }
.stat-highlight p { margin: 12px 0 0; font-size: 34px; font-weight: 800; }
.card-green { background: linear-gradient(135deg, #ecfff1 0%, #d7f5e2 100%); }
.card-blue { background: linear-gradient(135deg, #ebf5ff 0%, #d9ecff 100%); }
.card-orange { background: linear-gradient(135deg, #fff4e8 0%, #ffe2cc 100%); }
.card-purple { background: linear-gradient(135deg, #f4edff 0%, #e5d8ff 100%); }
.info-list { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.info-list > div { padding: 14px; border-radius: 16px; background: var(--surface-soft); }
.info-list span { display:block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.info-list-tight { grid-template-columns: repeat(2,minmax(0,1fr)); }
.feature-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.mt-20 { margin-top: 20px; }
.form-split { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px; }
.stack-gap { display:grid; gap:12px; }
.legend-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px; }
.legend-item { display:flex; align-items:center; gap:8px; font-size:14px; }
.legend-dot { width:12px; height:12px; border-radius:50%; display:inline-block; }
.type-frueh { background: #93c5fd; }
.type-spaet { background: #fca5a5; }
.type-nacht { background: #c4b5fd; }
.type-urlaub { background: #86efac; }
.type-krank { background: #fdba74; }
.type-frei { background: #d1d5db; }
.type-wunsch { background: #fde68a; }
.schedule-panel { padding: 0; overflow: hidden; }
.modern-schedule-table { min-width: 1180px; }
.day-head { font-weight: bold; }
.day-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sticky-col { position: sticky; left: 0; z-index: 3; background: #fff; }
thead .sticky-col { background: #f2f8ff; z-index: 4; }
.employee-name { min-width: 210px; }
.employee-card-name { font-weight: 700; }
.shift-cell { min-width: 130px; background: #fbfdff; }
.weekend-col { background: #f8fafc !important; }
.shift-chip { border-radius: 16px; padding: 10px; min-height: 78px; border: 1px solid rgba(0,0,0,.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.shift-frueh { background: linear-gradient(180deg, #e0efff 0%, #cfe6ff 100%); }
.shift-spaet { background: linear-gradient(180deg, #ffe2df 0%, #ffd3cd 100%); }
.shift-nacht { background: linear-gradient(180deg, #ebe5ff 0%, #ddd3ff 100%); }
.shift-urlaub { background: linear-gradient(180deg, #def7e4 0%, #c9efd5 100%); }
.shift-krank { background: linear-gradient(180deg, #ffe8d2 0%, #ffdcb8 100%); }
.shift-frei { background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%); }
.shift-wunsch { background: linear-gradient(180deg, #fff7d6 0%, #fde68a 100%); }
.shift-default { background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%); }
.chip-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.chip-time { font-size: 12px; color: #334155; }
.chip-note { font-size: 11px; color: #475569; margin-top: 6px; line-height: 1.35; }
.empty-slot { min-height: 78px; display:flex; align-items:center; justify-content:center; color:#9aa8b8; border:1px dashed #dbe3ee; border-radius: 16px; background:#fff; }
.sum-cell { font-weight: 700; background: #fff; }
.saldo-plus { color: #15803d; }
.saldo-minus { color: var(--danger); }
.template-list { display:grid; gap:10px; margin-top:16px; }
.template-item { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 14px; border:1px solid #dbe4f0; border-radius:16px; background:#f8fbff; }
.template-item strong { display:block; margin-bottom:4px; }
.selected-logo { object-fit: contain; }
.login-modern-page { background: linear-gradient(135deg, #eef8ff 0%, #f5fbf8 100%); }
.login-shell { display:grid; grid-template-columns: minmax(320px, 420px) minmax(280px, 360px); gap: 28px; align-items: center; }
.login-modern-box { width: 100%; max-width: 420px; }
.login-box { background: #fff; padding: 32px; border-radius: 28px; box-shadow: var(--shadow); }
.login-logo { width: 124px; display:block; margin: 0 auto 18px; border-radius: 26px; box-shadow: 0 12px 30px rgba(17, 71, 118, .15); }
.login-note { padding: 14px; margin-top: 14px; background: #f5fbff; }
.login-side-card { padding: 24px; border-radius: 28px; background: rgba(255,255,255,.85); box-shadow: var(--shadow); }
.mobile-schedule-cards { display: none; }
.mobile-employee-card { border-radius: 22px; }
.mobile-day-list { display: grid; gap: 10px; }
.mobile-day-item { border-top: 1px solid #edf3f8; padding-top: 10px; }
.mobile-day-head { font-weight: 700; margin-bottom: 8px; }
.mobile-chip { min-height: unset; }
.mobile-empty { min-height: 52px; }
.mobile-sum-row { justify-content: space-between; margin-top: 14px; color: var(--muted); }
.admin-table input { margin-bottom: 0; min-width: 150px; }
.inline-delete-form { display:inline; margin:0; }

@media (max-width: 1360px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .grid-2, .schedule-grid, .dashboard-grid, .form-split, .legend-grid, .info-list, .info-list-tight, .login-shell { grid-template-columns: 1fr; }
  .content { padding: 22px 20px 110px; }
}
@media (max-width: 920px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; transform: translateX(-104%); transition: transform .22s ease; width: 290px; }
  body.nav-open .sidebar { transform: translateX(0); }
  .mobile-backdrop { display:block; position: fixed; inset: 0; background: rgba(9,20,33,.35); opacity: 0; pointer-events:none; transition: opacity .22s ease; z-index: 30; }
  body.nav-open .mobile-backdrop { opacity: 1; pointer-events: auto; }
  .mobile-topbar {
    display:flex; align-items:center; justify-content:space-between; gap: 12px; position: sticky; top: 0; z-index: 20;
    padding: 10px 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid #e6eef7;
  }
  .mobile-menu-button { width: 44px; height: 44px; border-radius: 14px; padding: 0; }
  .mobile-topbar-brand { display:flex; align-items:center; gap: 10px; }
  .mobile-topbar-brand img { width: 42px; height: 42px; border-radius: 14px; background: #fff; padding: 4px; }
  .mobile-topbar-brand div { display:grid; }
  .mobile-topbar-brand strong { font-size: 16px; }
  .mobile-topbar-brand span { color: var(--muted); font-size: 11px; }
  .mobile-topbar-user { text-decoration: none; color: var(--primary-dark); font-weight: 700; }
  .topbar { display: none; }
  .mobile-bottom-nav {
    display:grid; grid-template-columns: repeat(5,1fr); position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25;
    background: rgba(255,255,255,.95); border: 1px solid #dce8f4; box-shadow: 0 10px 30px rgba(20,66,111,.14); border-radius: 24px; padding: 8px;
  }
  .mobile-bottom-nav a { display:grid; place-items:center; gap: 4px; text-decoration:none; color: #2a4d73; font-size: 12px; padding: 6px 4px; }
  .mobile-bottom-nav a span { font-size: 11px; }
  .content { padding: 18px 14px 100px; }
  .cards, .schedule-stats { grid-template-columns: 1fr 1fr; }
  .toolbar, .page-header, .panel-header { flex-direction: column; align-items: stretch; }
  .quick-links, .topbar-actions { display:grid; grid-template-columns: 1fr 1fr; }
  .modern-schedule-table { display: none; }
  .mobile-schedule-cards { display: grid; gap: 16px; }
}
@media (max-width: 640px) {
  .cards, .schedule-stats, .quick-links { grid-template-columns: 1fr; }
  .card, .panel, .stat-card, .login-box, .login-side-card { border-radius: 22px; }
  .flat-page-header h1 { font-size: 28px; }
  .badge-soft { align-self: flex-start; }
  .quick-links, .topbar-actions { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .content { padding: 16px 12px 104px; }
}

/* V10.1 layout improvements */
.schedule-layout-v2{display:grid;grid-template-columns:320px 1fr;gap:20px;align-items:start}
.sticky-helper-card{position:sticky;top:20px}
.quick-template-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.quick-template-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#f3f7fb;font-size:13px;color:#27415d}
.cleaner-schedule-wrap{overflow:auto}
.cleaner-schedule-table{min-width:1100px}
.cleaner-cell{min-width:145px;vertical-align:top;padding:8px}
.cell-entry-form{display:flex;flex-direction:column;gap:8px;min-width:120px}
.cell-entry-form select{min-width:100%;background:#f8fbff;border:1px solid #d9e7f5;border-radius:10px;padding:9px 10px;font-size:13px}
.cleaner-chip{min-height:88px;padding:10px 12px;border-radius:14px;box-shadow:0 6px 18px rgba(44,93,145,.08)}
.chip-title-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.icon-delete{border:none;background:rgba(255,255,255,.75);width:24px;height:24px;border-radius:50%;font-size:18px;line-height:1;cursor:pointer;color:#6d213c}
.icon-delete:hover{background:#fff}
.inline-delete{display:inline}
.copy-week-box{padding-top:14px;border-top:1px solid #e6eef7}
.settings-grid{display:grid;grid-template-columns:1.25fr .85fr;gap:20px}
.settings-panel{padding:22px}
.settings-form input,.settings-form select{width:100%}
.compact-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1.5fr auto;gap:10px;align-items:center}
.template-settings-list{display:flex;flex-direction:column;gap:14px;margin-top:18px}
.template-settings-item{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid #e7eef6;border-radius:16px;background:#fbfdff}
.template-settings-row{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:10px}
.template-settings-row.second{grid-template-columns:1fr auto auto;align-items:center}
.checkbox-inline{display:flex;align-items:center;gap:8px;font-size:14px;color:#415a77}
.template-delete-form{display:flex;justify-content:flex-end;margin-top:-6px}
.settings-hint-list{display:flex;flex-direction:column;gap:12px;margin-top:20px}
.settings-hint-item{padding:14px;border-radius:16px;background:linear-gradient(180deg,#f8fbff,#eef5fb);display:flex;flex-direction:column;gap:6px}
.empty-state-inline{padding:14px;border:1px dashed #bfd3ea;border-radius:14px;color:#6381a0;background:#f8fbff}
.terminal-shell{padding:28px;border-radius:28px}
.terminal-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}
.terminal-badge,.terminal-status-box{display:inline-flex;padding:8px 14px;border-radius:999px;background:#eaf5ff;color:#1c5ea6;font-weight:700;font-size:13px}
.terminal-grid-form{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}
.terminal-left,.terminal-right{display:flex;flex-direction:column;gap:12px}
.terminal-left input,.terminal-left select,.terminal-right input{font-size:18px;padding:14px 16px;border-radius:16px;border:1px solid #d9e6f4;background:#fff}
.terminal-action-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.terminal-action-switch label{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border:1px solid #d9e6f4;border-radius:16px;background:#f7fbff;font-weight:700}
.terminal-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:8px}
.keypad-key{border:none;border-radius:18px;background:linear-gradient(180deg,#f8fbff,#e7f1fb);padding:20px 0;font-size:28px;font-weight:800;color:#17456f;cursor:pointer;box-shadow:0 8px 18px rgba(25,88,146,.08)}
.keypad-secondary{background:linear-gradient(180deg,#eef3f7,#dde7f0);color:#566b7f}
.terminal-side-card{padding:18px;border-radius:20px;background:#f9fbfd;border:1px solid #e6edf4;display:flex;flex-direction:column;gap:10px}
.muted-card{background:linear-gradient(180deg,#fbfdff,#eef5fb)}
.terminal-submit{margin-top:8px;padding:16px;border-radius:18px;font-size:18px;font-weight:800}
.terminal-steps{margin:0;padding-left:18px;color:#4a637f}
@media (max-width: 1100px){
  .schedule-layout-v2,.settings-grid,.terminal-grid-form{grid-template-columns:1fr}
  .sticky-helper-card{position:static}
  .compact-grid,.template-settings-row,.template-settings-row.second{grid-template-columns:1fr}
}
@media (max-width: 780px){
  .schedule-layout-v2{display:block}
  .schedule-layout-v2 > .panel:first-child{margin-bottom:16px}
  .cleaner-stats{grid-template-columns:repeat(2,1fr)}
  .terminal-shell{padding:18px}
  .keypad-key{padding:16px 0;font-size:24px}
}


/* V10.1 cleanup adjustments */
.schedule-panel-fullwidth{padding:14px 16px 18px}
.cleaner-toolbar-top{margin-bottom:18px}
.compact-copy-box{padding:14px 18px}
.wrap-actions,.wrap-form{flex-wrap:wrap}
.cleaner-schedule-table-v10 .sticky-col-main{min-width:220px;max-width:220px}
.cell-entry-inline select{margin:0;min-height:44px;font-weight:600;color:#23425f;background:#f7fbff}
.cell-entry-inline button{display:none}
.compact-chip{min-height:74px}
.compact-chip .chip-title{margin-bottom:2px}
.terminal-clean{max-width:1100px;margin:0 auto}
.terminal-header-clean{margin-bottom:14px}
.terminal-primary-card{background:linear-gradient(180deg,#f8fbff,#eef5fb)}
.compact-switch label{padding:10px 12px}
.mb-20{margin-bottom:20px}.mt-8{margin-top:8px}

/* V10.1 refined schedule + terminal */
.schedule-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}
.summary-card{background:linear-gradient(180deg,#ffffff,#f7fbff);border:1px solid #e2ebf5;border-radius:20px;padding:16px 18px;box-shadow:var(--shadow)}
.summary-label{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}
.summary-card strong{font-size:22px}
.cleaner-schedule-table-v101 th,.cleaner-schedule-table-v101 td{border-bottom:1px solid #edf2f7}
.cleaner-schedule-table-v101 .shift-cell{background:#f8fbff}
.template-shortcuts{display:grid;grid-template-columns:1fr;gap:8px}
.template-shortcut-form{margin:0}
.template-shortcut{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;border:1px solid #d9e7f5;border-radius:14px;background:#fff;color:#27415d;padding:10px 12px;min-height:64px;box-shadow:0 4px 14px rgba(36,83,127,.06)}
.template-shortcut:hover{background:#f6fbff;border-color:#b8d5ef}
.template-shortcut .shortcut-name{font-weight:700;font-size:13px}
.template-shortcut .shortcut-time{font-size:11px;color:#617892;margin-top:4px}
.mobile-template-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
.mobile-shortcut{align-items:center;text-align:center}
.terminal-v101{max-width:860px}
.terminal-grid-form-v101{grid-template-columns:1fr 320px;align-items:start}
.terminal-display-card{display:grid;gap:12px;padding:18px;border-radius:22px;background:linear-gradient(180deg,#fbfdff,#eef5fb);border:1px solid #e1ebf5}
.terminal-display-card #pinField{font-size:34px;letter-spacing:10px;text-align:center;font-weight:800;background:#fff}
.terminal-big-switch{grid-template-columns:1fr 1fr}
.terminal-action-card{position:relative;overflow:hidden}
.terminal-action-card input{position:absolute;opacity:0;pointer-events:none}
.terminal-action-card span{display:flex;align-items:center;justify-content:center;padding:18px 14px;border-radius:16px;background:#f7fbff;border:1px solid #d9e6f4;font-weight:800}
.terminal-action-card input:checked + span{background:linear-gradient(135deg,#1e78d7 0%,#35b6c8 100%);color:#fff;border-color:transparent;box-shadow:0 10px 24px rgba(30,120,215,.22)}
.terminal-keypad-v101{margin-top:14px}
.terminal-keypad-v101 .keypad-key{padding:24px 0;font-size:30px}
.terminal-right .terminal-side-card{height:100%}
@media (max-width: 920px){
  .schedule-summary-grid{grid-template-columns:1fr}
  .terminal-grid-form-v101{grid-template-columns:1fr}
}


/* V11 schedule cleanup + inline editing */
.empty-shift-adder, .shift-entry-details { position: relative; display: block; }
.empty-shift-adder summary, .shift-entry-details summary { list-style: none; cursor: pointer; }
.empty-shift-adder summary::-webkit-details-marker, .shift-entry-details summary::-webkit-details-marker { display:none; }
.add-shift-summary { display:flex; align-items:center; justify-content:center; width:36px; height:36px; margin:0 auto; border-radius:12px; background:#eef4ff; color:#2463eb; font-weight:800; font-size:22px; border:1px dashed #bfd0ff; }
.add-shift-summary:hover { background:#dfeaff; }
.inline-template-picker { position:absolute; z-index:10; top:42px; left:50%; transform:translateX(-50%); min-width:150px; background:#fff; border:1px solid #dbe3f0; box-shadow:0 12px 24px rgba(15,23,42,.12); border-radius:14px; padding:8px; display:grid; gap:6px; }
.compact-add-btn { width:100%; justify-content:center; padding:8px 10px; font-size:12px; }
.interactive-chip { cursor:pointer; }
.chip-edit-label { font-size:11px; color:#4b5563; background:rgba(255,255,255,.45); padding:2px 6px; border-radius:999px; }
.inline-shift-editor { margin-top:8px; background:#fff; border:1px solid #dbe3f0; border-radius:14px; padding:10px; box-shadow:0 10px 20px rgba(15,23,42,.08); }
.inline-edit-form { display:grid; gap:8px; }
.inline-edit-form select, .inline-edit-form input { width:100%; }
.inline-editor-actions { display:flex; gap:8px; align-items:center; margin-top:8px; }
.small-btn { padding:8px 10px; font-size:12px; }
.shift-cell { vertical-align:top; min-width:130px; }
.mobile-add-summary { width:100%; height:auto; padding:10px 12px; font-size:14px; }
.mobile-picker { position:static; transform:none; min-width:unset; margin-top:8px; }

@media (max-width: 900px) {
  .shift-cell { min-width:100px; }
  .inline-template-picker { left:0; right:0; transform:none; }
}


/* V11.2 */
.schedule-page-header.compact-header { margin-bottom: 12px; }
.v112-toolbar { margin-bottom: 14px; }
.v112-copy-box { padding: 0; overflow: hidden; }
.compact-summary-trigger {
  list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700;
}
.compact-summary-trigger::-webkit-details-marker { display: none; }
.v112-copy-box[open] .compact-summary-trigger { border-bottom: 1px solid var(--border); }
.v112-copy-box form { padding: 14px 18px 18px; }

.v112-legend {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px;
}
.legend-pill {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: #eef4fb; color: #35516d;
}
.legend-early { background: #e5f3ff; color: #0f5aa0; }
.legend-late { background: #e9f7ff; color: #126d83; }
.legend-night { background: #ece9ff; color: #5a42b3; }
.legend-vacation { background: #fff3d9; color: #9c6b00; }
.legend-sick { background: #ffe5e5; color: #ae3434; }
.legend-wish { background: #f1ebff; color: #6b4ac7; }

.cleaner-employee-cell {
  display: flex; align-items: center; gap: 10px; min-width: 220px;
}
.employee-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #dff4ff 0%, #eaf8ee 100%);
  color: #155f93; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; flex: 0 0 36px;
}
.add-shift-summary-v112 {
  width: 38px; height: 38px; line-height: 36px; font-size: 24px;
  background: #eef6ff; color: var(--primary-dark); border: 1px dashed #9fc6ec;
}
.add-shift-summary-v112:hover { background: #dff0ff; }

.template-shortcut.compact-add-btn {
  min-height: 34px; border-radius: 10px; padding: 8px 10px;
}

.terminal-side-card-v112 .terminal-submit {
  min-height: 52px; font-size: 18px;
}

@media (max-width: 980px) {
  .v112-legend { display: none; }
}


/* V11.3 */
.page-subline {
  margin: 6px 0 0;
  font-size: 14px;
}
.quick-actions-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.quick-actions-left,
.quick-actions-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.qa-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1c5d93;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d1e6fa;
}
.qa-pill-soft {
  background: #f3f7fb;
  color: #50677d;
  border-color: #e1e9f1;
}
.live-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}
.live-status-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #e0ebf5;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(27, 71, 110, 0.06);
}
.live-status-title {
  font-size: 13px;
  color: #5f7287;
  margin-bottom: 8px;
  font-weight: 700;
}
.live-status-value {
  font-size: 28px;
  color: #17324a;
  font-weight: 800;
  line-height: 1;
}
.schedule-panel .table-responsive,
.schedule-table-wrapper {
  overflow-x: auto;
}
.schedule-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7fbff;
}
.schedule-table td {
  min-width: 124px;
  vertical-align: top;
}
.schedule-table .employee-name {
  min-width: 220px;
  background: #fff;
}
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 900px) {
  .live-status-strip {
    grid-template-columns: 1fr;
  }
  .quick-actions-right {
    width: 100%;
  }
  .schedule-table td {
    min-width: 96px;
  }
}
@media (max-width: 640px) {
  .page-subline {
    font-size: 13px;
  }
  .quick-actions-bar {
    gap: 10px;
  }
  .qa-pill {
    padding: 7px 10px;
    font-size: 11px;
  }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e2eaf2;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(19, 50, 75, 0.12);
    backdrop-filter: blur(10px);
    z-index: 40;
    overflow: hidden;
  }
  .mobile-bottom-nav a {
    text-decoration: none;
    color: #35516d;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 8px;
  }
  .content {
    padding-bottom: 88px !important;
  }
}


/* V11.4 */
.inline-edit-form-v114 {
  display: grid;
  gap: 8px;
}
.time-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.shift-break-hint {
  font-size: 12px;
  color: #5f7287;
  background: #f3f7fb;
  border: 1px solid #e1e9f1;
  border-radius: 10px;
  padding: 8px 10px;
}

/* V11.5 employee editing */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.employee-edit-list {
  display: grid;
  gap: 12px;
}
.employee-edit-card {
  border: 1px solid #e1e9f1;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.employee-edit-card > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
}
.employee-edit-card > summary::-webkit-details-marker { display: none; }
.employee-summary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-pill.active { background: #e7f8ec; color: #257942; }
.status-pill.inactive { background: #f3f4f6; color: #5f7287; }
.employee-edit-form {
  padding: 0 18px 18px;
  display: grid;
  gap: 12px;
}
.form-hint { margin-top: -4px; }
@media (max-width: 900px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .employee-edit-card > summary { flex-direction: column; align-items: flex-start; }
}

.holiday-header{font-size:11px;color:#b26a00;margin-top:4px;font-weight:700;}


.employee-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.mini-stat {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #e0ebf5;
  border-radius: 14px;
  padding: 14px 16px;
}
.mini-stat span {
  display: block;
  font-size: 12px;
  color: #5f7287;
  margin-bottom: 8px;
  font-weight: 700;
}
.mini-stat strong {
  font-size: 24px;
  color: #17324a;
}
@media (max-width: 900px) {
  .employee-kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .employee-kpi-grid { grid-template-columns: 1fr; }
}


/* V14.1 */
.small-text.muted { color: #6f8192; }


/* V14.1 */
.login-v14.1-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef6ff 0%, #f7fbff 45%, #eef8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-v14.1-shell {
  width: min(1120px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.login-v14.1-left, .login-v14.1-box {
  background: rgba(255,255,255,0.94);
  border: 1px solid #dfeaf4;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(20, 51, 77, 0.10);
  padding: 40px;
}
.login-v14.1-left h1 { font-size: 40px; margin-bottom: 12px; }
.login-v14.1-box { display:flex; flex-direction:column; justify-content:center; }
.login-v14.1-box h2 { margin-bottom: 18px; }
.login-v14.1-box form { display:grid; gap:14px; }
.login-feature-list { margin-top: 24px; }
.drag-over { outline: 2px dashed #1d74d6; background: #eef7ff !important; }
.hotel-switcher select[multiple] { min-height: 120px; }
@media (max-width: 900px) {
  .login-v14.1-shell { grid-template-columns: 1fr; }
  .login-v14.1-left, .login-v14.1-box { padding: 24px; }
  .login-v14.1-left h1 { font-size: 28px; }
}


/* V14.0 */
.login-subcopy { margin: 0 0 16px; }
.dashboard-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.dashboard-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
}
.dashboard-hero-card-secondary {
  background: linear-gradient(135deg, #ffffff 0%, #f7fff8 100%);
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5f7287;
  margin-bottom: 12px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.hero-stats div {
  background: rgba(255,255,255,.86);
  border: 1px solid #e1ebf4;
  border-radius: 16px;
  padding: 14px;
}
.hero-stats span {
  display: block;
  font-size: 12px;
  color: #6c7b8f;
  margin-bottom: 6px;
}
.hero-stats strong {
  font-size: 22px;
}
.section-summary-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.summary-card {
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid #dfeaf4;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.summary-card span {
  display:block;
  color:#6c7b8f;
  font-size:12px;
  margin-bottom:6px;
}
.summary-card strong {
  font-size:24px;
}
.qa-pill-copy.copy-active {
  background: #eaf8ee;
  color: #19764a;
  border-color: #cdeed8;
}
.drag-copy-over {
  outline: 2px dashed #2aa76c;
  background: #eefcf3 !important;
}
@media (max-width: 980px) {
  .dashboard-hero-grid,
  .section-summary-bar {
    grid-template-columns: 1fr;
  }
}


/* V14.0 */
.hotel-multi-select {
  min-height: 180px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px;
}
.inline-form.compact-form .btn.small {
  white-space: nowrap;
}


/* V14.0 */
.publish-toggle-form {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.publish-status-banner {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-weight: 700;
}
.publish-status-banner.published {
  background:#eaf8ee;
  color:#19764a;
  border:1px solid #cdeed8;
}
.publish-status-banner.unpublished {
  background:#fff4e7;
  color:#9b6400;
  border:1px solid #f3d9af;
}


/* V14.0 */
.hotel-mini-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 6px;
  border: 1px solid #dce7f2;
}


/* V14.0 */
.legal-accept-grid {
  display: grid;
  gap: 18px;
}
.legal-card {
  padding-bottom: 14px;
}
.legal-scroll {
  max-height: 280px;
  overflow: auto;
  padding-right: 8px;
  line-height: 1.55;
}
.legal-submit-row {
  display: flex;
  justify-content: flex-end;
}


/* V14.0 */
.login-logo,
.brand-art.selected-logo {
  background: transparent !important;
  object-fit: contain;
}


/* V14.3 */
.forgot-password-box {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}


/* V14.4 */
.smtp-card {
  margin-top: 16px;
  background: linear-gradient(135deg, #fbfdff 0%, #f4f9ff 100%);
  border: 1px solid #dfeaf4;
  border-radius: 18px;
  padding: 16px;
}
.smtp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.smtp-badge {
  font-size: 12px;
  font-weight: 700;
  color: #1d74d6;
  background: #eaf3ff;
  border: 1px solid #cfe1f7;
  border-radius: 999px;
  padding: 6px 10px;
}
.smtp-grid {
  margin-top: 12px;
}
.smtp-input {
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.smtp-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.password-setup-panel {
  display: grid;
  gap: 12px;
}


/* V14.5 Hotel UI */
.hotel-admin-layout {
  align-items: start;
}
.hotel-list-panel {
  overflow: hidden;
}
.hotel-cards {
  display: grid;
  gap: 14px;
}
.hotel-card {
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  overflow: hidden;
}
.hotel-card-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
}
.hotel-card-summary::-webkit-details-marker {
  display: none;
}
.hotel-name-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hotel-card-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  border: 1px solid #dce7f2;
  padding: 4px;
}
.hotel-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.hotel-contact {
  text-align: right;
  max-width: 220px;
  word-break: break-word;
}
.hotel-card-body {
  border-top: 1px solid #e8eef5;
  padding: 18px 20px 20px;
  background: #fcfdff;
}
.hotel-edit-form {
  display: grid;
  gap: 14px;
}
.hotel-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hotel-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #4f6175;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hotel-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hotel-actions-row-buttons {
  justify-content: flex-start;
}
.hotel-secondary-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #dfe7f1;
  justify-content: space-between;
}
.test-mail-form {
  flex: 1;
  min-width: 260px;
}
.test-mail-form input {
  min-width: 220px;
}
@media (max-width: 1100px) {
  .hotel-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .hotel-card-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .hotel-meta {
    width: 100%;
    justify-content: space-between;
  }
  .hotel-contact {
    text-align: left;
    max-width: none;
  }
  .hotel-edit-grid {
    grid-template-columns: 1fr;
  }
}


/* V14.6 Sidebar Navigation */
.sidebar-nav-grouped {
  display: grid;
  gap: 12px;
}
.nav-primary-link,
.nav-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group {
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.nav-group[open] summary {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.nav-submenu {
  display: grid;
  gap: 6px;
  padding: 10px;
}
.nav-submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: 14px;
  color: #eaf2fb;
  text-decoration: none;
  background: rgba(255,255,255,0.04);
}
.nav-submenu a:hover {
  background: rgba(255,255,255,0.10);
}
.nav-primary-link:hover,
.nav-group summary:hover {
  background: rgba(255,255,255,0.14);
}
.sidebar .brand-card,
.sidebar .context-card {
  margin-bottom: 16px;
}
.sidebar .context-card .small-text strong {
  display: block;
  margin-top: 6px;
  color: #fff;
}


/* V14.7 Navigation + role label fix */
.main-nav-grouped {
  display: grid;
  gap: 10px;
}
.main-nav-primary,
.main-nav-secondary,
.main-nav-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
}
.main-nav-group {
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}
.main-nav-group summary {
  list-style: none;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.main-nav-group summary::-webkit-details-marker {
  display: none;
}
.main-nav-submenu {
  display: grid;
  gap: 6px;
  padding: 0 10px 10px;
}
.main-nav-submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: 14px;
  color: #eaf2fb;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
}
.main-nav-submenu a:hover,
.main-nav-primary:hover,
.main-nav-secondary:hover,
.main-nav-group summary:hover {
  background: rgba(255,255,255,0.12);
}


/* V14.8 */
.legend-hotel {
  background: #eef4ff;
  color: #2a5eb8;
}
.chip-hotel-code {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}
.delta-positive {
  color: #177245;
  font-weight: 700;
}
.delta-negative {
  color: #b42318;
  font-weight: 700;
}


/* V14.9.1 login */
.login-centered-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #163a6a 0%, #215f9b 60%, #2f8ed0 100%);
}
.login-centered-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.login-centered-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,0.98);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(10, 23, 46, 0.24);
  padding: 34px;
  text-align: center;
}
.login-logo-centered {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0 auto 14px;
}
.login-form-centered {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.link-button-small {
  margin-top: 14px;
  background: none;
  border: 0;
  color: #235f9b;
  font-size: 13px;
  cursor: pointer;
}
.reset-collapsible { display: none; }
.reset-collapsible.open { display: block; }
.login-footer-note { margin-top: 14px; }
.flash-stack { display: grid; gap: 10px; margin-top: 14px; }
.flash-message { border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.flash-success { background: #e8f7ec; color: #166534; }
.flash-error { background: #fdecec; color: #991b1b; }

/* V14.9.1 sidebar */
.sidebar-version-footnote {
  margin-top: 10px;
  padding: 10px 14px 2px;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.compact-context-card { padding: 14px; }
.compact-context-card label { display: none; }

/* V14.9.1 help */
.help-stack, .help-manual-layout { display: grid; gap: 16px; }
.help-card {
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.help-card summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 20px;
  list-style: none;
}
.help-card summary::-webkit-details-marker { display: none; }
.help-card > div { padding: 0 20px 18px; color: #41566c; }


/* V14.9.2 hotel + employees cleanup */
.hotel-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.upload-inline {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.people-create-panel,
.hotel-create-panel {
  display: grid;
  gap: 14px;
}
.people-role-block {
  display: grid;
  gap: 10px;
}
.multi-select-wide {
  min-height: 140px;
}
.employee-edit-card .employee-edit-form {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}
.form-hint {
  margin-top: 6px;
}
@media (max-width: 1100px) {
  .hotel-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .hotel-form-grid {
    grid-template-columns: 1fr;
  }
}


/* V14.9.3 SMTP security */
.smtp-security-select {
  min-width: 220px;
}


/* V14.9.4 SMTP help */
.smtp-help-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f4f8fc;
  border: 1px solid #dbe6f2;
}
.smtp-help-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.smtp-help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}


/* V15 */
.inactive-card {
  opacity: 0.92;
  border-color: #e5d5d5;
  background: #fffaf9;
}


/* V15.3 Dienstplan */
.manual-shift-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #dbe4ef;
}
.manual-shift-form input {
  width: 100%;
}


/* V15.4 help */
.code-block {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0f2238;
  color: #f4f8fc;
  overflow: auto;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.5;
}


/* V16 layout + design */
body { overflow-x: hidden; }
.layout { min-width: 0; overflow: hidden; }
.sidebar { flex: 0 0 300px; min-width: 300px; }
.content { min-width: 0; overflow-x: hidden; padding: 24px 28px 96px; }
.schedule-panel-fullwidth { width: 100%; max-width: 100%; }
.schedule-wrap { overflow-x: auto; overflow-y: visible; }
.topbar {
  background: #ffffff;
  border: 1px solid #e7eef6;
  box-shadow: 0 10px 28px rgba(16, 42, 67, .06);
}
.panel, .card, .stat-card {
  border: 1px solid #e6eef7;
  box-shadow: 0 10px 24px rgba(19, 50, 75, .06);
}
.flat-page-header h1 { letter-spacing: -0.02em; }
.quick-actions-bar { overflow-x: auto; padding-bottom: 4px; }
.compact-daily-adjustment-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.terminal-merged-form .compact-keypad {
  margin-top: 4px;
}
.compact-keypad {
  max-width: 360px;
}


/* V16.2 */
.schedule-wrap-wide {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}
.schedule-table {
  min-width: 1350px;
}
.request-list {
  display: grid;
  gap: 12px;
}
.request-card {
  border: 1px solid #e6eef7;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.request-open { border-color: #e6d29c; background: #fff9ee; }
.request-approved { border-color: #bfe3cc; background: #f4fbf7; }
.request-rejected { border-color: #efc4c4; background: #fff7f7; }


/* V16.3 Dashboard Relaunch */
.dashboard-hero {
  display: grid;
  grid-template-columns: 1.5fr .7fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  padding: 26px 28px;
}
.dashboard-hero-copy h1 {
  margin: 6px 0 10px;
  font-size: 38px;
  letter-spacing: -0.03em;
}
.eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #165aa2;
  font-size: 12px;
  font-weight: 700;
}
.hero-badge-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f4fbff 0%, #eef8ef 100%);
  border: 1px solid #e3edf6;
  display: grid;
  gap: 6px;
}
.hero-badge-card span,
.hero-badge-card small {
  color: var(--muted);
}
.hero-badge-card strong {
  font-size: 24px;
  line-height: 1.2;
}
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.dashboard-kpi-card {
  border-radius: 24px;
  padding: 20px 22px;
  border: 1px solid #e4edf6;
  box-shadow: 0 12px 28px rgba(18, 49, 76, .06);
  display: grid;
  gap: 10px;
}
.dashboard-kpi-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.dashboard-kpi-card strong {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.dashboard-kpi-card small {
  color: var(--muted);
  font-size: 12px;
}
.tone-blue { background: linear-gradient(135deg, #eef6ff 0%, #dcecff 100%); }
.tone-green { background: linear-gradient(135deg, #eefcf2 0%, #d8f5e1 100%); }
.tone-amber { background: linear-gradient(135deg, #fff6ea 0%, #ffe4bf 100%); }
.tone-purple { background: linear-gradient(135deg, #f5efff 0%, #e6dbff 100%); }
.dashboard-role-grid {
  align-items: start;
}
.insight-list {
  display: grid;
  gap: 14px;
}
.insight-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e7eff7;
  display: grid;
  gap: 6px;
}
.insight-item strong {
  font-size: 15px;
}
.insight-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-action-card {
  text-decoration: none;
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid #e5edf6;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 24px rgba(17, 47, 74, .05);
  display: grid;
  gap: 6px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.dashboard-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 47, 74, .10);
}
.dashboard-action-card strong {
  font-size: 16px;
}
.dashboard-action-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.employee-kpi-grid-modern .dashboard-kpi-card strong {
  font-size: 34px;
}
@media (max-width: 1280px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .dashboard-kpi-grid,
  .dashboard-action-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-hero-copy h1 {
    font-size: 30px;
  }
}


/* V16.4 Design + Dienstplan */
body {
  background: #f6f8fb;
}
.topbar,
.dashboard-hero,
.panel,
.card,
.stat-card {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.schedule-panel-visual-upgrade {
  background: #ffffff;
  border: 1px solid #e5ecf4;
}
.schedule-wrap,
.cleaner-schedule-wrap {
  overflow: visible;
  padding-bottom: 260px;
}
.schedule-table {
  min-width: 1280px;
}
.shift-cell,
.cleaner-cell {
  min-width: 150px;
  position: relative;
  overflow: visible;
}
.empty-shift-adder,
.shift-entry-details {
  position: relative;
}
.inline-template-picker,
.inline-shift-editor {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 260px;
  max-width: 320px;
  background: #ffffff;
  border: 1px solid #dfe8f1;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
  padding: 10px;
}
.inline-template-picker {
  display: grid;
  gap: 8px;
}
.template-shortcut-form,
.manual-shift-form,
.wish-form-block {
  margin: 0;
}
.cleaner-schedule-table tbody tr {
  border-bottom: 1px solid #edf2f7;
}
.cleaner-employee-cell {
  background: #fcfdff;
}
.employee-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #e8f1fb;
  color: #185b9a;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.quick-actions-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
.quick-actions-left,
.quick-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.qa-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef5fc;
  border: 1px solid #dbe8f5;
  color: #1c5d97;
  font-weight: 600;
  font-size: 13px;
}
.qa-pill-soft {
  background: #f8fbff;
}
.legend-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.legend-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.legend-early { background: #e0efff; color: #1b5fa0; }
.legend-late { background: #ffe2df; color: #9d4b43; }
.legend-night { background: #ebe5ff; color: #6a54c8; }
.legend-vacation { background: #fff0cc; color: #a06800; }
.legend-sick { background: #ffe1dc; color: #b94b41; }
.legend-wish { background: #f1e6ff; color: #7a4fd1; }

.terminal-merged-form input#pinField {
  letter-spacing: .35em;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}
.terminal-keypad {
  max-width: 360px;
}
.dashboard-hero,
.dashboard-kpi-card,
.dashboard-action-card {
  border-radius: 28px;
}

@media (max-width: 1100px) {
  .schedule-wrap,
  .cleaner-schedule-wrap {
    overflow: auto;
    padding-bottom: 140px;
  }
  .inline-template-picker,
  .inline-shift-editor {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 20px;
    width: min(92vw, 360px);
    max-width: 92vw;
  }
}


/* V17 Design Refresh - Mix aus Modern PMS + Operations Dashboard */
:root {
  --bg-main: #f4f7fb;
  --bg-surface: #ffffff;
  --bg-soft: #eef4fb;
  --text-main: #17324d;
  --text-muted-2: #6f8398;
  --line-soft: #e1eaf4;
  --shadow-soft: 0 16px 34px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 20px 45px rgba(16, 42, 67, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(77, 145, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg-main) 100%);
  color: var(--text-main);
}

.sidebar {
  background: linear-gradient(180deg, #163b68 0%, #1d4f84 52%, #1f6aa6 100%);
  box-shadow: 8px 0 26px rgba(17, 49, 78, 0.15);
}

.brand-block-v17 {
  padding: 18px 18px 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
}

.topbar-v17 {
  border-radius: 30px;
  padding: 20px 22px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(225,234,244,.95);
  box-shadow: var(--shadow-soft);
}

.panel,
.card,
.stat-card,
.dashboard-action-card,
.dashboard-kpi-card,
.hotel-card,
.employee-edit-card,
.help-card,
.request-card {
  border-radius: var(--radius-xl) !important;
  border: 1px solid var(--line-soft) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,252,255,0.98) 100%) !important;
  box-shadow: var(--shadow-soft) !important;
}

.dashboard-hero-v17 {
  padding: 30px 32px;
  background:
    radial-gradient(circle at right top, rgba(59,130,246,.12), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f6fbff 100%) !important;
  border-radius: 32px !important;
}

.dashboard-kpi-grid-v17 {
  gap: 20px;
}

.dashboard-kpi-card {
  min-height: 158px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.dashboard-kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
}

.dashboard-kpi-card strong {
  font-size: 42px;
  letter-spacing: -0.04em;
}

.dashboard-action-card {
  min-height: 112px;
  padding: 18px 20px;
}

.dashboard-action-card strong {
  color: var(--text-main);
}

.dashboard-action-card span,
.muted,
.small-text.muted {
  color: var(--text-muted-2) !important;
}

.dashboard-role-grid-v17 .panel {
  padding: 22px 24px;
}

.schedule-overview-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 6px 0 18px;
}

.schedule-overview-card {
  border-radius: 22px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid #dce8f4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 6px;
}

.schedule-overview-card span {
  color: var(--text-muted-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.schedule-overview-card strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.schedule-overview-card small {
  color: var(--text-muted-2);
  line-height: 1.45;
}

.legend-pills-v17 {
  margin-bottom: 12px;
}

.quick-actions-bar-v17 {
  margin-top: 0;
  margin-bottom: 18px;
  padding: 0;
}

.schedule-panel-v17 {
  padding: 8px 10px 6px;
  border-radius: 30px !important;
}

.schedule-wrap-v17 {
  padding: 8px 8px 260px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
}

.schedule-table-v17 {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1420px;
}

.schedule-table-v17 thead th {
  position: sticky;
  top: 0;
  z-index: 15;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
  border-bottom: 1px solid #dce8f4;
  font-size: 14px;
  padding: 18px 12px 14px;
}

.schedule-table-v17 tbody td {
  padding: 8px;
  background: #fff;
  border-bottom: 1px solid #edf3fa;
}

.schedule-table-v17 tbody tr:hover td {
  background: #fbfdff;
}

.cleaner-employee-cell {
  min-width: 220px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%) !important;
}

.shift-cell,
.cleaner-cell {
  min-width: 162px;
}

.cleaner-chip {
  min-height: 74px;
  border-radius: 18px !important;
  padding: 12px 12px 10px !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), 0 8px 18px rgba(15, 23, 42, .05);
}

.shift-frueh {
  background: linear-gradient(180deg, #dcebff 0%, #cfe3ff 100%) !important;
  color: #144d84;
}
.shift-spaet {
  background: linear-gradient(180deg, #ffd9d4 0%, #f7c9c1 100%) !important;
  color: #8e493f;
}
.shift-nacht {
  background: linear-gradient(180deg, #ece3ff 0%, #e2d7ff 100%) !important;
  color: #6a55bf;
}
.shift-urlaub {
  background: linear-gradient(180deg, #ffe8b8 0%, #ffd88b 100%) !important;
  color: #8a5b00;
}
.shift-krank {
  background: linear-gradient(180deg, #ffd7d2 0%, #ffc4be 100%) !important;
  color: #a34038;
}
.shift-wunsch {
  background: linear-gradient(180deg, #f3e9ff 0%, #e9ddff 100%) !important;
  color: #6c42ca;
}

.add-shift-summary {
  width: 42px;
  height: 42px;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #f5faff 0%, #e9f3ff 100%);
  border: 1px dashed #8bb7e3 !important;
  color: #1c5d97 !important;
  box-shadow: none;
}

.inline-template-picker,
.inline-shift-editor {
  min-width: 290px;
  max-width: 340px;
  border-radius: 20px;
  padding: 12px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(8px);
}

.template-shortcut,
.manual-shift-form button,
.wish-form-block button {
  border-radius: 14px !important;
}

.qa-pill {
  background: #f3f8ff;
  border-color: #dbe7f4;
  color: #245d96;
}

.mobile-topbar,
.mobile-bottom-nav {
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1280px) {
  .schedule-overview-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .dashboard-hero-v17 {
    padding: 24px;
  }
  .schedule-wrap-v17 {
    padding-bottom: 180px;
  }
  .schedule-table-v17 {
    min-width: 1180px;
  }
}


/* V17.1 Dienstplan Editor Relaunch */
.schedule-page-header-v171 {
  align-items: center;
  margin-bottom: 18px;
}
.schedule-page-header-v171 h1 {
  font-size: 42px;
  letter-spacing: -0.04em;
}
.schedule-page-header-v171 .page-subline {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.5;
}

.schedule-toolbar-v171 {
  align-items: center;
  padding: 18px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(59,130,246,.08), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.98) 100%);
}

.schedule-legend-v171 {
  margin-bottom: 14px;
}
.schedule-legend-v171 .legend-pill {
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}

.schedule-overview-bar-v171 {
  gap: 18px;
  margin-bottom: 20px;
}
.schedule-overview-bar-v171 .schedule-overview-card {
  min-height: 118px;
  align-content: start;
}

.quick-actions-bar-v171 {
  padding: 4px 0 2px;
  margin-bottom: 20px;
}
.quick-actions-bar-v171 .qa-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.schedule-panel-v171 {
  padding: 14px;
  border-radius: 34px !important;
}

.schedule-wrap-v171 {
  border: 1px solid #e4edf7;
  padding: 14px 14px 300px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(247,251,255,1) 100%);
}

.schedule-table-v171 {
  min-width: 1500px;
}
.schedule-table-v171 thead th {
  font-size: 15px;
  font-weight: 800;
  color: #16324d;
  padding: 20px 12px 16px;
}
.schedule-table-v171 .day-head {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.schedule-table-v171 .day-date {
  margin-top: 4px;
  color: var(--text-muted-2);
  font-size: 13px;
  font-weight: 600;
}

.employee-name-v171 {
  min-width: 248px;
  padding: 14px 14px !important;
}
.employee-name-v171 .employee-card-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.employee-name-v171 .employee-avatar {
  width: 46px;
  height: 46px;
  box-shadow: inset 0 0 0 1px rgba(20, 93, 145, .08);
}

.shift-cell-v171 {
  min-width: 170px;
}
.shift-cell-v171 .cleaner-chip {
  min-height: 82px;
}
.shift-cell-v171 .chip-title {
  font-size: 15px;
  font-weight: 800;
}
.shift-cell-v171 .chip-time,
.shift-cell-v171 .chip-note,
.shift-cell-v171 .chip-hotel-code {
  font-size: 12px;
}

.inline-template-picker-v171,
.inline-shift-editor-v171 {
  top: calc(100% + 10px);
  min-width: 310px;
  max-width: 360px;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 26px 50px rgba(15, 23, 42, .18);
}

.inline-template-picker-v171::before,
.inline-shift-editor-v171::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 26px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 1px solid #dfe8f1;
  border-top: 1px solid #dfe8f1;
  transform: rotate(45deg);
}

.inline-template-picker-v171 form,
.inline-shift-editor-v171 form {
  margin: 0;
}

.template-shortcut {
  width: 100%;
  justify-content: flex-start;
  min-height: 44px;
}

.manual-shift-form-v171,
.wish-form-block-v171 {
  gap: 10px;
}

.manual-shift-form-v171 input,
.manual-shift-form-v171 select,
.wish-form-block-v171 input,
.wish-form-block-v171 select,
.inline-shift-editor-v171 input,
.inline-shift-editor-v171 select {
  border-radius: 14px;
  min-height: 44px;
}

.manual-shift-form-v171 button,
.wish-form-block-v171 button,
.inline-shift-editor-v171 button {
  min-height: 44px;
  border-radius: 14px !important;
}

.drag-over {
  outline: 2px solid rgba(37,99,235,.28);
  background: rgba(37,99,235,.05);
}
.drag-copy-over {
  outline: 2px dashed rgba(16,185,129,.45);
  background: rgba(16,185,129,.05);
}

.qa-pill-copy.copy-active {
  background: linear-gradient(135deg, #ecfff6 0%, #dbffe9 100%);
  border-color: #bfe8cf;
  color: #0f7b4c;
}

@media (max-width: 1200px) {
  .schedule-wrap-v171 {
    padding-bottom: 180px;
  }
  .schedule-table-v171 {
    min-width: 1320px;
  }
}

@media (max-width: 760px) {
  .schedule-page-header-v171 h1 {
    font-size: 34px;
  }
  .schedule-toolbar-v171 {
    padding: 16px;
  }
}


/* V17.2 Admin Views Relaunch */
.admin-page-header-v172 {
  align-items: end;
  margin-bottom: 18px;
}
.admin-page-header-v172 h1 {
  font-size: 40px;
  letter-spacing: -0.04em;
}
.section-summary-bar-v172 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.section-summary-bar-v172 .summary-card {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid #e2ebf5;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 14px 28px rgba(16, 42, 67, .06);
  display: grid;
  gap: 8px;
}
.section-summary-bar-v172 .summary-card span {
  color: var(--text-muted-2, #6f8398);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}
.section-summary-bar-v172 .summary-card strong {
  font-size: 34px;
  letter-spacing: -0.03em;
}

.admin-layout-v172 {
  align-items: start;
}
.admin-form-panel-v172,
.admin-list-panel-v172,
.vacation-panel-v172 {
  border-radius: 30px !important;
  padding: 22px 24px !important;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.06), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
}
.admin-form-panel-v172 .panel-header,
.admin-list-panel-v172 .panel-header,
.vacation-panel-v172 h3 {
  margin-bottom: 12px;
}
.admin-form-panel-v172 .panel-header h3,
.admin-list-panel-v172 .panel-header h3,
.vacation-panel-v172 h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
}
.admin-form-panel-v172 input,
.admin-form-panel-v172 select,
.admin-form-panel-v172 textarea,
.admin-list-panel-v172 input,
.admin-list-panel-v172 select,
.vacation-panel-v172 input,
.vacation-panel-v172 select {
  min-height: 46px;
  border-radius: 14px;
}
.hotel-admin-layout .hotel-form-grid,
.employee-grid-v172 .hotel-form-grid,
.vacation-grid-v172 .hotel-form-grid {
  gap: 14px;
}

.hotel-cards-v172,
.employee-edit-list-v172 {
  display: grid;
  gap: 16px;
}
.hotel-card-v172,
.employee-edit-card-v172 {
  border-radius: 24px !important;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
}
.hotel-card-v172 summary,
.employee-edit-card-v172 summary {
  padding: 18px 20px;
  cursor: pointer;
}
.hotel-card-v172 .hotel-card-body,
.employee-edit-card-v172 .employee-edit-form,
.employee-edit-card-v172 .inline-delete {
  padding: 0 20px 18px;
}
.hotel-card-v172 .hotel-card-summary,
.employee-edit-card-v172 summary {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.hotel-card-v172 .hotel-card-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e7eef6;
  padding: 8px;
}
.hotel-card-v172 .hotel-name-wrap,
.employee-edit-card-v172 summary > div:first-child {
  display: flex;
  gap: 14px;
  align-items: start;
}
.hotel-card-v172 .hotel-meta,
.employee-edit-card-v172 .employee-summary-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}
.smtp-card-v172 {
  margin-top: 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6fbff 0%, #eef6ff 100%);
  border: 1px solid #deebf7;
}
.smtp-card-v172 .smtp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.smtp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f1ff;
  color: #165aa2;
  font-size: 12px;
  font-weight: 800;
}
.employee-edit-card-v172 .employee-summary-actions .btn,
.hotel-card-v172 .hotel-actions-row .btn {
  min-height: 40px;
}

.vacation-grid-v172 {
  gap: 18px;
}
.vacation-grid-v172 .table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
}
.vacation-grid-v172 thead th {
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
}
.vacation-grid-v172 tbody tr:hover td {
  background: #fbfdff;
}

.request-card,
.help-card,
.hotel-card,
.employee-edit-card {
  transition: transform .16s ease, box-shadow .16s ease;
}
.request-card:hover,
.help-card:hover,
.hotel-card:hover,
.employee-edit-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .08) !important;
}

@media (max-width: 1100px) {
  .admin-form-panel-v172,
  .admin-list-panel-v172,
  .vacation-panel-v172 {
    padding: 18px 18px !important;
  }
  .hotel-card-v172 .hotel-card-summary,
  .employee-edit-card-v172 summary {
    grid-template-columns: 1fr;
    display: grid;
  }
  .hotel-card-v172 .hotel-meta,
  .employee-edit-card-v172 .employee-summary-actions {
    justify-items: start;
  }
}


/* V17.3 Mobile Feinschliff */
.mobile-only-block {
  display: none;
}
@media (max-width: 980px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 320px);
    height: 100vh;
    z-index: 120;
    transform: translateX(-105%);
    transition: transform .22s ease;
    border-radius: 0 28px 28px 0;
  }
  body.nav-open .sidebar {
    transform: translateX(0);
  }
  .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 110;
  }
  body.nav-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e3ebf5;
  }
  .mobile-topbar-brand-v173 {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-topbar-brand-v173 img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 4px;
    border: 1px solid #e3ebf5;
  }
  .mobile-menu-button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid #dce7f3;
    background: #f7fbff;
    font-size: 20px;
  }
  .content {
    padding: 16px 14px 92px;
  }
  .topbar {
    padding: 14px;
    border-radius: 22px;
    margin-bottom: 16px;
  }
  .topbar-actions {
    display: none;
  }
  .page-header,
  .dashboard-hero,
  .dashboard-role-grid,
  .grid-2,
  .grid-3,
  .cards,
  .dashboard-kpi-grid,
  .schedule-overview-bar,
  .section-summary-bar-v172 {
    grid-template-columns: 1fr !important;
  }
  .dashboard-hero {
    padding: 20px 18px;
  }
  .dashboard-hero-copy h1,
  .admin-page-header-v172 h1,
  .schedule-page-header-v171 h1,
  .flat-page-header h1 {
    font-size: 30px !important;
    line-height: 1.1;
  }
  .dashboard-kpi-card,
  .summary-card,
  .schedule-overview-card,
  .panel,
  .card,
  .hotel-card,
  .employee-edit-card,
  .request-card {
    border-radius: 22px !important;
  }
  .dashboard-action-grid {
    grid-template-columns: 1fr !important;
  }
  .dashboard-action-card {
    min-height: 92px;
  }
  .toolbar,
  .inline-form,
  .inline-actions,
  .quick-actions-bar,
  .quick-actions-left,
  .quick-actions-right {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .toolbar .btn,
  .inline-actions .btn,
  .quick-actions-bar .qa-pill {
    width: 100%;
    justify-content: center;
  }
  .schedule-panel-v171,
  .schedule-panel-v17 {
    padding: 10px;
  }
  .schedule-wrap-v171,
  .schedule-wrap-v17,
  .schedule-wrap,
  .cleaner-schedule-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding: 10px 10px 150px;
    border-radius: 22px;
  }
  .schedule-table-v171,
  .schedule-table-v17,
  .schedule-table {
    min-width: 1080px !important;
  }
  .employee-name-v171,
  .cleaner-employee-cell {
    min-width: 190px;
  }
  .shift-cell-v171,
  .shift-cell,
  .cleaner-cell {
    min-width: 145px;
  }
  .inline-template-picker-v171,
  .inline-shift-editor-v171,
  .inline-template-picker,
  .inline-shift-editor {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    bottom: 14px !important;
    top: auto !important;
    width: min(94vw, 370px);
    max-width: 94vw;
    min-width: auto;
    z-index: 200;
    border-radius: 24px;
  }
  .inline-template-picker-v171::before,
  .inline-shift-editor-v171::before,
  .inline-template-picker::before,
  .inline-shift-editor::before {
    display: none;
  }
  .hotel-form-grid,
  .form-split {
    grid-template-columns: 1fr !important;
  }
  .terminal-keypad {
    max-width: 100%;
  }
  .terminal-keypad .keypad-key {
    min-height: 56px;
    font-size: 20px;
    border-radius: 16px;
  }
  .terminal-merged-form input#pinField {
    min-height: 54px;
    font-size: 24px;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-bottom-nav-v173 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 100;
    gap: 8px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    border: 1px solid #dde7f2;
  }
  .mobile-bottom-nav-v173 a {
    display: grid;
    gap: 4px;
    justify-items: center;
    align-items: center;
    text-decoration: none;
    font-size: 12px;
    padding: 8px 6px;
    border-radius: 16px;
    color: var(--text-main, #17324d);
  }
  .mobile-bottom-nav-v173 a:hover {
    background: #f3f8ff;
  }
  .mobile-only-block {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #e0eaf5;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .04);
  }
  .mobile-page-hint strong {
    font-size: 14px;
  }
  .mobile-page-hint span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
  }
}


/* V17.4 Mobile-First Mitarbeiter */
.mobile-schedule-intro {
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
}
.mobile-schedule-cards-v174 {
  display: grid;
  gap: 14px;
}
.request-list-v174 {
  gap: 14px;
}
.request-card-v174 {
  padding: 16px 16px 14px;
}
.terminal-hero-v174 {
  display: none;
}
.timeclock-grid-v174 {
  align-items: start;
}
.terminal-merged-form-v174 {
  gap: 14px;
}
.dashboard-mobile-priority-v174 {
  position: relative;
  overflow: hidden;
}
.dashboard-mobile-priority-v174::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -60px;
  border-radius: 999px;
  background: rgba(59,130,246,.08);
}
@media (max-width: 980px) {
  .mobile-schedule-cards-v174 .mobile-day-card {
    border-radius: 22px !important;
    padding: 16px 16px 14px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
    border: 1px solid #dfe8f1 !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .05);
  }
  .mobile-schedule-cards-v174 .mobile-day-card .mobile-day-card-head {
    margin-bottom: 10px;
  }
  .mobile-schedule-cards-v174 .mobile-day-card .mobile-day-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .mobile-schedule-cards-v174 .mobile-chip-wrap {
    margin-top: 10px;
  }
  .mobile-schedule-cards-v174 .mobile-chip {
    min-height: 58px;
    border-radius: 16px;
    padding: 12px;
  }
  .my-requests-grid-v174 {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .request-card-v174 strong {
    font-size: 15px;
    line-height: 1.4;
  }
  .terminal-hero-v174 {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
    border: 1px solid #dfe8f1;
    box-shadow: 0 10px 22px rgba(15,23,42,.04);
  }
  .terminal-hero-v174 strong {
    font-size: 14px;
  }
  .terminal-hero-v174 span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
  }
  .timeclock-grid-v174 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .terminal-merged-form-v174 {
    gap: 14px;
  }
  .terminal-merged-form-v174 .grid-2 {
    grid-template-columns: 1fr !important;
  }
  .terminal-merged-form-v174 button.terminal-submit {
    min-height: 52px;
    font-size: 16px;
    border-radius: 16px;
  }
  .dashboard-mobile-priority-v174 {
    padding: 18px 18px 20px !important;
  }
  .dashboard-kpi-grid .dashboard-kpi-card {
    min-height: 132px;
  }
  .dashboard-kpi-card strong {
    font-size: 34px !important;
  }
}


/* V17.5 Navigation Redesign */
.sidebar {
  background:
    radial-gradient(circle at top left, rgba(86, 150, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #edf5ff 0%, #e5f0fb 48%, #dcebf9 100%) !important;
  color: #17324d !important;
  box-shadow: 10px 0 28px rgba(16, 42, 67, 0.08) !important;
  border-right: 1px solid #dce8f4;
}
.sidebar .brand-copy h2,
.sidebar .brand-copy p,
.sidebar .hotel-switcher label,
.sidebar .hotel-switcher .muted,
.sidebar .sidebar-version-footnote {
  color: #577189 !important;
}
.brand-block-v17,
.brand-block {
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.54)) !important;
  border: 1px solid rgba(210, 225, 240, 0.9) !important;
  box-shadow: 0 12px 26px rgba(16, 42, 67, .05);
}
.brand-art.selected-logo {
  box-shadow: 0 12px 24px rgba(16, 42, 67, .08) !important;
}
.hotel-switcher.flat-panel,
.compact-context-card {
  background: rgba(255,255,255,.72) !important;
  border: 1px solid #dbe7f3 !important;
}
.hotel-switcher select {
  background: #ffffff !important;
  border: 1px solid #d8e5f2 !important;
  color: #17324d !important;
}
.main-nav a,
.main-nav-primary,
.main-nav-secondary {
  background: rgba(255,255,255,.72) !important;
  border: 1px solid #dbe7f3 !important;
  color: #183652 !important;
  box-shadow: 0 8px 18px rgba(16, 42, 67, .04);
}
.main-nav a:hover,
.main-nav-primary:hover,
.main-nav-secondary:hover {
  background: #ffffff !important;
}
.main-nav-group {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #dce8f4;
  background: rgba(255,255,255,.54);
}
.main-nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 14px;
  font-weight: 700;
  color: #16324d;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(245,250,255,.82));
}
.main-nav-group summary::-webkit-details-marker {
  display: none;
}
.main-nav-submenu {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}
.main-nav-submenu a {
  min-height: 42px;
  display: flex;
  align-items: center;
}
.mobile-topbar {
  background: rgba(248, 251, 255, .96) !important;
}
.mobile-menu-button {
  background: #ffffff !important;
}
.mobile-bottom-nav-v173 {
  background: rgba(248, 251, 255, .96) !important;
}


/* V17.6 Premium Navigation */
.sidebar {
  width: 314px;
  background:
    radial-gradient(circle at top left, rgba(113, 180, 255, 0.20), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eef5fd 55%, #e8f1fb 100%) !important;
}
.sidebar-scroll {
  padding-right: 8px;
}
.brand-block-v17,
.brand-block {
  padding: 18px;
  border-radius: 26px;
}
.main-nav {
  gap: 12px;
}
.main-nav-primary,
.main-nav-secondary,
.main-nav-submenu a {
  min-height: 46px;
  border-radius: 16px !important;
  font-weight: 700;
}
.main-nav-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%) !important;
}
.main-nav-secondary {
  background: linear-gradient(135deg, #fefefe 0%, #f7fbff 100%) !important;
}
.main-nav-group {
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(16, 42, 67, .05);
}
.main-nav-group summary {
  min-height: 48px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.main-nav-submenu {
  padding: 0 10px 10px;
}
.main-nav-submenu a {
  background: rgba(255,255,255,.82) !important;
  border: 1px solid #e4edf7 !important;
}
.main-nav-submenu a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(16, 42, 67, .05);
}
.hotel-switcher.flat-panel,
.compact-context-card {
  border-radius: 22px !important;
}
.hotel-switcher select {
  min-height: 44px;
  border-radius: 14px !important;
}
.mobile-topbar-brand-v173 {
  gap: 12px;
}
.mobile-bottom-nav-v173 {
  box-shadow: 0 16px 30px rgba(16,42,67,.10);
}


/* V17.7 Navigation Refinement */
.sidebar {
  width: 320px;
  background:
    radial-gradient(circle at top left, rgba(125, 192, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f2f7fd 52%, #edf4fb 100%) !important;
}
.sidebar-scroll {
  padding: 10px 10px 16px 0;
}
.brand-block-v17,
.brand-block {
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(247,251,255,.82) 100%) !important;
  box-shadow: 0 18px 34px rgba(16, 42, 67, .05) !important;
}
.brand-copy h2 {
  letter-spacing: -0.03em;
}
.main-nav-grouped {
  display: grid;
  gap: 12px;
}
.nav-link-v177,
.main-nav-group summary,
.main-nav-submenu a {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.nav-link-v177:hover,
.main-nav-group summary:hover,
.main-nav-submenu a:hover {
  transform: translateY(-1px);
}
.nav-icon-badge {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5fd 100%);
  border: 1px solid #dfe9f3;
  box-shadow: 0 6px 12px rgba(16, 42, 67, .04);
  flex: 0 0 30px;
}
.main-nav-primary,
.main-nav-secondary {
  min-height: 50px;
  padding: 10px 14px !important;
  border-radius: 18px !important;
  display: flex;
  align-items: center;
  gap: 12px;
}
.main-nav-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f2f8ff 100%) !important;
  border: 1px solid #dce8f4 !important;
}
.main-nav-primary:hover {
  box-shadow: 0 14px 24px rgba(16, 42, 67, .06);
}
.main-nav-secondary {
  background: linear-gradient(135deg, #fff 0%, #f7fbff 100%) !important;
}
.main-nav-group {
  border-radius: 24px !important;
  background: rgba(255,255,255,.72) !important;
  border: 1px solid #dde8f3 !important;
  box-shadow: 0 12px 24px rgba(16, 42, 67, .04);
}
.main-nav-group summary {
  min-height: 50px;
  padding: 12px 14px !important;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.main-nav-submenu {
  padding: 0 10px 10px !important;
  gap: 8px !important;
}
.main-nav-submenu a {
  min-height: 42px;
  padding: 10px 12px !important;
  border-radius: 15px !important;
  font-size: 14px;
  background: rgba(255,255,255,.84) !important;
}
.main-nav-submenu a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7ea5ce;
  margin-right: 10px;
  align-self: center;
  display: inline-block;
}
.main-nav-submenu a:hover {
  box-shadow: 0 10px 18px rgba(16, 42, 67, .05);
}
.sidebar-version-footnote {
  margin-top: 8px;
  text-align: center;
  color: #7d91a6 !important;
  font-size: 11px;
}
.topbar-v17 {
  background: rgba(255,255,255,.94) !important;
  border: 1px solid #e1ebf5 !important;
  box-shadow: 0 18px 32px rgba(16, 42, 67, .05) !important;
}
.topbar-title {
  letter-spacing: -0.03em;
}
.topbar-quicklink-v177 {
  background: linear-gradient(135deg, #fff 0%, #f3f8ff 100%) !important;
  color: #1d4f84 !important;
  border: 1px solid #dce8f4 !important;
  box-shadow: 0 10px 18px rgba(16, 42, 67, .04);
}
.topbar-quicklink-v177:hover {
  box-shadow: 0 14px 22px rgba(16, 42, 67, .06);
}
.mobile-topbar-brand-v173 strong {
  letter-spacing: -0.03em;
}
.mobile-bottom-nav-v173 {
  background: rgba(251,253,255,.96) !important;
  border: 1px solid #e1ebf5 !important;
}
.mobile-bottom-nav-v173 a {
  border-radius: 16px;
}
.mobile-bottom-nav-v173 a:hover {
  background: #eef5fd !important;
}
@media (max-width: 980px) {
  .sidebar {
    width: min(88vw, 330px);
    border-radius: 0 28px 28px 0;
  }
  .main-nav-primary,
  .main-nav-secondary,
  .main-nav-group summary {
    min-height: 48px;
  }
}


/* V17.8 Design System Finishing */
:root {
  --ds-primary-50: #eef6ff;
  --ds-primary-100: #dcecff;
  --ds-primary-200: #bddcff;
  --ds-primary-300: #93c4ff;
  --ds-primary-500: #3b82f6;
  --ds-primary-700: #1d4f84;

  --ds-success-50: #eefbf3;
  --ds-success-100: #d9f5e4;
  --ds-success-500: #1f9d62;

  --ds-warning-50: #fff7ea;
  --ds-warning-100: #ffe7bf;
  --ds-warning-500: #b7791f;

  --ds-danger-50: #fff1f0;
  --ds-danger-100: #ffd8d5;
  --ds-danger-500: #d64545;

  --ds-neutral-25: #fcfdff;
  --ds-neutral-50: #f7fafe;
  --ds-neutral-100: #eef3f9;
  --ds-neutral-200: #dde7f2;
  --ds-neutral-300: #c7d5e4;
  --ds-neutral-500: #6f8398;
  --ds-neutral-700: #29435d;

  --ds-radius-sm: 12px;
  --ds-radius-md: 16px;
  --ds-radius-lg: 22px;
  --ds-radius-xl: 28px;
  --ds-shadow-xs: 0 6px 14px rgba(16, 42, 67, .04);
  --ds-shadow-sm: 0 10px 22px rgba(16, 42, 67, .05);
  --ds-shadow-md: 0 16px 32px rgba(16, 42, 67, .06);
  --ds-shadow-lg: 0 22px 44px rgba(16, 42, 67, .08);
}

body {
  color: var(--ds-neutral-700);
}

button, .btn {
  min-height: 42px;
  border-radius: var(--ds-radius-md);
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: var(--ds-shadow-xs);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

button:hover, .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--ds-shadow-sm);
}

.btn.small, .small-btn {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 13px !important;
}

.ghost-btn {
  background: linear-gradient(135deg, #ffffff 0%, var(--ds-primary-50) 100%) !important;
  color: var(--ds-primary-700) !important;
  border: 1px solid var(--ds-neutral-200) !important;
}

.danger-btn {
  background: linear-gradient(135deg, #ef6b6b 0%, #dc4f4f 100%) !important;
  box-shadow: 0 10px 20px rgba(220, 79, 79, .18) !important;
}

input, select, textarea {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--ds-neutral-200);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

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

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #8ebdf8;
  box-shadow: 0 0 0 4px rgba(59,130,246,.10);
  background: #fff;
}

.panel-header h3,
.panel-header-row h3,
.settings-panel h3,
.hotel-card strong,
.employee-edit-card strong {
  letter-spacing: -0.02em;
}

.flash {
  border: 1px solid transparent;
  box-shadow: var(--ds-shadow-xs);
}

.flash.success {
  background: linear-gradient(180deg, var(--ds-success-50) 0%, #e7f8ef 100%);
  border-color: #ccebd9;
  color: #0f6b40;
}
.flash.error {
  background: linear-gradient(180deg, var(--ds-danger-50) 0%, #ffe7e4 100%);
  border-color: #f2c6c1;
  color: #9b3030;
}

.badge-soft,
.pill,
.status-pill,
.legend-pill,
.qa-pill {
  border-radius: 999px !important;
  box-shadow: none !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}
.status-pill.active {
  background: linear-gradient(180deg, var(--ds-success-50) 0%, var(--ds-success-100) 100%);
  color: #0f6b40;
  border-color: #c9ebd8;
}
.status-pill.inactive {
  background: linear-gradient(180deg, var(--ds-danger-50) 0%, var(--ds-danger-100) 100%);
  color: #a03d3d;
  border-color: #f1cbc7;
}
.status-pill.pending {
  background: linear-gradient(180deg, var(--ds-warning-50) 0%, var(--ds-warning-100) 100%);
  color: #9a6509;
  border-color: #f0d5a5;
}

.table-wrap {
  border-radius: 20px;
  border: 1px solid var(--ds-neutral-200);
  background: #fff;
  box-shadow: var(--ds-shadow-xs);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  background: linear-gradient(180deg, #f9fbff 0%, #eef5fc 100%);
  color: #17324d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  border-bottom: 1px solid var(--ds-neutral-200);
}

tbody td {
  background: #fff;
}

tbody tr:hover td {
  background: #fbfdff;
}

tbody tr:last-child td {
  border-bottom: none;
}

.summary-card,
.dashboard-kpi-card,
.schedule-overview-card,
.request-card,
.settings-hint-item,
.info-list > div {
  border: 1px solid var(--ds-neutral-200);
  box-shadow: var(--ds-shadow-sm);
}

.summary-card strong,
.dashboard-kpi-card strong,
.stat-highlight p {
  letter-spacing: -0.04em;
}

.card-green,
.tone-green {
  background: linear-gradient(135deg, #f2fff6 0%, #dcf6e8 100%) !important;
}
.card-blue,
.tone-blue {
  background: linear-gradient(135deg, #f0f7ff 0%, #dfeeff 100%) !important;
}
.card-orange,
.tone-amber {
  background: linear-gradient(135deg, #fff8ed 0%, #ffe7c8 100%) !important;
}
.card-purple,
.tone-purple {
  background: linear-gradient(135deg, #f7f1ff 0%, #e8deff 100%) !important;
}

.help-card,
.request-card,
.hotel-card,
.employee-edit-card,
.template-item,
.settings-hint-item {
  border-radius: 22px !important;
}

.help-card summary,
.hotel-card summary,
.employee-edit-card summary {
  position: relative;
}

.help-card summary::after,
.hotel-card summary::after,
.employee-edit-card summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--ds-neutral-500);
  font-size: 18px;
}

.settings-panel,
.admin-form-panel-v172,
.admin-list-panel-v172 {
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.05), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.template-item,
.template-settings-item {
  border: 1px solid var(--ds-neutral-200);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--ds-shadow-xs);
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 2px;
}

.checkbox-inline input[type="checkbox"],
.checkbox-inline input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

@media (max-width: 980px) {
  .table-wrap {
    border-radius: 18px;
  }
  button, .btn {
    min-height: 44px;
  }
  input, select, textarea {
    min-height: 46px;
  }
}


/* V17.9 Login + Final UI Polish */
.login-body-v179 {
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.12), transparent 30%),
    linear-gradient(180deg, #f4f9ff 0%, #eef5fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card-v179 {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e1ebf5;
  box-shadow: 0 30px 60px rgba(16,42,67,.10);
}

.login-card-v179 h1 {
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.login-card-v179 input {
  width: 100%;
}

.login-card-v179 button {
  width: 100%;
}

.login-card-v179 .muted {
  text-align: center;
  display: block;
  margin-top: 10px;
}

/* spacing consistency */
.panel,
.settings-panel,
.hotel-card,
.employee-edit-card,
.template-item {
  padding: 18px !important;
}

.settings-form,
.hotel-form-grid {
  gap: 12px !important;
}

/* request / absence cards */
.request-card {
  border-left: 4px solid #3b82f6;
}
.request-card.approved {
  border-left-color: #1f9d62;
}
.request-card.rejected {
  border-left-color: #d64545;
}

/* table density refinement */
td, th {
  padding: 10px 12px !important;
}

/* final polish hover states */
.panel:hover,
.settings-panel:hover,
.hotel-card:hover {
  box-shadow: 0 18px 32px rgba(16,42,67,.06);
}

/* micro typography */
h1, h2, h3 {
  letter-spacing: -0.02em;
}

.small-text {
  font-size: 12px;
  opacity: .85;
}


/* V18.1 Functional Upgrade UI */
.kpi-card {
  padding:16px;
  border-radius:18px;
  background:linear-gradient(135deg,#f0f7ff,#e6f0ff);
  box-shadow:0 10px 20px rgba(0,0,0,0.05);
}
.kpi-card strong {
  font-size:26px;
}

.warning {
  border-left:4px solid #ff9c63;
  background:#fff7f0;
}

.critical {
  border-left:4px solid #e65656;
  background:#fff1f0;
}

.quick-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.quick-actions button {
  flex:1;
}


/* V18.2 Intelligent Dashboard */
.alert-strip-v182 {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
  margin: 18px 0 6px;
}
.alert-card-v182 {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid #e1ebf5;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 20px rgba(16,42,67,.05);
  display:grid;
  gap:8px;
}
.alert-card-v182 span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.alert-card-v182 strong {
  font-size: 28px;
  letter-spacing: -0.03em;
}
.alert-card-v182 small {
  color: var(--muted);
  line-height: 1.45;
}
.quick-actions-v182 {
  align-items:center;
}
.quick-actions-v182 .btn {
  min-width: 180px;
}
.smart-hint-v182 {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #f0d5a5;
  background: linear-gradient(180deg, #fff9ee 0%, #fff3de 100%);
  color: #8a5a00;
  box-shadow: 0 8px 18px rgba(16,42,67,.04);
}
@media (max-width: 980px) {
  .alert-strip-v182 {
    grid-template-columns: 1fr;
  }
  .quick-actions-v182 {
    display:grid;
    grid-template-columns: 1fr;
  }
  .quick-actions-v182 .btn {
    width: 100%;
    min-width: 0;
  }
}


/* V18.3 Mobile employees + terminal + welcome pin */
.employee-mobile-hint-v183 { margin-bottom: 16px; }
.employee-grid-v183 { align-items: start; }
.employee-save-btn-v183 { width: 100%; }
.timeclock-grid-v183 .terminal-panel-v183 {
  background: radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 20%), linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
}
.terminal-action-switch-v183 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.terminal-action-switch-v183 label {
  display: flex; align-items: center; justify-content: center; min-height: 68px;
  border-radius: 22px; border: 1px solid #dbe7f4; background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  font-size: 18px; font-weight: 800; color: #183652; padding: 10px 12px;
}
.terminal-action-switch-v183 input { width: 18px; height: 18px; margin-right: 10px; }
.terminal-panel-v183 select, .terminal-panel-v183 input { border-radius: 18px; }
.terminal-help-v183 { padding: 10px 12px; border-radius: 14px; background: #f7fbff; border: 1px solid #e1ebf5; }
@media (max-width: 980px) {
  .employee-grid-v183 { grid-template-columns: 1fr !important; gap: 16px; }
  .employee-create-panel-v183, .employee-list-panel-v183, .employee-edit-card-v172, .inactive-card { border-radius: 22px !important; }
  .employee-create-panel-v183 .hotel-form-grid, .employee-edit-form .hotel-form-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .employee-edit-card-v172 summary { display: grid !important; gap: 12px; }
  .employee-summary-actions { justify-items: start !important; display: grid; gap: 8px; }
  .employee-edit-form, .employee-edit-card-v172 .inline-delete { padding-top: 10px; }
  .multi-select-wide { min-height: 160px; }
  .employee-create-panel-v183, .employee-list-panel-v183 { padding: 18px !important; }
  .timeclock-grid-v183 { grid-template-columns: 1fr !important; }
  .terminal-panel-v183 { padding: 18px !important; border-radius: 24px !important; }
  .terminal-action-switch-v183 { grid-template-columns: 1fr 1fr !important; }
  .terminal-action-switch-v183 label { min-height: 74px; font-size: 16px; text-align: center; }
  .terminal-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 100%; }
  .terminal-keypad .keypad-key {
    min-height: 64px !important; font-size: 24px !important; border-radius: 18px !important;
    background: linear-gradient(180deg, #f7fbff 0%, #ebf3ff 100%); border: 1px solid #dbe7f4; color: #17324d;
    box-shadow: 0 10px 18px rgba(16,42,67,.05);
  }
  .terminal-merged-form input#pinField { min-height: 60px !important; font-size: 28px !important; border-radius: 18px !important; background: #fff; letter-spacing: .28em; }
  .terminal-submit { width: 100%; min-height: 54px !important; font-size: 17px; border-radius: 18px !important; }
}


/* V18.4 mobile requests + greeting + grouped mobile schedule */
.my-requests-form-v184 {
  margin-bottom: 18px;
}
.my-request-create-grid-v184 {
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
  align-items:end;
}
.mobile-schedule-overview-v184 {
  display:none;
}
.mobile-day-card-v184 {
  border-radius: 22px !important;
}
.mobile-day-list-v184 {
  display:grid;
  gap:10px;
}
.mobile-day-person-v184 {
  display:grid;
  gap:8px;
  padding:12px;
  border:1px solid #e3ebf5;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.mobile-day-person-head-v184 {
  display:grid;
  gap:2px;
}
@media (max-width: 980px) {
  .my-request-create-grid-v184 {
    grid-template-columns: 1fr;
  }
  .mobile-schedule-cards-v174 {
    display:grid !important;
    gap:14px;
  }
  .mobile-day-list-v184 .mobile-chip {
    min-height: 56px;
    border-radius: 16px;
    padding: 12px;
  }
}


/* V18.5 timeclock direct buttons + schedule ampel + mobile wishes */
.timeclock-mobile-shell-v185 {
  display:grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 18px;
}
.timeclock-action-panel-v185 {
  display:grid;
  gap:14px;
}
.timeclock-status-v185 {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);
  border:1px solid #dfe8f4;
}
.status-dot-v185 {
  width:14px; height:14px; border-radius:999px; background:#cbd5e1; box-shadow:0 0 0 6px rgba(203,213,225,.25);
}
.status-dot-v185.is-live { background:#22c55e; box-shadow:0 0 0 6px rgba(34,197,94,.18); }
.status-dot-v185.is-idle { background:#f59e0b; box-shadow:0 0 0 6px rgba(245,158,11,.18); }
.big-action-btn-v185 {
  width:100%;
  min-height:64px;
  justify-content:center;
  border-radius:20px !important;
  font-size:20px;
}
.timeclock-legal-note-v185 {
  padding:12px 14px;
  border-radius:16px;
  background:#fff8eb;
  border:1px solid #f0d5a5;
  color:#8a5a00;
  line-height:1.45;
}
.time-entry-list-v185 { display:grid; gap:10px; }
.time-entry-card-v185 {
  display:grid; gap:4px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid #e2ebf5;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.publish-status-wrap-v185 {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.publish-ampel-v185, .publish-status-banner {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid #dfe8f4;
  background:#fff;
}
.ampel-dot-v185 {
  width:12px; height:12px; border-radius:999px; background:#ef4444;
}
.publish-ampel-v185.is-published .ampel-dot-v185,
.publish-status-banner.published .ampel-dot-v185 { background:#22c55e; }
.publish-ampel-v185.is-published,
.publish-status-banner.published { background:#eefbf3; border-color:#ccebd9; color:#0f6b40; }
.publish-ampel-v185.is-unpublished,
.publish-status-banner.unpublished { background:#fff1f0; border-color:#f2c6c1; color:#9b3030; }

.mobile-day-header-v185 h3 { margin:0; }
.mobile-wish-box-v185 {
  margin-top:12px;
  border-radius:18px;
  border:1px solid #dfe8f4;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  overflow:hidden;
}
.mobile-wish-box-v185 summary {
  list-style:none;
  cursor:pointer;
  padding:14px 16px;
  font-weight:800;
  color:#144d84;
}
.mobile-wish-box-v185 summary::-webkit-details-marker { display:none; }
.mobile-wish-form-v185 {
  display:grid;
  gap:12px;
  padding:0 16px 16px;
}
.mobile-wish-choice-v185 {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.mobile-wish-choice-v185 label {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  border-radius:16px;
  border:1px solid #dfe8f4;
  background:#fff;
  font-weight:700;
}
.mobile-wish-choice-v185 input { width:auto; margin-right:8px; }
@media (max-width: 980px) {
  .timeclock-mobile-shell-v185 { grid-template-columns:1fr; }
  .big-action-btn-v185 { min-height:58px; font-size:18px; }
  .mobile-wish-choice-v185 { grid-template-columns:1fr; }
}


/* V18.7 OTP button + UX polish */
.employee-form-actions-v187 {
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(260px, 320px);
  gap:12px;
  align-items:center;
  margin-top:10px;
}
.employee-send-password-btn-v187 {
  justify-content:center;
  min-height:44px;
  font-weight:800;
}
.draggable-shift.is-dragging {
  opacity: .55;
  transform: scale(.98);
  box-shadow: 0 18px 32px rgba(16,42,67,.18);
}
.drag-over {
  outline: 2px solid rgba(59,130,246,.35);
  background: rgba(59,130,246,.06) !important;
}
.drag-copy-over {
  outline: 2px dashed rgba(16,185,129,.45);
  background: rgba(16,185,129,.08) !important;
}
.my-requests-form-v184 {
  margin-bottom: 18px;
}
.my-request-create-grid-v184 {
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
  align-items:end;
}
.mobile-wish-box-v185 summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.mobile-wish-box-v185 summary::after {
  content:'▾';
  color:#6c7b8f;
}
.mobile-wish-choice-v185 label {
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.mobile-wish-choice-v185 label:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(16,42,67,.06);
}
.publish-status-banner,
.publish-ampel-v185 {
  box-shadow: 0 10px 18px rgba(16,42,67,.04);
}
@media (max-width: 980px) {
  .employee-form-actions-v187,
  .my-request-create-grid-v184 {
    grid-template-columns: 1fr;
  }
}


/* V19.1 Kommunikation + Fixes */
.communication-layout-v191 {
  display:grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap:18px;
}
.communication-contact-list-v191 {
  display:grid;
  gap:10px;
}
.communication-contact-card-v191 {
  display:grid;
  gap:4px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid #dfe8f4;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  text-decoration:none;
  color:#17324d;
  box-shadow:0 8px 16px rgba(16,42,67,.04);
}
.communication-contact-card-v191.is-active {
  border-color:#9fc4f4;
  background:linear-gradient(180deg,#eef6ff 0%,#e7f1ff 100%);
}
.communication-contact-card-v191 span,
.communication-contact-card-v191 small {
  color:#6f8398;
}
.communication-thread-v191 {
  display:grid;
  gap:14px;
}
.communication-thread-list-v191 {
  display:grid;
  gap:12px;
  max-height:60vh;
  overflow:auto;
  padding-right:4px;
}
.message-bubble-v191 {
  max-width:78%;
  display:grid;
  gap:6px;
  padding:12px 14px;
  border-radius:18px;
  background:#f8fbff;
  border:1px solid #dfe8f4;
}
.message-bubble-v191.is-own {
  justify-self:end;
  background:linear-gradient(180deg,#eef6ff 0%,#e5f0ff 100%);
  border-color:#cfe0f7;
}
.message-bubble-head-v191 {
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.message-bubble-head-v191 span {
  color:#6f8398;
  font-size:12px;
  text-transform:uppercase;
}
.communication-compose-v191 {
  display:grid;
  gap:12px;
}
.communication-empty-v191 {
  min-height:320px;
  display:grid;
  place-items:center;
  text-align:center;
}
.employee-form-actions-v191 {
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(280px, 340px);
  gap:12px;
  align-items:center;
}
.employee-send-password-btn-v191 {
  justify-content:center;
}
@media (max-width: 980px) {
  .communication-layout-v191,
  .employee-form-actions-v191 {
    grid-template-columns: 1fr;
  }
  .message-bubble-v191 {
    max-width:100%;
  }
}


/* V20.1 Magic Login + Self Service */
.v201-login-shell { min-height: 100vh; }
.v201-login-card { max-width: 460px; }
.login-resend-v201 { margin-top: 10px; text-align:center; }
.profile-layout-v201 { display:grid; grid-template-columns:minmax(0, 700px); }
.profile-card-v201 { display:grid; gap:18px; }
.profile-hero-v201 { display:flex; gap:16px; align-items:center; }
.profile-avatar-v201 { width:88px; height:88px; border-radius:24px; object-fit:cover; border:1px solid #dfe8f4; background:#fff; }
.profile-avatar-fallback-v201 { display:grid; place-items:center; font-size:34px; font-weight:800; background:linear-gradient(180deg,#eef6ff,#e5f0ff); color:#1d4f84; }
.profile-form-v201 { display:grid; gap:12px; max-width:480px; }
.manager-time-grid-v201 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.manager-time-card-v201 { padding:14px; border-radius:18px; border:1px solid #dfe8f4; background:linear-gradient(180deg,#fff,#f8fbff); display:grid; gap:8px; }
.manager-time-actions-v201 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width: 980px) {
  .profile-hero-v201 { flex-direction:column; align-items:flex-start; }
  .manager-time-grid-v201 { grid-template-columns:1fr; }
}


/* V20.2 Settings + shift templates polish */
.settings-summary-v202 {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-bottom:18px;
}
.settings-grid-v202 {
  display:grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap:18px;
}
.settings-panel-v202 {
  display:grid;
  gap:16px;
}
.settings-panel-wide-v202 {
  grid-column: 1 / -1;
}
.settings-chip-v202 {
  padding:8px 12px;
  border-radius:999px;
  background:linear-gradient(180deg,#eef6ff,#e6f0ff);
  color:#21588b;
  font-weight:800;
  border:1px solid #d8e6f5;
}
.settings-intro-box-v202 {
  display:grid;
  gap:6px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid #e0ebf5;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.template-create-card-v202,
.template-card-v202 {
  border:1px solid #e0ebf5;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  box-shadow:0 10px 20px rgba(16,42,67,.04);
}
.template-create-card-v202 {
  padding:16px;
  display:grid;
  gap:12px;
}
.template-card-title-v202 {
  font-weight:800;
  color:#17324d;
}
.template-list-v202 {
  display:grid;
  gap:12px;
}
.template-card-v202 summary {
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px;
}
.template-card-v202 summary::-webkit-details-marker { display:none; }
.template-summary-right-v202 {
  display:flex;
  align-items:center;
  gap:10px;
}
.template-edit-form-v202 {
  padding:0 16px 14px;
  display:grid;
  gap:12px;
}
.template-grid-v202 {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.template-actions-v202,
.template-delete-form-v202 {
  padding:0 16px 16px;
}
.email-template-block-v202 {
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid #e0ebf5;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.settings-divider-v202 {
  height:1px;
  background:#e4edf6;
  margin:4px 0;
}
.template-test-grid-v202 {
  display:grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap:18px;
}
@media (max-width: 980px) {
  .settings-summary-v202,
  .settings-grid-v202,
  .template-grid-v202,
  .template-test-grid-v202 {
    grid-template-columns: 1fr;
  }
}


/* V21.0 Smart Planung */
.v21-manager-tools {
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap:18px;
  margin:18px 0;
}
.v21-suggestions-box {
  display:grid;
  gap:10px;
  margin-top:14px;
}
.v21-suggestion-card {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:12px 14px;
  border:1px solid #e0ebf5;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.v21-score-badge {
  min-width:54px;
  text-align:center;
  padding:10px 12px;
  border-radius:16px;
  background:linear-gradient(180deg,#eef6ff,#e5f0ff);
  color:#1d4f84;
  font-weight:800;
}
.v21-department-panel {
  margin-top:16px;
}
.v21-schedule-table th,
.v21-schedule-table td {
  vertical-align:top;
}
.v21-cell {
  min-width:120px;
}
.v21-dashboard-alerts {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-bottom:18px;
}
@media (max-width:980px){
  .v21-manager-tools,
  .v21-dashboard-alerts {
    grid-template-columns:1fr;
  }
  .v21-cell {
    min-width:100px;
  }
}


/* V21.1 Auto-Besetzen */
.v211-smart-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:18px 0;
  padding:14px 16px;
  border:1px solid #dfe8f4;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  box-shadow:0 10px 20px rgba(16,42,67,.04);
}
.v211-smart-bar-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.v211-smart-panel {
  display:grid;
  gap:16px;
  margin-bottom:18px;
}
.v211-smart-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
}
.v211-smart-card {
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid #e0ebf5;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.v211-preview-list {
  display:grid;
  gap:10px;
}
.v211-preview-card {
  padding:12px 14px;
  border:1px solid #e0ebf5;
  border-radius:16px;
  background:#fff;
}
.v211-apply-form button {
  width:100%;
}
@media (max-width: 980px) {
  .v211-smart-bar,
  .v211-smart-grid {
    grid-template-columns:1fr;
    display:grid;
  }
  .v211-smart-bar {
    justify-content:stretch;
  }
}


/* V21.2 Admin fallback + SMTP onboarding */
.admin-login-box-v212 {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #dfe8f4;
  border-radius: 18px;
  background: linear-gradient(180deg,#ffffff,#f8fbff);
}
.admin-login-box-v212 summary {
  cursor: pointer;
  font-weight: 800;
  color: #17324d;
}
.admin-password-form-v212 {
  margin-top: 12px;
}
.smtp-onboarding-banner-v212 {
  margin-bottom: 18px;
  border: 1px solid #f0d5a5;
  background: linear-gradient(180deg,#fff9ee,#fff3de);
  color: #8a5a00;
}


/* V22.0 mobile polish + communication + week switcher */
.sr-only {
  position:absolute !important;
  width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.mobile-menu-button {
  background:#ffffff !important;
  color:#17324d !important;
  border:1px solid #dbe7f3 !important;
  display:grid !important;
  place-items:center;
  box-shadow:0 8px 18px rgba(16,42,67,.06);
}
.mobile-menu-icon {
  font-size:24px;
  line-height:1;
  font-weight:800;
  color:#17324d;
}
.communication-contact-card-v191 strong,
.communication-contact-card-v191 span,
.communication-contact-card-v191 small {
  word-break:break-word;
}
.mobile-safe-form-v220,
.my-requests-form-v184,
.my-requests-grid-v174,
.communication-layout-v191,
.communication-sidebar-v191,
.communication-thread-v191,
.v21-department-panel,
.week-switcher-v220 {
  min-width:0;
  max-width:100%;
}
.week-switcher-v220 {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.week-badge-v220 {
  padding:12px 16px;
  border-radius:999px;
  background:linear-gradient(180deg,#eef6ff,#e6f1ff);
  color:#1d4f84;
  font-weight:800;
  border:1px solid #d6e5f5;
}
.week-nav-btn-v220 {
  white-space:nowrap;
}
@media (max-width: 980px) {
  .my-request-create-grid-v184 {
    grid-template-columns:1fr !important;
  }
  .my-request-create-grid-v184 input,
  .my-request-create-grid-v184 textarea,
  .my-request-create-grid-v184 button,
  .communication-compose-v191 textarea {
    max-width:100%;
  }
  .week-switcher-v220 {
    display:grid;
    grid-template-columns:1fr;
  }
  .week-nav-btn-v220,
  .week-badge-v220 {
    width:100%;
    justify-content:center;
    text-align:center;
  }
  .communication-layout-v191 {
    gap:14px;
  }
}


/* V22.1 working time + mobile nav + dashboard links */
.dashboard-kpi-link-v221 {
  text-decoration:none;
  color:inherit;
  display:block;
  transition:transform .16s ease, box-shadow .16s ease;
}
.dashboard-kpi-link-v221:hover {
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(16,42,67,.10);
}
@media (max-width: 920px) {
  .mobile-bottom-nav {
    grid-template-columns: repeat(6,1fr) !important;
  }
  .mobile-bottom-nav a {
    font-size: 11px;
  }
  .mobile-bottom-nav a span {
    font-size: 10px;
  }
}


/* V22.2 Personalakte */
.personalakte-shell-v222 {
  display:grid;
  gap:18px;
}
.personalakte-hero-v222 {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.personalakte-hero-left-v222 {
  display:flex;
  gap:16px;
  align-items:center;
}
.personalakte-hero-right-v222 {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.personalakte-avatar-v222 {
  width:92px;
  height:92px;
  border-radius:24px;
  object-fit:cover;
  background:#fff;
  border:1px solid #dfe8f4;
}
.personalakte-avatar-fallback-v222 {
  display:grid;
  place-items:center;
  font-size:34px;
  font-weight:800;
  color:#1d4f84;
  background:linear-gradient(180deg,#eef6ff,#e6f1ff);
}
.personalakte-kpis-v222,
.personalakte-grid-v222 {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.personalakte-info-grid-v222 {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.personalakte-info-grid-v222 > div {
  padding:12px 14px;
  border-radius:16px;
  border:1px solid #e0ebf5;
  background:linear-gradient(180deg,#fff,#f8fbff);
  display:grid;
  gap:4px;
}
.personalakte-info-grid-v222 span {
  font-size:12px;
  color:#6b7a90;
}
.personalakte-form-v222 {
  display:grid;
  gap:14px;
}
.personalakte-form-grid-v222 {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.personalakte-section-title-v222 {
  font-weight:800;
  color:#17324d;
  padding-top:4px;
}
.personalakte-recent-list-v222 {
  display:grid;
  gap:10px;
}
.personalakte-recent-item-v222 {
  padding:12px 14px;
  border:1px solid #e0ebf5;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  display:grid;
  gap:4px;
}
.personalakte-assigned-hotels-v222 {
  margin-top:14px;
  display:grid;
  gap:8px;
}
.assigned-hotels-chips-v222 {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.personalakte-readonly-note-v222 {
  margin-bottom:12px;
}
.employee-action-row-v222 {
  margin-bottom:10px;
}
@media (max-width: 980px) {
  .personalakte-hero-v222,
  .personalakte-kpis-v222,
  .personalakte-grid-v222,
  .personalakte-info-grid-v222,
  .personalakte-form-grid-v222 {
    grid-template-columns:1fr;
    display:grid;
  }
  .personalakte-hero-left-v222 {
    align-items:flex-start;
  }
  .personalakte-hero-v222 {
    gap:14px;
  }
}


/* V22.3 Personalakte+ */
.personalakte-doc-list-v223 {
  display:grid;
  gap:12px;
  margin-top:14px;
}
.personalakte-doc-item-v223 {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border:1px solid #e0ebf5;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.personalakte-doc-actions-v223 {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.import-sample-v223 {
  white-space:pre-wrap;
  word-break:break-word;
  padding:14px;
  border-radius:16px;
  border:1px solid #e0ebf5;
  background:#f8fbff;
  color:#23425f;
  font-size:12px;
}
.employee-page-head-v223 {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
@media (max-width: 980px) {
  .personalakte-doc-item-v223 {
    display:grid;
    grid-template-columns:1fr;
  }
  .personalakte-doc-actions-v223 {
    justify-content:stretch;
  }
}


/* V22.5 UX personalakte links */
.personalakte-shell-v222 { display:grid; gap:18px; }
.personalakte-hero-v222 { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.personalakte-hero-left-v222 { display:flex; gap:16px; align-items:center; }
.personalakte-hero-right-v222 { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.personalakte-avatar-v222 { width:92px; height:92px; border-radius:24px; object-fit:cover; background:#fff; border:1px solid #dfe8f4; }
.personalakte-avatar-fallback-v222 { display:grid; place-items:center; font-size:34px; font-weight:800; color:#1d4f84; background:linear-gradient(180deg,#eef6ff,#e6f1ff); }
.personalakte-kpis-v222, .personalakte-grid-v222 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.personalakte-info-grid-v222 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.personalakte-info-grid-v222 > div { padding:12px 14px; border-radius:16px; border:1px solid #e0ebf5; background:linear-gradient(180deg,#fff,#f8fbff); display:grid; gap:4px; }
.personalakte-info-grid-v222 span { font-size:12px; color:#6b7a90; }
.personalakte-form-v222 { display:grid; gap:14px; }
.personalakte-form-grid-v222 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.personalakte-section-title-v222 { font-weight:800; color:#17324d; padding-top:4px; }
.personalakte-recent-list-v222 { display:grid; gap:10px; }
.personalakte-recent-item-v222 { padding:12px 14px; border:1px solid #e0ebf5; border-radius:16px; background:linear-gradient(180deg,#fff,#f8fbff); display:grid; gap:4px; }
.personalakte-assigned-hotels-v222 { margin-top:14px; display:grid; gap:8px; }
.assigned-hotels-chips-v222 { display:flex; flex-wrap:wrap; gap:8px; }
.personalakte-readonly-note-v222 { margin-bottom:12px; }
.employee-action-row-v222 { margin-bottom:10px; }
.personalakte-doc-list-v223 { display:grid; gap:12px; margin-top:14px; }
.personalakte-doc-item-v223 { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:14px 16px; border:1px solid #e0ebf5; border-radius:18px; background:linear-gradient(180deg,#fff,#f8fbff); }
.personalakte-doc-actions-v223 { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.import-sample-v223 { white-space:pre-wrap; word-break:break-word; padding:14px; border-radius:16px; border:1px solid #e0ebf5; background:#f8fbff; color:#23425f; font-size:12px; }
.employee-page-head-v223 { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.employee-link-v225 { color:inherit; text-decoration:none; border-bottom:1px dashed #c2d4e8; }
.employee-link-v225:hover { color:#1d4f84; border-bottom-color:#1d4f84; }
.dashboard-kpi-link-v221 { text-decoration:none; color:inherit; display:block; transition:transform .16s ease, box-shadow .16s ease; }
.dashboard-kpi-link-v221:hover { transform:translateY(-2px); box-shadow:0 12px 24px rgba(16,42,67,.10); }
@media (max-width: 980px) {
  .personalakte-hero-v222, .personalakte-kpis-v222, .personalakte-grid-v222, .personalakte-info-grid-v222, .personalakte-form-grid-v222 { grid-template-columns:1fr; display:grid; }
  .personalakte-hero-left-v222 { align-items:flex-start; }
  .personalakte-doc-item-v223 { display:grid; grid-template-columns:1fr; }
}


/* V22.6 final design + communication */
.sidebar {
  background: linear-gradient(180deg, #f9fbfe 0%, #eef5fb 100%);
  color: #17324d;
  border-right: 1px solid #dfe8f2;
}
.brand-copy p, .hotel-switcher label, .hotel-switcher .muted { color: #6c7b8f; }
.main-nav a {
  background: #fff;
  border: 1px solid #dde8f3;
  color: #19324b;
  box-shadow: 0 6px 18px rgba(20,66,111,.05);
}
.main-nav a:hover { background:#f7fbff; }
.flat-panel { background: rgba(255,255,255,.82); border:1px solid #dde8f3; }
.nav-icon-badge { width:28px; display:inline-flex; justify-content:center; }
.v226-schedule-frame {
  background: rgba(255,255,255,.86);
  border: 1px solid #e1eaf3;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(20,66,111,.08);
}
.comm-app-v226 {
  display:grid;
  grid-template-columns: 360px minmax(0,1fr);
  gap:18px;
}
.comm-list-v226, .comm-thread-v226 { min-height: 70vh; }
.comm-list-head-v226 { margin-bottom: 12px; }
.comm-conversation-list-v226 { display:grid; gap:10px; }
.comm-conversation-item-v226 {
  display:grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
  padding:12px;
  border-radius:18px;
  border:1px solid #e1eaf3;
  text-decoration:none;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.comm-conversation-item-v226.is-active { border-color:#89b7e8; box-shadow:0 10px 24px rgba(20,66,111,.08); }
.comm-avatar-v226 {
  width:44px; height:44px; border-radius:14px; display:grid; place-items:center;
  background:linear-gradient(135deg,#dff0ff,#eaf8ee); font-weight:800; color:#1d4f84;
}
.comm-meta-v226 { min-width:0; }
.comm-topline-v226 { display:flex; justify-content:space-between; gap:8px; margin-bottom:4px; }
.comm-preview-v226 { color:#425b76; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.comm-unread-badge-v226 {
  min-width:24px; height:24px; border-radius:999px; display:grid; place-items:center;
  background:#1e78d7; color:#fff; font-size:12px; font-weight:700;
}
.comm-newchat-box-v226 { margin-top:16px; padding-top:16px; border-top:1px solid #e5edf6; }
.comm-thread-head-v226 { padding-bottom:12px; border-bottom:1px solid #e5edf6; margin-bottom:14px; }
.comm-thread-messages-v226 { display:grid; gap:12px; max-height:54vh; overflow:auto; padding-right:4px; }
.comm-bubble-v226 {
  max-width:76%;
  padding:12px 14px;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f5f9ff);
  border:1px solid #e2eaf3;
}
.comm-bubble-v226.is-own {
  margin-left:auto;
  background:linear-gradient(180deg,#e8f3ff,#dceeff);
  border-color:#bfd8f3;
}
.comm-bubble-body-v226 { white-space:pre-wrap; line-height:1.5; margin-bottom:6px; }
.comm-compose-v226 { display:grid; gap:12px; margin-top:16px; }
.latest-unread-popup-v226 {
  position: sticky;
  top: 12px;
  z-index: 21;
  display:grid;
  gap:4px;
  margin: 0 0 14px auto;
  width:min(380px, 100%);
  text-decoration:none;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(135deg,#1e78d7,#35b6c8);
  color:#fff;
  box-shadow:0 16px 34px rgba(20,66,111,.20);
}
.latest-unread-popup-v226 span { opacity:.95; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width: 980px) {
  .comm-app-v226 { grid-template-columns: 1fr; }
  .comm-list-v226, .comm-thread-v226 { min-height: unset; }
  .latest-unread-popup-v226 { width:100%; }
}


/* V22.7 Realtime communication */
.communication-layout-v227 {
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:18px;
}
.communication-sidebar-v227,
.communication-thread-v227 {
  min-height:72vh;
}
.communication-contact-list-v227 {
  display:grid;
  gap:10px;
}
.communication-contact-card-v227 {
  display:grid;
  gap:6px;
  padding:14px 16px;
  border:1px solid #dbe7f3;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  text-decoration:none;
  color:#17324d;
}
.communication-contact-card-v227.is-active {
  border-color:#93c5fd;
  background:linear-gradient(180deg,#eef6ff,#e5f0ff);
}
.chat-card-top-v227,
.chat-card-bottom-v227 {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.chat-preview-v227 {
  color:#5f738a;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-badge-v227 {
  min-width:24px;
  height:24px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#2563eb;
  color:#fff;
  font-size:12px;
  font-weight:800;
}
.chat-badge-v227.is-hidden {
  visibility:hidden;
}
.new-chat-picker-v227 {
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #e5edf6;
  display:none;
}
body.show-new-chat .new-chat-picker-v227 {
  display:block;
}
.communication-thread-list-v227 {
  display:grid;
  gap:12px;
  max-height:58vh;
  overflow:auto;
  padding-right:4px;
}
.message-bubble-v227 {
  max-width:78%;
  padding:12px 14px;
  border-radius:18px 18px 18px 8px;
  background:linear-gradient(180deg,#f8fbff,#eef5fb);
  border:1px solid #dde9f5;
}
.message-bubble-v227.is-own {
  margin-left:auto;
  border-radius:18px 18px 8px 18px;
  background:linear-gradient(180deg,#e7f3ff,#d9ecff);
}
.message-bubble-head-v227 {
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
  font-size:12px;
  color:#60758c;
}
.message-content-v227 {
  white-space:pre-wrap;
  word-break:break-word;
}
.communication-compose-v227 {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  margin-top:14px;
  align-items:end;
}
.communication-compose-v227 textarea {
  min-height:88px;
}
.chat-toast-v227,
.global-message-toast-v227 {
  position:fixed;
  right:20px;
  bottom:92px;
  z-index:1200;
  max-width:340px;
  padding:0;
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:all .18s ease;
}
.chat-toast-v227.is-visible,
.global-message-toast-v227.is-visible {
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.chat-toast-v227,
.global-message-toast-v227 a {
  text-decoration:none;
}
.chat-toast-v227,
.global-message-toast-v227 {
  background:transparent;
}
.chat-toast-v227 strong,
.global-message-toast-v227 strong {
  display:block;
  margin-bottom:4px;
}
.chat-toast-v227,
.global-message-toast-v227 a {
  display:block;
  border-radius:18px;
  border:1px solid #dbe7f3;
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:0 14px 34px rgba(16,42,67,.18);
  color:#17324d;
  padding:14px 16px;
}
.chat-toast-v227 span,
.global-message-toast-v227 span {
  display:block;
  color:#5f738a;
  font-size:13px;
}
@media (max-width: 920px) {
  .communication-layout-v227 {
    grid-template-columns:1fr;
  }
  .communication-compose-v227 {
    grid-template-columns:1fr;
  }
  .chat-toast-v227,
  .global-message-toast-v227 {
    left:12px;
    right:12px;
    bottom:98px;
    max-width:none;
  }
}


/* V22.9 verification polish */
.manager-direct-add-v228 summary {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #d9e7f5;
  color: #1d4f84;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
}
.manager-direct-add-v228 form {
  margin-top: 8px;
}
.schichtprofile-info-v229 {
  margin-bottom: 10px;
}


/* V23.0 schedule final */
.manager-direct-add-v228 summary {
  width: auto;
  min-height: 28px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #d9e7f5;
  color: #1d4f84;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
}
.v211-smart-card .small-text.muted {
  margin-top: 10px;
}


/* V23.1 mobile & tabs */
.settings-tabs-v231,
.log-tabs-v231{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.settings-tabs-v231 button,
.log-tabs-v231 button{
  border:1px solid #dce7f4;
  background:#f7fbff;
  color:#23425f;
  border-radius:14px;
  padding:10px 14px;
  font-weight:700;
}
.settings-tabs-v231 button.is-active,
.log-tabs-v231 button.is-active{
  background:linear-gradient(90deg,#2f6fd6,#39b6d8);
  color:#fff;
  border-color:transparent;
}
.settings-tab-pane-v231,
.log-tab-pane-v231{
  display:none;
}
.settings-tab-pane-v231.is-active,
.log-tab-pane-v231.is-active{
  display:block;
}
.mobile-readable-v231 + .help-stack,
.mobile-readable-v231 + .panel,
.help-stack{
  max-width:100%;
}
@media (max-width: 768px){
  .help-card,
  .panel,
  .glass-panel,
  .requests-card,
  .request-form-card{
    overflow:hidden;
  }
  .template-grid-v202,
  .form-grid,
  .personalakte-form-grid-v222,
  .mobile-wish-form-v185{
    grid-template-columns:1fr !important;
    display:grid !important;
  }
  input, select, textarea, button{
    max-width:100%;
    box-sizing:border-box;
  }
  .communication-layout-v227{
    grid-template-columns:1fr !important;
  }
  .communication-thread-v227{
    min-height:auto;
  }
  .mobile-chat-helper-v231{
    font-size:13px;
    color:#6b7a90;
    margin-top:6px;
  }
  .global-message-toast-v227 a,
  .chat-toast-v227{
    border-radius:16px;
    padding:12px 14px;
  }
}


/* V23.2 mobile focus */
@media (max-width: 768px){
  .mobile-week-nav-v232{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-bottom:14px;
    text-align:center;
  }
  .mobile-week-nav-v232 span{
    font-weight:700;
    color:#23425f;
  }
  .schedule-topbar-v183{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px;
  }
  .schedule-topbar-v183 .btn,
  .mobile-week-nav-v232 .btn{
    width:100%;
    justify-content:center;
  }

  .mobile-department-card-v232{
    overflow:hidden;
  }
  .mobile-department-card-v232 table,
  .mobile-department-card-v232 .schedule-grid-v183{
    display:block;
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .mobile-department-card-v232 th,
  .mobile-department-card-v232 td{
    min-width:132px;
    vertical-align:top;
  }
  .mobile-department-card-v232 th:first-child,
  .mobile-department-card-v232 td:first-child{
    min-width:150px;
    position:sticky;
    left:0;
    z-index:2;
    background:#fff;
  }
  .mobile-department-card-v232 tr:nth-child(odd) td:first-child{
    background:#fbfdff;
  }

  .shift-chip{
    min-width:110px;
    width:auto;
    padding:10px 12px;
  }
  .chip-title{
    font-size:15px;
    line-height:1.2;
    word-break:break-word;
  }
  .chip-time{
    font-size:13px;
    line-height:1.25;
  }
  .manager-direct-add-v228 summary{
    width:100%;
    justify-content:center;
  }
  .mobile-wish-box-v185{
    width:100%;
  }
  .mobile-wish-form-v185 select,
  .mobile-wish-form-v185 button,
  .mobile-wish-form-v185 input{
    width:100%;
  }

  .communication-sidebar-v227{
    min-height:auto;
  }
  .communication-contact-card-v227{
    border-radius:20px;
    padding:16px;
  }
  .communication-thread-v227{
    display:none;
  }
  .communication-thread-v227.mobile-chat-open-v232{
    display:block;
  }
  .communication-layout-v227:has(.mobile-chat-open-v232) .communication-sidebar-v227{
    display:none;
  }
  .mobile-chat-back-v232{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-bottom:10px;
    text-decoration:none;
    color:#2f6fd6;
    font-weight:700;
  }
  .communication-thread-list-v227{
    max-height:none;
    min-height:45vh;
  }
  .message-bubble-v227{
    max-width:88%;
  }
  .communication-compose-v227{
    position:sticky;
    bottom:84px;
    background:#fff;
    padding-top:10px;
  }

  .request-form-card,
  .requests-card,
  .panel,
  .glass-panel{
    overflow:hidden;
  }
  .request-form-card input,
  .request-form-card select,
  .request-form-card textarea,
  .requests-card input,
  .requests-card select,
  .requests-card textarea{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }

  .help-stack,
  .help-card{
    width:100%;
  }
  .help-card{
    padding:14px;
    border-radius:18px;
  }
  .help-card summary{
    font-size:18px;
    line-height:1.3;
  }
  .help-card div,
  .help-card p,
  .help-card li{
    font-size:15px;
    line-height:1.55;
    word-break:break-word;
  }
}


/* V23.3 dashboard+logs */
.dashboard-tabs-v233{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.dashboard-tabs-v233 button{
  border:1px solid #dce7f4;
  background:#f7fbff;
  color:#23425f;
  border-radius:14px;
  padding:10px 14px;
  font-weight:700;
}
.dashboard-tabs-v233 button.is-active{
  background:linear-gradient(90deg,#2f6fd6,#39b6d8);
  color:#fff;
  border-color:transparent;
}
.dashboard-tab-pane-v233{display:none;}
.dashboard-tab-pane-v233.is-active{display:block;}
.log-entry-list-v233{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:8px;
}
.system-event-list-v233{
  display:grid;
  gap:10px;
}
.system-event-row-v233{
  border:1px solid #dce7f4;
  background:#f8fbff;
  border-radius:16px;
  padding:12px 14px;
  display:grid;
  gap:6px;
}
.system-event-row-v233 strong{
  color:#1d4f84;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
@media (max-width: 768px){
  .dashboard-tabs-v233 button{
    flex:1 1 auto;
  }
}


/* V24 fixes */
.week-picker-v240{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 14px 0;
}
.working-time-filter-v240{
  margin-bottom:14px;
}
.settings-tabs-v240,
.settings-tab-pane-v240{}
.settings-tab-pane-v240{display:none;}
.settings-tab-pane-v240.is-active{display:block;}
@media (max-width: 768px){
  .week-picker-v240{
    grid-template-columns:1fr;
  }
}


/* V25 productivity upgrade */
.schedule-controlbar-v250{
  align-items:center;
}
.week-label-v250{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#23425f;
  min-height:44px;
  border:1px solid #dce7f4;
  background:#f8fbff;
  border-radius:14px;
  padding:0 12px;
}
@media (max-width: 768px){
  .week-label-v250{
    min-height:40px;
    font-size:14px;
  }
}


/* V25.1 tab + smtp fix */
.settings-tabs-v251{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.settings-tabs-v251 button{
  border:1px solid #dce7f4;
  background:#f7fbff;
  color:#23425f;
  border-radius:14px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}
.settings-tabs-v251 button.is-active{
  background:linear-gradient(90deg,#2f6fd6,#39b6d8);
  color:#fff;
  border-color:transparent;
}
.settings-tab-pane-v251{display:none;}
.settings-tab-pane-v251.is-active{display:block;}
@media (max-width:768px){
  .settings-tabs-v251 button{flex:1 1 auto;}
}


/* V25.3 full system fix */
.settings-tabs-v253{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.settings-tabs-v253 button{
  border:1px solid #dce7f4;
  background:#f7fbff;
  color:#23425f;
  border-radius:14px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}
.settings-tabs-v253 button.is-active{
  background:linear-gradient(90deg,#2f6fd6,#39b6d8);
  color:#fff;
  border-color:transparent;
}
.settings-pane-v253{display:none;}
.settings-pane-v253.is-active{display:block;}


/* V25.4 working time + mobile schedule fix */
.v254-mobile-dept-list { display:none; }
@media (max-width: 920px){
  .v254-desktop-schedule-wrap { display:none; }
  .v254-mobile-dept-list {
    display:grid;
    gap:14px;
  }
  .v254-mobile-row-card {
    border:1px solid #dfe8f4;
    border-radius:22px;
    background:linear-gradient(180deg,#ffffff,#f8fbff);
    padding:14px;
    box-shadow:0 10px 24px rgba(16,42,67,.05);
  }
  .v254-mobile-row-head {
    margin-bottom:12px;
  }
  .v254-mobile-day-grid {
    display:grid;
    gap:10px;
  }
  .v254-mobile-day-card {
    border:1px solid #e5edf6;
    border-radius:18px;
    background:#fff;
    padding:12px;
    display:grid;
    gap:10px;
  }
  .v254-mobile-day-title {
    font-weight:800;
    color:#23425f;
    font-size:14px;
  }
  .v254-mobile-day-card .shift-chip {
    min-height:64px;
  }
  .v254-mobile-wish-modal {
    margin-top:0;
  }
  .v254-mobile-wish-modal summary {
    padding:12px 14px;
    border-radius:14px;
    background:#f6fbff;
    border:1px solid #dfe8f4;
  }
  .v254-mobile-wish-modal[open] {
    position:fixed;
    inset:0;
    z-index:60;
    margin:0;
    padding:24px 14px;
    background:rgba(9,20,33,.42);
    display:grid;
    align-items:center;
  }
  .v254-mobile-wish-modal[open] summary,
  .v254-mobile-wish-modal[open] form {
    width:min(100%, 420px);
    margin:0 auto;
    background:#fff;
  }
  .v254-mobile-wish-modal[open] summary {
    border-radius:20px 20px 0 0;
    padding:16px 18px;
    border-bottom:1px solid #e7eef6;
    border-left:0;
    border-right:0;
    border-top:0;
  }
  .v254-mobile-wish-modal[open] form {
    border-radius:0 0 20px 20px;
    padding:16px 18px 18px;
    box-shadow:0 18px 36px rgba(16,42,67,.16);
  }
  .v254-mobile-wish-modal[open] .mobile-wish-choice-v185 {
    grid-template-columns:1fr;
  }
  .v254-mobile-wish-modal[open] input[type="text"],
  .v254-mobile-wish-modal[open] select,
  .v254-mobile-wish-modal[open] button {
    width:100%;
    max-width:100%;
  }
}


/* V26 premium mobile schedule */
.v260-week-chipbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin:0 0 14px 0;
}
.v260-week-chip{
  border:1px solid #dce7f4;
  background:#f8fbff;
  color:#23425f;
  border-radius:999px;
  padding:10px 14px;
  text-decoration:none;
  font-weight:700;
}
.v260-week-chip.is-current{
  background:linear-gradient(90deg,#2f6fd6,#39b6d8);
  color:#fff;
  border-color:transparent;
}
.v260-mobile-intro{
  margin-bottom:6px;
}
.v260-mobile-day-subtitle{
  font-size:12px;
  color:#7b8aa0;
  margin-top:-6px;
}
@media (max-width: 920px){
  .v260-week-chipbar{
    display:grid;
    grid-template-columns:1fr;
  }
  .v260-week-chip{
    text-align:center;
  }
  .v254-mobile-row-card{
    border-radius:24px;
    padding:16px;
  }
  .v254-mobile-row-head strong{
    display:block;
    font-size:22px;
    line-height:1.15;
    color:#23425f;
  }
  .v254-mobile-row-head .small-text{
    font-size:14px;
    margin-top:4px;
  }
  .v254-mobile-day-grid{
    gap:12px;
  }
  .v254-mobile-day-card{
    border-radius:20px;
    padding:14px;
    box-shadow:0 6px 18px rgba(16,42,67,.05);
  }
  .v254-mobile-day-title{
    font-size:15px;
  }
  .v254-mobile-day-card .shift-chip{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:14px 16px;
    border-radius:16px;
  }
  .v254-mobile-day-card .chip-title{
    font-size:18px;
    line-height:1.2;
  }
  .v254-mobile-day-card .chip-time{
    font-size:14px;
    line-height:1.3;
  }
  .v254-mobile-wish-modal[open]{
    padding:18px;
  }
  .v254-mobile-wish-modal[open] summary,
  .v254-mobile-wish-modal[open] form{
    width:min(100%, 460px);
  }
  .v254-mobile-wish-modal[open] summary{
    font-size:18px;
    font-weight:800;
  }
  .v254-mobile-wish-modal[open] form{
    display:grid;
    gap:14px;
  }
  .v254-mobile-wish-modal[open] .mobile-wish-choice-v185 label{
    min-height:54px;
    display:flex;
    align-items:center;
    gap:10px;
    border:1px solid #dfe8f4;
    border-radius:16px;
    padding:0 14px;
    background:#fbfdff;
  }
  .v254-mobile-wish-modal[open] button{
    min-height:52px;
    border-radius:16px;
    font-weight:800;
  }
}


/* V27.2 mobile schedule cleanup */
.v272-mobile-dept-list { display:none; }
.v272-modal { display:none; }
body.modal-open-v272 { overflow:hidden; }

@media (max-width: 920px){
  .v254-desktop-schedule-wrap { display:none !important; }
  .v272-mobile-dept-list {
    display:grid;
    gap:14px;
    margin-top:10px;
  }
  .v272-mobile-employee-card {
    background:#fff;
    border:1px solid #dfe8f4;
    border-radius:24px;
    padding:14px;
    box-shadow:0 10px 24px rgba(16,42,67,.05);
  }
  .v272-mobile-employee-head {
    margin-bottom:12px;
  }
  .v272-mobile-employee-head strong {
    display:block;
    font-size:20px;
    line-height:1.15;
    color:#23425f;
    margin-bottom:4px;
  }
  .v272-mobile-day-grid {
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .v272-mobile-day-card {
    background:#fbfdff;
    border:1px solid #e2eaf4;
    border-radius:18px;
    padding:12px;
    display:grid;
    gap:10px;
  }
  .v272-mobile-day-title {
    font-size:15px;
    font-weight:800;
    color:#23425f;
  }
  .v272-mobile-day-card .shift-chip {
    min-height:auto;
    padding:12px 14px;
  }
  .v272-open-wish-btn {
    width:100%;
    justify-content:center;
    min-height:48px;
    border-radius:16px;
  }
  .v272-modal.is-open {
    display:flex;
    position:fixed;
    inset:0;
    z-index:1200;
    background:rgba(9,20,33,.48);
    align-items:flex-end;
    justify-content:center;
    padding:14px;
  }
  .v272-modal-card {
    width:min(100%, 440px);
    background:#fff;
    border-radius:22px;
    box-shadow:0 20px 50px rgba(15,23,42,.28);
    overflow:hidden;
  }
  .v272-modal-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 18px;
    border-bottom:1px solid #e8eef6;
  }
  .v272-modal-close {
    width:42px;
    height:42px;
    padding:0;
    border-radius:12px;
    background:#eef6ff;
    color:#23425f;
  }
  .v272-modal-form {
    display:grid;
    gap:14px;
    padding:18px;
  }
  .v272-modal-choice {
    grid-template-columns:1fr;
  }
  .v272-modal-choice label {
    display:flex;
    align-items:center;
    gap:10px;
    min-height:52px;
    padding:0 14px;
    border:1px solid #dfe8f4;
    border-radius:16px;
    background:#fbfdff;
  }
  .v272-modal-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
}


/* V28 final fixes */
.help-card details { border-top:1px solid #e8eef6; padding:12px 0; }
.help-card details:first-child { border-top:0; }
.help-card summary { font-weight:800; cursor:pointer; }

.hotel-edit-save-row-v280 { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }

.v280-mobile-schedule { display:none; }
.v280-modal { display:none; }
body.modal-open-v280 { overflow:hidden; }

@media (max-width: 920px){
  .v254-desktop-schedule-wrap { display:none !important; }
  .v280-mobile-schedule { display:grid; gap:12px; }
  .v280-shift-card {
    background:#fff;
    border:1px solid #e6edf5;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 8px 18px rgba(16,42,67,.06);
  }
  .v280-shift-card-head {
    padding:14px 14px 10px;
    background:linear-gradient(180deg,#ffffff,#f8fbff);
    border-bottom:1px solid #edf2f7;
  }
  .v280-shift-card-head strong { font-size:18px; color:#20384f; }
  .v280-day-list { display:grid; }
  .v280-day-row {
    display:grid;
    grid-template-columns:88px 1fr auto;
    gap:10px;
    align-items:center;
    padding:12px 14px;
    border-top:1px solid #edf2f7;
  }
  .v280-day-row:first-child { border-top:0; }
  .v280-day-label {
    font-size:13px;
    font-weight:800;
    color:#23425f;
  }
  .v280-day-content .shift-chip {
    min-height:auto;
    padding:12px 14px;
    border-radius:14px;
  }
  .v280-day-action .btn,
  .v280-day-action summary {
    min-width:78px;
    justify-content:center;
  }
  .v280-add-box summary {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:11px 14px;
    background:#eef6ff;
    border:1px solid #dce7f4;
    border-radius:14px;
    color:#23425f;
    font-weight:700;
  }
  .v280-modal.is-open {
    display:flex;
    position:fixed;
    inset:0;
    z-index:1400;
    background:rgba(7,18,28,.44);
    align-items:flex-end;
    justify-content:center;
    padding:12px;
  }
  .v280-modal-card {
    width:min(100%, 460px);
    background:#fff;
    border-radius:24px 24px 18px 18px;
    overflow:hidden;
    box-shadow:0 24px 60px rgba(15,23,42,.28);
  }
  .v280-modal-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 18px;
    border-bottom:1px solid #ecf1f7;
  }
  .v280-modal-close {
    width:42px; height:42px; padding:0;
    border-radius:12px;
    background:#eef6ff;
    color:#23425f;
  }
  .v280-modal-form { display:grid; gap:14px; padding:18px; }
  .v280-modal-choice { grid-template-columns:1fr; }
  .v280-modal-choice label {
    min-height:50px;
    display:flex;
    align-items:center;
    gap:10px;
    border:1px solid #dce7f4;
    border-radius:16px;
    padding:0 14px;
    background:#fbfdff;
  }
  .v280-modal-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

  /* WhatsApp-like mobile chat */
  .communication-layout-v227 { display:block; }
  .communication-sidebar-v227,
  .communication-thread-v227 {
    border-radius:0 !important;
    border:none !important;
    box-shadow:none !important;
    background:#efeae2 !important;
    padding:0 !important;
  }
  .communication-header-v227 .btn { display:none; }
  .communication-contact-list-v227 { display:grid; gap:0; }
  .communication-contact-card-v227 {
    border-radius:0 !important;
    padding:12px 14px !important;
    background:#fff !important;
    border-bottom:1px solid #e8ecef !important;
  }
  .communication-thread-v227.mobile-chat-open-v232 {
    display:block;
    min-height:calc(100vh - 150px);
    background:#efeae2 !important;
  }
  .communication-thread-list-v227 {
    padding:14px !important;
    background:#efeae2 !important;
  }
  .message-bubble-v227 {
    max-width:82%;
    border-radius:12px 12px 12px 4px;
    background:#fff;
    padding:8px 10px;
    box-shadow:0 1px 1px rgba(0,0,0,.08);
    margin-bottom:8px;
  }
  .message-bubble-v227.is-own {
    margin-left:auto;
    background:#d9fdd3;
    border-radius:12px 12px 4px 12px;
  }
  .message-bubble-head-v227 strong,
  .message-bubble-head-v227 span { display:none; }
  .communication-compose-v227 {
    position:sticky;
    bottom:82px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    padding:10px !important;
    background:#f0f2f5 !important;
    border-top:1px solid #e3e7eb;
  }
  .communication-compose-v227 textarea {
    min-height:44px;
    max-height:120px;
    border-radius:22px;
    resize:none;
    padding:12px 14px;
    background:#fff;
  }
  .communication-compose-v227 button {
    align-self:stretch;
    border-radius:20px;
  }

  /* Cleaner dashboard on mobile */
  .dashboard-tabs-v233 { display:grid; grid-template-columns:1fr 1fr; }
  .alert-strip-v182, .dashboard-kpi-grid { grid-template-columns:1fr 1fr !important; gap:12px; }
}


.mobile-new-chat-v292 { margin: 10px 0 14px; }
.mobile-new-chat-v292 .btn { width: 100%; justify-content: center; }


/* V29.3 targeted fixes */
.mobile-new-chat-v292 { margin: 12px 0 16px; }
.mobile-new-chat-v292 .btn { width:100%; justify-content:center; }

@media (max-width: 920px){
  /* dashboard employee cleanup */
  .alert-strip-v182 { display:none !important; }
  .dashboard-kpi-grid-v17 { margin-top: 12px; }
  .dashboard-kpi-card { min-height: 150px; }

  /* old mobile schedule hidden */
  .v254-mobile-dept-list, .v280-mobile-schedule, .v272-modal, .v280-modal { display:none !important; }

  .v293-mobile-shell { display:block; margin-top: 14px; }
  .v293-mobile-switch {
    display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px;
  }
  .v293-mobile-switch button {
    min-height:52px; border-radius:18px; border:1px solid #dbe7f3;
    background:#fff; color:#23425f; font-weight:800;
  }
  .v293-mobile-switch button.is-active {
    background:linear-gradient(135deg,#3c79df,#49c5d9); color:#fff; border-color:transparent;
  }
  .v293-mobile-panel { display:none; }
  .v293-mobile-panel.is-active { display:block; }

  .v293-mobile-weekhead {
    display:grid; grid-template-columns:52px 1fr 52px; gap:8px; align-items:center;
    background:#fff; border:1px solid #e0eaf4; border-radius:18px; padding:10px 12px; margin-bottom:12px;
  }
  .v293-mobile-weekhead.compact { margin-bottom:10px; }
  .v293-mobile-weekhead .ghost-btn { min-height:44px; padding:0; }

  .v293-my-plan-card, .v293-hotel-card {
    background:#fff; border:1px solid #e2eaf4; border-radius:22px; padding:14px; margin-bottom:14px;
    box-shadow:0 10px 20px rgba(16,42,67,.05);
  }
  .v293-my-plan-title, .v293-hotel-card h3 { margin:0 0 12px; color:#23425f; font-size:18px; }
  .v293-my-plan-row {
    display:grid; grid-template-columns:88px 1fr auto; gap:10px; align-items:center;
    padding:10px 0; border-top:1px solid #edf2f7;
  }
  .v293-my-plan-row:first-of-type { border-top:0; padding-top:0; }
  .v293-my-plan-date strong { font-size:14px; color:#20384f; }
  .v293-status-row {
    min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding:0 14px; border-radius:14px; background:#f8fbff; border:1px solid #dce7f4;
    color:#23425f; font-weight:700;
  }
  .v293-status-row.working { border-left:4px solid #2fbf71; }
  .v293-status-row.absence { border-left:4px solid #f0b429; }
  .v293-status-row.wish { border-left:4px solid #49c5d9; }
  .v293-status-row.muted { color:#7c8ea3; font-weight:500; }
  .v293-wish-open-btn {
    min-width:74px; min-height:44px; border-radius:14px; border:1px solid #dce7f4;
    background:#eef6ff; color:#23425f; font-weight:800;
  }

  .v293-hotel-day { border-top:1px solid #edf2f7; padding:10px 0; }
  .v293-hotel-day:first-of-type { border-top:0; padding-top:0; }
  .v293-hotel-day-label { font-weight:800; color:#23425f; margin-bottom:8px; }
  .v293-hotel-line {
    display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px dashed #edf2f7;
  }
  .v293-hotel-line:last-child { border-bottom:0; }
  .v293-hotel-line span { white-space:nowrap; color:#567; }
  .v293-hotel-line.muted { color:#7c8ea3; }

  .v293-sheet { display:none; }
  .v293-sheet.is-open {
    display:flex; position:fixed; inset:0; background:rgba(15,23,42,.42); z-index:1500;
    align-items:flex-end; justify-content:center; padding:12px;
  }
  .v293-sheet-card {
    width:min(100%, 460px); background:#fff; border-radius:24px 24px 18px 18px;
    overflow:hidden; box-shadow:0 24px 60px rgba(15,23,42,.28);
  }
  .v293-sheet-head {
    display:flex; align-items:center; justify-content:space-between; padding:16px 18px;
    background:linear-gradient(135deg,#ebfff8,#e7f7ff); border-bottom:1px solid #e7edf5;
  }
  .v293-sheet-close {
    width:42px; height:42px; padding:0; border-radius:12px; background:#fff; color:#23425f;
  }
  .v293-sheet-weekbar {
    display:grid; grid-template-columns:repeat(7,1fr); gap:6px; padding:12px 14px 4px;
  }
  .v293-sheet-weekbar span {
    display:flex; align-items:center; justify-content:center; min-height:36px; border-radius:12px;
    background:#f3f7fb; color:#688; font-size:11px; text-align:center; padding:4px 6px;
  }
  .v293-sheet-weekbar span.is-active { background:#dff6ea; color:#1c7b4f; font-weight:800; }
  .v293-sheet-form { display:grid; gap:14px; padding:14px; }
  .v293-choice-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
  .v293-choice-grid label {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
    min-height:72px; border:1px solid #dce7f4; border-radius:16px; background:#fbfdff; font-weight:700; color:#23425f;
  }
  .v293-choice-grid input { transform:scale(1.2); }
  .v293-sheet-actions button { width:100%; min-height:52px; border-radius:16px; }

  body.v293-sheet-open { overflow:hidden; }

  /* mobile communication refinement */
  .communication-layout-v227 { display:block; }
  .communication-sidebar-v227, .communication-thread-v227 { padding:0 !important; }
  .communication-contact-card-v227 { background:#fff !important; border-radius:18px !important; margin-bottom:8px; }
  .communication-thread-list-v227 { min-height:50vh; }
}


/* ===== V30 clean rebuild ===== */
.dashboard-tabs-v30{display:flex;gap:10px;margin-bottom:16px}
.dashboard-tabs-v30 button{padding:12px 18px;border-radius:16px;background:#fff;border:1px solid #dce7f4;font-weight:800;color:#23425f}
.dashboard-tabs-v30 button.is-active{background:linear-gradient(135deg,#3c79df,#49c5d9);color:#fff;border-color:transparent}
.dashboard-pane-v30{display:none}
.dashboard-pane-v30.is-active{display:block}
.dashboard-hero-v30{display:grid;grid-template-columns:1.3fr .9fr;gap:18px;margin-bottom:18px}
.dashboard-hero-copy-v30,.dashboard-hero-hotel-v30{background:#fff;border:1px solid #e2eaf4;border-radius:24px;padding:24px;box-shadow:0 10px 20px rgba(16,42,67,.05)}
.dashboard-badge-v30{display:inline-flex;padding:8px 14px;border-radius:999px;background:#eef6ff;color:#2d5b86;font-weight:700;margin-bottom:12px}
.dashboard-hero-copy-v30 h1{margin:0 0 10px;font-size:42px;line-height:1.05;color:#20384f}
.dashboard-hero-copy-v30 p{margin:0;color:#687b8e;font-size:18px;line-height:1.45}
.dashboard-hero-hotel-v30 span{display:block;font-size:14px;color:#7b8da4;margin-bottom:10px}
.dashboard-hero-hotel-v30 strong{display:block;font-size:32px;color:#20384f}
.dashboard-hero-hotel-v30 small{display:block;margin-top:8px;color:#7b8da4}
.dashboard-grid-v30{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.dashboard-grid-v30.employee{grid-template-columns:repeat(4,minmax(0,1fr))}
.dashboard-card-v30{display:flex;flex-direction:column;justify-content:space-between;min-height:180px;padding:22px;border-radius:24px;text-decoration:none;border:1px solid #dce7f4;box-shadow:0 10px 20px rgba(16,42,67,.05);overflow:hidden}
.dashboard-card-v30 span{font-size:14px;font-weight:800;color:#6c7d90;text-transform:none}
.dashboard-card-v30 strong{font-size:34px;line-height:1.05;color:#23425f;margin:10px 0 12px;word-break:break-word}
.dashboard-card-v30 small{font-size:16px;line-height:1.35;color:#6c7d90}
.dashboard-card-v30.tone-blue{background:linear-gradient(180deg,#f3f8ff,#e5f0ff)}
.dashboard-card-v30.tone-amber{background:linear-gradient(180deg,#fff7ea,#fff1d9)}
.dashboard-card-v30.tone-purple{background:linear-gradient(180deg,#faf3ff,#f0e6ff)}
.dashboard-card-v30.tone-green{background:linear-gradient(180deg,#f2fff6,#e7faee)}
.quick-actions-v30{display:flex;flex-wrap:wrap;gap:12px}
.mobile-new-chat-v30{display:none}

/* schedule desktop */
.schedule-toolbar-v30{display:grid;gap:16px;margin-bottom:18px}
.schedule-week-nav-v30{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}
.schedule-week-nav-v30 .btn:last-child{justify-self:end}
.week-label-v30{font-size:22px;font-weight:800;color:#23425f;text-align:center}
.schedule-actions-v30{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.inline-form-v30{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.schedule-publish-state-v30{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:999px;font-weight:800;width:max-content}
.schedule-publish-state-v30.is-published{background:#ecfdf3;color:#147a3d}
.schedule-publish-state-v30.is-draft{background:#fff1f1;color:#b23b3b}
.schedule-desktop-v30{display:block;margin-top:16px}
.desktop-department-head-v30{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.desktop-grid-wrapper-v30{overflow:auto}
.desktop-schedule-table-v30{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.desktop-schedule-table-v30 th,.desktop-schedule-table-v30 td{border:1px solid #ecf1f6;vertical-align:top;background:#fff}
.desktop-schedule-table-v30 th{padding:12px;background:#f8fbff}
.employee-col-v30{position:sticky;left:0;z-index:2;min-width:240px;width:240px;background:#fdfefe !important}
.day-head-v30{font-weight:800;color:#23425f}
.employee-cell-v30{padding:16px}
.desktop-cell-v30{padding:10px;min-height:118px;display:flex;flex-direction:column;gap:8px}
.desktop-card-v30{border:1px solid #dce7f4;border-radius:14px;padding:12px 14px;min-height:62px;background:#fff}
.desktop-card-v30.shift{box-shadow:0 2px 6px rgba(16,42,67,.04)}
.desktop-card-v30.absence{border-style:dashed}
.desktop-card-v30.wish{background:#f6fbff;border-left:4px solid #49c5d9}
.desktop-card-v30.empty,.desktop-card-v30.muted{display:flex;align-items:center;justify-content:center;color:#9aa8b6;background:#fbfdff}
.desktop-card-title-v30{font-weight:800;color:#23425f}
.desktop-card-time-v30{font-size:13px;color:#6b7d90;margin-top:4px}
.desktop-add-v30 summary{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;background:#eef6ff;color:#23425f;font-weight:800;cursor:pointer}
.mini-form-v30{display:grid;gap:8px;margin-top:8px}
.mini-form-v30 select,.mini-form-v30 button{width:100%}

/* mobile schedule */
.schedule-mobile-tabs-v30,.schedule-mobile-pane-v30{display:none}
.wish-sheet-v30{display:none}
body.wish-sheet-open-v30{overflow:hidden}
.communication-layout-v30{display:grid;grid-template-columns:340px 1fr;gap:16px}
.communication-sidebar-v30{display:grid;gap:16px}
.communication-contact-list-v30{display:grid;gap:10px}
.communication-contact-card-v30{display:block;padding:14px 16px;border:1px solid #e2eaf4;border-radius:18px;background:#fff;text-decoration:none;color:inherit}
.communication-contact-card-v30.is-active{border-color:#66a7e8;background:#f5faff}
.chat-card-top-v30,.chat-card-bottom-v30{display:flex;justify-content:space-between;gap:10px;align-items:center}
.chat-card-top-v30 strong{font-size:17px;color:#223d57}
.chat-preview-v30{color:#6d7f91;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-badge-v30{display:inline-flex;min-width:22px;height:22px;border-radius:999px;background:#3c79df;color:#fff;align-items:center;justify-content:center;font-size:12px;font-weight:800}
.chat-badge-v30.is-hidden{display:none}
.communication-thread-v30{display:grid;grid-template-rows:auto 1fr auto;min-height:620px}
.communication-thread-head-v30{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e9eef5;padding-bottom:12px;margin-bottom:12px}
.communication-thread-list-v30{display:flex;flex-direction:column;gap:10px;overflow:auto;padding-right:6px}
.message-bubble-v30{max-width:72%;padding:10px 12px;border-radius:16px 16px 16px 4px;background:#fff;border:1px solid #e2eaf4}
.message-bubble-v30.is-own{align-self:flex-end;background:#d9fdd3;border-radius:16px 16px 4px 16px}
.message-meta-v30{font-size:11px;color:#7c8ea3;margin-top:6px}
.communication-compose-v30{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:12px}
.communication-compose-v30 textarea{min-height:48px;resize:vertical}
.communication-empty-v30{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;color:#6d7f91;text-align:center}
.chat-toast-v30{position:fixed;right:16px;bottom:16px;z-index:1500;display:grid;gap:4px;padding:14px 16px;border-radius:16px;background:#20384f;color:#fff;text-decoration:none;box-shadow:0 16px 40px rgba(15,23,42,.28);opacity:0;transform:translateY(12px);pointer-events:none;transition:.25s}
.chat-toast-v30.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}

@media (max-width: 920px){
  .dashboard-hero-v30{grid-template-columns:1fr;gap:14px}
  .dashboard-grid-v30,.dashboard-grid-v30.employee{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .dashboard-card-v30{min-height:162px;padding:18px;border-radius:22px}
  .dashboard-card-v30 strong{font-size:28px}
  .dashboard-card-v30 small{font-size:15px}
  .quick-actions-v30{display:grid;grid-template-columns:1fr 1fr}
  .schedule-desktop-v30{display:none}
  .schedule-mobile-tabs-v30{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
  .schedule-mobile-tabs-v30 button{min-height:52px;border-radius:18px;background:#fff;border:1px solid #dce7f4;font-weight:800;color:#23425f}
  .schedule-mobile-tabs-v30 button.is-active{background:linear-gradient(135deg,#3c79df,#49c5d9);color:#fff;border-color:transparent}
  .schedule-mobile-pane-v30{display:none}
  .schedule-mobile-pane-v30.is-active{display:block}
  .mobile-week-header-v30{display:grid;grid-template-columns:52px 1fr 52px;gap:8px;align-items:center;background:#fff;border:1px solid #e2eaf4;border-radius:18px;padding:10px 12px;margin-bottom:12px}
  .mobile-plan-card-v30,.mobile-hotel-card-v30{background:#fff;border:1px solid #e2eaf4;border-radius:22px;padding:14px;margin-bottom:14px}
  .mobile-plan-card-head-v30{margin-bottom:6px}
  .mobile-plan-line-v30{display:grid;grid-template-columns:84px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #edf2f7}
  .mobile-plan-line-v30:first-of-type{border-top:0}
  .status-chip-v30{min-height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-radius:14px;border:1px solid #dce7f4;background:#fbfdff;color:#23425f;font-weight:700}
  .status-chip-v30.wish{border-left:4px solid #49c5d9}
  .status-chip-v30.shift{border-left:4px solid #2fbf71}
  .status-chip-v30.absence{border-left:4px solid #f0b429}
  .status-chip-v30.muted{color:#8395a7}
  .wish-open-btn-v30{min-width:76px;min-height:44px;border-radius:14px;border:1px solid #dce7f4;background:#eef6ff;color:#23425f;font-weight:800}
  .mobile-hotel-day-v30{padding:10px 0;border-top:1px solid #edf2f7}
  .mobile-hotel-day-v30:first-of-type{border-top:0}
  .mobile-hotel-day-label-v30{font-weight:800;color:#23425f;margin-bottom:8px}
  .mobile-hotel-line-v30{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px dashed #edf2f7}
  .mobile-hotel-line-v30:last-child{border-bottom:0}
  .wish-sheet-v30.is-open{display:flex;position:fixed;inset:0;align-items:flex-end;justify-content:center;background:rgba(15,23,42,.42);z-index:1500;padding:12px}
  .wish-sheet-card-v30{width:min(100%,500px);background:#fff;border-radius:24px 24px 18px 18px;overflow:hidden;box-shadow:0 24px 60px rgba(15,23,42,.28)}
  .wish-sheet-head-v30{display:flex;justify-content:space-between;align-items:center;padding:18px;background:linear-gradient(135deg,#eefdfa,#eef8ff);border-bottom:1px solid #e5edf5}
  .wish-sheet-close-v30{width:42px;height:42px;padding:0;border-radius:12px;background:#fff}
  .wish-sheet-weekbar-v30{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;padding:14px}
  .wish-sheet-weekbar-v30 span{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:14px;background:#f5f7fb;color:#688;font-size:12px;text-align:center;padding:6px}
  .wish-sheet-weekbar-v30 span.is-active{background:#dff6ea;color:#1c7b4f;font-weight:800}
  .wish-sheet-form-v30{display:grid;gap:14px;padding:14px}
  .wish-choice-grid-v30{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
  .wish-choice-grid-v30 label{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:88px;border:1px solid #dce7f4;border-radius:18px;background:#fbfdff;font-weight:700;color:#23425f}
  .wish-choice-grid-v30 label span{font-size:17px}
  .wish-choice-grid-v30 input{transform:scale(1.2)}
  .wish-sheet-form-v30 button{min-height:54px;border-radius:16px}
  .communication-layout-v30{grid-template-columns:1fr}
  .desktop-new-chat-v30,.desktop-contact-picker-v30{display:none}
  .mobile-new-chat-v30{display:block;margin:0 0 14px}
  .mobile-new-chat-v30 .btn{width:100%;justify-content:center}
  .communication-thread-v30{min-height:auto}
  .communication-sidebar-v30 .panel{border:none;box-shadow:none;padding:0;background:transparent}
  .communication-contact-card-v30{border-radius:18px}
  .communication-thread-v30{display:block;background:#efeae2;border:none;box-shadow:none;padding:0}
  .communication-thread-head-v30{padding:12px 0}
  .communication-thread-list-v30{min-height:48vh;padding:6px 0}
  .message-bubble-v30{max-width:84%}
  .communication-compose-v30{position:sticky;bottom:82px;background:#f0f2f5;padding:10px 0}
  .mobile-chat-back-v30{display:inline-flex}
}
@media (min-width: 921px){
  .mobile-chat-back-v30{display:none}
}
