:root{--vh-card:#fff;--vh-text:#173550;--vh-muted:#657a8d;--vh-line:#dfe7ef;--vh-bg:#f5f8fc}html[data-theme="dark"]{--vh-card:#11283b;--vh-text:#e3eff7;--vh-muted:#9db5c9;--vh-line:#2b455a;--vh-bg:#0b1b2b}
.vh-legacy{display:none!important}.vh-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:24px}.vh-hero h2{font-size:30px;letter-spacing:-.6px;margin:8px 0}.vh-hero p,.vh-muted{color:var(--vh-muted,#68788e)}.vh-kicker{font-size:11px;font-weight:800;letter-spacing:1.8px;color:#236aa0}.vh-actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.vh-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 24px}.vh-totals>div{background:var(--vh-card,#fff);border:1px solid var(--vh-line,#dfe7ef);border-radius:16px;padding:20px}.vh-totals b{display:block;font-size:27px;color:var(--vh-text,#123350)}.vh-totals span{display:block;font-size:12px;margin-top:6px;color:var(--vh-muted,#68788e)}.vh-directory{padding:22px}.vh-filters{display:grid;grid-template-columns:2.4fr repeat(4,minmax(130px,1fr));gap:12px}.vh-filters label,.vh-edit-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:650}.vh-results,.vh-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0}.vh-table{min-width:1050px;width:100%}.vh-table td{vertical-align:top;padding:18px 12px}.vh-table small{display:block;margin-top:5px;max-width:245px;overflow-wrap:anywhere;color:var(--vh-muted,#68788e)}.vh-person{border:0;background:none;text-align:left;color:inherit;font:inherit;cursor:pointer;padding:0}.vh-person b{color:#236aa0}.vh-badges{display:flex;flex-wrap:wrap;gap:6px;max-width:260px}.vh-pae{display:flex;gap:7px}.vh-pae span{display:grid;place-items:center;min-width:29px;min-height:29px;border-radius:7px;background:#e6f5ee;color:#126849;font-weight:750}.vh-pae span:nth-child(2){background:#fff0ee;color:#9c3e3e}.vh-pae span:nth-child(3){background:#e8f0fb;color:#285a98}.vh-back{border:0;background:none;padding:0;color:#2477ac;font-weight:700;cursor:pointer}.vh-tabs{display:flex;gap:7px;overflow-x:auto;padding:10px 0 16px;position:sticky;top:0;z-index:4;background:var(--vh-bg,#f5f8fc)}.vh-tabs button{white-space:nowrap;border:1px solid var(--vh-line,#dfe7ef);border-radius:10px;padding:11px 14px;background:var(--vh-card,#fff);color:var(--vh-text,#254761);font:inherit;font-size:12px;cursor:pointer}.vh-tabs button.active{background:#174f77;border-color:#174f77;color:#fff}.vh-panel>.card,.vh-panel>.vh-two{margin-bottom:18px}.vh-two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.vh-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.vh-fields dt{color:var(--vh-muted,#68788e);font-size:12px;margin-bottom:5px}.vh-fields dd{margin:0;font-weight:650;overflow-wrap:anywhere;white-space:pre-wrap}.vh-pre{white-space:pre-wrap;overflow-wrap:anywhere}.vh-shortcuts{display:flex;gap:10px;flex-wrap:wrap}.vh-administrative-record+.vh-administrative-record{margin-top:24px;border-top:1px solid var(--vh-line,#dfe7ef);padding-top:20px}.vh-tool{padding:18px}.vh-tool-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.vh-tool-frame{width:100%;min-height:780px;border:1px solid var(--vh-line,#dfe7ef);border-radius:12px;background:var(--vh-bg,#f5f8fc)}.vh-edit-dialog{width:min(1000px,94vw);max-height:92vh;border:1px solid var(--vh-line,#dfe7ef);border-radius:20px;padding:26px;background:var(--vh-card,#fff);color:var(--vh-text,#173550)}.vh-edit-dialog::backdrop{background:rgba(10,29,49,.6)}.vh-edit-dialog header,.vh-edit-dialog footer{display:flex;justify-content:space-between;gap:12px;align-items:center}.vh-edit-dialog footer{justify-content:flex-end;margin-top:20px}.vh-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:18px 0}.vh-edit-dialog fieldset{border:1px solid var(--vh-line,#dfe7ef);border-radius:12px;padding:18px;margin:20px 0}.vh-edit-dialog legend{font-weight:750;padding:0 8px}.vh-edit-dialog textarea{min-height:95px}.vh-check{display:flex;gap:8px;align-items:center;margin:14px 0}#vhEditError,#vhAssignmentError{color:#b13e3e;white-space:pre-wrap}.vh-embedded .latido-shell-sidebar,.vh-embedded .latido-shell-header,.vh-embedded>.sidebar,.vh-embedded .sidebar,.vh-embedded .mobile-topbar,.vh-embedded .latido-shell-mobile-bar,.vh-embedded .latido-shell-backdrop{display:none!important}.vh-embedded{padding:0!important}.vh-embedded .latido-shell-main,.vh-embedded main,.vh-embedded .main{margin-left:0!important;padding:14px!important;width:100%!important}.vh-embedded .latido-shell-layout{display:block!important}.vh-embedded .app{display:block!important}.vh-context-banner{padding:12px 18px;margin:8px 12px;border-radius:10px;background:#e8f2fa;color:#164f78;font-weight:700}.vh-context-error{padding:30px;color:#a33131;font-weight:650}.vh-embedded .ar-people,.vh-embedded #arSearchForm,.vh-embedded #arSearchPages{display:none!important}.vh-embedded .ar-workspace{display:block!important}.vh-embedded .ar-sidebar{display:none!important}html[data-theme="dark"] .vh-totals>div,body.dark .vh-totals>div{background:#14283a;border-color:#2c4052}html[data-theme="dark"] .vh-person b{color:#80c5ee}button:focus-visible,.vh-person:focus-visible{outline:3px solid #49a3db;outline-offset:3px}@media(max-width:1100px){.vh-filters{grid-template-columns:2fr 1fr 1fr}.vh-hero{align-items:flex-start;flex-direction:column}}@media(max-width:650px){.vh-totals{grid-template-columns:1fr 1fr}.vh-filters,.vh-two,.vh-edit-grid{grid-template-columns:1fr}.vh-fields{grid-template-columns:1fr}.vh-directory{padding:12px}.vh-hero h2{font-size:25px}.vh-totals>div{padding:14px}.vh-tool-frame{min-height:700px}.vh-edit-dialog{padding:16px}.vh-edit-dialog header{align-items:flex-start}.vh-tabs{position:static}}

.vh-embedded .ar-directory,.vh-embedded .ar-header,.vh-embedded .latido-shell-topbar{display:none!important}.vh-embedded .ar-shell{padding:14px!important}.vh-embedded .ar-workspace{grid-template-columns:1fr!important}
@media(max-width:900px){.vh-two{grid-template-columns:1fr}.vh-table{min-width:0}.vh-table thead{display:none}.vh-table tbody{display:grid;gap:14px}.vh-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--vh-line);border-radius:12px;padding:10px}.vh-table td{display:block;padding:9px!important;border:0!important}.vh-table td:first-child,.vh-table td:last-child{grid-column:1/-1}.vh-table td::before{content:attr(data-label);display:block;color:var(--vh-muted);font-size:11px;margin-bottom:6px}.vh-table .vh-person b{font-size:16px}.vh-table .vh-badges{max-width:none}.vh-filters{grid-template-columns:1fr 1fr}.vh-filters label:first-child{grid-column:1/-1}}@media(max-width:450px){.vh-table tr,.vh-filters{grid-template-columns:1fr}}
@media(max-width:900px){.vh-totals{grid-template-columns:1fr 1fr}.vh-totals b{font-size:23px}}

