:root{
  --bg:#f2f5f1;
  --card:#ffffff;
  --soft:#f8faf7;
  --text:#19231d;
  --muted:#617067;
  --green:#708b3a;
  --green-strong:#60792f;
  --gold:#c8a85a;
  --anth:#1d2322;
  --anth-2:#121716;
  --border:#dfe7de;
  --shadow:0 14px 34px rgba(20,32,24,.06);
  --radius:20px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top right, rgba(200,168,90,.10), transparent 20%),
    linear-gradient(180deg,#f7faf5 0%, #f0f4ef 100%);
}
a{text-decoration:none}

.app-shell{display:flex;min-height:100vh}

.sidebar{
  width:282px;
  background:
    radial-gradient(circle at top, rgba(200,168,90,.18), transparent 28%),
    linear-gradient(180deg,var(--anth),var(--anth-2));
  color:#fff;
  padding:18px 12px 20px;
  position:sticky;
  top:0;
  height:100vh;
  border-right:1px solid rgba(255,255,255,.05);
  box-shadow:inset -1px 0 0 rgba(255,255,255,.03);
}

.sidebar-headline{
  padding:10px 8px 4px;
  margin-bottom:8px;
}
.sidebar-title{
  font-size:20px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.03em;
  color:#d8f07c;
}
.sidebar-subtitle{
  font-size:13px;
  color:#eef3ef;
  opacity:.92;
  margin-top:2px;
}

.user-card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:13px 14px;
  margin:8px 0 20px;
}
.user-role{
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  background:rgba(200,168,90,.16);
  color:#f7df9a;
  border:1px solid rgba(200,168,90,.38);
  margin-bottom:10px;
}
.user-name{
  font-size:15px;
  font-weight:800;
  line-height:1.2;
}
.user-version{
  font-size:12px;
  color:#c8d0cb;
  margin-top:6px;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.nav a{
  color:#eef3ef;
  padding:12px 14px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.06);
  font-weight:700;
  min-height:42px;
  display:flex;
  align-items:center;
  transition:.18s ease;
}
.nav a:hover{
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border-color:rgba(255,255,255,.10);
  transform:translateY(-1px);
}

.sidebar-footer{
  margin-top:auto;
  color:#d7ddda;
  padding:10px 8px 0;
}
.sidebar-footer .footer-brand{
  font-size:13px;
  line-height:1.2;
}
.sidebar-footer .version-tag{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.58);
  font-size:12px;
}

.content{flex:1;padding:24px 28px 34px}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}
.topbar h2,.topbar-title{
  margin:6px 0 0;
  font-size:30px;
  letter-spacing:-.03em;
  color:var(--green-strong);
}
.panel-note{
  color:var(--muted);
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.72);
  border:1px solid var(--border);
  border-radius:14px;
  padding:8px 12px;
  backdrop-filter:blur(10px);
}
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  border-radius:24px;
  padding:20px 20px 18px;
}
.card h2{
  margin:0 0 14px;
  font-size:20px;
  line-height:1.15;
  letter-spacing:-.02em;
}

.grid{display:grid;gap:16px;margin-bottom:16px}
.grid.stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}

.label{
  font-size:12px;
  color:var(--muted);
  margin-bottom:7px;
  font-weight:700;
}
.value{
  font-size:40px;
  line-height:1;
  letter-spacing:-.05em;
  font-weight:900;
}

.stack{display:flex;flex-direction:column;gap:12px}
.row{display:grid;gap:12px}
.row.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.hero-note{color:var(--muted);font-size:14px;line-height:1.5}

input,select,textarea,button,.btn-primary,.btn-secondary,.action-link{
  width:100%;
  min-width:0;
  padding:13px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-size:14px;
  text-decoration:none;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:#b3c59a;
  box-shadow:0 0 0 4px rgba(97,124,49,.10);
}
textarea{min-height:96px;resize:vertical}

