/* Hilpert One v7.64.0 – Globales Theme- und Dashboard-Designsystem */

/* Kopfzeilen-Umschalter */
.theme-toggle-button{position:relative;font-size:20px;transition:transform .16s ease,background .16s ease,color .16s ease}
.theme-toggle-button:hover{transform:translateY(-1px)}
.theme-toggle-button span{display:grid;place-items:center;line-height:1}
html[data-theme="dark"] .theme-toggle-button{background:#1b2b43;color:#f5c451;border:1px solid #30445f}
html[data-theme="light"] .theme-toggle-button{color:#0a4fb3}

/* Einheitliche Dashboard-Anmutung für Übersichts-/Verwaltungskarten */
#adminView .admin-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#adminView .admin-card,
#settingsView .settings-card,
.tools-hub-view .tools-module-card,
.platform-module-card,
.device-card,
.customer-card,
.einvoice-card,
.module-market-card{
  border:1px solid var(--line)!important;
  border-radius:18px!important;
  background:var(--card)!important;
  box-shadow:var(--shadow-soft)!important;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
#adminView .admin-card:hover,
#settingsView .settings-card:hover,
.tools-hub-view .tools-module-card:hover,
.platform-module-card:hover,
.device-card:hover,
.customer-card:hover,
.einvoice-card:hover,
.module-market-card:hover{
  transform:translateY(-2px);
  border-color:rgba(10,79,179,.34)!important;
  box-shadow:var(--shadow)!important;
}
#adminView .admin-card{min-height:126px;padding:18px;display:flex;flex-direction:column;justify-content:center;gap:7px}
#adminView .admin-card strong{font-size:16px;margin:0}
#adminView .admin-card span{line-height:1.45}
#settingsView .settings-center-intro{border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow-soft)}
#settingsView .settings-card{min-height:108px}

/* Gemeinsame Oberflächenfarben in Hell und Dunkel */
html[data-theme="dark"]{
  color-scheme:dark;
  --ho-bg:#0d1624;
  --ho-background:#0d1624;
  --ho-card:#142033;
  --ho-surface:#142033;
  --ho-surface-muted:#101c2c;
  --ho-primary-soft:#18335a;
  --ho-info-soft:#18335a;
  --ho-success-soft:#183522;
  --ho-warning-soft:#382f1f;
  --ho-danger-soft:#351d23;
  --ho-border:#2b3b50;
  --ho-text:#e6eefc;
  --ho-text-muted:#9cadc8;
  --ho-shadow-sm:0 8px 22px rgba(0,0,0,.20);
  --ho-shadow-md:0 16px 34px rgba(0,0,0,.28);
  --sec-bg:#0d1624;
  --sec-card:#142033;
  --sec-border:#2b3b50;
  --sec-text:#e6eefc;
  --sec-muted:#9cadc8;
  --border:#2b3b50;
}
html[data-theme="light"]{color-scheme:light}

html[data-theme="dark"] body,
html[data-theme="dark"] .screen{color:var(--ink)}
html[data-theme="dark"] a{color:#8fb9ff}
html[data-theme="dark"] hr{border-color:var(--line)}

/* Hauptflächen */
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .drawer-panel,
html[data-theme="dark"] .bottom-nav,
html[data-theme="dark"] .page-heading,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .dashboard-section,
html[data-theme="dark"] .dashboard-search-card,
html[data-theme="dark"] .dashboard-role-panel,
html[data-theme="dark"] .dashboard-process-health,
html[data-theme="dark"] .item-card,
html[data-theme="dark"] .history-entry,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .module-card,
html[data-theme="dark"] .platform-module-card,
html[data-theme="dark"] .tools-group-card,
html[data-theme="dark"] .overview-card,
html[data-theme="dark"] .settings-center-sidebar,
html[data-theme="dark"] .settings-center-intro,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .um-summary-card,
html[data-theme="dark"] .um-panel,
html[data-theme="dark"] .um-staff-row,
html[data-theme="dark"] .um-setup-card,
html[data-theme="dark"] .um-dialog-card,
html[data-theme="dark"] .device-card,
html[data-theme="dark"] .customer-card,
html[data-theme="dark"] .customer-info-panel,
html[data-theme="dark"] .customer-related-list>div,
html[data-theme="dark"] .device-detail-grid>div,
html[data-theme="dark"] .einvoice-kpis>div,
html[data-theme="dark"] .einvoice-card,
html[data-theme="dark"] .incoming-card,
html[data-theme="dark"] .module-market-card,
html[data-theme="dark"] .security-stat,
html[data-theme="dark"] .security-card,
html[data-theme="dark"] .security-device-row,
html[data-theme="dark"] .academy-stat,
html[data-theme="dark"] .academy-scenario-card,
html[data-theme="dark"] .academy-team-card,
html[data-theme="dark"] .academy-live-stat,
html[data-theme="dark"] .academy-panel,
html[data-theme="dark"] .academy-component,
html[data-theme="dark"] .academy-diagnosis,
html[data-theme="dark"] .academy-diagnosis-option,
html[data-theme="dark"] .academy-next-card,
html[data-theme="dark"] .academy-result-grid>div,
html[data-theme="dark"] .academy-matrix-table,
html[data-theme="dark"] .academy-level,
html[data-theme="dark"] .academy-measure-sequence li,
html[data-theme="dark"] .academy-analysis-columns>div,
html[data-theme="dark"] .support-ai-panel,
html[data-theme="dark"] .support-ai-bubble,
html[data-theme="dark"] .support-ai-quick-actions,
html[data-theme="dark"] .support-ai-form,
html[data-theme="dark"] .support-ai-privacy{
  background:var(--card)!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}

/* Sekundäre Flächen / Zeilen */
html[data-theme="dark"] .location-row,
html[data-theme="dark"] .article-summary,
html[data-theme="dark"] .mini-button,
html[data-theme="dark"] .detail-grid>div,
html[data-theme="dark"] .dashboard-tile,
html[data-theme="dark"] .dashboard-shortcuts button,
html[data-theme="dark"] .dashboard-role-action,
html[data-theme="dark"] .dashboard-process-kpi,
html[data-theme="dark"] .dashboard-priority-item,
html[data-theme="dark"] .office-actions button,
html[data-theme="dark"] .export-choice,
html[data-theme="dark"] .import-summary>div,
html[data-theme="dark"] .import-preview-row,
html[data-theme="dark"] .document-detail-grid>div,
html[data-theme="dark"] .device-card-grid div,
html[data-theme="dark"] .customer-card-stats div,
html[data-theme="dark"] .customer-kpi-grid div,
html[data-theme="dark"] .erp-live-total,
html[data-theme="dark"] .erp-detail-meta,
html[data-theme="dark"] .erp-detail-row.head,
html[data-theme="dark"] .erp-total-box,
html[data-theme="dark"] .einvoice-standard-info span,
html[data-theme="dark"] .parsed-lines,
html[data-theme="dark"] .preflight-result,
html[data-theme="dark"] .security-event-row,
html[data-theme="dark"] .security-backup-facts div,
html[data-theme="dark"] .security-note,
html[data-theme="dark"] .security-session-kpis>div,
html[data-theme="dark"] .security-session-policy-card,
html[data-theme="dark"] .security-offsite-grid>div,
html[data-theme="dark"] .security-backup-automation,
html[data-theme="dark"] .security-incident-kpis>div,
html[data-theme="dark"] .academy-customer-call,
html[data-theme="dark"] .academy-measure-button,
html[data-theme="dark"] .academy-reading,
html[data-theme="dark"] .academy-coach-bubble,
html[data-theme="dark"] .academy-filter-bar,
html[data-theme="dark"] .academy-path-analysis,
html[data-theme="dark"] .academy-analysis-note,
html[data-theme="dark"] .support-ai-statusbar,
html[data-theme="dark"] .support-ai-messages,
html[data-theme="dark"] .support-ai-quick-actions button,
html[data-theme="dark"] .file-drop,
html[data-theme="dark"] .empty-mini,
html[data-theme="dark"] .einvoice-empty{
  background:#101c2c!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}

/* Formulare, Suche und Tabs */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .search-wrap input,
html[data-theme="dark"] .device-toolbar select,
html[data-theme="dark"] .customer-toolbar select,
html[data-theme="dark"] .academy-filter-bar select{
  background:#0d1827!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#72839e}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus{background:#111f31!important;border-color:#5c8fd9!important;box-shadow:0 0 0 4px rgba(92,143,217,.13)}
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .um-tab,
html[data-theme="dark"] .einvoice-tabs button,
html[data-theme="dark"] .academy-filter-button,
html[data-theme="dark"] .notification-tab,
html[data-theme="dark"] .notification-filters button{background:#132136!important;color:var(--muted)!important;border-color:var(--line)!important}
html[data-theme="dark"] .filter-chip.active,
html[data-theme="dark"] .um-tab.active,
html[data-theme="dark"] .einvoice-tabs button.active,
html[data-theme="dark"] .academy-filter-button.active,
html[data-theme="dark"] .notification-tab.active,
html[data-theme="dark"] .notification-filters button.active{background:#1d3760!important;color:#dce9ff!important;border-color:#446da7!important}

/* Navigation */
html[data-theme="dark"] .topbar{background:rgba(14,24,39,.94)!important;border-color:var(--line)!important}
html[data-theme="dark"] .header-action{background:#132136!important;color:#c8d8ef!important;border-color:var(--line)!important}
html[data-theme="dark"] .top-nav-item{color:#a9b9d0}
html[data-theme="dark"] .top-nav-item:hover{background:#16253a;color:#e7f0ff}
html[data-theme="dark"] .top-nav-item.active{background:#1c3150;color:#dce9ff}
html[data-theme="dark"] .drawer-item{color:#b2c0d4}
html[data-theme="dark"] .drawer-item:hover,html[data-theme="dark"] .drawer-item.active{background:#18283d;color:#e7f0ff}
html[data-theme="dark"] .nav-item{color:#8fa0ba}
html[data-theme="dark"] .nav-item.active{color:#8fb9ff;background:#152640}
html[data-theme="dark"] .search-panel{background:linear-gradient(180deg,rgba(13,22,36,.98),rgba(13,22,36,.88))!important}
html[data-theme="dark"] .notification-panel{background:#111d2e!important;border-color:var(--line)!important}

/* Typografie */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] strong,
html[data-theme="dark"] label,
html[data-theme="dark"] .item-copy strong,
html[data-theme="dark"] .admin-card strong,
html[data-theme="dark"] .platform-module-card strong,
html[data-theme="dark"] .settings-card-copy strong,
html[data-theme="dark"] .device-card strong,
html[data-theme="dark"] .customer-card strong{color:var(--ink)!important}
html[data-theme="dark"] .muted,
html[data-theme="dark"] small,
html[data-theme="dark"] .item-meta,
html[data-theme="dark"] .admin-card span,
html[data-theme="dark"] .platform-module-card small,
html[data-theme="dark"] .settings-card-copy small,
html[data-theme="dark"] .device-card p,
html[data-theme="dark"] .customer-card p{color:var(--muted)!important}
html[data-theme="dark"] .eyebrow{color:#8edb70!important}

/* Semantic colors keep their meaning but get dark-safe surfaces */
html[data-theme="dark"] .info-box{background:#162841!important;border-color:#28486f!important}
html[data-theme="dark"] .warning:not(button){background:#392e1d!important;color:#f4d18a!important;border-color:#624c27!important}
html[data-theme="dark"] .success:not(button){background:#183522!important;color:#a8e4b8!important;border-color:#2c5b38!important}
html[data-theme="dark"] .danger:not(button){background:#3b2024!important;color:#ffb5b5!important;border-color:#68343a!important}
html[data-theme="dark"] .security-check-row.critical,
html[data-theme="dark"] .security-alert-row.critical,
html[data-theme="dark"] .security-device-row.blocked,
html[data-theme="dark"] .security-emergency-banner{background:#351d23!important;border-color:#6b3741!important}
html[data-theme="dark"] .security-check-row.warning{background:#382f1f!important;border-color:#66522a!important}

/* Academy/Simulator: Zeichnung bleibt bewusst kontrastreich und spielbar */
html[data-theme="dark"] .academy-plant-stage,
html[data-theme="dark"] .academy-plant-canvas,
html[data-theme="dark"] .academy-plant-area{filter:none}
html[data-theme="dark"] .academy-component.active{background:#18335a!important;border-color:#6fa7f2!important}
html[data-theme="dark"] .academy-diagnosis-option.active{background:#18335a!important;border-color:#6fa7f2!important}
html[data-theme="dark"] .academy-matrix-header{background:#16253a!important}

/* Support KI */
html[data-theme="dark"] .support-ai-message.user .support-ai-bubble{background:#163c70!important;color:#fff!important}
html[data-theme="dark"] .support-ai-message.diagnostic .support-ai-bubble{background:#172d49!important}

/* Mobile/Tablet */
@media(max-width:980px){#adminView .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){#adminView .admin-grid{grid-template-columns:1fr}.theme-toggle-button{display:grid}}

/* v7.59.0 – Dark-Mode-Abdeckung für weitere Bestandsmodule */
html[data-theme="dark"] :where(
  .service-order-card,.dispatch-card,.contact-card,.knowledge-document-card,.erp-document-card,
  .manufacturer-service-card,.manufacturer-card-grid>*,.key-search-card,.key-result-card,
  .chimney-search-card,.chimney-result-card,.chimney-change-card,.company-center-card,
  .quick-access-card,.dashboard-daily-card,.detail-card,.template-card,.plan-usage-card,
  .vault-entry-card,.version-info-card,.notification-rule-card,.academy-assignment-card,
  .academy-curriculum-card,.academy-path-card,.active-time-card,.checksum-result-card,
  .deletion-gate-card,.mfa-gate-card,.tenant-gap-card,.site-card,.sites-dashboard-card,
  .sites-map-card,.site-aggregate-card,.site-daily-report-card,.site-day-person-card,
  .site-day-side-card,.site-field-card,.site-field-map-card,.site-field-project-card,
  .site-field-schedule-card,.site-handover-card,.site-material-card,.site-paper-card,
  .site-photo-timeline-card,.site-timeline-card,.sites-company-chat-card,.um-role-card
){background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important}

html[data-theme="dark"] :where(
  table,thead,tbody,tr,td,th,.table-wrap,.data-table,.erp-table,.sites-status-table,
  .academy-matrix-table,.document-list,.contact-list,.device-list,.customer-list
){border-color:var(--line)!important}
html[data-theme="dark"] :where(th,.data-table th,.erp-table th,.sites-status-table th){background:#17263a!important;color:#cbd9ed!important}
html[data-theme="dark"] :where(td,.data-table td,.erp-table td,.sites-status-table td){color:var(--ink)}
html[data-theme="dark"] :where(tbody tr:hover,.sites-status-table tbody tr:hover){background:#17263a!important}

html[data-theme="dark"] :where(
  .site-box,.site-section,.site-panel,.service-panel,.erp-panel,.document-panel,.device-panel,
  .customer-panel,.contact-panel,.vault-panel,.key-panel,.manufacturer-panel,.company-panel,
  .notification-rule-list,.workbox-panel,.workbox-card,.workbox-section
){background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important}

html[data-theme="dark"] :where(
  .badge,.chip,.pill,.status-pill,.site-status,.site-cloud-badge,.platform-badge,.coming-chip,
  .module-core-badge,.module-entitled-badge,.module-addon-badge
){border-color:var(--line)}

/* Dashboard-Stil als gemeinsame Sprache für weitere Übersichtsseiten */
#adminView .page-heading,#settingsView .page-heading,#toolsView .page-heading,
#customersView .page-heading,#devicesView .page-heading,#documentsView .page-heading,
#serviceView .page-heading,#inventoryView .page-heading{
  border-radius:22px;
  box-shadow:var(--shadow-soft);
}

#adminView .admin-grid,#settingsView .settings-card-grid{
  align-items:stretch;
}

#adminView .admin-card,#settingsView .settings-card,
.service-order-card,.device-card,.customer-card,.contact-card,.knowledge-document-card,
.erp-document-card,.manufacturer-service-card,.key-result-card,.chimney-result-card,
.company-center-card,.vault-entry-card{
  border-radius:18px!important;
  box-shadow:var(--shadow-soft)!important;
}

/* Theme-Umschalter bleibt auch bei enger Kopfzeile sichtbar. */
.theme-toggle-button{flex:0 0 auto}
@media(max-width:760px){
  .theme-toggle-button{display:grid!important}
}


/* v7.59.1 – dunkle Flächen konsequent nachziehen, damit keine weißen Kästen auftauchen */
html[data-theme="dark"] :where(
  .vault-lock-panel,.vault-security-warning,.vault-stats>div,.vault-entry-card,.vault-entry-icon,
  .vault-entry-security-note,.vault-audit-note,.vault-security-menu .module-card,
  .site-box.white,.card-white,.plain-white-card,.surface-white
){background:#101c2c!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:var(--shadow-soft)!important}

html[data-theme="dark"] .vault-security-warning{background:#322a1b!important;border-color:#5a4a26!important}
html[data-theme="dark"] .vault-security-warning strong{color:#f2d694!important}
html[data-theme="dark"] .vault-security-warning>div span{color:#d3c29c!important}
html[data-theme="dark"] .vault-lock-panel h2,
html[data-theme="dark"] .vault-entry-main strong,
html[data-theme="dark"] .vault-stats b{color:var(--ink)!important}
html[data-theme="dark"] .vault-lock-panel p,
html[data-theme="dark"] .vault-entry-main small,
html[data-theme="dark"] .vault-stats span{color:var(--muted)!important}
html[data-theme="dark"] .vault-entry-icon{background:#16253a!important}
html[data-theme="dark"] .vault-security-chip{background:#1c3150!important;color:#dce9ff!important}

/* zusätzliche allgemeine Fallbacks für ältere Komponenten mit hartem Weiß */
html[data-theme="dark"] :where(
  .empty-state,.blank-card,.form-card,.stat-card,.result-card,.preview-card,.list-card,.content-card
){background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important}


/* v7.60.1 – Dashboard-Dark-Mode auf Design-System-Ebene repariert */
html[data-theme="dark"] .dashboard-welcome{
  background:linear-gradient(135deg,#15253a 0%,#142033 72%,#172a25 100%)!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .dashboard-role-focus{
  background:linear-gradient(135deg,#142033,#101c2c)!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
  box-shadow:var(--shadow-soft)!important;
}
html[data-theme="dark"] .dashboard-daily-brief,
html[data-theme="dark"] .dashboard-priority-panel{
  background:var(--ho-surface)!important;
  color:var(--ink)!important;
  border-color:var(--ho-border)!important;
  box-shadow:var(--ho-shadow-sm)!important;
}
html[data-theme="dark"] .dashboard-daily-card{
  background:var(--ho-surface-muted)!important;
  color:var(--ink)!important;
  border-color:var(--ho-border)!important;
}
html[data-theme="dark"] .dashboard-daily-card:hover{
  background:#18273c!important;
  border-color:#3a5578!important;
}
html[data-theme="dark"] .dashboard-role-action{
  background:#101c2c!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .dashboard-role-action:hover{background:#18273c!important;border-color:#3a5578!important}
html[data-theme="dark"] .live-status{
  background:#183522!important;
  color:#a8e4b8!important;
  border:1px solid #2c5b38!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .view-mode-toggle{
  background:#101c2c!important;
  border-color:var(--line)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .view-mode-button{color:var(--muted)!important}
html[data-theme="dark"] .view-mode-button.active{
  background:#1d3760!important;
  color:#dce9ff!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .ho-badge{background:#101c2c;color:#b8c8de;border:1px solid var(--line)}
html[data-theme="dark"] .ho-badge--info{background:#18335a;color:#bcd8ff;border-color:#315b91}

/* Die Dashboard-Hierarchie bewusst abgestuft statt einfarbig schwarz. */
html[data-theme="dark"] #dashboardView :where(.section-title h2,.dashboard-role-focus h2){color:#eef4ff!important}
html[data-theme="dark"] #dashboardView :where(.muted,.dashboard-daily-card small,.dashboard-daily-card em){color:#9cadc8!important}


/* v7.60.1 – dunkles Oberflächensystem GLOBAL, nicht nur Dashboard */
html[data-theme="dark"]{
  --ho-surface-strong:#101b2b;
  --ho-surface-soft:#162338;
}

html[data-theme="dark"] .ho-card,
html[data-theme="dark"] .ho-button--secondary,
html[data-theme="dark"] .ho-field input,
html[data-theme="dark"] .ho-field select,
html[data-theme="dark"] .ho-field textarea,
html[data-theme="dark"] .ho-badge{
  background:var(--ho-surface)!important;
  color:var(--ho-text)!important;
  border-color:var(--ho-border)!important;
}
html[data-theme="dark"] .ho-badge{background:var(--ho-surface-muted)!important;color:var(--ho-text-muted)!important}
html[data-theme="dark"] .ho-badge--success{background:var(--ho-success-soft)!important;color:#a8e4b8!important}
html[data-theme="dark"] .ho-badge--warning{background:var(--ho-warning-soft)!important;color:#f4d18a!important}
html[data-theme="dark"] .ho-badge--danger{background:var(--ho-danger-soft)!important;color:#ffb5b5!important}
html[data-theme="dark"] .ho-badge--info{background:var(--ho-info-soft)!important;color:#bcd8ff!important}

html[data-theme="dark"] :where(
  .dashboard-search-card,.dashboard-section,.dashboard-daily-brief,.dashboard-priority-panel,.dashboard-role-panel,.dashboard-process-health,
  .dashboard-daily-card,.dashboard-role-action,.dashboard-process-kpi,.dashboard-priority-item,.dashboard-shortcuts button,.office-actions button,
  .platform-module-card,.module-card,.tools-group-card,.overview-card,.item-card,.history-entry,.admin-card,.settings-card,.settings-center-sidebar,.settings-center-intro,
  .site-card,.device-card,.customer-card,.customer-info-panel,.customer-related-list>div,.device-detail-grid>div,.document-detail-grid>div,.detail-grid>div,.location-row,
  .security-stat,.security-card,.security-device-row,.security-event-row,.security-check-row,.security-alert-row,.security-emergency-banner,
  .academy-stat,.academy-scenario-card,.academy-team-card,.academy-live-stat,.academy-panel,.academy-component,.academy-diagnosis,.academy-diagnosis-option,.academy-next-card,.academy-result-grid>div,.academy-level,.academy-measure-sequence li,.academy-analysis-columns>div,
  .support-ai-panel,.support-ai-bubble,.support-ai-quick-actions,.support-ai-form,.support-ai-privacy,
  .einvoice-card,.incoming-card,.module-market-card,.erp-live-total,.erp-detail-meta,.erp-detail-row.head,.erp-total-box,.einvoice-standard-info span,.parsed-lines,.preflight-result,.import-summary>div,.import-preview-row,.export-choice,
  .vault-lock-panel,.vault-entry-card,.vault-stats>div,.vault-entry-icon,.vault-entry-security-note,.vault-audit-note,.vault-security-menu .module-card,
  .empty-state,.blank-card,.form-card,.stat-card,.result-card,.preview-card,.list-card,.content-card,.plain-white-card,.surface-white
){
  background:var(--card)!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}

html[data-theme="dark"] :where(.dashboard-daily-card,.dashboard-role-action,.dashboard-process-kpi,.dashboard-priority-item,.dashboard-shortcuts button,.office-actions button,.detail-grid>div,.device-detail-grid>div,.document-detail-grid>div,.location-row,.import-summary>div,.preflight-result,.vault-stats>div,.vault-entry-icon,.ho-badge){
  background:var(--ho-surface-soft)!important;
}

html[data-theme="dark"] :where(.dashboard-search-card,.dashboard-section,.dashboard-daily-brief,.dashboard-priority-panel,.dashboard-role-panel,.dashboard-process-health,.settings-center-sidebar,.settings-center-intro,.tools-group-card,.vault-lock-panel,.vault-entry-card,.academy-panel,.support-ai-panel){
  background:linear-gradient(180deg,#122034,#101b2b)!important;
}

html[data-theme="dark"] :where(.dashboard-welcome,.page-heading,.hero-panel){background:linear-gradient(180deg,#122034,#101b2b)!important}
html[data-theme="dark"] :where(.dashboard-welcome h1,.dashboard-section h2,.dashboard-section h3,.dashboard-search-card h2,.dashboard-role-panel h3,.page-heading h1,.hero-panel h1){color:var(--ink)!important}
html[data-theme="dark"] :where(.dashboard-welcome p,.dashboard-section p,.dashboard-search-card p,.dashboard-role-panel p,.page-heading .muted,.hero-panel .muted,.dashboard-shortcuts small,.dashboard-role-action small,.dashboard-daily-card small,.overview-card em){color:var(--muted)!important}
html[data-theme="dark"] .live-status,html[data-theme="dark"] .platform-badge{background:#183522!important;color:#a8e4b8!important;border-color:#2c5b38!important}
html[data-theme="dark"] .view-toggle button,html[data-theme="dark"] .segmented button,html[data-theme="dark"] .segmented .active{border-color:var(--line)!important}
html[data-theme="dark"] .view-toggle button{background:#152338!important;color:var(--muted)!important}
html[data-theme="dark"] .view-toggle button.active,html[data-theme="dark"] .segmented .active{background:#1d3553!important;color:#dbe8ff!important}
html[data-theme="dark"] .vault-security-warning{background:#322a1b!important;border-color:#5a4a26!important}
html[data-theme="dark"] .vault-security-warning *{color:#eadfc1!important}


/* v7.60.1 – Modulflächen für Kundendienst, Arbeitskorb und Baustellen dunkel harmonisieren */
html[data-theme="dark"] .service-stat,
html[data-theme="dark"] .service-toolbar select,
html[data-theme="dark"] .service-order-card,
html[data-theme="dark"] .service-overview-card,
html[data-theme="dark"] .service-detail-card,
html[data-theme="dark"] .service-detail-hero,
html[data-theme="dark"] .service-detail-panel,
html[data-theme="dark"] .service-customer-card{
  background:var(--card)!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .service-stat:hover,
html[data-theme="dark"] .service-stat.active{
  background:var(--ho-surface-soft)!important;
  border-color:#4d6f98!important;
}
html[data-theme="dark"] .service-stat strong{color:var(--ink)!important}
html[data-theme="dark"] .service-stat small,
html[data-theme="dark"] .service-stat em,
html[data-theme="dark"] .service-meta,
html[data-theme="dark"] .service-overview-meta{color:var(--muted)!important}

html[data-theme="dark"] .workbox-kpi,
html[data-theme="dark"] .workbox-item,
html[data-theme="dark"] .workbox-check,
html[data-theme="dark"] .workbox-context,
html[data-theme="dark"] .workbox-auto-badge,
html[data-theme="dark"] .workbox-actions .primary-like,
html[data-theme="dark"] .workbox-bottleneck-warning,
html[data-theme="dark"] .workbox-bottleneck-box{
  border-color:var(--line)!important;
  color:var(--ink)!important;
}
html[data-theme="dark"] .workbox-kpi,
html[data-theme="dark"] .workbox-item{background:var(--card)!important}
html[data-theme="dark"] .workbox-kpi.active{background:var(--ho-surface-soft)!important;border-color:#4d6f98!important;box-shadow:0 0 0 2px rgba(111,167,242,.10)!important}
html[data-theme="dark"] .workbox-kpi strong,
html[data-theme="dark"] .workbox-item-head strong{color:var(--ink)!important}
html[data-theme="dark"] .workbox-kpi span,
html[data-theme="dark"] .workbox-main p,
html[data-theme="dark"] .workbox-meta,
html[data-theme="dark"] .workbox-priority{color:var(--muted)!important}
html[data-theme="dark"] .workbox-context,
html[data-theme="dark"] .workbox-auto-badge,
html[data-theme="dark"] .workbox-actions .primary-like{background:var(--ho-surface-soft)!important}
html[data-theme="dark"] .workbox-check{background:#122034!important;border-color:#50647d!important;color:#dbe8ff!important}
html[data-theme="dark"] .workbox-check.done{background:#183522!important;border-color:#2c5b38!important;color:#a8e4b8!important}
html[data-theme="dark"] .workbox-item.overdue{background:#251820!important}
html[data-theme="dark"] .workbox-escalation-badge{background:#3b2024!important;color:#ffb5b5!important}
html[data-theme="dark"] .workbox-target-badge{background:#382f1f!important;color:#f4d18a!important;border-color:#6b552b!important}
html[data-theme="dark"] .workbox-bottleneck-warning,
html[data-theme="dark"] .workbox-bottleneck-box{background:#322a1b!important;border-color:#5a4a26!important}

html[data-theme="dark"] .sites-subnav,
html[data-theme="dark"] .sites-subnav-note,
html[data-theme="dark"] .sites-stats article,
html[data-theme="dark"] .sites-filter,
html[data-theme="dark"] .site-card,
html[data-theme="dark"] .site-project-room,
html[data-theme="dark"] .site-project-tabs,
html[data-theme="dark"] .site-box,
html[data-theme="dark"] .site-mini-button,
html[data-theme="dark"] .site-kpi,
html[data-theme="dark"] .site-aggregate-card,
html[data-theme="dark"] .site-local-badge,
html[data-theme="dark"] .site-modal,
html[data-theme="dark"] .site-member-option,
html[data-theme="dark"] .site-form-grid input,
html[data-theme="dark"] .site-form-grid select,
html[data-theme="dark"] .site-form-grid textarea{
  background:var(--card)!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .sites-subnav,
html[data-theme="dark"] .site-project-tabs,
html[data-theme="dark"] .site-project-room,
html[data-theme="dark"] .site-box,
html[data-theme="dark"] .site-aggregate-card{background:linear-gradient(180deg,#122034,#101b2b)!important}
html[data-theme="dark"] .sites-subnav-heading strong,
html[data-theme="dark"] .site-box h2,
html[data-theme="dark"] .site-box h3,
html[data-theme="dark"] .site-row-main strong,
html[data-theme="dark"] .site-kpi strong,
html[data-theme="dark"] .sites-stats strong,
html[data-theme="dark"] .site-card h2{color:var(--ink)!important}
html[data-theme="dark"] .sites-subnav-heading small,
html[data-theme="dark"] .sites-subnav-note,
html[data-theme="dark"] .site-kpi span,
html[data-theme="dark"] .site-card-meta,
html[data-theme="dark"] .site-card-foot,
html[data-theme="dark"] .site-info-row span,
html[data-theme="dark"] .site-row-main small,
html[data-theme="dark"] .site-message time,
html[data-theme="dark"] .site-message p,
html[data-theme="dark"] .sites-stats span{color:var(--muted)!important}
html[data-theme="dark"] .sites-subnav-item{color:#b8c7dd!important}
html[data-theme="dark"] .sites-subnav-item>b{background:#1a2940!important;color:#cfe0f9!important}
html[data-theme="dark"] .sites-subnav-item:hover,
html[data-theme="dark"] .sites-subnav-item.active{background:#1a2940!important;color:#e7f0ff!important}
html[data-theme="dark"] .sites-subnav-item.active>b{background:#223a5a!important;color:#fff!important}
html[data-theme="dark"] .sites-filter{background:#152338!important;color:#b8c7dd!important}
html[data-theme="dark"] .sites-filter.active{background:#1d3553!important;border-color:#4d6f98!important;color:#e7f0ff!important}
html[data-theme="dark"] .site-project-tabs button{color:#aabbd3!important}
html[data-theme="dark"] .site-project-tabs button.active{background:#1d3553!important;color:#e7f0ff!important}
html[data-theme="dark"] .site-kpi,
html[data-theme="dark"] .site-local-badge,
html[data-theme="dark"] .site-mini-button{background:var(--ho-surface-soft)!important}
html[data-theme="dark"] .site-info-row{border-bottom-color:#233349!important}
html[data-theme="dark"] .site-task,
html[data-theme="dark"] .site-message,
html[data-theme="dark"] .site-file,
html[data-theme="dark"] .site-report,
html[data-theme="dark"] .site-material,
html[data-theme="dark"] .site-activity,
html[data-theme="dark"] .site-card-foot{border-color:#233349!important}
html[data-theme="dark"] .site-priority{background:#1c2a40!important;color:#c3d1e4!important}
html[data-theme="dark"] .site-project-header{background:linear-gradient(135deg,#173761,#1b4e8f)!important}
html[data-theme="dark"] .site-composer input{background:#0f1a2a!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .site-photo{background:linear-gradient(135deg,#1a2940,#132136)!important;color:#b8c7dd!important}


/* v7.60.1 – dunkles System heller machen und restliche weiße Flächen global entfernen */
html[data-theme="dark"]{
  --ho-bg:#162234;
  --ho-background:#162234;
  --ho-card:#1a2840;
  --ho-surface:#1a2840;
  --ho-surface-muted:#152338;
  --ho-primary-soft:#22436d;
  --ho-info-soft:#22436d;
  --ho-border:#344a68;
  --ho-shadow-sm:0 8px 22px rgba(0,0,0,.18);
  --ho-shadow-md:0 16px 34px rgba(0,0,0,.24);
  --sec-bg:#162234;
  --sec-card:#1a2840;
  --sec-border:#344a68;
  --border:#344a68;
}
html[data-theme="dark"] .screen{background:linear-gradient(180deg,#122032,#1a2a3e) fixed}
html[data-theme="dark"] .topbar{background:rgba(24,37,58,.94)!important}
html[data-theme="dark"] .header-action{background:#1a2a40!important;border-color:#3a5273!important}
html[data-theme="dark"] .top-nav-item:hover{background:#20324a!important}
html[data-theme="dark"] .top-nav-item.active{background:#27405f!important}

/* Globale dunkle Flächen für bisher auffällige Restmodule */
html[data-theme="dark"] :is(#inventoryView,#documentsView,#erpView) :where(
  .item-card,.empty-state,.info-box,.detail-grid>div,.overview-card,.module-card,.page-heading,
  .document-library-sidebar,.doc-library-main,.featured-template-panel,.document-toolbar,.saved-documents-panel,
  .document-preview-panel,.document-detail-grid>div,.knowledge-document-card,.template-card,.document-library-empty,
  .einvoice-card,.einvoice-kpis>div,.erp-live-total,.erp-detail-meta,.erp-detail-row,.erp-detail-row.head,.erp-total-box,.erp-document-card,.parsed-lines,
  .view-mode-toggle,.mini-button,.site-mini-button,.service-stock-item,.service-selected-stock,.export-choice,.select-item
){
  background:var(--card)!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
  box-shadow:var(--shadow-soft)!important;
}
html[data-theme="dark"] :is(#inventoryView,#documentsView,#erpView) :where(.search-wrap input,input,select,textarea){
  background:#142133!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}

/* Lager */
html[data-theme="dark"] #inventoryView .mini-button{background:#18263c!important;color:#dbe8ff!important}
html[data-theme="dark"] #inventoryView .mini-button:hover{background:#21324a!important}
html[data-theme="dark"] #inventoryView .stock-pill{box-shadow:none!important}

/* Dokumentencenter – eigene Redesign-Regeln in dunkel überschreiben */
html[data-theme="dark"] #documentsView.documents-redesign .doc-smart-filter,
html[data-theme="dark"] #documentsView.documents-redesign .doc-category-item{
  background:#18263c!important;
  border-color:var(--line)!important;
  color:#c2d2e8!important;
}
html[data-theme="dark"] #documentsView.documents-redesign .doc-smart-filter:hover,
html[data-theme="dark"] #documentsView.documents-redesign .doc-category-item:hover{background:#22324b!important;color:#eef5ff!important}
html[data-theme="dark"] #documentsView.documents-redesign .doc-smart-filter.active,
html[data-theme="dark"] #documentsView.documents-redesign .doc-category-item.active{background:#28446a!important;border-color:#4d77ad!important;color:#fff!important}
html[data-theme="dark"] #documentsView.documents-redesign .doc-category-item b{background:#22324b!important;color:#d8e6fb!important}
html[data-theme="dark"] #documentsView.documents-redesign .doc-library-main,
html[data-theme="dark"] #documentsView.documents-redesign .featured-template-panel,
html[data-theme="dark"] #documentsView.documents-redesign.view-mode-grid .knowledge-document-card,
html[data-theme="dark"] #documentsView.documents-redesign.view-mode-list .knowledge-document-card{
  background:var(--card)!important;
  border-color:var(--line)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] #documentsView.documents-redesign .doc-library-toolbar .search-wrap{background:#142133!important;border-color:var(--line)!important}
html[data-theme="dark"] #documentsView.documents-redesign .document-filter-row select{background:#142133!important;border-color:var(--line)!important;color:#d5e2f6!important}
html[data-theme="dark"] #documentsView.documents-redesign .doc-library-meta,
html[data-theme="dark"] #documentsView.documents-redesign.view-mode-list .knowledge-document-card footer,
html[data-theme="dark"] #documentsView.documents-redesign.view-mode-list .document-card-body p{color:var(--muted)!important}
html[data-theme="dark"] #documentsView.documents-redesign .document-library-empty:not(.hidden){background:linear-gradient(180deg,#1b2a40,#17253a)!important;border-color:#415977!important}
html[data-theme="dark"] #documentsView.documents-redesign .document-library-empty>span{background:#22324b!important;color:#dce9ff!important}
html[data-theme="dark"] #documentsView.documents-redesign .document-library-empty h3{color:var(--ink)!important}
html[data-theme="dark"] #documentsView.documents-redesign .document-library-empty p{color:var(--muted)!important}

/* ERP */
html[data-theme="dark"] #erpView .einvoice-kpis>div,
html[data-theme="dark"] #erpView .erp-document-card,
html[data-theme="dark"] #erpView .erp-live-total,
html[data-theme="dark"] #erpView .erp-total-box,
html[data-theme="dark"] #erpView .parsed-lines,
html[data-theme="dark"] #erpView .empty-state{
  background:var(--card)!important;
  border-color:var(--line)!important;
  color:var(--ink)!important;
}
html[data-theme="dark"] #erpView .empty-state strong{color:var(--ink)!important}
html[data-theme="dark"] #erpView .empty-state p,
html[data-theme="dark"] #erpView .empty-state small{color:var(--muted)!important}


/* v7.60.1 – gezielte Nachschärfung für Restmodule im Dark Theme */
html[data-theme="dark"] :is(#erpView,#contactsView,#inventoryView) :where(.secondary,.secondary-button,.site-mini-button,.mini-button,.ghost-button){
  background:#18263c!important;
  color:#dce8fb!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] :is(#erpView,#contactsView,#inventoryView) :where(.secondary:hover,.secondary-button:hover,.site-mini-button:hover,.mini-button:hover,.ghost-button:hover){background:#22324b!important}
html[data-theme="dark"] #erpView .erp-stat-grid>div,
html[data-theme="dark"] #erpView .erp-filter-row button:not(.active),
html[data-theme="dark"] #erpView .erp-toolbar select,
html[data-theme="dark"] #erpView .erp-toolbar .search-wrap,
html[data-theme="dark"] #erpView .erp-empty,
html[data-theme="dark"] #erpView .parsed-lines{
  background:var(--card)!important;
  border-color:var(--line)!important;
  color:var(--ink)!important;
}
html[data-theme="dark"] #erpView .erp-filter-row button:not(.active){color:#d6e4f8!important}
html[data-theme="dark"] #erpView .erp-filter-row button.active{box-shadow:none!important}
html[data-theme="dark"] #contactsView .contact-card{background:var(--card)!important;border-color:var(--line)!important;box-shadow:var(--shadow-soft)!important}
html[data-theme="dark"] #contactsView .contact-head h2{color:var(--ink)!important}
html[data-theme="dark"] #contactsView .contact-actions a span,
html[data-theme="dark"] #contactsView .contact-actions a strong{color:var(--ink)!important}
html[data-theme="dark"] #contactsView .contact-details{border-top-color:var(--line)!important}


/* v7.60.1 – Segment-/Tab-Steuerungen im Dark Mode konsequent dunkel */
html[data-theme="dark"] #documentsView.documents-redesign .document-center-tabs{
  background:#16253a!important;
  border-color:var(--line)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] #documentsView.documents-redesign .document-center-tab{
  background:transparent!important;
  color:#b9c9df!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
html[data-theme="dark"] #documentsView.documents-redesign .document-center-tab:hover{
  background:#1e3049!important;
  color:#eef5ff!important;
}
html[data-theme="dark"] #documentsView.documents-redesign .document-center-tab.active{
  background:#29486f!important;
  color:#ffffff!important;
  border:1px solid #4e79ac!important;
  box-shadow:none!important;
}

html[data-theme="dark"] :where(.segmented,.tab-bar,.tabs,.pill-tabs,.switcher,.mode-tabs){
  background:#16253a!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] :where(.segmented button,.tab-bar button,.tabs button,.pill-tabs button,.switcher button,.mode-tabs button){
  color:#b9c9df!important;
}
html[data-theme="dark"] :where(.segmented button.active,.tab-bar button.active,.tabs button.active,.pill-tabs button.active,.switcher button.active,.mode-tabs button.active){
  background:#29486f!important;
  color:#fff!important;
  border-color:#4e79ac!important;
}

/* Hilpert One v7.78.0 – Arbeitsauftrag/Kundenstamm: bessere Lesbarkeit + Android Touch-UX */
:where(.customer-form,.service-form) label:not(.check-row),
.service-customer-field .service-field-label{
  font-size:14px;
  line-height:1.3;
  font-weight:820;
  letter-spacing:.005em;
  color:var(--blue-dark,#123f82);
}
:where(.customer-form,.service-form) label:not(.check-row){
  display:grid;
  gap:7px;
}
:where(.customer-form,.service-form) :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
.service-customer-picker>input[type="search"]{
  min-height:48px;
  padding:11px 13px;
  font-size:15px;
  line-height:1.35;
}
:where(.customer-form,.service-form) textarea{
  min-height:104px;
  resize:vertical;
}
:where(.customer-form,.service-form) label small{
  font-size:12px;
  line-height:1.4;
  font-weight:600;
  color:var(--muted,#68738a);
}
:where(.customer-form,.service-form) .check-row{
  min-height:48px;
  padding:8px 2px;
  font-size:14px;
  line-height:1.35;
}
:where(.customer-form,.service-form) .modal-actions :where(button,.primary,.secondary),
.customer-tabs button,
.service-detail-actions :where(button,.primary,.secondary){
  min-height:48px;
}
.customer-tabs button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
}
html[data-theme="dark"] :where(.customer-form,.service-form) label:not(.check-row),
html[data-theme="dark"] .service-customer-field .service-field-label{
  color:var(--ink,#e7eef9);
}

@media(max-width:720px){
  :where(.customer-form,.service-form){gap:17px}
  :where(.customer-form,.service-form) label:not(.check-row),
  .service-customer-field .service-field-label{
    font-size:15px;
  }
  :where(.customer-form,.service-form) :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
  .service-customer-picker>input[type="search"]{
    min-height:52px;
    font-size:16px;
    padding:12px 14px;
  }
  :where(.customer-form,.service-form) .check-row,
  :where(.customer-form,.service-form) .modal-actions :where(button,.primary,.secondary),
  .customer-tabs button,
  .service-detail-actions :where(button,.primary,.secondary){
    min-height:52px;
  }
  .customer-tabs{gap:8px;padding-bottom:10px}
  .customer-tabs button{padding:11px 15px}
}


/* Hilpert One v7.79.0 – Kundenakte + Arbeitsauftrag UX-Neustrukturierung / Android Monteurmodus */
.h1-form-section{margin:0;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--panel,#fff);display:grid;gap:14px;min-width:0}
.h1-form-section legend{padding:0 9px;font-size:15px;font-weight:900;color:var(--ink);letter-spacing:.01em}
.h1-form-section-primary{border-color:#a9c7ec;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%)}
.h1-form-section-secondary{background:var(--soft,#f7f9fc)}
.customer-form-v2{display:grid;gap:18px}
.service-form-v2{display:grid;gap:16px}
.service-form-section-title{display:flex;align-items:center;gap:11px;margin:10px 0 -2px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--soft,#f6f9fd)}
.service-form-section-title>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:var(--blue,#245f9f);color:#fff;font-weight:900}
.service-form-section-title strong,.service-form-section-title small{display:block}.service-form-section-title strong{font-size:15px}.service-form-section-title small{margin-top:2px;color:var(--muted);font-size:12px}
.sticky-form-actions{position:sticky;bottom:-18px;z-index:5;margin:0 -4px -4px;padding:14px 4px 4px;background:linear-gradient(180deg,transparent 0%,var(--panel,#fff) 28%)}

.service-detail-v2,.customer-detail-v2{display:grid;gap:16px}
.service-detail-hero-v2{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:20px;padding:18px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,var(--panel,#fff),var(--soft,#f6f9fd))}
.service-detail-main{min-width:0}.service-detail-hero-v2 h3{margin:8px 0 12px;font-size:clamp(22px,2.3vw,30px);line-height:1.15}
.service-order-number{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;background:var(--soft,#eef3f8);font-size:12px;font-weight:800;color:var(--muted)}
.service-hero-facts{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px 16px;margin-top:8px}
.service-hero-facts span{display:grid;gap:2px;min-width:0;padding-left:11px;border-left:2px solid var(--line)}
.service-hero-facts small{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.service-hero-facts strong{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.service-detail-hero-v2 .service-detail-actions{max-width:330px;justify-content:flex-end}
.service-mobile-commandbar{display:none}
.service-tabs-v2,.customer-tabs-v2{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:3px 2px 7px}.service-tabs-v2 button,.customer-tabs-v2 button{flex:0 0 auto;white-space:nowrap}
.service-tabs-v2 button span{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;padding:0 5px;border-radius:999px;background:rgba(32,92,161,.1);font-size:11px}
.service-overview-stack{display:grid;gap:16px}.service-task-card{padding:20px;border:1px solid #bfd3ed;border-left:5px solid var(--blue,#2563a9);border-radius:18px;background:linear-gradient(135deg,#f7fbff,#fff)}
.service-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.service-section-heading h3{margin:2px 0 0}.service-task-text{margin:14px 0 0;font-size:18px;line-height:1.55;font-weight:650;color:var(--ink)}
.service-overview-context-grid{align-items:stretch}.service-context-panel{height:100%}.service-context-lines{display:grid;gap:8px;margin-top:10px}
.service-context-lines>span,.service-context-lines>a,.service-context-lines>button{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 11px;border:1px solid var(--line);border-radius:12px;color:inherit;text-decoration:none;background:var(--panel,#fff)}
.service-context-lines i{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--soft,#eef4fb);font-style:normal}.service-context-lines small{color:var(--muted);font-size:11px;white-space:nowrap}

.customer-detail-hero-v2{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,var(--panel,#fff),var(--soft,#f6f9fd))}
.customer-hero-copy{min-width:0}.customer-hero-copy h3{margin:3px 0 7px;font-size:clamp(22px,2.3vw,30px)}.customer-hero-facts{display:flex;gap:8px 14px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.customer-detail-actions-v2{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.customer-primary-actions,.customer-secondary-actions{display:flex;gap:8px;flex-wrap:wrap}.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.customer-overview-v2{display:grid;gap:16px}.customer-contact-panel-v2{display:grid;gap:14px}.customer-contact-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.customer-contact-tiles>div{display:grid;gap:5px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--panel,#fff);min-width:0}.customer-contact-tiles small{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.customer-contact-tiles strong{font-size:14px;overflow-wrap:anywhere}.customer-contact-tiles a{font-size:12px;font-weight:800;text-decoration:none;color:var(--blue)}.customer-contact-tiles span{font-size:12px;color:var(--muted)}
.customer-kpi-grid-v2 .attention{border-color:#e8ba67;background:#fff9eb}.customer-kpi-grid-v2 .attention strong{color:#9a5c00}.customer-note-priority{border-left:4px solid #e0a13f}

html[data-theme="dark"] .h1-form-section-primary,html[data-theme="dark"] .service-task-card{background:linear-gradient(180deg,#162943,#142238);border-color:#385a82}
html[data-theme="dark"] .h1-form-section-secondary,html[data-theme="dark"] .service-detail-hero-v2,html[data-theme="dark"] .customer-detail-hero-v2,html[data-theme="dark"] .service-form-section-title{background:#17263b}
html[data-theme="dark"] .service-context-lines>span,html[data-theme="dark"] .service-context-lines>a,html[data-theme="dark"] .service-context-lines>button,html[data-theme="dark"] .customer-contact-tiles>div{background:#17263b}
html[data-theme="dark"] .customer-kpi-grid-v2 .attention{background:#3b2d16;border-color:#6e5525}

@media(max-width:1050px){.service-hero-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-contact-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .modal.service-order-modal,.modal.customer-record-modal{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important}
  .modal.service-order-modal #modalBody,.modal.customer-record-modal #modalBody{padding:12px 12px 92px!important}
  .service-detail-hero-v2{grid-template-columns:1fr;padding:14px;border-radius:16px}.service-detail-hero-v2 .service-detail-actions{max-width:none;display:none}
  .service-hero-facts{grid-template-columns:1fr 1fr;gap:9px}.service-hero-facts span{padding:9px 10px;border:1px solid var(--line);border-left:3px solid var(--blue,#2563a9);border-radius:11px;background:var(--panel,#fff)}
  .service-hero-facts small{font-size:10px}.service-hero-facts strong{font-size:13px}
  .service-mobile-commandbar{position:fixed;left:0;right:0;bottom:0;z-index:10050;display:grid;grid-template-columns:repeat(5,1fr);gap:1px;padding:6px 6px calc(6px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--panel,#fff);box-shadow:0 -8px 24px rgba(20,35,55,.16)}
  .service-command{min-width:0;min-height:58px;padding:5px 2px;border:0;border-radius:10px;background:transparent;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;font:inherit;cursor:pointer}.service-command span{font-size:20px;line-height:1}.service-command b{font-size:10px;line-height:1.1}.service-command:hover,.service-command:focus{background:var(--soft,#edf4fb)}.service-command-primary{background:var(--blue,#245f9f);color:#fff}.service-command-primary:hover,.service-command-primary:focus{background:var(--blue-dark,#164b86);color:#fff}.service-command.disabled{opacity:.35;pointer-events:none}
  .service-tabs-v2,.customer-tabs-v2{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px;scroll-snap-type:x proximity}.service-tabs-v2 button,.customer-tabs-v2 button{min-height:46px;scroll-snap-align:start}
  .service-task-card{padding:16px}.service-task-text{font-size:17px}.service-overview-context-grid{grid-template-columns:1fr!important}.service-context-lines>span,.service-context-lines>a,.service-context-lines>button{grid-template-columns:34px minmax(0,1fr)}.service-context-lines small{grid-column:2;white-space:normal}
  .customer-detail-hero-v2{grid-template-columns:auto 1fr;padding:14px}.customer-detail-hero-v2>.customer-status{grid-column:1/-1;justify-self:start}.customer-avatar.large{width:48px;height:48px}.customer-hero-facts{display:grid;gap:4px;font-size:12px}
  .customer-detail-actions-v2{display:grid}.customer-primary-actions,.customer-secondary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.customer-primary-actions .primary{grid-column:1/-1}.customer-detail-actions-v2 button,.customer-detail-actions-v2 a{min-height:48px;width:100%}
  .customer-contact-tiles{grid-template-columns:1fr}.customer-kpi-grid-v2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .h1-form-section{padding:15px 12px;border-radius:15px}.h1-form-section legend{font-size:16px}.service-form-v2,.customer-form-v2{gap:14px}.service-form-section-title{margin-top:6px;padding:11px 12px}.sticky-form-actions{bottom:-12px;padding:13px 0 0}.sticky-form-actions button{min-height:52px;flex:1}
}
@media(max-width:420px){.service-hero-facts{grid-template-columns:1fr}.service-command b{font-size:9px}.customer-primary-actions,.customer-secondary-actions{grid-template-columns:1fr}.customer-primary-actions .primary{grid-column:auto}}


/* Hilpert One v7.86.0 – durchgängiger mobiler Monteur-Workflow */
.service-mobile-workflow{display:none}
.service-work-review{display:grid;gap:16px}
.service-work-review-intro{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;align-items:start;padding:17px;border:1px solid #bad4ee;border-radius:18px;background:linear-gradient(145deg,#f6fbff,#fff)}
.service-work-review-intro>span{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e8f4ff;color:#0a5fc2;font-size:24px;font-weight:900}.service-work-review-intro h3{margin:2px 0 5px;color:var(--ink)}.service-work-review-intro p{margin:0;color:var(--muted);line-height:1.45}
.service-work-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.service-work-review-grid article{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--panel,#fff)}.service-work-review-grid article>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--soft,#eef4fa);font-size:18px;font-weight:900}.service-work-review-grid article.done{border-color:#b7dfc5}.service-work-review-grid article.done>span{background:#e8f7ed;color:#16763b}.service-work-review-grid article.warning{border-color:#edc777;background:#fffaf0}.service-work-review-grid article.warning>span{background:#fff0c9;color:#8c5b00}.service-work-review-grid small,.service-work-review-grid strong,.service-work-review-grid p{display:block}.service-work-review-grid small{color:var(--muted);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.service-work-review-grid strong{margin-top:2px;font-size:14px}.service-work-review-grid p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.4}.service-work-review-grid button{min-height:42px;white-space:nowrap}
.service-work-review-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:2px}.service-work-review-actions button{min-height:50px}
html[data-theme="dark"] .service-work-review-intro{background:#17283e;border-color:#365b81}.service-work-review-grid article.warning{color:var(--ink)}html[data-theme="dark"] .service-work-review-grid article.warning{background:#382f1d;border-color:#6d5a2c}html[data-theme="dark"] .service-work-review-grid article.done{border-color:#315f43}html[data-theme="dark"] .service-work-review-grid article.done>span{background:#1d3a28;color:#77d494}

@media(max-width:760px){
  .service-visit-strip .service-visit-actions{display:none}
  .service-mobile-workflow{display:grid;gap:12px;padding:14px;border:1px solid #bad3ed;border-radius:18px;background:linear-gradient(145deg,#f7fbff,#eef6ff);box-shadow:0 8px 22px rgba(18,61,105,.07)}
  .service-workflow-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.service-workflow-head h3{margin:2px 0 0;font-size:19px;color:#123f82}.service-workflow-head>span{display:grid;place-items:center;min-width:46px;height:30px;padding:0 9px;border-radius:999px;background:#fff;border:1px solid #c8d9ea;color:#0a5fc2;font-size:11px;font-weight:900}
  .service-workflow-progress{height:7px;border-radius:999px;overflow:hidden;background:#dce8f4}.service-workflow-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0a5fc2,#2f8ae2)}
  .service-workflow-milestones{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.service-workflow-milestones span{display:grid;justify-items:center;gap:4px;min-width:0;color:#8291a3}.service-workflow-milestones i{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff;border:1px solid #cbd9e7;font-style:normal;font-size:10px;font-weight:900}.service-workflow-milestones b{max-width:100%;font-size:8px;line-height:1.1;text-align:center;overflow:hidden;text-overflow:ellipsis}.service-workflow-milestones span.done{color:#17723c}.service-workflow-milestones span.done i{background:#e6f6ec;border-color:#a9d9b9;color:#17723c}.service-workflow-milestones span.current{color:#0a5fc2}.service-workflow-milestones span.current i{background:#0a5fc2;border-color:#0a5fc2;color:#fff;box-shadow:0 0 0 4px rgba(10,95,194,.1)}
  .service-workflow-next{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;padding:12px;border:1px solid #c9dbed;border-radius:14px;background:#fff}.service-workflow-next-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eaf3ff;font-size:20px}.service-workflow-next small,.service-workflow-next strong,.service-workflow-next p{display:block}.service-workflow-next small{color:#687789;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.service-workflow-next strong{margin-top:2px;font-size:15px;color:#173f6a}.service-workflow-next p{margin:4px 0 0;color:#687789;font-size:11px;line-height:1.35}.service-workflow-next button,.service-workflow-done{grid-column:1/-1;min-height:48px;width:100%;border-radius:12px}.service-workflow-done{display:grid;place-items:center;background:#e8f7ed;color:#166d39;font-weight:900}
  .service-workflow-check{border-top:1px solid #d7e3ef;padding-top:9px}.service-workflow-check summary{cursor:pointer;color:#41617f;font-size:11px;font-weight:850}.service-workflow-check>div{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.service-workflow-check span{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:1px 7px;padding:8px;border-radius:10px;background:#fff;border:1px solid #d8e3ee}.service-workflow-check i{grid-row:1/3;display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#f0f4f8;font-style:normal;font-size:10px;font-weight:900}.service-workflow-check b{font-size:10px}.service-workflow-check small{font-size:9px;color:#7b8795}.service-workflow-check span.done i{background:#e7f6ec;color:#17723c}
  .service-work-review-grid{grid-template-columns:1fr}.service-work-review-grid article{grid-template-columns:40px minmax(0,1fr)}.service-work-review-grid article button{grid-column:1/-1;width:100%;min-height:48px}.service-work-review-actions{display:grid;grid-template-columns:1fr}.service-work-review-actions button{width:100%}
  html[data-theme="dark"] .service-mobile-workflow{background:linear-gradient(145deg,#16283f,#1a304a);border-color:#365472}html[data-theme="dark"] .service-workflow-head h3{color:#dce9f8}html[data-theme="dark"] .service-workflow-head>span,html[data-theme="dark"] .service-workflow-next,html[data-theme="dark"] .service-workflow-check span{background:#182a42;border-color:#38516f}html[data-theme="dark"] .service-workflow-next strong{color:#dce8f5}html[data-theme="dark"] .service-workflow-next-icon{background:#213b5b}html[data-theme="dark"] .service-workflow-progress{background:#29425d}
}


/* Hilpert One v7.80.0 – eigenständige H1 Startzentrale / rollenbasierte Hotkeys */
#dashboardView.h1-start-mode > :not(.h1-start-dashboard){display:none!important}
.h1-start-dashboard{max-width:1500px;margin:0 auto;padding:2px 0 24px}
.h1-start-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:26px;padding:32px 34px 28px;border:1px solid rgba(10,79,179,.11);border-radius:30px;background:linear-gradient(128deg,#f7fbff 0%,#eef5ff 52%,#f3faef 100%);box-shadow:0 18px 48px rgba(22,48,86,.08);overflow:hidden;position:relative}
.h1-start-hero::after{content:"H1";position:absolute;right:-14px;bottom:-55px;font-size:190px;line-height:1;font-weight:950;letter-spacing:-.09em;color:rgba(10,79,179,.035);pointer-events:none}
.h1-start-brandline{display:flex;align-items:center;gap:10px;color:var(--blue-dark,#083d87);font-weight:900;font-size:14px;margin-bottom:20px}
.h1-start-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,var(--blue,#0a4fb3),#1478e8);color:#fff;font-weight:950;box-shadow:0 8px 20px rgba(10,79,179,.22)}
.h1-start-hero .eyebrow{margin:0 0 5px}.h1-start-hero h1{margin:0;font-size:clamp(34px,4vw,56px);line-height:1.02;letter-spacing:-.035em;color:var(--blue-dark,#083d87)}
.h1-start-subtitle{margin:10px 0 0;color:var(--muted,#667085);font-size:17px;line-height:1.5;font-weight:650}
.h1-start-hero-actions{display:flex;flex-direction:column;align-items:flex-end;gap:18px;position:relative;z-index:1}
.h1-start-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.h1-start-online{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.78);border:1px solid rgba(31,173,91,.16);color:#176b39;font-size:12px}
.h1-start-online i{width:8px;height:8px;border-radius:50%;background:#24ad5c;box-shadow:0 0 0 4px rgba(36,173,92,.12)}
.h1-start-online.offline{color:#9a4c16;border-color:rgba(196,113,40,.2)}.h1-start-online.offline i{background:#d47a2c;box-shadow:0 0 0 4px rgba(212,122,44,.12)}
.h1-start-overview-toggle{min-height:46px;padding:0 16px;border-radius:14px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px)}
.h1-start-search{width:100%;display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:14px;margin:16px 0 18px;padding:15px 18px;border:1px solid rgba(10,79,179,.14);border-radius:20px;background:#fff;text-align:left;box-shadow:0 8px 28px rgba(20,45,80,.07);transition:.18s ease}
.h1-start-search:hover{transform:translateY(-1px);border-color:rgba(10,79,179,.35);box-shadow:0 12px 30px rgba(20,45,80,.1)}
.h1-start-search-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#eef5ff;color:var(--blue,#0a4fb3);font-size:27px;font-weight:900}
.h1-start-search-copy strong,.h1-start-search-copy small{display:block}.h1-start-search-copy strong{color:var(--blue-dark,#083d87);font-size:16px}.h1-start-search-copy small{margin-top:3px;color:var(--muted,#667085);font-size:12px}
.h1-start-search kbd{min-width:44px;padding:7px 9px;border:1px solid #d7dfeb;border-bottom-width:2px;border-radius:9px;background:#f8fafc;color:#607086;font-size:11px;text-align:center;font-family:inherit}
.h1-start-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(315px,.6fr);gap:18px;align-items:start}
.h1-start-shortcut-panel,.h1-start-today,.h1-start-favorites{border:1px solid rgba(219,227,239,.95);border-radius:24px;background:#fff;box-shadow:0 8px 28px rgba(20,45,80,.055);padding:20px}
.h1-start-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}.h1-start-section-head .eyebrow{margin:0 0 3px}.h1-start-section-head h2{margin:0;color:var(--blue-dark,#083d87);font-size:20px}.h1-start-section-head>small{color:var(--muted,#667085);font-size:11px;font-weight:700}
.h1-start-hotkeys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.h1-start-hotkey{position:relative;min-height:132px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;padding:15px;border:1px solid #e2e8f0;border-radius:18px;background:#fbfcfe;text-align:left;overflow:hidden;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}
.h1-start-hotkey:hover{transform:translateY(-2px);border-color:#bdd4f3;background:#fff;box-shadow:0 10px 24px rgba(20,50,90,.1)}
.h1-start-hotkey.is-primary{background:linear-gradient(145deg,#0a4fb3,#0f68d8);border-color:transparent;box-shadow:0 12px 28px rgba(10,79,179,.18)}
.h1-start-hotkey-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:7px;border-radius:13px;background:#eef5ff;color:var(--blue,#0a4fb3);font-size:21px;font-weight:900}
.h1-start-hotkey strong{display:block;color:#17324f;font-size:14px;line-height:1.25}.h1-start-hotkey small{display:block;color:#758397;font-size:10.5px;line-height:1.35}.h1-start-hotkey b{position:absolute;right:12px;bottom:11px;color:#9aabc0;font-size:16px}
.h1-start-hotkey.is-primary .h1-start-hotkey-icon{background:rgba(255,255,255,.15);color:#fff}.h1-start-hotkey.is-primary strong,.h1-start-hotkey.is-primary small,.h1-start-hotkey.is-primary b{color:#fff}.h1-start-hotkey.is-primary small{opacity:.78}.h1-start-hotkey.is-primary b{opacity:.7}
.h1-start-today-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.h1-start-today-grid button{min-height:112px;display:flex;flex-direction:column;align-items:flex-start;padding:13px;border:1px solid #e3e9f2;border-radius:16px;background:#f9fbfd;text-align:left;transition:.16s ease}.h1-start-today-grid button:hover{background:#fff;border-color:#c7d7ec;transform:translateY(-1px)}
.h1-start-today-grid button>span{font-size:18px;color:var(--blue,#0a4fb3)}.h1-start-today-grid small,.h1-start-today-grid strong,.h1-start-today-grid em{display:block}.h1-start-today-grid small{margin-top:7px;color:#6d7c90;font-size:10.5px;font-weight:800}.h1-start-today-grid strong{margin-top:2px;color:#162f4d;font-size:25px;line-height:1}.h1-start-today-grid em{margin-top:4px;color:#8a96a7;font-size:9.5px;font-style:normal;line-height:1.25}
.h1-start-priority{margin-top:10px}.h1-start-priority button{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:11px 12px;border:1px solid #f0d9b5;border-radius:14px;background:#fff9ef;text-align:left}.h1-start-priority button>span:first-child{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#fff1d7;color:#a45b12;font-weight:900}.h1-start-priority strong,.h1-start-priority small{display:block}.h1-start-priority strong{color:#714515;font-size:11.5px}.h1-start-priority small{margin-top:2px;color:#9a7044;font-size:9.5px}.h1-start-priority b{color:#b07d42}
.h1-start-favorites{margin-top:18px}.h1-start-favorite-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.h1-start-favorite{display:flex;gap:10px;align-items:center;min-height:64px;padding:10px 12px;border:1px solid #e3e9f2;border-radius:15px;background:#fafcff;text-align:left}.h1-start-favorite>span:first-child{color:#d4941e;font-size:17px}.h1-start-favorite span:nth-child(2){min-width:0;flex:1}.h1-start-favorite strong,.h1-start-favorite small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h1-start-favorite strong{color:#19324f;font-size:11.5px}.h1-start-favorite small{margin-top:2px;color:#8491a3;font-size:9.5px}.h1-start-favorite b{color:#9baabc}
#dashboardView:not(.h1-start-mode) .h1-start-dashboard{margin-bottom:22px}.h1-start-dashboard .hidden{display:none!important}
@media(max-width:1180px){.h1-start-hotkeys{grid-template-columns:repeat(3,minmax(0,1fr))}.h1-start-favorite-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.h1-start-main{grid-template-columns:1fr}.h1-start-hotkeys{grid-template-columns:repeat(3,minmax(0,1fr))}.h1-start-today-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.h1-start-today-grid button{min-height:96px}.h1-start-hero{padding:26px}.h1-start-favorite-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.h1-start-dashboard{padding-bottom:84px}.h1-start-hero{padding:20px;border-radius:22px;display:block}.h1-start-hero::after{font-size:125px;bottom:-38px}.h1-start-brandline{margin-bottom:16px}.h1-start-hero h1{font-size:34px}.h1-start-subtitle{font-size:14px}.h1-start-hero-actions{margin-top:18px;align-items:stretch}.h1-start-context{justify-content:flex-start}.h1-start-overview-toggle{width:100%}.h1-start-search{grid-template-columns:44px minmax(0,1fr);padding:12px 13px;border-radius:17px}.h1-start-search kbd{display:none}.h1-start-search-icon{width:42px;height:42px}.h1-start-search-copy strong{font-size:14px}.h1-start-search-copy small{font-size:10.5px}.h1-start-shortcut-panel,.h1-start-today,.h1-start-favorites{padding:15px;border-radius:19px}.h1-start-section-head{align-items:flex-start}.h1-start-section-head>small{display:none}.h1-start-hotkeys{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.h1-start-hotkey{min-height:122px;padding:13px;border-radius:16px}.h1-start-hotkey-icon{width:40px;height:40px}.h1-start-today-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.h1-start-favorite-grid{grid-template-columns:1fr}}
@media(max-width:390px){.h1-start-hotkey{min-height:116px}.h1-start-hotkey strong{font-size:13px}.h1-start-hotkey small{font-size:9.5px}}
html[data-theme="dark"] .h1-start-hero{background:linear-gradient(135deg,#111d2e 0%,#13233a 58%,#15291e 100%);border-color:#263a54;box-shadow:none}html[data-theme="dark"] .h1-start-hero::after{color:rgba(117,174,255,.04)}html[data-theme="dark"] .h1-start-hero h1,html[data-theme="dark"] .h1-start-section-head h2{color:#e7f0ff}html[data-theme="dark"] .h1-start-subtitle{color:#aebbd0}html[data-theme="dark"] .h1-start-online{background:#172537;color:#8dd5a7;border-color:#294836}html[data-theme="dark"] .h1-start-overview-toggle{background:#17283d;color:#e8eef8;border-color:#32445b}html[data-theme="dark"] .h1-start-search,html[data-theme="dark"] .h1-start-shortcut-panel,html[data-theme="dark"] .h1-start-today,html[data-theme="dark"] .h1-start-favorites{background:#111b29;border-color:#27374b;box-shadow:none}html[data-theme="dark"] .h1-start-search-icon{background:#182c47;color:#93c2ff}html[data-theme="dark"] .h1-start-search-copy strong{color:#e7f0ff}html[data-theme="dark"] .h1-start-search-copy small{color:#9cabc0}html[data-theme="dark"] .h1-start-search kbd{background:#172334;border-color:#35445a;color:#aebbd0}html[data-theme="dark"] .h1-start-hotkey,html[data-theme="dark"] .h1-start-today-grid button,html[data-theme="dark"] .h1-start-favorite{background:#142132;border-color:#29394d}html[data-theme="dark"] .h1-start-hotkey:hover,html[data-theme="dark"] .h1-start-today-grid button:hover{background:#19283b;border-color:#395779}html[data-theme="dark"] .h1-start-hotkey strong,html[data-theme="dark"] .h1-start-today-grid strong,html[data-theme="dark"] .h1-start-favorite strong{color:#e4edf9}html[data-theme="dark"] .h1-start-hotkey small,html[data-theme="dark"] .h1-start-today-grid small,html[data-theme="dark"] .h1-start-today-grid em,html[data-theme="dark"] .h1-start-favorite small{color:#94a4ba}html[data-theme="dark"] .h1-start-hotkey-icon{background:#1b304c;color:#9cc7ff}html[data-theme="dark"] .h1-start-priority button{background:#2b2419;border-color:#534026}html[data-theme="dark"] .h1-start-priority strong{color:#f0c789}html[data-theme="dark"] .h1-start-priority small{color:#c7a36d}


/* Hilpert One v7.87.0 – Monteur-Tagescockpit */
.h1-technician-cockpit{margin:0 0 18px;border:1px solid #dbe5f1;border-radius:24px;background:#fff;box-shadow:0 10px 30px rgba(20,45,80,.065);padding:20px}
.h1-tech-cockpit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.h1-tech-cockpit-head h2{margin:2px 0 2px;color:#17324f;font-size:22px}.h1-tech-cockpit-head p{margin:0;color:#758397;font-size:12px}
.h1-tech-sync{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 12px;border:1px solid #dfe7f1;border-radius:999px;background:#f8fbff;color:#36506d}.h1-tech-sync span{width:9px;height:9px;border-radius:50%;background:#2fb56f}.h1-tech-sync.pending span{background:#e3a11a}.h1-tech-sync.offline span{background:#8a96a7}.h1-tech-sync.danger span{background:#dc4b4b}.h1-tech-sync strong{font-size:11px}
.h1-tech-next{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:18px;border:1px solid #d8e5f5;border-radius:20px;background:linear-gradient(145deg,#f8fbff,#f2f7fd);position:relative;overflow:hidden}.h1-tech-next::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#0a67d8}.h1-tech-next.high::before,.h1-tech-next.emergency::before{background:#df4a4a}
.h1-tech-next-top{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}.h1-tech-time{font-size:22px;font-weight:900;color:#0b4fa6}.h1-tech-status{padding:6px 10px;border-radius:999px;background:#e7f1ff;color:#195cae;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.03em}
.h1-tech-order small{display:block;color:#78889c;font-size:10.5px;font-weight:800}.h1-tech-order h3{margin:5px 0 1px;color:#162f4d;font-size:22px}.h1-tech-order>strong{display:block;color:#37526f;font-size:13px}.h1-tech-order p{margin:8px 0 0;color:#53677e;font-size:12px}.h1-tech-issue{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #e0e8f2;color:#314a66;font-size:12px;line-height:1.4}.h1-tech-team{margin-top:9px;color:#60758d!important}
.h1-tech-actions{display:flex;align-items:stretch;gap:8px;align-self:end}.h1-tech-actions a,.h1-tech-actions button{min-width:92px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:14px;text-decoration:none;font-size:19px}.h1-tech-actions a{border:1px solid #d9e4f1;background:#fff;color:#185cad}.h1-tech-actions span{font-size:10px;font-weight:900}
.h1-tech-upcoming{margin-top:12px}.h1-tech-upcoming-head{display:flex;justify-content:space-between;align-items:center;padding:3px 2px 7px}.h1-tech-upcoming-head strong{font-size:12px;color:#45607d}.h1-tech-upcoming-head button{border:0;background:transparent;color:#0a61c4;font-size:11px;font-weight:900;padding:5px}
.h1-tech-upcoming-row{width:100%;display:grid;grid-template-columns:116px minmax(0,1fr) 18px;gap:10px;align-items:center;padding:10px 12px;margin-top:6px;border:1px solid #e1e8f1;border-radius:13px;background:#fbfcfe;text-align:left}.h1-tech-upcoming-row>span{min-width:0}.h1-tech-upcoming-row strong,.h1-tech-upcoming-row b,.h1-tech-upcoming-row small{display:block}.h1-tech-upcoming-row strong{color:#174d89;font-size:12px}.h1-tech-upcoming-row b{color:#243d59;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h1-tech-upcoming-row small{margin-top:2px;color:#8390a0;font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h1-tech-upcoming-row em{font-style:normal;color:#8ca0b8;font-size:18px}
.h1-tech-empty,.h1-tech-loading{display:flex;align-items:center;gap:14px;min-height:92px;padding:16px;border:1px dashed #ccd9e8;border-radius:17px;background:#f9fbfd}.h1-tech-empty>span,.h1-tech-loading>span{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#eaf6ef;color:#238451;font-size:21px}.h1-tech-loading>span{background:#edf4ff;color:#2365b3}.h1-tech-empty div,.h1-tech-loading div{flex:1}.h1-tech-empty strong,.h1-tech-loading strong{display:block;color:#27415e;font-size:13px}.h1-tech-empty small,.h1-tech-loading small{display:block;margin-top:3px;color:#7b8999;font-size:10.5px}
html[data-hilpert-role="kd_monteur"] .h1-start-overview-toggle{display:none}
@media(max-width:900px){.h1-technician-cockpit{padding:16px;border-radius:20px}.h1-tech-next{grid-template-columns:1fr}.h1-tech-next-top{grid-column:1}.h1-tech-actions{width:100%}.h1-tech-actions a,.h1-tech-actions button{flex:1;min-width:0}}
@media(max-width:560px){.h1-tech-cockpit-head{display:block}.h1-tech-sync{margin-top:10px}.h1-tech-next{padding:15px}.h1-tech-time{font-size:19px}.h1-tech-order h3{font-size:19px}.h1-tech-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.h1-tech-actions a,.h1-tech-actions button{min-height:58px}.h1-tech-upcoming-row{grid-template-columns:92px minmax(0,1fr) 14px}}
html[data-theme="dark"] .h1-technician-cockpit{background:#111b29;border-color:#27374b;box-shadow:none}html[data-theme="dark"] .h1-tech-cockpit-head h2{color:#e7f0ff}html[data-theme="dark"] .h1-tech-cockpit-head p{color:#94a4ba}html[data-theme="dark"] .h1-tech-sync{background:#172537;border-color:#2d4056;color:#c2d0e1}html[data-theme="dark"] .h1-tech-next{background:linear-gradient(145deg,#142235,#17283b);border-color:#2a405b}html[data-theme="dark"] .h1-tech-order h3{color:#edf4ff}html[data-theme="dark"] .h1-tech-order>strong,html[data-theme="dark"] .h1-tech-order p{color:#a8bad0}html[data-theme="dark"] .h1-tech-issue,html[data-theme="dark"] .h1-tech-actions a{background:#111d2c;border-color:#2b4058;color:#b9d8ff}html[data-theme="dark"] .h1-tech-upcoming-row{background:#142132;border-color:#29394d}html[data-theme="dark"] .h1-tech-upcoming-row b{color:#e3edf9}html[data-theme="dark"] .h1-tech-empty,html[data-theme="dark"] .h1-tech-loading{background:#142132;border-color:#33485f}html[data-theme="dark"] .h1-tech-empty strong,html[data-theme="dark"] .h1-tech-loading strong{color:#e4edf9}


/* Hilpert One v7.88.0 – Monteur-Praxistest: KD-Workflow tabletunabhängig */
html[data-hilpert-role="kd_monteur"] .modal.service-order-modal{
  width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important
}
html[data-hilpert-role="kd_monteur"] .modal.service-order-modal #modalBody{padding:12px 12px 96px!important}
html[data-hilpert-role="kd_monteur"] .service-detail-hero-v2{grid-template-columns:1fr;padding:14px;border-radius:16px}
html[data-hilpert-role="kd_monteur"] .service-detail-hero-v2 .service-detail-actions{max-width:none;display:none!important}
html[data-hilpert-role="kd_monteur"] .service-hero-facts{grid-template-columns:1fr 1fr;gap:9px}
html[data-hilpert-role="kd_monteur"] .service-hero-facts span{padding:9px 10px;border:1px solid var(--line);border-left:3px solid var(--blue,#2563a9);border-radius:11px;background:var(--panel,#fff)}
html[data-hilpert-role="kd_monteur"] .service-hero-facts small{font-size:10px}
html[data-hilpert-role="kd_monteur"] .service-hero-facts strong{font-size:13px}
html[data-hilpert-role="kd_monteur"] .service-mobile-commandbar{
  position:fixed;left:0;right:0;bottom:0;z-index:10050;display:grid!important;grid-template-columns:repeat(5,1fr);gap:1px;
  padding:6px 6px calc(6px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--panel,#fff);box-shadow:0 -8px 24px rgba(20,35,55,.16)
}
html[data-hilpert-role="kd_monteur"] .service-command{min-width:0;min-height:58px;padding:5px 2px;border:0;border-radius:10px;background:transparent;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;font:inherit;cursor:pointer}
html[data-hilpert-role="kd_monteur"] .service-command span{font-size:20px;line-height:1}
html[data-hilpert-role="kd_monteur"] .service-command b{font-size:10px;line-height:1.1}
html[data-hilpert-role="kd_monteur"] .service-command-primary{background:var(--blue,#245f9f);color:#fff}
html[data-hilpert-role="kd_monteur"] .service-command.disabled{opacity:.35;pointer-events:none}
html[data-hilpert-role="kd_monteur"] .service-visit-strip .service-visit-actions{display:none!important}
html[data-hilpert-role="kd_monteur"] .service-mobile-workflow{display:grid!important;gap:12px;padding:14px;border:1px solid #bad3ed;border-radius:18px;background:linear-gradient(145deg,#f7fbff,#eef6ff);box-shadow:0 8px 22px rgba(18,61,105,.07)}
html[data-hilpert-role="kd_monteur"] .service-workflow-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
html[data-hilpert-role="kd_monteur"] .service-workflow-head h3{margin:2px 0 0;font-size:19px;color:#123f82}
html[data-hilpert-role="kd_monteur"] .service-workflow-head>span{display:grid;place-items:center;min-width:46px;height:30px;padding:0 9px;border-radius:999px;background:#fff;border:1px solid #c8d9ea;color:#0a5fc2;font-size:11px;font-weight:900}
html[data-hilpert-role="kd_monteur"] .service-workflow-progress{height:7px;border-radius:999px;overflow:hidden;background:#dce8f4}
html[data-hilpert-role="kd_monteur"] .service-workflow-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0a5fc2,#2f8ae2)}
html[data-hilpert-role="kd_monteur"] .service-workflow-milestones{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
html[data-hilpert-role="kd_monteur"] .service-workflow-milestones span{display:grid;justify-items:center;gap:4px;min-width:0;color:#8291a3}
html[data-hilpert-role="kd_monteur"] .service-workflow-milestones i{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff;border:1px solid #cbd9e7;font-style:normal;font-size:10px;font-weight:900}
html[data-hilpert-role="kd_monteur"] .service-workflow-milestones b{max-width:100%;font-size:8px;line-height:1.1;text-align:center;overflow:hidden;text-overflow:ellipsis}
html[data-hilpert-role="kd_monteur"] .service-workflow-milestones span.done{color:#17723c}
html[data-hilpert-role="kd_monteur"] .service-workflow-milestones span.done i{background:#e6f6ec;border-color:#a9d9b9;color:#17723c}
html[data-hilpert-role="kd_monteur"] .service-workflow-milestones span.current{color:#0a5fc2}
html[data-hilpert-role="kd_monteur"] .service-workflow-milestones span.current i{background:#0a5fc2;border-color:#0a5fc2;color:#fff;box-shadow:0 0 0 4px rgba(10,95,194,.1)}
html[data-hilpert-role="kd_monteur"] .service-workflow-next{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;padding:12px;border:1px solid #c9dbed;border-radius:14px;background:#fff}
html[data-hilpert-role="kd_monteur"] .service-workflow-next-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eaf3ff;font-size:20px}
html[data-hilpert-role="kd_monteur"] .service-workflow-next small,html[data-hilpert-role="kd_monteur"] .service-workflow-next strong,html[data-hilpert-role="kd_monteur"] .service-workflow-next p{display:block}
html[data-hilpert-role="kd_monteur"] .service-workflow-next small{color:#687789;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
html[data-hilpert-role="kd_monteur"] .service-workflow-next strong{margin-top:2px;font-size:15px;color:#173f6a}
html[data-hilpert-role="kd_monteur"] .service-workflow-next p{margin:4px 0 0;color:#687789;font-size:11px;line-height:1.35}
html[data-hilpert-role="kd_monteur"] .service-workflow-next button,html[data-hilpert-role="kd_monteur"] .service-workflow-done{grid-column:1/-1;min-height:48px;width:100%;border-radius:12px}
html[data-hilpert-role="kd_monteur"] .service-workflow-done{display:grid;place-items:center;background:#e8f7ed;color:#166d39;font-weight:900}
html[data-hilpert-role="kd_monteur"] .service-workflow-check{border-top:1px solid #d7e3ef;padding-top:9px}
html[data-hilpert-role="kd_monteur"] .service-workflow-check summary{cursor:pointer;color:#41617f;font-size:11px;font-weight:850}
html[data-hilpert-role="kd_monteur"] .service-workflow-check>div{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
html[data-hilpert-role="kd_monteur"] .service-workflow-check span{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:1px 7px;padding:8px;border-radius:10px;background:#fff;border:1px solid #d8e3ee}
html[data-hilpert-role="kd_monteur"] .service-workflow-check i{grid-row:1/3;display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#f0f4f8;font-style:normal;font-size:10px;font-weight:900}
html[data-hilpert-role="kd_monteur"] .service-workflow-check b{font-size:10px}
html[data-hilpert-role="kd_monteur"] .service-workflow-check small{font-size:9px;color:#7b8795}
html[data-hilpert-role="kd_monteur"] .service-workflow-check span.done i{background:#e7f6ec;color:#17723c}
html[data-hilpert-role="kd_monteur"] .service-tabs-v2{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px;scroll-snap-type:x proximity}
html[data-hilpert-role="kd_monteur"] .service-tabs-v2 button{min-height:46px;scroll-snap-align:start}
html[data-hilpert-role="kd_monteur"] .service-overview-context-grid{grid-template-columns:1fr!important}
html[data-hilpert-role="kd_monteur"] .service-context-lines>span,html[data-hilpert-role="kd_monteur"] .service-context-lines>a,html[data-hilpert-role="kd_monteur"] .service-context-lines>button{grid-template-columns:34px minmax(0,1fr)}
html[data-hilpert-role="kd_monteur"] .service-context-lines small{grid-column:2;white-space:normal}
html[data-theme="dark"][data-hilpert-role="kd_monteur"] .service-mobile-workflow{background:linear-gradient(145deg,#16283f,#1a304a);border-color:#365472}
html[data-theme="dark"][data-hilpert-role="kd_monteur"] .service-workflow-head h3{color:#dce9f8}
html[data-theme="dark"][data-hilpert-role="kd_monteur"] .service-workflow-head>span,html[data-theme="dark"][data-hilpert-role="kd_monteur"] .service-workflow-next,html[data-theme="dark"][data-hilpert-role="kd_monteur"] .service-workflow-check span{background:#182a42;border-color:#38516f}
html[data-theme="dark"][data-hilpert-role="kd_monteur"] .service-workflow-next strong{color:#dce8f5}
html[data-theme="dark"][data-hilpert-role="kd_monteur"] .service-workflow-next-icon{background:#213b5b}
html[data-theme="dark"][data-hilpert-role="kd_monteur"] .service-workflow-progress{background:#29425d}

@media(max-width:620px){
  html[data-hilpert-role="kd_monteur"] .service-hero-facts{grid-template-columns:1fr}
  html[data-hilpert-role="kd_monteur"] .service-workflow-check>div{grid-template-columns:1fr}
}

/* Hilpert One v7.88.3 – kompakter Startbereich auf Touch-Tablets */
@media (pointer:coarse) and (min-width:761px) and (max-width:1400px){
  .h1-start-dashboard{padding-top:0!important}
  .h1-start-hero{padding:14px 18px!important;border-radius:19px!important;gap:14px!important;align-items:center!important}
  .h1-start-hero::after{font-size:110px!important;bottom:-38px!important}
  .h1-start-brandline{margin-bottom:6px!important;font-size:10px!important;gap:6px!important}
  .h1-start-mark{width:28px!important;height:28px!important;border-radius:8px!important;font-size:11px!important}
  .h1-start-hero .eyebrow{font-size:8px!important;margin-bottom:2px!important}
  .h1-start-hero h1{font-size:31px!important;line-height:1!important}
  .h1-start-subtitle{margin-top:5px!important;font-size:12px!important}
  .h1-start-hero-actions{gap:7px!important}
  .h1-start-overview-toggle{min-height:34px!important;padding:0 10px!important;font-size:10px!important;border-radius:10px!important}
  .h1-start-search{margin:8px 0 10px!important;padding:8px 11px!important;border-radius:14px!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:9px!important}
  .h1-start-search-icon{width:36px!important;height:36px!important;border-radius:10px!important;font-size:20px!important}
  .h1-start-search-copy strong{font-size:12px!important}.h1-start-search-copy small{font-size:9px!important}
}


/* Hilpert One v7.88.8 – Dashboard-Terminplaner + klicksichere Tablet-Aktionen */
.h1-start-planner-button{min-height:46px;padding:0 16px;border-radius:14px;background:linear-gradient(145deg,#0a4fb3,#0f68d8);border-color:transparent;color:#fff;box-shadow:0 8px 20px rgba(10,79,179,.16)}
.h1-start-planner-button:hover{color:#fff;transform:translateY(-1px)}
.h1-planner-popup-modal{width:min(1500px,96vw)!important;max-width:none!important;height:min(900px,92dvh)!important;display:flex!important;flex-direction:column!important}
.h1-planner-popup-modal .modal-body{flex:1;min-height:0;overflow:hidden!important;padding:0!important}
.h1-planner-popup-shell{height:100%;min-height:620px;background:#f5f8fc}.h1-planner-popup-frame{display:block;width:100%;height:100%;min-height:620px;border:0;background:#fff}
@media (pointer:coarse) and (min-width:761px) and (max-width:1400px){
  .h1-start-planner-button{min-height:34px!important;padding:0 10px!important;font-size:10px!important;border-radius:10px!important}
  .h1-planner-popup-modal{width:calc(100vw - 18px)!important;height:calc(100dvh - 18px)!important;max-height:none!important;margin:9px!important;border-radius:18px!important}
  .h1-planner-popup-shell,.h1-planner-popup-frame{min-height:0!important;height:100%!important}
  .h1-tech-actions button,.h1-tech-upcoming-row{cursor:pointer!important;position:relative!important;z-index:2!important}
}

.service-context-lines>button{width:100%;font:inherit;text-align:left;cursor:pointer}

/* Hilpert One v7.88.9 – KD Tablet Ultra-Compact Dashboard
   Auf Touch-Tablets ist der globale Header bereits die Marken-/Statusleiste.
   Der KD-Startbereich wird deshalb auf Begrüßung + Terminplaner + Suche reduziert. */
@media (pointer:coarse) and (min-width:761px) and (max-width:1400px){
  html[data-hilpert-role="kd_monteur"] .h1-start-dashboard{padding-top:0!important}
  html[data-hilpert-role="kd_monteur"] .h1-start-hero{
    min-height:42px!important;
    margin:0 0 5px!important;
    padding:5px 7px 5px 11px!important;
    border-radius:12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-start-hero::after,
  html[data-hilpert-role="kd_monteur"] .h1-start-brandline,
  html[data-hilpert-role="kd_monteur"] .h1-start-hero .eyebrow,
  html[data-hilpert-role="kd_monteur"] .h1-start-subtitle,
  html[data-hilpert-role="kd_monteur"] .h1-start-context{
    display:none!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-start-hero-copy{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-start-hero h1{
    margin:0!important;
    font-size:20px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-start-hero-actions{
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:5px!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-start-planner-button{
    min-height:31px!important;
    height:31px!important;
    padding:0 9px!important;
    border-radius:9px!important;
    font-size:10px!important;
    box-shadow:none!important;
    white-space:nowrap!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-start-search{
    min-height:38px!important;
    height:38px!important;
    margin:0 0 6px!important;
    padding:4px 8px!important;
    border-radius:11px!important;
    grid-template-columns:29px minmax(0,1fr)!important;
    gap:7px!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-start-search-icon{
    width:28px!important;
    height:28px!important;
    border-radius:8px!important;
    font-size:16px!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-start-search-copy strong{
    font-size:11px!important;
    line-height:1.1!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-start-search-copy small,
  html[data-hilpert-role="kd_monteur"] .h1-start-search kbd{
    display:none!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-technician-cockpit{
    margin:0 0 10px!important;
    padding:11px!important;
    border-radius:16px!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-tech-cockpit-head{
    align-items:center!important;
    margin-bottom:8px!important;
    gap:8px!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-tech-cockpit-head .eyebrow{display:none!important}
  html[data-hilpert-role="kd_monteur"] .h1-tech-cockpit-head h2{
    margin:0!important;
    font-size:18px!important;
    line-height:1.05!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-tech-cockpit-head p{
    margin-top:2px!important;
    font-size:9px!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-tech-sync{
    min-height:29px!important;
    padding:0 8px!important;
    gap:5px!important;
  }
  html[data-hilpert-role="kd_monteur"] .h1-tech-sync strong{font-size:9px!important}
}