#hubAdministrativeTools .master-hub-copy,#hubAdministrativeTools .master-stats,#hubAdministrativeTools #masterIdentityBanner,#hubAdministrativeTools #masterPopulationTabs,#hubAdministrativeTools #masterSuspendedRepairBar,#hubAdministrativeTools #addMasterBtn,#hubAdministrativeTools #syncMasterVolunteersBtn,#hubAdministrativeTools #selectAllMasterBtn,#hubAdministrativeTools #removeMasterBtn,#hubAdministrativeTools #clearMasterBtn,#hubAdministrativeTools .master-filters,#hubAdministrativeTools .master-table{display:none!important}#hubAdministrativeTools article:has(>.master-filters){display:none!important}

.vh-embedded .critical-header,.vh-embedded .critical-hero,.vh-embedded .users-toolbar,.vh-embedded #logoutBtn,.vh-embedded #notificationsToggle,.vh-embedded a[href*=".html"],.vh-embedded #asReconcile,.vh-embedded .as-policy-card:not(#asSystemAlert){display:none!important}.vh-embedded .critical-wrap,.vh-embedded .users-wrap{padding:10px!important}.vh-embedded .notifications-widget{display:none!important}

.vh-tabs{top:calc(var(--ls-topbar-h,72px) + 4px)}#volunteerHub{scroll-margin-top:calc(var(--ls-topbar-h,72px) + 18px)}#vhPanel{scroll-margin-top:calc(var(--ls-topbar-h,72px) + 95px)}

