@charset "UTF-8";
:root{--ink:#172e36;--muted:#6a7c84;--teal:#007c78;--teal-dark:#006662;--line:#e3e9ed;--soft:#f4f7f9;--bg:#f6f8fa;--red:#b42d35;--radius:12px;font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:var(--teal)}[hidden]{display:none!important}.layout{display:flex;min-height:100vh}.sidebar{width:248px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:20px 12px 0;overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:27px;font-weight:700;letter-spacing:-1px}.brand-icon{width:45px;height:45px;display:grid;place-items:center;background:var(--teal);color:white;border-radius:13px;font-size:32px;line-height:1;letter-spacing:-3px;padding-right:3px}.brand small{display:block;font-size:9px;letter-spacing:1.8px;color:var(--muted);margin-top:3px;font-weight:600}.nav-label{font-size:10px;letter-spacing:1.8px;color:#91a0a7;font-weight:700;margin:24px 10px 8px}.nav-item{display:flex;align-items:center;gap:8px;width:100%;background:transparent;border:0;color:#5c7079;text-align:left;padding:9px 10px;border-radius:7px;margin:3px 0;font-weight:600;font-size:12px;line-height:1.35}.nav-item small{display:block;font-size:9px;font-weight:400;margin-top:2px;line-height:1.35}.nav-item:hover{background:var(--soft)}.nav-item.active{background:#eaf5f3;color:var(--teal)}.nav-icon{font-size:18px;width:20px;flex-shrink:0}.nav-count{font-size:10px;background:#d6ede8;padding:4px 6px;border-radius:5px;margin-left:auto}.sidebar-note{margin-top:auto;padding:14px 10px;color:#59757c;font-size:12px}.sidebar-note p{font-size:10px;line-height:1.5;color:#8b9ba3;margin:5px 0}.status-dot{display:inline-block;width:7px;height:7px;background:#48a398;border-radius:50%;margin-right:5px}.profile{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:12px 4px;font-size:12px}.profile small{display:block;color:var(--muted);margin-top:4px;font-size:10px}.profile .icon-button{margin-left:auto}.avatar{display:grid;place-items:center;width:35px;height:35px;background:#eaf0f4;border-radius:50%;font-weight:600;color:#54717d}main{margin-left:248px;width:calc(100% - 248px)}.topbar{height:73px;padding:0 36px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;font-size:12px}.crumb{color:#8c9ba3}.crumb-separator{color:#b7c3c9;margin:0 14px}.topbar-company{color:#8b9ba3;font-size:11px}.content{padding:35px 36px 24px;max-width:1900px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:var(--teal);margin-bottom:10px}h1{font-size:30px;font-weight:650;letter-spacing:-.9px;margin:0 0 10px}p{color:var(--muted);font-size:13px;line-height:1.6;margin:0}h2{font-size:16px;font-weight:650;margin:0}.source-badge{border:1px solid #cce8dd;color:#36846d;background:#eff9f4;border-radius:30px;padding:8px 12px;font-size:11px;white-space:nowrap}.source-badge.live{color:#4772aa;background:#eef4fc;border-color:#d8e5f8}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:26px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:21px 22px;position:relative}.stat-label{font-size:12px;color:var(--muted);margin-bottom:13px}.stat-value{font-size:29px;font-weight:650;letter-spacing:-.8px}.stat-caption{font-size:10px;color:#8b9ba3;margin-top:8px}.stat-marker{position:absolute;right:20px;top:21px;color:var(--teal);background:#eaf5f3;width:31px;height:31px;border-radius:8px;display:grid;place-items:center;font-size:17px}.data-panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 2px 3px #18394702}.panel-heading{padding:25px 24px 22px;display:flex;justify-content:space-between;align-items:center;gap:15px}.panel-heading p{margin-top:6px;font-size:11px}.actions{display:flex;gap:8px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:white;border:1px solid #dce4e8;color:#405c65;border-radius:7px;padding:9px 13px;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}.button:hover{background:var(--soft)}.button.primary{background:var(--teal);border-color:var(--teal);color:white}.button.primary:hover{background:var(--teal-dark)}.button.subtle{border-color:var(--line);background:white}.icon-button{border:0;background:transparent;color:#6c818a;font-size:22px;padding:5px 8px;border-radius:6px}.icon-button:hover{background:var(--soft)}.toolbar{display:flex;align-items:center;gap:10px;padding:0 24px 21px;flex-wrap:wrap}.search{display:flex;align-items:center;gap:10px;border:1px solid #dce4e8;border-radius:7px;background:white;padding:0 12px;flex:1;min-width:190px;height:37px}.search span{font-size:21px;color:#8c9ea5}.search input{border:0;outline:0;width:100%;font-size:12px;padding:9px 0;min-width:0}.toolbar select,.table-footer select{border:1px solid #dce4e8;border-radius:7px;background:white;color:#506871;font-size:11px;padding:9px;max-width:180px}.table-wrap{overflow:auto;min-height:200px;max-height:calc(100vh - 410px)}table{border-collapse:collapse;text-align:left;width:100%;font-size:12px}thead{background:#f7f9fb;color:#7a8e97}th{position:sticky;top:0;background:#f7f9fb;z-index:1;padding:13px 17px;font-size:10px;text-transform:uppercase;letter-spacing:.5px;font-weight:600;border-block:1px solid var(--line);white-space:nowrap}td{padding:16px 17px;border-bottom:1px solid #edf1f4;max-width:350px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#506871}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8fbfc}tbody tr.clickable{cursor:pointer}td.name-cell{font-weight:600;color:var(--ink);min-width:240px}td .cell-sub{display:block;font-weight:400;font-size:10px;color:#90a0a8;margin-top:5px}.badge{display:inline-block;font-size:10px;border-radius:5px;padding:4px 7px;background:#eef2f5;color:#657b88}.badge.green{background:#eaf6ed;color:#388057}.badge.orange{background:#fff3e3;color:#b77b22}.badge.red{background:#fceeee;color:#b65555}.badge.blue{background:#ebf2fe;color:#4a73aa}.table-footer{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:16px 24px;color:#81929b;font-size:11px;gap:12px}.table-footer>div{display:flex;align-items:center;gap:13px}.table-footer select{padding:5px;margin-left:7px}.table-footer .button{padding:5px 9px}.source-note{font-size:11px;margin-top:17px;color:#90a0a8}.tabs{padding:0 24px 20px;display:flex;gap:6px}.tab{background:var(--soft);border:0;border-radius:7px;color:var(--muted);padding:10px 15px;font-weight:600;font-size:12px}.tab.active{background:#eaf5f3;color:var(--teal)}.column-picker{display:flex;gap:12px;flex-wrap:wrap;padding:14px 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f8fbfc;font-size:11px}.column-picker label{display:flex;gap:6px;align-items:center}.empty-state{text-align:center;padding:58px 20px;color:var(--muted)}.empty-state h3{font-size:16px;color:var(--ink);margin:0 0 10px}.empty-state .button{margin-top:16px}dialog{padding:28px;border:1px solid var(--line);border-radius:16px;max-width:650px;width:calc(100% - 40px);max-height:90vh;color:var(--ink);box-shadow:0 24px 80px #122b3540}dialog::backdrop{background:#172e3670;backdrop-filter:blur(3px)}.detail-dialog{max-width:none;width:94vw}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:15px}.dialog-heading h2{font-size:23px;letter-spacing:-.5px}.dialog-heading .eyebrow{margin-bottom:5px}.dialog-footer{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-footer>div{display:flex;gap:8px}.field-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px 20px;margin-top:23px}.field-grid label,.login-card label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600;color:#617780}.field-grid input,.field-grid textarea,.login-card input{border:1px solid #dce4e8;border-radius:7px;padding:10px 12px;width:100%;color:var(--ink);background:white;outline:0}.field-grid input:focus,.field-grid textarea:focus,.login-card input:focus,.search:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px #007c7810}.field-grid textarea{resize:vertical;min-height:76px}.field-grid .wide{grid-column:1/-1}.field-grid .edited input,.field-grid .edited textarea{border-left:3px solid #da9e39}.field-grid label small{font-weight:400;font-size:10px;color:#ac802e}.muted{color:var(--muted);font-size:11px;line-height:1.6}.error-box{padding:12px 15px;border-radius:8px;background:#fff0f0;color:#a2373c;border:1px solid #f0c9cd;font-size:12px;margin-top:15px;line-height:1.6}.upload-area{margin:20px 0;display:flex;flex-direction:column;align-items:center;gap:10px;border:1px dashed #b2cecc;background:#f6fbfa;border-radius:10px;padding:24px;font-size:13px;color:var(--teal);cursor:pointer}.upload-area>span{font-size:27px}.upload-area small{font-size:11px;color:var(--muted)}.upload-area input{max-width:100%;font-size:11px}.preview-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.preview-stats div{padding:17px;background:var(--soft);border-radius:8px;font-size:11px;color:var(--muted)}.preview-stats strong{display:block;font-size:22px;color:var(--ink);margin-bottom:7px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:13px 22px;border-radius:9px;box-shadow:0 5px 20px #172e3630;z-index:10;font-size:12px}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 15% 15%,#deeeea,transparent 50%),var(--bg)}.login-card{margin:25px;padding:42px;width:440px;max-width:calc(100% - 40px);border:1px solid var(--line);border-radius:20px;background:white;box-shadow:0 15px 70px #173b3b0b}.login-card .brand{margin-bottom:45px}.login-card h1{font-size:25px}.login-card p{font-size:12px}.login-card form{margin-top:27px}.login-card label{margin-bottom:19px;font-size:12px}.login-card input{font-size:14px;padding:12px}.login-card .button{width:100%;padding:13px;margin-top:5px;justify-content:space-between}.login-card footer{font-size:10px;color:#9cabb2;text-align:center;margin-top:30px}:focus-visible{outline:2px solid var(--teal);outline-offset:3px}@media(min-width:1500px){.content{padding:42px 48px}.topbar{padding:0 48px}.stats{gap:22px}.stat{padding:25px}.table-wrap{max-height:calc(100vh - 460px)}}@media(max-width:1100px){.sidebar{width:232px;padding-inline:12px}.nav-item{font-size:12px}.nav-item small{font-size:9px}.nav-count{display:none}main{margin-left:232px;width:calc(100% - 232px)}.content{padding:25px 22px}.topbar{padding:0 22px}.stats{gap:10px}.stat{padding:18px 15px}.stat-marker{display:none}.panel-heading{align-items:flex-start}.actions{flex-wrap:wrap;justify-content:flex-end}}@media(max-width:760px){.layout{display:block}.sidebar{position:static;width:100%;padding:17px 18px 10px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:22px}.brand-icon{width:35px;height:35px;font-size:26px}.nav-label,.sidebar-note,.profile{display:none}.sidebar nav{display:flex;gap:4px;margin-top:15px}.nav-item{justify-content:center;padding:10px 6px;margin:0;font-size:10px;gap:4px}.nav-item small{display:none}.nav-icon{font-size:16px;width:18px}main{width:100%;margin:0}.topbar{height:50px;padding:0 18px}.content{padding:22px 15px}.topbar-company{display:none}.page-heading{align-items:flex-start}.source-badge{font-size:9px;padding:6px 8px}.page-heading p{font-size:11px}h1{font-size:25px}.stats{gap:7px}.stat{padding:13px 10px}.stat-label{font-size:10px}.stat-value{font-size:22px}.stat-caption{font-size:9px}.panel-heading{padding:19px 15px;display:block}.actions{margin-top:15px;justify-content:flex-start}.toolbar{padding:0 15px 15px;gap:7px}.toolbar select{flex:1}.toolbar .search{flex-basis:100%}.table-wrap{max-height:500px}.table-footer{padding:13px;flex-wrap:wrap}.field-grid{grid-template-columns:1fr}.field-grid .wide{grid-column:auto}.dialog-footer{flex-wrap:wrap}.dialog-footer>div{margin-left:auto}.login-card{padding:30px;width:400px}.column-picker{padding:15px}}
.mobile-logout{display:none}@media(max-width:760px){.mobile-logout{display:block}}
.movable-column{cursor:grab}.movable-column:active{cursor:grabbing}.movable-column.dragging{opacity:.45}.movable-column.drop-target{background:#d6ede8;box-shadow:inset 3px 0 var(--teal)}.column-hint{flex-basis:100%;font-size:11px}.column-option{display:flex;align-items:center;gap:4px}.column-move{border:1px solid var(--line);border-radius:4px;background:white;color:var(--teal);padding:2px 6px;font-size:12px}.column-move:hover:not(:disabled){background:#eaf5f3}
.sync-status{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:14px 18px;background:#eaf5f3;border:1px solid #d4e8e4;border-radius:9px;margin-bottom:20px;font-size:11px;color:#356b66;line-height:1.7}.sync-status a{white-space:nowrap}.sync-error{background:#fff5e9;border-color:#f0dbb9;color:#92632d}@media(max-width:760px){.sync-status{display:block}.sync-status a{display:block;margin-top:8px}}
/* Give the clinic table the available width and keep the overview compact. */
.content{max-width:none;padding-top:24px}.page-heading{margin-bottom:18px}.stats{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-bottom:20px}.stat{padding:16px 20px}.stat-label{margin-bottom:8px}.stat-value{font-size:25px}.stat-caption{margin-top:5px}.stat-marker{top:16px}.panel-heading{padding-top:20px;padding-bottom:18px}
@media(min-width:1101px){.content{padding:24px}.topbar{padding-inline:24px}.table-wrap{max-height:calc(100vh - 420px)}}
@media(max-width:760px){.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.stat{padding:13px 10px}.stat-value{font-size:22px}.stat-label{margin-bottom:8px}.stat-caption{font-size:9px}.panel-heading{padding:19px 15px}}
.contact-column{min-width:240px;white-space:normal;vertical-align:top}.contact-cell{line-height:1.55;overflow-wrap:anywhere}.contact-cell>div+div{margin-top:3px}.contact-label{color:var(--muted);font-size:10px}
.sort-header{font:inherit;text-transform:inherit;letter-spacing:inherit;color:inherit;padding:0;background:none;border:0;text-align:left;white-space:nowrap;cursor:pointer}.sort-header:hover{color:var(--teal)}th.mailbox-column,td.mailbox-column{width:12ch;max-width:12ch;min-width:10ch;padding-inline:10px;white-space:normal}th.mailbox-column .sort-header{max-width:10ch;overflow:hidden;text-overflow:ellipsis}.mailbox-list{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.mailbox-id{display:inline-block;background:#edf5fa;border:1px solid #d5e6ef;color:#326781;border-radius:4px;padding:3px 7px;cursor:help;white-space:nowrap}.mailbox-id:hover,.mailbox-id:focus{background:#dceef6}th.short-location-column,td.short-location-column{width:18ch;min-width:18ch;max-width:18ch;padding-inline:10px}td.short-location-column{overflow:hidden;text-overflow:ellipsis}.init-link{display:inline-block;max-width:32ch;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.topbar-navigation{display:flex;align-items:center;gap:12px;min-width:0}.sidebar-toggle{flex-shrink:0;font-size:20px;line-height:1;padding:7px 9px}.sidebar-collapsed main{margin-left:0;width:100%}
th.excel-status-column,td.excel-status-column{width:16ch;min-width:16ch;max-width:16ch;padding-inline:10px;white-space:normal}th.excel-date-column,td.excel-date-column{width:15ch;min-width:15ch;max-width:15ch;padding-inline:10px}th.excel-status-column .sort-header,th.excel-date-column .sort-header{white-space:normal;line-height:1.4}td.excel-date-column{font-variant-numeric:tabular-nums;white-space:nowrap}.badge.status-contact{background:#ffeb9c;color:#9c6500}.badge.status-pending{background:#fff2cc;color:#7f6000}.badge.status-ztm,.badge.status-dead{background:#808080;color:#8b0000}.badge.status-other{background:#bfbfbf;color:#202020}.badge.status-done{background:#c6e0b4;color:#375623}.badge.last-contact-date{background:#fce4d6}.badge.overdue-contact{background:#ffc7ce;color:#9c0006;font-weight:600}.location-column{min-width:190px;max-width:260px;white-space:normal;vertical-align:top}.location-cell{line-height:1.55;overflow-wrap:anywhere}.location-cell>div+div{margin-top:3px}

.excel-status-column .badge{white-space:normal;line-height:1.4}.date-label{padding:4px 5px}
.mailbox-mismatch{background:#ffc7ce!important;color:#9c0006!important}.mailbox-warning{font-weight:bold;cursor:help}.field-grid select{border:1px solid #dce4e8;border-radius:7px;padding:10px 12px;width:100%;background:white;color:var(--ink)}
.formula-bar{display:flex;align-items:center;gap:12px;padding:5px 8px;border-block:1px solid #c7c7c7;background:#f5f5f5;font:12px Calibri,Arial,sans-serif}.formula-bar #cell-reference{border:1px solid #ccc;background:white;min-width:65px;padding:3px 6px}.formula-bar output{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:white;padding:3px 8px}.formula-bar button{border:1px solid #ccc;background:white;padding:3px 8px;font:inherit}
.excel-classic .source-note{font-size:11px}.excel-classic .table-wrap{background:#fff}.excel-classic #table-region table{table-layout:fixed;width:max-content;font:13px Calibri,Arial,sans-serif;color:#000;border-collapse:separate;border-spacing:0}.excel-classic #table-region th,.excel-classic #table-region td{padding:2px 4px;border-right:1px solid #d5dbea;border-bottom:1px solid #8ea9db;min-width:0;max-width:none;color:#000;font-weight:400;white-space:nowrap;height:21px;line-height:16px}.excel-classic #table-region thead th{background:#4472c4;top:23px;height:54px;vertical-align:bottom;white-space:normal;font-size:12px;letter-spacing:0;text-transform:none;font-weight:bold;padding-right:22px}.excel-classic #table-region .sort-header{white-space:normal;line-height:14px;color:#000;font-weight:bold;font-size:12px}.excel-classic #table-region .column-letters th{background:#f2f2f2;text-align:center;color:#555;top:0;height:23px;padding:2px;font-weight:400;border-color:#d4d4d4}.excel-classic #table-region tbody tr:nth-child(odd){background:#d9e1f2}.excel-classic #table-region tbody tr:nth-child(even){background:#fff}.excel-classic #table-region tbody tr:hover{background:#e5efdf}.excel-classic #table-region .row-number{position:sticky;left:0;width:42px;background:#f2f2f2;text-align:right;color:#666;z-index:1}.excel-classic #table-region th.row-number{z-index:3}.excel-classic #table-region .badge{display:block;padding:0;border-radius:0;font:inherit;white-space:nowrap}.excel-classic #table-region td:has(.status-contact){background:#ffeb9c}.excel-classic #table-region td:has(.status-pending){background:#fff2cc}.excel-classic #table-region td:has(.status-other){background:#bfbfbf}.excel-classic #table-region td:has(.status-ztm),.excel-classic #table-region td:has(.status-dead){background:#808080}.excel-classic #table-region td:has(.status-done){background:#c6e0b4}.excel-classic #table-region td:has(.overdue-contact){background:#ffc7ce}.excel-classic #table-region td:has(.last-contact-date){background:#fce4d6}.excel-classic #table-region .selected-cell{outline:2px solid #217346;outline-offset:-2px}.cell-filter{position:absolute;right:3px;bottom:5px;width:17px;height:18px;font-size:10px;background:white;border:1px solid #ccc;border-radius:2px;color:#333}.cell-filter.filtered{background:#c6e0b4;border-color:#217346}.excel-classic #table-region td.location-column{white-space:nowrap;vertical-align:middle}.excel-classic .page-heading{display:none}
.heading-count{font-size:12px;color:var(--muted);white-space:nowrap}.compact-source .topbar{height:52px}.compact-source .content{padding:16px 20px}.compact-source .page-heading{margin-bottom:12px;gap:12px}.compact-source .heading-line{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.compact-source .eyebrow{font-size:12px;margin-bottom:4px;letter-spacing:1px}.compact-source #title{display:none}.compact-source #subtitle{font-size:12px}.compact-source .source-badge{padding:5px 9px;font-size:10px}.compact-source .panel-heading{padding:14px 18px;gap:12px}.compact-source .tabs{padding:0 18px 12px}.compact-source .tab{padding:7px 12px}.compact-source .toolbar{padding:0 18px 12px}.compact-source .sync-status{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:4px 12px;padding:0;margin:4px 0 0;background:none;border:0;border-radius:0;font-size:11px;line-height:1.5;color:var(--muted)}.compact-source .sync-status.sync-error{color:var(--red)}.compact-source .source-note{margin-top:10px;font-size:10px}.compact-source .table-footer{padding:10px 18px}
@media(min-width:761px){.compact-source .content{height:calc(100dvh - 52px);display:flex;flex-direction:column;min-height:360px}.compact-source .data-panel{display:flex;flex-direction:column;flex:1;min-height:0}.compact-source .data-panel>:not(.table-wrap){flex-shrink:0}.compact-source .table-wrap{flex:1;min-height:0;max-height:none}.compact-source .page-heading,.compact-source .source-note{flex-shrink:0}}
@media(max-width:760px){.compact-source .content{padding:12px 15px}.compact-source .page-heading{align-items:flex-start}.compact-source .heading-count{font-size:11px}.compact-source .actions{margin-top:10px}.compact-source .panel-heading{padding:12px 15px}.compact-source .toolbar{padding:0 15px 12px}.compact-source .sync-status a{margin:0}}
.confluence-source .content{padding:12px 16px}.confluence-source .page-heading{margin-bottom:8px}.confluence-source .panel-heading{padding:10px 14px}.confluence-source .actions .button{font-size:11px;padding:7px 10px}.confluence-source .toolbar{padding:0 14px 9px;gap:8px;align-items:center}.confluence-source #confluence-tabs{padding:0;margin:0;flex-shrink:0;gap:4px}.confluence-source .tab{padding:7px 10px;font-size:11px}.confluence-source .search{height:32px;min-width:160px;padding-inline:9px}.confluence-source .search input{font-size:11px;padding-block:7px}.confluence-source .toolbar select{font-size:10px;padding:7px 8px}.confluence-source #columns-toggle{font-size:11px;padding:7px 10px}.confluence-source .table-footer{font-size:10px;padding:6px 14px;line-height:1.3}.confluence-source .source-note{margin-top:7px}.confluence-source th{padding-block:10px}.confluence-source th.postfach-id-column,.confluence-source td.postfach-id-column{width:56px;min-width:56px;max-width:56px;padding-inline:8px}.confluence-source th.postfach-status-column,.confluence-source td.postfach-status-column{width:72px;min-width:72px;max-width:72px;padding-inline:8px}.confluence-source th.postfach-id-column .sort-header,.confluence-source th.postfach-status-column .sort-header{white-space:normal;overflow-wrap:anywhere;font-size:9px;line-height:1.3}.confluence-source th.confluence-clinic-column,.confluence-source td.confluence-clinic-column{width:200px;min-width:200px;max-width:200px;padding-inline:12px}.confluence-source td.confluence-clinic-column{overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.confluence-source .toolbar .search{flex-basis:160px}.confluence-source .toolbar select{flex:0 1 auto}}
.confluence-source th.postfach-id-column .sort-header,.confluence-source th.postfach-status-column .sort-header{letter-spacing:0;overflow-wrap:normal}
.excel-source .content{padding:12px 16px}.excel-source .page-heading{margin-bottom:8px}.excel-source .panel-heading{padding:10px 14px}.excel-source .actions .button{font-size:11px;padding:7px 10px}.excel-source .toolbar{padding:0 14px 9px;gap:8px}.excel-source .search{height:32px;padding-inline:9px}.excel-source .search input{font-size:11px;padding-block:7px}.excel-source .toolbar select{font-size:10px;padding:7px 8px}.excel-source #columns-toggle{font-size:11px;padding:7px 10px}.excel-source table{font-size:11px}.excel-source th{padding:8px 12px;font-size:9px;letter-spacing:.3px}.excel-source td{padding:7px 12px}.excel-source td.name-cell{min-width:210px;max-width:300px}.excel-source .cell-sub{font-size:9px;margin-top:2px}.excel-source .contact-column{min-width:215px}.excel-source .contact-cell,.excel-source .location-cell{line-height:1.35}.excel-source .contact-cell>div+div,.excel-source .location-cell>div+div{margin-top:1px}.excel-source .contact-label{font-size:9px}.excel-source .badge{padding:3px 6px}.excel-source .date-label{padding:3px 5px}.excel-source tbody tr:nth-child(even){background:#f5f6f7}.excel-source tbody tr:hover{background:#eaf5f3}.excel-source td{border-bottom-color:#e6ebee}.excel-source .table-footer{font-size:10px;padding:7px 14px}.excel-source .source-note{margin-top:7px}
/* Keep the complete default column selection within a desktop viewport. */
@media(min-width:1280px){#table-region table.default-columns-fit{table-layout:fixed;width:100%}#table-region table.default-columns-fit th,#table-region table.default-columns-fit td{width:auto;min-width:0;max-width:none;padding-inline:6px;overflow:hidden;text-overflow:ellipsis}#table-region table.default-columns-fit th{white-space:normal;overflow-wrap:anywhere}#table-region table.default-columns-fit .sort-header{max-width:100%;white-space:normal;overflow-wrap:normal}#table-region table.default-columns-fit td.name-cell{min-width:0}#table-region table.default-columns-fit .contact-cell,#table-region table.default-columns-fit .location-cell{overflow-wrap:anywhere}#table-region table.default-columns-fit .init-link{max-width:100%}#table-region table.default-columns-fit .mailbox-column .sort-header{max-width:100%}#table-region table.default-columns-fit .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}#table-region table.default-columns-fit .date-label{white-space:nowrap;font-size:10px;padding-inline:3px}}
@media(min-width:1280px){#table-region table.default-columns-fit .sort-header{overflow-wrap:anywhere;line-height:1.3}#table-region table.default-columns-fit .mailbox-id{font-size:11px;padding-inline:4px}}
.multi-filter-native{display:none!important}.multi-filter{position:relative;min-width:115px;max-width:180px;font-size:11px;color:#506871}.multi-filter summary{cursor:pointer;list-style:none;padding:8px 10px;border:1px solid #dce4e8;border-radius:7px;background:white;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.multi-filter summary::after{content:'⌄';margin-left:10px}.multi-filter summary::-webkit-details-marker{display:none}.multi-filter[open] summary{border-color:var(--teal)}.multi-filter-menu{position:absolute;z-index:5;right:0;top:calc(100% + 5px);min-width:220px;max-width:300px;max-height:280px;overflow:auto;background:white;border:1px solid var(--line);border-radius:8px;padding:7px;box-shadow:0 8px 24px #172e3620}.multi-filter-menu label{display:flex;align-items:center;gap:8px;padding:7px 8px;cursor:pointer;white-space:normal}.multi-filter-menu label:hover{background:var(--soft)}.multi-filter-menu input{accent-color:var(--teal)}.label-field{border:0;margin:0;padding:0;min-width:0}.label-field legend{font-size:11px;font-weight:600;color:#617780;margin-bottom:8px}.label-choices{display:flex;flex-wrap:wrap;gap:7px}.choice-chip{font-size:11px;padding:7px 10px;border:1px solid transparent;cursor:pointer;line-height:1.4}.choice-chip.selected{outline:2px solid var(--teal);outline-offset:2px}.choice-chip.selected::before{content:'✓ ';font-weight:700}.label-field small{display:block;margin-top:8px;font-size:10px;color:#ac802e}.excel-source .multi-filter summary,.confluence-source .multi-filter summary{font-size:10px;padding:7px 8px}
/* The standard Excel view fits the desktop; mailbox columns share the KH_ID width. */
@media(min-width:1280px){.excel-source:not(.excel-classic) #table-region table.default-columns-fit th.excel-mailbox-column,.excel-source:not(.excel-classic) #table-region table.default-columns-fit td.excel-mailbox-column{padding-inline:3px}.excel-source:not(.excel-classic) .excel-mailbox-column .mailbox-list{gap:3px}.excel-source:not(.excel-classic) .excel-mailbox-column .mailbox-id{max-width:100%;font-size:10px;padding:2px 3px;overflow:hidden;text-overflow:ellipsis}.excel-source:not(.excel-classic) #table-region .mailbox-summary{white-space:normal;overflow-wrap:anywhere;line-height:1.4}.excel-source:not(.excel-classic) #table-region .name-cell{white-space:normal;overflow-wrap:anywhere}}
.sidebar .nav-subitem{margin-top:-3px;margin-left:18px;padding:6px 8px;border-left:2px solid #dce4e8;border-radius:0 7px 7px 0;font-size:11px}.sidebar .nav-subitem .nav-icon{font-size:15px;width:20px}.sidebar .nav-subitem.active{border-left-color:var(--teal)}.sidebar .nav-subitem small{font-size:9px}@media(max-width:760px){.sidebar nav{flex-wrap:wrap}.sidebar .nav-subitem{margin:0;padding:9px 6px}}
#clinic-map-frame{display:block;width:100%;height:calc(100vh - 240px);min-height:640px;border:1px solid #dce4e8;border-radius:10px;background:#f6f8fa}
.excel-source #table-region .column-resize{position:absolute;right:0;top:0;bottom:0;width:8px;cursor:col-resize;touch-action:none;z-index:5;border-right:2px solid transparent}.excel-source #table-region .column-resize:hover{border-right-color:var(--teal);background:#007c7822}.resizing-column,.resizing-column *{cursor:col-resize!important;user-select:none!important}#table-region table.resized-columns{table-layout:fixed;min-width:0}#table-region table.resized-columns th,#table-region table.resized-columns td{min-width:0;max-width:none;width:auto;overflow:hidden;text-overflow:ellipsis}.excel-source #table-region th{position:sticky}.sidebar .nav-subitem{width:calc(100% - 18px)}

/* Compact branding and independently scrollable navigation on short screens. */
.sidebar .brand{gap:10px;font-size:24px;flex-shrink:0}.sidebar .brand-icon{width:38px;height:38px;border-radius:10px;font-size:28px}.sidebar .brand small{font-size:8px;letter-spacing:1.4px}.sidebar nav{min-height:0;overflow-y:auto;flex-shrink:0}.sidebar .profile{flex-shrink:0}
@media(min-width:761px){.sidebar{overflow-y:hidden}.sidebar nav{flex-shrink:1}.sidebar .sidebar-note{flex-shrink:0}}
/* Leave the map the full content viewport, without the duplicate page heading. */
body.map-source .page-heading{display:none}body.map-source .content{padding:0;max-width:none;margin:0}body.map-source #clinic-map-frame{height:calc(100dvh - 73px);min-height:0;border:0;border-radius:0}body.map-source{overflow:hidden}@media(max-width:760px){body.map-source #clinic-map-frame{height:calc(100dvh - 50px)}}
@media(max-width:760px){body.map-source .sidebar{position:fixed;top:50px;bottom:0;left:0;width:240px;z-index:1000;overflow-y:auto;box-shadow:5px 0 20px #172e3622}body.map-source .sidebar nav{display:flex;flex-direction:column}body.map-source .sidebar .nav-item{justify-content:flex-start}body.map-source main{width:100%;margin-left:0}}
.winline-notes{white-space:pre-wrap;overflow-wrap:anywhere;min-width:200px;max-width:420px;max-height:150px;overflow:auto}.winline-links{min-width:150px;white-space:normal}.winline-links small{display:block;font-size:10px;color:var(--muted)}
.winline-notes{min-width:0;max-width:none;word-break:break-word}.winline-links{min-width:0;overflow-wrap:anywhere}
.winline-contacts{white-space:pre-wrap;overflow-wrap:anywhere;min-width:160px;max-height:220px;overflow:auto;line-height:1.6}
.completion-checklist{min-width:0;margin:0;padding:12px;border:1px solid #b9d8d4;border-radius:8px;background:#f8fcfb}.completion-checklist legend{font-size:13px;font-weight:600;padding:0 5px}.checklist-progress{display:flex;align-items:center;gap:10px;margin:4px 0 12px}.checklist-progress progress{flex:1;height:17px;accent-color:var(--teal)}.checklist-progress strong{min-width:48px;font-size:13px}.checklist-progress span{font-size:10px;color:var(--muted)}.checklist-columns{display:grid;grid-template-columns:repeat(4,minmax(185px,1fr));gap:12px;overflow:auto;max-height:360px}.checklist-column{min-width:0;border-right:1px solid var(--line);padding-right:8px}.checklist-column:last-child{border:0}.checklist-column h4{font-size:11px;line-height:1.4;margin:0 0 9px}.field-grid .checklist-item{display:flex;flex-direction:row;align-items:flex-start;gap:6px;margin:0 0 10px;font-size:10px;line-height:1.45;font-weight:400;color:var(--ink)}.field-grid .checklist-item input[type=checkbox]{width:14px;min-width:14px;height:14px;padding:0;margin:1px 0 0;accent-color:var(--teal)}.completion-checklist>small,.clinic-documents>small{display:block;font-size:10px;color:var(--muted);margin-top:8px}.checklist-cell{display:flex;align-items:center;gap:8px}.checklist-cell progress{min-width:50px;max-width:120px;width:65%;accent-color:var(--teal)}.clinic-documents .document-status{font-size:10px;margin-top:7px}.document-links ul{margin:8px 0;padding-left:18px}.document-links li{font-size:11px;line-height:1.6;overflow-wrap:anywhere}.document-links summary{font-size:11px;color:var(--teal);cursor:pointer}.clinic-documents label{display:flex;flex-direction:column;font-size:11px;color:var(--muted);gap:5px}.clinic-documents input{border:1px solid var(--line);border-radius:6px;padding:8px}
.detail-mailbox-summary{font-size:11px;line-height:1.5;color:var(--muted);padding:7px 10px;background:var(--soft);border-radius:6px;overflow-wrap:anywhere}.detail-section{border:1px solid var(--line);border-radius:8px;margin:0;padding:12px;min-width:0}.detail-section>legend{font-size:13px;font-weight:600;padding:0 5px}.detail-section>summary{font-size:11px;color:var(--teal);cursor:pointer}.detail-section .field-grid{margin:0;gap:12px}.detail-section[open]>.field-grid{margin-top:12px}#detail-meta{font-size:10px;line-height:1.4;margin-bottom:12px}.badge.status-offer{background:#ffe1b5;color:#915000}.detail-dialog .detail-section .label-field.wide{padding:0}.detail-dialog .choice-chip{padding:4px 7px;font-size:10px}
.carrier-table{table-layout:fixed;width:100%}.carrier-table th:nth-child(1){width:18%}.carrier-table th:nth-child(2){width:8%}.carrier-table th:nth-child(3){width:25%}.carrier-table th:nth-child(4){width:12%}.carrier-table th:nth-child(5){width:6%}.carrier-table th:nth-child(6){width:17%;white-space:normal}.carrier-table th:nth-child(7){width:14%}.carrier-table .carrier-beds{text-align:right;font-variant-numeric:tabular-nums}.carrier-table .carrier-group td{background:#eaf5f3;padding:8px 12px}.carrier-toggle{border:0;background:transparent;color:var(--teal-dark);font-weight:600;text-align:left;white-space:normal;padding:4px}.carrier-toggle:focus-visible{outline:2px solid var(--teal);outline-offset:2px}.carrier-table td.carrier-indent{color:#80a6a1;text-align:right;padding-right:22px}.carrier-table td{white-space:normal;overflow-wrap:anywhere}.carrier-table td.name-cell{min-width:0}.carrier-table .carrier-clinic:hover td{background:#edf7f4}@media(max-width:760px){.carrier-table{min-width:850px}}
.sidebar .nav-group{width:100%;flex-shrink:0}.nav-parent{display:flex;align-items:center;gap:2px}.sidebar .nav-parent .nav-item{flex:1;min-width:0;width:auto}.nav-group-toggle{flex:0 0 24px;padding:9px 0;border:0;border-radius:5px;background:transparent;color:#59757c;font-size:16px}.nav-group-toggle:hover{background:var(--soft);color:var(--teal)}.nav-group-toggle:focus-visible{outline:2px solid var(--teal);outline-offset:1px}.sidebar .nav-children .nav-subitem{margin-top:0}.nav-parent:has(.active) .nav-group-toggle,.nav-group:has(.nav-children .active)>.nav-parent .nav-group-toggle{color:var(--teal);background:#eaf5f3}
.offer-details{border:1px solid var(--line);border-radius:8px;margin:12px 0 0;padding:14px;min-width:0}.offer-details>legend{padding:0 6px;font-size:14px;font-weight:600}.offer-details .field-grid{margin:0}
.workspace-toggle{display:block;max-width:100%;margin:0 0 5px;padding:4px 6px;border:1px solid #b9d8d4;border-radius:5px;background:#eaf5f3;color:#196b61;font:inherit;font-size:10px;text-align:left;white-space:normal;cursor:pointer}.workspace-toggle:hover{background:#d9eeea}.workspace-toggle:focus-visible,.workspace-source-edit:focus-visible{outline:2px solid var(--teal);outline-offset:2px}.excel-source .workspace-child td{background:#eef6fa;border-bottom-color:#d7e6ed}.excel-source .workspace-child .name-cell{border-left:3px solid #72a5b7}.workspace-warning{color:#9c6500!important;white-space:normal;overflow-wrap:anywhere;line-height:1.4}.workspace-meta{white-space:normal;line-height:1.5}.workspace-context .name-cell{font-style:italic}.workspace-source-edit{display:block;padding:2px 0;border:0;background:transparent;color:#196b61;font-size:9px;text-decoration:underline;cursor:pointer}

.winline-detail-links .button{margin:4px 8px 4px 0}.winline-detail-values{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,3fr);gap:8px 16px}.winline-detail-values dt{color:var(--muted)}.winline-detail-values dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}#winline-detail-content article+article{border-top:2px solid var(--muted);margin-top:24px;padding-top:12px}

.clinic-contact-details>summary{font-size:13px;font-weight:600}.clinic-contact-details>.detail-section,.clinic-contact-details>.winline-inline-contacts,.clinic-contact-details>details{margin-top:16px}.winline-inline-contacts h4{font-size:13px;margin:0 0 12px}.winline-inline-contacts h5{font-size:12px;margin:16px 0 8px;overflow-wrap:anywhere}.winline-contact-card{padding:12px;margin:8px 0;border:1px solid var(--line);border-radius:7px;background:var(--soft);font-size:12px;overflow-wrap:anywhere}.winline-contact-card p{font-size:11px;line-height:1.5;margin:5px 0}.winline-detail-links .button{white-space:normal;text-align:left}.contact-planning .field-grid{align-items:start}

/* Clinic detail layout: identity and map, contacts, sales, then contracts. */
#detail-fields{display:flex;flex-direction:column;gap:22px;margin-top:16px}
#detail-fields>*{min-width:0}
.clinic-detail-overview{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr);gap:22px;align-items:start}
.clinic-detail-identity{display:flex;flex-direction:column;gap:15px;min-width:0}
.clinic-identity-columns,.clinic-address-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.clinic-identity-columns>.wide,.clinic-address-columns>.wide,.clinic-contact-columns>.wide{grid-column:auto}
#detail-fields .detail-section{padding:14px;border-color:#dce6e9}
#detail-fields>.detail-section>legend{font-size:15px;color:var(--ink)}
#detail-fields .detail-section>.field-grid{margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#detail-fields .detail-section>.field-grid:empty{display:none}
#detail-fields details.detail-section[open]>.field-grid{margin-top:12px}
.clinic-identity-columns [name=KH_Name],.clinic-identity-columns [name=Klinik]{font-weight:600;font-size:16px}
.clinic-identity-columns label:has([name=KH_Name]),.clinic-identity-columns label:has([name=Klinik]),.clinic-identity-columns label:has([name="Kontoname WinLine"]){grid-column:1/-1}
#detail-fields .detail-mailbox-summary{padding:14px 16px;background:#edf6f5;border-left:3px solid var(--teal)}
.detail-mailbox-summary>strong{display:block;font-size:16px;font-weight:600;color:var(--ink)}
.detail-mailbox-summary p{margin-top:6px;font-size:11px}
.clinic-source-value{display:flex;flex-direction:column;gap:7px;font-size:11px;min-width:0;overflow-wrap:anywhere}
.clinic-source-value>span{color:#617780;font-weight:600}
.clinic-source-value>strong{font-size:13px;font-weight:400;color:var(--ink)}
.clinic-location{min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--soft);padding:14px}
.clinic-location h3{font-size:14px;margin:0 0 12px}
.clinic-location iframe{display:block;width:100%;height:285px;border:1px solid #dce6e9;border-radius:6px;background:#edf3f5}
.clinic-location p{font-size:11px;margin-top:10px}
.clinic-contact-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.clinic-contact-columns>*{min-width:0}
.clinic-contact-columns fieldset{margin:0 0 12px}
.clinic-winline-contacts,.clinic-winline-values{max-height:460px;overflow:auto;scrollbar-gutter:stable}
.clinic-winline-contacts{padding:8px 2px}
.clinic-winline-details h4{font-size:12px;margin:10px 0;overflow-wrap:anywhere}
.clinic-winline-details .winline-detail-values{grid-template-columns:minmax(80px,.8fr) minmax(0,1.5fr);font-size:11px}
.clinic-winline-details .winline-detail-values dd{white-space:pre-wrap}
.clinic-winline-details .winline-detail-links{margin-top:16px}
#detail-fields .clinic-sales-data>.contact-planning{margin-top:4px}
#detail-fields .contact-planning>.field-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#detail-fields .offer-details>.field-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
#detail-fields .clinic-documents{margin:0}
#detail-fields .clinic-additional-details>details{margin-top:14px}
@media(max-width:1100px){
  .clinic-detail-overview{grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr)}
  .clinic-identity-columns,.clinic-address-columns{gap:12px}
  .clinic-contact-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
  .clinic-contact-columns>.clinic-winline-details{grid-column:1/-1}
  #detail-fields .offer-details>.field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .clinic-detail-overview,.clinic-identity-columns,.clinic-address-columns,.clinic-contact-columns{grid-template-columns:minmax(0,1fr)}
  .clinic-location iframe{height:230px}
  .clinic-winline-contacts,.clinic-winline-values{max-height:none;overflow:visible}
  #detail-fields .detail-section>.field-grid,#detail-fields .contact-planning>.field-grid,#detail-fields .offer-details>.field-grid{grid-template-columns:minmax(0,1fr)}
  #detail-fields .detail-section{padding:11px}
  .clinic-contact-columns>.clinic-winline-details{grid-column:auto}
  .detail-mailbox-summary>strong{font-size:14px}
}
@media(min-width:761px){
  .clinic-detail-overview input{padding:8px 10px;font-size:12px}
  #detail-fields .clinic-address-columns .field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .clinic-identity-columns{align-items:start}
}

/* Align clinic title, account assignment and compact mailbox controls. */
#detail-form{position:relative}
#detail-fields{margin-top:0}
.clinic-title-column{min-width:0}
.clinic-title-column .dialog-heading{margin:0 0 8px;padding-right:0;min-width:0}
.clinic-title-column .dialog-heading>div{min-width:0}
.clinic-title-column #detail-title{font-size:20px;line-height:1.35;overflow-wrap:anywhere}
.clinic-title-column .dialog-heading>.close-dialog{position:absolute;right:0;top:0;z-index:2}
.clinic-title-column #detail-meta{margin:0 0 8px}
#detail-fields .clinic-name-editor{padding:0;border:0;margin-bottom:12px}
.clinic-name-editor>summary{font-size:10px}
.clinic-mailbox-heading{font-size:13px;font-weight:600;margin:14px 0 7px}
.clinic-mailbox-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}
#detail-fields .clinic-mailbox-row .detail-mailbox-summary{padding:10px 12px;grid-column:1;grid-row:1}
.clinic-mailbox-row .detail-mailbox-summary>strong{font-size:13px;line-height:1.5}
.clinic-mailbox-row .detail-mailbox-summary p{font-size:10px;margin-top:4px}
#detail-fields .clinic-mailbox-editor{grid-column:2;grid-row:1;border:0;padding:10px 0}
.clinic-mailbox-editor>summary{font-size:10px;white-space:nowrap}
.clinic-mailbox-row:has(.clinic-mailbox-editor[open]){grid-template-columns:minmax(0,1fr)}
#detail-fields .clinic-mailbox-editor[open]{grid-column:1;grid-row:auto;width:100%}
.clinic-mailbox-row>.completion-checklist{grid-column:1/-1;min-width:0}
.clinic-identity-columns{padding-right:44px}
@media(min-width:1101px){
  .clinic-detail-overview{position:relative}
  .clinic-detail-overview>.clinic-location{margin-top:72px}
}
@media(max-width:1100px){
  .clinic-identity-columns{grid-template-columns:minmax(0,1fr);padding-right:38px}
  .clinic-detail-overview>.clinic-location{margin-top:55px}
}
@media(max-width:760px){
  .clinic-detail-overview>.clinic-location{margin-top:0}
  .clinic-title-column #detail-title{font-size:18px}
  .clinic-mailbox-row{grid-template-columns:minmax(0,1fr)}
  #detail-fields .clinic-mailbox-editor{grid-column:1;grid-row:auto;padding:4px 0}
  .clinic-identity-columns{padding-right:0}
  .clinic-title-column .dialog-heading{padding-right:38px}
}

/* Shared columns keep all overview cards on the same vertical guides. */
.clinic-checklist-slot:not(:has(.completion-checklist:not([hidden]))){display:none}
@media(min-width:761px){
  .clinic-detail-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
  .clinic-detail-identity,.clinic-identity-columns,.clinic-address-columns{display:contents}
  .clinic-detail-overview .clinic-title-column{grid-column:1;grid-row:1}
  .clinic-detail-overview .clinic-account-assignment{grid-column:2;grid-row:1;align-self:start}
  .clinic-detail-overview .clinic-address-excel{grid-column:1;grid-row:2}
  .clinic-detail-overview .clinic-address-confluence{grid-column:2;grid-row:2}
  .clinic-detail-overview>.clinic-location{grid-column:3;grid-row:1/3;margin-top:0;display:flex;flex-direction:column}
  .clinic-detail-overview>.clinic-location iframe{flex:1;height:auto;min-height:230px}
  .clinic-title-column .dialog-heading>.close-dialog{right:-20px;top:-20px;width:30px;height:30px;font-size:20px;padding:2px}
}
@media(min-width:761px) and (max-width:1100px){
  .clinic-detail-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .clinic-detail-overview>.clinic-location{grid-column:1/-1;grid-row:3}
  .clinic-detail-overview>.clinic-location iframe{height:230px;flex:auto}
}
/* Every detail opening starts on the contacts tab. */
.clinic-detail-tablist{display:flex;gap:0;border-bottom:1px solid #bfd3d3;overflow-x:auto}
.clinic-detail-tablist .button{border-radius:8px 8px 0 0;border:1px solid var(--line);border-bottom:0;padding:13px 20px;color:#617780;background:var(--soft);font-size:13px}
.clinic-detail-tablist .button[aria-selected=true]{background:#eaf5f3;color:var(--teal-dark);border-color:#bfd3d3;box-shadow:inset 0 3px var(--teal)}
.clinic-detail-tablist .button:focus-visible{outline:2px solid var(--teal);outline-offset:-4px}
.clinic-tab-panels{border:1px solid #bfd3d3;border-top:0;border-radius:0 0 9px 9px;padding:18px;min-width:0}
#detail-fields .clinic-tab-panels>[role=tabpanel]{border:0;padding:0;margin:0;min-width:0}
.clinic-tab-panels>[role=tabpanel]>legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.clinic-tab-panels>[role=tabpanel]:focus-visible{outline:2px solid var(--teal);outline-offset:5px}
/* Full-width checklist with one workflow group per row. */
.clinic-checklist-slot>.completion-checklist{padding:0;overflow:hidden;background:white}
.checklist-summary{display:flex;align-items:center;gap:20px;cursor:pointer;padding:14px 16px;background:#edf6f5;border-left:3px solid var(--teal);list-style:none}
.checklist-summary::-webkit-details-marker{display:none}
.checklist-summary::before{content:'▸';color:var(--teal)}
.completion-checklist[open]>.checklist-summary::before{content:'▾'}
.checklist-summary>strong{font-size:13px}
.checklist-summary .checklist-progress{flex:1;max-width:480px;margin:0 0 0 auto}
.completion-checklist>.checklist-columns{display:flex;flex-direction:column;gap:0;max-height:none;overflow:visible;padding:0 16px}
.completion-checklist .checklist-column{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,4fr);gap:20px;border-right:0;border-bottom:1px solid var(--line);padding:16px 0}
.completion-checklist .checklist-column:last-child{border:0}
.completion-checklist .checklist-column h4{margin:0;font-size:12px}
.completion-checklist .checklist-group-items{display:flex;flex-direction:column;gap:9px;min-width:0}
.completion-checklist .checklist-item{margin:0;font-size:12px;line-height:1.5}
.completion-checklist>small{padding:12px 16px;margin:0}
@media(max-width:760px){
  .clinic-detail-tablist .button{padding:11px 12px;font-size:12px}
  .clinic-tab-panels{padding:12px}
  .checklist-summary{flex-wrap:wrap;gap:10px}
  .checklist-summary .checklist-progress{flex-basis:100%;margin:0;max-width:none;min-width:0}
  .completion-checklist .checklist-column{grid-template-columns:minmax(0,1fr);gap:12px}
}

/* Mailbox display and editing share the full address-column width and background. */
.clinic-mailbox-row,.clinic-mailbox-row:has(.clinic-mailbox-editor[open]){display:block;width:100%}
#detail-fields .clinic-mailbox-row .detail-mailbox-summary{width:100%;min-width:0}
#detail-fields .detail-mailbox-summary .clinic-mailbox-editor{padding:0;margin-top:10px;border:0;background:inherit;width:100%}
#detail-fields .clinic-mailbox-editor[open]>.field-grid{grid-template-columns:minmax(72px,.65fr) repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
#detail-fields .clinic-mailbox-editor label{min-width:0;font-size:10px}
#detail-fields .clinic-mailbox-editor input{min-width:0;padding:7px 6px;font-size:12px}
#detail-fields .clinic-mailbox-editor input[name="Postfach-ID"],#detail-fields .clinic-mailbox-editor input[name="Postfach_id"]{width:12ch;max-width:100%}
.mailbox-validation{font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;margin:9px 0 0}
.mailbox-validation:empty{display:none}
.mailbox-validation.error{color:var(--red)}
@media(max-width:460px){#detail-fields .clinic-mailbox-editor[open]>.field-grid{grid-template-columns:minmax(0,1fr)}}
/* Customer contact requests and review */
.clinic-quick-filters{padding:0 22px 12px}.clinic-quick-filters label{display:flex;align-items:center;gap:9px;font-size:13px}.clinic-quick-filters input{width:16px;height:16px;accent-color:var(--blue,#284b87)}
.contact-requests{border:1px solid #cfdaeb;background:#f6f9fe;border-radius:10px;padding:18px;margin-bottom:20px;min-width:0}.contact-requests p{line-height:1.55}.contact-request-composer{padding:14px 0}.contact-request-composer summary,.contact-request-card summary{cursor:pointer;font-weight:650}.contact-request-composer label{display:flex;flex-direction:column;gap:6px;margin-top:16px}.contact-request-to{width:min(100%,520px);padding:10px;border:1px solid #b8c7da;border-radius:6px;background:#fff}.contact-mail-preview{white-space:pre-line;background:#fff;padding:18px;border-radius:8px}.contact-request-card{padding:16px;background:white;border:1px solid #dbe3ed;border-radius:8px;margin-top:14px}.contact-request-card>.button{margin:12px 10px 0 0}.contact-review-scroll{overflow:auto;max-width:100%}.contact-review{width:100%;table-layout:fixed;min-width:600px}.contact-review th,.contact-review td{white-space:normal;overflow-wrap:anywhere;padding:10px;vertical-align:top;font-size:12px}.contact-review th:first-child,.contact-review td:first-child{width:90px}.contact-review input[type=checkbox]{width:17px;height:17px;accent-color:#284b87}.clinic-additional-details>fieldset{margin:14px 0;padding:16px;border:1px solid #dbe3ed;border-radius:8px}.clinic-additional-details>fieldset>legend{font-weight:650;padding:0 6px}.winline-contact-card select{max-width:100%;margin:8px 8px 0 0}.winline-contact-card .button{margin-top:8px}
