.v138-integrity-card{
  margin:18px 0;
  padding:22px;
  border:1px solid #30456c;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(24,31,54,.96),rgba(13,18,32,.98));
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}
.v138-integrity-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.v138-integrity-head h3{margin:3px 0 7px;font-size:24px}
.v138-integrity-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.55;max-width:760px}
.v138-integrity-kicker{display:inline-flex;padding:5px 9px;border-radius:999px;background:#152947;border:1px solid #2c4f7c;color:#9cc7ff;font-size:9px;font-weight:900;letter-spacing:.09em}
.v138-integrity-safe{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.v138-integrity-safe span{padding:7px 10px;border-radius:999px;border:1px solid #29384f;background:#101a2a;color:#b9c8dd;font-size:10px;font-weight:800}
.v138-integrity-grid{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:14px;align-items:start}
.v138-integrity-card .field{margin:0}
.v138-integrity-card textarea{min-height:180px;resize:vertical}
.v138-integrity-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.v138-integrity-actions .btn{min-height:42px}
.v138-integrity-summary{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 0}
.v138-integrity-pill{display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border-radius:999px;border:1px solid #33435c;background:#111c2d;color:#cfdaea;font-size:10px;font-weight:900}
.v138-integrity-pill.ok{border-color:#23583e;background:#10281c;color:#8ce8b1}
.v138-integrity-pill.warn{border-color:#66501c;background:#2a220f;color:#ffd77a}
.v138-integrity-pill.danger{border-color:#6b2937;background:#2a1319;color:#ff9bab}
.v138-integrity-pill.info{border-color:#2c4f7c;background:#122440;color:#a9ceff}
.v138-integrity-message{margin-top:14px;padding:12px 14px;border-radius:13px;border:1px solid #31415c;background:#111a29;color:#b9c8dc;font-size:11px;line-height:1.5}
.v138-integrity-message b{color:#fff}
.v138-integrity-message.warn{border-color:#70531b;background:#2a210d;color:#f1cf78}
.v138-integrity-toolbar{display:flex;gap:9px;margin:14px 0 10px;align-items:center}
.v138-integrity-toolbar input{flex:1;min-width:0}
.v138-integrity-toolbar select{width:min(230px,42%)}
.v138-integrity-results{display:grid;gap:8px;max-height:560px;overflow:auto;padding-right:2px}
.v138-integrity-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 13px;border:1px solid #27364d;border-radius:14px;background:#0e1726}
.v138-integrity-row.removed,.v138-integrity-row.missing{border-color:#612a36;background:#241117}
.v138-integrity-row.inactive{border-color:#6b511d;background:#241d0e}
.v138-integrity-row.duplicate,.v138-integrity-row.changed{border-color:#60531f;background:#201c0e}
.v138-integrity-row-main{min-width:0}
.v138-integrity-row-main b{display:block;color:#f4f6fb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.v138-integrity-row-main span{display:block;color:#8f9db3;font-size:10px;line-height:1.45;margin-top:4px}
.v138-integrity-row-main .v138-integrity-alert{color:#ff9bab;font-weight:900}
.v138-integrity-status{white-space:nowrap;padding:6px 9px;border-radius:999px;font-size:9px;font-weight:900;border:1px solid #31543e;background:#10251b;color:#86e8ad}
.v138-integrity-status.removed,.v138-integrity-status.missing{border-color:#6b2937;background:#32161d;color:#ff9bab}
.v138-integrity-status.inactive{border-color:#6e551e;background:#30250f;color:#ffd77a}
.v138-integrity-status.duplicate,.v138-integrity-status.changed{border-color:#6e5d1d;background:#2d260e;color:#ffe083}
.v138-integrity-empty{padding:22px;text-align:center;border:1px dashed #34445f;border-radius:14px;color:#8190a7;font-size:11px}
.v138-integrity-history{margin-top:18px;padding-top:16px;border-top:1px solid #26364d}
.v138-integrity-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.v138-integrity-history-head b{font-size:13px}
.v138-integrity-history-head small{color:var(--muted);font-size:10px}
.v138-integrity-history-list{display:grid;gap:7px}
.v138-integrity-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid #29384f;border-radius:12px;background:#101826}
.v138-integrity-history-row b{display:block;font-size:11px}.v138-integrity-history-row span{display:block;margin-top:3px;color:#8796ab;font-size:9px}
.v138-integrity-history-stats{font-size:9px;color:#cbd6e7;text-align:right;white-space:nowrap}
.v138-integrity-count-note{margin-top:9px;color:#8090a7;font-size:9px;text-align:right}
@media(max-width:760px){
  .v138-integrity-card{padding:17px 15px;border-radius:18px}
  .v138-integrity-head{display:block}.v138-integrity-head h3{font-size:21px}
  .v138-integrity-grid{grid-template-columns:1fr}
  .v138-integrity-toolbar{display:grid;grid-template-columns:1fr 1fr}
  .v138-integrity-toolbar input{grid-column:1/-1}
  .v138-integrity-toolbar select{width:100%}
  .v138-integrity-row{grid-template-columns:1fr;gap:9px}
  .v138-integrity-status{justify-self:start}
  .v138-integrity-history-row{grid-template-columns:1fr}.v138-integrity-history-stats{text-align:left}
  .v138-integrity-actions .btn{flex:1 1 140px}
}


/* V1.38.1 · revisión de vencimientos enviada por proveedor */
.v138-provider-expiry-btn{border-color:#6a4f1f!important;background:#2a210f!important;color:#ffd77a!important}
.v138-provider-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding:13px;border:1px solid #2c3d56;border-radius:15px;background:#0d1725}
.v138-provider-row.missing{border-color:#672b38;background:#241117}
.v138-provider-main{min-width:0}.v138-provider-main>b{display:block;color:#f5f7fb;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v138-provider-main>span{display:block;margin-top:4px;color:#91a0b5;font-size:10px;line-height:1.45}
.v138-provider-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.v138-provider-meta>span{display:inline-flex;align-items:center;padding:6px 8px;border-radius:999px;border:1px solid #34465f;background:#121d2c;color:#c7d2e2;font-size:9px;font-weight:850}.v138-provider-meta .overdue{border-color:#733141;background:#32161e;color:#ff9eae}.v138-provider-meta .soon{border-color:#6a551e;background:#2b230f;color:#ffd77a}.v138-provider-meta .ok{border-color:#285b43;background:#10271d;color:#8ee8b4}.v138-provider-meta .nodate{border-color:#46536a;background:#171f2d;color:#aeb9c9}
.v138-provider-profiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:6px;margin-top:10px}.v138-provider-profile{padding:8px 9px;border-radius:11px;border:1px solid #2a3b52;background:#101a28}.v138-provider-profile b{display:block;font-size:10px;color:#e7edf6}.v138-provider-profile span{display:block;margin-top:3px;font-size:9px!important;color:#93a2b7!important;white-space:normal;overflow:visible;text-overflow:clip}.v138-provider-profile.used{border-color:#315a46;background:#10241b}.v138-provider-profile.reserved{border-color:#6a551e;background:#29220f}.v138-provider-profile.free{opacity:.8}
.v138-provider-badge{white-space:nowrap;padding:6px 9px;border-radius:999px;border:1px solid #31543e;background:#10251b;color:#8de7b2;font-size:9px;font-weight:900}.v138-provider-badge.overdue,.v138-provider-badge.danger{border-color:#6b2937;background:#32161d;color:#ff9bab}.v138-provider-badge.soon{border-color:#6e5d1d;background:#2d260e;color:#ffe083}.v138-provider-badge.nodate{border-color:#46536a;background:#171f2d;color:#abb8ca}
@media(max-width:760px){.v138-provider-row{grid-template-columns:1fr}.v138-provider-badge{justify-self:start}.v138-provider-profiles{grid-template-columns:1fr}}
