.agreement-page > header { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; }
.agreement-metrics, .agreement-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:10px; margin:14px 0; }
.agreement-metrics article { padding:13px; border-top:3px solid #245cce; }
.agreement-metrics strong { display:block; font-size:1.35rem; color:#112d69; }
.agreement-list { padding:16px; margin:14px 0; }
.agreement-list .tablewrap { margin-block:10px; }
.agreement-list progress { width:min(100%,440px); accent-color:#245cce; }
.agreement-fields label { display:grid; align-content:start; gap:4px; }
.agreement-actions { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; align-items:center; }
.agreement-actions [data-search] { flex:1 1 250px; }
.agreement-installment { display:grid; grid-template-columns:75px minmax(100px,180px) minmax(80px,145px); gap:8px; align-items:center; margin:4px 0; }

.agreement-page { color:#101d40; }
.agreement-page > header { justify-content:flex-start; flex-wrap:nowrap; gap:16px; margin-bottom:18px; }
.agreement-page > header h1 { margin:0; font-size:clamp(1.75rem,3vw,2.4rem); line-height:1.1; }
.agreement-page > header p { margin:4px 0 0; color:#425472; }
.agreement-heading-icon { display:grid; place-items:center; flex:0 0 58px; height:58px; border-radius:16px; background:linear-gradient(135deg,#198cf4,#243ed4); }
.agreement-heading-icon img { width:32px; height:32px; object-fit:contain; filter:brightness(0) invert(1); }
.agreement-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.agreement-metric { display:flex; align-items:center; gap:12px; min-height:78px; padding:12px; border-radius:17px; box-shadow:0 5px 12px #112e6410; background:var(--metric-bg); }
.agreement-metric.blue { --metric-bg:#e0eeff; --metric-accent:#0054b6; }
.agreement-metric.green { --metric-bg:#dcf8ef; --metric-accent:#087744; }
.agreement-metric.amber { --metric-bg:#fff1d5; --metric-accent:#915500; }
.agreement-metric.red { --metric-bg:#ffe5ed; --metric-accent:#a81836; }
.agreement-metric-icon { display:grid; place-items:center; border-radius:12px; flex:0 0 40px; height:40px; background:#ffffff61; }
.agreement-metric-icon img,.agreement-tabs img { width:24px; height:24px; object-fit:contain; }
.agreement-metric small { display:block; font-weight:750; }
.agreement-metric strong { display:inline-block; font-size:1.7rem; line-height:1.2; }
.agreement-metric span { margin-left:6px; padding:2px 6px; border-radius:20px; color:var(--metric-accent); background:#ffffff80; font-size:.75rem; font-weight:750; white-space:nowrap; }
.agreement-tabs { display:flex; flex-wrap:wrap; gap:6px; padding:8px 0 0; border-top:1px solid #dce6f5; }
.agreement-tabs button { display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:6px 15px; border:1px solid #dce6f5; border-radius:10px; background:#eaf0fb; color:#13264d; font:inherit; font-weight:700; cursor:pointer; }
.agreement-tabs img { width:19px; height:19px; }
.agreement-tabs [aria-pressed="true"] { color:white; background:linear-gradient(#044ca8,#2378d7); }
.agreement-tabs [aria-pressed="true"] img { filter:brightness(0) invert(1); }
.agreement-register { margin-top:6px; }
.agreement-toolbar { display:grid; grid-template-columns:minmax(185px,2.3fr) repeat(3,minmax(94px,1fr)) auto; gap:10px; align-items:end; }
.agreement-toolbar label { display:grid; gap:3px; min-width:0; font-size:.8rem; font-weight:650; }
.agreement-toolbar input,.agreement-toolbar select { min-width:0; width:100%; }
.agreement-primary { background:linear-gradient(100deg,#096fec,#6037cb); }
.agreement-table { white-space:nowrap; }
.agreement-table th { background:#e1ebfa; color:#15294c; }
.agreement-table small { display:block; color:#475873; }
.agreement-folio,.agreement-kind,.agreement-status { display:inline-block; padding:4px 9px; border-radius:20px; background:#e1edff; color:#104394; font-size:.77rem; font-weight:750; }
.agreement-kind { border-radius:7px; color:#4c328c; background:#eee5ff; }
.agreement-status[data-status="activo"],.agreement-status[data-status="liquidado"] { color:#06673c; background:#d7f7e7; }
.agreement-status[data-status="por_vencer"],.agreement-status[data-status="pendiente_anticipo"] { color:#804800; background:#fff0c8; }
.agreement-status[data-status="vencido"],.agreement-status[data-status="incumplido"] { color:#a21536; background:#ffe5ed; }
.agreement-pagination,.agreement-pagination > div { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.agreement-pagination { font-size:.85rem; }
.agreement-pagination button,.agreement-pagination strong { min-width:28px; padding:4px; text-align:center; border:1px solid #dbe5f5; border-radius:7px; background:white; color:#124589; }
.agreement-pagination button:disabled { opacity:.45; }
.agreement-report { display:flex; flex-wrap:wrap; gap:18px; margin-bottom:0; }
.agreement-report dd { margin:4px 0 0; font-size:1.2rem; font-weight:750; }
.agreement-editor { display:grid; grid-template-columns:minmax(150px,220px) minmax(0,1fr); padding:0; overflow:hidden; }
.agreement-editor > aside { display:grid; place-content:center; justify-items:center; text-align:center; padding:18px; background:linear-gradient(145deg,#f5f6ff,#e7e1ff); border-right:1px solid #dce6f5; }
.agreement-editor > aside img { width:42px; height:42px; object-fit:contain; margin-bottom:6px; }
.agreement-editor > aside h2,.agreement-editor > aside p { margin:4px 0; }
.agreement-editor-body { padding:14px; min-width:0; }
.agreement-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(max-width:1020px){ .agreement-toolbar { grid-template-columns:repeat(3,minmax(0,1fr)); } .agreement-toolbar label:first-child { grid-column:span 2; } }
@media(max-width:760px){ .agreement-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .agreement-editor { grid-template-columns:1fr; } .agreement-editor > aside { border-right:0; } }
@media(max-width:440px){ .agreement-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); } .agreement-metric { gap:6px; padding:7px; } .agreement-metric-icon { flex-basis:28px; height:28px; } }
