/* Páginas operativas del administrador: jerarquía compacta y acciones reales. */
body.adm-ui-v2 #s-rg.ao-rg .adm-rg-header{gap:12px!important;margin-bottom:18px!important;align-items:center!important}
body.adm-ui-v2 #s-rg.ao-rg .adm-rg-header h2{font-size:26px!important}
body.adm-ui-v2 #s-rg.ao-rg[data-ao-tab=dashboard] #rg-header-actions{margin:0 0 4px!important}
body.adm-ui-v2 #s-rg.ao-rg[data-ao-tab=dashboard] #rg-header-actions button{width:100%;min-height:44px!important}
body.adm-ui-v2 #s-rg.ao-rg .adm-rg-stats{gap:10px!important;margin-bottom:16px!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-metric{padding:12px!important;border-radius:15px!important;min-height:0!important}
.ao-metric-head{display:flex;align-items:center;gap:8px;min-width:0;margin:0 0 7px}
body.adm-ui-v2 #s-rg.ao-rg .ao-metric-head>div:first-child{display:grid;place-items:center;font-size:17px!important;width:30px;height:30px;flex:0 0 30px;border-radius:10px;background:#ffffff90;margin:0!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-metric-head>div:nth-child(2){font-size:22px!important;font-weight:800!important;min-width:0;overflow-wrap:anywhere;color:var(--rg-ink,#246583)!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-metric>div:not(.ao-metric-head){font-size:11px!important;line-height:1.45!important;margin:0!important;color:#607e8e!important}
.ao-secondary{margin:0 0 12px;border:1px solid #d3e3eb;border-radius:13px;background:#fff;min-width:0}
.ao-secondary>summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;font-size:12px;color:#42758b;font-weight:700;cursor:pointer;list-style:none}
.ao-secondary>summary:after{content:'⌄'}.ao-secondary>summary::-webkit-details-marker{display:none}.ao-secondary>div{padding:12px!important;min-width:0}
.ao-rg .adm-options-list .ao-secondary{border:0!important;border-top:1px solid #dbe6ed!important;border-radius:0;margin:0}
body.adm-ui-v2 #s-rg.ao-rg .ao-record,body.adm-ui-v2 #s-rg.ao-rg .ao-approved-total{border:.5px solid #cddfe8!important;border-left:4px solid #2785a8!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important;color:#2b5267!important;margin-bottom:13px!important;padding:16px!important;min-width:0}
body.adm-ui-v2 #s-rg.ao-rg .ao-report>div:first-child{padding:0!important;gap:10px!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-record-title{font-size:19px!important;line-height:1.3;color:#24485e!important;font-weight:750!important;overflow-wrap:anywhere}
body.adm-ui-v2 #s-rg.ao-rg .ao-record-actions{display:flex!important;align-items:center;gap:9px!important;flex-wrap:wrap!important;border-top:1px solid #dae6ed;margin-top:12px;padding-top:10px}
body.adm-ui-v2 #s-rg.ao-rg .ao-record-actions button{min-height:44px!important;border:0!important;background:transparent!important;font-size:12px!important;color:#187aa0!important;padding:7px 4px!important;font-weight:750!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-record-actions button[onclick*="Eliminar"]{color:#b5505e!important;margin-left:auto}
body.adm-ui-v2 #s-rg.ao-rg .ao-record .ao-badge{display:inline-flex;font-size:10px!important;margin-bottom:8px;border-radius:999px!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-record [style*="color:#e2e8f0"],body.adm-ui-v2 #s-rg.ao-rg .ao-record [style*="color:#ddd6fe"]{color:#2b5267!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-approved-total{border-left-color:#28956e!important;background:#eff9f3!important;padding:13px!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-approved-total>div:first-child>div:first-child{color:#2b7b59!important;font-size:11px!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-approved-total>div:first-child>div:nth-child(2){color:#688878!important;font-size:11px!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-fund-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-fund{margin:0!important;border-left-color:#835bb3!important;background:#f6f1fc!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-fund [style*="font-size:15px"]{font-size:18px!important;overflow-wrap:anywhere;color:#63488a!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-latest{border:.5px solid #d0e1ea!important;border-radius:17px!important;background:white!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-latest>div:first-child{padding:12px!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-latest-row{padding:12px!important;gap:12px!important;border-top:1px solid #e0eaf0!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-latest-row>div{min-width:0;overflow-wrap:anywhere}
body.adm-ui-v2 #s-rg.ao-rg .ao-latest-row>div:first-child>div:first-child{font-size:14px!important;color:#244f67!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-latest-row>div:nth-child(2)>div:first-child{font-size:17px!important;color:#24805f!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-approval,body.adm-ui-v2 #s-rg.ao-rg .ao-config-panel{border:.5px solid #d1e2ea!important;border-left:4px solid #c39335!important;border-radius:17px!important;background:#fff9ed!important;padding:15px!important;min-width:0}
body.adm-ui-v2 #s-rg.ao-rg .ao-config-panel{border-left-color:#7c57aa!important;background:#f7f3fc!important}
body.adm-ui-v2 .ao-inventory #inv2-body{padding-top:0!important}
body.adm-ui-v2 .ao-inventory .ao-bodega{border:.5px solid #cce0ea;border-top:4px solid #2784aa;border-radius:14px;background:#fff;padding:10px!important;box-sizing:border-box}
body.adm-ui-v2 .ao-inventory .ao-stock-list{gap:12px!important;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))!important}
body.adm-ui-v2 .ao-inventory .ao-stock-card{border:.5px solid #cddfe8!important;border-left:4px solid #2585aa!important;border-radius:17px!important;background:#fff!important;padding:15px!important;box-shadow:none!important;min-width:0}
body.adm-ui-v2 .ao-inventory .ao-stock-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;border-top:1px solid #d9e5ec;padding-top:10px!important;margin-top:12px!important}
body.adm-ui-v2 .ao-inventory .ao-stock-actions button{flex:1 1 80px!important;min-height:44px!important;max-width:100%;border-radius:10px!important;font-size:11px!important;background:#f3f9fc!important;border:1px solid #cde1eb!important;color:#32758e!important;white-space:normal!important}
body.adm-ui-v2 .ao-inventory .ao-inventory-metric{border:.5px solid #cddfe8!important;border-left:4px solid #268aad!important;border-radius:14px!important;background:#edf8fc!important;padding:12px!important;color:#28566c!important}
body.adm-ui-v2 .ao-inventory .ao-inventory-metric>div:last-child{font-size:22px!important;color:#266b87!important;overflow-wrap:anywhere}
body.adm-ui-v2 .ao-inventory .ao-inventory-grid{min-width:0}
body.adm-ui-v2 .ao-form-page{position:fixed!important;top:var(--ao-top,60px)!important;bottom:var(--ao-bottom,70px)!important;left:0!important;right:0!important;inset-inline:0!important;padding:22px 16px 30px!important;display:block!important;overflow:auto!important;background:#edf5fa!important;backdrop-filter:none!important;z-index:100010!important;box-sizing:border-box}
body.adm-ui-v2 .ao-form-page>.ao-form-surface{width:min(100%,720px)!important;max-width:720px!important;max-height:none!important;margin:0 auto!important;display:block!important;overflow:visible!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;animation:none!important}
body.adm-ui-v2 .ao-form-page .ao-form-header{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:13px!important;position:static!important;background:transparent!important;border:0!important;padding:0 0 18px!important;border-radius:0!important;color:#1d4258!important;flex-wrap:nowrap!important}
body.adm-ui-v2 .ao-form-page .ao-form-header>button:first-child{flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;border:1px solid #ccdfe9!important;border-radius:12px!important;background:white!important;color:#285e77!important;padding:0!important;font-size:24px!important;margin:0!important;line-height:1}
body.adm-ui-v2 .ao-form-page .ao-form-header [style*="font-size:16px"],body.adm-ui-v2 .ao-form-page .adm-modal-title{font-size:25px!important;color:#1e4358!important;line-height:1.25!important;font-weight:750!important;overflow-wrap:anywhere}
body.adm-ui-v2 .ao-form-page .ao-form-surface>div:not(.ao-form-header),body.adm-ui-v2 .ao-form-page .adm-modal-body{padding:17px!important;background:#fff!important;border:.5px solid #d1e2ea!important;border-top:4px solid #2986ab!important;border-radius:17px!important;min-width:0;overflow:visible!important}
body.adm-ui-v2 .ao-form-page input:not([type=checkbox]):not([type=radio]),body.adm-ui-v2 .ao-form-page select,body.adm-ui-v2 .ao-form-page textarea{width:100%;max-width:100%;box-sizing:border-box;min-height:44px!important;padding:11px!important;background:#f7fbfd!important;border:1px solid #cbdfe9!important;border-radius:11px!important;color:#264e66!important;font-size:14px!important}
body.adm-ui-v2 .ao-form-page input[type=checkbox]{width:20px!important;height:20px!important;accent-color:#1885b0}
body.adm-ui-v2 .ao-form-page label{font-size:11px!important;color:#53758a!important;line-height:1.5!important}
body.adm-ui-v2 .ao-form-page button{min-height:44px!important;border-radius:11px!important;white-space:normal!important;max-width:100%;box-sizing:border-box}
body.adm-ui-v2 .ao-form-page [id^=rg-btn-guardar]{background:#087eb7!important;border:1px solid #087eb7!important;color:white!important;padding:12px!important;font-weight:750!important}
body.adm-ui-v2 .ao-form-page [style*="color:#e2e8f0"],body.adm-ui-v2 .ao-form-page [style*="color:#f1f5f9"],body.adm-ui-v2 .ao-form-page [style*="color:#fff"]{color:#244e65!important}
body.adm-ui-v2 .ao-form-page [id^=rg-btn-guardar][style*="color:#fff"]{color:white!important}
@media(max-width:650px){body.adm-ui-v2 #s-rg.ao-rg .ao-fund-grid{grid-template-columns:1fr!important}.ao-table,.ao-table tbody{display:block!important;width:100%!important;min-width:0!important}.ao-table thead{display:none!important}.ao-table tbody tr{display:grid!important;grid-template-columns:1fr 1fr;gap:11px;padding:14px!important;border:.5px solid #d0e1ea!important;border-left:4px solid #2785a8!important;border-radius:14px!important;margin:0 0 12px!important;background:#fff!important}.ao-table td{display:block!important;min-width:0;white-space:normal!important;border:0!important;padding:0!important;overflow-wrap:anywhere;font-size:12px!important;color:#355d74!important}.ao-table td:before{content:attr(data-ao-label);display:block;font-size:9px;font-weight:750;letter-spacing:.5px;text-transform:uppercase;color:#7c94a2;margin-bottom:3px}.ao-table td:last-child{grid-column:1/-1}body.adm-ui-v2 .ao-inventory .ao-stock-list{grid-template-columns:1fr!important}body.adm-ui-v2 .ao-inventory .ao-inventory-grid{grid-template-columns:1fr 1fr!important}body.adm-ui-v2 .ao-form-page [style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important}body.adm-ui-v2 .ao-form-page .psel-trigger{min-height:44px!important;max-width:100%}}

body.adm-ui-v2 #s-rg.ao-rg .ao-metric-head>div:nth-child(2){font-size:clamp(14px,4vw,18px)!important;white-space:nowrap;overflow-wrap:normal}
body.adm-ui-v2 #s-rg.ao-rg .ao-metric>div:not(.ao-metric-head){font-size:11px!important;line-height:1.4!important}
body.adm-ui-v2 .ao-form-page .ao-form-header{border:0!important;background:transparent!important;padding:0 0 18px!important;border-radius:0!important}
body.adm-ui-v2 .ao-form-page label[style*="display:flex"]{background:#f3f9fc!important;border-bottom:1px solid #d8e6ed!important;border-radius:10px;color:#365d73!important;gap:10px!important}
body.adm-ui-v2 .ao-form-page div[style*="max-height:240px"]{background:#fff!important;border-color:#d4e3ec!important;padding:5px!important}

body.adm-ui-v2 .ao-inventory .ao-stock-card [style*="color:#e2e8f0"],body.adm-ui-v2 .ao-inventory .ao-stock-card [style*="color:#f8fafc"],body.adm-ui-v2 .ao-inventory .ao-stock-card [style*="color:#fff"]{color:#2b5369!important}
body.adm-ui-v2 .ao-form-page .adm-modal-footer[hidden]{display:none!important}
body.adm-ui-v2 #s-rg.ao-rg .ao-approval [style*="color:#e2e8f0"],body.adm-ui-v2 #s-rg.ao-rg .ao-approval [style*="color:#f5f3ff"],body.adm-ui-v2 #s-rg.ao-rg .ao-approval [style*="color:#fff"]{color:#3c6277!important}
body.adm-ui-v2 .ao-stock-card [data-edit],body.adm-ui-v2 .ao-stock-card [data-del]{width:auto!important;flex:1!important;font-size:12px!important;font-weight:700!important}
body.adm-ui-v2 .ao-stock-card [data-qr-inv]{width:auto!important;flex:1!important;font-size:12px!important;font-weight:700!important}

/* Contratos, soporte y documentos comparten páginas operativas legibles. */
body.adm-ui-v2 .ao-maintenance .ao-field-label{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0;flex:1;margin:0 0 12px!important;text-transform:none!important;letter-spacing:0!important}
body.adm-ui-v2 .ao-maintenance .ao-field-label>span{font-size:12px;color:#496e81;font-weight:650}
body.adm-ui-v2 .ao-maintenance .ao-service-record{opacity:1!important;border:.5px solid #cde2df!important;border-left:4px solid #239b87!important;background:#f2fbf7!important;border-radius:17px!important;padding:15px!important;min-width:0}
body.adm-ui-v2 .ao-maintenance .ao-service-record.ao-paused{background:#f3f5f7!important;border-color:#d4dce2!important;border-left-color:#8796a1!important}
body.adm-ui-v2 .ao-service-record>div:first-child{flex-wrap:wrap;align-items:center;gap:8px!important}
body.adm-ui-v2 .ao-service-record>div:first-child>div:first-child{flex:1;font-size:16px!important;min-width:130px;color:#275766!important;overflow-wrap:anywhere}
.ao-service-state{display:inline-flex;padding:4px 8px;border-radius:99px;background:#d8f2e8;color:#22765f;font-size:10px;font-weight:750}
.ao-paused .ao-service-state{background:#e1e7ec;color:#61717e}
body.adm-ui-v2 .ao-service-record button{background:white!important;color:#42697c!important;border:1px solid #ccdee7!important;padding:8px 12px!important;font-size:12px!important}
body.adm-ui-v2 .ao-service-record button[data-del],body.adm-ui-v2 .ao-document-record button[data-del]{color:#ab4a5c!important}
body.adm-ui-v2 .ao-support-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px!important}
body.adm-ui-v2 .ao-support-column{min-width:0}
body.adm-ui-v2 .ao-support-column>div:first-child{border:0!important;background:#fff3d9!important;border-radius:10px!important;color:#8a631c!important;padding:10px!important;font-size:12px!important}
body.adm-ui-v2 .ao-support-column[data-ao-state=confirmed]>div:first-child{background:#dcf3e9!important;color:#23785f!important}
body.adm-ui-v2 .ao-support-record{background:#fff!important;border:.5px solid #d3e2e9!important;border-left:4px solid #dfa039!important;border-radius:15px!important;padding:14px!important;margin:0 0 12px!important;color:#325c70!important;overflow-wrap:anywhere;min-width:0}
body.adm-ui-v2 .ao-support-column[data-ao-state=confirmed] .ao-support-record{border-left-color:#309572!important;background:#f5fcf8!important}
body.adm-ui-v2 .ao-support-record>div:first-child>div:first-child{font-size:15px!important;color:#28536a!important;line-height:1.4}
body.adm-ui-v2 .ao-support-record>div:not(:first-child){font-size:12px!important;line-height:1.5!important;color:#688191!important;margin-top:7px!important}
body.adm-ui-v2 .ao-support-record a{font-size:12px!important;color:#187b9e!important;min-height:36px;display:flex!important;align-items:center}
body.adm-ui-v2 .ao-doc-library .ao-doc-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body.adm-ui-v2 .ao-doc-stats .k-stat-card{padding:12px 8px!important;min-width:0;border:.5px solid #cfe0e8!important;border-top:4px solid #2587ae!important;border-radius:14px!important;background:#f5fbfe!important;display:flex!important;flex-direction:column;gap:7px!important;align-items:flex-start!important;box-shadow:none!important}
body.adm-ui-v2 .ao-doc-stats .ks-icon{width:28px;height:28px;font-size:14px!important}
body.adm-ui-v2 .ao-doc-stats .ks-val{font-size:19px!important;overflow-wrap:anywhere;color:#245f7b!important}
body.adm-ui-v2 .ao-doc-stats .ks-lbl{font-size:9px!important}
body.adm-ui-v2 .ao-doc-library #doc-admin-panel{margin:0!important;border:0!important;padding:14px!important}
body.adm-ui-v2 .ao-doc-library #doc-target-menu{background:#fff!important;border:1px solid #cbdfe9!important;box-shadow:0 12px 25px #15384e18!important}
body.adm-ui-v2 .ao-doc-library #doc-target-options>*{background:#f4fafe!important;color:#315d74!important;border-color:#d5e5ed!important}
body.adm-ui-v2 .ao-doc-library #doc-type-tabs{padding:10px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;margin:0!important}
body.adm-ui-v2 .ao-doc-library .doc-type-tab{width:100%;font-size:11px!important;min-height:40px!important;white-space:normal!important;border:1px solid #d5e4ec!important;background:#f7fbfd!important;color:#54768a!important;border-radius:9px!important}
body.adm-ui-v2 .ao-doc-library .doc-type-tab.active{background:#def1fb!important;border-color:#85c4e3!important;color:#176d99!important}
body.adm-ui-v2 .ao-document-record{display:flex!important;align-items:center;flex-wrap:wrap;gap:10px!important;padding:14px!important;border:.5px solid #d1e3eb!important;border-left:4px solid #2889ab!important;border-radius:15px!important;background:#fff!important;min-width:0;margin-bottom:10px!important}
body.adm-ui-v2 .ao-document-record>div:first-child{flex:1 1 160px!important;min-width:0!important}
body.adm-ui-v2 .ao-document-record>div:first-child>div:first-child{font-size:15px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.4;color:#31586d!important}
body.adm-ui-v2 .ao-document-record button{min-height:40px!important;font-size:12px!important;border:1px solid #d3e3ec!important;background:#f4fafd!important;color:#237b9e!important;border-radius:9px!important;padding:7px 10px!important}
body.adm-ui-v2 .ao-custom-inventory .ao-custom-title{font-size:25px!important;font-weight:750!important;color:#234b62!important;margin:0!important}
body.adm-ui-v2 .ao-custom-inventory .ao-custom-fields{border:.5px solid #d0e2eb!important;border-top:4px solid #2b87aa!important;background:#fff!important;border-radius:17px!important;padding:18px!important;gap:16px!important}
body.adm-ui-v2 .ao-custom-inventory .ao-custom-actions{background:transparent!important;border:0!important;padding:15px 0!important;display:flex!important;gap:10px!important}
body.adm-ui-v2 .ao-custom-inventory button[id$=-ok]{width:100%;background:#087fb7!important;border:0!important;color:#fff!important;font-weight:750!important;padding:12px!important;font-size:14px!important}
body.adm-ui-v2 .ao-custom-inventory button[id$=-cancel][hidden]{display:none!important}
body.adm-ui-v2 .ao-custom-inventory button[id$=-del]{background:#fff3f4!important;color:#ae4b5c!important;border:1px solid #eccbd3!important;padding:10px!important;font-size:12px!important}
body.adm-ui-v2 .ao-custom-inventory #inv-dlg-sugerencias{background:#fff!important;border-color:#cbdfe9!important;box-shadow:0 10px 25px #173b4e18!important}
body.adm-ui-v2 .ao-custom-inventory .inv-sug-item{color:#30576c!important;border-color:#e1ebf0!important}
@media(max-width:650px){body.adm-ui-v2 .ao-support-grid{grid-template-columns:1fr!important}body.adm-ui-v2 .ao-doc-library #doc-search{flex-basis:100%!important}body.adm-ui-v2 .ao-doc-library #doc-search-parent{flex-wrap:wrap!important}body.adm-ui-v2 .ao-doc-library #doc-owner-filter{width:100%!important}body.adm-ui-v2 .ao-doc-library #doc-search+select{max-width:45%!important}body.adm-ui-v2 .ao-service-record button{flex:1!important}}
body.adm-ui-v2 .ao-form-page.ao-custom-inventory>.ao-form-surface>.ao-custom-actions{border:0!important;border-radius:0!important;background:transparent!important;padding:15px 0!important}
body.adm-ui-v2 .ao-doc-library #doc-owner-filter[data-upgraded="1"]{display:none!important}
body.adm-ui-v2 .ao-doc-library .ao-doc-search{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,.7fr);min-width:0;gap:9px!important}
body.adm-ui-v2 .ao-doc-search>.psel-wrap,body.adm-ui-v2 .ao-doc-search .psel-trigger{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box}
@media(max-width:650px){body.adm-ui-v2 .ao-doc-library .ao-doc-search{grid-template-columns:minmax(0,1fr)!important}body.adm-ui-v2 .ao-doc-library #doc-search+select{max-width:100%!important}}