/* Superficies sólidas: el tema global no atenúa las fichas ni sus formularios. */
#volunteerHub .card,.vh-edit-dialog{
  background:var(--vh-card)!important;color:var(--vh-text)!important;
  border-color:var(--vh-line)!important;opacity:1!important;
  filter:none!important;backdrop-filter:none!important;
}
#volunteerHub .card :is(h3,h4,dd,b,strong),.vh-edit-dialog :is(h2,h3,legend,label){color:var(--vh-text)!important}
#volunteerHub .card :is(p,dt,small),.vh-edit-dialog p{color:var(--vh-muted)!important}
#volunteerHub :is(.avail-text,.muted){color:var(--vh-muted)!important;opacity:1!important}
#volunteerHub .card table,.vh-edit-dialog table{background:var(--vh-card)!important;color:var(--vh-text)!important}
#volunteerHub .card :is(th,td),.vh-edit-dialog :is(th,td){color:var(--vh-text)!important;background:transparent!important}
#volunteerHub .card th,.vh-edit-dialog th{background:var(--vh-bg)!important}
.vh-edit-dialog :is(input:not([type=checkbox]),select,textarea){background:var(--vh-bg)!important;color:var(--vh-text)!important;border:1px solid var(--vh-line)!important}
.vh-edit-dialog :is(input,select,textarea):disabled{opacity:.75;cursor:wait}
.vh-edit-dialog input[readonly]{cursor:default}
.vh-edit-dialog::backdrop{background:rgba(3,12,22,.5);backdrop-filter:none}
.vh-entry-error{padding:16px;border:1px solid #cd6a36;border-radius:12px;background:#fff2e5!important;color:#763c0c!important}
.vh-edit-dialog :is(#vhEditError,#vhHistoricalError,#vhReplacementError),#vhAssignmentError{color:#b42318!important;white-space:pre-wrap}
html[data-theme=dark] .vh-edit-dialog :is(#vhEditError,#vhHistoricalError,#vhReplacementError),html[data-theme=dark] #vhAssignmentError{color:#ffb4b4!important}
#volunteerHub :is(.vh-panel,.vh-two,.vh-directory,.vh-fields),.vh-edit-dialog form{min-width:0}
.vh-edit-dialog input[type=checkbox]{accent-color:#2780d7;width:18px;height:18px}

/* Cuadrículas de disponibilidad: bordes completos y sin hover blanco heredado. */
#volunteerHub .card table,.vh-edit-dialog fieldset table{border-collapse:collapse;border:1px solid #7891a6!important}
#volunteerHub .card table :is(th,td),.vh-edit-dialog fieldset table :is(th,td){border:1px solid #7891a6!important}
#volunteerHub .card table tbody tr:hover,.vh-edit-dialog fieldset table tbody tr:hover{background:var(--vh-card)!important}
body.latido-unified-shell #volunteerHub .card table tbody tr:hover td,
body.latido-unified-shell .vh-edit-dialog fieldset table tbody tr:hover td{background:var(--vh-card)!important;color:var(--vh-text)!important}
#volunteerHub .card table tbody tr:hover th,.vh-edit-dialog fieldset table tbody tr:hover th{background:var(--vh-bg)!important;color:var(--vh-text)!important}
html[data-theme] body.latido-unified-shell #vhEditDialog #vhEditForm fieldset table :is(th,td),
html[data-theme] body.latido-unified-shell #volunteerHub .card table :is(th,td){border:1px solid #7891a6!important}
html[data-theme] body.latido-unified-shell #vhEditDialog #vhEditForm fieldset table th,
html[data-theme] body.latido-unified-shell #volunteerHub [data-hub-availability] th{position:static!important;background-clip:padding-box}
html[data-theme] body.latido-unified-shell #vhEditDialog #vhEditForm fieldset table,
html[data-theme] body.latido-unified-shell #volunteerHub table[data-hub-availability]{border-collapse:separate!important;border-spacing:0!important}
.vh-bulk-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 0;border-bottom:1px solid var(--vh-line)}
.vh-select-all{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650}
#volunteerHub :is(.vh-pick,#vhSelectAll){width:18px;height:18px;accent-color:#2780ff;cursor:pointer}
.vh-row-delete{margin-top:8px}
.vh-bulk-dialog{width:min(720px,95vw)}
.vh-bulk-dialog ul{padding-left:22px;line-height:1.7}
.vh-delete-warning{padding:14px;border:1px solid #a64d55;border-radius:10px;background:#381d29;color:#ffd6dc!important}
.vh-bulk-dialog [data-bulk-error]{color:#ffb4b4!important;white-space:pre-wrap}
#volunteerHub .vh-table :is(th,td):last-child{position:sticky!important;right:0;z-index:2;background:var(--vh-card)!important;min-width:125px;box-shadow:-4px 0 8px #0003}
#volunteerHub .vh-table th:last-child{z-index:3;background:var(--vh-bg)!important}
#volunteerHub .vh-table td:last-child .btn{display:block;width:100%}
#volunteerHub .vh-table.vh-selectable :is(th,td):first-child{width:44px;min-width:44px;text-align:center}
