/* Prestapp Operación 1.2.0 · vertical Vales / Rural */
#prestapp-op-wrapper{
  --p:#71338F!important;
  --pd:#57236f!important;
  --accent:#1DCDB3!important;
  --prestapp-navy:#12334F;
  --prestapp-purple:#71338F;
  --prestapp-aqua:#1DCDB3;
  --prestapp-soft:#f7f2fa;
}
#prestapp-op-wrapper .btn-main,
#prestapp-op-wrapper .btn-prestappOp,
#prestapp-op-wrapper .loan-tab-btn.active,
#prestapp-op-wrapper .swal2-confirm{background:#71338F!important;border-color:#71338F!important}
#prestapp-op-wrapper .prestapp-op-sidebar{background:#12334F!important}
#prestapp-op-wrapper .prestapp-op-sidebar-brand{background:#12334F!important;border-bottom-color:rgba(255,255,255,.08)!important}
#prestapp-op-wrapper .prestapp-op-sidebar-logo{width:auto!important;max-width:174px!important;max-height:45px!important;object-fit:contain!important;filter:none!important}
#prestapp-op-wrapper .sidebar-item.active{background:rgba(113,51,143,.96)!important;color:#fff!important}
#prestapp-op-wrapper .sidebar-item:hover{background:rgba(255,255,255,.08)!important}
#prestapp-op-wrapper .prestapp-op-login-brand{background:#12334F!important}
#prestapp-op-wrapper .prestapp-op-login-logo{width:225px!important;max-height:75px!important;object-fit:contain!important;object-position:left center!important;filter:none!important}
#prestapp-op-wrapper .prestapp-op-login-mobile-logo{height:52px!important;max-width:220px!important;object-fit:contain!important}
#prestapp-op-wrapper .prestapp-op-login-brand .prestapp-op-eyebrow,
#prestapp-op-wrapper .prestapp-op-login-benefits i{color:#1DCDB3!important}
#prestapp-op-wrapper .prestapp-op-create-account-btn,
#prestapp-op-wrapper .prestapp-op-login-divider{display:none!important}

