
:root {
    --bg: #f5f7fa;
    --panel: #ffffff;
    --panel-soft: #f7fbff;
    --border: #d7dce4;
    --text: #1a1d22;
    --muted: #5f6f83;
    --primary-light: #3e9cf3;
    --primary: #0a66c2;
    --primary-dark: #084e96;
    --header-start: #2a6fbb;
    --header-end: #0b3d91;
    --danger: #c62828;
    --danger-bg: #ffe4e4;
    --success-bg: #e8f8ed;
    --success-text: #1b6f3b;
    --warning-bg: #fff7d8;
    --warning-text: #6d5100;
    --shadow: 0 10px 24px rgba(16, 44, 92, 0.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, select, textarea { font: inherit; }
.app-shell { min-height: 100vh; }
.app-header {
    min-height: 115px;
    display: grid;
    grid-template-columns: 140px 1fr 320px;
    align-items: center;
    gap: 16px;
    padding: 0 30px;
    background: linear-gradient(180deg, var(--header-start) 0%, var(--header-end) 100%);
}
.logo-image { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(255,255,255,0.12)); }
.header-center { text-align: center; }
.header-title { color: white; font-size: 32px; font-weight: 800; letter-spacing: 0.01em; }
.header-subtitle { margin-top: 4px; color: rgba(255,255,255,0.9); font-size: 14px; }
.header-right { display: flex; justify-content: flex-end; }
.user-panel { min-width: 250px; padding: 10px 14px; border: 1px solid #fff; border-radius: 6px; background: transparent; display:flex; flex-direction:column; align-items:center; gap:8px; }
.user-name { color: #fff; font-size: 13px; text-align:center; }
.logout-button { background: #fff; color: #12386b; border: none; padding: 6px 14px; border-radius: 4px; font-weight: 700; }
.logout-button:hover { background: #e6e6e6; }
.workspace-shell { display: grid; grid-template-columns: 255px minmax(0, 1fr); min-height: calc(100vh - 115px); }
.module-sidebar { background: #fff; border-right: 1px solid var(--border); padding: 18px 15px; display: flex; flex-direction: column; }
.module-sidebar-title { font-size: 14px; font-weight: 800; color: #203860; margin-bottom: 12px; }
.module-sidebar-subtitle { margin-top: 18px; margin-bottom: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #607086; }
.module-nav, .service-nav { display: flex; flex-direction: column; gap: 10px; }
.module-button, .button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    color: #fff;
    font-weight: 700;
    border-radius: 7px;
    border: 1px solid #083f80;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 46%, var(--primary-dark) 100%);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.35), inset 0 -2px 3px rgba(0,0,0,0.22);
}
.module-button:hover, .button:hover { background: linear-gradient(180deg, #6fc0ff 0%, #0f7bde 46%, #0a56a8 100%); }
.module-button.active { background: linear-gradient(180deg, #0a56a8 0%, #084e96 46%, #063d78 100%); }
.service-link { display: block; padding: 10px 12px; border-radius: 8px; color: #1a2b57; background: #f7faff; border: 1px solid #d9e6f7; font-weight: 600; }
.service-link:hover, .service-link.active { background: #eaf2ff; border-color: #bfd6ff; }
.content-stage { padding: 22px 24px 28px; min-width: 0; }
.content-header-card, .content-card, .login-panel, .premium-stat-card, .launch-card, .module-home-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.desktop-header-card { padding: 18px 22px; margin-bottom: 16px; display:flex; flex-direction:column; gap:14px; }
.desktop-header-card h1 { margin: 0; font-size: 28px; color: #173767; }
.desktop-header-card p { margin: 6px 0 0; color: var(--muted); }
.desktop-tabbar { display:flex; flex-wrap:wrap; gap:10px; border-top: 1px solid #e3ebf7; padding-top: 14px; }
.desktop-tab {
    display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding: 7px 14px;
    border-radius: 7px; font-weight: 700; color:#1b3560; background:#eef4ff; border:1px solid #c5d8f4;
}
.desktop-tab.active { color:#fff; background: linear-gradient(180deg, #2f85d6 0%, #0a66c2 52%, #084e96 100%); border-color:#084e96; box-shadow: inset 0 1px 1px rgba(255,255,255,0.3); }
.page-content { display: flex; flex-direction: column; gap: 18px; }
.home-desktop-panel { padding: 22px; }
.module-home-intro h2 { margin: 0; font-size: 22px; color: #1b3359; }
.module-home-intro p { margin: 8px 0 0; color: var(--muted); }
.desktop-launch-grid { margin-top:18px; display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:14px; }
.desktop-launch-card { padding:18px; display:flex; flex-direction:column; gap:8px; }
.desktop-launch-card:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(9, 48, 110, 0.16); }
.launch-icon { font-size: 28px; }
.launch-card strong { font-size: 16px; color: #1b3359; }
.launch-card small { color: var(--muted); font-size: 13px; }
.desktop-stats-grid, .stats-premium-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; }
.premium-stat-card { padding: 18px 20px; }
.premium-stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.premium-stat-value { margin-top: 8px; font-size: 34px; font-weight: 800; color: #15386d; }
.premium-card, .content-card { padding: 20px; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-title-row h2, .content-card h2 { margin: 0 0 12px; font-size: 20px; color: #1b3359; }
.section-note { color: var(--muted); font-size: 13px; }
.classic-toolbar {
    display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px;
    padding: 10px 12px; border: 1px solid #d7e4f5; background: #f7fbff; border-radius: 8px;
}
.classic-toolbar-column { flex-direction: column; align-items: stretch; }
.classic-search-form { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.toolbar-label { font-weight:700; color:#21416f; }
.login-screen { min-height: 100vh; display:grid; place-items:center; padding: 24px; }
.desktop-login-panel { width:100%; max-width:640px; padding: 28px; }
.desktop-login-brand { border-bottom:1px solid var(--border); padding-bottom:16px; margin-bottom:16px; display:flex; align-items:center; gap:18px; }
.login-logo { width: 78px; height: 78px; object-fit: contain; }
.login-brand-title { font-size: 28px; font-weight: 800; color: #11417f; }
.login-brand-subtitle { color: var(--muted); margin-top: 6px; }
.form-grid { display:grid; gap:16px; margin-top:18px; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-grid { gap: 14px; }
.form-field, .checkbox-field { display:grid; gap:8px; }
.form-field span { font-weight:600; }
.form-field input, .form-field select, .form-field textarea, .search-form input, .search-form select, .inline-form-grid input, .inline-form-grid select {
    width:100%; border:1px solid #c7d3e2; border-radius: 6px; padding: 9px 12px; background:#fff;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .search-form input:focus, .search-form select:focus, .inline-form-grid input:focus, .inline-form-grid select:focus { outline: none; border: 2px solid var(--primary); background: #f9fcff; }
.checkbox-field { align-content:end; font-weight:600; grid-auto-flow: column; justify-content: start; align-items: center; }
.checkbox-field input { width: auto; }
.button-secondary { background: #eef4ff; color: #15386d; box-shadow: none; border: 1px solid #bfd0ec; }
.button-secondary:hover { background: #ddeafc; }
.button-danger { background: var(--danger); border-color: #8d1717; box-shadow: none; }
.button-small { padding: 7px 10px; font-size: 13px; min-height: 32px; }
.button-row { display:flex; gap:10px; flex-wrap:wrap; }
.alert { padding:14px 16px; border-radius:10px; margin-bottom: 12px; border:1px solid transparent; }
.alert-error { background: var(--danger-bg); color: #9c1f1f; border-color: #ffc5c5; }
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: #c8ebd5; }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border-color: #f3df95; }
.search-form, .inline-form-grid { display:flex; gap:12px; align-items:center; flex-wrap: wrap; }
.table-wrap { overflow:auto; }
.data-table { width:100%; border-collapse:collapse; min-width: 760px; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.data-table th, .data-table td { padding:11px 12px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.data-table th { background: var(--primary); color:#fff; font-size:13px; font-weight:700; border-right: 1px solid var(--primary-dark); }
.data-table tr:hover td { background: #fafcff; }
.empty-cell { text-align:center; color: var(--muted); padding: 24px !important; }
.detail-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem 1rem; }
.full-width { grid-column: 1 / -1; }
.two-column-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.info-box { margin-top:20px; padding:16px; background:var(--panel-soft); border:1px solid #d7e4ff; border-radius:10px; }
.muted-text { color: var(--muted); }
pre { white-space: pre-wrap; word-break: break-word; background: #f6f8fb; padding: 1rem; border-radius: 12px; }
code { background:#eef4ff; padding: 2px 8px; border-radius: 999px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.check-item { background: #f7f9fc; border-radius: 10px; padding: .85rem 1rem; border: 1px solid var(--border); }
.button-stack { display: flex; flex-direction: column; gap: .4rem; }
.status-badge.status-warning { background: #fff2cc; color: #6d5100; padding: .2rem .5rem; border-radius: 999px; font-weight: 700; }
.fade-out { opacity: 0; transition: opacity 0.3s ease; }
@media (max-width: 1100px) {
    .app-header { grid-template-columns: 100px 1fr; padding: 14px 18px; min-height: auto; }
    .header-center { text-align: left; }
    .header-right { grid-column: 1 / -1; justify-content: flex-start; }
    .workspace-shell { grid-template-columns: 1fr; }
    .module-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 760px) {
    .content-stage { padding: 18px; }
    .form-grid.two-col { grid-template-columns: 1fr; }
    .toolbar, .search-form, .inline-form-grid, .button-row, .classic-search-form { flex-direction: column; align-items: stretch; }
    .header-title, .login-brand-title { font-size: 24px; }
    .logo-image, .login-logo { width: 64px; height: 64px; }
    .desktop-header-card h1 { font-size: 24px; }
}


/* =====================================================
   1:1-Nachzug – Desktopähnliche Arbeitsbereiche
   ===================================================== */
.app-header {
    min-height: 100px;
    grid-template-columns: 120px 1fr 280px;
    border-bottom: 3px solid #004080;
}
.header-title { font-size: 30px; }
.module-sidebar { padding-top: 20px; }
.module-button { justify-content: flex-start; padding-left: 14px; }
.service-link { font-weight: 700; }
.classic-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}
.classic-main-panel { min-width: 0; }
.classic-side-panel {
    border: 1px solid #d7dce4;
    border-radius: 10px;
    background: #f9fbfe;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.preview-panel-title {
    font-size: 16px;
    font-weight: 800;
    color: #173767;
    margin-bottom: 12px;
}
.preview-device-card {
    border-radius: 10px;
    border: 1px solid #cfe0f5;
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
    padding: 14px;
    margin-bottom: 14px;
}
.preview-device-name { font-size: 22px; font-weight: 800; color: #173767; }
.preview-device-subtitle { margin-top: 4px; color: #54667d; font-size: 13px; }
.preview-definition-list { display: grid; gap: 10px; margin: 0; }
.preview-definition-list div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}
.preview-definition-list dt { font-weight: 800; color: #1d3b67; }
.preview-definition-list dd { margin: 0; color: #24354f; word-break: break-word; }
.preview-note-box {
    margin-top: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
}
.preview-note-box strong { display: block; margin-bottom: 6px; color: #173767; }
.preview-note-box p { margin: 0; color: #56677d; line-height: 1.5; }
.button-stack { display: grid; gap: 10px; margin-top: 14px; }
.result-counter {
    margin-bottom: 10px;
    color: #203a67;
    font-weight: 700;
    text-align: right;
}
.desktop-data-table tbody tr.click-row { cursor: pointer; }
.desktop-data-table tbody tr.is-selected td {
    background: #dbeafe !important;
}
.info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    color: #15386d;
    background: #edf4ff;
    border: 1px solid #cadefb;
}
.info-link:hover { background: #dceafe; }
.status-badge.status-verfuegbar { background: #e9f8ec; color: #22683d; }
.status-badge.status-ausgegeben { background: #fff1d6; color: #7a5100; }
.status-badge.status-defekt { background: #ffe4e4; color: #a12828; }
.status-badge.status-wartung, .status-badge.status-reserviert { background: #e7f0ff; color: #1e4a8b; }
.status-badge.status-archiviert { background: #eceff3; color: #5b6675; }
@media (max-width: 1200px) {
  .classic-split-layout { grid-template-columns: 1fr; }
}


.module-kicker {
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e9f2ff;
    border: 1px solid #c5d9fb;
    color: #1d4277;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.module-board-stack {
    display: grid;
    gap: 18px;
}
.module-board {
    border: 1px solid #d7dce4;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
    padding: 16px;
}
.module-board-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dde6f3;
    color: #173767;
    font-size: 16px;
    font-weight: 800;
}
.compact-detail-grid {
    row-gap: 12px;
}
.wide-form input[type="text"] {
    min-width: 260px;
}
.desktop-button-row {
    justify-content: flex-end;
}
.desktop-module-card h2 {
    margin-top: 0;
}


/* =====================================================
   Detailmasken / Formulare – näher am Desktop-Original
   ===================================================== */
.desktop-form-shell,
.desktop-detail-shell {
    display: grid;
    gap: 18px;
}
.desktop-form-layout,
.desktop-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}
.desktop-form-main,
.desktop-detail-main { min-width: 0; display: grid; gap: 18px; }
.desktop-form-sidebar,
.desktop-detail-sidebar { min-width: 0; }
.form-board,
.detail-board,
.action-board {
    border: 1px solid #d7dce4;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), var(--shadow);
    overflow: hidden;
}
.board-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #fafdff 0%, #edf4ff 100%);
    border-bottom: 1px solid #d6e2f4;
}
.board-header-title {
    font-size: 16px;
    font-weight: 800;
    color: #173767;
}
.board-header-note {
    color: #5e7191;
    font-size: 12px;
    font-weight: 700;
}
.board-body { padding: 16px; }
.desktop-form-grid {
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
.desktop-form-grid .full-width { grid-column: 1 / -1; }
.form-field span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1d3b67;
    font-weight: 800;
    font-size: 13px;
}
.field-hint {
    display:block;
    margin-top: 5px;
    color: #687b97;
    font-size: 12px;
    line-height: 1.4;
}
.side-summary-list {
    display:grid;
    gap:10px;
    margin:0;
}
.side-summary-item {
    border: 1px solid #dce6f5;
    border-radius: 8px;
    background:#fff;
    padding: 10px 12px;
}
.side-summary-item dt {
    margin-bottom: 4px;
    color:#1d3b67;
    font-size:12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.side-summary-item dd {
    margin:0;
    color:#24354f;
    font-weight:600;
    word-break: break-word;
}
.desktop-callout {
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff9e9;
    border: 1px solid #f0dd9d;
    color: #6f5611;
    line-height: 1.5;
}
.desktop-callout strong { color:#5f4806; }
.classic-actions-bar {
    display:flex;
    gap:10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.definition-grid {
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}
.definition-item {
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dde6f5;
}
.definition-item.full-width { grid-column: 1 / -1; }
.definition-label {
    display:block;
    margin-bottom: 5px;
    color:#607086;
    font-size:12px;
    font-weight:800;
    text-transform: uppercase;
    letter-spacing:.05em;
}
.definition-value {
    color:#20324f;
    font-weight:600;
    line-height:1.5;
    word-break: break-word;
}
.document-link-box {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d7e4f5;
    background: #f7fbff;
}
.toolbar-micro {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}
.mini-badge {
    display:inline-flex;
    align-items:center;
    padding: 4px 8px;
    border-radius: 999px;
    background:#edf4ff;
    border:1px solid #d0dff7;
    color:#21416f;
    font-size:12px;
    font-weight:800;
}
.info-note-list {
    margin: 0;
    padding-left: 18px;
    color:#56677d;
    line-height:1.6;
}
.info-note-list li + li { margin-top: 4px; }
.board-table-wrap { padding: 0 16px 16px; }
.board-table-wrap .data-table { margin-top: 0; }
.inline-kpi-grid {
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap:10px;
}
.inline-kpi {
    padding: 10px 12px;
    border-radius: 8px;
    border:1px solid #dce6f5;
    background:#fff;
}
.inline-kpi-label {
    color:#607086;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
}
.inline-kpi-value {
    margin-top:5px;
    color:#173767;
    font-size:20px;
    font-weight:800;
}
@media (max-width: 1200px) {
  .desktop-form-layout,
  .desktop-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .desktop-form-grid,
  .definition-grid,
  .inline-kpi-grid { grid-template-columns: 1fr; }
}


.toolbar-cluster-wrap{display:flex;flex-direction:column;gap:10px}
.booking-form-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.desktop-tab-strip{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.desktop-mini-tab{display:inline-flex;align-items:center;padding:8px 12px;border-radius:10px;background:#eaf1ff;color:#173767;text-decoration:none;font-weight:700;border:1px solid #cddcff}
.desktop-mini-tab.active{background:#173767;color:#fff}
.qr-preview-box{display:flex;justify-content:center;align-items:center;padding:10px;background:#fff;border:1px solid #d6e1ff;border-radius:12px;margin:12px 0}
.qr-preview-image{max-width:180px;max-height:180px;width:100%;height:auto;object-fit:contain}
.document-button-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:16px}
.action-grid-extended section{background:#f8fbff;border:1px solid #d8e5ff;border-radius:14px;padding:14px}


.settings-tab-strip{margin-top:6px;margin-bottom:18px}
.search-input-wide{min-width:380px;max-width:100%;padding:10px 12px;border:1px solid #cddcff;border-radius:10px;background:#fff;color:#173767;flex:1}
.settings-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width: 900px){.settings-two-col{grid-template-columns:1fr}.search-input-wide{min-width:0;width:100%}}


.status-aktiv { background: rgba(25, 135, 84, 0.15); color: #0f6b3f; }
.status-inaktiv { background: rgba(220, 53, 69, 0.15); color: #8d1222; }
.compact-list { margin: 0; padding-left: 1rem; }
.compact-list li { margin-bottom: 0.35rem; }
.button-stack { display: flex; flex-direction: column; gap: 0.65rem; }

/* V401 Inventix-Desktop-Parität */
.group-row td { background:#eef5ff !important; color:#173767; border-top:2px solid #d8e7ff; font-size:13px; }
.status-verfuegbar { background:#e8f8ee; color:#146c2e; }
.status-ausgegeben { background:#fff2d7; color:#946200; }
.status-wartung { background:#e9f0ff; color:#18499a; }
.status-defekt { background:#ffe4e4; color:#9a1e1e; }
.status-reserviert { background:#f3e9ff; color:#6930a3; }
.status-archiviert, .status-entsorgung { background:#eeeeee; color:#555; }
.definition-grid .full-width { grid-column:1 / -1; }
.document-button-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px; margin-top:14px; }
.action-grid-extended textarea { min-height:64px; }

/* ==========================================================
   V407 Inventar-Desktopansicht: Master/Detail, Tree-Gruppen,
   Seitenakte und schnelle Prozessbuttons wie im alten Inventix.
   ========================================================== */
.inventory-desktop-shell { padding: 18px; }
.inventory-command-center { gap: 12px; }
.inventory-command-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; width:100%; }
.inventory-command-head h2 { margin: 4px 0 4px; color:#173767; }
.module-kicker { font-size:12px; font-weight:800; color:#0a66c2; text-transform:uppercase; letter-spacing:.06em; }
.inventory-shortcuts { border:1px solid #c9ddf7; background:#fff; border-radius:8px; padding:10px 12px; min-width:260px; color:#29496f; }
.inventory-shortcuts span { display:block; font-size:11px; text-transform:uppercase; color:#6b7d91; font-weight:800; letter-spacing:.06em; }
.inventory-shortcuts strong { display:block; margin-top:4px; font-size:13px; }
.inventory-filter-ribbon input[type="text"] { min-width: 320px; }
.inventory-process-toolbar { padding:10px; border:1px solid #d7e4f5; background:#eef6ff; border-radius:8px; }
.button-disabled { background:#eef1f5 !important; color:#7c8797 !important; border-color:#d8dee8 !important; box-shadow:none !important; cursor:not-allowed; }
.inventory-master-detail-layout { grid-template-columns: minmax(0, 1fr) 390px; align-items:start; }
.inventory-kpi-strip { margin-bottom: 12px; }
.desktop-tree-wrap { border:1px solid #cbd9eb; border-radius:8px; background:#fff; }
.inventory-tree-table { min-width: 1120px; }
.inventory-tree-table th.tree-column { width: 250px; }
.group-row td { background: linear-gradient(180deg, #eaf3ff 0%, #dcecff 100%) !important; color:#173767; border-top:2px solid #b9d2ef; }
.tree-toggle { border:1px solid #a9c4e6; background:#fff; color:#15386d; border-radius:5px; margin-right:8px; min-width:26px; height:24px; cursor:pointer; font-weight:800; }
.collapsible-group.is-collapsed .tree-toggle { transform: rotate(-90deg); }
.tree-child-row.is-hidden { display:none; }
.tree-device-cell { white-space:nowrap; }
.tree-branch { color:#8da0b7; margin-right:8px; font-family:Consolas, monospace; }
.inventory-status-row.is-selected td { background:#fff7df !important; border-top:1px solid #e6c66c; border-bottom:1px solid #e6c66c; }
.inventory-status-row.is-selected td:first-child { box-shadow: inset 4px 0 0 #f4a900; }
.inventory-side-file { position: sticky; top: 14px; max-height: calc(100vh - 150px); overflow:auto; }
.desktop-selected-card { border:1px solid #c7d9ef; background:linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%); }
.desktop-side-tabs { display:grid; grid-template-columns: repeat(3, 1fr); gap:6px; margin:12px 0; }
.side-tab { border:1px solid #c4d7ef; background:#eef5ff; color:#173767; border-radius:7px; padding:8px 6px; font-weight:800; cursor:pointer; }
.side-tab.is-active { background:linear-gradient(180deg, #2f85d6 0%, #0a66c2 52%, #084e96 100%); color:#fff; border-color:#084e96; }
.side-tab-panel { display:none; }
.side-tab-panel.is-active { display:block; }
.preview-definition-list { display:grid; gap:6px; margin:12px 0; }
.preview-definition-list div { display:grid; grid-template-columns: 130px 1fr; gap:8px; padding:7px 0; border-bottom:1px solid #e5edf7; }
.preview-definition-list dt { color:#5e6f84; font-weight:800; }
.preview-definition-list dd { margin:0; color:#1a2c45; font-weight:600; word-break:break-word; }
.preview-note-box { border:1px solid #d5e4f6; background:#f8fbff; border-radius:8px; padding:10px 12px; margin:10px 0; }
.preview-note-box p { margin:6px 0 0; color:#516376; }
.button-stack { display:grid; gap:8px; margin-top:10px; }
.mini-process-form { border:1px solid #dbe7f6; background:#fbfdff; border-radius:8px; padding:10px; display:grid; gap:8px; margin-bottom:10px; }
.mini-process-form h4 { margin:0; color:#173767; }
.mini-process-form input, .mini-process-form select, .mini-process-form textarea { width:100%; border:1px solid #c7d3e2; border-radius:6px; padding:8px 10px; background:#fff; }
.compact-doc-grid { grid-template-columns: 1fr; }
.mini-history-list { display:grid; gap:8px; }
.mini-history-item { border:1px solid #dce7f5; border-left:4px solid #0a66c2; background:#fff; border-radius:7px; padding:8px 10px; display:grid; gap:3px; }
.mini-history-item strong { color:#173767; }
.mini-history-item span, .mini-history-item small { color:#66788e; }
.status-badge { display:inline-flex; align-items:center; justify-content:center; min-height:24px; padding:3px 9px; border-radius:999px; font-weight:800; font-size:12px; border:1px solid transparent; }
.status-verfuegbar { background:#e8f8ed; color:#1b6f3b; border-color:#b9e5c8; }
.status-ausgegeben { background:#fff4d6; color:#7b5700; border-color:#ead184; }
.status-wartung { background:#eaf2ff; color:#174e90; border-color:#bdd4f4; }
.status-defekt { background:#ffe4e4; color:#9c1f1f; border-color:#ffc5c5; }
.status-reserviert { background:#f3e8ff; color:#6041a1; border-color:#d7c0f4; }
.status-archiviert, .status-entsorgung { background:#eceff3; color:#4d5868; border-color:#cfd6df; }
@media (max-width: 1180px) {
  .inventory-master-detail-layout { grid-template-columns: 1fr; }
  .inventory-side-file { position: static; max-height:none; }
  .inventory-command-head { flex-direction:column; }
  .inventory-shortcuts { width:100%; }
}


/* V409 - Gesamtprüfung / Feinschliff */
.system-check-shell { display: flex; flex-direction: column; gap: 18px; }
.system-check-hero { align-items: stretch; justify-content: space-between; }
.system-score-card { min-width: 220px; border-radius: 18px; padding: 18px; background: linear-gradient(135deg, rgba(32, 93, 165, 0.10), rgba(66, 133, 244, 0.18)); border: 1px solid rgba(32, 93, 165, 0.22); text-align: center; box-shadow: 0 10px 30px rgba(25, 64, 125, 0.10); }
.score-label, .score-subtitle { color: var(--muted-text, #667085); font-size: 0.9rem; }
.score-value { font-size: 2.7rem; font-weight: 800; line-height: 1.1; color: var(--primary-color, #1f5da8); }
.system-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.nested-warning-card { border: 1px solid rgba(245, 158, 11, 0.28); background: rgba(255, 251, 235, 0.74); }
.todo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.todo-item { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.35); background: #fff; }
.todo-item small { color: var(--muted-text, #667085); }
.system-check-table tr.check-ok td:first-child, .todo-item.check-ok { border-left: 5px solid #16a34a; }
.system-check-table tr.check-warning td:first-child, .todo-item.check-warning { border-left: 5px solid #f59e0b; }
.system-check-table tr.check-error td:first-child, .todo-item.check-error { border-left: 5px solid #dc2626; }
.check-icon-cell { width: 72px; text-align: center; font-size: 1.25rem; }

/* V415 - Migrations-TÜV */
.migration-tuv-shell .nested-info-card { border: 1px solid rgba(59, 130, 246, 0.22); background: rgba(239, 246, 255, 0.74); }
.compact-definition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.compact-definition-grid div { border: 1px solid #d9e7f7; background: #fff; border-radius: 12px; padding: 10px 12px; }
.compact-definition-grid dt { font-weight: 800; color: #49627e; font-size: 0.85rem; }
.compact-definition-grid dd { margin: 3px 0 0; color: #173767; word-break: break-word; }
.migration-comparison-table td:nth-child(5),
.migration-comparison-table td:nth-child(6) { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.system-check-table tr.check-info td:first-child, .todo-item.check-info { border-left: 5px solid #3b82f6; }

/* V416: Loginfenster mit Benutzer-Dropdown, Freitext, Passwortwechsel und Passwort-vergessen */
.enhanced-login-panel { max-width: 760px; }
.login-action-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 10px;
    padding: 6px;
    border: 1px solid #d6e2f4;
    border-radius: 12px;
    background: #f4f8ff;
}
.login-tab-button {
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    padding: 10px 12px;
    font-weight: 800;
    color: #24486f;
    cursor: pointer;
}
.login-tab-button:hover { background: #eaf2ff; }
.login-tab-button.is-active {
    background: #ffffff;
    border-color: #b7cbea;
    color: #0d3b78;
    box-shadow: 0 8px 22px rgba(28, 78, 143, 0.12);
}
.login-panel-stack { margin-top: 8px; }
.login-sub-panel { display: none; }
.login-sub-panel.is-active { display: grid; }
.login-user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.compact-info-box { margin-top: 0; }
@media (max-width: 760px) {
    .login-action-tabs,
    .login-user-grid { grid-template-columns: 1fr; }
}


/* V420: Klassisches Loginfenster - deutlich sichtbarer Abstand zwischen Passwortfeld und Buttonreihe */
.classic-login-panel { max-width: 600px; }
.classic-login-form { display: grid; gap: 14px; margin-top: 18px; }
.classic-login-line select,
.classic-login-line input { min-height: 46px; font-size: 1rem; }
.classic-login-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 42px;
}
.password-dialog {
    width: min(480px, calc(100vw - 32px));
    border: 0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 28px 80px rgba(10, 42, 88, 0.28);
}
.password-dialog::backdrop { background: rgba(8, 27, 52, 0.42); }
.password-dialog h3 { margin-top: 0; color: #123f78; }
@media (max-width: 760px) {
    .classic-login-buttons { grid-template-columns: 1fr; }
}

/* =====================================================
   V421 – Startseite entschlackt und kritische Waren sauber angeordnet
   ===================================================== */
.dashboard-overview-grid {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    align-items: stretch;
}
.dashboard-stat-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dashboard-low-stock-card {
    padding: 22px;
}
.dashboard-low-stock-title {
    align-items: flex-start;
    margin-bottom: 16px;
}
.dashboard-low-stock-title h2 {
    margin-bottom: 4px;
}
.dashboard-low-stock-counter {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff2cc;
    color: #6d5100;
    border: 1px solid #f0d783;
    font-weight: 800;
}
.dashboard-low-stock-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}
.dashboard-low-stock-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #d7e4f5;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.low-stock-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.low-stock-main strong {
    color: #173767;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.low-stock-main span,
.low-stock-values span {
    color: var(--muted);
    font-size: 12px;
}
.low-stock-values {
    display: flex;
    gap: 10px;
}
.low-stock-values div {
    min-width: 96px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e2eaf6;
    background: #fff;
}
.low-stock-values strong {
    display: block;
    margin-top: 3px;
    color: #173767;
    font-size: 17px;
}
.dashboard-empty-state {
    grid-column: 1 / -1;
    display: grid;
    gap: 5px;
    padding: 22px;
    border: 1px dashed #b7c8df;
    border-radius: 10px;
    background: #f7fbff;
    color: #173767;
    text-align: center;
}
.dashboard-empty-state span {
    color: var(--muted);
}
@media (max-width: 1100px) {
    .dashboard-overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
    .dashboard-low-stock-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .low-stock-values {
        flex-wrap: wrap;
    }
}

/* ==========================================================
   V423 - Statischer Header + statische Seitenleiste
   ----------------------------------------------------------
   Nur der Arbeitsbereich rechts scrollt. Header und linkes
   Modulmenü bleiben dauerhaft sichtbar wie im Desktop-Layout.
   ========================================================== */
body:has(.app-shell:not(.auth-shell)) {
    height: 100vh;
    overflow: hidden;
}

.app-shell:not(.auth-shell) {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-shell:not(.auth-shell) .app-header {
    flex: 0 0 auto;
    position: relative;
    z-index: 50;
}

.app-shell:not(.auth-shell) .alert[data-flash-message] {
    flex: 0 0 auto;
    margin: 10px 24px 0 279px;
    position: relative;
    z-index: 40;
}

.app-shell:not(.auth-shell) .workspace-shell {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
}

.app-shell:not(.auth-shell) .module-sidebar {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 30;
}

.app-shell:not(.auth-shell) .content-stage {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.app-shell:not(.auth-shell) .page-content {
    min-height: 100%;
}

@media (max-width: 1100px) {
    body:has(.app-shell:not(.auth-shell)) {
        overflow: auto;
        height: auto;
    }

    .app-shell:not(.auth-shell) {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .app-shell:not(.auth-shell) .workspace-shell,
    .app-shell:not(.auth-shell) .module-sidebar,
    .app-shell:not(.auth-shell) .content-stage {
        height: auto;
        overflow: visible;
    }

    .app-shell:not(.auth-shell) .alert[data-flash-message] {
        margin: 10px 18px 0;
    }
}

/* ==========================================================
   V424 - Statisches App-Grundlayout auf ALLEN angemeldeten Seiten
   ----------------------------------------------------------
   Header und linkes Sidepanel sind global fixiert. Es scrollt
   ausschließlich die rechte Arbeitsfläche (.content-stage).
   Gilt für Dashboard, Warenwirtschaft, Inventar, Kunden,
   Benutzer, Einstellungen, Systemprüfung usw.
   ========================================================== */
:root {
    --app-header-height: 100px;
    --app-sidebar-width: 255px;
}

html,
body.app-body-logged-in {
    height: 100%;
}

body.app-body-logged-in {
    overflow: hidden !important;
}

body.app-body-logged-in .app-shell:not(.auth-shell) {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: block;
}

body.app-body-logged-in .app-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: var(--app-header-height);
    min-height: var(--app-header-height);
    z-index: 1000;
}

body.app-body-logged-in .workspace-shell {
    position: fixed !important;
    top: var(--app-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: grid;
    grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
}

body.app-body-logged-in .module-sidebar {
    position: relative !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 900;
}

body.app-body-logged-in .content-stage {
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 42px;
}

body.app-body-logged-in .page-content {
    min-height: auto;
}

body.app-body-logged-in .alert[data-flash-message] {
    position: fixed;
    top: calc(var(--app-header-height) + 10px);
    left: calc(var(--app-sidebar-width) + 24px);
    right: 24px;
    z-index: 1200;
    margin: 0;
    box-shadow: 0 12px 28px rgba(16, 44, 92, 0.16);
}

@media (max-width: 1100px) {
    html,
    body.app-body-logged-in {
        height: auto;
    }

    body.app-body-logged-in {
        overflow: auto !important;
    }

    body.app-body-logged-in .app-shell:not(.auth-shell) {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        display: block;
    }

    body.app-body-logged-in .app-header {
        position: relative !important;
        height: auto;
        min-height: auto;
    }

    body.app-body-logged-in .workspace-shell {
        position: relative !important;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        height: auto !important;
        overflow: visible !important;
        grid-template-columns: 1fr;
    }

    body.app-body-logged-in .module-sidebar,
    body.app-body-logged-in .content-stage {
        height: auto !important;
        overflow: visible !important;
    }

    body.app-body-logged-in .alert[data-flash-message] {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 10px 18px 0;
    }
}

/* ==========================================================
   V426 - Inventar-Auswahl ohne Seitensprung
   ----------------------------------------------------------
   Die Auswahl eines Inventarobjekts aktualisiert nur noch die
   Seitenakte und Prozessleiste per AJAX. Kein Seitenreload,
   kein sichtbares Hochspringen der Arbeitsfläche.
   ========================================================== */
.inventory-status-row.is-loading-selection {
    cursor: progress;
    opacity: 0.82;
}

/* V429 Inventarmaske: schlanke Anlage/Bearbeitung, QR-Vorschau und klare Statusanzeige */
.readonly-status-field .readonly-pill,
.form-field input[readonly] {
    background: #eef4fb;
    color: #173767;
    font-weight: 800;
}
.readonly-pill {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    background: #eef4fb;
}
.inventory-form-checkbox {
    align-self: end;
    min-height: 38px;
}
.is-hidden { display: none !important; }
.inventory-qr-preview {
    display: grid;
    gap: 8px;
    justify-items: center;
    border: 1px solid #d9e6f7;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}
.inventory-qr-preview img {
    width: 132px;
    height: 132px;
    object-fit: contain;
    image-rendering: crisp-edges;
}
.inventory-qr-preview span {
    font-size: 12px;
    color: #53657d;
    font-weight: 700;
}
.inventory-qr-preview.detail-qr {
    display: inline-grid;
    margin: 0;
}
.field-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #64748b;
}

/* ==========================================================
   V434 – globale ruhige Auswahl und sortierbare Tabellen
   ========================================================== */
.sortable-table thead th[data-sortable-initialized="true"] {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding-right: 28px;
}
.sortable-table thead th[data-sortable-initialized="true"]::after {
    content: "↕";
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    line-height: 1;
}
.sortable-table thead th.sort-asc::after { content: "▲"; color: #fff; }
.sortable-table thead th.sort-desc::after { content: "▼"; color: #fff; }
.sortable-table thead th[data-sortable-initialized="true"]:focus {
    outline: 2px solid #ffcf66;
    outline-offset: -3px;
}
.click-row.is-loading-selection td {
    background: #eef6ff !important;
}

/* V436 Inventar: Artikel aus Warenwirtschaft übernehmen */
.inventory-product-source-callout {
    border: 1px solid #c5d8f4;
    background: #eef6ff;
    color: #173767;
    font-weight: 800;
}
.inventory-product-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(9, 32, 68, 0.46);
}
.inventory-product-picker-dialog {
    width: min(1180px, 96vw);
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #c9d9ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.product-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #dbe7f6;
    background: #f7fbff;
}
.product-picker-header h3 {
    margin: 4px 0 6px;
    color: #173767;
    font-size: 21px;
}
.product-picker-search-row {
    padding: 12px 20px;
    border-bottom: 1px solid #e3edf9;
}
.product-picker-search-row input {
    width: 100%;
    border: 1px solid #c7d3e2;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
.product-picker-table-wrap {
    padding: 0 20px 20px;
    overflow: auto;
}
.product-picker-table {
    min-width: 980px;
}
.product-picker-table td:last-child,
.product-picker-table th:last-child {
    text-align: center;
    width: 130px;
}
@media (max-width: 760px) {
    .inventory-product-picker-overlay { padding: 10px; }
    .product-picker-header { flex-direction: column; }
}

/* =========================================================
   Einrichtungsassistent
   ========================================================= */
.setup-wizard-card {
    width: min(1120px, calc(100vw - 40px));
    margin: 32px auto;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.setup-wizard-header {
    margin-bottom: 24px;
}

.setup-wizard-header h1 {
    margin: 12px 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #0f172a;
}

.setup-wizard-header p {
    max-width: 860px;
    color: #475569;
    line-height: 1.65;
}

.setup-wizard-form {
    display: grid;
    gap: 18px;
}

.setup-step-panel {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(239, 246, 255, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.26);
}

.setup-step-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.setup-step-content h2 {
    margin: 0 0 6px;
    color: #0f172a;
}

.setup-step-content p {
    margin: 0 0 18px;
    color: #64748b;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 700;
}

.form-grid input,
.form-grid select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.setup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    padding: 14px 20px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.25);
}

.setup-complete-card {
    max-width: 820px;
}

@media (max-width: 760px) {
    .setup-step-panel {
        grid-template-columns: 1fr;
    }

    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .setup-actions {
        justify-content: stretch;
    }

    .primary-action {
        width: 100%;
    }
}
