/* Minimal app shell and sign-in foundation; detailed visual polish is deferred. */
.ypc-frontend{margin:0;background:#f1f5fa;color:#18324f;font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.ypc-frontend a{color:var(--ypc-primary,#174ea6)}.ypc-frontend button,.ypc-frontend input,.ypc-frontend select,.ypc-frontend textarea{font:inherit}.ypc-frontend .ypc{padding:16px;margin:0;max-width:none}.ypc.ypc-app{max-width:none}.ypc-app .ypc-header{margin-top:0;border-radius:10px;padding:18px 22px}.ypc-header-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.ypc-header-tools a{color:#fff;text-decoration:underline}.ypc-header-tools button{display:inline-flex;align-items:center;gap:8px;border:1px solid #ffffff80;background:transparent;color:white;padding:9px 12px;border-radius:6px;cursor:pointer}.ypc-app-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;margin-top:16px}.ypc-app-layout>.ypc-main-content{min-width:0}.ypc-sidebar{position:sticky;top:48px;align-self:start;max-height:calc(100dvh - 64px);overflow-y:auto;background:#fff;border:1px solid #d8e2ee;border-radius:9px;padding:10px}.ypc-frontend .ypc-sidebar{top:16px;max-height:calc(100dvh - 32px)}.ypc-sidebar .ypc-nav{display:flex;flex-direction:column;flex-wrap:nowrap;gap:5px;padding:0;border:0}.ypc-sidebar .ypc-nav a{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;font-weight:600}.ypc-sidebar .dashicons{flex:0 0 20px;font-size:20px;width:20px;height:20px}.ypc-sidebar .ypc-nav-label{line-height:1.35}.ypc-sidebar-compact .ypc-app-layout{grid-template-columns:72px minmax(0,1fr)}.ypc-sidebar-compact .ypc-nav-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.ypc-sidebar-compact .ypc-sidebar .ypc-nav a{justify-content:center;padding:10px}.ypc-app .ypc-test{margin-top:0}.ypc-sidebar-close{display:none}.ypc-sidebar-backdrop[hidden]{display:none!important}.ypc-skip-link{position:absolute;left:-10000px}.ypc-skip-link:focus{position:fixed;top:8px;left:8px;z-index:100001;background:#fff;padding:14px;color:var(--ypc-primary,#174ea6)}.ypc-app-screen .ypc-floating-actions{left:400px}.ypc-app-screen.ypc-menu-compact .ypc-floating-actions{left:232px}.folded.ypc-app-screen .ypc-floating-actions{left:276px}.folded.ypc-app-screen.ypc-menu-compact .ypc-floating-actions{left:108px}.ypc-frontend.ypc-app-screen .ypc-floating-actions{left:256px}.ypc-frontend.ypc-app-screen.ypc-menu-compact .ypc-floating-actions{left:88px}.ypc-frontend.ypc-has-dock{padding-bottom:220px}.ypc-frontend .ypc-app h1,.ypc-frontend .ypc-app h2,.ypc-frontend .ypc-app h3{font-family:inherit}.ypc-frontend .ypc-app input:not([type=checkbox]):not([type=radio]),.ypc-frontend .ypc-app select,.ypc-frontend .ypc-app textarea{max-width:100%}.ypc-frontend .ypc-table table{width:100%;border-collapse:collapse}.ypc-frontend .ypc-table th{text-align:left}.ypc-auth-card{max-width:460px;margin:8vh auto;padding:32px;background:#fff;border:1px solid #d8e2ee;border-radius:12px;box-shadow:0 8px 30px #12345a0c;box-sizing:border-box}.ypc-auth-card h1{font-size:26px;line-height:1.3;margin:10px 0}.ypc-auth-brand{font-weight:700;letter-spacing:.04em;color:var(--ypc-primary,#174ea6)}.ypc-auth-card label{display:block;font-weight:600;margin-bottom:6px}.ypc-auth-card input[type=text],.ypc-auth-card input[type=password]{box-sizing:border-box;width:100%;border:1px solid #9eb3cb;border-radius:6px;padding:12px;min-height:46px}.ypc-auth-card input[type=submit]{width:100%;background:var(--ypc-primary,#174ea6);border:0;border-radius:6px;padding:12px;color:#fff;font-weight:700;cursor:pointer}.ypc-auth-card :is(input,a,button):focus-visible{outline:3px solid var(--ypc-primary,#174ea6);outline-offset:3px}.ypc-auth-card .login-remember label{font-weight:400}.ypc-auth-note{font-size:13px;color:#52677d}.ypc-auth-error{background:#fff0f0;color:#892727;border-left:4px solid #b63333;padding:12px}.ypc-auth-card input[type=checkbox]{width:18px;height:18px;vertical-align:middle;margin-right:8px}
@media(min-width:783px) and (max-width:960px){.ypc-app-screen .ypc-floating-actions{left:276px}.ypc-app-screen.ypc-menu-compact .ypc-floating-actions{left:108px}.ypc-frontend.ypc-app-screen .ypc-floating-actions{left:256px}.ypc-frontend.ypc-app-screen.ypc-menu-compact .ypc-floating-actions{left:88px}}
@media(max-width:782px){.ypc-frontend .ypc{padding:10px}.ypc-app .ypc-header{padding:14px;gap:12px;align-items:flex-start}.ypc-app .ypc-header h1{font-size:19px}.ypc-header-tools{gap:9px;font-size:13px}.ypc-app-layout,.ypc-sidebar-compact .ypc-app-layout{display:block}.ypc-sidebar{position:static;max-height:none;margin-bottom:16px}.ypc-nav-ready .ypc-sidebar{position:fixed;inset:0 auto 0 0;top:0;width:min(300px,85vw);height:100dvh;max-height:100dvh;border-radius:0;z-index:9902;box-shadow:8px 0 30px #0003;padding:16px}.ypc-sidebar-close{display:block;margin:0 0 14px auto;min-height:44px;padding:8px 12px;cursor:pointer;background:var(--ypc-light,#edf4ff);color:var(--ypc-primary,#174ea6);border:1px solid #cbd9ec;border-radius:6px}.ypc-sidebar-backdrop{position:fixed;inset:0;z-index:9901;background:#142a46aa;border:0;width:100%;height:100%}.ypc-app-screen.ypc-mobile-menu-open{overflow:hidden}.ypc-app-screen.ypc-mobile-menu-open .ypc-floating-actions{display:none}.ypc-app-screen .ypc-floating-actions,.ypc-app-screen.ypc-menu-compact .ypc-floating-actions,.folded.ypc-app-screen .ypc-floating-actions{left:0}.ypc-frontend.ypc-has-dock{padding-bottom:310px}.ypc-auth-card{margin:24px 14px;padding:24px;max-width:none}}
@media(max-width:782px){.ypc-frontend.ypc-app-screen .ypc-floating-actions,.ypc-frontend.ypc-app-screen.ypc-menu-compact .ypc-floating-actions,.folded.ypc-app-screen.ypc-menu-compact .ypc-floating-actions{left:0}.ypc-app-screen:not(.ypc-frontend) .ypc-nav-ready .ypc-sidebar{top:46px;height:calc(100dvh - 46px);max-height:calc(100dvh - 46px)}}

@page{size:A4 portrait;margin:10mm}
@media print{body.ypc-app-screen{background:#fff!important;padding:0!important;color:#111;font-size:9pt;line-height:1.25}#wpadminbar,#adminmenumain,#wpfooter,.ypc-sidebar,.ypc-sidebar-backdrop,.ypc-header-tools,.ypc-floating-actions,.ypc-finance-tabs,.ypc-actions,.ypc-main-content form[method="get"]{display:none!important}#wpcontent,#wpbody-content{margin:0!important;padding:0!important}.ypc-app-layout,.ypc-sidebar-compact .ypc-app-layout{display:block!important}.ypc.ypc-app,.ypc-frontend .ypc{padding:0!important;margin:0!important}.ypc-app .ypc-header{padding:2mm!important;margin:0 0 3mm!important;background:#fff!important;color:#111!important;border:0}.ypc-header h1{font-size:15pt}.ypc-panel{padding:3mm!important;margin:0 0 3mm!important;box-shadow:none!important;border-radius:0!important}.ypc-table{overflow:visible!important;max-height:none!important}.ypc table{width:100%!important;min-width:0!important;table-layout:fixed;font-size:8pt}.ypc th,.ypc td{padding:1.3mm!important;overflow-wrap:anywhere}.ypc thead{display:table-header-group}.ypc tr{break-inside:avoid}.ypc h2,.ypc h3{break-after:avoid;margin:2mm 0!important}.ypc-finance-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3mm}.ypc-finance-summary .ypc-panel{break-inside:avoid}.ypc-finance-summary dl div{padding:1mm 0}.ypc .ypc-btn{display:none!important}.ypc a{color:inherit;text-decoration:none}.ypc-main-content{width:100%!important}}

/* Keep navigation independently scrollable beneath the WordPress toolbar. */
@media screen and (min-width:783px){
 .ypc.ypc-app .ypc-header{top:var(--ypc-toolbar-height,0px)}
 .ypc-app .ypc-sidebar{position:sticky;top:var(--ypc-sidebar-top,12px);max-height:calc(100vh - var(--ypc-sidebar-top,12px) - 12px);max-height:calc(100dvh - var(--ypc-sidebar-top,12px) - 12px);min-height:0;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;align-self:start}
}
@media screen and (max-width:782px){.ypc-app .ypc-sidebar{overflow-y:auto;overscroll-behavior-y:contain;box-sizing:border-box}}

/* The standalone app hides the WP toolbar; remove its reserved document space. */
html.ypc-frontend-document{margin-top:0!important;padding-top:0!important}
.ypc-frontend .ypc.ypc-app{padding-top:10px}
.ypc-frontend .ypc.ypc-app .ypc-header{margin-top:0;top:auto}


/* Context-aware institutional logos. Light paper always prints the normal logo. */
.ypc-brand-logo{display:inline-flex;align-items:center;vertical-align:middle;max-width:130px}
.ypc-brand-logo .ypc-logo-inverse{display:none}
.ypc-brand-logo-dark .ypc-logo-normal{display:none}
.ypc-brand-logo-dark .ypc-logo-inverse{display:block}
@media print{
 .ypc-brand-logo .ypc-logo-inverse,.ypc-brand-logo-dark .ypc-logo-inverse{display:none!important}
 .ypc-brand-logo .ypc-logo-normal,.ypc-brand-logo-dark .ypc-logo-normal{display:block!important}
}

@media screen and (max-width:650px) {
 .ypc-auth-card :is(input[type=text],input[type=password]) {font-size:16px;}
 .ypc-auth-card input[type=submit],.ypc-auth-card .login-remember label {min-height:44px;}
}

@media screen and (min-width:783px){.ypc-app .ypc-sidebar{height:var(--ypc-sidebar-available);max-height:var(--ypc-sidebar-available)}}
