/* Pede Arte visual system 1.8.100 — unified light/dark surfaces and controls. */
:root{--pad-v-bg:#f3f6fa;--pad-v-surface:#fff;--pad-v-alt:#f0f5fa;--pad-v-text:#173452;--pad-v-muted:#536a82;--pad-v-line:#d6e2ee;--pad-v-primary:#123f73;--pad-v-primary-hover:#2468a5;--pad-v-soft:#e8f2fc;--pad-v-soft-text:#123f73}
body.pad-theme-dark,.pad-theme-dark{--pad-v-bg:#101b2b;--pad-v-surface:#1d2d42;--pad-v-alt:#263b53;--pad-v-text:#f0f6ff;--pad-v-muted:#c3d2e5;--pad-v-line:#455d77;--pad-v-primary:#315f99;--pad-v-primary-hover:#427bb7;--pad-v-soft:#284866;--pad-v-soft-text:#f0f6ff}
/* Consistent accessible surfaces in both portal and WP-admin subpages. */
body.wp-admin[class*="pad-theme"] .wrap:not(.notice),body.wp-admin .pad-unified-admin,.pad-portal-shell .pad-portal-content{color:var(--pad-v-text)}
body.pad-theme-dark :is(.pad-portal-shell,.pad-central-wrap,.pad-unified-admin,.pad-birthdays-page,.pad-report),body.pad-theme-dark.wp-admin .wrap{color:var(--pad-v-text)!important}
body.pad-theme-dark :is(.pad-portal-shell,.pad-central-wrap,.pad-unified-admin,.pad-birthdays-page,.pad-report) :is(h1,h2,h3,h4,label,p,small,th,td,legend),body.pad-theme-dark.wp-admin .wrap :is(h1,h2,h3,h4,label,legend){color:var(--pad-v-text)!important}
body.pad-theme-dark :is(.pad-portal-shell,.pad-central-wrap,.pad-unified-admin,.pad-birthdays-page,.pad-report) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#16263a!important;color:#f0f6ff!important;border:1px solid #526a86!important}
body.pad-theme-dark :is(.pad-portal-shell,.pad-central-wrap,.pad-unified-admin,.pad-birthdays-page,.pad-report) :is(input,textarea)::placeholder{color:#b8c9dc!important;opacity:1}
/* The classic striped tables caused white-on-white / dark-on-dark. Convert to calm row cards. */
body.wp-admin [class*="pad-"] table.widefat,body.wp-admin .wrap table.widefat,.pad-portal-shell table.widefat,.pad-portal-shell table.pad-table{border:0!important;border-collapse:separate!important;border-spacing:0 7px!important;background:transparent!important;box-shadow:none!important}
body.wp-admin .wrap table.widefat :is(th,td),.pad-portal-shell table :is(th,td){background:var(--pad-v-surface)!important;color:var(--pad-v-text)!important;border-top:1px solid var(--pad-v-line)!important;border-bottom:1px solid var(--pad-v-line)!important;vertical-align:middle!important;overflow-wrap:anywhere}
body.wp-admin .wrap table.widefat :is(th,td):first-child,.pad-portal-shell table :is(th,td):first-child{border-left:1px solid var(--pad-v-line)!important;border-radius:10px 0 0 10px}
body.wp-admin .wrap table.widefat :is(th,td):last-child,.pad-portal-shell table :is(th,td):last-child{border-right:1px solid var(--pad-v-line)!important;border-radius:0 10px 10px 0}
body.wp-admin .wrap table.widefat thead th,.pad-portal-shell table thead th{background:var(--pad-v-alt)!important;color:var(--pad-v-text)!important;font-weight:700!important}
body.wp-admin .wrap table.widefat tbody tr:nth-child(odd) td,body.wp-admin .wrap table.widefat tbody tr:nth-child(even) td{background:var(--pad-v-surface)!important;color:var(--pad-v-text)!important}
body.wp-admin .wrap table.widefat tbody tr:hover td,.pad-portal-shell table tbody tr:hover td{background:var(--pad-v-alt)!important}
/* Button hierarchy: blue for normal actions, red only for explicit destructive actions. */
body.wp-admin .wrap :is(.button,.button-secondary,.button-primary,button[type=submit]),.pad-portal-shell :is(.button,.pad-btn,button[type=submit]),.pad-central-wrap :is(.button,.pad-btn,button[type=submit]){border-radius:9px!important;min-height:34px;line-height:1.35!important;padding:7px 12px!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere;vertical-align:middle!important}
body.wp-admin .wrap :is(.button,.button-secondary),.pad-portal-shell .button:not(.button-primary),.pad-central-wrap .button:not(.button-primary){background:var(--pad-v-soft)!important;border:1px solid var(--pad-v-line)!important;color:var(--pad-v-soft-text)!important;box-shadow:none!important}
body.wp-admin .wrap :is(.button,.button-secondary):hover,.pad-portal-shell .button:not(.button-primary):hover,.pad-central-wrap .button:not(.button-primary):hover{background:var(--pad-v-primary-hover)!important;color:#fff!important;border-color:var(--pad-v-primary-hover)!important}
body.wp-admin .wrap :is(.button-primary,button[type=submit]:not(.button)),.pad-portal-shell :is(.button-primary,button[type=submit]:not(.button)),.pad-central-wrap :is(.button-primary,button[type=submit]:not(.button)){background:var(--pad-v-primary)!important;border:1px solid var(--pad-v-primary)!important;color:#fff!important}
body.wp-admin .wrap :is(.button-primary,button[type=submit]:not(.button)):hover,.pad-portal-shell :is(.button-primary,button[type=submit]:not(.button)):hover{background:var(--pad-v-primary-hover)!important;color:#fff!important}
/* Preserve destructive actions as red, but only when identified by an explicit semantic class. */
:is(.pad-portal-shell,.pad-central-wrap,.pad-unified-admin,.wrap) :is(.pad-danger,.pad-delete,.is-destructive,.button-link-delete){color:#b4233a!important}
body.pad-theme-dark :is(.pad-portal-shell,.pad-central-wrap,.pad-unified-admin,.wrap) :is(.pad-danger,.pad-delete,.is-destructive,.button-link-delete){color:#ffb4c0!important}
/* Hover/focus states for menus and settings dropdowns. */
:is(.pad-portal-shell,#pad-subpage-navigation,.pad-central-wrap) :is(.pad-dashboard-nav-link,.pad-nav-dropdown-menu a):hover,:is(.pad-portal-shell,#pad-subpage-navigation,.pad-central-wrap) :is(.pad-dashboard-nav-link,.pad-nav-dropdown-menu a):focus-visible{background:var(--pad-v-primary-hover)!important;color:#fff!important;border-color:var(--pad-v-primary-hover)!important}
body.pad-theme-dark :is(.pad-portal-shell,#pad-subpage-navigation,.pad-central-wrap) :is(.pad-nav-dropdown-menu,.pad-mobile-menu-panel){background:var(--pad-v-surface)!important;border-color:var(--pad-v-line)!important}
body.pad-theme-dark :is(.pad-portal-shell,#pad-subpage-navigation,.pad-central-wrap) :is(.pad-nav-dropdown-menu a,.pad-dashboard-nav-link){color:#f0f6ff!important;background:var(--pad-v-surface)!important}
body.pad-theme-dark :is(.pad-portal-shell,#pad-subpage-navigation,.pad-central-wrap) :is(.pad-nav-dropdown-menu a,.pad-dashboard-nav-link):hover{background:#315f99!important;color:#fff!important}
/* Birthday list controls and authorized-user form spacing. */
.pad-birthdays-page .widefat td:last-child{min-width:235px}.pad-birthdays-page .widefat td:last-child :is(a,button,form){margin:3px!important}
body.wp-admin .wrap :is(.pad-auth-form,.pad-authorized-form){margin:16px 0 22px!important;padding:18px!important;background:var(--pad-v-surface)!important;border:1px solid var(--pad-v-line)!important;border-radius:12px!important}
body.wp-admin .wrap :is(.pad-avatar-picker,.pad-birthday-form) button{margin:3px!important}
/* Fix primary blog controls and file picker contrast. */
.pad-portal-shell .pad-blog-admin :is(.pad-blog-actions,.pad-blog-page-heading) button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:38px!important;padding:9px 14px!important}
body.pad-theme-dark .pad-portal-shell input[type=file]{color:#e8f2ff!important;background:#22354d!important;border:1px solid #526a86!important}
body.pad-theme-dark .pad-portal-shell input[type=file]::file-selector-button{background:#315f99!important;color:#fff!important;border:0!important;border-radius:6px!important;padding:7px 10px!important;margin-right:8px!important}
/* Prevent wide tables from forcing the mobile viewport wider. */
@media(max-width:780px){body.wp-admin .wrap,body.wp-admin .wrap form,.pad-portal-shell,.pad-central-wrap{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}body.wp-admin .wrap table.widefat,.pad-portal-shell table.widefat{display:block!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}body.wp-admin .wrap :is(input,select,textarea){max-width:100%!important}body.wp-admin .wrap .pad-birthday-form{max-width:100%!important}}
@media(prefers-reduced-motion:reduce){:is(.pad-portal-shell,.pad-central-wrap,.pad-unified-admin) *{transition:none!important}}

/* 1.8.101: targeted visual repairs, respecting approved desktop layout. */
body.pad-theme-dark .pad-portal-shell :is(.pad-report,.pad-blog-admin) :is(.pad-stat,.pad-stat-card,.pad-report-card,.pad-report-summary,.pad-blog-author),
body.pad-theme-dark .pad-portal-shell :is(.pad-report,.pad-blog-admin) :is(.pad-stat,.pad-stat-card,.pad-report-card,.pad-report-summary,.pad-blog-author) *{color:#173452!important}
body.pad-theme-dark .pad-portal-shell :is(.pad-report,.pad-blog-admin) :is(.pad-stat,.pad-stat-card,.pad-report-card,.pad-report-summary,.pad-blog-author) :is(small,.description){color:#425c78!important}
body.pad-theme-dark .pad-portal-shell :is(.pad-cred-panel,.pad-cred-documents,.pad-cred-event,.pad-cred-card) :is(p,small,strong,label,span,a){color:inherit}
body.pad-theme-dark .pad-portal-shell :is(.pad-cred-panel,.pad-cred-documents,.pad-cred-event,.pad-cred-card){color:#173452}
body.pad-theme-dark .pad-portal-shell details summary a{color:#b9ddff!important}
body.pad-theme-dark .pad-portal-shell details summary a:hover{color:#fff!important}
.pad-portal-shell input[type=date]{min-height:40px!important;padding:8px 12px!important;color-scheme:light}
body.pad-theme-dark .pad-portal-shell input[type=date]{color-scheme:dark}
.pad-portal-shell input[type=date]::-webkit-calendar-picker-indicator{opacity:1;cursor:pointer}
.pad-portal-shell :is(input,select,textarea){box-sizing:border-box!important;padding-left:12px!important;padding-right:12px!important}
.pad-portal-shell :is(.pad-brand-header,.pad-brand-logo){text-align:center}
.pad-portal-shell .pad-brand-header img{display:block;margin-left:auto!important;margin-right:auto!important}
.pad-portal-shell :is(button,.button,.pad-btn){overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important}
/* File controls must not force their parent card beyond the viewport. */
.pad-portal-shell input[type=file]{max-width:100%!important;min-width:0!important;width:100%!important;box-sizing:border-box!important}
@media(max-width:780px){
 .pad-portal-shell .pad-mobile-card-table{display:block!important;width:100%!important;max-width:100%!important;border:0!important;overflow:visible!important;background:transparent!important}
 .pad-portal-shell .pad-mobile-card-table thead{display:none!important}
 .pad-portal-shell .pad-mobile-card-table tbody{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important}
 .pad-portal-shell .pad-mobile-card-table tbody tr{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;border:1px solid var(--pad-v-line)!important;border-radius:12px!important;background:var(--pad-v-surface)!important;padding:8px!important;box-sizing:border-box!important}
 .pad-portal-shell .pad-mobile-card-table tbody tr>td{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:10px!important;border:0!important;border-bottom:1px solid var(--pad-v-line)!important;border-radius:0!important;background:transparent!important;color:var(--pad-v-text)!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
 .pad-portal-shell .pad-mobile-card-table tbody tr>td:last-child{border-bottom:0!important}
 .pad-portal-shell .pad-mobile-card-table tbody tr>td:before{content:attr(data-pad-label);display:block;font-size:11px;font-weight:700;color:var(--pad-v-muted);letter-spacing:.02em}
 .pad-portal-shell .pad-mobile-card-table tbody tr>td :is(button,.button,a.button){display:inline-flex!important;width:auto!important;max-width:100%!important;min-width:0!important;align-items:center!important;justify-content:center!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;padding:9px 12px!important}
 .pad-portal-shell .pad-mobile-card-table tbody tr>td form{max-width:100%!important}
 .pad-portal-shell .pad-mobile-card-table tbody tr>td[colspan]{width:100%!important}
 .pad-portal-shell :is(.pad-brand-header,.pad-central-topbar .pad-brand-header){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important}
 .pad-portal-shell .pad-brand-header img{position:static!important;transform:none!important;margin:0 auto!important;float:none!important}
 .pad-portal-shell :is(.pad-cred-panel,.pad-cred-documents,.pad-cred-event) input[type=file]{display:block!important;width:100%!important}
}
