/* Holtikon Betriebs-App v0.19.7 */

/* Tabellenkoepfe bleiben in allen scrollbaren Tabellen sichtbar. */
.table-wrap{max-height:72vh;overflow:auto}
.table thead th,.service-calc-table thead th,.doc-lines-wrap thead th,.dn-catalog-table thead th{position:sticky;top:64px;z-index:8;background:#f7f8fa;box-shadow:0 1px 0 var(--line)}
.table-wrap .table thead th,.service-calc-table thead th,.doc-lines-wrap thead th,.dn-catalog-table thead th{top:0}
.table-wrap table{border-collapse:separate;border-spacing:0}

.v197-case-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.v197-status-bg{display:inline-flex;align-items:center;min-height:28px;padding:6px 10px;border:1px solid transparent;border-radius:8px;font-weight:800;line-height:1.15;white-space:normal;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.v197-tone-neutral{background:#e8edf2!important;color:#334155!important;border-color:#cbd5e1!important}
.v197-tone-purple{background:#ede3ff!important;color:#5b21b6!important;border-color:#c4b5fd!important}
.v197-tone-teal{background:#d6f5ef!important;color:#0f675b!important;border-color:#8bd8ca!important}
.v197-tone-yellow{background:#fff0b5!important;color:#775900!important;border-color:#e7c95e!important}
.v197-tone-orange{background:#ffe0bb!important;color:#8b3d00!important;border-color:#f2ae63!important}
.v197-tone-blue{background:#dbeafe!important;color:#174a8b!important;border-color:#93c5fd!important}
.v197-tone-lime{background:#e7f7c8!important;color:#426512!important;border-color:#b8da75!important}
.v197-tone-green{background:#d8f3df!important;color:#176232!important;border-color:#86d49b!important}
.v197-tone-red{background:#ffd9d7!important;color:#8f2020!important;border-color:#ee9792!important}
.v12-status-cell .v197-status-bg{width:100%;justify-content:center;text-align:center}

.v197-collapsible{border-color:#dfe3e8}
.v197-collapsible>.profile-section-head{cursor:pointer}
.v197-collapsible:not(.open)>:not(.profile-section-head){display:none!important}
.v197-collapse-toggle{order:-1;min-width:76px}
.v197-result-type{display:block;color:#8b5c15;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:3px}
.v197-search-card{min-height:320px}
.v197-search-card .profile-head small{display:block;color:var(--muted);font-weight:700;margin-bottom:4px}
.v197-edit-tenant{margin-right:4px}
.v197-address-heading{padding:10px 12px;border-radius:9px;background:#f6f8fa;border:1px solid var(--line)}
.v197-address-heading strong,.v197-address-heading small{display:block}
.v197-address-heading small{color:var(--muted);margin-top:3px}

.v197-fixed-texts{border:1px solid #dfe3e8;border-radius:12px;background:#f8fafc;padding:12px;margin:10px 0}
.v197-fixed-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:9px}
.v197-fixed-head strong,.v197-fixed-head small{display:block}
.v197-fixed-head small{color:var(--muted);margin-top:3px}
.v197-fixed-list{display:grid;gap:9px}
.v197-fixed-row{display:grid;grid-template-columns:minmax(180px,.35fr) minmax(300px,1fr) auto;gap:8px;align-items:start}
.v197-fixed-row select,.v197-fixed-row textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px}
.v197-fixed-post{background:#fffaf0}

.v197-kva-summary{grid-template-columns:repeat(4,minmax(150px,220px))}

@media(max-width:1180px){.v197-case-summary,.v197-kva-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.v197-fixed-row{grid-template-columns:1fr}.v197-fixed-row .danger{justify-self:end}}
@media(max-width:680px){.v197-case-summary,.v197-kva-summary{grid-template-columns:1fr}.v197-fixed-head{flex-direction:column}.table-wrap{max-height:68vh}}