/* Prestapp modules */
#prestapp-op-wrapper .prestapp-module .prestapp-op-page-head{align-items:flex-end}
#prestapp-op-wrapper .prestapp-module .prestapp-kpi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#prestapp-op-wrapper .prestapp-kpi{background:var(--card,#fff);border:1px solid var(--line,#e2e8f0);border-radius:16px;padding:15px 16px;min-height:103px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:none}
#prestapp-op-wrapper .prestapp-kpi small{font-size:9px;font-weight:900;letter-spacing:.12em;color:var(--mut,#64748b);text-transform:uppercase}
#prestapp-op-wrapper .prestapp-kpi strong{font-size:22px;line-height:1.1;font-weight:900;color:var(--ink,#111827);margin-top:6px}
#prestapp-op-wrapper .prestapp-kpi span{font-size:10px;color:var(--mut,#64748b);margin-top:4px}
#prestapp-op-wrapper .prestapp-kpi.accent{border-color:rgba(113,51,143,.2);background:linear-gradient(180deg,rgba(113,51,143,.055),rgba(113,51,143,.015))}
#prestapp-op-wrapper .prestapp-kpi.aqua{border-color:rgba(29,205,179,.25);background:linear-gradient(180deg,rgba(29,205,179,.06),rgba(29,205,179,.015))}
#prestapp-op-wrapper .prestapp-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:12px}
#prestapp-op-wrapper .prestapp-toolbar .input-pro{min-width:180px;max-width:300px}
#prestapp-op-wrapper .prestapp-toolbar .prestapp-grow{flex:1;min-width:180px}
#prestapp-op-wrapper .prestapp-type-pill,#prestapp-op-wrapper .prestapp-line-pill,#prestapp-op-wrapper .prestapp-origin-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 8px;font-size:9px;line-height:1;font-weight:900;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
#prestapp-op-wrapper .prestapp-type-pill.vales{background:rgba(113,51,143,.10);color:#71338F}
#prestapp-op-wrapper .prestapp-type-pill.rural{background:rgba(18,51,79,.10);color:#12334F}
#prestapp-op-wrapper .prestapp-line-pill.money{background:rgba(113,51,143,.09);color:#71338F}
#prestapp-op-wrapper .prestapp-line-pill.shop{background:rgba(29,205,179,.12);color:#087e6e}
#prestapp-op-wrapper .prestapp-line-pill.personal{background:rgba(18,51,79,.09);color:#12334F}
#prestapp-op-wrapper .prestapp-origin-badge{margin-top:5px;background:rgba(29,205,179,.10);color:#087e6e}
#prestapp-op-wrapper .prestapp-status{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:10px}
#prestapp-op-wrapper .prestapp-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#94a3b8}
#prestapp-op-wrapper .prestapp-status.on:before{background:#10b981}
#prestapp-op-wrapper .prestapp-status.off:before{background:#e11d48}
#prestapp-op-wrapper .prestapp-lines-cell{min-width:210px;display:grid;gap:4px}
#prestapp-op-wrapper .prestapp-line-mini{display:grid;grid-template-columns:65px 1fr auto;align-items:center;gap:6px;font-size:9px;color:var(--mut,#64748b)}
#prestapp-op-wrapper .prestapp-line-mini b{font-size:10px;color:var(--ink,#111827);text-align:right}
#prestapp-op-wrapper .prestapp-progress{height:5px;border-radius:99px;background:#e9eef3;overflow:hidden}
#prestapp-op-wrapper .prestapp-progress i{display:block;height:100%;background:#71338F;border-radius:inherit}
#prestapp-op-wrapper .prestapp-progress.shop i{background:#1DCDB3}
#prestapp-op-wrapper .prestapp-progress.personal i{background:#12334F}
#prestapp-op-wrapper .prestapp-empty{padding:38px 16px;text-align:center;color:var(--mut,#64748b)}
#prestapp-op-wrapper .prestapp-empty i{display:block;font-size:28px;color:#cbd5e1;margin-bottom:9px}
#prestapp-op-wrapper .prestapp-product-card{border:1px solid var(--line,#e2e8f0);border-radius:16px;background:var(--card,#fff);padding:15px;display:flex;flex-direction:column;gap:12px;min-height:185px}
#prestapp-op-wrapper .prestapp-product-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
#prestapp-op-wrapper .prestapp-product-top h4{margin:0;font-size:14px;font-weight:900}
#prestapp-op-wrapper .prestapp-product-code{font:800 9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;color:#71338F;letter-spacing:.06em}
#prestapp-op-wrapper .prestapp-product-meta{display:flex;gap:6px;flex-wrap:wrap}
#prestapp-op-wrapper .prestapp-product-numbers{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:auto}
#prestapp-op-wrapper .prestapp-product-numbers div{background:var(--bg,#f8fafc);border-radius:10px;padding:9px}
#prestapp-op-wrapper .prestapp-product-numbers small{display:block;font-size:8px;color:var(--mut,#64748b);font-weight:900;text-transform:uppercase;letter-spacing:.06em}
#prestapp-op-wrapper .prestapp-product-numbers b{display:block;font-size:12px;margin-top:3px}
#prestapp-op-wrapper .prestapp-product-actions{display:flex;justify-content:flex-end}
#prestapp-op-wrapper .prestapp-product-grid{display:grid;grid-template-columns:1fr;gap:12px}
#prestapp-op-wrapper .prestapp-relation-total{font-weight:900;color:#71338F}
#prestapp-op-wrapper .prestapp-detail-band{border:1px solid rgba(113,51,143,.18);border-left:4px solid #71338F;border-radius:14px;padding:13px 14px;background:rgba(113,51,143,.045);margin-bottom:14px}
#prestapp-op-wrapper .prestapp-detail-band h4{font-weight:900;margin:0 0 8px;color:#12334F}
#prestapp-op-wrapper .prestapp-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#prestapp-op-wrapper .prestapp-detail-grid div{font-size:10px;color:var(--mut,#64748b)}
#prestapp-op-wrapper .prestapp-detail-grid b{display:block;color:var(--ink,#111827);font-size:11px;margin-top:2px}

