.platform-modules{margin:18px 0 22px}.platform-badge,.coming-chip{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;background:#e8f1ff;color:#0648a8;font-size:12px;font-weight:800}.platform-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.platform-module-card{min-height:142px;padding:18px;border:1px solid #dfe6ef;border-radius:18px;background:#fff;text-align:left;display:flex;flex-direction:column;gap:8px;box-shadow:0 8px 24px rgba(28,44,72,.06);transition:.18s ease}.platform-module-card:hover{transform:translateY(-2px);border-color:#9bbce8;box-shadow:0 12px 30px rgba(28,44,72,.1)}.platform-module-card>span{font-size:28px}.platform-module-card strong{font-size:17px;color:#15243a}.platform-module-card small{font-size:13px;line-height:1.45;color:#65748a}.platform-page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.service-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.service-preview-grid article{padding:24px;border:1px solid #dfe6ef;border-radius:20px;background:#fff;box-shadow:0 8px 26px rgba(28,44,72,.06)}.service-preview-grid article>span{font-size:34px}.service-preview-grid h2{margin:12px 0 8px}.service-preview-grid p{min-height:48px;color:#65748a;line-height:1.5}.service-preview-grid button{margin-top:14px;width:100%;border:0;border-radius:12px;padding:11px;background:#eef3f8;color:#617087;font-weight:700}.topbar-brand:after{content:"ONE";margin-left:8px;font-size:11px;font-weight:900;letter-spacing:.12em;color:#0648a8;background:#e8f1ff;border-radius:999px;padding:5px 8px}@media(max-width:980px){.platform-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.platform-module-grid,.service-preview-grid{grid-template-columns:1fr}.platform-module-card{min-height:120px}.platform-page-head{flex-direction:column}.topbar-brand:after{display:none}}

/* Dokumentencenter 4.1.2 */
.document-library-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:start}
.document-library-sidebar{position:sticky;top:88px;padding:18px;border:1px solid var(--border,#dfe4ea);border-radius:18px;background:var(--surface,#fff)}
.doc-category-list{display:grid;gap:7px}.doc-category-item{width:100%;display:flex;justify-content:space-between;gap:12px;padding:11px 12px;border:0;border-radius:11px;background:transparent;text-align:left;cursor:pointer}.doc-category-item:hover,.doc-category-item.active{background:var(--soft,#eef4ff)}
.doc-category-item b{font-size:12px;min-width:28px;text-align:center;padding:2px 7px;border-radius:999px;background:rgba(0,0,0,.06)}
.doc-smart-filters{display:grid;gap:7px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--border,#e5e7eb)}
.doc-smart-filter{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:0;border-radius:11px;background:transparent;cursor:pointer}.doc-smart-filter.active,.doc-smart-filter:hover{background:var(--soft,#eef4ff)}
.doc-library-toolbar{display:flex;gap:12px;align-items:center}.doc-library-toolbar .search-wrap{flex:1}.doc-library-meta{display:flex;justify-content:space-between;gap:16px;margin:12px 2px 16px;color:var(--muted,#64748b);font-size:13px}
.knowledge-document-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.knowledge-document-card{border:1px solid var(--border,#e2e8f0);border-radius:16px;background:var(--surface,#fff);overflow:hidden;cursor:pointer;transition:.18s transform,.18s box-shadow}.knowledge-document-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,23,42,.10)}
.document-card-top{display:flex;justify-content:space-between;padding:14px 14px 0}.file-badge{font-size:11px;font-weight:800;letter-spacing:.05em;padding:7px 8px;border-radius:9px;background:#eaf1ff}.favorite-button{border:0;background:transparent;font-size:20px;color:#aab2bf;cursor:pointer}.favorite-button.active{color:#f59e0b}.document-card-body{padding:12px 14px}.document-card-meta{display:flex;gap:6px;flex-wrap:wrap}.document-card-meta span,.document-status-badge{font-size:11px;padding:4px 7px;border-radius:999px;background:#f1f5f9}.document-card-body h3{margin:10px 0 6px}.document-card-body p{margin:0;color:var(--muted,#64748b);font-size:13px;line-height:1.45}.knowledge-document-card footer{display:flex;justify-content:space-between;gap:8px;padding:11px 14px;border-top:1px solid var(--border,#edf0f3);font-size:12px;color:var(--muted,#64748b)}
.document-filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.document-filter-row select{min-width:150px}.document-upload-form{display:grid;gap:14px}.document-upload-form label{display:grid;gap:6px;font-weight:650}.document-upload-form input,.document-upload-form select,.document-upload-form textarea{width:100%;box-sizing:border-box}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.file-drop{padding:18px;border:1px dashed #94a3b8;border-radius:14px;background:#f8fafc}.document-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.document-detail-grid>div{padding:12px;border-radius:12px;background:#f8fafc}.document-detail-grid small{display:block;color:#64748b;margin-bottom:4px}.document-detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.document-library-empty{text-align:center;padding:48px 20px;border:1px dashed #cbd5e1;border-radius:16px}
@media(max-width:850px){.document-library-layout{grid-template-columns:1fr}.document-library-sidebar{position:static}.doc-category-list,.doc-smart-filters{display:flex;overflow:auto}.doc-category-item,.doc-smart-filter{min-width:max-content}.doc-library-toolbar{align-items:stretch;flex-direction:column}.form-grid,.document-detail-grid{grid-template-columns:1fr}}


/* Dashboard 4.1.4 – rollenbezogene Live-Arbeitsübersicht */
.dashboard-daily-brief,.dashboard-priority-panel{margin:0 0 18px;padding:20px;border:1px solid var(--ho-border,#dfe5ee);border-radius:22px;background:var(--ho-surface,#fff);box-shadow:var(--ho-shadow-sm,0 1px 3px rgba(16,24,40,.08))}
.dashboard-daily-head{align-items:center}.dashboard-daily-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dashboard-daily-card{display:flex;align-items:center;gap:13px;min-height:104px;padding:15px;border:1px solid var(--ho-border,#dfe5ee);border-radius:16px;background:var(--ho-surface-muted,#f8fafc);text-align:left;transition:.18s ease}
.dashboard-daily-card:hover{transform:translateY(-2px);background:#fff;box-shadow:0 10px 24px rgba(16,24,40,.08)}
.daily-card-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;font-size:20px;font-weight:900}.daily-card-icon.blue{color:#175cd3;background:#eaf2ff}.daily-card-icon.amber{color:#9a6700;background:#fff7df}.daily-card-icon.green{color:#16794a;background:#e9f8f0}.daily-card-icon.red{color:#b42318;background:#fff0ee}
.dashboard-daily-card small,.dashboard-daily-card strong,.dashboard-daily-card em{display:block}.dashboard-daily-card small{color:var(--ho-text-muted,#667085);font-size:12px;font-weight:700}.dashboard-daily-card strong{margin:3px 0 1px;color:var(--ho-text,#172033);font-size:25px;line-height:1}.dashboard-daily-card em{color:var(--ho-text-muted,#667085);font-size:11px;font-style:normal;line-height:1.3}
.dashboard-priority-list{display:grid;gap:9px}.dashboard-priority-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid var(--ho-border,#dfe5ee);border-radius:14px;background:#fff;text-align:left}.dashboard-priority-item:hover{box-shadow:0 7px 18px rgba(16,24,40,.07)}.dashboard-priority-item .priority-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;font-weight:900}.dashboard-priority-item strong,.dashboard-priority-item small{display:block}.dashboard-priority-item small{margin-top:3px;color:var(--ho-text-muted,#667085);font-size:12px}.dashboard-priority-item>b{color:#98a2b3;font-size:22px}.dashboard-priority-item.danger .priority-icon{background:var(--ho-danger-soft,#fff0ee);color:var(--ho-danger,#b42318)}.dashboard-priority-item.warning .priority-icon{background:var(--ho-warning-soft,#fff7df);color:var(--ho-warning,#9a6700)}.dashboard-priority-item.info .priority-icon{background:var(--ho-info-soft,#eff6ff);color:var(--ho-info,#175cd3)}.dashboard-priority-item.success .priority-icon{background:var(--ho-success-soft,#e9f8f0);color:var(--ho-success,#16794a)}
@media(max-width:980px){.dashboard-daily-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.dashboard-daily-brief,.dashboard-priority-panel{padding:15px;border-radius:18px}.dashboard-daily-grid{grid-template-columns:1fr}.dashboard-daily-card{min-height:86px}.dashboard-priority-item{grid-template-columns:38px minmax(0,1fr) auto;padding:10px}}

/* Hilpert One v4.2.0 – Geräteakten */
.device-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.device-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 190px 170px auto;gap:12px;align-items:center;margin:22px 0 12px}
.device-toolbar select{min-height:46px;border:1px solid var(--line,#d9e1ee);border-radius:12px;background:#fff;padding:0 12px;color:#17233c}
.device-meta-row{display:flex;justify-content:space-between;gap:16px;color:#66738b;font-size:.9rem;margin-bottom:16px}
.device-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}
.device-card{background:#fff;border:1px solid #dfe6f1;border-radius:18px;padding:18px;box-shadow:0 8px 28px rgba(27,55,101,.06);cursor:pointer;transition:.18s ease}
.device-card:hover{transform:translateY(-2px);border-color:#a9c6ee;box-shadow:0 12px 34px rgba(27,55,101,.1)}
.device-card-head{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:start}
.device-symbol{width:48px;height:48px;border-radius:14px;background:#eaf3ff;color:#0755b8;display:grid;place-items:center;font-size:1.4rem}
.device-card h3{margin:3px 0 2px;font-size:1.05rem;color:#13203a}.device-card p{margin:0;color:#66738b;font-size:.9rem}
.device-code{display:inline-flex;font-size:.72rem;font-weight:800;letter-spacing:.08em;color:#0755b8;text-transform:uppercase}
.device-status{border-radius:999px;padding:6px 9px;font-size:.72rem;font-weight:800;background:#e8f7ee;color:#19713d}.device-status.inactive,.device-status.removed{background:#eef1f5;color:#657087}.device-status.planned{background:#fff4dc;color:#9a6200}
.device-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.device-card-grid div{background:#f7f9fc;border-radius:12px;padding:10px}.device-card-grid small,.device-detail-grid small{display:block;color:#78849a;font-size:.72rem;margin-bottom:4px}.device-card-grid strong{font-size:.86rem;color:#24314b;line-height:1.35}
.device-due.overdue{background:#fff0f0!important}.device-due.overdue strong{color:#b42318}.device-due.soon{background:#fff7e8!important}.device-due.soon strong{color:#9a6200}
.device-card footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf1f6;padding-top:13px;color:#66738b;font-size:.82rem}
.device-detail{display:grid;gap:20px}.device-detail-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;background:linear-gradient(135deg,#f3f8ff,#fff);border:1px solid #dfe9f7;border-radius:18px;padding:20px}.device-detail-hero h3{margin:7px 0 4px;font-size:1.35rem}.device-detail-hero p{margin:0;color:#66738b}
.device-qr-box{width:150px;flex:0 0 150px;text-align:center}.device-qr-box img{width:132px;height:132px;background:#fff;border:1px solid #dfe6f1;border-radius:12px;padding:6px}.device-qr-box small{display:block;color:#66738b;margin-top:6px}
.device-detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.device-detail-grid>div{border:1px solid #e4e9f1;border-radius:12px;padding:12px;background:#fff}.device-detail-actions{display:flex;gap:10px;flex-wrap:wrap}
.device-timeline{border-top:1px solid #e7ebf2;padding-top:18px}.device-timeline-entry{display:grid;grid-template-columns:34px 1fr;gap:12px;position:relative;padding-bottom:18px}.device-timeline-entry>span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eaf3ff;color:#0755b8;font-weight:900}.device-timeline-entry time{display:block;color:#77849b;font-size:.75rem}.device-timeline-entry strong{display:block;margin:2px 0}.device-timeline-entry p{margin:0;color:#66738b}.device-form{display:grid;gap:14px}
@media(max-width:900px){.device-toolbar{grid-template-columns:1fr 1fr}.device-toolbar .search-wrap{grid-column:1/-1}.device-detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.device-page-heading{align-items:stretch;flex-direction:column}.device-page-heading .primary{width:100%}.device-toolbar{grid-template-columns:1fr}.device-toolbar .search-wrap{grid-column:auto}.device-grid{grid-template-columns:1fr}.device-card-grid{grid-template-columns:1fr}.device-detail-hero{flex-direction:column}.device-qr-box{width:100%;flex-basis:auto}.device-detail-grid{grid-template-columns:1fr}.device-detail-actions>*{width:100%}}


/* Hilpert One v4.2.1 – Kundenakten */
.customer-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.customer-toolbar{display:grid;grid-template-columns:minmax(300px,1fr) 190px 170px;gap:12px;align-items:center;margin:22px 0 12px}.customer-toolbar select{min-height:46px;border:1px solid var(--line,#d9e1ee);border-radius:12px;background:#fff;padding:0 12px;color:#17233c}
.customer-meta-row{display:flex;justify-content:space-between;gap:16px;color:#66738b;font-size:.9rem;margin-bottom:16px}.customer-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px}
.customer-card{background:#fff;border:1px solid #dfe6f1;border-radius:18px;padding:18px;box-shadow:0 8px 28px rgba(27,55,101,.06);cursor:pointer;transition:.18s ease}.customer-card:hover{transform:translateY(-2px);border-color:#a9c6ee;box-shadow:0 12px 34px rgba(27,55,101,.1)}
.customer-card-head{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:start}.customer-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#edf4ff;color:#0755b8;font-weight:900;font-size:1.25rem}.customer-avatar.large{width:62px;height:62px;border-radius:18px;font-size:1.55rem;flex:0 0 62px}.customer-number{display:inline-flex;font-size:.71rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#0755b8}.customer-card h3{margin:3px 0 2px;font-size:1.05rem;color:#13203a}.customer-card p{margin:0;color:#66738b;font-size:.9rem}.customer-status{border-radius:999px;padding:6px 9px;font-size:.72rem;font-weight:800;background:#e8f7ee;color:#19713d}.customer-status.inactive{background:#eef1f5;color:#657087}
.customer-card-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0}.customer-card-stats div{padding:10px;border-radius:12px;background:#f7f9fc}.customer-card-stats small,.customer-card-stats strong{display:block}.customer-card-stats small{font-size:.7rem;color:#78849a}.customer-card-stats strong{font-size:1.15rem;color:#24314b;margin-top:3px}.customer-card footer{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #edf1f6;padding-top:13px;color:#66738b;font-size:.82rem}
.customer-detail{display:grid;gap:18px}.customer-detail-hero{display:flex;align-items:center;gap:15px;padding:20px;border:1px solid #dfe9f7;border-radius:18px;background:linear-gradient(135deg,#f3f8ff,#fff)}.customer-detail-hero>div:nth-child(2){flex:1}.customer-detail-hero h3{margin:4px 0;font-size:1.35rem}.customer-detail-hero p{margin:0;color:#66738b}.customer-detail-actions{display:flex;gap:10px;flex-wrap:wrap}
.customer-tabs{display:flex;gap:6px;overflow:auto;border-bottom:1px solid #e4e9f1;padding-bottom:8px}.customer-tabs button{min-width:max-content;border:0;border-radius:10px;padding:9px 12px;background:transparent;color:#66738b;font-weight:750}.customer-tabs button.active,.customer-tabs button:hover{background:#eaf3ff;color:#0755b8}.customer-tab-content{min-height:220px}.customer-tab-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.customer-tab-head h3{margin:2px 0 0}
.customer-overview-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:14px}.customer-info-panel{border:1px solid #e4e9f1;border-radius:16px;padding:18px;background:#fff}.customer-info-panel h3{margin:4px 0 14px}.customer-contact-list{display:grid;gap:10px}.customer-contact-list span{display:grid;grid-template-columns:26px 1fr;align-items:start;color:#66738b}.customer-contact-list strong{color:#24314b;font-weight:700}.customer-kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.customer-kpi-grid div{display:flex;flex-direction:column;justify-content:center;min-height:96px;padding:14px;border:1px solid #e4e9f1;border-radius:14px;background:#f8fafc}.customer-kpi-grid small{color:#78849a}.customer-kpi-grid strong{font-size:1.65rem;color:#17233c;margin-top:4px}
.customer-location-list,.customer-order-list,.customer-related-list{display:grid;gap:10px}.customer-location-list article,.customer-order-list article,.customer-related-list>button,.customer-related-list>a,.customer-related-list>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px;border:1px solid #e4e9f1;border-radius:14px;background:#fff;text-align:left;text-decoration:none;color:inherit}.customer-location-list article{grid-template-columns:auto 1fr}.customer-location-list p,.customer-order-list p{margin:3px 0 0;color:#66738b}.customer-location-list small{display:block;margin-top:4px;color:#77849b}.location-pin,.related-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eaf3ff;color:#0755b8;font-weight:900}.customer-related-list strong,.customer-related-list small{display:block}.customer-related-list small{margin-top:3px;color:#77849b}.customer-related-list b{font-size:20px;color:#98a2b3}
.customer-order-list article{grid-template-columns:minmax(0,1fr) auto}.customer-order-list strong{display:block;margin-top:4px}.order-status{border-radius:999px;padding:6px 9px;font-size:.72rem;font-weight:800;background:#eef1f5;color:#657087}.order-status.completed{background:#e8f7ee;color:#19713d}.order-status.in_progress,.order-status.on_the_way{background:#eaf3ff;color:#0755b8}.order-status.scheduled{background:#fff4dc;color:#9a6200}
.customer-timeline{display:grid}.customer-timeline article{display:grid;grid-template-columns:36px 1fr;gap:12px;padding-bottom:18px}.customer-timeline article>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eaf3ff;color:#0755b8;font-weight:900}.customer-timeline time{display:block;color:#77849b;font-size:.75rem}.customer-timeline strong{display:block;margin:2px 0}.customer-timeline p{margin:0;color:#66738b}.customer-form{display:grid;gap:14px}.check-row{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:9px}.check-row input{width:auto!important}.customer-inline-link{border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:inherit;cursor:pointer;text-align:left}.customer-inline-link:hover{color:#0755b8;text-decoration:underline}
@media(max-width:900px){.customer-toolbar{grid-template-columns:1fr 1fr}.customer-toolbar .search-wrap{grid-column:1/-1}.customer-overview-grid{grid-template-columns:1fr}}
@media(max-width:620px){.customer-page-heading{align-items:stretch;flex-direction:column}.customer-page-heading .primary{width:100%}.customer-toolbar{grid-template-columns:1fr}.customer-toolbar .search-wrap{grid-column:auto}.customer-grid{grid-template-columns:1fr}.customer-card-stats{grid-template-columns:1fr 1fr}.customer-card footer{align-items:flex-start;flex-direction:column}.customer-detail-hero{align-items:flex-start;flex-wrap:wrap}.customer-detail-hero .customer-status{margin-left:auto}.customer-detail-actions>*{width:100%}.customer-kpi-grid{grid-template-columns:1fr 1fr}.customer-tab-head{align-items:stretch;flex-direction:column}.customer-tab-head button{width:100%}}

/* Hilpert One v4.3.0 – Kundendienst */
.dashboard-daily-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.service-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.service-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0 14px}
.service-stat{min-height:98px;border:1px solid #dfe6f1;border-radius:17px;background:#fff;padding:15px;display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:center;text-align:left;box-shadow:0 7px 24px rgba(27,55,101,.055)}
.service-stat:hover,.service-stat.active{border-color:#9fc2ef;background:#f8fbff}.service-stat small,.service-stat strong,.service-stat em{display:block}.service-stat small{font-size:.74rem;color:#748198}.service-stat strong{font-size:1.55rem;color:#15243a;margin:2px 0}.service-stat em{font-size:.72rem;color:#8792a5;font-style:normal}
.service-mode-row{display:flex;gap:8px;flex-wrap:wrap;margin:5px 0 12px}.service-mode-row .filter-chip.active{background:#0755b8;color:#fff;border-color:#0755b8}
.service-toolbar{display:grid;grid-template-columns:minmax(320px,1fr) 190px 210px;gap:12px;align-items:center;margin-bottom:12px}.service-toolbar select{min-height:46px;border:1px solid var(--line,#d9e1ee);border-radius:12px;background:#fff;padding:0 12px;color:#17233c}
.service-meta-row{display:flex;justify-content:space-between;gap:16px;color:#66738b;font-size:.9rem;margin-bottom:16px}
.service-order-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:16px}
.service-order-card{position:relative;background:#fff;border:1px solid #dfe6f1;border-left:5px solid #b8c4d6;border-radius:18px;padding:18px;box-shadow:0 8px 28px rgba(27,55,101,.06);cursor:pointer;transition:.18s ease;overflow:hidden}.service-order-card:hover{transform:translateY(-2px);border-color:#a9c6ee;box-shadow:0 12px 34px rgba(27,55,101,.1)}.service-order-card.high{border-left-color:#e59a18}.service-order-card.emergency{border-left-color:#d52f2f;background:linear-gradient(140deg,#fff 70%,#fff2f2)}
.service-order-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}.service-order-number{display:inline-flex;font-size:.71rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#0755b8}.service-order-head h3{margin:4px 0 2px;font-size:1.08rem;color:#13203a}.service-order-head p{margin:0;color:#66738b}
.service-priority{border-radius:999px;padding:6px 9px;font-size:.7rem;font-weight:850;background:#eef1f5;color:#647086}.service-priority.high{background:#fff4dc;color:#956000}.service-priority.emergency{background:#ffe9e9;color:#b42318}
.service-order-context{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0}.service-order-context span{padding:10px;border-radius:12px;background:#f7f9fc;min-width:0}.service-order-context small,.service-order-context strong{display:block}.service-order-context small{font-size:.68rem;color:#7b879b}.service-order-context strong{margin-top:3px;font-size:.8rem;color:#26344d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.service-order-address{display:flex;gap:8px;align-items:flex-start;color:#66738b;font-size:.84rem;margin-bottom:14px}.service-order-card footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #edf1f6;padding-top:13px}.service-type{font-size:.75rem;font-weight:800;color:#59677e}
.service-detail{display:grid;gap:18px}.service-detail-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;background:linear-gradient(135deg,#f3f8ff,#fff);border:1px solid #dfe9f7;border-radius:18px;padding:20px}.service-detail-hero h3{margin:7px 0 4px;font-size:1.35rem}.service-detail-hero p{margin:0;color:#66738b}.service-detail-badges{display:flex;gap:8px;flex-wrap:wrap}.service-detail-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.service-overview-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:14px}.service-long-text{color:#536078;line-height:1.6}.service-internal-note{margin-top:16px;border-radius:12px;background:#fff4dc;color:#7b5300;padding:13px}.service-internal-note p{margin:4px 0 0}.service-result-panel{border:1px solid #cae8d5;background:#f1fbf4;border-radius:16px;padding:18px}.service-result-panel h3{margin:3px 0 8px}.service-result-panel p{margin:0;color:#3c5c47;line-height:1.55}
.service-timeline{display:grid}.service-timeline article{display:grid;grid-template-columns:36px 1fr;gap:12px;padding-bottom:18px}.service-timeline article>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eaf3ff;color:#0755b8;font-weight:900}.service-timeline time{display:block;color:#77849b;font-size:.75rem}.service-timeline strong{display:block;margin:2px 0}.service-timeline p{margin:0;color:#66738b}.service-timeline small{display:block;margin-top:4px;color:#98a1b0}
.service-material-list{display:grid;gap:9px}.service-material-list article{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #e4e9f1;border-radius:13px;padding:12px}.service-material-list article>span{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#eaf3ff;color:#0755b8}.service-material-list strong,.service-material-list small{display:block}.service-material-list small{margin-top:3px;color:#77849b}.service-material-list b{color:#25334b}.service-form{display:grid;gap:14px}
@media(max-width:980px){.service-stat-grid{grid-template-columns:1fr 1fr}.service-toolbar{grid-template-columns:1fr 1fr}.service-toolbar .search-wrap{grid-column:1/-1}.service-overview-grid{grid-template-columns:1fr}}
@media(max-width:640px){.service-page-heading{flex-direction:column;align-items:stretch}.service-page-heading .primary{width:100%}.service-stat-grid,.service-toolbar{grid-template-columns:1fr}.service-toolbar .search-wrap{grid-column:auto}.service-order-grid{grid-template-columns:1fr}.service-order-context{grid-template-columns:1fr}.service-detail-hero{flex-direction:column}.service-detail-actions{width:100%;justify-content:stretch}.service-detail-actions>*{flex:1}.service-stat-grid{gap:9px}.service-stat{min-height:82px}.service-mode-row{overflow:auto;flex-wrap:nowrap;padding-bottom:4px}.service-mode-row button{min-width:max-content}}


/* Hilpert One v4.3.1 – Digitale Wartungsprotokolle */
.maintenance-empty{display:flex;min-height:310px;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:36px}
.maintenance-empty-icon{width:72px;height:72px;border-radius:24px;background:#edf9f4;color:#12805c;display:grid;place-items:center;font-size:34px;font-weight:900}
.maintenance-empty h3{margin:4px 0 0;font-size:24px}.maintenance-empty p{max-width:560px;color:var(--muted,#68738a);line-height:1.55}
.maintenance-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.maintenance-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.maintenance-summary-grid article{border:1px solid var(--line,#e3e7ef);background:#fff;border-radius:15px;padding:14px;display:flex;flex-direction:column;gap:4px}
.maintenance-summary-grid small,.maintenance-signature-summary small,.maintenance-measurements small{color:var(--muted,#68738a);font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.maintenance-summary-grid strong{font-size:16px;color:var(--ink,#17233e)}.maintenance-summary-grid span{font-size:12px;color:var(--muted,#68738a)}
.maintenance-report-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:14px}.maintenance-report-grid h4{margin:12px 0 5px}.maintenance-report-grid p{white-space:pre-wrap;line-height:1.5}
.maintenance-warning-title{color:#b51e2d}
.maintenance-measurements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.maintenance-measurements span{border:1px solid var(--line,#e3e7ef);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:3px}.maintenance-measurements strong{font-size:17px}
.maintenance-signature-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px;padding:14px;border:1px solid var(--line,#e3e7ef);border-radius:14px;background:#f8fafc}
.maintenance-signature-summary span{display:flex;flex-direction:column;gap:3px}
.maintenance-form{display:flex;flex-direction:column;gap:16px}.maintenance-form-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px;border-radius:15px;background:#f4f7fb}.maintenance-form-intro h3{margin:2px 0 4px}.maintenance-form-intro p{margin:0;color:var(--muted,#68738a)}
.maintenance-form fieldset{border:1px solid var(--line,#e3e7ef);border-radius:15px;padding:14px;margin:0}.maintenance-form legend{font-weight:800;padding:0 7px;color:var(--ink,#17233e)}
.maintenance-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.maintenance-checklist legend{grid-column:1/-1}
.maintenance-checklist label{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #e6eaf1;border-radius:11px;background:#fff;font-weight:650;cursor:pointer}.maintenance-checklist label:has(input:checked){background:#effaf6;border-color:#9bd7c1;color:#0e6a4d}.maintenance-checklist input{position:absolute;opacity:0;pointer-events:none}.maintenance-checklist label span{width:23px;height:23px;border-radius:7px;border:1px solid #cfd6e2;display:grid;place-items:center;color:transparent;background:#fff}.maintenance-checklist input:checked+span{background:#13966c;border-color:#13966c;color:#fff}
.maintenance-measurement-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.signature-field p{margin:0 0 10px;color:var(--muted,#68738a)}.signature-field canvas{display:block;width:100%;height:150px;border:1px dashed #9aa5b7;border-radius:12px;background:#fff;touch-action:none}.signature-actions{display:flex;justify-content:flex-end;margin-top:5px}
.maintenance-confirm{display:flex!important;align-items:flex-start!important;flex-direction:row!important;gap:9px!important;padding:12px;border-radius:12px;background:#fff8e9;border:1px solid #f0d48d}.maintenance-confirm input{margin-top:2px}
@media(max-width:900px){.maintenance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.maintenance-report-grid{grid-template-columns:1fr}.maintenance-measurement-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.maintenance-summary-grid,.maintenance-signature-summary,.maintenance-checklist,.maintenance-measurement-form{grid-template-columns:1fr}.maintenance-head-actions{justify-content:flex-start}.maintenance-form-intro{flex-direction:column}.signature-field canvas{height:130px}}


/* Hilpert One v7.10.0 – mobile Dokumentvorschau & Teilen. Bestehende Dokumentencenter-Optik bleibt erhalten. */
.document-detail-preview{display:grid;place-items:center;gap:7px;min-height:118px;margin-bottom:14px;padding:18px;border:1px solid var(--border,#e2e8f0);border-radius:14px;background:var(--soft,#f8fafc);text-align:center}.document-detail-preview>span{display:grid;place-items:center;min-width:54px;min-height:44px;padding:8px;border-radius:10px;background:#eaf1ff;font-size:12px;font-weight:850;letter-spacing:.05em}.document-detail-preview>small{max-width:520px;color:var(--muted,#64748b);line-height:1.45}
.document-detail-preview-live{display:grid;place-items:center;min-height:260px;margin-bottom:14px;overflow:hidden;border:1px solid var(--border,#e2e8f0);border-radius:14px;background:#f8fafc}.document-detail-preview-live iframe{display:block;width:100%;height:min(62vh,680px);min-height:420px;border:0;background:#fff}.document-detail-preview-live img{display:block;max-width:100%;max-height:68vh;object-fit:contain;background:#fff}.modal-is-fullscreen .document-detail-preview-live{height:calc(100dvh - 190px);margin-bottom:8px}.modal-is-fullscreen .document-detail-preview-live iframe{height:100%;min-height:0}.modal-is-fullscreen .document-detail-preview-live img{max-height:100%;height:100%;width:100%;object-fit:contain}
@media(max-width:620px){.document-detail-preview-live{min-height:220px}.document-detail-preview-live iframe{height:56dvh;min-height:320px}.document-detail-actions>*{flex:1 1 calc(50% - 6px);justify-content:center}.modal-is-fullscreen .document-detail-preview-live{height:calc(100dvh - 165px)}}


/* Hilpert One v7.35.1 – Prozesskennzahlen im Betriebs-Dashboard */
.dashboard-process-health{margin:0 0 18px;padding:20px;border:1px solid var(--ho-border,#dfe5ee);border-radius:22px;background:var(--ho-surface,#fff);box-shadow:var(--ho-shadow-sm,0 1px 3px rgba(16,24,40,.08))}
.dashboard-process-head{align-items:center}.dashboard-process-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.dashboard-process-kpi{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:14px;border:1px solid var(--ho-border,#dfe5ee);border-radius:14px;background:#fff;text-align:left}
.dashboard-process-kpi:hover{box-shadow:0 7px 18px rgba(16,24,40,.07)}.dashboard-process-kpi small,.dashboard-process-kpi strong,.dashboard-process-kpi em{display:block}
.dashboard-process-kpi small{font-size:11px;font-weight:850;color:var(--ho-text-muted,#667085);text-transform:uppercase;letter-spacing:.06em}.dashboard-process-kpi strong{margin:6px 0 4px;font-size:25px;line-height:1.05;color:var(--blue-dark,#173f74)}.dashboard-process-kpi em{font-size:11px;line-height:1.35;color:var(--ho-text-muted,#667085);font-style:normal}
.dashboard-process-bottlenecks{display:grid;gap:7px;margin-top:12px}.dashboard-process-bottleneck-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:2px 1px}.dashboard-process-bottleneck-head small{color:var(--ho-text-muted,#667085)}
.dashboard-process-bottleneck{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;padding:10px 12px;border:1px solid var(--ho-border,#dfe5ee);border-radius:12px;background:#fff;text-align:left}.dashboard-process-bottleneck span{min-width:0}.dashboard-process-bottleneck strong,.dashboard-process-bottleneck small{display:block}.dashboard-process-bottleneck small{margin-top:2px;color:var(--ho-text-muted,#667085);font-size:11px}.dashboard-process-bottleneck b{font-size:16px;color:#a84e00;white-space:nowrap}
.dashboard-process-ok{padding:11px 12px;border:1px solid var(--ho-border,#dfe5ee);border-radius:12px;background:#fff}.dashboard-process-ok strong,.dashboard-process-ok small{display:block}.dashboard-process-ok small{margin-top:3px;color:var(--ho-text-muted,#667085)}
@media(max-width:950px){.dashboard-process-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.dashboard-process-health{padding:15px;border-radius:18px}.dashboard-process-head{align-items:flex-start;gap:10px}.dashboard-process-grid{grid-template-columns:1fr 1fr}.dashboard-process-kpi{padding:12px}.dashboard-process-kpi strong{font-size:22px}.dashboard-process-bottleneck-head{align-items:flex-start;flex-direction:column;gap:2px}}

/* Hilpert One v7.35.2 – Baustellen-Layout-Hotfix: Kernlayout bleibt unverändert; Fix in styles.css. */

/* Hilpert One v7.64.0 – Wartungsverträge & Abrechnung */
.customer-contract-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.customer-contract-section{margin-top:18px;padding:16px;border:1px solid var(--line,#dbe3ef);border-radius:18px;background:var(--card,#fff)}
.customer-contract-list,.customer-billing-rule-list{display:grid;gap:10px}
.customer-contract-card,.customer-billing-rule-card{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(380px,1fr) auto;align-items:center;gap:14px;padding:14px;border:1px solid var(--line,#dbe3ef);border-radius:14px;background:var(--surface-soft,#f8fafc)}
.customer-contract-card>div:first-child{display:grid;gap:4px;min-width:0}
.customer-contract-card>div:first-child strong{font-size:15px;color:var(--ink,#172033)}
.customer-contract-card>div:first-child small,.customer-billing-rule-card small{color:var(--muted,#687287);line-height:1.4}
.customer-contract-meta{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:8px;align-items:center}
.customer-contract-meta>span:not(.badge){display:grid;gap:2px;padding:8px 10px;border-radius:10px;background:var(--card,#fff);border:1px solid var(--line,#dbe3ef)}
.customer-contract-meta small{font-size:10px;color:var(--muted,#687287)}
.customer-contract-meta b{font-size:11px;color:var(--ink,#172033);line-height:1.25}
.customer-billing-rule-card{grid-template-columns:minmax(0,1fr) auto auto}
.customer-billing-rule-card>div{display:grid;gap:4px}
.customer-billing-rule-card strong{color:var(--ink,#172033)}
.service-billing-hint{display:block;margin-top:5px;padding:6px 8px;border-radius:8px;background:var(--blue-soft,#edf4ff);color:var(--blue-dark,#0b3e84);font-weight:700;line-height:1.35}
html[data-theme="dark"] .customer-contract-section,
html[data-theme="dark"] .customer-contract-card,
html[data-theme="dark"] .customer-billing-rule-card,
html[data-theme="dark"] .customer-contract-meta>span:not(.badge){background:var(--card)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] .customer-contract-card,.customer-billing-rule-card{background:var(--surface-soft)!important}
html[data-theme="dark"] .service-billing-hint{background:#223a5a!important;color:#dbe8ff!important}
@media(max-width:1000px){.customer-contract-card{grid-template-columns:1fr}.customer-contract-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-billing-rule-card{grid-template-columns:1fr auto}}
@media(max-width:640px){.customer-contract-actions{justify-content:stretch}.customer-contract-actions button{flex:1}.customer-contract-meta{grid-template-columns:1fr}.customer-billing-rule-card{grid-template-columns:1fr}.customer-contract-section{padding:12px}}


/* Hilpert One v7.64.0 – Kundenakte breiter und übersichtlicher */
.customer-record-modal{
  width:min(96vw,1200px)!important;
  max-height:min(92vh,980px)!important;
}
/* H1_CUSTOMER_FULLSCREEN_ZONE_STABILITY_V83940_R1
   Die normale Desktopgroesse der Kundenakte darf den zentralen Vollbildmodus
   nicht mit ihren !important-Grenzen wieder auf 1200px / 92vh begrenzen. */
.modal-is-fullscreen .modal.customer-record-modal{
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  border-radius:0!important;
}
.modal-is-fullscreen .modal.customer-record-modal #modalBody{
  min-height:0;
  overflow:auto;
}
.customer-record-modal #modalBody{padding-right:8px}
.customer-record-modal .customer-detail{gap:20px}
.customer-record-modal .customer-detail-hero{padding:22px}
.customer-record-modal .customer-tab-content{min-height:300px}
@media(min-width:1100px){
  .customer-record-modal .customer-overview-grid{grid-template-columns:minmax(0,1.45fr) minmax(320px,.65fr)}
}
@media(max-width:760px){
  .customer-record-modal{width:100vw!important;max-height:96dvh!important}
}

/* Hilpert One v7.64.0 – Wartungsmaterial / Wartungssets */
.customer-contract-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.maintenance-material-manager{display:grid;gap:16px}
.maintenance-material-picker{display:grid;gap:10px;padding-top:4px}
.customer-maintenance-material-list{display:grid;gap:8px}
.customer-maintenance-material-list>article{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line,#dbe3ef);border-radius:14px;background:var(--surface-soft,#f8fafc)}
.customer-maintenance-material-list>article>div:nth-child(2){display:grid;gap:3px;min-width:0}
.customer-maintenance-material-list strong{color:var(--ink,#172033)}
.customer-maintenance-material-list small{color:var(--muted,#687287);line-height:1.4}
.maintenance-material-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.danger-soft{color:#a32828!important;background:#fde8e8!important;border-color:#f1bcbc!important}
.service-maintenance-materials,.service-used-materials{margin-top:16px;padding:14px;border:1px solid var(--line,#dbe3ef);border-radius:16px;background:var(--surface-soft,#f8fafc)}
.maintenance-suggestion-list .maintenance-suggestion{grid-template-columns:auto minmax(0,1fr) auto auto auto}
.maintenance-suggestion.optional{opacity:.82}
.maintenance-suggestion .stock-pill{justify-self:end}
html[data-theme="dark"] .customer-maintenance-material-list>article,
html[data-theme="dark"] .service-maintenance-materials,
html[data-theme="dark"] .service-used-materials{background:var(--surface-soft)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] .danger-soft{background:#3b2024!important;color:#ffb5b5!important;border-color:#6d343b!important}
@media(max-width:850px){.customer-maintenance-material-list>article,.maintenance-suggestion-list .maintenance-suggestion{grid-template-columns:auto minmax(0,1fr) auto}.maintenance-material-actions,.maintenance-suggestion .stock-pill,.maintenance-suggestion button{grid-column:2/-1;justify-self:start}}


/* Hilpert One v7.64.0 – Anlagenmaterial direkt ohne Wartungsvertrag */
.customer-asset-list{display:grid;gap:10px}
.customer-asset-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.customer-asset-row .customer-asset-open{width:100%}
.customer-asset-material{white-space:nowrap}
@media(max-width:760px){.customer-asset-row{grid-template-columns:1fr}.customer-asset-material{width:100%}}


/* v7.64.0 – Privathandy-Foto per QR */
.service-photo-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.private-handset-pairing{display:grid;gap:15px}.private-handset-qr{display:grid;justify-items:center;gap:8px;padding:18px;border:1px solid var(--line,#dbe3ef);border-radius:18px;background:var(--surface,#fff)}.private-handset-qr img{width:min(280px,72vw);height:auto;border-radius:12px;background:#fff;padding:8px}.private-handset-qr small{color:var(--muted,#687287);text-align:center}.private-handset-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}@media(max-width:620px){.service-photo-actions{width:100%;justify-content:stretch}.service-photo-actions button{flex:1}.private-handset-actions>*{flex:1 1 100%}}
html[data-theme="dark"] .private-handset-qr{background:var(--card,#1a2840)!important;border-color:var(--line,#344a68)!important}

.customer-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.customer-photo-card{position:relative;padding:0;border:1px solid var(--line,#dbe3ef);border-radius:16px;overflow:hidden;background:var(--surface,#fff);text-align:left}.customer-photo-media{position:relative}.customer-photo-open-area{display:block;width:100%;padding:0;border:0;background:transparent;cursor:pointer}.customer-photo-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#e9eff6}.customer-photo-caption{display:grid;width:100%;gap:3px;padding:10px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.customer-photo-card small{color:var(--muted,#687287)}@media(max-width:760px){.customer-photo-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.customer-photo-grid{grid-template-columns:1fr}}html[data-theme="dark"] .customer-photo-card{background:var(--card,#1a2840)!important;border-color:var(--line,#344a68)!important}

/* v7.66.8 Geräteakten: Listenansicht + feste Kundenzuordnung */
.device-toolbar{grid-template-columns:minmax(280px,1fr) 190px 170px auto auto}
.device-view-switch{display:flex;gap:6px;justify-content:flex-end}.device-view-switch .filter-chip{white-space:nowrap}.device-view-switch .filter-chip.active{background:#e8f1ff;border-color:#8db8f1;color:#064eae}
.device-list{display:flex;flex-direction:column;border:1px solid var(--line,#dfe6f1);border-radius:16px;overflow:hidden;background:var(--ho-surface,#fff)}
.device-list-head,.device-list-row{display:grid;grid-template-columns:minmax(130px,.9fr) minmax(180px,1.35fr) minmax(160px,1.15fr) minmax(200px,1.35fr) minmax(135px,.9fr) 105px 90px;gap:14px;align-items:center;padding:12px 14px}
.device-list-head{background:var(--ho-surface-muted,#f6f8fc);border-bottom:1px solid var(--line,#dfe6f1);font-size:.72rem;font-weight:800;color:#68758d;text-transform:uppercase;letter-spacing:.04em}
.device-list-row{border-bottom:1px solid var(--line,#edf1f6);cursor:pointer;transition:background .15s ease}.device-list-row:last-child{border-bottom:0}.device-list-row:hover,.device-list-row:focus{background:var(--ho-surface-muted,#f7f9fc);outline:none}.device-list-row strong{display:block;color:var(--text,#17233c);font-size:.88rem;line-height:1.3}.device-list-row small{display:block;margin-top:3px;color:var(--muted,#6f7c92);font-size:.74rem;line-height:1.25}.device-list-code .device-code{display:block}.device-list-due.overdue strong{color:#b42318}.device-list-due.soon strong{color:#9a6700}
.device-fixed-customer{display:grid;gap:3px;padding:13px 15px;border:1px solid #cfe0f7;border-radius:13px;background:#f6faff}.device-fixed-customer strong{font-size:1rem;color:#123d77}.device-fixed-customer small{color:#66758c}
html[data-theme="dark"] .device-list,html[data-theme="dark"] .device-list-head,html[data-theme="dark"] .device-list-row,html[data-theme="dark"] .device-fixed-customer{background:var(--ho-surface,#172236);border-color:var(--line,#344159)}html[data-theme="dark"] .device-list-row:hover,html[data-theme="dark"] .device-list-row:focus{background:var(--ho-surface-muted,#202d43)}html[data-theme="dark"] .device-view-switch .filter-chip.active{background:#243d61;color:#d7e8ff;border-color:#416a9f}
@media(max-width:1100px){.device-toolbar{grid-template-columns:1fr 1fr 1fr}.device-toolbar .search-wrap{grid-column:1/-1}.device-view-switch{justify-content:flex-start}.device-list{overflow-x:auto}.device-list-head,.device-list-row{min-width:980px}}
@media(max-width:620px){.device-view-switch{grid-column:1/-1}.device-view-switch .filter-chip{flex:1}.device-list{border:0;background:transparent;overflow:visible}.device-list-head{display:none}.device-list-row{min-width:0;display:grid;grid-template-columns:1fr auto;gap:10px;background:var(--ho-surface,#fff);border:1px solid var(--line,#dfe6f1);border-radius:14px;margin-bottom:10px}.device-list-row>div:nth-child(2),.device-list-row>div:nth-child(3),.device-list-row>div:nth-child(4),.device-list-row>div:nth-child(5){grid-column:1/-1}.device-list-row>div:nth-child(6){grid-column:2;grid-row:1}.device-list-row>.text-link{grid-column:1/-1;justify-self:start}.device-list-code{grid-column:1}}


/* Hilpert One v7.67.1 – Listenansichten Kunden & Kundendienst */
.record-view-mode-row{display:flex;justify-content:flex-end;align-items:center;margin:8px 0 14px}
.record-view-mode-row .view-mode-toggle{margin:0}

#serviceView.view-mode-list .service-order-grid{grid-template-columns:1fr;gap:8px}
#serviceView.view-mode-list .service-order-card{
  display:grid;grid-template-columns:minmax(260px,1.05fr) minmax(390px,1.65fr) minmax(145px,.55fr);
  grid-template-areas:"head context foot" "address address foot";
  gap:9px 18px;align-items:center;padding:12px 14px;border-radius:13px;box-shadow:0 4px 14px rgba(27,55,101,.055)
}
#serviceView.view-mode-list .service-order-card:hover{transform:none;box-shadow:0 7px 18px rgba(27,55,101,.09)}
#serviceView.view-mode-list .service-order-head{grid-area:head;align-items:center}
#serviceView.view-mode-list .service-order-head h3{margin:2px 0 1px;font-size:.98rem}
#serviceView.view-mode-list .service-order-context{grid-area:context;margin:0;gap:7px}
#serviceView.view-mode-list .service-order-context span{padding:8px 9px;border-radius:9px}
#serviceView.view-mode-list .service-order-address{grid-area:address;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#serviceView.view-mode-list .service-order-card footer{grid-area:foot;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;border-top:0;border-left:1px solid #edf1f6;padding:0 0 0 14px}

#customersView.view-mode-list .customer-grid{grid-template-columns:1fr;gap:8px}
#customersView.view-mode-list .customer-card{
  display:grid;grid-template-columns:minmax(330px,1.25fr) minmax(280px,.9fr) minmax(245px,.8fr);
  grid-template-areas:"head stats foot";gap:16px;align-items:center;padding:12px 14px;border-radius:13px;box-shadow:0 4px 14px rgba(27,55,101,.055)
}
#customersView.view-mode-list .customer-card:hover{transform:none;box-shadow:0 7px 18px rgba(27,55,101,.09)}
#customersView.view-mode-list .customer-card-head{grid-area:head;align-items:center}
#customersView.view-mode-list .customer-avatar{width:42px;height:42px;border-radius:11px}
#customersView.view-mode-list .customer-card-stats{grid-area:stats;margin:0;gap:7px}
#customersView.view-mode-list .customer-card-stats div{padding:8px 9px;border-radius:9px}
#customersView.view-mode-list .customer-card-stats strong{font-size:1rem}
#customersView.view-mode-list .customer-card footer{grid-area:foot;margin:0;border-top:0;border-left:1px solid #edf1f6;padding:2px 0 2px 16px;display:grid;justify-items:end;text-align:right;gap:5px}

@media(max-width:1050px){
  #serviceView.view-mode-list .service-order-card{grid-template-columns:minmax(250px,1fr) minmax(300px,1.25fr);grid-template-areas:"head context" "address foot"}
  #serviceView.view-mode-list .service-order-card footer{border-left:0;border-top:1px solid #edf1f6;padding:8px 0 0;align-items:flex-end}
  #customersView.view-mode-list .customer-card{grid-template-columns:minmax(300px,1fr) minmax(260px,.9fr);grid-template-areas:"head stats" "head foot"}
  #customersView.view-mode-list .customer-card footer{border-left:0;border-top:1px solid #edf1f6;padding:8px 0 0}
}
@media(max-width:700px){
  .record-view-mode-row{justify-content:flex-start}
  #serviceView.view-mode-list .service-order-card,#customersView.view-mode-list .customer-card{display:block;padding:13px}
  #serviceView.view-mode-list .service-order-context,#customersView.view-mode-list .customer-card-stats{margin:12px 0}
  #serviceView.view-mode-list .service-order-card footer,#customersView.view-mode-list .customer-card footer{border-left:0;border-top:1px solid #edf1f6;padding-top:10px;display:flex;flex-direction:row;align-items:center;text-align:left}
}

.customer-photo-grid.photo-size-small{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.customer-photo-grid.photo-size-small .customer-photo-card img{aspect-ratio:4/3}
.customer-photo-grid.photo-size-medium{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.customer-photo-grid.photo-size-medium .customer-photo-card img{aspect-ratio:4/3}
.customer-photo-grid.photo-size-large{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}.customer-photo-grid.photo-size-large .customer-photo-card img{aspect-ratio:16/10}
.customer-photo-open-area,.customer-photo-caption{cursor:pointer}
