/* Production workspace: dense tables + an in-place customer processing panel. */
:root{--brand:#107eac;--ink:#253046;--muted:#7b8799;--line:#e3e8ef;--soft:#f7f9fc}
body{background:#f4f6f9;color:var(--ink);font:13px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif}
button,input,select,textarea{font:inherit}button{padding:6px 11px;border-radius:5px;border-color:#d8e0eb;color:#475873;transition:background .12s}button:hover{background:#edf2fb}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.primary{background:var(--brand);border-color:var(--brand);color:#fff}.primary:hover{background:#0b6c94}.shell{grid-template-columns:184px minmax(0,1fr)}
.sidebar{background:#f8f9fc;border-right:1px solid var(--line);color:var(--ink);padding:23px 12px;overflow-y:auto}.sidebar .brand{color:#25334d;font-size:18px;letter-spacing:.5px;padding:0 10px}.sidebar .brand small{font-size:9px;color:#8e98aa;letter-spacing:.7px}.sidebar nav{margin-top:24px;gap:3px}.sidebar nav button{color:#69758a;font-size:13px;padding:9px 12px;border-radius:5px}.sidebar nav button:hover{background:#edf0f7}.sidebar nav button.active{background:#e6f3f9;color:var(--brand);font-weight:600}.sidebar .foot{color:#99a2b3;font-size:10px;padding:16px 10px 0}
.report-menu summary{padding:10px 12px;font-size:13px;color:#69758a;border-radius:5px}.report-menu[open] summary,.report-menu summary:hover{background:#edf0f7;color:#344765}.report-submenu{margin:3px 0 5px 15px;padding-left:6px;border-color:#dce2ed}.sidebar nav .report-submenu button{font-size:12px;padding:8px}
.main,.main.visits-page{padding:18px 20px;min-width:0;background:#f4f6f9}.main>header.top{margin:0 0 15px;padding:0 0 13px;border-bottom:1px solid var(--line);min-height:49px}.main>header.top h1{font-size:20px;letter-spacing:.1px}.main>header.top .sub{font-size:11px}.main>header.top .actions button,.main>header.top select{font-size:12px;padding:6px 10px;height:32px}h2{font-size:14px;margin:0 0 10px}h3{font-size:13px}.muted,.sub{font-size:12px;color:var(--muted)}
.main .panel{padding:13px 15px;border:1px solid var(--line);border-radius:6px;background:white;margin:0 0 12px}.main .panel .panel{border:0;padding:0;border-radius:0}.main .toolbar,.main.visits-page>.toolbar{padding:9px 11px;border:1px solid var(--line);border-radius:6px;background:white;margin:0 0 11px;gap:7px}.toolbar input,.toolbar select,.toolbar button{font-size:12px;height:32px;padding:5px 9px}.toolbar input[type=search],.toolbar #search,.main.visits-page #search{min-width:160px;max-width:330px;flex:1}.toolbar #new,.toolbar #walkin,.main.visits-page #new,.main.visits-page #walkin{margin-left:auto}
.main .metrics,.main.visits-page .metrics{display:flex;flex-wrap:wrap;gap:0;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;margin:0 0 12px}.main .metric,.main.visits-page .metric{border:0;border-right:1px solid var(--line);border-radius:0;background:white;padding:10px 14px;flex:1;min-width:110px}.main .metric:last-child{border-right:0}.main .metric:first-child{background:#f5f8ff}.main .metric strong,.main.visits-page .metric strong{font-size:23px;line-height:1.25;color:#2c3f66;margin:3px 0;font-variant-numeric:tabular-nums}.main .metric small,.main.visits-page .metric small{font-size:10px;color:#919bae;display:block;line-height:1.3}.main .metric .muted{font-size:11px}
.main .hint{font-size:11px;line-height:1.5;padding:8px 11px;margin:0 0 11px;background:#edf2f8;border-radius:5px}.main .split{gap:12px;align-items:start}.main .table-wrap{overflow:auto}.main th,.main.visits-page th{font-size:11px;font-weight:500;color:#778498;background:#f8faff;padding:8px 10px;border-bottom:1px solid var(--line)}.main td,.main.visits-page td{font-size:12px;line-height:1.6;padding:9px 10px;border-bottom:1px solid #edf0f5}.main td .muted,.main.visits-page td .muted{font-size:11px}.main tbody tr:hover{background:#f7faff}.main td button,.main.visits-page td button{font-size:11px;padding:3px 8px;border-radius:4px}.main tr:last-child td{border-bottom:0}.main .customer-list{padding:0}.list-heading{padding:11px 13px}.list-heading h2{font-size:13px}.list-heading span{font-size:11px}.main .customer-list>h2{padding:12px 13px 0}.main .customer-list button[data-visit]{color:var(--brand);background:#edf7fb;border-color:#d7e9f1}.main .empty{padding:22px 12px;font-size:12px}.main .badge{font-size:10px;padding:2px 7px}.main .repeat-notice{font-size:10px;font-weight:500;padding:2px 5px;margin:2px 0}.main .ticket{padding:11px;border-radius:5px;margin:0 0 9px}.main .ticket .top{margin-bottom:7px}.main .ticket p{margin:6px 0}.main .timeline{margin:10px 0;padding-left:10px}.main .board-row{font-size:12px;margin:14px 0;grid-template-columns:90px minmax(40px,1fr) 92px}.main .board-track{height:12px;background:#edf1f8}.main .board-bar{background:#5677dd}
.workspace-split{display:grid;grid-template-columns:minmax(350px,1fr) minmax(400px,43%);gap:12px;align-items:start}.business-master{min-width:0;max-height:calc(100vh - 110px);overflow:auto;scrollbar-width:thin;padding-right:2px}.business-detail{min-width:0;max-height:calc(100vh - 110px);overflow:auto;scrollbar-width:thin;background:#fff;border:1px solid #dae2ee;border-radius:7px;position:sticky;top:14px;padding:0!important}.business-master .metric{padding:8px 10px;min-width:80px}.business-master .metric strong{font-size:19px}.business-master .metric small{display:none}.business-master .list-heading span{display:none}.business-master .customer-list:not(.service-list):not(.reception-list) :is(th,td):nth-child(3),.business-master .customer-list:not(.service-list):not(.reception-list) :is(th,td):nth-child(5),.business-master .customer-list:not(.service-list):not(.reception-list) :is(th,td):nth-child(6),.business-master .customer-list:not(.service-list):not(.reception-list) :is(th,td):nth-child(7){display:none}.business-master .service-list :is(th,td):nth-child(4),.business-master .service-list :is(th,td):nth-child(5){display:none}.business-master .customer-list td{white-space:normal;min-width:90px}.business-master .customer-list td:last-child{min-width:80px}.business-master .customer-list td button{margin:2px}.business-master .customer-list td:first-child{min-width:120px}.selected-customer,.main tbody tr.selected-customer:hover{background:#edf3ff!important}.selected-customer td:first-child{box-shadow:inset 3px 0 #5579e9}.business-master .toolbar #search{max-width:none}
.pane-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:15px 16px 9px;position:sticky;top:0;background:#fff;z-index:5;border-bottom:1px solid #eef1f6}.pane-heading h1{font-size:20px!important;margin:0}.pane-heading #back{padding:0;width:27px;height:27px;line-height:24px;font-size:22px;border:0;background:#f3f5f8;margin:0}.pane-actions{display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px}.pane-actions button{font-size:11px;padding:5px 8px;min-height:29px}.pane-tabs{display:flex;gap:0;padding:0 10px;border-bottom:1px solid var(--line);background:#fcfdff}.pane-tabs button{border:0;background:none;border-radius:0;font-size:11px;flex:1;padding:10px 4px;color:#697991}.pane-tabs button:hover{color:var(--brand);box-shadow:inset 0 -2px var(--brand)}.pane-section{padding:13px 15px;border-bottom:1px solid #e8edf4}.pane-section h2{font-size:13px;margin-bottom:9px}.pane-section h2 small{font-weight:400;color:#9ba6b6;font-size:11px;margin-left:4px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.section-heading h2{margin:0}.section-heading button,.section-heading select{font-size:11px;padding:4px 7px;height:28px}.customer-detail .detail-grid{grid-template-columns:1fr 1fr;gap:0 13px}.customer-detail .detail-grid>div{grid-template-columns:63px minmax(0,1fr);gap:7px;padding:6px 0;border:0}.customer-detail .detail-grid label{font-size:11px}.customer-detail .detail-grid p{font-size:12px;margin:0;overflow-wrap:anywhere}.customer-detail .detail-grid>div:nth-last-child(-n+3){grid-column:1/-1}.customer-detail .timeline{margin:10px 0;border-color:#dfe7f6}.customer-detail .timeline small{font-size:10px;color:#8a96a8}.customer-detail .timeline p{font-size:12px;white-space:pre-wrap;margin:4px 0;overflow-wrap:anywhere}.attachment-link{max-width:100%;overflow-wrap:anywhere;white-space:normal;font-size:11px;padding:6px 8px;text-align:left}.attachment-link span{font-size:10px;color:#8d99aa}.history-row{display:flex;gap:8px;align-items:center;margin:7px 0;font-size:12px}.history-row button{font-size:11px}.customer-detail .customer-flow{display:flex;padding:13px 14px 8px;gap:6px;overflow:auto;border-bottom:1px solid #edf1f6}.customer-detail .flow-step{min-width:75px;flex:1;display:flex;flex-direction:column;border:0;background:transparent;padding:0;gap:5px;text-align:left;position:relative}.customer-detail .flow-step:hover{background:#f8faff}.customer-detail .flow-step::after{display:none}.customer-detail .flow-step .flow-node{width:25px;height:25px;line-height:23px;font-size:11px;border-radius:50%;text-align:center;position:relative;z-index:1;border:1px solid #c7d2e4;flex-shrink:0}.customer-detail .flow-step .flow-copy{padding:0;background:transparent}.customer-detail .flow-copy b{font-size:11px}.customer-detail .flow-copy small{font-size:10px;margin-top:3px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.customer-detail .flow-step.done .flow-node{color:#376ac9;border-color:#376ac9}.customer-detail .flow-step.current .flow-node{background:var(--brand);color:white;border-color:var(--brand)}.customer-detail .flow-step.exception .flow-node{color:#a77224;background:#fff4e2;border-color:#eac483}
.inline-editor{padding:15px;background:#f7faff;border-bottom:1px solid #d4dff7;scroll-margin-top:80px}.inline-editor h2{font-size:14px;color:var(--brand)}.inline-editor .muted{font-size:11px;margin:6px 0 12px}.inline-editor .form-grid{gap:10px}.inline-editor input,.inline-editor select,.inline-editor textarea{font-size:12px;padding:7px 9px;width:100%}.inline-editor .actions input[type=checkbox]{width:auto}.inline-editor .field label{font-size:11px}.inline-editor .form-actions{margin-top:13px}.inline-editor textarea{min-height:75px}.inline-editor[hidden]{display:none}.business-detail [id^=pane-]{scroll-margin-top:75px}
dialog{border-radius:9px;padding:22px;width:min(610px,94vw)}dialog h2{font-size:17px}.form-grid{gap:12px}dialog .field label{font-size:12px}dialog input,dialog select,dialog textarea{font-size:13px;padding:8px 10px}.form-actions{margin-top:18px}.login-aside{background:#243754}.login-aside h1{font-size:36px}
@media(min-width:1800px){.workspace-split{grid-template-columns:minmax(560px,1fr) 580px}}
@media(max-width:1180px){.shell{grid-template-columns:156px minmax(0,1fr)}.main,.main.visits-page{padding:14px}.workspace-split{grid-template-columns:minmax(300px,1fr) minmax(380px,47%)}.business-master .split{grid-template-columns:1fr}.business-master .metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.business-master .metric{border-bottom:1px solid var(--line)}}
@media(max-width:900px){.workspace-split{display:block}.workspace-split .business-master{display:none}.business-detail{max-height:none;position:static}.main .split{grid-template-columns:1fr}.customer-detail .detail-grid{grid-template-columns:1fr 1fr}.main .metric{min-width:110px}.main .metric strong{font-size:20px}}
@media(max-width:640px){.shell{display:block}.sidebar{height:auto;position:static;padding:12px}.sidebar .brand small,.sidebar .foot{display:none}.sidebar nav{margin-top:12px;display:flex;overflow:auto;gap:4px}.sidebar nav button,.report-menu summary{white-space:nowrap;padding:7px 9px}.main,.main.visits-page{padding:12px}.main>header.top{gap:8px;flex-wrap:wrap}.main>header.top h1{font-size:18px}.main .metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.main .metric{border-bottom:1px solid var(--line)}.main .toolbar{padding:8px}.main .toolbar input{max-width:100%}.customer-detail .detail-grid{grid-template-columns:1fr}.pane-actions button,.pane-tabs button{min-height:36px}.section-heading{flex-wrap:wrap}.inline-editor .form-grid{grid-template-columns:1fr}.business-detail .files{display:flex}.main th,.main td{padding:8px}}
.chat-layout{display:grid;grid-template-columns:260px minmax(0,1fr);height:calc(100vh - 200px);min-height:360px;border:1px solid #dfe5e9;background:white;border-radius:10px;overflow:hidden}.chat-layout aside{overflow:auto;border-right:1px solid #e6ebee}.conversation{display:block;position:relative;width:100%;border:0;border-radius:0;padding:16px;text-align:left;border-bottom:1px solid #edf0f2;color:#253249}.conversation.selected{background:#e7f3f8}.conversation small{display:block;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#87949b}.chat-count{float:right;background:#ed424b;color:white;border-radius:12px;padding:0 6px;font-size:12px}.chat-window{display:flex;min-height:0;min-width:0;flex-direction:column;background:#f1f3f5}.chat-window header{padding:15px 20px;background:#fff;border-bottom:1px solid #e4e8ec;font-weight:600}#chat-stream{flex:1;overflow:auto;padding:12px 22px}.chat-time{text-align:center;color:#99a1a7;font-size:11px;margin:12px 0}.chat-line{display:flex;gap:10px;align-items:flex-start;margin:0 0 15px}.chat-line.sent{flex-direction:row-reverse}.chat-line>div{max-width:75%;min-width:0}.chat-avatar{background:#ddecf3;color:#187ca1;flex-shrink:0;width:36px;height:36px;line-height:36px;border-radius:8px;text-align:center}.chat-bubble{background:white;border-radius:3px 12px 12px 12px;padding:10px 14px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#253249}.sent .chat-bubble{background:#cceef8;border-radius:12px 3px 12px 12px}#chat-form{display:flex;gap:12px;padding:12px;background:white;border-top:1px solid #e4e8ec;align-items:flex-end}#chat-form[hidden]{display:none}#chat-input{flex:1;min-width:0;height:65px;resize:vertical;margin:0}.contact-picker{max-height:350px;overflow:auto}.contact-picker label,.contact-picker button{display:block;width:100%;text-align:left;margin:4px 0;padding:10px}.contact-picker span{float:right}@media(max-width:700px){.chat-layout{grid-template-columns:120px minmax(0,1fr)}.conversation{padding:10px;font-size:12px}#chat-stream{padding:8px}.chat-line>div{max-width:80%}}
.trend-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.trend-svg{display:block;width:100%;max-height:380px}.rank-item{margin:18px 0}.rank-caption{display:flex;justify-content:space-between;gap:14px;margin-bottom:7px}.data-details>summary{cursor:pointer;font-weight:600;padding:4px}.data-details[open]>summary{margin-bottom:16px}.data-details .table-wrap{margin-top:12px}.split{min-width:0}.split>.panel{min-width:0}
.viz-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.viz-grid .panel{margin:0;min-width:0;padding:18px}.viz-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.viz-heading h2{font-size:16px;margin:0}.viz-heading select{max-width:50%;padding:6px 9px;min-height:32px}.viz-ring-body{display:flex;align-items:center;gap:20px;min-height:180px}.viz-ring{width:160px;height:160px;border-radius:50%;flex-shrink:0;display:grid;place-items:center}.viz-ring>div{width:114px;height:114px;border-radius:50%;background:white;display:grid;place-items:center;padding:8px;box-sizing:border-box}.viz-ring strong{font-size:14px;overflow-wrap:anywhere;text-align:center}.viz-legend{flex:1;min-width:0}.viz-legend>div{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:6px;margin:9px 0;font-size:12px}.viz-legend i{width:8px;height:8px;border-radius:50%}.viz-legend small{grid-column:3;color:#788698}.viz-legend span{overflow-wrap:anywhere}.viz-row{display:grid;grid-template-columns:minmax(72px,1fr) minmax(50px,2fr) minmax(65px,auto);gap:10px;align-items:center;font-size:12px;margin:12px 0}.viz-row>span{overflow-wrap:anywhere}.viz-row>b{text-align:right;font-variant-numeric:tabular-nums}.viz-track{position:relative;height:13px;background:#f1f5f8;border-radius:3px}.viz-bar{position:absolute;height:100%;border-radius:3px}.viz-zero{position:absolute;height:21px;top:-4px;width:1px;background:#b7c3d0;z-index:1}.data-visual [data-viz-expand]{display:block;margin:14px auto 0;padding:4px 14px;font-size:12px}@media(max-width:1000px){.viz-grid{grid-template-columns:1fr}}@media(max-width:480px){.viz-ring{width:120px;height:120px}.viz-ring>div{width:86px;height:86px}.viz-ring-body{gap:12px}.viz-grid .panel{padding:12px}}
.customer-category-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;margin:16px 0}.customer-category-grid button{min-width:0;display:flex;flex-direction:column;align-items:center;padding:12px 4px}.customer-category-grid b{font-size:22px}.archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.archive-card{border:1px solid #e0e7ed;border-radius:10px;padding:16px}.archive-card p{margin:8px 0}.branch-customer{cursor:pointer;border-left:3px solid #9ca9b5;padding:16px}.branch-customer .actions{margin-top:10px}.branch-customer.stage-medical{border-left-color:#3887ed}.branch-customer.stage-card{border-left-color:#9b66df}.branch-customer.stage-beauty{border-left-color:#2ca486}.branch-inline-form{margin-top:14px;border-top:1px solid #edf0f4;padding-top:14px;cursor:default}.branch-inline-form label{display:block}.branch-inline-form input[type=checkbox]{width:auto}@media(max-width:900px){.customer-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.archive-grid{grid-template-columns:1fr}}

.login{position:relative;padding-bottom:48px;box-sizing:border-box}.site-filing{position:absolute;bottom:16px;left:0;width:100%;text-align:center;font-size:12px}.site-filing a{color:#7b8798;text-decoration:none}

.branch-inline-form [hidden],.inline-editor [hidden]{display:none!important}

/* Desktop customer journey */
.branch-workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:8px 0 20px}.branch-workspace-heading h2{font-size:22px;margin:0 0 4px}.branch-workspace-heading span{color:#8090a6}.branch-workspace-heading .toolbar{margin:0;padding:10px;box-shadow:none}.branch-customer-list{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.main .branch-customer{margin:0;padding:20px 22px;border-radius:12px;box-shadow:0 3px 12px #263a5d04}.branch-card-heading,.branch-card-footer{display:flex;justify-content:space-between;align-items:center;gap:18px}.branch-person{display:flex;align-items:center;gap:12px}.branch-person b{font-size:18px;margin-right:8px}.branch-person small{display:block;color:#8b97a8;font-size:12px;margin-top:3px}.customer-avatar{width:42px;height:42px;border-radius:13px;background:#eaf0ff;color:#4869c8;display:grid;place-items:center;font-size:18px;font-weight:600}.stage-pill{border-radius:6px;padding:4px 10px;background:#edf2f9;color:#697e9a;font-size:12px}.stage-beauty .stage-pill{background:#e5f6ef;color:#218265}.stage-medical .stage-pill{background:#eaf2ff;color:#376fc4}.stage-card .stage-pill{background:#f1ebfc;color:#8054bb}.branch-customer.stage-lost{border-left-color:#d6a056}.stage-lost .stage-pill{background:#fff3e5;color:#a27537}.journey-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:19px 0 17px;margin:16px 0;border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6;gap:14px}.journey-step{display:flex;gap:9px;min-width:0;color:#9ba8b9}.journey-step>span{width:25px;height:25px;flex-shrink:0;border-radius:50%;background:#f0f3f7;display:grid;place-items:center;font-size:11px}.journey-step>div{min-width:0}.journey-step b{font-size:13px;font-weight:600}.journey-step small{display:block;font-size:11px;line-height:1.7;margin-top:4px;overflow-wrap:anywhere}.journey-step.done{color:#3c7766}.journey-step.done>span{background:#e5f4ee;color:#278267}.journey-step.current{color:#3865c4}.journey-step.current>span{background:#eaf0ff;color:#3865c4}.branch-card-footer small{color:#8b97a8}.branch-card-footer .actions{margin:0}.branch-card-footer button{min-height:34px}.journey-form{background:#f8faff;border:1px solid #e2e9f4;border-radius:10px;padding:18px}.form-section-title{font-weight:600;color:#415473;margin-bottom:16px}.form-section-title span{font-size:11px;margin-right:8px;color:#7186ad}.journey-form .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.journey-form input,.journey-form select{min-height:38px;margin-top:6px}.journey-form input[type=checkbox]{min-height:0}.journey-form .actions{justify-content:flex-start}.journey-form label{font-size:12px}.hospital-context{display:flex;flex-direction:column;gap:4px;background:#f2f6fc;border-radius:8px;padding:14px;margin-bottom:18px}.hospital-context span{font-size:12px;color:#7c8aa1}#med-form label{display:block;margin:12px 0}#med-form input,#med-form select,#med-form textarea{display:block;width:100%;margin-top:6px;box-sizing:border-box}#med-form [hidden]{display:none!important}.business-master .journey-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.business-master .branch-card-footer{align-items:flex-start;flex-direction:column}.business-master .branch-customer{padding:16px}.business-master .journey-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:1800px){.branch-customer-list{grid-template-columns:repeat(2,minmax(0,1fr))}.business-master .branch-customer-list{grid-template-columns:1fr}}
@media(max-width:1000px){.journey-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-strip{gap:8px}.branch-workspace-heading{align-items:flex-start;flex-direction:column}.branch-card-footer{flex-wrap:wrap}}
@media(max-width:600px){.journey-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-form .form-grid{grid-template-columns:1fr}.main .branch-customer{padding:16px}.branch-card-footer .actions{flex-wrap:wrap}}

.customer-detail .journey-strip{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;margin:0}.business-master .branch-workspace-heading{flex-direction:column;align-items:stretch}

.main .medical-order-panel{padding:24px;border-radius:12px}.hospital-appointment{background:#f7faff;border:1px solid #e2eaf5;border-radius:9px;padding:18px;margin-top:16px}.hospital-appointment .actions{margin-top:14px}.hospital-appointment p:empty{display:none}.medical-order-panel h2{font-size:18px}

#hospital-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.follow-card{border-left:5px solid #268cce;margin:0}.follow-orange{border-left-color:#df9a32}.follow-green{border-left-color:#29a17d}.follow-card h2{margin:0}.follow-state{padding:5px 12px;border-radius:6px;background:#e8f3ff;color:#247ebb;font-weight:600}.follow-orange .follow-state{background:#fff3dc;color:#a66a0b}.follow-green .follow-state{background:#e2f6ed;color:#178568}.follow-money{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:18px;background:#f3f7fb;border-radius:10px}.follow-money span{display:block;color:#6a8192;font-size:14px}.follow-money strong{display:block;font-size:28px;margin-top:5px}.hospital-money{color:#178568}.follow-appointment{background:#f0f7fc;border-left:4px solid #268cce;border-radius:8px;padding:16px;margin:14px 0}.follow-date{font-size:24px;font-weight:700;color:#146a91;margin-bottom:10px}.follow-date strong{margin-left:12px}.follow-wait{color:#b17a2a}.follow-sale{border-top:1px solid #dbe8f0;margin-top:16px;padding-top:14px}.follow-sale-fields{display:grid;grid-template-columns:2fr 1fr;gap:12px}.follow-sale input{width:100%;box-sizing:border-box}.follow-card .actions{margin-top:12px}@media(max-width:1050px){#hospital-orders{grid-template-columns:1fr}}

/* One visual language for every identity; business actions remain permission-scoped. */
input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #e6f3f9}
.main .branch-customer.stage-absent,.archive-card.stage-absent{border-left-color:#9ca9b5}
.stage-absent .stage-pill,.stage-pending .stage-pill{background:#edf1f5;color:#687c8d}
.archive-card{border-left-width:3px;border-left-color:#9ca9b5}
.archive-card.stage-beauty{border-left-color:#2ca486}.archive-card.stage-medical{border-left-color:#3887ed}.archive-card.stage-card{border-left-color:#9b66df}.archive-card.stage-lost{border-left-color:#d6a056}
.service-customer{cursor:default}.customer-note{margin:5px 0 0;color:var(--muted);font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.branch-person{min-width:0}.branch-person>div{min-width:0}.branch-person b,.branch-person small{overflow-wrap:anywhere}.branch-card-heading .stage-pill{flex-shrink:0}.branch-card-footer>div{min-width:0}.branch-card-footer>.actions{flex-shrink:0;justify-content:flex-end}
.main .data-details>summary{padding:0;font-size:14px;color:var(--ink)}.main .data-details[open]>summary{margin-bottom:12px}
@media(max-width:700px){.branch-card-footer>.actions{width:100%;justify-content:flex-end}}

.status-summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.status-summary>div{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:130px;padding:10px 14px;border:1px solid var(--line);border-radius:6px;background:#fff}.status-summary span{font-size:12px;color:var(--muted)}.status-summary strong{font-size:19px;color:var(--ink);font-variant-numeric:tabular-nums}.status-summary>div:first-child{background:#eaf5fa;border-color:#d3e9f3}.status-summary>div:first-child strong{color:var(--brand)}

/* Public business dashboards: show the three sales stages and every key figure directly. */
.report-toolbar{align-items:center;flex-wrap:wrap}.report-period{display:flex;align-items:center;gap:8px}.report-period label{font-size:12px;color:var(--muted);white-space:nowrap}.report-shortcuts{display:flex;gap:6px;margin-left:auto}.report-period input{width:140px}.business-revenue{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}.revenue-card{padding:20px 22px;background:#fff;border:1px solid var(--line);border-top:3px solid #2b9c86;border-radius:8px;min-width:0}.revenue-card>span{display:block;font-size:14px;font-weight:600;color:#48645e}.revenue-card>strong{display:block;font-size:30px;line-height:1.35;margin:9px 0;color:#237e6a;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.revenue-card>small{display:block;min-height:34px;font-size:12px;line-height:1.65;color:var(--muted)}.revenue-medical{border-top-color:#8862ce;background:#fcfbff}.revenue-medical>span{color:#726185}.revenue-medical>strong{color:#7b54bc}.revenue-hospital{border-top-color:#198abd;background:#f9fcfe}.revenue-hospital>span{color:#557887}.revenue-hospital>strong{color:#107eac}.main .medical-progress{padding:16px 20px}.medical-progress h2{font-size:14px;margin-bottom:12px}.medical-progress-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.medical-progress-grid>div{border-right:1px solid var(--line);padding-right:12px;min-width:0}.medical-progress-grid>div:last-child{border-right:0}.medical-progress-grid span{color:var(--muted);font-size:12px}.medical-progress-grid strong{display:block;font-size:24px;margin-top:5px;font-variant-numeric:tabular-nums}.medical-progress-grid small{font-size:11px;color:var(--muted);font-weight:400;margin-left:6px}.trend-metric-buttons{display:flex;flex-wrap:wrap;gap:6px}.trend-metric-buttons button{font-size:12px;padding:5px 10px;background:#f8fafc}.trend-metric-buttons button[aria-pressed=true]{color:#fff;background:var(--brand);border-color:var(--brand)}.trend-toolbar{flex-wrap:wrap}.overview-actions{display:flex;gap:10px;flex-wrap:wrap}.overview-actions button{min-height:34px}
@media(max-width:1000px){.revenue-card{padding:16px}.revenue-card>strong{font-size:25px}.report-period input{width:128px}}
@media(max-width:680px){.business-revenue{grid-template-columns:1fr;gap:9px}.revenue-card{padding:13px 16px}.revenue-card>strong{margin:5px 0}.revenue-card>small{min-height:0}.medical-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.medical-progress-grid>div:nth-child(2){border-right:0}.report-period{width:100%;gap:5px}.report-period label{display:none}.report-period input{min-width:0;flex:1;width:auto}.report-shortcuts{margin-left:0}}

.viz-scorecard{grid-column:1/-1}.score-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px}.score-row{border:1px solid var(--line);border-radius:8px;padding:16px;min-width:0}.score-row h3{font-size:15px;margin:0 0 14px}.score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}.score-cell{display:flex;flex-direction:column;gap:4px;min-width:0}.score-cell span{font-size:12px;color:var(--muted)}.score-cell strong{font-size:16px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.score-cell.beauty strong{color:#23805b}.score-cell.medical strong{color:#7750aa}.score-cell.hospital strong{color:#107eac}@media(max-width:700px){.score-list{grid-template-columns:minmax(0,1fr)}.score-row{padding:12px}.score-cell strong{font-size:14px}}

/* Admin overview groups receipts, workspaces, analysis and pending tasks. */
.home-dashboard{max-width:1600px;margin:0 auto;padding:3px 0 20px}.home-group{padding:20px 24px;margin-bottom:18px;background:#fff;border:1px solid #e2e9ee;border-radius:10px}.home-group-heading{display:flex;align-items:center;margin-bottom:17px}.home-group-heading h2{display:flex;align-items:center;gap:9px;margin:0;font-size:16px;font-weight:650;color:#2b4c5e}.home-group-heading h2::before{content:"";width:3px;height:16px;border-radius:2px;background:#1782a6}
.home-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 18px;padding:14px 18px;border:1px solid #e2e9ee;border-radius:9px;background:#fff}.home-scope-label{font-size:12px;font-weight:600;color:#627e8e;white-space:nowrap}.home-period-shortcuts{display:flex;flex-shrink:0;gap:3px;padding:3px;background:#f0f3f5;border-radius:6px}.home-period-shortcuts button{min-width:62px;height:31px;border:0;background:transparent;color:#6c7b8c;font-weight:600;font-size:12px;padding:4px 12px}.home-period-shortcuts button[aria-pressed=true]{background:#fff;color:#107eac;box-shadow:0 1px 3px #25304610}.home-period-range{display:flex;align-items:center;gap:8px;min-width:0}.home-period-range input{height:34px;width:139px;min-width:0;padding:4px 9px;border:1px solid #dbe3eb;border-radius:5px;background:#fff}.home-period-range>span{font-size:12px;color:#94a0ad}.home-period-range button{height:34px;padding:4px 12px;white-space:nowrap;background:#fff}.home-branch{display:flex;align-items:center;gap:9px;flex:0 0 auto;margin-left:auto;color:#738497;font-size:12px;white-space:nowrap}.home-branch select{width:162px;min-width:130px;height:34px;padding:5px 10px;border:1px solid #dbe3eb;border-radius:5px;background:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#344a5a}
.home-performance{padding:0;border:0;background:#fff;margin:0}.home-performance-top{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(0,1.6fr);align-items:center;gap:32px}.home-total-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.home-total-heading h2{font-size:14px;font-weight:600;color:#536e7c;margin:0}.home-total-heading>span{font-size:11px;color:#8598a3}.home-total>strong{display:block;font-size:clamp(34px,3vw,48px);font-weight:700;line-height:1.25;letter-spacing:-1px;margin:8px 0 5px;color:#165e79;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.home-total-date{font-size:11px;color:#91a1ab}.home-performance-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:18px}.home-part{min-width:0}.home-part>span{display:block;font-size:12px;color:#7b8e9a;margin-bottom:8px;line-height:1.5}.home-part>strong{font-size:clamp(18px,1.65vw,26px);font-weight:650;line-height:1.35;color:#34627a;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.home-part.tone-beauty>strong{color:#2a776b}.home-part.tone-medical>strong{color:#37748c}.home-part.tone-hospital>strong{color:#167f9e}.home-medical-receipts{display:flex;align-items:center;flex-wrap:wrap;gap:8px 26px;margin-top:18px;padding-top:13px;border-top:1px solid #edf1f4;font-size:11px;color:#889ba7}.home-medical-receipts b{margin-left:7px;color:#5d7685;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.home-workspaces{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0 0 16px}.home-workspaces>button{display:flex;align-items:center;gap:12px;padding:11px 14px;border:1px solid #dce8ed;border-radius:7px;background:#fff;text-align:left;min-width:0;color:#28657e}.home-workspaces>button:hover{border-color:#9ecbdc;background:#f8fbfd}.home-workspace-icon{display:grid;place-items:center;flex:none;width:32px;height:32px;font-size:21px;background:#edf6f9;border-radius:7px;color:#1681a4}.home-workspaces strong{display:block;font-size:15px;font-weight:650}.home-workspaces small{display:block;font-size:11px;font-weight:400;color:#8ca0ac;margin-top:3px}.home-workspace-arrow{margin-left:auto;font-size:23px;color:#9bb0bc}
.home-dashboard .home-group .overview-section{margin:0;padding:0;border:0;border-bottom:1px solid #eaf0f3;border-radius:0;background:transparent;box-shadow:none}.home-dashboard .home-group .overview-section:last-child{border-bottom:0}.home-dashboard .home-group .overview-section>summary{padding:13px 0}.home-dashboard .home-group .overview-section>summary h2{font-size:14px}.home-dashboard .home-group .overview-section-body{padding:0 0 14px}.home-dashboard .home-group .overview-section:not([open])>.overview-section-body{display:none}.home-dashboard .city-appointment-list{padding-top:4px!important;gap:12px 20px}.home-dashboard .city-appointment-list>button{padding:2px 8px 2px 12px;gap:3px}.home-dashboard .city-appointment-list>button>span{font-size:12px}.home-dashboard .city-appointment-list strong{font-size:25px}.home-dashboard .city-appointment-list strong small{font-size:11px}
.home-operations{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;padding:8px 0 4px!important;margin:0}.home-operations>div{min-width:0}.home-operations span{display:block;color:#8492a1;font-size:11px;margin-bottom:6px}.home-operations strong{font-size:19px;font-weight:600;font-variant-numeric:tabular-nums;color:#3b6175;overflow-wrap:anywhere}.home-costs{display:flex;flex-wrap:wrap;gap:10px 26px;font-size:12px;color:#8193a0;padding:7px 0 10px;border:0}.home-costs b{margin-left:7px;color:#587387;font-weight:600;font-variant-numeric:tabular-nums}.home-costs small{font-size:11px;margin-left:8px;color:#9baab3}
.home-dashboard .viz-grid{gap:18px;margin:8px 0 0}.main .home-dashboard .viz-grid .panel{padding:10px 0;border:0;border-radius:0;background:transparent;margin:0;box-shadow:none}.home-dashboard .viz-heading{margin-bottom:8px}.home-dashboard .viz-heading h2{font-size:13px;color:#647f8d}.home-dashboard .overview-branches .viz-heading{display:none}.home-dashboard .score-list{display:block}.home-dashboard .score-row{display:grid;grid-template-columns:85px minmax(0,1fr);align-items:center;gap:18px;border:0;border-bottom:1px solid #edf1f5;border-radius:0;padding:15px 0}.home-dashboard .score-row:last-child{border-bottom:0;padding-bottom:5px}.home-dashboard .score-row h3{font-size:13px;margin:0}.home-dashboard .score-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}.home-dashboard .score-cell span{font-size:11px}.home-dashboard .score-cell strong{font-size:15px}.home-dashboard .trend-toolbar{margin-bottom:12px;padding-top:3px}.home-dashboard .trend-metric-buttons button{border:0;background:transparent;color:#80909e;font-size:12px;padding:5px 10px}.home-dashboard .trend-metric-buttons button[aria-pressed=true]{color:#107eac;background:#edf6fa}.home-dashboard .trend-svg{max-height:330px}.home-tasks .overview-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.home-tasks button{display:flex;align-items:center;gap:8px;min-width:0;min-height:44px;padding:8px 14px;border:0;border-left:1px solid #e8eef2;border-radius:0;background:transparent;color:#617789;font-size:13px;text-align:left}.home-tasks button:first-child{border-left:0}.home-tasks button:hover{background:#f4f9fb}.home-tasks button b{font-size:13px;color:#107eac}.home-tasks button>span{margin-left:auto;color:#9cadbb;font-size:18px}
@media(max-width:1180px){.home-performance-top{grid-template-columns:1fr;gap:22px}.home-performance-parts{max-width:780px}.home-total>strong{font-size:40px}.home-dashboard .score-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px}.home-branch{margin-left:0}}
@media(max-width:700px){.home-group{padding:16px;margin-bottom:14px}.home-group-heading{margin-bottom:13px}.home-group-heading h2{font-size:15px}.home-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:16px}.home-scope-label{grid-column:1/-1}.home-period-shortcuts{justify-self:start;grid-column:1;grid-row:2}.home-branch{grid-column:2;grid-row:2;min-width:0;gap:0}.home-branch>span{display:none}.home-branch select{width:135px;min-width:110px}.home-period-range{grid-column:1/-1;grid-row:3;width:100%;gap:6px}.home-period-range input{width:0;flex:1;height:34px;padding:4px 6px;font-size:12px}.home-period-range button{height:34px;padding:4px 9px}.home-total>strong{font-size:35px}.home-performance-top{gap:18px}.home-performance-parts{gap:12px}.home-part>span{font-size:11px;margin-bottom:5px}.home-part>strong{font-size:18px}.home-medical-receipts{gap:6px 14px;margin-top:15px;font-size:11px}.home-medical-receipts b{font-size:12px}.home-workspaces{gap:9px}.home-workspaces>button{padding:12px 10px;gap:9px}.home-workspace-icon{width:28px;height:28px;font-size:19px}.home-workspaces strong{font-size:13px}.home-workspaces small{font-size:10px}.home-operations{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 14px}.home-operations strong{font-size:18px}.home-dashboard .viz-grid{gap:12px}.home-dashboard .score-row{display:block;padding:13px 0}.home-dashboard .score-row h3{margin-bottom:12px}.home-dashboard .score-grid{gap:13px 9px}.home-dashboard .score-cell strong{font-size:14px}.home-dashboard .trend-svg text{font-size:18px}.home-dashboard .trend-svg>text{transform:translateX(60px)}.home-dashboard .trend-metric-buttons{gap:2px}.home-dashboard .trend-metric-buttons button{font-size:11px;padding:4px 7px}.home-tasks .overview-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 0}.home-tasks button{font-size:12px;padding:7px 10px}.home-tasks button:nth-child(3){border-left:0}}
/* Clear appointment dates and a compact city-level appointment overview. */
.service-date-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) auto;gap:12px 24px;margin:20px 0 22px;align-items:center}.service-date-picker{display:flex;align-items:center;gap:14px}.service-date-picker>button{font-size:28px;line-height:1;width:42px;min-height:46px;padding:4px}.service-date-picker>label{position:relative;display:grid;gap:4px;color:#176483;min-width:260px}.service-date-picker>label>span{font-size:12px;color:#738797}.service-date-picker strong{font-size:24px;letter-spacing:.3px;pointer-events:none}.service-date-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;box-sizing:border-box}.service-date-picker label:focus-within{outline:2px solid #1388ad;outline-offset:6px;border-radius:3px}.service-date-actions{display:flex;align-items:center;gap:10px}.service-date-toolbar>p{margin:0;color:#738797;grid-column:1/-1}.service-date-toolbar>p b{color:#176483}.appointment-date-summary{margin:8px 0 18px;padding:15px 18px;border-left:4px solid #1388ad;background:#eaf6fb;color:#11627e;font-size:19px;font-weight:700;line-height:1.6}.appointment-date-summary[data-period=other]{border-color:#cf8b23;background:#fff5df;color:#805608}.appointment-schedule-field label{color:#11627e;font-weight:700}.appointment-schedule-field input{font-size:20px;font-weight:650;min-height:52px;background:#f7fbfe}.city-appointments{padding:4px 0 25px;margin:0 0 22px;border-bottom:1px solid #e1ebef}.city-appointments .section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.city-appointments h2{font-size:18px;margin:0 0 17px}.city-appointments .section-heading>span{font-size:13px;color:#78909c}.city-appointment-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:18px 26px}.city-appointment-list>button{display:grid;gap:6px;padding:4px 8px 4px 14px;border:0;border-radius:0;border-left:3px solid #c0e3ed;background:transparent;text-align:left;min-width:0;overflow-wrap:anywhere}.city-appointment-list>button:hover{background:#edf7fb;border-left-color:#107eac}.city-appointment-list>button>span{font-size:14px;color:#526e7c}.city-appointment-list strong{font-size:31px;color:#146b88;font-variant-numeric:tabular-nums}.city-appointment-list strong small{font-size:13px;font-weight:400;color:#78909c}
@media(max-width:800px){.service-date-toolbar{grid-template-columns:1fr}.service-date-actions{justify-content:flex-end}.service-date-picker{gap:8px}.service-date-picker>label{min-width:0;flex:1}.service-date-picker strong{font-size:19px}.service-date-picker>button{flex:none;width:36px}.city-appointment-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px}.city-appointments .section-heading{align-items:flex-start;flex-direction:column;gap:0;margin-bottom:15px}.city-appointments h2{margin-bottom:6px}}
/* Shared appointment date and assignment appear once above the customer rows. */
.appointment-date-summary{white-space:pre-line}.appointment-schedule-field{grid-column:1/-1}.appointment-schedule-field input{width:100%;box-sizing:border-box}dialog.appointment-batch-dialog{width:min(1160px,96vw);max-width:96vw;padding:24px;box-sizing:border-box}.appointment-batch-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.appointment-batch-heading h2{font-size:23px;margin:0 0 5px}.appointment-batch-heading span{font-size:13px;color:#7a8994}.appointment-batch-common{background:#f1f8fb;border-radius:8px;padding:18px;margin-bottom:24px}.appointment-batch-common h3{font-size:15px;margin:0 0 14px}.appointment-batch-common-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.appointment-batch-dialog label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#657985}.appointment-batch-dialog input,.appointment-batch-dialog select,.appointment-batch-dialog textarea{width:100%;box-sizing:border-box;font-size:15px;min-height:42px;background:white}.appointment-batch-dialog input[type=date],.appointment-batch-dialog input[type=time]{font-weight:650;color:#166a89}.batch-date-caption{font-size:15px;line-height:1.5;color:#176f8b;letter-spacing:.2px}.batch-date-caption.other-day{color:#946318}.appointment-batch-row{padding:0 0 23px;margin:0 0 23px;border-bottom:1px solid #dfe8ed}.appointment-batch-row>header{display:flex;align-items:center;gap:16px;margin-bottom:14px}.appointment-batch-row>header h3{font-size:17px;margin:0}.appointment-batch-row>header button{margin-left:auto;font-size:12px;color:#8b6565}.appointment-batch-fields{display:grid;grid-template-columns:1.1fr .85fr 1.3fr 1fr .9fr;gap:14px;margin-bottom:14px}.appointment-batch-note textarea{min-height:60px;resize:vertical}.appointment-batch-footer{position:sticky;bottom:-24px;display:flex;gap:10px;align-items:center;background:#fff;padding:15px 0;border-top:1px solid #dfe8ed;box-shadow:0 -8px 15px #ffffffed;z-index:1}.appointment-batch-footer span{margin-left:auto;font-size:13px;color:#70838f}.appointment-batch-footer .primary{min-width:160px}.service-date-actions{flex-wrap:wrap}
@media(max-width:760px){dialog.appointment-batch-dialog{padding:16px}.appointment-batch-common-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.appointment-batch-fields{grid-template-columns:1fr 1fr}.appointment-batch-row>header{flex-wrap:wrap;gap:7px 12px}.appointment-batch-footer{bottom:-16px;flex-wrap:wrap}.appointment-batch-footer span{margin-left:0}.appointment-batch-footer .primary{margin-left:auto}.appointment-batch-heading h2{font-size:20px}}
/* Reception notes stay outside the editable status section. */
.customer-special{padding:11px 14px;margin:12px 0;background:#fff8e9;border-left:3px solid #e4b863;border-radius:3px;color:#705326}.customer-special>span{font-size:12px;font-weight:650}.customer-special p{margin:5px 0 0;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.photo-upload-control{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%}.photo-upload-control input[hidden]{display:none}.photo-upload-status{flex-basis:100%;max-width:340px;white-space:pre-wrap;overflow-wrap:anywhere;color:#397e76;font-size:12px;line-height:1.5}.photo-upload-status[hidden]{display:none}.photo-upload-status.error{color:#b34848;padding:0}.branch-card-footer .photo-upload-control{align-self:flex-start}
.cancel-appointment{color:#a46233;border-color:#e8d9c9;background:#fffaf4}.cancel-appointment:disabled{opacity:.55}
.branch-customer.stage-arrived{border-left-color:#42a28b}.stage-arrived .stage-pill{color:#237b65;background:#e8f6f1}
.pending-date-alert{display:inline-flex;align-items:center;justify-content:center;min-width:15px;height:15px;margin-left:5px;padding:0 3px;box-sizing:border-box;background:#e94f59;color:white;border-radius:20px;font-size:11px;font-weight:750;vertical-align:middle;line-height:1}.pending-date-alert[hidden]{display:none}.service-date-picker>button{position:relative}.service-date-picker>button .pending-date-alert{position:absolute;right:-3px;top:-5px;margin:0}
.archive-identity{padding:18px 16px;background:#f8fbfd;border-bottom:1px solid #e5edf2}.archive-identity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}.archive-identity-grid span{display:block;color:#80919c;font-size:11px;margin-bottom:5px}.archive-identity-grid strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}.archive-operators{display:flex;gap:8px 20px;flex-wrap:wrap;align-items:center;margin-top:18px;padding-top:14px;border-top:1px solid #e1eaef;font-size:12px;color:#71838f}.archive-operators h3{font-size:13px!important;margin:0!important;color:#304b5b;flex-basis:100%}.archive-operators b{color:#304b5b;font-weight:600}.archive-visits{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:8px}.archive-visit{display:flex;flex-direction:column;gap:5px;text-align:left;padding:11px;white-space:normal;min-width:0}.archive-visit strong{font-size:12px}.archive-visit span,.archive-visit small{font-size:11px;color:#7a8b98}.archive-visit-entry.selected{background:#edf7fc;border-color:#75b5cc}.archive-visit.selected{background:transparent}.archive-visit[hidden],#archive-beauty[hidden],#archive-medical[hidden]{display:none!important}.archive-kind-tabs{display:flex;margin:10px 16px 0;gap:28px;border-bottom:1px solid #dfe9ee}.archive-kind-tabs button{border:0;border-radius:0;background:none;padding:11px 0;font-size:15px;font-weight:600;color:#7d8f9c}.archive-kind-tabs button.active{color:#137ca2;box-shadow:inset 0 -3px #1384ac}.medical-archive-order>.section-heading{align-items:flex-start}.medical-archive-order>.section-heading>strong{color:#0d789a;white-space:nowrap}.medical-archive-items{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:#667f8d}.medical-archive-items b{color:#304a5c}.medical-archive-appointment{margin-top:14px;padding:12px;background:#f6f9fc;border-radius:7px;font-size:12px}.medical-archive-appointment strong{font-size:12px}.medical-archive-appointment p{margin:7px 0;color:#6f8492}.medical-archive-appointment small{display:block;margin-top:6px;color:#71858e}
.branch-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.branch-customer[data-customer-card]{cursor:default}.reception-form{display:grid;gap:14px}.reception-row{display:flex;align-items:center;gap:18px}.reception-row>span{font-size:13px;color:#738895;width:36px;flex-shrink:0}.reception-choices{display:flex;gap:8px}.reception-choices button{min-width:84px;padding:9px 14px}.reception-choices button.selected{background:#e5f5ed;border-color:#91c8ac;color:#217554;font-weight:650}.reception-choices [data-value="未到店"].selected,.reception-choices [data-value="未成交"].selected{background:#fff1e6;border-color:#dfb78b;color:#995a24}.reception-sale{display:grid;grid-template-columns:minmax(210px,2fr) minmax(120px,1fr) minmax(120px,1fr);gap:14px;align-items:end}.reception-form label{font-size:12px;color:#718491}.reception-form label>input:not([type=checkbox]),.reception-form label>select{display:block;width:100%;margin-top:6px;box-sizing:border-box;color:#233e4e}.reception-projects{display:flex;gap:6px;flex-wrap:wrap}.reception-projects label{cursor:pointer}.reception-projects input{position:absolute;opacity:0;width:1px!important}.reception-projects span{display:block;padding:11px 12px;border:1px solid #dfe8ed;border-radius:6px;font-size:14px}.reception-projects input:checked+span{color:#167b98;background:#e8f6fb;border-color:#70bbcf}.reception-projects input:focus-visible+span{outline:2px solid #167b98;outline-offset:2px}.reception-amount input{font-size:19px;font-weight:650}.reception-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.reception-save-line{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-height:22px}.reception-save-status{font-size:12px;color:#789489}.reception-save-status.error{color:#b64d43}.reception-save-line button{font-size:12px;padding:6px 12px}.reception-missing:empty{display:none}[data-reception-moved]{display:block;color:#967149;margin-top:7px}[data-reception-moved][hidden]{display:none}.business-master .reception-sale{grid-template-columns:1fr 1fr}.business-master .reception-projects{grid-column:1/-1}@media(max-width:900px){.reception-sale{grid-template-columns:1fr 1fr}.reception-projects{grid-column:1/-1}}

/* Keep the cards white; concentrate stage color in the rail and compact label. */
.branch-customer,.archive-card{--stage-ink:#52647b;--stage-rail:#78899e;--stage-line:#cbd5e1;--stage-wash:#f1f5f9}
.stage-beauty,.stage-arrived{--stage-ink:#08795f;--stage-rail:#159574;--stage-line:#93c9b5;--stage-wash:#edf8f3}
.stage-medical{--stage-ink:#215fae;--stage-rail:#3177d2;--stage-line:#b2cbec;--stage-wash:#f0f6ff}
.stage-card{--stage-ink:#7141ad;--stage-rail:#8652c4;--stage-line:#cbb2e5;--stage-wash:#f6f1fc}
.stage-lost,.stage-absent{--stage-ink:#995014;--stage-rail:#bf8038;--stage-line:#e4be8e;--stage-wash:#fff6e9}
.main .branch-customer,.archive-card{border-left:4px solid var(--stage-rail);background:#fff}
.branch-customer .stage-pill,.archive-card .stage-pill{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;border:1px solid var(--stage-line);border-radius:6px;background:var(--stage-wash);color:var(--stage-ink);font-size:13px;font-weight:650;line-height:1.4}
.stage-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}
.reception-choices button.selected{color:#08795f;background:#edf8f3;border-color:#50a98b}
.reception-choices [data-value="未到店"].selected,.reception-choices [data-value="未成交"].selected{color:#995014;background:#fff6e9;border-color:#ca9252}
.reception-projects input:checked+span{color:#176796;background:#eef7fc;border-color:#59a2c8;font-weight:650}
.reception-choices button.selected:disabled{opacity:1;cursor:default}
.branch-customer{--stage-banner:#e9eef5}.branch-customer.stage-beauty,.branch-customer.stage-arrived{--stage-banner:#dff1e8}.branch-customer.stage-medical{--stage-banner:#e3edfc}.branch-customer.stage-card{--stage-banner:#ede3f8}.branch-customer.stage-lost,.branch-customer.stage-absent{--stage-banner:#fff0dc}
.main .branch-customer{border-left:1px solid #e0e7ed;overflow:hidden}
.branch-customer .branch-card-heading{margin:-20px -22px 0;padding:15px 22px;background:var(--stage-banner);border-bottom:1px solid var(--stage-line);border-radius:10px 10px 0 0}
.branch-card-heading .branch-person small{color:#61768a}.branch-card-heading .customer-avatar{background:#ffffffc7;color:var(--stage-ink)}
.business-master .branch-customer .branch-card-heading{margin:-16px -16px 0;padding:14px 16px}
@media(max-width:600px){.branch-customer .branch-card-heading{margin:-16px -16px 0;padding:14px 16px}}

.archive-identity>.section-heading{margin-bottom:18px}.archive-identity>.section-heading h2,.archive-record-selector>h2{font-size:16px;color:#263e50}.archive-appointments{border-top:8px solid #f1f5f8}.archive-record-selector{padding-top:18px;padding-bottom:16px}.archive-current-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;padding:17px 16px 0}.archive-current-heading h3{margin:0;font-size:13px;color:#708594}.archive-current-heading strong{font-size:15px;color:#234b64}.archive-current-record .pane-section:last-child{border-bottom:0}

.customer-kind{display:inline-block;padding:2px 7px;border-radius:4px;font-size:10px;margin-left:6px;background:#e1f4ed;color:#218362}.customer-kind.returning{background:#ede9fa;color:#7454a1}.appointment-customer-choice{margin:14px 0;padding:14px;background:#f2f8fc;border-left:3px solid #1783a9;border-radius:5px}.appointment-customer-choice h3{margin:0 0 10px;font-size:14px}.appointment-customer-choice p{margin:0 0 9px;color:#8b6a38;font-size:12px}.appointment-customer-candidates{display:grid;gap:8px}.appointment-customer-candidates button,.store-returning-candidate{display:flex;flex-direction:column;gap:4px;text-align:left;white-space:normal;padding:10px 12px;background:#fff;width:100%}.appointment-customer-candidates button.selected{border-color:#147e9f;background:#e3f3f9;box-shadow:inset 3px 0 #147e9f}.appointment-customer-candidates span,.store-returning-candidate span{font-size:12px;color:#667f91}.appointment-customer-candidates small,.store-returning-candidate small{font-size:11px;color:#8193a0}.appointment-customer-candidates em{font-size:11px;color:#97644c;font-style:normal}.store-returning-candidate{margin:8px 0}

.archive-visit-entry{display:flex;flex-direction:column;min-width:0;border:1px solid #dfe8ee;border-radius:6px;overflow:hidden}.archive-visit-heading{display:flex;align-items:flex-start;gap:6px;padding-right:9px}.archive-visit-entry .archive-visit{border:0;border-radius:0;flex:1;min-width:0;padding:10px 11px 5px;background:transparent;overflow-wrap:anywhere}.archive-visit-edit{flex:0 0 auto;align-self:flex-start;margin-top:9px;border:1px solid #dce6ec;border-radius:4px;padding:3px 7px;font-size:11px;line-height:1.5;white-space:nowrap;color:#137e9f;background:#fff}.archive-visit-meta{display:flex;flex-wrap:wrap;gap:2px 10px;padding:0 11px 10px;font-size:11px;color:#81929d;line-height:1.55;overflow-wrap:anywhere}.archive-visit-meta time{font-variant-numeric:tabular-nums;white-space:normal}.archive-visit-entry[hidden]{display:none!important}
.archive-record-meta{display:flex;flex-wrap:wrap;gap:4px 18px;padding:5px 16px 10px;font-size:11px;color:#81919d;overflow-wrap:anywhere}.archive-record-meta>span{min-width:0}.archive-current-record .pane-section{padding:12px 16px}.archive-current-record .pane-section h2{font-size:13px;line-height:1.5;color:#304b5b;margin-bottom:8px}.archive-current-record .section-heading h2{margin-bottom:0}.archive-current-record .section-heading{margin-bottom:8px;align-items:flex-start}.archive-current-record .section-heading h2{min-width:0;overflow-wrap:anywhere}.archive-current-record .pane-actions{padding:8px 16px}.archive-current-record .archive-operators{margin:0 0 7px;padding:0;border:0;gap:5px 20px;overflow-wrap:anywhere}.archive-current-record .archive-operators h3{font-size:11px!important;color:#81919d;font-weight:400}.customer-detail .archive-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.customer-detail .archive-detail-grid>div{grid-column:auto!important;display:block;min-width:0;padding:5px 0}.customer-detail .archive-detail-grid>div.archive-detail-wide{grid-column:1/-1!important}.customer-detail .archive-detail-grid label{display:block;margin-bottom:2px;color:#81919d;font-size:11px;line-height:1.5}.customer-detail .archive-detail-grid p{line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.archive-customer-note{margin-top:7px;padding:9px 11px;border-radius:5px;background:#f5f7f9}.archive-customer-note>span{font-size:11px;color:#84919a}.archive-customer-note p{margin:3px 0 0;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.archive-current-record .medical-archive-order>p{margin:4px 0 8px}.archive-current-record .history-row{align-items:flex-start;overflow-wrap:anywhere}.archive-current-record .history-row>span{min-width:0}.archive-current-record .files{min-width:0}
.branch-booking-actions{display:flex;gap:6px;margin-left:auto;flex-wrap:nowrap}.branch-booking-actions>button{white-space:nowrap}
.reception-photo-action{margin-left:auto;min-width:0}.reception-photo-action .photo-upload-control{justify-content:flex-end}.reception-photo-action button{white-space:nowrap}.reception-photo-action .photo-upload-status{max-width:200px;text-align:right}.reception-form select[name=consultant_id],.reception-form select[name=operator_id]{text-align:center;text-align-last:center;padding-left:28px;padding-right:28px}
#med-form .medical-purchase-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}#med-form .medical-purchase-fields label{margin:0;font-size:12px;color:#617889}#med-form .medical-purchase-fields input,#med-form .medical-purchase-fields select{min-width:0;max-width:100%;height:38px;padding:7px 10px;margin-top:4px;font-size:14px}.medical-purchase-name,.medical-purchase-items{grid-column:1/-1;min-width:0}.medical-purchase-items{padding:10px 0;border-top:1px solid #e5edf2;border-bottom:1px solid #e5edf2}.medical-purchase-items-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.medical-purchase-items-heading h3{font-size:13px;margin:0;color:#3c5667}#med-form .medical-purchase-items-heading button{padding:5px 9px;font-size:12px;white-space:nowrap;color:#147a9b}.med-item-columns,.med-custom-item{display:grid;grid-template-columns:minmax(0,1fr) 80px 52px;gap:8px;align-items:center}.med-item-columns{font-size:11px;color:#8696a0;margin-bottom:4px}.med-item-columns>span:nth-child(n+2){text-align:center}#med-items{display:grid;gap:7px}#med-form .med-custom-item input{width:100%;margin:0}#med-form .med-custom-item [data-total]{text-align:center;padding-left:4px;padding-right:4px}.med-custom-item>button{width:52px;min-width:0;height:38px;padding:5px 0;font-size:12px;color:#9b5b55;white-space:nowrap}@media(max-width:480px){.med-item-columns,.med-custom-item{grid-template-columns:minmax(0,1fr) 64px 44px;gap:6px}.med-custom-item>button{width:44px}#med-form .medical-purchase-fields{gap:10px}#med-form .medical-purchase-fields input,#med-form .medical-purchase-fields select{padding-left:7px;padding-right:7px;font-size:13px}}
.customer-medical-preview{font-size:12px;line-height:1.6;color:#52759c;margin-top:4px;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
#med-form .medical-purchase-fields+#med-error:empty{display:none}#med-form .medical-purchase-fields~.actions{justify-content:flex-end;margin-top:14px}
.reception-fields{display:grid;gap:14px;min-width:0;border:0;padding:0;margin:0}.reception-reset{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;padding:4px;border-radius:50%;color:#7b8f9c}.reception-reset:disabled{cursor:default;opacity:.35}.reception-reset:not(:disabled):hover{color:#a05d4a;background:#fff4ee;border-color:#dfb9aa}

.service-city-filter{display:flex;align-items:center;gap:8px;margin-left:auto;color:#7b8e99;font-size:12px}.service-city-filter select{min-width:120px;max-width:240px;background:#fff}.city-workbench-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:2px 0 16px}.city-workbench-heading span{font-size:11px;color:#82939e}.city-workbench-heading h2{font-size:21px;color:#245469;margin:2px 0 0;overflow-wrap:anywhere}.city-workbench-heading>button{flex-shrink:0}@media(max-width:600px){.service-city-filter{margin-left:0}.service-city-filter select{max-width:180px}.city-workbench-heading{gap:10px}}

.archive-filter-panel{padding:12px 15px;background:#fff;border:1px solid #e0e8ee;border-radius:6px;margin-bottom:12px}.archive-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.archive-filter-grid label{display:grid;gap:4px;min-width:0;font-size:11px;color:#81919d}.archive-filter-grid input,.archive-filter-grid select{width:100%;min-width:0;max-width:100%;height:34px;margin:0;padding:5px 9px;box-sizing:border-box;color:#385264;font-size:12px}.archive-filter-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:11px}.archive-filter-actions button{font-size:12px;padding:5px 13px}

.overview-section{margin:16px 0 22px}.overview-section>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:10px 0;user-select:none}.overview-section>summary::-webkit-details-marker{display:none}.overview-section>summary h2{font-size:16px;margin:0;min-width:0;color:#304f61}.overview-section-meta{margin-left:auto;font-size:12px;color:#81939e;overflow-wrap:anywhere}.overview-caret{flex:0 0 20px;margin-left:auto;text-align:center;line-height:1;font-size:24px;color:#6c8c9b;transform:rotate(-90deg);transition:transform .15s}.overview-section-meta+.overview-caret{margin-left:0}.overview-section[open]>summary .overview-caret{transform:rotate(0)}.overview-section:not([open])>.overview-section-body{display:none}.overview-section.city-appointments{padding:0 0 14px;margin-top:0}.overview-section.city-appointments .city-appointment-list{padding-top:12px}.overview-operations{border-bottom:1px solid #dfe7ed}.overview-operations .home-operations{padding-top:14px;padding-left:0;padding-right:0}.overview-operations .home-costs{padding-left:0;padding-right:0;border-bottom:0}.main .overview-trend>summary{padding-top:0}.overview-trend .trend-toolbar{padding-top:8px}.overview-trend .trend-metric-buttons{flex-wrap:wrap}@media(max-width:600px){.overview-section>summary{gap:8px;flex-wrap:wrap}.overview-section-meta{font-size:11px;max-width:65%}.overview-section>summary h2{font-size:15px}.overview-caret{font-size:22px}}

#home-hospital-plan{white-space:nowrap}.hospital-plan-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px}.hospital-plan-heading h2{font-size:23px;margin:0;color:#274e61}.hospital-plan-heading span{font-size:12px;color:#7e919b}.hospital-plan-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px 18px;margin:0 0 17px}.hospital-plan-filters label{display:grid;gap:5px;min-width:160px;font-size:12px;color:#718592}.hospital-plan-filters input,.hospital-plan-filters select{height:36px;padding:6px 10px;min-width:0}.hospital-plan-filters>button{height:36px}.hospital-plan-tabs{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}.hospital-plan-tabs button{padding:8px 17px}.hospital-plan-tabs b{margin-left:5px}.hospital-plan-list td{white-space:normal;overflow-wrap:anywhere}.hospital-plan-list td small{display:block;color:#82949e;font-size:11px;margin-top:2px}.hospital-plan-list time{white-space:nowrap;font-variant-numeric:tabular-nums}.hospital-plan-list time strong{margin-left:8px;color:#156f90;font-size:15px}.plan-status{display:inline-block;padding:3px 8px;border-radius:4px;font-size:11px;white-space:nowrap;background:#edf4fb;color:#347192}.plan-unscheduled{background:#fff5e6;color:#a27336}.plan-completed{background:#edf8f1;color:#398064}.plan-cancelled{color:#9aa5ad}.plan-cancelled .plan-status{background:#f1f3f5;color:#919ea8}.hospital-plan-pages{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding-top:14px;font-size:12px;color:#82939e}.hospital-plan-pages>span:first-child{margin-right:auto}@media(max-width:600px){.hospital-plan-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hospital-plan-filters label{min-width:0}.hospital-plan-filters>button{justify-self:end;grid-column:2}.hospital-plan-heading h2{font-size:19px}.hospital-plan-tabs button{padding:7px 10px}.hospital-plan-list time strong{display:block;margin-left:0}}

/* Archive fields edit in their own section, without a new page or dialog. */
.archive-identity{padding:14px 16px;background:#fff}.archive-identity>.section-heading{margin-bottom:12px}.archive-identity-grid{gap:10px 20px}.archive-identity-grid span{margin-bottom:3px}.archive-identity-grid strong{line-height:1.55}.archive-edit-form{padding:10px;background:#f7fafc;border:1px solid #dce8ef;border-radius:6px}.archive-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.archive-edit-field{display:flex;min-width:0;flex-direction:column;gap:4px}.archive-edit-field>span{font-size:11px;color:#718795;line-height:1.5}.archive-edit-field input,.archive-edit-field select,.archive-edit-field textarea{min-width:0;width:100%;box-sizing:border-box;margin:0;padding:7px 8px;font-size:12px;border:1px solid #d5e1e9;border-radius:4px;background:#fff}.archive-edit-field input:disabled,.archive-edit-field select:disabled{background:#eef2f5;color:#80919c}.archive-edit-field textarea{resize:vertical;min-height:58px}.archive-edit-wide{grid-column:1/-1}.archive-project-options{display:flex;flex-wrap:wrap;gap:8px 16px}.archive-project-options label{display:flex;align-items:center;gap:5px;font-size:12px;color:#3b596c}.archive-project-options input{width:auto}.archive-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.archive-edit-actions button{padding:6px 15px;font-size:12px}.archive-edit-form .error{margin:7px 0 0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.archive-edit-form .error:empty{display:none}.archive-edit-items{margin-top:12px}.archive-edit-items .section-heading h3{margin:0;font-size:12px}.archive-item-labels,.archive-edit-item{display:grid;grid-template-columns:minmax(0,1fr) 65px 30px;gap:6px;align-items:center}.archive-item-labels{font-size:10px;color:#81939e;margin-bottom:4px}.archive-edit-item{margin-bottom:6px}.archive-edit-item input{min-width:0;width:100%;box-sizing:border-box;padding:7px 8px;font-size:12px}.archive-edit-item button{width:30px;height:30px;padding:0;font-size:20px}.archive-edit-item small{grid-column:1/-1;color:#81939e;font-size:10px}.archive-edit-item button:disabled{opacity:.4;cursor:default}@media(max-width:440px){.archive-edit-grid{gap:9px}.archive-edit-field input,.archive-edit-field select{padding:7px 5px}.archive-item-labels,.archive-edit-item{grid-template-columns:minmax(0,1fr) 55px 30px}}

.reception-field-grid .reception-note{grid-column:1/-1}.reception-note textarea{width:100%;min-width:0;box-sizing:border-box;min-height:50px;resize:vertical;font-size:12px;padding:7px 9px}

.reception-note-history{max-height:190px;overflow:auto;margin-top:6px}.reception-note-history .timeline{margin:7px 0;padding-left:8px;border-left:2px solid #d9e5ec}.reception-note-history small{font-size:10px;color:#84949e}.reception-note-history p{margin:3px 0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.archive-identity>.section-heading .actions{flex-wrap:wrap}

.reception-note>span{font-size:12px;color:#81929e}.reception-note-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;margin-top:5px}.reception-note-compose button{padding:7px 14px;font-size:12px}

.reception-note-compose>button{width:44px;height:26px;min-height:26px;padding:0;margin-top:2px;align-self:start;font-size:12px;line-height:24px;font-weight:400;background:#f2f8fc;color:#1681a2;border:1px solid #c8e0eb;border-radius:4px;white-space:nowrap}#archive-note-composer textarea{width:100%;min-width:0;box-sizing:border-box;font-size:12px;padding:7px 9px;min-height:52px;resize:vertical}#archive-note-composer .error:empty{display:none}
.archive-identity>.section-heading{flex-wrap:nowrap;gap:8px;min-height:30px;padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid #edf1f4}.archive-identity>.section-heading h2{flex:1;min-width:0;white-space:nowrap}.archive-identity>.section-heading .actions{flex:0 0 auto;flex-wrap:nowrap;gap:8px;margin:0}.archive-identity>.section-heading button{flex:none;width:auto;min-width:0;white-space:nowrap;padding:0 9px;height:28px;font-size:12px}.archive-identity #delete-customer-archive{order:-1;background:transparent;border-color:transparent;color:#b08686;padding:0 3px}.archive-identity-grid>div{min-width:0}.archive-identity-grid{gap:12px 16px}.archive-identity-grid strong{font-variant-numeric:tabular-nums}

.branch-customer>.customer-medical-full{display:block;-webkit-line-clamp:unset;overflow:visible;white-space:normal;margin:10px 0 14px;padding:8px 11px;border-radius:5px;background:#f0f7fc;color:#396989;line-height:1.65}

.hospital-schedule-note{margin:8px 0;padding:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.hospital-schedule-note small{font-size:12px;color:#7b919e}.hospital-schedule-note p{margin:3px 0;font-size:13px}

.archive-card .archive-spending{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:10px 0 7px;padding-top:9px;border-top:1px solid #edf1f4;font-size:12px;color:#7c919e}.archive-card .archive-spending strong{font-size:17px;font-weight:650;color:#217e89;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right}

.employee-toolbar{justify-content:flex-end}.employee-departments{display:flex;gap:10px;margin:0 0 14px}.employee-departments>button{flex:1;min-width:0;max-width:240px;padding:12px;font-size:15px;background:#fff}.employee-departments span,.employee-cities span{margin-left:9px;opacity:.7;font-size:12px}.employee-departments>.selected{background:#147fa8;color:#fff;border-color:#147fa8}.employee-cities{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.employee-cities>button{font-size:12px;padding:7px 12px}.employee-cities>.selected{background:#e9f5fa;border-color:#a8d5e3;color:#1283a4}.employee-group>.section-heading{margin-bottom:10px}.employee-group>.section-heading>span{color:#879ba6;font-size:12px}

.archive-flow{padding:12px 16px}.archive-flow-step{position:relative;padding:0 0 22px 30px}.archive-flow-step:before{content:'';position:absolute;left:10px;top:23px;bottom:0;width:2px;background:#dce8ed}.archive-flow-step:last-child:before{display:none}.flow-marker{position:absolute;top:1px;left:0;display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#edf2f5;font-size:12px;font-weight:600;color:#8197a3}.flow-done>.flow-marker{background:#e2f3ee;color:#279777}.flow-current>.flow-marker{background:#1685a7;color:#fff}.flow-content{min-width:0}.flow-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:24px;margin-bottom:10px}.flow-heading h2{margin:0;font-size:15px;color:#345565}.flow-heading>span{font-size:11px;color:#8fa0aa;white-space:nowrap}.flow-done>.flow-content>.flow-heading>span{color:#33967f}.flow-current>.flow-content>.flow-heading>span{color:#1483a4}.flow-empty{font-size:12px;color:#92a3ad;line-height:1.6;margin:4px 0 8px}.flow-business-card{padding:11px;background:#f6f9fb;border:1px solid #e9eff3;border-radius:6px;margin-bottom:10px;font-size:12px}.flow-business-card:last-child{margin-bottom:0}.flow-business-card h2{font-size:14px;margin:0;color:#365565}.flow-business-card h2 small{font-size:10px;color:#8d7aaf;margin-left:5px;font-weight:400}.flow-business-card small{display:block;font-size:10px;color:#91a3ad;line-height:1.5}.flow-business-card h2 small{display:inline}.flow-business-card p{margin:6px 0;overflow-wrap:anywhere}.flow-order-amount{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:8px 0;color:#7d929f;font-size:11px}.flow-order-amount strong{font-size:18px;color:#168b79}.flow-business-heading{display:flex;justify-content:space-between;gap:10px;color:#4e7486}.flow-business-heading strong{min-width:0;overflow-wrap:anywhere}.flow-business-heading>span{font-size:11px;white-space:nowrap}.flow-booking-time{font-size:15px;font-weight:600;color:#346a80;margin:8px 0}.flow-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;margin-top:10px}.flow-result-grid>div{min-width:0;overflow-wrap:anywhere}.flow-result-grid label{display:block;font-size:10px;color:#8a9da8;margin-bottom:4px}.flow-result-grid strong{color:#168b79}.flow-business-card h3{font-size:12px;color:#587785;border-top:1px solid #e4edf1;padding-top:9px;margin:10px 0 5px}.flow-cancelled{opacity:.65}.flow-execution.voided{text-decoration:line-through;color:#a9b6be}.flow-edit-row{justify-content:flex-end}.flow-content .pane-section{padding:12px 0}.flow-content .pane-actions{padding:8px 0}.flow-delete{justify-content:flex-end;border-top:1px solid #edf1f4}.flow-delete button{font-size:11px;color:#b08686;border:0;background:transparent}.flow-content .medical-archive-items{display:grid;gap:6px;margin-top:9px}.flow-content .archive-detail-grid>div.archive-detail-wide{grid-column:auto!important}

.attachment-viewer{min-width:0;background:#101316;color:#fff;border-radius:8px;padding:14px}.attachment-viewer-heading{display:flex;align-items:center;justify-content:space-between;font-size:15px}.attachment-viewer-heading button{width:34px;height:34px;padding:0;font-size:26px;color:#fff;background:transparent;border:0}.attachment-picture{height:min(65vh,700px);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#b8c8d1;overflow:auto}.attachment-picture img{display:block;max-width:100%;max-height:100%;object-fit:contain}.attachment-picture a{color:#8ccee6}.attachment-viewer-name{text-align:center;overflow-wrap:anywhere;font-size:12px;color:#a8b8c2;margin:12px 0}.attachment-viewer-controls{display:flex;justify-content:space-between;gap:24px}.attachment-viewer-controls button{background:#273946;color:#fff;border-color:#416172;font-size:13px;padding:9px 18px}.attachment-viewer-controls button:disabled{opacity:.4}

.archive-search-compact{display:flex;gap:8px;margin-bottom:6px}.archive-search-compact input{flex:1;min-width:0}.archive-search-compact button{flex:none}.archive-collapsible-filters{background:transparent;border:0;padding:0;margin-bottom:10px}.archive-collapsible-filters>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 2px;cursor:pointer;list-style:none;font-size:12px;color:#7d929f}.archive-collapsible-filters>summary::-webkit-details-marker{display:none}.archive-collapsible-filters>summary>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-collapsible-filters>summary>b{flex:none;font-weight:400;color:#237f9d}.archive-collapsible-filters>summary>b:after{content:'⌄';margin-left:6px}.archive-collapsible-filters[open]>summary>b:after{content:'⌃'}.archive-collapsible-filters>.archive-filter-grid{padding:10px;background:#fff;border:1px solid #e0e8ee;border-radius:6px}.archive-status-chips{display:flex;gap:7px;overflow-x:auto;padding:2px 0 8px;margin-bottom:10px}.archive-status-chips>button{flex:none;padding:8px 11px;background:#fff;font-size:12px;white-space:nowrap}.archive-status-chips b{margin-left:7px;color:#3d7286}.archive-status-chips>.active{background:#147fa8;color:#fff;border-color:#147fa8}.archive-status-chips>.active b{color:#fff}
.hospital-status-tabs{display:flex;gap:6px}.hospital-status-tabs button{flex:1;min-width:0;padding:10px 2px;font-size:13px}.redemption-heading,.sale-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px}.redemption-heading button,.sale-editor-heading button{border:0;background:transparent;color:#1682a7;padding:8px 2px;font-size:13px}.redemption-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid #e1ebef}.redemption-row>div{min-width:0;flex:1}.redemption-row b{font-size:15px;overflow-wrap:anywhere}.redemption-row small{color:#8396a2;font-size:11px}.redemption-row p{font-size:12px;color:#7d929f;margin:5px 0 0}.redemption-row>span{font-size:12px;color:#39937d}.redemption-row button{flex-shrink:0;padding:6px 14px;font-size:13px}.redeem-all{width:100%;background:#e7f3f6;color:#1682a7;margin-top:8px}.hospital-sale-row{display:grid;grid-template-columns:minmax(0,1fr) 76px 44px 24px;gap:6px;align-items:end;margin:8px 0}.hospital-sale-row label{min-width:0;font-size:11px}.hospital-sale-row input{box-sizing:border-box;min-width:0;width:100%;height:36px;padding:5px;font-size:13px}.hospital-sale-row button{height:36px;padding:0;border:0;background:transparent;color:#8297a3}.sale-total{display:flex;justify-content:space-between;font-size:13px;color:#587b8d;padding:12px 0}.sale-total b{color:#1584a1}.follow-card .follow-sale{border-top:1px solid #dce7ed;padding-top:10px}.follow-card .follow-money strong{font-size:23px}

.follow-appointment .hospital-reset,.hospital-appointment .hospital-reset{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;min-width:32px;height:32px;margin:0;padding:0;line-height:1;font-size:24px;font-weight:500;background:transparent;border:0;color:#6d8797}.hospital-reset:disabled{opacity:.35}.hospital-appointment>.hospital-reset{float:right}

.ad-sync-banner{display:block;width:100%;text-align:left;padding:14px 18px;background:#fff5e3;color:#98671e;border:1px solid #efd6a4;border-radius:10px;margin-bottom:14px;line-height:1.6}.ad-sync-page{max-width:1000px}.ad-sync-summary>strong{display:block;font-size:36px;color:#137d9f;margin:12px 0}.ad-sync-account{padding:16px 0;border-top:1px solid #edf2f5}.ad-sync-account strong{float:right}.ad-sync-page summary{cursor:pointer;font-weight:600}.ad-sync-page label{display:block;margin:16px 0}.ad-sync-page input:not([type=checkbox]){display:block;width:100%;margin-top:8px}.ad-sync-page .toolbar{flex-wrap:wrap}.ad-sync-page .toolbar label{flex:1;min-width:120px}.ad-sync-page small{color:#78909e}
.ad-sync-page.ad-compare-page{width:100%;max-width:none;margin:0}.ad-compare-page .panel{padding:18px;margin-bottom:14px}.ad-compare-page .ad-daterange{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.ad-compare-page .ad-daterange>span{padding-bottom:8px;color:#8898a7}.ad-compare-page .ad-daterange label{margin:0;font-size:12px;flex:0 0 165px}.ad-compare-page .ad-daterange input{margin-top:4px;padding:7px 10px;height:36px}.ad-presets,.ad-group-tabs{display:flex;gap:4px}.ad-compare-page button{padding:7px 13px;font-size:13px}.ad-range-caption,.ad-table-note{color:#80929f;font-size:12px;margin:12px 0 0}.ad-sync-warning{background:#fff6e7;color:#996722;border:1px solid #efd7ad;border-radius:8px;padding:9px 14px;margin-bottom:14px;font-size:13px}.ad-sync-warning p{max-height:150px;overflow:auto;overflow-wrap:anywhere}.ad-comparison-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.ad-comparison-head h2{margin:0 12px 0 0;font-size:15px}.ad-group-tabs{background:#f2f5f8;padding:3px;border-radius:7px}.ad-group-tabs button{border:0;background:transparent;color:#7a8c99}.ad-group-tabs button.selected{background:#fff;color:#0784ab;box-shadow:0 1px 4px #163d5520}.ad-comparison-head select{width:140px;padding:7px 10px}.ad-compare-page .ad-comparison-head input{width:230px;margin:0;padding:7px 10px}.ad-comparison-head #ad-refresh{margin-left:auto}.ad-comparison table{width:100%;font-variant-numeric:tabular-nums}.ad-comparison td,.ad-comparison th{padding:11px 14px;text-align:right;font-size:13px}.ad-comparison th:first-child,.ad-comparison td:first-child{text-align:left;min-width:170px;max-width:330px;white-space:normal;overflow-wrap:anywhere}.ad-comparison th button{border:0;background:none;padding:0;white-space:nowrap;font-size:12px;color:#6b7e8e}.ad-comparison th button span{font-size:10px;color:#829cad}.ad-total-row{background:#f6fafc;font-weight:600}.ad-total-row small{margin-left:12px;font-weight:400}.ad-pending{display:block;font-size:11px;color:#ab8950}.ad-secondary summary{font-size:13px}.ad-secondary form{max-width:560px}.ad-secondary .table-wrap{margin-top:15px}.ad-comparison tbody tr:hover{background:#f3f9fc}@media(max-width:700px){.ad-compare-page .ad-daterange label{flex:1;min-width:120px}.ad-compare-page .ad-comparison-head input{width:100%}.ad-compare-page .panel{padding:12px}.ad-comparison table{min-width:850px}}
.service-name-tag{display:inline-flex;align-items:center;gap:8px;color:#087fa8;background:#eef8fb;border:1px solid #cfe8ef;border-radius:999px;padding:7px 12px;font-weight:700}.service-name-tag span{font-size:12px;font-weight:500;color:#6d8d99}.service-name-tag.active{background:#158bb3;color:#fff}.service-name-tag.active span{color:#e8f8fc}.service-customer-row td{background:#f7fafb!important;padding:12px!important}.service-customer-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.service-customer-row .service-customer-list button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;background:#fff;border:1px solid #dfe9ed;border-radius:10px;padding:10px}.service-customer-list span,.service-customer-list small{color:#708894}

.pending-jump{border-color:#efb2b2;background:#fff4f4;color:#b93232;font-weight:700}
.reschedule-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.reschedule-compare section{min-width:0;padding:14px;border:1px solid #dce7ed;border-radius:8px;background:#f6f9fb}.reschedule-compare section>span{display:block;margin-bottom:10px;color:#788f9d;font-size:12px}.reschedule-compare section>strong,.reschedule-compare section>b{display:block;margin:7px 0;color:#365566;font-size:18px}.reschedule-new{background:#eef8fb!important;border-color:#b9dce6!important}.reschedule-new label{display:block;margin:8px 0;color:#587481;font-size:12px}.reschedule-new input{box-sizing:border-box;width:100%;margin-top:4px;padding:8px;border:1px solid #cbdde5;border-radius:5px;background:#fff}

.reception-card-toggle{display:flex;align-items:center;gap:16px;width:100%;margin:0;border:0;background:#edf7f5;text-align:left;padding:16px 18px;border-radius:10px;color:#315969}.reception-card-toggle strong{font-size:17px}.reception-card-toggle span{font-size:13px}.reception-expand-label{margin-left:auto;color:#1486a4}.reception-card-body[hidden]{display:none!important}.reception-card-body{padding-top:16px}.branch-customer .reception-sale{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.branch-customer .reception-projects{grid-column:1/-1;display:flex;gap:12px}.reception-save-line{border-top:1px solid #e5edf1;padding-top:16px;display:flex;align-items:center;gap:16px}.required-mark{color:#c75b53}.reception-note-compose small{color:#8b9ba6}.branch-customer .reception-field-grid{gap:14px}.branch-customer{padding:14px!important}.reception-card-body .branch-card-footer{padding-top:12px}@media(max-width:600px){.branch-customer .reception-sale{grid-template-columns:repeat(2,minmax(0,1fr))}.reception-card-toggle{gap:10px;padding:14px 10px}.reception-card-toggle strong{font-size:16px}.reception-save-line{flex-wrap:wrap}}

/* Whole customer card follows its existing progress state. */
.branch-customer{border:0!important;box-shadow:none;background:#e9eef5}
.branch-customer.stage-beauty,.branch-customer.stage-arrived{background:#dff1e8}
.branch-customer.stage-medical{background:#e3edfc}
.branch-customer.stage-card{background:#ede3f8}
.branch-customer.stage-lost,.branch-customer.stage-absent{background:#fff0dc}
.branch-customer.stage-stopped{background:#faf0d5}
.branch-customer .reception-card-toggle{background:transparent}
.branch-customer .reception-card-body{background:transparent}

/* Overview: clear revenue hierarchy and a responsive analysis grid. */
.home-dashboard{max-width:none;width:100%}
.home-dashboard .home-group{padding:24px;border:0;border-radius:16px;margin-bottom:20px}
.home-dashboard .home-group-heading h2:before{display:none}
.home-dashboard .home-group-summary{background:#173f50;color:#fff}
.home-dashboard .home-group-summary .home-group-heading h2{color:#d2e6ed}
.home-dashboard .home-performance{background:transparent}
.home-dashboard .home-total-heading h2,.home-dashboard .home-total-heading>span,.home-dashboard .home-total-date{color:#adcbd7}
.home-dashboard .home-total>strong{color:#fff;font-size:clamp(32px,3.5vw,52px)}
.home-dashboard .home-performance-parts{gap:12px}
.home-dashboard .home-performance-parts .home-part{padding:20px 16px;background:#ffffff0c;border-radius:12px}
.home-dashboard .home-part>span{color:#bcd5df}
.home-dashboard .home-part>strong{color:#fff}
.home-dashboard .home-medical-receipts{border-color:#ffffff20;color:#adcbd7}
.home-dashboard .home-medical-receipts b{color:#e2eff4}
.home-dashboard .home-workspaces{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.home-dashboard .home-workspaces>button{background:#f2f7fa;border:0;border-radius:10px;padding:16px 18px}
.home-dashboard .city-appointment-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px!important}
.home-dashboard .city-appointment-list>button{display:flex;align-items:center;justify-content:space-between;background:#f4f7f9;border:0;border-radius:10px;padding:16px}
.home-dashboard .home-group-analysis{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;background:transparent;padding:0}
.home-dashboard .home-group-analysis>.home-group-heading{grid-column:1/-1;margin:0}
.home-dashboard .home-group-analysis>.overview-section{background:#fff;border:0;border-radius:14px;padding:18px 22px;margin:0;min-width:0;align-self:start}
.home-dashboard .home-group-analysis>.overview-operations,.home-dashboard .home-group-analysis>.overview-trend{grid-column:1/-1}
.home-dashboard .home-operations{gap:12px}
.home-dashboard .home-operations>div{padding:14px;background:#f3f7f9;border-radius:9px}
@media(max-width:900px){.home-dashboard .home-performance-top{grid-template-columns:1fr;gap:22px}.home-dashboard .home-group-analysis{grid-template-columns:1fr}.home-dashboard .home-group-analysis>.overview-section{grid-column:1}.home-dashboard .home-performance-parts .home-part{padding:14px 12px}}
@media(max-width:600px){.home-dashboard .home-group{padding:18px}.home-dashboard .home-performance-parts{grid-template-columns:1fr;gap:0;background:#ffffff0d;border-radius:10px;padding:0 14px}.home-dashboard .home-performance-parts .home-part{display:flex;align-items:center;justify-content:space-between;gap:12px;background:transparent;padding:13px 0}.home-dashboard .home-part>span{margin:0}.home-dashboard .home-part+.home-part{border-top:1px solid #ffffff18}.home-dashboard .home-workspaces{gap:10px}.home-dashboard .home-workspaces>button{padding:12px 10px}.home-dashboard .home-group-analysis{padding:0}.home-dashboard .home-operations{grid-template-columns:repeat(3,minmax(0,1fr))}}

.archive-card[data-visit]{cursor:pointer}.archive-card[data-visit]:hover{background:#f4f9fc}.archive-card[data-visit]:focus-visible{outline:2px solid #1683a7;outline-offset:3px}

.archive-sort{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0;color:#718895;font-size:13px}.archive-sort button{background:#fff;padding:8px 15px}.archive-sort button.active{background:#e7f4f8;border-color:#b7dce8;color:#137e9f}.archive-sort small{font-size:12px;color:#8c9da7}.archive-grid .archive-profile-card{border:1px solid #dfe8ee;background:#fff;border-radius:12px}

.ad-comparison table{min-width:1250px}.ad-comparison td,.ad-comparison th{white-space:nowrap}

.overview-data-links{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:#738b98;font-size:13px}.overview-data-links button{background:#fff;color:#167fa7;padding:10px 14px}

/* Spacious collapsed customer summaries. */
.branch-customer:has(>.reception-card-body[hidden]){border-radius:14px;margin-bottom:16px}
.branch-customer:has(>.reception-card-body[hidden])>.reception-card-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px 18px;padding:14px 12px;min-height:84px}
.branch-customer:has(>.reception-card-body[hidden])>.reception-card-toggle strong{font-size:20px;grid-column:1;grid-row:1}
.branch-customer:has(>.reception-card-body[hidden])>.reception-card-toggle>span:nth-child(2){grid-column:1;grid-row:2;color:#62818d;font-size:14px}
.branch-customer:has(>.reception-card-body[hidden])>.reception-card-toggle>span:nth-child(2):before{content:'预约时间 · '}
.branch-customer:has(>.reception-card-body[hidden])>.reception-card-toggle>span:nth-child(3){grid-column:2;grid-row:1/3;background:#ffffff85;border-radius:20px;padding:8px 14px;color:#375f6b}
.branch-customer:has(>.reception-card-body[hidden])>.reception-card-toggle>.reception-expand-label{grid-column:3;grid-row:1/3}

.reception-save-line [data-reception-save]:disabled{background:#e5ebee;color:#9aaab3;border-color:#e5ebee;opacity:1;cursor:default}

.reception-quick-arrival{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.branch-customer:has(>.reception-card-body:not([hidden]))>.reception-quick-arrival{display:none}

.reception-service{display:flex;align-items:center;gap:10px;padding:8px 0;color:#8297a3;font-size:13px}.reception-service strong{color:#3f6171}

.calendar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:20px}.calendar-slot{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #e6edf1;border-radius:12px}.calendar-slot button{background:#f0faf6;color:#387b68;min-height:54px}.calendar-slot button.mine{background:#e6f4fa;color:#136b89}.calendar-slot button.occupied{background:#edf0f3;color:#71818b;opacity:1}.calendar-slot small{display:block;margin-top:4px}.shared-calendar h2{margin:0}

.shared-calendar{padding:24px}.shared-calendar>.row{display:flex;justify-content:space-between;align-items:center}.shared-calendar h2{font-size:20px;font-weight:700}.calendar-subtitle{margin:7px 0 0;color:#8195a1;font-size:13px}.calendar-sync{display:flex;align-items:center;gap:14px;color:#328d72;font-size:12px}.calendar-city-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.calendar-city-tabs button{display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:10px;font-size:14px}.calendar-city-tabs small{font-size:12px;opacity:.8}.calendar-info{display:flex;justify-content:space-between;align-items:center;padding:18px 0 14px;border-top:1px solid #edf2f5}.calendar-info strong{font-size:16px}.calendar-info strong span{font-weight:400;font-size:13px;color:#8295a1;margin-left:14px}.calendar-legend{display:flex;gap:16px;font-size:12px;color:#7d919d}.calendar-legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:#c6dfd5}.calendar-legend .mine:before{background:#78bcd9}.calendar-legend .occupied:before{background:#a5afb7}.calendar-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:0}.calendar-slot{padding:14px;border-radius:12px;background:#fbfdfd}.calendar-slot>b{font-size:16px;font-variant-numeric:tabular-nums}.calendar-slot button{border:0;border-radius:8px;font-size:14px;min-height:56px}.calendar-slot button small{font-size:12px}.calendar-slot button:hover:not(:disabled){filter:brightness(.97)}@media(max-width:1100px){.calendar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.shared-calendar{padding:16px}.calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-info{align-items:flex-start;gap:12px;flex-direction:column}.calendar-city-tabs{flex-wrap:nowrap;overflow:auto}.calendar-city-tabs button{flex-shrink:0}.calendar-sync{gap:6px}}

.project-choice-grid{display:flex;flex-wrap:wrap;gap:10px}.project-choice-grid label{display:flex;align-items:center;gap:6px;padding:9px 12px;background:#f2f8fb;border-radius:8px}.project-choice-grid input{width:auto}

/* High-contrast shared city calendar. */
.shared-calendar{border:1px solid #c4d9f4;background:#fff}.calendar-slot{border-color:#b9d0f0;background:#f5f9ff}.calendar-slot>b{color:#163b70}.calendar-slot button{background:#dcecff;color:#164e98;border:1px solid #aecbf0;font-weight:600}.calendar-slot button:hover:not(:disabled){background:#c6dfff;border-color:#397ce0}.calendar-slot button.mine{background:#2367cb;color:white;border-color:#2367cb}.calendar-slot button.mine small{color:#eef5ff}.calendar-slot button.occupied{background:#e0e7f2;color:#344965;border-color:#bdcbe0;opacity:1}.calendar-slot button.occupied small{color:#455c7b}.calendar-legend,.calendar-info strong span{color:#486487}.calendar-legend .free:before{background:#93bdf6}.calendar-legend .mine:before{background:#2367cb}.calendar-legend .occupied:before{background:#8298b8}
.appointment-batch-common{padding:12px 16px;margin-bottom:14px}.appointment-batch-common h3{margin-bottom:8px}.appointment-batch-heading{margin-bottom:14px}.appointment-batch-row{padding:12px 14px;margin-bottom:12px;border:1px solid #d4e1ef;border-radius:10px;background:#fbfdff}.appointment-batch-row>header{margin-bottom:10px}.appointment-batch-row>header h3{font-size:15px}.appointment-batch-fields{grid-template-columns:repeat(12,minmax(0,1fr));gap:10px 12px;margin-bottom:0}.appointment-batch-fields>label{grid-column:span 2}.appointment-batch-fields>label:nth-child(1),.appointment-batch-fields>label:nth-child(3){grid-column:span 3}.appointment-batch-fields>label:nth-child(4),.appointment-batch-fields>label:nth-child(5){grid-column:span 2}.appointment-batch-fields>label:nth-child(2){grid-column:span 2}.appointment-batch-fields>label:nth-child(1){grid-column:span 2}.appointment-batch-fields>label:nth-child(3){grid-column:span 4}.appointment-batch-fields>label:nth-child(6){grid-column:span 6}.appointment-batch-fields>.appointment-batch-note{grid-column:span 4}.appointment-batch-dialog .project-choice-grid{display:flex;gap:8px;flex-wrap:wrap}.appointment-batch-dialog .project-choice-grid label{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 10px;background:#edf4ff;border:1px solid #c4d9f4;border-radius:6px;color:#224f85}.appointment-batch-dialog .project-choice-grid input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;accent-color:#2367cb}.appointment-batch-dialog input,.appointment-batch-dialog select{min-height:36px}.appointment-batch-note textarea{height:36px;min-height:36px;padding:8px;resize:vertical}.appointment-batch-note textarea:focus{min-height:64px}.appointment-batch-footer{padding:10px 0}.batch-date-caption{font-size:12px}
@media(max-width:760px){.appointment-batch-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.appointment-batch-fields>label:nth-child(n){grid-column:span 1}.appointment-batch-fields>label:nth-child(6),.appointment-batch-fields>.appointment-batch-note{grid-column:1/-1}}

/* Web-only reporting navigation: grouped entries and contextual page tabs. */
.report-nav-group{padding:8px 0;border-bottom:1px solid #e4ebf4}.report-nav-group:last-child{border-bottom:0}.sidebar .report-nav-group h2{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;line-height:1.5;letter-spacing:0;color:#234c7d;background:#e8eff9;border-radius:5px;padding:9px 10px;margin:6px 0 9px}.sidebar .report-nav-group h2::before{content:"";display:block;flex:none;width:3px;height:16px;border-radius:2px;background:#2d67b4}.sidebar .report-nav-group+.report-nav-group{margin-top:9px;padding-top:12px}.sidebar .report-nav-group button{margin:2px 0;padding:8px 12px;font-size:13px;border-radius:6px}.sidebar .report-nav-group button.active{color:#215eb5;background:#e6effd;font-weight:600}.reports-menu>summary{font-weight:600}.report-context{background:#fff;border:1px solid #dfe7f2;border-radius:10px;margin:0 0 18px;padding:16px 18px 0}.report-context-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.report-location{font-size:12px;color:#517399}.report-context-heading p{margin:6px 0 14px;font-size:13px;color:#67798e;line-height:1.6}.report-context-label{font-size:12px;padding:5px 10px;border-radius:6px;background:#eff4fb;color:#365c90;white-space:nowrap}.report-context-tabs{display:flex;gap:24px;overflow-x:auto}.report-context-tabs button{flex-shrink:0;border:0;border-radius:0;background:none;color:#61758e;padding:10px 0 12px;border-bottom:3px solid transparent;font-size:13px}.report-context-tabs button[aria-current=page]{border-bottom-color:#2465c1;color:#2465c1;font-weight:600}.report-context-tabs button:focus-visible{outline:2px solid #2465c1;outline-offset:-2px}@media(max-width:640px){.report-context{padding:12px 12px 0}.report-context-tabs{gap:18px}.report-context-label{display:none}.sidebar .reports-menu .report-submenu{min-width:160px}.sidebar .report-nav-group button{display:block;width:100%;text-align:left}}

.log-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.log-heading h2{margin:0}.log-heading p{margin:8px 0 16px}.log-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:16px;background:#f6f8fc;border:1px solid #e3eaf3;border-radius:8px;margin:6px 0 14px}.log-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#64778d}.log-search{flex:1;min-width:220px}.log-panel td{vertical-align:top;font-size:13px}.log-time{font-size:12px;color:#64778d}.log-actor,.log-customer{margin-top:6px;font-weight:600}.log-panel .log-details{white-space:normal;min-width:260px;max-width:650px;line-height:1.7}.log-detail-body{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7fc;border-radius:6px;padding:12px;margin:8px 0}.log-pagination{margin-top:18px}.log-panel summary{cursor:pointer;color:#375b88}@media(max-width:640px){.log-heading{flex-wrap:wrap}.log-filters label{flex:1}.log-filters .log-search{flex-basis:100%}}

.log-panel .table-wrap{max-height:65vh;overflow:auto}.log-panel th{position:sticky;top:0;z-index:1;background:#f4f7fc}.log-panel td,.log-panel th{padding:10px 12px;font-size:12px}.log-panel tbody tr:nth-child(even){background:#f8fbff}.log-panel tbody tr:hover{background:#eef5ff}.log-panel .log-change{min-width:180px;max-width:300px;white-space:pre-wrap;overflow-wrap:anywhere}.log-panel .log-details{min-width:100px}.log-panel .log-details[open]{min-width:280px}.log-filters .log-search{min-width:180px}.log-filters select{max-width:240px}
/* Shared web tables: the same alignment and inset for headings and values. */
body .table-wrap table>thead>tr>th,
body .table-wrap table>tbody>tr>td,
body .table-wrap table>tfoot>tr>td{
 text-align:center!important;
 padding:12px 16px;
 border-right:1px solid #e2e9f2;
 border-bottom:1px solid #e2e9f2;
 font-variant-numeric:tabular-nums;
 vertical-align:middle;
}
body .table-wrap table>thead>tr>th{
 color:#28496f;
 background:#eaf1fb;
 font-size:13px;
 font-weight:700;
 border-bottom:2px solid #bfd0e6;
}
body .table-wrap table>thead>tr>th:first-child,
body .table-wrap table>tbody>tr>td:first-child,
body .table-wrap table>tfoot>tr>td:first-child{text-align:left!important}
body .table-wrap table>thead>tr>th:last-child,
body .table-wrap table>tbody>tr>td:last-child,
body .table-wrap table>tfoot>tr>td:last-child{border-right:0}
body .table-wrap table>tbody>tr:nth-child(even){background:#f7faff}
body .table-wrap table>tbody>tr:hover{background:#edf4ff}
body .table-wrap table>thead>tr>th button{color:inherit;font-weight:inherit;text-align:inherit}
body .log-panel .table-wrap table>thead>tr>th:nth-child(n+7),
body .log-panel .table-wrap table>tbody>tr>td:nth-child(n+7){text-align:left!important}
body .table-wrap th .report-sort-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100%;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;cursor:pointer;white-space:nowrap}
body .table-wrap th:first-child .report-sort-button{justify-content:flex-start}
.report-sort-arrow{font-size:12px;color:#7693b9;min-width:12px}
th[aria-sort] .report-sort-arrow{color:#175fba}
body .table-wrap th:has(.report-sort-button):hover{background:#dce9fa}
body .table-wrap th .report-sort-button:focus-visible{outline:2px solid #2465c1;outline-offset:5px}

.archive-identity .section-heading{flex-wrap:wrap}.archive-profile-actions{display:grid;grid-template-columns:repeat(3,auto);gap:8px;align-items:center}.archive-profile-actions button{height:34px;margin:0;padding:0 12px;line-height:32px;font-size:13px;white-space:nowrap}.refund-visit-options{display:grid;gap:10px;max-height:55vh;overflow:auto;margin:16px 0}.refund-visit-options button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:12px 16px;text-align:left}.refund-visit-options button span{font-size:13px;color:#59718b}

.reception-card-toggle{flex-wrap:wrap;gap:10px 16px}.reception-booked-project{color:#245472;font-size:13px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}

.archive-tags{display:inline-flex;flex-wrap:wrap;gap:5px;margin-left:8px;vertical-align:middle}.archive-tags span{font-size:11px;line-height:1.5;padding:2px 6px;border-radius:4px;background:#edf4fb;color:#4b7394;font-weight:normal}.archive-tags .refund-tag{background:#fff1e9;color:#ac6643}.archive-tags .medical-tag{background:#eef7f2;color:#3b8365}

.branch-customer{position:relative}.branch-customer>.reception-card-toggle{padding-right:58px}.customer-warning-button{width:36px;height:34px;padding:0;line-height:30px;font-size:23px;background:#f5f8fa;color:#8997a1;border:1px solid #d9e2e8;border-radius:6px}.branch-customer>.customer-warning-button{position:absolute;right:16px;top:16px}.customer-warning-button.active,.customer-warning-tag,.archive-tags .customer-warning-tag{background:linear-gradient(135deg,#ff6b6b 0%,#dc2626 100%);color:#fff;border:1px solid #dc2626}.customer-warning-tag{display:inline-block;font-size:12px;font-weight:650;padding:2px 6px;border-radius:4px;margin-left:7px}

.customer-warning-tag,.archive-tags .customer-warning-tag{width:12px;height:12px;min-width:12px;padding:0;border-radius:50%;vertical-align:middle}.customer-warning-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center}.customer-warning-button::before{content:"";display:block;width:16px;height:16px;border-radius:50%;background:#d6dee5}.customer-warning-button.active{background:transparent;border:0}.customer-warning-button.active::before{background:linear-gradient(135deg,#ff6b6b,#dc2626)}

/* Clear separation between the overview background, cards and fold headings. */
.main:has(.home-dashboard){background:#dfe8ef}
.home-dashboard .home-group:not(.home-group-summary):not(.home-group-analysis){background:#fff;border:1px solid #c4d4df;box-shadow:0 2px 6px #24465e0a}
.home-dashboard .home-group-analysis details.overview-section{background:#fff;border:1px solid #b9cedd;border-radius:12px;padding:12px;box-shadow:0 2px 6px #24465e0c}
.home-dashboard .home-group-analysis details.overview-section>summary{background:#e7f1f8;border-radius:7px;padding:12px 14px!important;min-height:50px}
.home-dashboard .home-group-analysis details.overview-section>summary h2{color:#244a62;font-weight:650}
.home-dashboard .home-group-analysis .overview-caret{color:#35738f}
.home-dashboard .home-workspaces>button,.home-dashboard .city-appointment-list>button{background:#eaf2f7;border:1px solid #d1dfe9}
.home-dashboard .home-workspaces small,.home-dashboard .city-appointment-list>button>span,.home-dashboard .overview-section-meta{color:#587080}
.home-dashboard .home-group-heading h2{color:#244a62}
.home-dashboard .home-group-summary .home-group-heading h2{color:#d2e6ed}

/* Shared fold-card geometry; preview sections are mounting containers only. */
.home-dashboard .home-group-analysis{gap:16px}
.home-dashboard .home-group-analysis>section:is(#performance-preview,#appointment-preview,#finance-preview,#acquisition-preview){padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0}
.home-dashboard .home-group-analysis details.overview-section{margin:0;width:100%;box-sizing:border-box;padding:12px;border:1px solid #b9cedd;border-radius:12px}
.home-dashboard .home-group-analysis details.overview-section>summary{min-height:50px;box-sizing:border-box;margin:0;padding:12px 14px!important;gap:12px;flex-wrap:nowrap}
.home-dashboard .home-group-analysis details.overview-section>summary h2{font-size:14px;line-height:22px;margin:0;font-weight:650}
.home-dashboard .home-group-analysis details.overview-section>summary .overview-caret{font-size:22px;flex:0 0 20px}

.home-dashboard .home-group-analysis details.overview-section:last-child{border-bottom:1px solid #b9cedd}

.panel-color-settings{border:1px solid #cedde7;border-left:8px solid #e7f1f8;border-radius:8px;padding:12px;margin:14px 0;background:#f6f9fb;color:#31556a}.panel-color-settings h3{margin:0 0 10px}.panel-color-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.panel-color-controls label{display:flex;align-items:center;gap:8px}.panel-color-controls input[type=color]{width:48px!important;height:32px!important;padding:2px!important;cursor:pointer}.panel-color-swatches{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.panel-color-swatches button{padding:5px 9px;font-size:12px;color:#31556a;border:1px solid #c4d4df}.panel-color-settings p{font-size:12px;margin:10px 0 0;color:#5d7484}
.home-dashboard .home-group-analysis details[data-custom-background=true]{color:var(--overview-ink)}
.home-dashboard details[data-custom-background=true]>.muted,.home-dashboard details[data-custom-background=true]>.fp-note{color:var(--overview-ink)}
.home-dashboard details[data-custom-background=true] #home-trend-chart,.home-dashboard details[data-custom-background=true] .fp-chart{background:var(--overview-plot);border-radius:8px}

.aq-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0}.aq-controls input,.aq-controls select{width:auto;max-width:240px}.aq-tabs{display:flex;gap:4px}.aq-tabs .active{background:#1688a8;color:white}.aq-note{font-size:12px;color:#627d8d;line-height:1.6}.aq-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px}.aq-chart{padding:14px;background:#f1f6fa;border:1px solid #dce6ed;border-radius:8px;min-width:0}.aq-chart header{display:flex;justify-content:space-between;gap:8px;font-size:14px}.aq-chart strong{font-size:20px}.aq-chart small{display:block;color:#6d8593;margin-top:8px;font-size:11px}.aq-chart svg{display:block;width:100%;height:auto;margin-top:12px}.aq-chart svg text{fill:#627d8d;font-size:20px}.aq-list{max-height:260px;overflow:auto;margin-top:14px;overscroll-behavior:contain}.aq-list table{width:100%;font-size:12px}.aq-list th{position:sticky;top:0;background:#e7f1f8}.aq-list button{text-align:left;white-space:normal}.aq-list td{white-space:nowrap}@media(max-width:1000px){.aq-charts{grid-template-columns:1fr}.aq-chart svg{max-width:760px;margin:12px auto 0}}

.aq-focus{font-size:13px;color:#31556a;min-height:22px;line-height:22px;margin-top:8px;white-space:normal}.aq-chart svg{touch-action:pan-y;cursor:crosshair}.aq-chart svg:focus-visible{outline:2px solid #1688c9;outline-offset:2px}

.sidebar [data-nav="refunds"]{position:relative;padding-right:36px}.refund-count-badge{position:absolute;right:8px;top:6px;min-width:18px;padding:1px 5px;background:#e34d59;color:#fff;border-radius:12px;text-align:center;font-size:11px;line-height:18px}

.salary-settings{width:min(720px,92vw);max-height:88vh;overflow:auto;border:1px solid #bdd2e0;border-radius:14px;padding:24px;color:#25465b;background:#f7fbfd}
.salary-settings h3{margin:22px 0 12px;padding-bottom:8px;border-bottom:1px solid #d9e5ee}
.salary-field{display:flex;align-items:center;gap:12px;margin:12px 0}.salary-field label{flex:1}.salary-field input[type=number]{width:170px;min-width:0;padding:10px;border:1px solid #bdd2e0;border-radius:6px}.salary-field input[type=checkbox],.salary-employees input{width:auto}
.salary-field input:disabled{background:#e9eff3;color:#748593}.salary-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.salary-employees{max-height:220px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 0}.salary-settings .muted{line-height:1.7}.salary-settings .error{color:#bd3333}
@media(max-width:600px){.salary-settings{padding:16px}.salary-field{gap:6px}.salary-field input[type=number]{width:110px}.salary-employees{grid-template-columns:1fr}}

/* Hospital settlement dialog: isolated from other medical forms. */
dialog.hospital-rates-dialog{width:min(760px,94vw);padding:24px;max-height:90vh;background:#f8fbfd;border:1px solid #cddde8;color:#25465b}
.hospital-rates-heading{padding-bottom:18px;border-bottom:1px solid #dbe6ed;margin-bottom:18px}.hospital-rates-heading>span{font-size:12px;color:#6b8799;letter-spacing:.5px}.hospital-rates-heading h2{margin:5px 0 8px;font-size:22px;color:#1d4055}.hospital-rates-heading p{margin:0;font-size:13px;color:#6b8190}
.hospital-rate-list{display:grid;gap:10px;max-height:270px;overflow:auto;padding-right:3px}.hospital-rate-card{display:grid;grid-template-columns:minmax(120px,1.25fr) .65fr 1fr auto;align-items:center;gap:16px;padding:16px;background:#fff;border:1px solid #dce7ee;border-radius:10px}.hospital-rate-city b{font-size:16px;display:block}.hospital-rate-city small{font-size:12px;color:#8093a0;display:block;margin-top:4px}.hospital-rate-metric>span{display:block;font-size:12px;color:#758995;white-space:nowrap}.hospital-rate-metric strong{display:block;font-size:23px;font-weight:650;line-height:1.5;font-variant-numeric:tabular-nums}.hospital-rate-metric strong small{font-size:13px;margin-left:3px}.hospital-rate-share strong{color:#1284a3}.hospital-rate-card button{padding:7px 13px;font-size:13px;color:#147d9b;background:#f0f8fc;border-color:#cce3ee}.hospital-rate-add{margin:14px 0 0;color:#147d9b;border-style:dashed;background:transparent}.hospital-rate-empty{margin:0;padding:20px;text-align:center;color:#78909e;background:#fff;border:1px dashed #cddde8;border-radius:10px}
#hospital-rate-editor:not(:empty){margin-top:18px;padding:20px;border:1px solid #c8dfe9;background:#edf5f9;border-radius:12px}.hospital-rate-editor-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px}.hospital-rate-editor-heading h3{margin:0;font-size:16px}.hospital-rate-editor-heading span{font-size:12px;color:#718997}.hospital-rate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#med-form.hospital-rates-form .hospital-rate-fields label{margin:0;font-size:13px;color:#48677b}#med-form.hospital-rates-form .hospital-rate-fields input,#med-form.hospital-rates-form .hospital-rate-fields select{height:42px;margin-top:7px;font-size:15px;border-color:#cbdde7;background:#fff}.hospital-rate-note{font-size:12px;line-height:1.8;color:#708694;margin:16px 0}.hospital-rate-editor-actions{display:flex;justify-content:flex-end;gap:10px}.hospital-rate-editor-actions .primary{min-width:110px}.hospital-rates-form .error:empty{display:none}.hospital-rates-footer{display:flex;justify-content:flex-end;border-top:1px solid #dbe6ed;margin-top:20px;padding-top:16px}.hospital-rates-footer button{min-width:90px}
@media(max-width:560px){dialog.hospital-rates-dialog{padding:16px}.hospital-rates-heading h2{font-size:19px}.hospital-rate-card{grid-template-columns:minmax(100px,1fr) 55px 85px;gap:10px;padding:12px}.hospital-rate-card button{grid-column:1/-1;justify-self:end;padding:5px 14px}.hospital-rate-metric strong{font-size:20px}.hospital-rate-fields{grid-template-columns:1fr;gap:12px}#hospital-rate-editor:not(:empty){padding:14px}.hospital-rate-list{max-height:300px}}

.hospital-rate-card-fixed{grid-column:1/-1;display:flex;gap:10px 20px;flex-wrap:wrap;border-top:1px solid #e6edf2;padding-top:10px;font-size:12px;color:#587587}.hospital-rate-card-fixed span{color:#7a909e}.hospital-rate-card-fixed b{font-weight:500}.hospital-rate-card>button{grid-column:4;grid-row:1}.hospital-rate-card-heading{margin:20px 0 14px;padding-top:16px;border-top:1px solid #cddfe8;color:#345d72;font-size:14px}@media(max-width:560px){.hospital-rate-card>button{grid-column:1/-1;grid-row:auto}.hospital-rate-card-fixed{gap:8px 12px}}

.refund-order-list{display:grid;gap:12px;margin:18px 0}.refund-order-list button{display:grid;text-align:left;gap:8px;padding:18px;border:1px solid #c9dce8;border-radius:12px}.refund-order-list button.selected{background:#e6f5fa;border-color:#1388aa}.order-refund-info{background:#fff4e8;border-left:3px solid #d69a53;border-radius:6px;padding:12px;margin-top:12px;color:#79552b}.order-refund-info p{margin:6px 0}
#order-refund-form .form-grid>label{display:flex;flex-direction:column;align-items:stretch;gap:8px}#order-refund-form textarea{width:100%;min-height:90px;box-sizing:border-box}#order-refund-form .form-grid{margin-bottom:18px}
