.role-description{display:block;font-size:.8rem;font-weight:400;opacity:.8;margin:4px 0 8px}
.mobile21-toggle,.mobile21-subnav{display:none}
@media(max-width:768px){
body main{width:100%;max-width:100%;box-sizing:border-box;padding:12px;margin-inline:auto;min-width:0} body main section{min-width:0;max-width:100%;box-sizing:border-box} body header{position:sticky;top:0;z-index:1000} body header .institution{display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px;align-items:center} body header .binary-logo{max-width:42%;height:auto} body header .mobile-menu{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-left:auto} body header nav{display:none!important;width:100%;flex-direction:column;align-items:stretch;max-height:70vh;overflow:auto} body header.mobile21-open nav{display:flex!important} body header nav a{min-height:44px;display:flex;align-items:center} body>.ribbon{display:none!important} .mobile21-subnav{display:flex;flex-direction:column;padding-left:12px;gap:4px} .mobile21-subnav a.active{color:var(--wine);font-weight:bold} body main :is(.fields,.network-grid,.equipment-grid,.pump-grid,.pump-position-grid,.sb-grid){display:grid;grid-template-columns:minmax(0,1fr)!important;gap:8px} body main :is(.filters,.catalog-controls,.form-actions,.section-bar,.geo-actions,.sb-buttons){display:flex;flex-wrap:wrap;gap:8px;align-items:stretch} body main :is(.filters,.catalog-controls)>*{max-width:100%;min-width:0;flex:1 1 100%} body main :is(button,a.outline,input:not([type=checkbox]):not([type=hidden]),select){min-height:44px;max-width:100%;box-sizing:border-box} body main :is(input,select,textarea){min-width:0;max-width:100%} body main .scroll.mobile21-cards{overflow:visible;max-width:100%} .mobile21-cards table,.mobile21-cards tbody{display:block;width:100%;min-width:0!important} .mobile21-cards thead{display:none} .mobile21-cards tr{display:block;border:1px solid var(--line);border-radius:8px;margin:8px 0;padding:12px;min-width:0} .mobile21-cards td{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;white-space:normal!important;overflow-wrap:anywhere;text-align:left!important;padding:8px 0;min-width:0!important;width:auto!important} .mobile21-cards td::before{content:attr(data-mobile-label);font-size:.8rem;opacity:.8;flex:0 1 42%} .mobile21-cards td[colspan]{display:block} .mobile21-cards td[colspan]::before{display:none} .mobile21-cards tr.mobile21-collapsed td:not(.mobile21-primary){display:none} .mobile21-toggle{display:inline-flex;min-height:44px;align-items:center;margin-left:auto} .mobile21-cards td.mobile21-primary{font-weight:700} .mobile21-cards td.mobile21-primary::before{color:var(--wine)} body main .settings-inline{padding:12px;max-width:100%} body main .geo-map{max-width:100%} body main .pump-card{min-width:0;max-width:100%} body main .site-heading{flex-wrap:wrap} body main .scroll:not(.mobile21-cards){max-width:100%;overflow-x:auto} }
.role21-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.role21-card{border:1px solid var(--line);border-radius:10px;padding:16px;min-width:0}.role21-card summary{cursor:pointer;display:grid;gap:8px}.role21-card summary small{font-weight:normal}.role21-card[open]{grid-column:1/-1}.role21-content{margin-top:16px}.role21-permission{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.role21-on{color:#27834c}.role21-off{opacity:.7}.role21-permission label{display:flex;align-items:center;gap:8px}.role21-permission input{width:auto}.mobile21-only{display:none}.catalog-table .site-sort::after{content:none!important;display:none!important}
@media(max-width:768px){.mobile21-only{display:inline-flex}.role21-grid{grid-template-columns:1fr}.role21-card{padding:12px}.role21-card summary{min-height:44px}.mobile21-filter-closed select,.mobile21-filter-closed a{display:none!important}.mobile21-filter-closed button:not(.mobile21-only){display:none!important}.mobile21-cards tr[hidden]{display:none!important}.mobile21-cards tr.settings-expanded{margin-top:-8px;border-top:0}.mobile21-cards .settings-expanded td{display:block}.mobile21-cards .settings-expanded td::before{display:none}.mobile21-cards .mobile21-site-name{font-size:1.1rem;font-weight:700}.mobile21-cards .mobile21-site-name::before{display:none}.mobile21-cards .mobile21-site-row{cursor:pointer}.mobile21-cards .mobile21-site-row td{padding:5px 0}.mobile21-cards .mobile21-site-row td::before{flex-basis:35%}.mobile21-cards .mobile21-site-row td[data-mobile-label="Nombre"]{order:-1}.mobile21-cards .mobile21-site-row{display:flex;flex-direction:column}.mobile21-cards .mobile21-site-row td[data-mobile-label="Acciones"]{justify-content:flex-end}.mobile21-pump-closed .pump-position-grid,.mobile21-pump-closed .pump-dropdown{display:none}.mobile21-cards .mobile21-collapsed td.mobile21-primary{display:flex}.mobile21-cards .mobile21-collapsed td.mobile21-primary form{max-width:100%}.mobile21-cards .mobile21-collapsed td.mobile21-primary input{max-width:100%}.technical-editor .technical-block{border:1px solid var(--line);border-radius:10px;padding:12px;margin:16px 0}.technical-editor .network-card{min-width:0}.pump-dialog{max-width:calc(100vw - 24px);box-sizing:border-box}.mobile21-copy-row{display:flex;gap:8px;align-items:center}.mobile21-copy-row input{flex:1;min-width:0}.mobile21-copy-row button{flex:none}.mobile21-cards td[data-mobile-label="Acciones"]::before{display:none}.mobile21-cards .action-group{flex-wrap:wrap}.mobile21-cards .site-status{min-width:0}.mobile21-cards td[data-mobile-label="Teléfono"] a{margin-left:auto}}
@media(min-width:769px){.mobile21-copy-row{display:contents}.mobile21-only{display:none!important}}
@media(max-width:768px){body main .mobile21-only{gap:8px}.mobile21-cards tr.catalog-empty[hidden]{display:none!important}.mobile21-filter-closed input[name=q]{order:-1}.mobile21-filter-closed .mobile21-only{flex:0 0 auto}.mobile21-cards .settings-row-actions{flex-wrap:wrap}.mobile21-cards .mobile21-site-row td[data-mobile-label="Nombre"]{order:-2}.mobile21-cards .mobile21-site-row td[data-mobile-label="Petrolera"]{order:-3}}

@media(max-width:768px){body header .mobile-menu::before,body header .mobile-menu::after{content:none!important;display:none!important}}
.mobile21-pagination{display:none}
@media(max-width:768px){
.mobile21-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0;font-size:13px}.cal-table tr.mobile21-page-hidden{display:none!important}.cal-table table{min-width:0!important;width:100%}.cal-table td,.cal-table th{white-space:normal!important}.mobile21-inline-editor{display:block!important;width:100%!important}.mobile21-inline-editor::before{display:none!important}.mobile21-inline-editor .technical-editor{width:100%;min-width:0}.mobile21-inline-editor .technical-block{margin:8px 0}.catalog-controls>*{width:100%}.catalog-actions,.cal-actions{flex-wrap:wrap;justify-content:center;gap:8px}.role21-permission{flex-wrap:wrap}.role21-permission label{min-height:44px}.mobile21-cards td:empty::before{display:none}.mobile21-cards td:not([data-mobile-label])::before{display:none}.mobile21-cards .settings-inline{width:100%;box-sizing:border-box}.mobile21-cards td form{max-width:100%;min-width:0}.mobile21-cards td form input{max-width:100%}.mobile21-cards td form select{max-width:100%}body header.mobile21-open nav{animation:m21-enter .2s ease-out}main.binary-enter{animation:m21-enter .2s ease-out}@keyframes m21-enter{from{opacity:.45;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce){body header.mobile21-open nav,main.binary-enter{animation:none!important;transition:none!important}}

/* R04: identidad del sitio, exclusivamente móvil. */
@media(max-width:768px){
 body main section.site-heading{display:grid;grid-template-columns:56px minmax(0,1fr) 24px;align-items:center;gap:12px;padding:16px;box-sizing:border-box}
 body main .site-heading>.site-emblem{display:grid;place-items:center;width:56px;height:56px;min-width:56px;max-width:56px;aspect-ratio:1;margin:0;padding:0;box-sizing:border-box;border-radius:8px;overflow:hidden;background:#fff}
 body main .site-heading>.site-emblem>.brand-icon{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;box-sizing:border-box;padding:6px;margin:0;border-radius:8px}
 body main .site-heading>div:nth-child(2){min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px;overflow-wrap:anywhere}
 body main .site-heading>div:nth-child(2)>:is(small,h1,p){margin:0;white-space:normal}
 body main .site-heading h1{font-size:1.125rem;line-height:1.3}
 body main .site-heading>.site-status{justify-self:center;align-self:center;margin:0;min-width:0;width:24px}
}

/* R05: single state-driven icon; suppress legacy injected icons and labels. */
@media(max-width:768px){
 body header .institution button.mobile-menu{position:relative;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0!important;gap:0!important;font-size:0!important;line-height:0!important;border-radius:6px;background:#A61A22;color:#fff;box-sizing:border-box;overflow:hidden}
 body header .institution button.mobile-menu > *{display:none!important}
 body header .institution button.mobile-menu::after{content:none!important;display:none!important}
 body header .institution button.mobile-menu::before{content:""!important;display:block!important;position:absolute;inset:10px;width:24px;height:24px;margin:0!important;background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E")}
 body header.mobile21-open .institution button.mobile-menu::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E")}
}

/* R06 */
.tank-link-diagram svg text{fill:#171717!important}html[data-theme=dark] .tank-link-diagram svg rect{fill:#252525;stroke:#f08086}html[data-theme=dark] .tank-link-diagram svg text{fill:#eee!important}html[data-theme=dark] .tank-link-diagram svg path{stroke:#f08086}
@media(min-width:769px){.tank-table{max-width:100%;overflow-x:auto}.tank-table table{width:max-content;min-width:100%;table-layout:auto}.tank-table th,.tank-table td{white-space:nowrap;overflow-wrap:normal;word-break:normal}.tank-table th{text-align:center;vertical-align:middle}}
.pump-notes{margin-top:12px;text-align:left;min-width:0}.pump-notes p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 0}.pump-dialog textarea{width:100%;box-sizing:border-box;resize:vertical}.page-nav{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:36px;vertical-align:middle;padding-inline:8px}.page-nav .ui-icon{width:16px;height:16px;flex:none}@media(max-width:768px){.page-nav{min-height:44px}}

/* R06: intrinsic action widths, independent of grid form columns */
body main .geo-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0}
body main .geo-actions > :is(a,button){display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto!important;width:max-content!important;min-width:120px;max-width:none!important;height:36px;min-height:36px;padding:0 12px!important;gap:8px;white-space:nowrap;line-height:1.2;margin:0!important;box-sizing:border-box}
body main .geo-actions > :is(a,button) svg{width:16px;height:16px;flex:0 0 16px;margin:0!important}
body main .geo-actions.geo-save-actions{flex-wrap:nowrap}
@media(max-width:768px){body main .geo-actions > :is(a,button){height:44px;min-height:44px}body main .geo-actions.geo-save-actions > :is(a,button){min-width:0;flex:1 1 120px!important;max-width:160px!important}}
