/* App-wide presentation. Screen-only rules preserve dedicated A4 print documents. */
@media screen{
.ypc.ypc-app{--ui-text:#19334f;--ui-muted:#53677e;--ui-line:#d8e2ed;--ui-bg:#f3f6fa;color:var(--ui-text);font-size:14px;line-height:1.5;max-width:none}
.ypc-frontend{background:#f3f6fa}.ypc-app .ypc-header{padding:14px 20px;border-radius:10px;background:var(--ypc-primary);box-shadow:0 2px 8px #17324d0b}.ypc-app .ypc-header h1{font-size:20px;letter-spacing:.025em}.ypc-app .ypc-header p{font-size:12px;margin-top:3px;opacity:.9}.ypc-app .ypc-header-tools{font-size:13px}.ypc-app .ypc-header-tools button{padding:7px 10px;min-height:36px}
.ypc-app .ypc-app-layout{grid-template-columns:224px minmax(0,1fr);gap:18px}.ypc-app.ypc-sidebar-compact .ypc-app-layout{grid-template-columns:72px minmax(0,1fr)}.ypc-app .ypc-sidebar{padding:8px;border:1px solid var(--ui-line);box-shadow:0 2px 10px #18324f06}.ypc-app .ypc-sidebar .ypc-nav{gap:3px}.ypc-app .ypc-sidebar .ypc-nav a{border-radius:7px;min-height:40px;font-size:13px;font-weight:500;color:#354e69;padding:9px 10px}.ypc-app .ypc-sidebar .ypc-nav a:hover{background:#f0f5fb}.ypc-app .ypc-sidebar .ypc-nav a[aria-current=page]{background:var(--ypc-light);color:var(--ypc-primary);box-shadow:inset 3px 0 var(--ypc-primary);font-weight:700}.ypc-app .ypc-sidebar .dashicons{font-size:18px}
.ypc-app .ypc-test{padding:9px 13px;font-size:12px;line-height:1.5;margin-bottom:18px}.ypc-app .ypc-panel{padding:20px;margin:16px 0;border:1px solid var(--ui-line);border-radius:10px;box-shadow:0 2px 7px #15334b05}.ypc-app h2{font-size:19px;line-height:1.4;margin:0 0 14px;font-weight:650}.ypc-app h3{font-size:15px;line-height:1.4;background:var(--ypc-light,#edf4ff);border-left:3px solid var(--ypc-primary);padding:10px 12px;margin:22px 0 14px}.ypc-app p{line-height:1.6}.ypc-app .ypc-muted{font-size:13px;color:var(--ui-muted)}.ypc-app .ypc-panel>p{font-size:13px;color:var(--ui-muted)}
.ypc-app .ypc-grid{gap:16px 20px;margin:16px 0;grid-template-columns:repeat(3,minmax(0,1fr))}.ypc-app label{font-size:13px;line-height:1.5;font-weight:600;color:var(--ui-text)}.ypc-app label small{display:block;font-weight:400;color:var(--ui-muted);font-size:12px;margin-top:5px}.ypc-app input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.ypc-app select{font-family:inherit;font-size:14px;height:42px;min-height:42px;line-height:20px;padding:9px 11px;color:var(--ui-text);background-color:white;border:1px solid #9fb0c4;border-radius:6px;box-sizing:border-box;margin-top:5px}.ypc-app select{padding-top:0;padding-bottom:0;padding-right:28px;line-height:normal}.ypc-app select[multiple]{height:auto;min-height:120px;padding:6px}.ypc-app select option{color:#19334f;background:#fff}.ypc-app textarea{font-family:inherit;font-size:14px;line-height:1.5;min-height:96px;padding:10px 11px;color:var(--ui-text);background:#fff;border:1px solid #9fb0c4;border-radius:6px}.ypc-app input[type=checkbox],.ypc-app input[type=radio]{width:17px;height:17px;min-height:17px;accent-color:var(--ypc-primary);vertical-align:middle;flex-shrink:0}.ypc-app input[type=color]{height:44px;max-width:160px;padding:4px}.ypc-app input[type=file]{height:auto;min-height:44px;white-space:normal}.ypc-app input::placeholder,.ypc-app textarea::placeholder{color:#6c7d90;opacity:1}.ypc-app input:disabled,.ypc-app select:disabled,.ypc-app textarea:disabled{background:#f1f4f7;color:#596a7c;opacity:1}.ypc-app [aria-invalid=true]{border-color:#b42318!important}.ypc-app .ypc-field-error{display:block;color:#a52624;font-size:12px;margin-top:4px}.ypc-app [hidden]{display:none!important}
.ypc-app button,.ypc-app .ypc-btn{font-family:inherit;line-height:1.4}.ypc-app .ypc-btn{padding:9px 15px;font-size:13px;min-height:38px;border-radius:6px}.ypc-app button:not(.ypc-btn):not(.ag-cell):not(.ag-patient):not(.ypc-section-button){cursor:pointer}.ypc-app button:disabled{cursor:default;opacity:.6}.ypc-app .ypc-actions{gap:10px;flex-wrap:wrap;margin-top:18px}.ypc-app .ypc-actions>a{font-size:13px}.ypc-app .ypc-check{display:flex;align-items:center;gap:8px}.ypc-app .ypc-check input{margin:0}.ypc-app details{border-radius:6px}.ypc-app summary{cursor:pointer;color:var(--ypc-primary);font-weight:600;font-size:13px}.ypc-app details[open]>summary{margin-bottom:12px}.ypc-app .ypc-error,.ypc-app .ypc-success{font-size:14px;padding:12px 15px;border-radius:6px}
/* Filters keep labels and fields aligned without moving any submitted controls. */
.ypc-app .ypc-filter-bar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:14px;background:#f7f9fc;border:1px solid var(--ui-line);border-radius:8px;margin:12px 0 18px}.ypc-app .ypc-filter-bar>.ypc-grid{display:contents}.ypc-app .ypc-filter-bar label{flex:1 1 150px;min-width:130px;max-width:360px}.ypc-app .ypc-filter-bar input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.ypc-app .ypc-filter-bar select{width:100%;max-width:none;margin-top:5px}.ypc-app .ypc-filter-bar>.ypc-btn{height:42px}.ypc-app .ypc-filter-bar>a{font-size:13px;padding:10px 0}.ypc-app .ypc-search{gap:10px}.ypc-app .ypc-search label{width:auto;flex:1 1 230px}.ypc-app .ypc-search input:not([type=hidden]){width:100%}
/* Common page tabs and patient section navigation. */
.ypc-app .ypc-workspace-tabs,.ypc-app .ypc-user-tabs,.ypc-app .ypc-patient-buttons,.ypc-app .ypc-finance-tabs{display:flex;gap:4px;flex-wrap:wrap;border:0;border-bottom:1px solid var(--ui-line);padding:0;margin:0 0 18px;background:transparent;box-shadow:none;border-radius:0}.ypc-app .ypc-workspace-tabs button,.ypc-app .ypc-user-tabs a,.ypc-app .ypc-patient-buttons .ypc-btn,.ypc-app .ypc-finance-tabs a{background:transparent;color:#51657b;border:0;border-bottom:3px solid transparent;border-radius:0;padding:11px 13px;font-size:13px;font-weight:600;min-height:42px;line-height:1.4;white-space:nowrap;text-decoration:none;cursor:pointer}.ypc-app .ypc-workspace-tabs [aria-selected=true],.ypc-app .ypc-user-tabs [aria-current=page],.ypc-app .ypc-patient-buttons [aria-pressed=true],.ypc-app .ypc-finance-tabs [aria-current=page]{color:var(--ypc-primary);background:var(--ypc-light);border-bottom-color:var(--ypc-primary)}.ypc-app .ypc-workspace-tabs button:hover,.ypc-app .ypc-patient-buttons .ypc-btn:hover,.ypc-app .ypc-finance-tabs a:hover,.ypc-app .ypc-user-tabs a:hover{background:var(--ypc-light)}
/* Compact, readable lists with room for permissions and row actions. */
.ypc-app .ypc-table{border:1px solid var(--ui-line);border-radius:8px;overflow:auto;max-width:100%;margin-top:12px;scrollbar-gutter:stable}.ypc-app .ypc-table table{font-size:13px}.ypc-app .ypc-table th{background:var(--ypc-light,#edf4ff);padding:11px 12px;font-size:12px;font-weight:700;line-height:1.45;white-space:normal;color:#2c4460}.ypc-app .ypc-table td{padding:10px 12px;line-height:1.55;vertical-align:middle;min-width:70px}.ypc-app .ypc-table tbody tr:hover{background:#f7faff}.ypc-app .ypc-table tbody tr.ypc-row-focus{background:#eaf2ff;box-shadow:inset 3px 0 var(--ypc-primary)}.ypc-app .ypc-table td a{font-weight:600;text-underline-offset:3px}.ypc-app .ypc-table td form{margin:5px 0}.ypc-app .ypc-table td button{font-size:12px;padding:6px 9px;min-height:32px;border-radius:5px}.ypc-app .ypc-table th:first-child{min-width:100px}.ypc-app #ypc-permission-grid td{min-width:64px;text-align:center}.ypc-app #ypc-permission-grid th{min-width:64px}.ypc-app #ypc-permission-grid th:first-child{min-width:180px;position:sticky;left:0;background:var(--ypc-light,#edf4ff);z-index:1}.ypc-app .ypc-status{display:inline-flex;align-items:center;padding:3px 9px;border-radius:20px;font-size:12px;font-weight:600;white-space:nowrap}.ypc-app .ypc-status-positive{background:#dcf3e5;color:#155b35}.ypc-app .ypc-status-negative{background:#fde2e0;color:#8c2525}.ypc-app .ypc-status-warning{background:#fff1bc;color:#694d00}.ypc-app .ypc-status-neutral{background:#edf0f3;color:#4b5968}
/* Dashboard and financial summaries retain branch/currency boundaries. */
.ypc-app .ypc-stats{gap:12px;margin:16px 0}.ypc-app .ypc-stats>div{background:#fff;border:1px solid var(--ui-line);text-align:left;padding:18px;border-radius:10px;border-top:3px solid var(--ypc-primary)}.ypc-app .ypc-stats strong{font-size:28px}.ypc-app .ypc-stats span{font-size:13px;color:var(--ui-muted)}.ypc-app .ypc-cards{gap:12px;margin:16px 0}.ypc-app .ypc-card{padding:18px;border-radius:10px;box-shadow:none}.ypc-app .ypc-card h2{font-size:16px;margin:10px 0 6px}.ypc-app .ypc-card p{font-size:13px;color:var(--ui-muted)}.ypc-app .ypc-fee-patient-banner{background:var(--ypc-light);border:1px solid var(--ui-line);border-left:4px solid var(--ypc-primary);border-radius:8px;padding:16px 20px}.ypc-app .ypc-fee-patient-banner h2{font-size:24px;margin:5px 0}.ypc-app .ypc-finance-summary{gap:12px}.ypc-app .ypc-finance-summary .ypc-panel{margin:0}.ypc-app .ypc-upload{border:1px dashed #a8b9cb;background:#fafcfe;border-radius:8px;padding:14px}.ypc-app .ypc-upload p{font-size:12px;color:var(--ui-muted)}.ypc-app .ypc-footer{font-size:12px;color:#60748a;padding:18px}
/* Existing save docks remain tied to the active form. */
.ypc-app-screen .ypc-floating-actions{border:1px solid #d8e2ed;background:#fff;box-shadow:0 -3px 20px #203c5414;padding:10px 16px;gap:10px}.ypc-app-screen .ypc-floating-actions .ypc-btn{padding:9px 14px;min-height:38px;font-size:13px;border-radius:6px}.ypc-app-screen .ypc-floating-actions a{font-size:13px}.ypc-app .ypc-users-dock{padding:12px 16px;border:1px solid var(--ui-line);box-shadow:0 -3px 20px #203c5414}.ypc-app-screen .ypc-dock-sections .ypc-section-button{font-size:12px;padding:7px 10px;min-height:34px}.ypc-auth-card{border:1px solid #d8e2ed;border-radius:14px;box-shadow:0 12px 40px #1635500d;padding:32px}.ypc-auth-card h1{font-size:24px}.ypc-auth-card label{font-size:14px}.ypc-auth-card input[type=text],.ypc-auth-card input[type=password]{line-height:22px;min-height:46px;padding:11px 12px}.ypc-auth-card input[type=submit]{min-height:44px;font-weight:600}
@media(max-width:1100px){.ypc-app .ypc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ypc-app .ypc-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ypc-app .ypc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:782px){.ypc-app .ypc-app-layout,.ypc-app.ypc-sidebar-compact .ypc-app-layout{display:block}.ypc-app .ypc-panel{padding:15px;margin:12px 0}.ypc-app .ypc-header{padding:12px}.ypc-app .ypc-header h1{font-size:18px}.ypc-app .ypc-filter-bar{gap:10px;padding:12px}.ypc-app .ypc-filter-bar label{flex:1 1 150px;max-width:none}.ypc-app .ypc-workspace-tabs,.ypc-app .ypc-user-tabs,.ypc-app .ypc-patient-buttons{flex-wrap:nowrap;overflow:auto}.ypc-app .ypc-finance-tabs{gap:2px}.ypc-app .ypc-finance-tabs a{padding:9px 10px;font-size:12px}.ypc-app .ypc-table th,.ypc-app .ypc-table td{padding:9px 10px}.ypc-app .ypc-table{scrollbar-gutter:auto}}
@media(max-width:520px){.ypc-app .ypc-grid{grid-template-columns:minmax(0,1fr)}.ypc-app .ypc-cards{grid-template-columns:minmax(0,1fr)}.ypc-app .ypc-stats{gap:8px}.ypc-app .ypc-stats>div{padding:13px}.ypc-app .ypc-filter-bar label{flex-basis:100%}.ypc-app .ypc-fee-patient-banner h2{font-size:21px}.ypc-app .ypc-header-tools{flex-wrap:wrap}.ypc-app input:not([type=checkbox]):not([type=radio]),.ypc-app select,.ypc-app textarea{font-size:16px}.ypc-app .ypc-users-dock{padding:10px}.ypc-app-screen .ypc-floating-actions{padding:10px}}
}
@media screen{.ypc-app .ypc-session-rule{border:1px solid #d8e2ed;border-radius:9px;padding:18px;margin:20px 0;background:#fff}.ypc-app .ypc-session-rule h3{margin-top:0}.ypc-app .ypc-session-toggle,.ypc-app .ypc-session-maximum{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0}.ypc-app .ypc-session-toggle{border-bottom:1px solid #e4eaf1}.ypc-app .ypc-session-toggle small,.ypc-app .ypc-session-maximum small{display:block;font-weight:400;margin-top:5px}.ypc-app #ypc-session-max{width:96px;flex-shrink:0}.ypc-app #ypc-session-enabled{appearance:none;width:42px;height:24px;min-height:24px;border-radius:20px;background:#a5b3c4;border:0;position:relative;cursor:pointer;margin:0}.ypc-app #ypc-session-enabled:before{content:'';display:block;position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;top:3px;left:3px}.ypc-app #ypc-session-enabled:checked{background:var(--ypc-primary)}.ypc-app #ypc-session-enabled:checked:before{left:21px}.ypc-app .ypc-session-rule p{font-size:12px;color:#53677e}}

/* v0.23: task-oriented dashboard and grouped application navigation. */
.ypc-nav-heading{padding:18px 12px 6px;color:#53647b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.ypc-sidebar-compact .ypc-nav-heading{font-size:0;padding:8px 0 0;margin:6px 10px;border-top:1px solid #dbe3ee}.ypc-home{color:#172b49}.ypc-home-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0}.ypc-home-heading h2{font-size:26px;margin:6px 0!important;line-height:1.25}.ypc-home-heading p{margin:0;color:#52647a}.ypc-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#506583}.ypc-home-tag{border:1px solid #cad8ec;border-radius:20px;padding:8px 14px;background:#f1f6fd;font-weight:600;font-size:12px}.ypc-home-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.ypc-home-stat{background:#fff;border:1px solid #dce4ee;border-top:3px solid var(--home-ink);border-radius:12px;padding:20px}.ypc-home-stat span{display:block;font-weight:600;color:#4b5d72;font-size:13px}.ypc-home-stat strong{display:block;font-size:34px;line-height:1.3;margin-top:8px;color:var(--home-ink)}.ypc-tone-blue{--home-ink:var(--ypc-primary,#174ea6);--home-tint:var(--ypc-light,#edf4ff)}.ypc-tone-green{--home-ink:var(--ypc-primary,#174ea6);--home-tint:var(--ypc-light,#edf4ff)}.ypc-tone-purple{--home-ink:var(--ypc-primary,#174ea6);--home-tint:var(--ypc-light,#edf4ff)}.ypc-tone-amber{--home-ink:var(--ypc-primary,#174ea6);--home-tint:var(--ypc-light,#edf4ff)}.ypc-tone-slate{--home-ink:var(--ypc-primary,#174ea6);--home-tint:var(--ypc-light,#edf4ff)}.ypc-home h3{font-size:18px;margin:0 0 16px!important}.ypc-home-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ypc-home .ypc-home-action{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #dce4ee;border-radius:10px;background:#fff;color:#18324f;text-decoration:none;font-weight:650;min-height:62px;box-sizing:border-box}.ypc-home-action .dashicons{background:var(--home-tint);color:var(--home-ink);padding:10px;border-radius:9px;box-sizing:content-box}.ypc-home-action>span:last-child{margin-left:auto;color:#64748b}.ypc-home-action:hover{border-color:var(--home-ink);background:var(--home-tint)}.ypc-home-section{margin-bottom:24px}.ypc-home-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:20px}.ypc-home .ypc-panel{min-width:0;border-radius:12px;padding:22px;background:#fff}.ypc-home-panel-heading{display:flex;gap:12px;align-items:baseline;justify-content:space-between;flex-wrap:wrap}.ypc-home-panel-heading a{font-size:13px}.ypc-home .ypc-table table{min-width:0}.ypc-home .ypc-table td{overflow-wrap:anywhere}.ypc-home-area+ .ypc-home-area{margin-top:18px}.ypc-home-area h4{display:inline-block;margin:0 0 8px;padding:5px 9px;font-size:12px;background:var(--home-tint);color:var(--home-ink);border-radius:5px}.ypc-home-area a{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #eef2f7;text-decoration:none;color:#223e60}.ypc-home-settings summary{font-weight:700;cursor:pointer;min-height:24px}.ypc-home-setting-links{display:flex;flex-wrap:wrap;gap:12px 24px;padding-top:18px}.ypc-home-empty{padding:30px 0;color:#53647b}.ypc-home a:focus-visible,.ypc-home summary:focus-visible{outline:3px solid var(--ypc-primary,#174ea6);outline-offset:4px}
@media(max-width:1100px){.ypc-home-columns{grid-template-columns:1fr}.ypc-home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ypc-home-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ypc-home-stat{padding:14px}.ypc-home-heading h2{font-size:22px}.ypc-home-tag{display:none}.ypc-home-actions{grid-template-columns:1fr}.ypc-home .ypc-panel{padding:16px}.ypc-home .ypc-table{overflow:auto}.ypc-home .ypc-table table{min-width:380px}}
@media print{.ypc-home-actions,.ypc-home-settings{display:none!important}.ypc-home-columns{display:block}.ypc-home-heading{margin:0 0 3mm}.ypc-home-stats{gap:3mm;margin-bottom:3mm}.ypc-home-stat{padding:2mm}.ypc-home-stat strong{font-size:18pt}}

/* v0.23.1: compact overview; shortcut heading removed in markup. */
.ypc-home-stats{gap:12px;margin-bottom:16px}.ypc-home-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:9px}.ypc-home-stat strong{margin:0;font-size:27px;line-height:1.2}.ypc-home-stat span{font-size:12px;line-height:1.4}.ypc-home-section{margin-bottom:20px}
@media(max-width:600px){.ypc-home-stat{padding:10px 12px;gap:8px}.ypc-home-stat strong{font-size:24px}.ypc-home .ypc-home-recent table{min-width:480px}}

/* Dashboard enquiry alerts: independent, accessible filter links. */
.ypc-home .ypc-enquiry-card{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px 16px}.ypc-enquiry-heading{display:flex;gap:12px;align-items:center;color:#18324f!important;text-decoration:none;font-weight:650}.ypc-enquiry-heading .dashicons{padding:7px}.ypc-enquiry-arrow{margin-left:auto;color:#64748b}.ypc-enquiry-alerts{display:flex;flex-wrap:wrap;gap:7px;padding-left:46px}.ypc-enquiry-alerts .ypc-enquiry-badge{display:inline-flex;gap:5px;align-items:center;border-radius:20px;padding:3px 9px;font-size:12px;line-height:1.4;text-decoration:none;font-weight:600;border:1px solid transparent}.ypc-enquiry-alerts .ypc-enquiry-new{background:#fff0ed;color:#a42b25;border-color:#f4c7c2}.ypc-enquiry-alerts .ypc-enquiry-pending{background:#fff4d7;color:#785000;border-color:#ecd69a}.ypc-enquiry-alerts .ypc-enquiry-badge.is-zero{background:#f1f5f9;color:#52677e;border-color:#dce4ee}.ypc-enquiry-heading:focus-visible,.ypc-enquiry-badge:focus-visible{outline:2px solid var(--ypc-primary,#174ea6);outline-offset:3px}.ypc-enquiry-badge:hover{text-decoration:underline!important}.ypc-enquiry-count-error{font-size:12px;color:#a42b25}

/* Grouped sidebar: links remain available when JavaScript is disabled. */
.ypc-app .ypc-nav-group{margin:3px 0}.ypc-app .ypc-nav-group-toggle{display:flex;align-items:center;gap:9px;width:100%;box-sizing:border-box;padding:11px 9px;min-height:44px;border:0;border-radius:7px;background:transparent;color:#354e69;text-align:left;font-family:inherit;font-size:12px;font-weight:600;line-height:1.35;cursor:pointer}.ypc-app .ypc-nav-group-toggle .ypc-nav-label{flex:1;font-size:12px;font-weight:650}.ypc-app .ypc-nav-group-toggle:hover{background:#f0f5fb}.ypc-app .ypc-nav-group.is-current>.ypc-nav-group-toggle{color:var(--ypc-primary);background:var(--ypc-light)}.ypc-app .ypc-nav-chevron{margin-left:auto;font-size:18px;transition:transform .15s}.ypc-app .ypc-nav-group-toggle[aria-expanded=true] .ypc-nav-chevron{transform:rotate(180deg)}.ypc-app .ypc-nav-children{margin:3px 0 8px 9px;padding-left:5px;border-left:1px solid #dbe3ee}.ypc-app .ypc-nav-children[hidden]{display:none!important}.ypc-app .ypc-nav-count{background:#b42318;color:white;border-radius:10px;padding:2px 5px;font:700 10px/1.3 sans-serif}.ypc-app .ypc-nav-group-toggle:focus-visible,.ypc-app .ypc-nav a:focus-visible{outline:3px solid var(--ypc-primary);outline-offset:1px}.ypc-app.ypc-sidebar-compact .ypc-nav-group-toggle{justify-content:center;position:relative}.ypc-app.ypc-sidebar-compact .ypc-nav-chevron{display:none}.ypc-app.ypc-sidebar-compact .ypc-nav-count{position:absolute;right:0;top:0;font-size:9px}

.ypc-fee-alerts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}.ypc-home .ypc-fee-alert{display:flex;flex-direction:column;gap:6px;padding:15px 18px;border:1px solid #e8d5ac;border-left:4px solid #a56b05;border-radius:9px;background:#fffbf2;color:#744d08;text-decoration:none}.ypc-home .ypc-fee-alert-red{background:#fff7f6;border-color:#edc7c2;border-left-color:#b42318;color:#92251d}.ypc-fee-alert-title{display:flex;justify-content:space-between;font-weight:700}.ypc-fee-alert strong{font-size:20px}.ypc-fee-alert-amounts{display:flex;gap:8px 18px;flex-wrap:wrap;font-weight:600}.ypc-fee-alert small{font-size:12px}.ypc-fee-alert:hover{box-shadow:0 3px 12px #18324f18}.ypc-fee-alert:focus-visible{outline:3px solid var(--ypc-primary,#174ea6);outline-offset:3px}@media(max-width:520px){.ypc-fee-alerts{grid-template-columns:1fr}}

.ypc-linked-person{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px 20px;margin:20px 0}.ypc-linked-person dt{font-size:12px;color:#52647a;font-weight:600}.ypc-linked-person dd{margin:4px 0;font-weight:600;overflow-wrap:anywhere}

.ypc-patient-list .ypc-list-classes{min-width:190px;max-width:290px;white-space:normal}.ypc-class-chip{display:block;padding:5px 8px;margin:0 0 5px;border:1px solid #dae3ee;border-radius:6px;text-decoration:none;background:#f5f8fc;overflow-wrap:anywhere}.ypc-class-chip small{display:block;font-size:10px;color:#5c6d83}.ypc-class-chip.is-current{border-left:3px solid var(--ypc-primary);font-weight:650}.ypc-class-chip.is-inactive{background:#f4f4f4;color:#687180}.ypc-patient-list .ypc-list-diseases{width:95px;min-width:80px;max-width:130px;white-space:normal;font-size:12px}.ypc-list-diseases summary{cursor:pointer;color:var(--ypc-primary);font-weight:600}.ypc-list-diseases ul{padding-left:15px;margin:8px 0;overflow-wrap:anywhere}

/* Compact dashboard dues and finance overview. */
.ypc-home-fee-row{display:flex;gap:12px;margin:0 0 16px}.ypc-home-fee-row:empty{display:none}.ypc-home-fee-row>.ypc-fee-alerts{flex:1 1 0;min-width:0;margin:0;align-items:stretch}.ypc-home-fee-row .ypc-fee-alert{padding:12px 14px;gap:5px;min-width:0;overflow-wrap:anywhere}.ypc-home-fee-row .ypc-fee-alert-title{font-size:12px}.ypc-home-fee-row .ypc-fee-alert strong{font-size:18px}.ypc-home-fee-row .ypc-fee-alert-amounts{font-size:13px}.ypc-home-fee-row .ypc-fee-alert small{font-size:11px}
.ypc-app .ypc-finance-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0;align-items:start}.ypc-app .ypc-finance-overview-card{min-width:0;background:#fff;border:1px solid var(--ui-line,#dce4ee);border-top:3px solid var(--ypc-primary);border-radius:9px;padding:14px}.ypc-app .ypc-finance-overview-card>h3{font-size:15px;line-height:1.35;margin:0 0 10px!important}.ypc-app .ypc-finance-overview-card>h3 a{text-decoration:none}.ypc-app .ypc-finance-overview-card .ypc-finance-summary{grid-template-columns:minmax(0,1fr);gap:8px}.ypc-app .ypc-finance-overview-card .ypc-panel{padding:10px;background:#f8fafc;border:0;border-radius:6px;margin:0;box-shadow:none}.ypc-app .ypc-finance-overview-card h4{font-size:13px;margin:0 0 4px}.ypc-app .ypc-finance-overview-card p{font-size:12px;margin:3px 0}.ypc-app .ypc-finance-overview-card dl{margin:6px 0 0;font-size:12px}.ypc-app .ypc-finance-overview-card dl div{gap:10px;padding:4px 0;flex-wrap:wrap}.ypc-app .ypc-finance-overview-card dd{margin-left:auto;overflow-wrap:anywhere}.ypc-app .ypc-finance-filters{padding:16px;margin:12px 0}.ypc-app .ypc-finance-filters p{font-size:12px;margin:7px 0}.ypc-app .ypc-finance-filters .ypc-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ypc-app .ypc-finance-filters .ypc-grid label{min-width:0}
@media(max-width:1250px){.ypc-app .ypc-finance-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ypc-app .ypc-finance-filters .ypc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.ypc-home-fee-row{flex-direction:column}}
@media(max-width:600px){.ypc-app .ypc-finance-overview-grid,.ypc-app .ypc-finance-filters .ypc-grid{grid-template-columns:minmax(0,1fr)}.ypc-home-fee-row>.ypc-fee-alerts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.ypc-home-fee-row>.ypc-fee-alerts{grid-template-columns:minmax(0,1fr)}}
@media print{.ypc-app .ypc-finance-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ypc-finance-overview-card{break-inside:avoid}}

/* Item-level alerts reuse group counts; allow labels to wrap beside the badge. */
@media screen {
  .ypc-app .ypc-nav-children a > .ypc-nav-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .ypc-app .ypc-nav-children a > .ypc-nav-count { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
  .ypc-app.ypc-sidebar-compact .ypc-nav-children a { position: relative; }
}

/* Consistent action badges: scoped to the app; labels never rely on colour alone. */
.ypc-app .ypc-action-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:19px;min-height:19px;padding:2px 6px;margin-left:6px;border-radius:12px;background:#b42318;color:#fff;font:700 11px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:nowrap;vertical-align:middle}
.ypc-app .ypc-action-queues{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 0;padding:10px 12px;border:1px solid #edc7c2;border-radius:8px;background:#fff8f6}
.ypc-app .ypc-action-queues>strong{font-size:13px;color:#7c2921}
.ypc-app .ypc-action-queues>a{display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:5px 8px;border:1px solid #e0d8d5;border-radius:6px;background:#fff;color:#18324f;text-decoration:none;font-size:13px}
.ypc-app .ypc-action-queues>small{flex-basis:100%;color:#53647b;font-size:12px}
.ypc-app .ypc-action-queues>a:hover{text-decoration:underline}
.ypc-app .ypc-action-queues>a:focus-visible{outline:3px solid var(--ypc-primary,#174ea6);outline-offset:2px}
.ypc-app .ypc-badge-help{font-size:12px;color:#52647a;margin:6px 0 12px}
@media(max-width:600px){.ypc-app .ypc-action-queues>a{min-height:44px}.ypc-app .ypc-action-queues{padding:9px;gap:8px}}
@media print{.ypc-app .ypc-action-queues,.ypc-app .ypc-action-badge,.ypc-app .ypc-badge-help{display:none!important}}

/* Register navigation and protected photographs. */
.ypc-list-photo{width:64px;min-width:64px}.ypc-list-photo img,.ypc-photo-placeholder{width:44px;height:44px;border-radius:8px;object-fit:cover;background:#edf2f7;display:inline-flex;align-items:center;justify-content:center;color:#64748b}.ypc-register-pagination{padding:16px 0;border-top:1px solid #dce3ed;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}.ypc-register-pagination p{margin:0}.ypc-page-buttons,.ypc-register-pagination form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.ypc-page-buttons .button{padding:7px 12px;border:1px solid #cbd5e1;border-radius:6px;text-decoration:none}.ypc-page-buttons [aria-current=page]{background:var(--ypc-primary,#174ea6);color:#fff}.ypc-page-buttons .is-disabled{opacity:.45}.ypc-register-pagination label{display:flex;align-items:center;gap:6px}.ypc-register-pagination input[type=number]{width:80px}.ypc-register-pagination select{width:auto}
/* One compact footer for local and server-backed lists; override filter-form rules. */
.ypc-app .ypc-register-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px 16px;width:100%;box-sizing:border-box;margin:0;padding:12px 0;border:0;border-top:1px solid #dce3ed;background:transparent;font-size:12px;line-height:1.4;min-height:0}
.ypc-app .ypc-register-pagination>p{margin:0 auto 0 0;flex:0 1 auto}
.ypc-app .ypc-register-pagination .ypc-page-buttons,.ypc-app .ypc-register-pagination .ypc-page-options,.ypc-app .ypc-register-pagination form{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;min-width:0;max-width:none;width:auto;grid-template-columns:none}
.ypc-app .ypc-register-pagination label{display:flex;flex:0 0 auto;align-items:center;gap:6px;margin:0;padding:0;white-space:nowrap;font-size:12px;font-weight:400}
.ypc-app .ypc-register-pagination input[type=number],.ypc-app .ypc-register-pagination select{box-sizing:border-box;min-height:32px;height:32px;margin:0;padding:4px 7px;line-height:1.3;width:68px;min-width:0;font-size:12px}
.ypc-app .ypc-register-pagination .button,.ypc-app .ypc-register-pagination button,.ypc-app .ypc-register-pagination>a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:32px;height:32px;margin:0;padding:4px 9px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:var(--ypc-primary);font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;text-decoration:none;white-space:nowrap;box-shadow:none}
.ypc-app .ypc-register-pagination [aria-current=page]{background:var(--ypc-primary);color:#fff;border-color:var(--ypc-primary)}
.ypc-app .ypc-register-pagination [disabled],.ypc-app .ypc-register-pagination [aria-disabled=true]{opacity:.45;cursor:default}
.ypc-app .ypc-register-pagination [data-search-hint]{display:none}.ypc-app .ypc-register-pagination :focus-visible{outline:2px solid var(--ypc-primary);outline-offset:2px}
.ypc-app .ypc-table .ypc-visual-heading,.ypc-app .ypc-table:has(.ypc-list-photo) th:first-child,.ypc-app .ypc-table td.ypc-list-photo{width:60px;min-width:60px;max-width:60px;text-align:center}
.ypc-app .ypc-list-photo img{cursor:default}.ypc-app .ypc-photo-placeholder .dashicons{font-size:21px;width:21px;height:21px;color:#64748b}
@media(max-width:900px){.ypc-app .ypc-register-pagination>p{flex-basis:100%}.ypc-app .ypc-register-pagination .ypc-page-buttons{flex-wrap:wrap}}
@media print{.ypc-register-pagination{display:none!important}.ypc-table tbody tr[hidden]{display:table-row!important}}

/* Shared active/inactive status badges: fixed semantic colours across themes. */
.ypc-app .ypc-active-badge{display:inline-flex!important;align-items:center;width:auto!important;padding:3px 9px!important;border:1px solid;border-radius:999px;font-size:12px!important;font-weight:700;line-height:18px;white-space:normal;vertical-align:middle;margin:2px 0}
.ypc-app .ypc-active-badge.is-active{color:#166534!important;background:#dcfce7!important;border-color:#86efac!important}
.ypc-app .ypc-active-badge.is-inactive{color:#991b1b!important;background:#fee2e2!important;border-color:#fca5a5!important}
@media print{.ypc-active-badge{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
/* Separate class registrations from permanent person identifiers in every list. */
.ypc-registration-number,.ypc-registration-old,.ypc-permanent-id{display:block;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.ypc-registration-number{font-weight:600}
.ypc-registration-old,.ypc-permanent-id{margin-top:4px}
.ypc-list-photo>a{display:inline-block;border-radius:6px}
.ypc-list-photo>a:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* Sadhak list: reserve room for readable disease boxes instead of a narrow word stack. */
.ypc-app .ypc-patient-list table{width:100%;min-width:1120px;table-layout:fixed}
.ypc-app .ypc-patient-list table th,.ypc-app .ypc-patient-list table td{box-sizing:border-box;padding:12px 10px;vertical-align:top;white-space:normal;overflow-wrap:break-word;min-width:0;max-width:none}
.ypc-app .ypc-patient-list table th:nth-child(1),.ypc-app .ypc-patient-list table td:nth-child(1){width:5%;min-width:0;max-width:none;padding-left:8px;padding-right:8px}
.ypc-app .ypc-patient-list table th:nth-child(2){width:15%}
.ypc-app .ypc-patient-list table th:nth-child(3){width:14%}
.ypc-app .ypc-patient-list table th:nth-child(4){width:19%}
.ypc-app .ypc-patient-list table th:nth-child(5){width:10%}
.ypc-app .ypc-patient-list table th:nth-child(6){width:11%}
.ypc-app .ypc-patient-list table th:nth-child(7),.ypc-app .ypc-patient-list table td.ypc-list-diseases{width:15%;min-width:0;max-width:none}
.ypc-app .ypc-patient-list table th:nth-child(8){width:11%}
.ypc-app .ypc-patient-list .ypc-disease-count{margin:0 0 7px;color:#52647a;font-size:12px;font-weight:600}
.ypc-app .ypc-patient-list ul.ypc-disease-boxes{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;list-style:none;padding:0;margin:0}
.ypc-app .ypc-patient-list li.ypc-disease-box{display:block;max-width:100%;box-sizing:border-box;margin:0;padding:5px 8px;border:1px solid #ccd9e7;border-radius:6px;background:#f1f6fb;color:#253e59;font-size:12px;line-height:1.45;white-space:normal;word-break:normal;overflow-wrap:break-word}
/* Keep the Sadhak list print action compact and clear of the session link. */
.ypc.ypc-app .ypc-patient-list .ypc-list-print-action{margin-top:6px}
.ypc.ypc-app .ypc-patient-list .ypc-btn.ypc-list-print-card{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:28px;height:auto;margin:0;padding:3px 9px;font-size:12px;line-height:1.35;vertical-align:top}
@media(pointer:coarse){.ypc.ypc-app .ypc-patient-list .ypc-btn.ypc-list-print-card{min-height:36px}}
.ypc-app .ypc-list-photo>a img{cursor:pointer}
@media print{.ypc-app .ypc-patient-list table{min-width:0;table-layout:auto}.ypc-app .ypc-patient-list table th,.ypc-app .ypc-patient-list table td{padding:4px;font-size:9px}.ypc-app .ypc-patient-list li.ypc-disease-box{padding:2px 4px;font-size:9px}}

.ypc-break-badge{display:inline-block;background:#fff3cd;color:#785800;padding:2px 6px;border-radius:4px;font-size:12px}.ypc-break-required{font-weight:600}

/* v0.93: compact, keyboard-accessible work sections. */
.ypc .ypc-compact-section{margin:10px 0;border:1px solid #d8e2ee;border-radius:8px;background:#fff;padding:0 14px}
.ypc .ypc-compact-section>summary{padding:12px 0;font-weight:650;color:#18324f;cursor:pointer;min-height:24px}
.ypc .ypc-compact-section>summary:focus-visible{outline:2px solid var(--ypc-primary);outline-offset:3px}
.ypc .ypc-compact-section[open]>summary{border-bottom:1px solid #e2e8f0;margin-bottom:10px}
.ypc .ypc-compact-section>.ypc-panel{margin:0;padding:12px 0;border:0;box-shadow:none}
#ypc-patient-workspace .ypc-panel{padding:16px;margin-bottom:12px}
#ypc-patient-workspace .ypc-grid{gap:10px 16px}
#ypc-patient-workspace .ypc-compact-notes{grid-template-columns:repeat(3,minmax(0,1fr))}
#ypc-patient-workspace textarea{min-height:64px;height:64px;resize:vertical}
#ypc-patient-workspace .ypc-disease-picker{padding:12px;margin:10px 0}
#ypc-patient-workspace .ypc-selected-summary{margin:6px 0}
@media(max-width:900px){#ypc-patient-workspace .ypc-compact-notes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#ypc-patient-workspace .ypc-compact-notes{grid-template-columns:1fr}#ypc-patient-workspace .ypc-panel{padding:12px}}

/* Disease picker footer: stable two-row layout, independent of form labels. */
.ypc.ypc-app .ypc-disease-modal .ypc-disease-pagination{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"count size" "pages pages";gap:8px 12px;padding:10px 0 0;flex-shrink:0}
.ypc.ypc-app .ypc-disease-pagination>p{grid-area:count;margin:0;align-self:center;font-size:12px}
.ypc.ypc-app .ypc-disease-pagination .ypc-page-options{grid-area:size;justify-self:end}
.ypc.ypc-app .ypc-disease-pagination .ypc-page-options label{display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap;margin:0;font-size:12px}
.ypc.ypc-app .ypc-disease-pagination .ypc-page-options select{width:70px;height:34px;min-height:34px;margin:0;padding:4px 8px}
.ypc.ypc-app .ypc-disease-pagination .ypc-page-buttons{grid-area:pages;justify-content:center;flex-wrap:wrap;gap:6px;width:100%}
.ypc.ypc-app .ypc-disease-pagination .ypc-page-buttons button{height:36px;min-height:36px;min-width:36px;padding:6px 10px;margin:0}
@media(max-width:600px){.ypc.ypc-app .ypc-disease-modal .ypc-disease-pagination{gap:6px;padding-top:6px}.ypc.ypc-app .ypc-disease-pagination .ypc-page-buttons{gap:4px}.ypc.ypc-app .ypc-disease-pagination .ypc-page-buttons button{min-width:30px;padding:6px;font-size:12px}}
@media(max-height:500px){.ypc.ypc-app .ypc-disease-modal .ypc-disease-pagination{gap:3px;padding-top:3px}.ypc.ypc-app .ypc-disease-pagination .ypc-page-buttons button{height:30px;min-height:30px}.ypc.ypc-app .ypc-disease-pagination .ypc-page-options select{height:30px;min-height:30px}}

/* Financial creation menus: keyboard-friendly cards, two columns on desktop. */
.ypc-finance-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.ypc .ypc-finance-create-card{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#172b3a;text-decoration:none;min-width:0}
.ypc .ypc-finance-create-card h3{margin:0;font-size:17px;color:inherit}
.ypc .ypc-finance-create-card p{margin:0 0 8px;color:#475569;line-height:1.5}
.ypc .ypc-finance-create-card>span{margin-top:auto;font-weight:600;color:var(--ypc-primary,#174ea6)}
.ypc .ypc-finance-create-card:hover{border-color:var(--ypc-primary,#174ea6);background:#f0f9ff}
.ypc .ypc-finance-create-card:focus-visible{outline:3px solid var(--ypc-primary,#174ea6);outline-offset:3px}
@media(max-width:640px){.ypc-finance-create-grid{grid-template-columns:1fr}}

/* Secondary profile tools share a compact row; an opened tool gets the full width.
   The class-qualified selectors override compact-ui's disclosure inset. */
.ypc.ypc-app .ypc-profile-tools{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;margin:6px 0 10px}
.ypc.ypc-app .ypc-profile-tools>details.ypc-compact-section,.ypc.ypc-app .ypc-profile-tools>#ci-app.door-profile-pin{box-sizing:border-box;flex:0 1 auto;width:auto;min-width:0;max-width:100%;margin:0;padding:0;border:0;background:transparent}
.ypc.ypc-app .ypc-profile-tools>details>summary,.ypc.ypc-app .ypc-profile-tools>#ci-app.door-profile-pin>summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px;box-sizing:border-box;margin:0;min-height:40px;padding:8px 12px 8px 36px;font-size:13px;font-weight:650;line-height:20px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.ypc.ypc-app .ypc-profile-tools>details.ypc-compact-section[open],.ypc.ypc-app .ypc-profile-tools>#ci-app.door-profile-pin[open]{flex:1 1 100%;order:1;padding:10px;border:1px solid var(--ypc-border,#dce4ee);border-radius:7px;background:var(--ypc-surface,#fff)}
.ypc.ypc-app .ypc-profile-tools>details[open]>summary,.ypc.ypc-app .ypc-profile-tools>#ci-app.door-profile-pin[open]>summary{width:fit-content;margin-bottom:8px}
.ypc.ypc-app .ypc-profile-tools #ci-app .ci-pin-summary-state{margin-left:0;padding:0 6px;font-size:11px;line-height:18px}
.ypc.ypc-app .ypc-profile-tools .ypc-panel{margin-top:8px}
@media(max-width:650px),(pointer:coarse){.ypc.ypc-app .ypc-profile-tools>details>summary,.ypc.ypc-app .ypc-profile-tools>#ci-app.door-profile-pin>summary{min-height:44px}}

/* Enhanced disclosures: stable headings, followed by one full-width panel. */
.ypc.ypc-app .ypc-profile-tools.is-enhanced{display:block}
.ypc.ypc-app .ypc-profile-tools .ypc-profile-tool-controls{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px}
.ypc.ypc-app .ypc-profile-tools .ypc-profile-tool-button{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:6px;box-sizing:border-box;min-height:40px;width:auto;max-width:100%;margin:0;padding:8px 12px 8px 36px;border:1px solid var(--ypc-control-border,#9fb0c4);border-radius:6px;background:var(--ypc-soft,#f7f9fc);color:var(--ypc-primary,#174ea6);font-family:inherit;font-size:13px;font-weight:650;line-height:20px;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer;box-shadow:0 1px 2px #18324f0d}
.ypc.ypc-app .ypc-profile-tools .ypc-profile-tool-button::before{content:"";position:absolute;left:14px;top:50%;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-50%) rotate(-45deg)}
.ypc.ypc-app .ypc-profile-tools .ypc-profile-tool-button[aria-expanded=true]{background:var(--ypc-selected,var(--ypc-light,#edf4ff));border-color:var(--ypc-primary,#174ea6);box-shadow:inset 3px 0 0 var(--ypc-primary,#174ea6)}
.ypc.ypc-app .ypc-profile-tools .ypc-profile-tool-button[aria-expanded=true]::before{transform:translateY(-70%) rotate(45deg)}
.ypc.ypc-app .ypc-profile-tools .ypc-profile-tool-button:hover{background:var(--ypc-light,#edf4ff);border-color:var(--ypc-primary,#174ea6)}
.ypc.ypc-app .ypc-profile-tools .ypc-profile-tool-button:focus-visible{outline:3px solid var(--ypc-primary,#174ea6);outline-offset:3px}
.ypc.ypc-app .ypc-profile-tools .ypc-profile-tool-button .ci-pin-summary-state{display:inline-flex;align-items:center;gap:4px;margin:0;padding:0 6px;border:1px solid var(--ypc-border,#dce4ee);border-radius:20px;background:#fff;font-size:11px;font-weight:400;line-height:18px}
.ypc.ypc-app .ypc-profile-tools.is-enhanced>details.ypc-compact-section,.ypc.ypc-app .ypc-profile-tools.is-enhanced>#ci-app.door-profile-pin{width:100%;margin:8px 0 0;order:0}
.ypc.ypc-app .ypc-profile-tools.is-enhanced>details:not([open]),.ypc.ypc-app .ypc-profile-tools.is-enhanced>#ci-app.door-profile-pin:not([open]){display:none}
.ypc.ypc-app .ypc-profile-tools.is-enhanced>details>summary,.ypc.ypc-app .ypc-profile-tools.is-enhanced>#ci-app.door-profile-pin>summary{display:none}
@media(max-width:650px),(pointer:coarse){.ypc.ypc-app .ypc-profile-tools .ypc-profile-tool-button{min-height:44px;padding-top:11px;padding-bottom:11px}}

/* User branch selection remains usable without JavaScript. */
.ypcare .ypc-user-branches,.ypc-user-branches{grid-column:1 / -1;border:1px solid #cbd5e1;border-radius:8px;padding:12px;min-width:0}
.ypc-user-branches[hidden]{display:none!important}
.ypc-branch-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:8px;max-height:320px;overflow:auto;padding:4px}
.ypc-branch-choices .ypc-check{display:flex;align-items:flex-start;gap:8px;margin:0;padding:6px;overflow-wrap:anywhere}
.ypc-branch-choices input[type=checkbox]{flex:none;margin-top:3px;width:auto}
.ypc-user-branch-help{grid-column:1 / -1;margin:0}
#ypc-branch-selection-error{color:#a61b1b;margin:8px 0 0}

.ypc-app .ypc-patient-filters .ypc-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;align-items:start}.ypc-app .ypc-patient-filters .ypc-filter-grid>details{margin:0;padding:6px;min-width:0}.ypc-app .ypc-patient-filters .ypc-filter-grid>label{margin:0;gap:4px}.ypc-app .ypc-patient-filters .ypc-filter-grid select{width:100%;max-width:none}.ypc-app .ypc-patient-filters .ypc-filter-options{max-height:220px;overflow:auto}.ypc-app .ypc-patient-filters .ypc-label-filter-body label{margin:4px 0}.ypc-app .ypc-patient-filters .ypc-label-filter-body{padding:6px}.ypc-app .ypc-patient-filters .ypc-field-title{margin-bottom:4px;min-height:0}

.ypc-daily-menu-note{padding:10px 12px;font-size:12px;line-height:1.45}.ypc-profile-load-status{padding:12px;border:1px solid #d5dde6;border-radius:6px}.ypc-profile-load-status button{margin-inline-start:8px}

/* Keep the actual switched identity and return action visible on every app screen. */
.ypc-switch-banner{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;padding:14px 16px;margin:0 0 16px;border:1px solid #b78b36;border-radius:8px;background:#fff6dd;color:#382c14}
.ypc-switch-banner>p{flex:1 1 300px;margin:0}
.ypc-switch-banner>form,.ypc-switch-form{margin:0}
.ypc-switch-form{display:inline-flex;vertical-align:middle}
.ypc-switch-banner button{white-space:normal}
@media print{.ypc-switch-banner,.ypc-switch-form{display:none!important}}

/* Sidebar disclosures are navigation rows, not the generic detail buttons in
   compact-ui.css. Keep this scope stronger regardless of stylesheet order. */
.ypc.ypc-app .ypc-sidebar details.ypc-comm-channel{margin:3px 0;border:0;padding:0;background:transparent;min-width:0;box-shadow:none}
.ypc.ypc-app .ypc-sidebar details.ypc-comm-channel>summary{
 display:grid;grid-template-columns:18px minmax(0,1fr) 12px;align-items:center;column-gap:9px;
 width:100%;max-width:100%;min-height:42px;box-sizing:border-box;
 margin:0;padding:9px 10px!important;border:0;border-radius:6px;box-shadow:none;
 background:transparent;color:var(--ypc-primary,#174ea6);font-family:inherit;
 font-size:13px;font-weight:650;line-height:1.4;list-style:none;cursor:pointer;
 white-space:normal;overflow-wrap:normal;text-align:left;
}
.ypc.ypc-app .ypc-sidebar details.ypc-comm-channel>summary::before,
.ypc.ypc-app .ypc-sidebar details.ypc-comm-channel>summary::after{display:none;content:none}
.ypc.ypc-app .ypc-sidebar details.ypc-comm-channel>summary::marker{content:""}
.ypc.ypc-app .ypc-sidebar details.ypc-comm-channel>summary::-webkit-details-marker{display:none}
.ypc.ypc-app .ypc-sidebar details.ypc-comm-channel[open]>summary,
.ypc.ypc-app .ypc-sidebar details.ypc-comm-channel>summary:hover{background:var(--ypc-soft,var(--ypc-light,#edf4ff));border:0;margin:0;box-shadow:none}
.ypc.ypc-app .ypc-sidebar details.ypc-comm-channel>summary:focus-visible{outline:3px solid var(--ypc-primary,#174ea6);outline-offset:1px}
.ypc.ypc-app .ypc-sidebar .ypc-comm-channel>summary>.ypc-nav-label{min-width:0;line-height:1.4}
.ypc.ypc-app .ypc-sidebar .ypc-channel-chevron{display:block;justify-self:center;width:6px;height:6px;margin:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transform-origin:center}
.ypc.ypc-app .ypc-sidebar .ypc-comm-channel[open]>summary>.ypc-channel-chevron{transform:rotate(45deg)}
.ypc.ypc-app .ypc-sidebar .ypc-comm-channel-links{margin:3px 0 5px 10px;padding-left:5px;border-left:1px solid var(--ui-line,#dbe3ee)}
.ypc.ypc-app .ypc-sidebar .ypc-nav .ypc-comm-channel-links a{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:36px;margin:2px 0;padding:7px 8px;border-radius:6px;font-size:12px;line-height:1.4;text-decoration:none}
.ypc.ypc-app .ypc-sidebar .ypc-nav .ypc-comm-channel-links a[aria-current=page]{background:var(--ypc-selected,var(--ypc-light,#edf4ff));color:var(--ypc-primary,#174ea6);box-shadow:inset 3px 0 var(--ypc-primary,#174ea6);font-weight:700}
.ypc.ypc-app .ypc-sidebar .ypc-nav .ypc-comm-channel-links a:focus-visible{outline:3px solid var(--ypc-primary,#174ea6);outline-offset:1px}
.ypc.ypc-app .ypc-sidebar .ypc-comm-channel .dashicons{display:inline-block;flex:0 0 18px;width:18px;height:18px;margin:0;font-size:18px;line-height:1;text-align:center}
.ypc.ypc-app .ypc-sidebar .ypc-comm-channel-links a>.ypc-nav-label{flex:1;min-width:0;overflow-wrap:normal}
.ypc-app .ypc-comm-channel[hidden],.ypc-app .ypc-tool-channel[hidden]{display:none!important}
@media(max-width:782px){.ypc.ypc-app .ypc-sidebar details.ypc-comm-channel>summary,.ypc.ypc-app .ypc-sidebar .ypc-nav .ypc-comm-channel-links a{min-height:44px}}
.ypc-tool-channel{margin:10px 0;min-width:0}
.ypc-tool-channel h4{display:flex;align-items:center;gap:7px;margin:8px 0;font-size:13px}
.ypc-tool-channel a,.ypc-home-area>a{display:flex;align-items:center;gap:8px}
.ypc-tool-channel a>.ypc-nav-label,.ypc-home-area>a>.ypc-nav-label{flex:1;min-width:0}
.ypc-tool-channel a>.dashicons,.ypc-home-area>a>.dashicons{flex:0 0 18px;font-size:18px}
@media print{.ypc-comm-channel{display:none!important}}
