/* Portal Monagas 1.0.6.7: categorías compactas, etiquetas completas y paneles anclados. */
body.portal-v100 .portal-admin-header{z-index:1050;overflow:visible;isolation:isolate}
body.portal-v100 .portal-institutional-bar{display:flex;flex-wrap:wrap;gap:16px 28px}
body.portal-v100 .portal-admin-brand{min-width:0;flex:0 1 auto}
body.portal-v100 .portal-admin-brand>span{min-width:0;overflow-wrap:anywhere;line-height:1.3}
body.portal-v100 .portal-admin-brand img{flex:none}
body.portal-v100 .portal-user-actions{min-width:0;max-width:100%;flex:0 1 auto;gap:14px}
body.portal-v100 .portal-user-name{display:flex;align-items:center;gap:10px;min-width:0;max-width:440px;font-weight:650;line-height:1.4}
body.portal-v100 .portal-user-name>span{min-width:0;overflow-wrap:anywhere}
body.portal-v100 .portal-user-name small{display:block;font-size:.7rem;color:#6d7e8d;font-weight:500;margin-top:3px}
body.portal-v100 .portal-user-name>i,body.portal-v100 .portal-user-actions>form,body.portal-v100 .portal-visit-link{flex:none}
body.portal-v100 .portal-main-nav{display:flex;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:0;min-width:0;padding:0 clamp(14px,3vw,40px);overflow:visible}
body.portal-v100 .portal-main-nav>.portal-nav-group{flex:0 1 auto;min-width:0;position:relative;margin:0;border:0;padding:0}
body.portal-v100 .portal-nav-home,body.portal-v100 .portal-nav-group>summary{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:52px;height:100%;margin:0;padding:14px 17px;font-size:.84rem;line-height:1.45;white-space:normal;text-align:left;word-break:normal;overflow-wrap:anywhere;list-style:none;box-sizing:border-box}
body.portal-v100 .portal-nav-home{flex:0 0 auto;justify-content:flex-start}
body.portal-v100 .portal-nav-label{display:block;min-width:0;flex:1;white-space:normal;word-break:normal;overflow-wrap:anywhere;hyphens:none;text-align:left}
body.portal-v100 .portal-main-nav>.portal-nav-home>.portal-nav-label,body.portal-v100 .portal-nav-group>summary>.portal-nav-label{flex:0 1 auto}
body.portal-v100 .portal-nav-group>summary>i{flex:0 0 12px;width:12px;text-align:center}
body.portal-v100 .portal-nav-group>summary::marker{content:""}
body.portal-v100 .portal-nav-dropdown{display:block;position:absolute;inset:100% auto auto var(--portal-menu-offset,0px);width:340px;min-width:0;max-width:calc(100vw - 32px);max-height:var(--portal-menu-space,min(65vh,520px));padding:8px;margin:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:#fff;border:1px solid #dce7ef;border-top:3px solid #59b4e7;border-radius:0 0 12px 12px;box-shadow:0 12px 30px #122f4524;z-index:1100;transform:none!important;animation:none!important}
body.portal-v100 .portal-nav-group:not([open])>.portal-nav-dropdown{display:none}
body.portal-v100 .portal-nav-dropdown>a{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:46px;width:100%;padding:11px 12px;font-size:.8rem;line-height:1.45;white-space:normal;text-align:left;transform:none!important;word-break:normal;overflow-wrap:anywhere}
body.portal-v100 .portal-nav-dropdown>a>i{width:20px;min-width:20px;line-height:1.3;text-align:center;margin:0}
body.portal-v100 .portal-nav-dropdown .ticket-unread-label{position:static;display:inline-grid;place-items:center;min-width:24px;max-width:64px;min-height:24px;padding:3px 6px;margin:0;border-radius:20px;font-size:.65rem;line-height:1.2;background:#e6f3fc;color:#08669c;overflow-wrap:anywhere}
body.portal-v100 .portal-menu-toggle{display:none}
@media(min-width:1181px) and (max-width:1439px){
 body.portal-v100 .portal-nav-home,body.portal-v100 .portal-nav-group>summary{padding:14px 12px;font-size:.76rem}
 body.portal-v100 .portal-nav-group>summary>.portal-nav-label{white-space:nowrap}
}
/* Pestañas y acciones internas con rótulos extensos. */
body.portal-v100 :is(.portal-tab-nav,.admin-section-tabs,.portal-reports-shortcuts,.portal-list-head){min-width:0;max-width:100%;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body.portal-v100 :is(.portal-tab-nav>a,.admin-section-tab,.portal-reports-shortcuts>.btn){min-width:0;max-width:100%;height:auto;white-space:normal!important;overflow-wrap:anywhere;line-height:1.45;text-align:left;flex:0 1 auto}
body.portal-v100 .portal-list-head>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
body.portal-v100 :is(.actions,.filter-actions,.toolbar){max-width:100%;flex-wrap:wrap}
body.portal-v100 :is(.actions,.filter-actions,.toolbar) :is(a,button){max-width:100%;height:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
@media(max-width:1180px){
 body.portal-v100 .portal-menu-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:12px 18px;background:#0a609a;color:#fff;border:0;font:inherit;font-size:.83rem;font-weight:700;text-align:left;cursor:pointer}
 body.portal-v100 .portal-main-nav{display:none;flex-direction:column;align-items:stretch;padding:6px 12px 12px;max-height:calc(100dvh - 145px);overflow-y:auto;overscroll-behavior:contain}
 body.portal-v100 .portal-main-nav.is-open{display:flex;animation:none!important}
 body.portal-v100 .portal-main-nav>.portal-nav-group{flex:none;width:100%}
 body.portal-v100 .portal-nav-home,body.portal-v100 .portal-nav-group>summary{min-height:48px;height:auto;width:100%;padding:12px;font-size:.88rem}
 body.portal-v100 .portal-nav-group>.portal-nav-dropdown{position:static;inset:auto;width:100%;max-width:100%;min-width:0;max-height:none;overflow:visible;box-shadow:none;border-radius:8px;border-top:1px solid #dce7ef;scrollbar-gutter:auto}
 body.portal-v100 .portal-nav-dropdown>a{min-height:48px;font-size:.84rem}
 body.portal-v100 .portal-user-name{max-width:330px}
}
@media(max-width:620px){
 body.portal-v100 .portal-institutional-bar{display:grid;grid-template-columns:minmax(0,1fr);padding:14px;gap:12px}
 body.portal-v100 .portal-admin-brand{font-size:1rem;gap:12px}
 body.portal-v100 .portal-admin-brand img{width:100px;max-width:100px;height:42px}
 body.portal-v100 .portal-user-actions{display:flex;width:100%;justify-content:space-between;gap:10px}
 body.portal-v100 .portal-user-name{max-width:none;flex:1;font-size:.75rem}
 body.portal-v100 .portal-user-name small{font-size:.66rem}
 body.portal-v100 .portal-logout{min-height:40px;padding:8px 12px;font-size:.75rem}
 body.portal-v100 .portal-main-nav{max-height:calc(100dvh - 200px)}
 body.portal-v100 .portal-visit-link{display:none}
 body.portal-v100 :is(.portal-tab-nav>a,.admin-section-tab){flex:1 1 140px}
}
/* Portal público: marca y acciones en una fila; ocho destinos con ancho real. */
body .header{z-index:44000!important;isolation:isolate}
body .header>.container.header-inner{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px 20px!important;max-width:1500px!important;width:100%!important;padding:10px 24px 0!important;align-items:center!important}
body .header .brand{grid-row:1;grid-column:1;justify-self:start;width:180px!important;min-width:0!important;max-width:100%!important}
body .header .brand img{width:180px!important;max-width:100%!important;height:auto!important}
body .header .header-actions{grid-row:1;grid-column:2;min-width:0!important;margin:0!important;gap:8px!important;justify-self:end}
body .header .header-actions .btn{min-height:42px}
body .header .header-access{width:auto!important;padding:10px 16px!important}
body .header .header-access span{display:inline!important}
@media(min-width:1241px){
 body .header .main-nav{grid-row:2;grid-column:1/-1;position:static!important;inset:auto!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;transform:none!important;justify-self:stretch!important;overflow:visible!important}
 body .header #nav.nav{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:2px!important;width:100%!important;max-width:100%!important;margin:0!important;align-items:stretch!important;padding:0 0 8px!important}
 body .header #nav>li{flex:0 0 auto!important;min-width:0!important;display:flex!important;list-style:none}
 body .header #nav .nav-link{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;width:auto!important;min-height:44px!important;height:auto!important;padding:10px 14px!important;font-size:.78rem!important;line-height:1.4!important;white-space:nowrap!important;text-align:left!important;transform:none!important;letter-spacing:normal!important}
 body .header #nav .nav-link>span{flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important;word-break:normal!important;hyphens:none!important}
 body .header #nav .nav-link>i{display:block!important;flex:0 0 18px!important;width:18px!important;margin:0!important}
 body .header #nav .nav-link-external::after{flex:none;margin-left:0}
 body .header .mobile-nav-head,body .header .mobile-nav-tools,body .header #hambBtn{display:none!important}
}
@media(max-width:1240px){
 body .header>.container.header-inner{padding:12px 18px!important;gap:12px!important}
 body .header .brand{width:190px!important}
 body .header .main-nav{top:calc(var(--portal-fixed-header-height,134px) + 8px)!important;bottom:8px!important;left:auto!important;right:8px!important;width:min(390px,calc(100vw - 16px))!important;max-height:calc(100dvh - var(--portal-fixed-header-height,134px) - 16px)!important;height:auto!important;border-radius:14px!important}
 body.mobile-nav-open::after{inset:var(--portal-fixed-header-height,134px) 0 0!important;z-index:43000!important}
 body .header #nav.nav{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;overflow-y:auto!important;gap:4px!important}
 body .header #nav>li{width:100%!important;min-width:0!important}
 body .header #nav .nav-link{display:flex!important;width:100%!important;min-height:48px!important;height:auto!important;align-items:center!important;gap:12px!important;font-size:.9rem!important;line-height:1.45!important;padding:11px 12px!important;white-space:normal!important;transform:none!important;text-align:left!important}
 body .header #nav .nav-link>i{flex:0 0 20px!important;width:20px!important;margin:0!important;text-align:center}
 body .header #nav .nav-link>span{flex:1!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
 body .header .mobile-nav-tools{flex:0 0 auto!important;min-width:0!important}
 body .header .mobile-nav-tools .btn{white-space:normal!important;line-height:1.4!important;min-height:44px!important;height:auto!important;text-align:left}
 body .header .mobile-nav-head{flex:none!important}
}
@media(max-width:540px){
 body .header>.container.header-inner{padding:10px 12px!important;gap:8px!important}
 body .header .brand{width:150px!important}
 body .header .header-actions{gap:5px!important}
 body .header .header-actions .btn{width:40px!important;min-width:40px!important;min-height:40px!important;padding:8px!important}
 body .header .header-access span{display:none!important}
 body .header .main-nav{left:8px!important;right:8px!important;width:auto!important;max-width:calc(100vw - 16px)!important}
}
/* Anular las alturas fijas heredadas: ambas filas participan en la medición. */
body .header>.container.header-inner{height:auto!important;min-height:0!important;grid-template-rows:auto auto!important}
@media(max-width:1240px){body .header>.container.header-inner{grid-template-rows:auto!important}}
@media(prefers-reduced-motion:reduce){body .header .main-nav{transition:none!important;animation:none!important}}

/* Menú público sencillo: enlaces con ancho natural e iconos junto al texto. */
body .header{background:#fff!important;border-bottom:1px solid #e4eaf0!important;box-shadow:0 1px 4px #173b5010!important;backdrop-filter:none!important}
body .header #nav .nav-link{background:transparent!important;color:#354859!important;border-radius:5px!important;border:0!important;box-shadow:none!important;font-weight:600!important}
body .header #nav .nav-link::before,body .header #nav .nav-link::after{display:none!important}
body .header #nav .nav-link:hover{background:#f4f7fa!important;color:#086b9f!important}
body .header #nav .nav-link.active{background:#edf5fa!important;color:#096c9f!important;box-shadow:inset 0 -2px #1680b6!important}
body .header .header-actions .btn{border-radius:6px!important;box-shadow:none!important;transform:none!important}
body .header .header-access{background:#1179b2!important;font-size:.8rem!important;font-weight:600!important}
body.contraste .header,body[data-theme="dark"] .header{background:#132737!important;border-color:#294252!important}
body.contraste .header #nav .nav-link,body[data-theme="dark"] .header #nav .nav-link{color:#e2edf4!important}
body.contraste .header #nav .nav-link.active,body[data-theme="dark"] .header #nav .nav-link.active{background:#203e52!important;color:#9edaff!important}

/* v1.0.6.8: logo, menú y acciones comparten una única fila de escritorio. */
@media(min-width:1241px){
 body .header>.container.header-inner{grid-template-columns:150px minmax(0,1fr) auto!important;grid-template-rows:auto!important;gap:18px!important;padding:14px 24px!important;max-width:1760px!important}
 body .header .brand{grid-row:1!important;grid-column:1!important;width:150px!important}
 body .header .brand img{width:150px!important}
 body .header .main-nav{grid-row:1!important;grid-column:2!important;width:100%!important}
 body .header .header-actions{grid-row:1!important;grid-column:3!important}
 body .header #nav.nav{flex-wrap:nowrap!important;justify-content:center!important;padding:0!important;gap:1px!important}
 body .header #nav .nav-link{padding:10px 9px!important;font-size:.73rem!important;gap:6px!important}
 body .header #nav .nav-link>i{width:12px!important;flex-basis:12px!important;font-size:11px!important}
 body .header .header-actions .btn{min-width:38px!important;min-height:40px!important;padding:9px 11px!important}
}
@media(min-width:1241px) and (max-width:1439px){
 body .header>.container.header-inner{grid-template-columns:126px minmax(0,1fr) auto!important;gap:10px!important;padding:12px 16px!important}
 body .header .brand,body .header .brand img{width:126px!important}
 body .header #nav .nav-link{font-size:11px!important;padding:10px 7px!important;gap:5px!important}
 body .header .header-access span{display:none!important}
}