/* SweetAlert / forms */
#prestapp-op-wrapper .prestapp-form{text-align:left}
#prestapp-op-wrapper .prestapp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
#prestapp-op-wrapper .prestapp-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
#prestapp-op-wrapper .prestapp-form .prestapp-span-2{grid-column:span 2}
#prestapp-op-wrapper .prestapp-form .prestapp-span-3{grid-column:span 3}
#prestapp-op-wrapper .prestapp-form label{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.06em;font-weight:900;color:#64748b;margin:0 0 5px}
#prestapp-op-wrapper .prestapp-form .input-pro{width:100%;min-width:0}
#prestapp-op-wrapper .prestapp-form-note{font-size:10px;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:9px 10px;margin-top:10px}
#prestapp-op-wrapper .prestapp-checkbox-list{display:grid;gap:7px;max-height:360px;overflow:auto;padding-right:3px}
#prestapp-op-wrapper .prestapp-checkbox-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e2e8f0;border-radius:12px;padding:10px 11px;background:#fff}
#prestapp-op-wrapper .prestapp-checkbox-row input{width:18px;height:18px;accent-color:#71338F}
#prestapp-op-wrapper .prestapp-checkbox-row b{display:block;font-size:11px}.prestapp-checkbox-row small{font-size:9px;color:#64748b}
#prestapp-op-wrapper .prestapp-json{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;min-height:105px;resize:vertical}

@media(min-width:760px){
 #prestapp-op-wrapper .prestapp-module .prestapp-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #prestapp-op-wrapper .prestapp-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1280px){
 #prestapp-op-wrapper .prestapp-module .prestapp-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
 #prestapp-op-wrapper .prestapp-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
 #prestapp-op-wrapper .prestapp-form-grid,#prestapp-op-wrapper .prestapp-form-grid.three{grid-template-columns:1fr}
 #prestapp-op-wrapper .prestapp-form .prestapp-span-2,#prestapp-op-wrapper .prestapp-form .prestapp-span-3{grid-column:auto}
 #prestapp-op-wrapper .prestapp-toolbar .input-pro{max-width:none;width:100%}
 #prestapp-op-wrapper .prestapp-toolbar>*{width:100%}
 #prestapp-op-wrapper .prestapp-toolbar button{justify-content:center}
 #prestapp-op-wrapper .prestapp-detail-grid{grid-template-columns:1fr}
}

#prestapp-op-wrapper[data-theme="dark"] .prestapp-kpi,
#prestapp-op-wrapper[data-theme="dark"] .prestapp-product-card,
#prestapp-op-wrapper[data-theme="dark"] .prestapp-checkbox-row{background:var(--panel,#111827)}
#prestapp-op-wrapper[data-theme="dark"] .prestapp-product-numbers div,
#prestapp-op-wrapper[data-theme="dark"] .prestapp-form-note{background:rgba(255,255,255,.04)}
#prestapp-op-wrapper[data-theme="dark"] .prestapp-type-pill.rural{color:#9ac5e5}
#prestapp-op-wrapper[data-theme="dark"] .prestapp-line-pill.personal{color:#9ac5e5}
.prestapp-locked-note{margin-top:12px;padding:9px 11px;border-radius:10px;background:rgba(113,51,143,.08);color:#5a2b70;font-size:12px;font-weight:700;display:flex;gap:8px;align-items:center}.prestapp-locked-field:disabled{opacity:1!important;background:#f5f6f8!important;color:#4f5967!important;border-color:#d9dde3!important;cursor:not-allowed}.dark .prestapp-locked-note{background:rgba(29,205,179,.1);color:#8ee8dc}.dark .prestapp-locked-field:disabled{background:#20252d!important;color:#ccd3dc!important;border-color:#3a424d!important}
/* Logo oficial Prestapp: versión monocromática blanca sobre superficies azul marino. */
#prestapp-op-wrapper .prestapp-op-sidebar-logo[src*="prestapp-logo.png"],
#prestapp-op-wrapper .prestapp-op-login-logo[src*="prestapp-logo.png"]{filter:brightness(0) invert(1)!important}
#prestapp-op-wrapper .prestapp-op-login-mobile-logo[src*="prestapp-logo.png"]{filter:none!important}

#prestapp-op-wrapper .prestapp-status.warn{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}
#prestapp-op-wrapper #sidebar-tenant-logo{display:block!important;visibility:visible!important;opacity:1!important;width:auto!important;object-fit:contain!important}