button,.btn-primary,.btn-secondary{cursor:pointer;font-weight:800}
.btn-primary{
  background:linear-gradient(180deg,#7c9641,#617c31);
  color:#fff;
  border:none;
  box-shadow:0 10px 24px rgba(97,124,49,.18);
}
.btn-secondary{
  background:linear-gradient(180deg,#3d4854,#2d3742);
  color:#fff;
  border:none;
  box-shadow:0 10px 24px rgba(45,55,66,.15);
}
.action-link{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  font-weight:700;
}
.btn-primary:hover,.btn-secondary:hover,.action-link:hover{transform:translateY(-1px)}

.table-wrap{overflow:auto}
.table{width:100%;border-collapse:collapse}
.table th,.table td{
  padding:12px 10px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:13px;
  vertical-align:top;
}
.table th{
  color:var(--muted);
  font-weight:800;
}
.status{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  display:inline-block;
}
.status-offen{background:#fef3c7;color:#92400e}
.status-geprueft{background:#dbeafe;color:#1d4ed8}
.status-freigegeben{background:#dcfce7;color:#166534}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
.badge-active{background:#dcfce7;color:#166534}
.badge-inactive{background:#fee2e2;color:#991b1b}

.checklist{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:12px;
  border-radius:18px;
  background:#f7faf5;
  border:1px solid var(--border);
}
.checklist label,.perm-check{
  display:flex;
  gap:8px;
  align-items:flex-start;
}
.perm-grid-compact{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.user-edit-grid{
  display:grid;
  grid-template-columns:1fr 1fr 180px 120px auto;
  gap:8px;
  align-items:center;
}

.login-shell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.login-card{
  width:100%;
  max-width:560px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:34px;
}
.login-brand{
  font-size:34px;
  font-weight:900;
  letter-spacing:-.04em;
  color:var(--green-strong);
  text-align:center;
  margin-bottom:6px;
}
.login-sub{
  color:var(--muted);
  font-size:15px;
  margin-bottom:22px;
  text-align:center;
}

@media (max-width:1180px){
  .grid.stats,.grid.two,.row.two,.checklist,.perm-grid-compact,.user-edit-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:920px){
  .app-shell{display:block}
  .sidebar{
    width:auto;
    height:auto;
    position:relative;
  }
  .content{padding:16px}
  .topbar{align-items:flex-start;flex-direction:column}
  .topbar h2,.topbar-title{font-size:27px}
  .value{font-size:34px}
}


.mobile-header{display:none}
.mobile-menu-panel{display:none}
.menu-toggle{display:none}

.sidebar{
  display:flex;
  flex-direction:column;
}
.sidebar-footer{
  margin-top:auto;
  padding:12px 8px 2px;
}
.user-version{display:none !important}

@media (max-width:920px){
  .sidebar{display:none}
  .mobile-header{
    display:block;
    margin-bottom:16px;
  }
  .mobile-header-card{
    background:#18201d;
    color:#fff;
    border-radius:18px;
    padding:14px;
    box-shadow:var(--shadow);
  }
  .mobile-header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  .mobile-brand{
    font-size:22px;
    font-weight:900;
    color:#d8f07c;
    line-height:1.05;
  }
  .menu-toggle{
    display:inline-flex;
    width:auto;
    min-width:120px;
    align-items:center;
    justify-content:center;
    background:linear-gradient(180deg,#3d4854,#2d3742);
    color:#fff;
    border:none;
  }
  .mobile-menu-panel.open{
    display:block;
    margin-top:12px;
  }
  .mobile-menu-panel .nav{
    gap:8px;
  }
}


.sidebar{width:272px}
.nav a{min-height:46px;border-radius:18px}
.content{padding:22px 24px 30px}
.card{padding:18px 18px 16px}
.table th,.table td{padding:11px 10px}

.mobile-header-card{
  border-radius:20px !important;
  padding:12px !important;
}
.mobile-header-top{
  align-items:center !important;
}
.menu-toggle{
  min-height:42px !important;
  border-radius:14px !important;
  min-width:112px !important;
  padding:10px 14px !important;
}
.mobile-menu-panel .nav a{
  min-height:44px;
  border-radius:16px;
}
.mobile-menu-panel .hero-note{
  font-size:12px !important;
}

@media (max-width:920px){
  .content{
    padding:14px 12px 22px;
  }
  .topbar{
    margin-bottom:14px;
    gap:10px;
  }
  .topbar h2,.topbar-title{
    font-size:26px;
    margin-top:2px;
  }
  .panel-note{
    font-size:12px;
    padding:7px 10px;
    border-radius:12px;
  }
  .grid{
    gap:12px;
    margin-bottom:12px;
  }
  .card{
    border-radius:20px;
    padding:16px 14px 14px;
  }
  .card h2{
    font-size:18px;
    margin-bottom:12px;
  }
  .label{
    font-size:12px;
    margin-bottom:6px;
  }
  .value{
    font-size:30px;
  }
  input,select,textarea,button,.btn-primary,.btn-secondary,.action-link{
    padding:12px 13px;
    min-height:44px;
    font-size:14px;
    border-radius:14px;
  }
  textarea{
    min-height:88px;
  }
  .table th,.table td{
    padding:10px 8px;
    font-size:12px;
  }
  .status,.badge{
    font-size:11px;
    padding:5px 9px;
  }
  .mobile-brand{
    font-size:20px;
  }
  .hero-note{
    font-size:13px;
  }
}


.lock-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:#f3f4f6;
  color:#374151;
  border:1px solid #d1d5db;
}
.lock-badge.locked{
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}
.row-locked{
  background:rgba(153,27,27,.03);
}
.notice-locked{
  margin-top:8px;
  margin-bottom:12px;
  padding:10px 12px;
  border-radius:14px;
  background:#fff1f2;
  color:#9f1239;
  border:1px solid #fecdd3;
  font-size:13px;
  font-weight:600;
}
.notice-open{
  margin-top:8px;
  margin-bottom:12px;
  padding:10px 12px;
  border-radius:14px;
  background:#ecfdf5;
  color:#166534;
  border:1px solid #bbf7d0;
  font-size:13px;
  font-weight:600;
}


.app-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.42);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:20px;
}
.app-overlay-card{
  width:100%;
  max-width:520px;
  background:#fff;
  border-radius:24px;
  box-shadow:0 24px 60px rgba(15,23,42,.24);
  border:1px solid #e5e7eb;
  padding:24px;
}
.app-overlay-title{
  font-size:24px;
  font-weight:900;
  margin-bottom:10px;
}
.app-overlay-text{
  color:#475569;
  line-height:1.5;
  margin-bottom:18px;
}
.msg-success{background:#ecfdf5;color:#166534;border-color:#bbf7d0}
.msg-error{background:#fff7ed;color:#9a3412;border-color:#fed7aa}
.msg-locked{background:#fff1f2;color:#9f1239;border-color:#fecdd3}

.perm-section-title{
  font-size:16px;
  font-weight:800;
  color:#6b7f35;
  margin-bottom:10px;
}
.perm-card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  background:#fff;
}
.perm-card label{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.perm-card-title{
  font-weight:800;
}
.perm-card-desc{
  font-size:13px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.35;
}
.info-box{
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px 16px;
  background:#fafcf8;
}
.nav a.hidden-by-rights{display:none}


.user-list-card{padding:14px 18px}
.user-list-row{
  display:grid;
  grid-template-columns:80px 1.1fr 1.2fr 140px 1fr 170px;
  gap:14px;
  align-items:center;
  padding:14px 6px;
  border-bottom:1px solid var(--border);
}
.user-list-head{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.user-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.user-actions .action-link,
.user-actions .btn-secondary{
  width:auto;
  min-width:0;
  padding:10px 12px;
  border-radius:12px;
}
.user-perm-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.perm-tag{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  background:#f4f7ed;
  border:1px solid #dde7c5;
  color:#6b7f35;
  font-size:12px;
  font-weight:700;
}
.detail-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:18px;
}
.detail-sticky{
  position:sticky;
  top:24px;
}
.back-row{
  display:flex;
  justify-content:flex-end;
  margin-bottom:10px;
}
@media (max-width:1200px){
  .user-list-row{
    grid-template-columns:1fr;
    gap:8px;
  }
  .user-actions{
    justify-content:flex-start;
  }
  .detail-grid{
    grid-template-columns:1fr;
  }
  .detail-sticky{
    position:relative;
    top:auto;
  }
}


.simulation-banner{
  margin-bottom:14px;
  padding:12px 14px;
  border-radius:16px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.simulation-banner .action-link{
  width:auto;
  min-width:0;
  padding:10px 12px;
}


.section-disabled{
  padding:12px 14px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#475569;
  font-size:14px;
}

.context-help{
  margin-bottom:16px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid #dbe7c2;
  background:#f8fbf1;
}
.context-help-title{
  font-weight:800;
  color:#5b6f28;
  margin-bottom:6px;
}
.context-help-text{
  color:#55635b;
  line-height:1.45;
}

.stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
.stepper-item{padding:10px 12px;border-radius:14px;border:1px solid var(--border);background:#f8faf7;font-size:13px;font-weight:700;color:var(--muted)}
.stepper-item.active{background:#eef6dc;color:#5b6f28;border-color:#dbe7c2}
.step-pane{display:none}.step-pane.active{display:block}
.task-list{margin:0;padding-left:20px;color:var(--muted)}
.quick-actions{display:flex;gap:10px;flex-wrap:wrap}.quick-actions .action-link{width:auto;min-width:0}
@media (max-width:920px){.stepper{grid-template-columns:1fr 1fr}}


.page-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.page-actions .action-link,
.page-actions .btn-secondary{
  width:auto;
  min-width:0;
}

.page-help{
  margin:0 0 18px 0;
}

.page-section{
  margin-top:18px;
}

.clean-grid-two{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
}

@media (max-width:1100px){
  .clean-grid-two{
    grid-template-columns:1fr;
  }
}

.topbar{
  align-items:flex-start;
}

.topbar > div:first-child{
  min-width:0;
}

.card .table-wrap{
  overflow:auto;
}

.context-help{
  display:block;
  width:100%;
}

.context-help-title{
  font-weight:800;
  color:#5b6f28;
  margin-bottom:6px;
}

.context-help-text{
  color:#55635b;
  line-height:1.45;
}


/* v1.11.7 Rechtekarten */
.perm-card{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  padding:0;
}
.perm-card label{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  align-items:start;
  gap:14px;
  padding:16px 18px;
  cursor:pointer;
}
.perm-card input[type="checkbox"]{
  margin-top:4px;
  width:18px;
  height:18px;
}
.perm-card-title{
  font-weight:800;
  margin-bottom:4px;
}
.perm-card-desc{
  color:var(--muted);
  line-height:1.45;
}

/* v1.11.7 Stepper */
.stepper-item{
  cursor:pointer;
}
.step-nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.step-pane{
  display:none !important;
}
.step-pane.active{
  display:block !important;
}

/* v1.11.8 layout cleanup */
.page-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.page-actions .action-link,
.page-actions .btn-secondary{
  width:auto;
  min-width:0;
}
.page-help{margin:0 0 18px 0}
.page-section{margin-top:18px}
.clean-grid-two{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
}
@media (max-width:1100px){
  .clean-grid-two{grid-template-columns:1fr}
}
.audit-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
}
.audit-toolbar .actions{
  margin-left:auto;
}


/* v1.12.0 mobile sticky + kolonne checklist */
.checklist{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 18px;
  align-items:start;
}
.checklist label{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:0;
  margin:0;
}
.checklist input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0;
  justify-self:center;
}
.checklist label span,
.checklist label{
  line-height:1.3;
}

.mobile-header{
  display:none;
}

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

  .mobile-header{
    display:block;
    position:sticky;
    top:0;
    z-index:200;
    margin:0 0 16px 0;
    padding-top:4px;
    background:linear-gradient(180deg, rgba(244,247,241,0.98) 0%, rgba(244,247,241,0.92) 100%);
    backdrop-filter: blur(8px);
  }

  .mobile-header-card{
    border-radius:18px;
    background:linear-gradient(135deg, #19211d 0%, #1f2924 35%, #0c1416 100%);
    border:1px solid rgba(201, 214, 178, 0.18);
    box-shadow:0 12px 34px rgba(0,0,0,0.18);
    padding:12px 14px;
  }

  .mobile-header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .menu-toggle{
    width:auto;
    min-width:110px;
    border-radius:14px;
    border:1px solid rgba(201,214,178,0.25);
    background:rgba(255,255,255,0.08);
    color:#f4f7f1;
    font-weight:700;
    padding:10px 14px;
  }

  .mobile-brand{
    font-size:22px;
    font-weight:800;
    color:#dfe87e;
    line-height:1;
  }

  .mobile-menu-panel{
    display:none;
    margin-top:12px;
  }

  .mobile-menu-panel.open{
    display:block;
  }

  .mobile-menu-panel .nav{
    display:flex;
    flex-direction:column;
    gap:10px;
  }

  .mobile-menu-panel .nav a{
    display:block;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(201,214,178,0.14);
    color:#f4f7f1;
    text-decoration:none;
    font-weight:700;
  }

  .content{
    padding-top:8px;
  }

  .checklist{
    grid-template-columns:1fr;
    gap:10px;
  }

  .checklist label{
    grid-template-columns:22px minmax(0,1fr);
  }
}


/* v1.12.1 menu animation */
.menu-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.menu-toggle:hover{
  transform:translateY(-1px);
}
.menu-toggle:active{
  transform:translateY(0) scale(0.98);
}
.menu-toggle-lines{
  position:relative;
  width:18px;
  height:14px;
  display:inline-block;
}
.menu-toggle-lines span{
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  border-radius:999px;
  background:#f4f7f1;
  transition:transform .22s ease, opacity .18s ease, top .22s ease;
}
.menu-toggle-lines span:nth-child(1){ top:0; }
.menu-toggle-lines span:nth-child(2){ top:6px; }
.menu-toggle-lines span:nth-child(3){ top:12px; }
.menu-toggle.is-open .menu-toggle-lines span:nth-child(1){
  top:6px;
  transform:rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-lines span:nth-child(2){
  opacity:0;
}
.menu-toggle.is-open .menu-toggle-lines span:nth-child(3){
  top:6px;
  transform:rotate(-45deg);
}
.mobile-menu-panel{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-4px);
  transition:max-height .28s ease, opacity .2s ease, transform .2s ease, margin-top .2s ease;
}
.mobile-menu-panel.open{
  display:block;
  max-height:520px;
  opacity:1;
  transform:translateY(0);
}


/* v1.12.6 Mehrfachfreigabe */
.bulk-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#f8faf7;
}
.bulk-left, .bulk-right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.bulk-master{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
}
.inline-approve-form{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.inline-approve-form select{
  min-width:140px;
}


/* v1.12.7 Freigabe-Filter */
.approval-filter-bar{
  margin-bottom:14px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.approval-filter-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  align-items:end;
}
.approval-filter-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:end;
}
.approval-filter-actions .btn-secondary,
.approval-filter-actions .btn-primary{
  width:auto;
  min-width:0;
  text-decoration:none;
}
@media (max-width:1100px){
  .approval-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:700px){
  .approval-filter-grid{
    grid-template-columns:1fr;
  }
}


/* v1.12.8 Freigabe Gruppierung */
.approval-filter-grid-5{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.approval-group{
  margin-top:16px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
}
.approval-group.empty{
  padding:16px;
}
.approval-group-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background:#f8faf7;
}
.approval-group-title{
  font-weight:800;
}
@media (max-width:1300px){
  .approval-filter-grid-5{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:900px){
  .approval-filter-grid-5{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:700px){
  .approval-filter-grid-5{
    grid-template-columns:1fr;
  }
}


/* v1.12.9 mobile approval cards */
.approval-card-list{
  display:none;
}
.approval-card-mobile{
  border-top:1px solid var(--border);
  padding:14px;
  background:#fff;
}
.approval-card-mobile.is-locked{
  background:#fafafa;
}
.approval-card-mobile-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.approval-card-check{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}
.approval-card-check input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0;
}
.approval-card-mobile-body{
  display:grid;
  gap:8px;
  margin-bottom:12px;
}
.approval-card-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.approval-card-row span{
  color:var(--muted);
}
.approval-card-row strong{
  text-align:right;
}
.approval-card-mobile-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.approval-card-form{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  width:100%;
}
.approval-card-form .btn-secondary{
  width:100%;
}
@media (max-width: 820px){
  .approval-group .table-wrap{
    display:none;
  }
  .approval-card-list{
    display:block;
  }
  .bulk-toolbar{
    position:sticky;
    top:86px;
    z-index:30;
    background:#f8faf7;
  }
}


/* v1.13.0 user delete + active row */
.active-toggle-row{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  padding:8px 0 2px 0;
}
.active-toggle-row input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0;
}
.btn-danger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:48px;
  border:none;
  border-radius:16px;
  background:#8e3b2f;
  color:#fff;
  font-weight:800;
  box-shadow:0 10px 24px rgba(142,59,47,0.24);
}
.btn-danger:hover{
  filter:brightness(1.03);
}


/* v1.13.1 report user multi select */
.report-user-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.report-user-select{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.report-user-select input[type="checkbox"]{
  width:18px;
  height:18px;
  margin-top:2px;
}
@media (max-width:1000px){
  .report-user-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px){
  .report-user-grid{ grid-template-columns:1fr; }
}


/* v1.13.3 compact mobile bulk + no page help buttons */
@media (max-width: 820px){
  .bulk-toolbar{
    top:74px;
    padding:10px 12px;
    gap:10px;
    border-radius:14px;
  }
  .bulk-left,
  .bulk-right{
    width:100%;
    gap:10px;
  }
  .bulk-left{
    display:grid;
    grid-template-columns:22px minmax(0,1fr) auto;
    align-items:center;
  }
  .bulk-master{
    display:contents;
  }
  .bulk-master input[type="checkbox"]{
    width:16px;
    height:16px;
    margin:0;
  }
  .bulk-master span{
    font-size:14px;
    line-height:1.1;
    font-weight:800;
  }
  #bulkCountInfo{
    font-size:14px;
    white-space:nowrap;
    text-align:right;
  }
  .bulk-right select{
    min-height:44px;
  }
  .bulk-right .btn-secondary{
    min-height:44px;
  }
}


/* v1.14.0 final centralized sidebar */
.menu-group{
  margin:18px 12px 8px;
  font-size:12px;
  letter-spacing:1px;
  opacity:.55;
  font-weight:800;
  color:#d7e08b;
  text-transform:uppercase;
}
.menu-group.is-open{
  opacity:1;
  color:#e7f08f;
}
.nav-link{
  position:relative;
  display:flex;
  align-items:center;
  min-height:52px;
  margin:8px 0;
  padding:0 18px;
  border-radius:18px;
  text-decoration:none;
  transition:background .18s ease,border-color .18s ease,transform .12s ease,box-shadow .18s ease;
}
.nav-link:hover{
  background:rgba(218,231,119,0.08);
  border:1px solid rgba(218,231,119,0.12);
}
.nav-link.is-active{
  background:linear-gradient(90deg, rgba(218,231,119,0.18) 0%, rgba(255,255,255,0.08) 100%);
  border:1px solid rgba(218,231,119,0.22);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.04), 0 8px 20px rgba(0,0,0,0.16);
  font-weight:800;
}
.nav-link.is-active::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:4px;
  border-radius:999px;
  background:#d7e08b;
}
@media (max-width:820px){
  .mobile-menu-panel .menu-group{
    margin:14px 4px 8px;
  }
  .mobile-menu-panel .nav-link{
    min-height:48px;
    margin:6px 0;
  }
  .mobile-menu-panel .nav-link.is-active{
    background:rgba(218,231,119,0.14);
  }
}


/* v1.14.1 layout finalize */
.content{
  flex:1;
  min-width:0;
  padding:24px 28px 34px;
}
.mobile-header{
  display:none;
}
.latest-bookings-mobile{
  display:none;
}
@media (min-width:921px){
  .mobile-header{display:none !important;}
  .content{padding-top:24px !important;}
}
@media (max-width:920px){
  .app-shell{
    display:block;
    min-height:auto;
  }
  .content{
    padding:12px 12px 24px !important;
    margin-top:0 !important;
  }
  .mobile-header{
    display:block !important;
    position:sticky;
    top:0;
    z-index:100;
    margin:0 0 12px 0 !important;
    padding:0;
    background:transparent;
  }
  .simulation-banner{
    margin-bottom:12px;
  }
  .topbar{
    margin-top:0 !important;
  }
  .latest-bookings-table{
    display:none;
  }
  .latest-bookings-mobile{
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  .booking-card-mobile{
    border:1px solid var(--border);
    border-radius:18px;
    padding:14px;
    background:#fff;
  }
  .booking-card-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:10px;
  }
  .booking-card-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:4px 0;
  }
  .booking-card-row span{
    color:var(--muted);
  }
  .booking-card-row strong{
    text-align:right;
  }
}


/* v1.14.2 audit filter and desktop fix */
.audit-filter-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
  align-items:end;
}
.audit-filter-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:end;
}
.audit-head-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.audit-pagination{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
@media (max-width:1100px){
  .audit-filter-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width:700px){
  .audit-filter-grid{
    grid-template-columns:1fr;
  }
  .audit-head-row{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* v1.14.3 delete + absence edit */
.btn-danger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:14px;
  background:#8e3b2f;
  color:#fff;
  font-weight:800;
  box-shadow:0 10px 24px rgba(142,59,47,.24);
}
.btn-danger:hover{filter:brightness(1.03);}
.btn-small{
  min-height:40px;
  padding:10px 12px;
  width:auto;
}
.table-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.btn-inline{
  width:auto;
  min-height:40px;
  padding:10px 12px;
}


/* v1.14.5 mobile menu full-height scroll fix */
@media (max-width:920px){
  .mobile-header{
    position:sticky;
    top:0;
    z-index:200;
  }
  .mobile-header-card{
    max-height:calc(100vh - 12px);
    overflow:hidden;
  }
  .mobile-menu-panel{
    display:none;
  }
  .mobile-menu-panel.open{
    display:block;
    margin-top:12px;
    max-height:calc(100vh - 140px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    padding-right:4px;
    padding-bottom:14px;
  }
  .mobile-menu-panel .nav{
    padding-bottom:8px;
  }
  .mobile-menu-panel .nav-link:last-child{
    margin-bottom:0;
  }
  .mobile-menu-panel .hero-note{
    padding-bottom:4px;
  }
}


/* v1.14.6 stronger mobile menu scroll */
@media (max-width:920px){
  .mobile-header-card{
    overflow:visible !important;
  }
  .mobile-menu-panel.open{
    display:block !important;
    max-height:calc(100dvh - 128px) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .mobile-menu-panel .nav{
    display:flex;
    flex-direction:column;
    gap:9px;
    min-height:min-content;
  }
  .mobile-menu-panel .nav-link,
  .mobile-menu-panel .nav a{
    flex:0 0 auto;
  }
}


/* v1.14.7 admin-only permission cards */
.perm-card-disabled{
  opacity:.52;
  filter:grayscale(.12);
}
.perm-card-disabled label{
  cursor:not-allowed;
}
.perm-card-disabled input{
  pointer-events:none;
}
.perm-card-note{
  margin-top:6px;
  font-size:12px;
  color:#8b6b2f;
  font-weight:700;
}


/* v1.14.8 transparent menu + account */
.nav-link.is-disabled,
.nav .nav-link.is-disabled{
  opacity:.42;
  color:rgba(238,243,239,.72);
  background:linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.04);
  cursor:not-allowed;
  pointer-events:none;
  transform:none !important;
}
.account-perm-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.account-perm-row.is-disabled{
  opacity:.72;
  background:#f8faf7;
}
.account-perm-row.is-enabled{
  box-shadow:0 4px 14px rgba(20,32,24,.04);
}


/* v1.15.0 revision/archive helpers */
.btn-inline{
  width:auto;
  min-height:40px;
  padding:10px 12px;
}
.step-pane{display:none;}
.step-pane.active{display:block;}
.stepper-item{
  opacity:.55;
}
.stepper-item.active{
  opacity:1;
  font-weight:800;
}


/* v1.15.1 stepper visual progress */
.stepper{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
.stepper-item{
  padding:10px 12px;
  border-radius:14px;
  background:#eef3ea;
  border:1px solid var(--border);
  color:var(--muted);
  font-weight:700;
  text-align:center;
}
.stepper-item.active{
  background:linear-gradient(180deg,#7c9641,#617c31);
  color:#fff;
  border-color:transparent;
}
.stepper-item.done{
  background:#e6f1d9;
  color:#46601f;
  border-color:#cfe0b4;
}
@media (max-width:820px){
  .stepper{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* v1.15.3 step validation + approval cleanup */
.stepper{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
.stepper-item{
  padding:10px 12px;
  border-radius:14px;
  background:#eef3ea;
  border:1px solid var(--border);
  color:var(--muted);
  font-weight:700;
  text-align:center;
  opacity:1 !important;
}
.stepper-item.active{
  background:linear-gradient(180deg,#7c9641,#617c31) !important;
  color:#fff !important;
  border-color:transparent !important;
}
.stepper-item.done{
  background:#e6f1d9 !important;
  color:#46601f !important;
  border-color:#cfe0b4 !important;
}
.next-step:disabled{
  opacity:.45;
  cursor:not-allowed;
  filter:grayscale(.15);
}
.approval-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
}
.approval-group-toggle{
  order:3;
  font-size:18px;
  line-height:1;
  color:var(--muted);
}
.approval-group.is-collapsed .approval-group-body{
  display:none;
}
.approval-group.is-collapsed .approval-group-toggle{
  transform:rotate(-90deg);
}
.approval-group{
  margin-bottom:14px;
}
.inline-approve-form{
  display:flex;
  gap:8px;
  align-items:center;
}
.inline-approve-form .single-status{
  min-width:130px;
}
@media (max-width:820px){
  .stepper{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}



/* v1.15.7 approval group toggle fix */
.approval-group-head{
  user-select:none;
}
.approval-group-body{
  display:block;
}
.approval-group.is-collapsed .approval-group-body{
  display:none !important;
}


/* v1.15.8 inline approval toggle fallback */
.approval-group-head{
  user-select:none;
  cursor:pointer;
}
.approval-group.is-collapsed .approval-group-body{
  display:none !important;
}
.approval-group.is-collapsed .approval-group-toggle{
  transform:rotate(-90deg);
}


/* v1.15.10 final approval toggle/bulk fix */
.approval-group-head{
  cursor:pointer;
  user-select:none;
}
.approval-group-body{
  display:block;
}
.approval-group.is-collapsed .approval-group-body{
  display:none !important;
}
.approval-group-toggle{
  transition:transform .18s ease;
}
.approval-group.is-collapsed .approval-group-toggle{
  transform:rotate(-90deg);
}
.next-step:disabled{
  opacity:.45;
  cursor:not-allowed;
  filter:grayscale(.15);
}
.stepper-item.done{
  background:#e6f1d9 !important;
  color:#46601f !important;
  border-color:#cfe0b4 !important;
}
.stepper-item.active{
  background:linear-gradient(180deg,#7c9641,#617c31) !important;
  color:#fff !important;
  border-color:transparent !important;
}


/* v1.15.11 inline stepper/toggle reliability */
.stepper-item{
  opacity:1 !important;
}
.stepper-item.active{
  background:linear-gradient(180deg,#7c9641,#617c31) !important;
  color:#fff !important;
  border-color:transparent !important;
}
.stepper-item.done{
  background:#e6f1d9 !important;
  color:#46601f !important;
  border-color:#cfe0b4 !important;
}
.approval-group.is-collapsed .approval-group-body{
  display:none !important;
}
.approval-group-head{
  cursor:pointer !important;
}
.next-step:disabled{
  opacity:.45 !important;
  cursor:not-allowed !important;
}


/* v1.15.12 approval toggle real fix */
.approval-group-head.js-approval-toggle{
  cursor:pointer !important;
  user-select:none;
}
.approval-group-body{
  display:block;
}
.approval-group.is-collapsed .approval-group-body{
  display:none !important;
}
.approval-group-toggle{
  transition:transform .18s ease;
}
.approval-group.is-collapsed .approval-group-toggle{
  transform:rotate(-90deg);
}


/* v1.16.0 reports tabs + native approval details */
.report-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 16px;
}
.report-tab{
  width:auto;
  min-width:0;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:800;
}
.report-tab.is-active{
  background:linear-gradient(180deg,#7c9641,#617c31);
  color:#fff;
  border-color:transparent;
}
.report-tab-pane{display:none;}
.report-tab-pane.is-active{display:block;}

.approval-group{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  margin-bottom:14px;
  overflow:hidden;
}
.approval-group-head{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  cursor:pointer;
  user-select:none;
  background:#f8faf7;
  border-bottom:1px solid var(--border);
}
.approval-group summary::-webkit-details-marker{display:none;}
.approval-group[open] .approval-group-toggle{transform:rotate(0deg);}
.approval-group:not([open]) .approval-group-toggle{transform:rotate(-90deg);}
.approval-group-toggle{transition:transform .18s ease;}

.stepper-item{
  opacity:1 !important;
  transition:all .18s ease;
}
.stepper-item.active{
  background:linear-gradient(180deg,#7c9641,#617c31) !important;
  color:#fff !important;
  border-color:transparent !important;
}
.stepper-item.done{
  background:#e6f1d9 !important;
  color:#46601f !important;
  border-color:#cfe0b4 !important;
}
@media (max-width:920px){
  .report-tabs{
    overflow:auto;
    flex-wrap:nowrap;
    padding-bottom:4px;
  }
}


/* v1.16.1 explicit stepper/date fix */
.stepper-item.active{
  background:linear-gradient(180deg,#7c9641,#617c31) !important;
  color:#fff !important;
  border-color:transparent !important;
  opacity:1 !important;
}
.stepper-item.done{
  background:#e6f1d9 !important;
  color:#46601f !important;
  border-color:#cfe0b4 !important;
  opacity:1 !important;
}


/* v1.16.3 month close UI */
.month-close-panel{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fafcf8;
  padding:14px 16px;
  margin-bottom:14px;
}
.month-close-status-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:14px;
}
.month-close-headline{
  font-size:20px;
  font-weight:900;
  letter-spacing:-.02em;
  color:var(--text);
  margin:2px 0 6px;
}
.month-close-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.month-close-badge-open{
  background:#ecfdf5;
  color:#166534;
  border:1px solid #bbf7d0;
}
.month-close-badge-closed{
  background:#fff1f2;
  color:#9f1239;
  border:1px solid #fecdd3;
}
.month-close-checklist{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.month-close-checkitem{
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.month-close-checkitem strong{
  font-size:14px;
}
.month-close-checkitem span{
  font-size:13px;
  color:var(--muted);
}
.month-close-checkitem.is-ok{
  border-color:#cfe7c6;
  background:#f5fbf0;
}
.month-close-checkitem.is-warn{
  border-color:#f4cfaa;
  background:#fff8f2;
}
@media (max-width:920px){
  .month-close-status-row,
  .month-close-checklist{
    grid-template-columns:1fr;
    display:grid;
  }
}


/* v1.16.8 reports/account cleanup */
.archive-month-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.archive-month-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fafcf8;
  padding:14px 16px;
}
.archive-month-title{
  font-size:18px;
  font-weight:900;
  letter-spacing:-.02em;
  color:var(--text);
  margin-bottom:4px;
}
.archive-month-meta{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  color:var(--muted);
  font-size:13px;
}
.archive-month-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.archive-empty{
  border:1px dashed var(--border);
  border-radius:16px;
  padding:16px;
  color:var(--muted);
  background:#fafcf8;
}
@media (max-width:920px){
  .archive-month-card{
    flex-direction:column;
    align-items:flex-start;
  }
  .archive-month-actions{
    width:100%;
    justify-content:flex-start;
  }
}


/* v1.16.9 archive year filter */
.archive-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:12px;
}
.archive-filter-form{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.archive-filter-form .label{
  margin:0;
  white-space:nowrap;
}
.archive-filter-form select{
  min-width:120px;
}
@media (max-width:920px){
  .archive-head{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* v1.16.10 archive action row */
.archive-action-row{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.archive-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:110px;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
  text-decoration:none;
  border:1px solid transparent;
  transition:transform .15s ease, opacity .15s ease;
}
.archive-btn:hover{
  transform:translateY(-1px);
  opacity:.95;
}
.archive-btn-view{
  background:#eef2ff;
  color:#3730a3;
  border-color:#c7d2fe;
}
.archive-btn-pdf{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
}
.archive-btn-restore{
  background:linear-gradient(180deg,#4b5563,#374151);
  color:#fff;
}
@media (max-width:1100px){
  .archive-action-row{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}


/* v1.16.12 archive action buttons refined */
.archive-action-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:nowrap;
}
.archive-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:110px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  font-weight:800;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  transition:transform .15s ease, opacity .15s ease, box-shadow .15s ease;
  box-shadow:0 6px 16px rgba(20,32,24,.05);
}
.archive-action-btn:hover{
  transform:translateY(-1px);
  opacity:.96;
}
.archive-action-view{
  background:linear-gradient(180deg,#7c9641,#617c31);
  color:#fff;
  border-color:transparent;
}
.archive-action-pdf{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
}
.archive-action-restore{
  background:#fff1f2;
  color:#b42318;
  border-color:#fecdd3;
}
@media (max-width:1200px){
  .archive-action-row{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}


/* v1.16.13 current archive view state */
.archive-action-current{
  background:#f3f4f6;
  color:#6b7280;
  border-color:#e5e7eb;
  cursor:default;
}


/* v1.16.16 forgot password flow */
.login-actions{
  margin-top:12px;
  display:flex;
  justify-content:center;
}
.login-link{
  color:#617c31;
  font-weight:800;
  text-decoration:none;
}
.login-link:hover{
  text-decoration:underline;
}


/* v1.16.27 kompaktere Benutzerliste */
.user-list-card{
  padding:16px 18px 10px;
}
.user-list-row{
  display:grid;
  grid-template-columns:72px minmax(170px,1.1fr) minmax(220px,1.2fr) minmax(150px,.9fr) minmax(150px,.8fr) minmax(240px,1.15fr) minmax(170px,.9fr);
  gap:12px;
  align-items:center;
  padding:10px 8px;
  border-bottom:1px solid var(--border);
}
.user-list-row-compact{
  min-height:78px;
}
.user-list-head{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding-top:6px;
  padding-bottom:8px;
}
.user-name-cell strong,
.user-role-cell strong{
  display:block;
  line-height:1.2;
}
.user-meta-inline{
  margin-top:6px;
}
.user-role-cell .badge{
  margin-top:6px;
}
.user-role-cell .hero-note{
  font-size:12px;
  line-height:1.35;
  margin-top:3px;
}
.user-lastseen-cell{
  font-size:14px;
  font-weight:600;
  color:#34423a;
}
.user-perm-tags.compact{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.perm-tag{
  padding:4px 8px;
  font-size:11px;
  font-weight:800;
}
.perm-tag-more{
  background:#eef2ff;
  border-color:#c7d2fe;
  color:#4338ca;
}
.user-actions-compact{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}
.user-actions-compact form{
  margin:0;
}
.user-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  width:auto;
  padding:10px 14px;
  border-radius:14px;
  font-size:13px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  border:1px solid transparent;
  box-shadow:0 8px 18px rgba(20,32,24,.08);
  transition:transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}
.user-btn:hover{
  transform:translateY(-1px);
  opacity:.97;
}
.user-btn-edit{
  background:#fff;
  color:#334155;
  border-color:#d8e0d6;
}
.user-btn-switch{
  background:linear-gradient(180deg,#3d4854,#2d3742);
  color:#fff;
  border:none;
}
@media (max-width:1400px){
  .user-list-row{
    grid-template-columns:72px minmax(150px,1fr) minmax(180px,1fr) minmax(140px,.9fr) minmax(130px,.8fr) minmax(180px,1fr) minmax(160px,.9fr);
  }
}
@media (max-width:1200px){
  .user-list-row{
    grid-template-columns:1fr;
    gap:8px;
    padding:12px 6px;
  }
  .user-actions-compact{
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .user-btn{
    min-width:0;
  }
  .user-list-head{
    display:none;
  }
}


/* v1.16.29 Rechte-Chips farblich gruppiert */
.perm-tag.time{
  background:#ecfdf5;
  border-color:#bbf7d0;
  color:#166534;
}
.perm-tag.report{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8;
}
.perm-tag.admin{
  background:#f3f4f6;
  border-color:#d1d5db;
  color:#374151;
}
.perm-tag.critical{
  background:#fee2e2;
  border-color:#fecaca;
  color:#991b1b;
}
.perm-tag.control{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
}
.perm-tag-more{
  background:#eef2ff;
  border-color:#c7d2fe;
  color:#4338ca;
}
.user-perm-tags.compact{
  row-gap:6px;
}


/* v1.16.31 Rechte-Chips mit Gruppenabständen + Mobile/Buttons Feinschliff */
.user-rights-cell{
  align-self:flex-start;
}
.user-perm-tags.compact{
  display:flex;
  flex-wrap:wrap;
  gap:6px 6px;
  align-items:flex-start;
  max-width:100%;
}
.user-perm-tags.compact .perm-tag{
  min-height:28px;
}
.user-perm-tags.compact .perm-tag.time + .perm-tag.report,
.user-perm-tags.compact .perm-tag.report + .perm-tag.control,
.user-perm-tags.compact .perm-tag.control + .perm-tag.admin,
.user-perm-tags.compact .perm-tag.admin + .perm-tag.critical{
  margin-left:10px;
}

.user-actions-compact{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.user-actions-compact .user-btn,
.user-actions-compact form .user-btn{
  min-width:170px;
  justify-content:center;
}
.user-btn{
  position:relative;
  overflow:hidden;
}
.user-btn-edit{
  background:linear-gradient(180deg,#ffffff,#f6f8f4);
  color:#34423a;
  border:1px solid #d8e0d6;
  box-shadow:0 10px 24px rgba(20,32,24,.08);
}
.user-btn-edit:hover{
  border-color:#bfd0ba;
}
.user-btn-switch{
  background:linear-gradient(180deg,#3f4b58,#2c3743);
  color:#fff;
  border:none;
  box-shadow:0 10px 24px rgba(45,55,66,.18);
}
.user-btn-switch:hover{
  box-shadow:0 12px 28px rgba(45,55,66,.24);
}

@media (max-width:1200px){
  .user-perm-tags.compact .perm-tag.time + .perm-tag.report,
  .user-perm-tags.compact .perm-tag.report + .perm-tag.control,
  .user-perm-tags.compact .perm-tag.control + .perm-tag.admin,
  .user-perm-tags.compact .perm-tag.admin + .perm-tag.critical{
    margin-left:0;
  }
}

@media (max-width:920px){
  .user-list-card{
    padding:14px 12px 8px;
  }
  .user-list-row{
    padding:12px 4px;
    border-bottom:1px solid var(--border);
  }
  .user-name-cell strong,
  .user-role-cell strong{
    font-size:15px;
  }
  .user-lastseen-cell{
    font-size:13px;
  }
  .user-perm-tags.compact{
    gap:7px;
  }
  .user-perm-tags.compact .perm-tag{
    min-height:30px;
    padding:6px 9px;
    font-size:11px;
    border-radius:999px;
  }
  .user-actions-compact{
    flex-direction:row;
    justify-content:flex-start;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin-top:2px;
  }
  .user-actions-compact .user-btn,
  .user-actions-compact form .user-btn{
    min-width:0;
    min-height:42px;
    padding:11px 14px;
    border-radius:14px;
  }

  /* Mobile Farben verstärken */
  .perm-tag.time{
    background:#dcfce7;
    border-color:#86efac;
    color:#166534;
  }
  .perm-tag.report{
    background:#dbeafe;
    border-color:#93c5fd;
    color:#1d4ed8;
  }
  .perm-tag.control{
    background:#ffedd5;
    border-color:#fdba74;
    color:#c2410c;
  }
  .perm-tag.admin{
    background:#e5e7eb;
    border-color:#cbd5e1;
    color:#334155;
  }
  .perm-tag.critical{
    background:#fee2e2;
    border-color:#fca5a5;
    color:#b91c1c;
  }

  .user-btn-edit{
    background:linear-gradient(180deg,#ffffff,#eef3ec);
    border-color:#c8d7c4;
  }
  .user-btn-switch{
    background:linear-gradient(180deg,#4a5664,#313b47);
  }
}


/* v1.16.45 Mitarbeiterdetail UI */
.employee-detail-layout{
  display:block;
}
.employee-kpi-hero{
  padding:22px 24px;
  border:1px solid var(--border);
}
.employee-kpi-hero-label{
  font-size:13px;
  font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:10px;
}
.employee-kpi-hero-value{
  font-size:54px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.03em;
  color:#1f2a21;
}
.employee-kpi-hero-delta{
  margin-top:14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
  border:1px solid #d8e0d6;
  background:#fff;
  color:#475569;
}
.employee-kpi-hero-delta.is-negative{
  background:#fff1f2;
  border-color:#fecdd3;
  color:#b91c1c;
}
.employee-kpi-hero-delta.is-positive{
  background:#ecfdf5;
  border-color:#bbf7d0;
  color:#15803d;
}
.employee-kpi-hero-delta.is-neutral{
  background:#f8fafc;
  border-color:#dbe3dd;
  color:#475569;
}
.metric-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.metric-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.metric-row:last-child{
  border-bottom:none;
}
.metric-row span{
  color:var(--muted);
  font-weight:700;
}
.metric-row strong{
  text-align:right;
  font-size:20px;
  line-height:1.2;
}
.metric-row.is-total strong{
  font-size:28px;
}
.text-negative{
  color:#b91c1c;
}
.text-positive{
  color:#15803d;
}
@media (max-width: 900px){
  .employee-kpi-hero{
    padding:18px 16px;
  }
  .employee-kpi-hero-value{
    font-size:38px;
  }
  .metric-row{
    flex-direction:column;
    gap:8px;
  }
  .metric-row strong{
    text-align:left;
    font-size:18px;
  }
  .metric-row.is-total strong{
    font-size:24px;
  }
}


/* v1.16.46 Mitarbeiter-Übersicht Auswertung */
.employee-summary-grid{
  display:grid;
  gap:18px;
}
.employee-summary-card{
  padding:18px 18px 16px;
}
.employee-summary-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.employee-summary-head h2{
  margin:0 0 6px 0;
}
.employee-summary-topline{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fbfcfa;
  margin-bottom:14px;
}
.employee-summary-total span{
  display:block;
  font-size:13px;
  font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:8px;
}
.employee-summary-total strong{
  display:block;
  font-size:36px;
  line-height:1;
  letter-spacing:-.02em;
}
.employee-summary-delta{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #d8e0d6;
  font-weight:800;
  background:#fff;
  color:#475569;
}
.employee-summary-delta.is-negative{
  background:#fff1f2;
  border-color:#fecdd3;
  color:#b91c1c;
}
.employee-summary-delta.is-positive{
  background:#ecfdf5;
  border-color:#bbf7d0;
  color:#15803d;
}
.employee-summary-delta.is-neutral{
  background:#f8fafc;
  border-color:#dbe3dd;
  color:#475569;
}
.metric-list.compact .metric-row{
  padding:10px 0;
}
@media (max-width: 900px){
  .employee-summary-head,
  .employee-summary-topline{
    flex-direction:column;
    align-items:flex-start;
  }
  .employee-summary-total strong{
    font-size:28px;
  }
}


/* v1.16.47 Freigaben-Schalter */
.toggle-inline{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:var(--muted);
  min-height:44px;
}
.toggle-inline input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0;
}
.approval-filter-toggle{
  display:flex;
  align-items:flex-end;
}
@media (max-width:1100px){
  .approval-filter-toggle{
    align-items:flex-start;
  }
}


/* v1.16.49 Abrechnungstyp */
.billing-type-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:#eef2ff;
  color:#3730a3;
  border:1px solid #c7d2fe;
}
