
/* ===== V8 patch: Expedientes documentales ===== */
#viewExpedientes{padding:0}
.expShell{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px;min-width:0}
.expAside,.expMainCard{background:#fff;border:1px solid #dbe5f4;border-radius:22px;box-shadow:0 14px 38px rgba(15,23,42,.06)}
.expAside{padding:18px;display:flex;flex-direction:column;gap:14px;min-height:720px}
.expAsideHead{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.expAsideHead h2{margin:0;font-size:24px;color:#102c5c}
.expAsideHead p{margin:4px 0 0;color:#61748f}
.expSearch{position:relative}
.expSearch input{width:100%;height:46px;border:1px solid #dbe5f4;border-radius:14px;padding:0 44px 0 14px;font:600 14px Inter,sans-serif;color:#153465;background:#fbfdff}
.expSearch svg{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#6c87aa;stroke:currentColor;fill:none;stroke-width:2}
.expList{display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 320px);overflow:auto;padding-right:4px}
.expItem{border:1px solid #dbe5f4;background:#fbfdff;border-radius:18px;padding:14px 14px 12px;display:flex;gap:12px;align-items:flex-start;cursor:pointer;text-align:left;transition:.18s ease}
.expItem:hover{border-color:#9ed6ff;box-shadow:0 12px 28px rgba(37,99,235,.08)}
.expItem.active{background:linear-gradient(135deg,#eef7ff,#f9fdff);border-color:#68b8ff;box-shadow:0 18px 34px rgba(37,99,235,.12)}
.expAvatar{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;font-weight:900;flex:0 0 auto}
.expMeta{min-width:0;display:flex;flex-direction:column;gap:6px}
.expMeta b{font-size:14px;color:#14305c;line-height:1.15}
.expMeta small{display:block;color:#6b7f99;line-height:1.15}
.expPills{display:flex;flex-wrap:wrap;gap:6px}
.expPill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:900;border:1px solid #d9e6fb;background:#f5f9ff;color:#29538b}
.expPill.ok{background:#ecfdf5;border-color:#bbf7d0;color:#166534}
.expPill.warn{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
.expPill.info{background:#eef7ff;border-color:#cae1ff;color:#1d4ed8}
.expMainCard{padding:20px 22px 24px;min-width:0;min-height:720px}
.expEmptyState{min-height:540px;display:grid;place-items:center;text-align:center;color:#61748f}
.expHead{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border-bottom:1px solid #edf3fc;padding-bottom:16px;margin-bottom:18px}
.expHead h3{margin:0;font-size:30px;color:#102c5c;letter-spacing:-.03em}
.expHead p{margin:6px 0 0;color:#60748f}
.expHeadRight{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.expButtonRow{display:flex;flex-wrap:wrap;gap:10px}
.expQuickBtn,.expPrimaryBtn,.expGhostBtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 14px;border-radius:14px;font:800 14px Inter,sans-serif;cursor:pointer;border:1px solid #dbe5f4;background:#fff;color:#163665}
.expPrimaryBtn{background:linear-gradient(135deg,#0ea5e9,#2dd4bf);border-color:transparent;color:#fff;box-shadow:0 12px 24px rgba(14,165,233,.24)}
.expQuickBtn svg,.expPrimaryBtn svg,.expGhostBtn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2}
.expInfoGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.expInfoBox{background:#fbfdff;border:1px solid #e4eefb;border-radius:18px;padding:14px 14px 12px;min-width:0}
.expInfoBox small{display:block;color:#6e839e;font-size:11px;text-transform:uppercase;font-weight:900;letter-spacing:.04em}
.expInfoBox b{display:block;margin-top:7px;color:#102c5c;font-size:16px;line-height:1.25;word-break:break-word}
.expInfoBox .tiny{display:block;margin-top:4px;color:#7d8fa7;font-size:12px}
.expDocumentGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}
.expDocCard{border:1px solid #dbe5f4;background:linear-gradient(180deg,#fff,#fbfdff);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:10px;min-height:156px}
.expDocCard h4{margin:0;color:#102c5c;font-size:16px}
.expDocCard p{margin:0;color:#6c7f98;font-size:13px;line-height:1.4}
.expDocActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.expMiniBtn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 12px;border-radius:12px;border:1px solid #dbe5f4;background:#fff;color:#173665;font:800 13px Inter,sans-serif;cursor:pointer}
.expMiniBtn.primary{background:#102c5c;color:#fff;border-color:#102c5c}
.expMiniBtn svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2.1}
.expPaneTabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.expTabBtn{height:42px;padding:0 16px;border-radius:14px;border:1px solid #dbe5f4;background:#fff;color:#173665;font:800 14px Inter,sans-serif;cursor:pointer}
.expTabBtn.active{background:#eef7ff;border-color:#68b8ff;color:#0f4ca5}
.expPane{display:none}.expPane.active{display:block}
.expSectionCard{border:1px solid #e4eefb;border-radius:20px;background:#fff;padding:16px 16px 14px}
.expSectionHead{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}
.expSectionHead h4{margin:0;font-size:18px;color:#112f5f}
.expSectionHead p{margin:4px 0 0;color:#6b7f99;font-size:13px}
.expDocTableWrap,.expFilesTableWrap{overflow:auto;border:1px solid #e7eef9;border-radius:18px}
.expDocTable,.expFilesTable{width:100%;border-collapse:separate;border-spacing:0;min-width:760px}
.expDocTable th,.expFilesTable th{background:#f7fbff;color:#334f77;font-size:12px;font-weight:900;text-align:left;padding:12px;border-bottom:1px solid #e2ebf7;white-space:nowrap}
.expDocTable td,.expFilesTable td{padding:13px 12px;border-bottom:1px solid #edf3fc;color:#163665;font-size:13px;vertical-align:middle}
.expDocTable tr:last-child td,.expFilesTable tr:last-child td{border-bottom:0}
.expTimeline{display:flex;flex-direction:column;gap:12px}
.expEvent{position:relative;padding:14px 14px 14px 46px;border:1px solid #e4eefb;border-radius:18px;background:#fbfdff}
.expEvent:before{content:"";position:absolute;left:18px;top:18px;width:12px;height:12px;border-radius:999px;background:#35b5ff;box-shadow:0 0 0 6px rgba(53,181,255,.13)}
.expEvent b{display:block;color:#112f5f}
.expEvent small{display:block;margin-top:4px;color:#6c7f98}
.expUploadGrid{display:grid;grid-template-columns:220px 1fr 1fr auto;gap:12px;margin-bottom:14px}
.expUploadGrid select,.expUploadGrid input{height:44px;border:1px solid #dbe5f4;border-radius:14px;padding:0 12px;font:600 14px Inter,sans-serif;color:#163665;background:#fff}
.expUploadGrid input[type="file"]{padding:10px 12px;height:auto}
.expFileName{display:flex;flex-direction:column;gap:2px}
.expFileName b{color:#112f5f}
.expFileName small{color:#6c7f98}
.expStatusDraft{background:#fff7ed;border:1px solid #fed7aa;color:#c2410c;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:900}
.expStatusReady{background:#eef7ff;border:1px solid #cae1ff;color:#1d4ed8;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:900}
.expStatusStored{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:900}
.expInlineEdit{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.expInlineEdit select{height:38px;border:1px solid #dbe5f4;border-radius:12px;padding:0 12px;font:700 13px Inter,sans-serif;color:#173665;background:#fff}
.expMuted{color:#6c7f98;font-size:13px}
.expEmptyLine{padding:22px;text-align:center;color:#7487a0}
.crmExtraActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.crmExtraActions .miniBtn{height:38px}
@media(max-width:1240px){.expShell{grid-template-columns:1fr}.expAside{min-height:auto}.expList{max-height:none}.expInfoGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.expDocumentGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.expUploadGrid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.expInfoGrid,.expDocumentGrid,.expUploadGrid{grid-template-columns:1fr}.expHead{flex-direction:column;align-items:flex-start}.expHeadRight{justify-content:flex-start}.expDocTable,.expFilesTable{min-width:620px}}

.expDocCard.featured{border-color:#9fdfff;background:linear-gradient(180deg,#f7fcff,#ffffff);box-shadow:0 10px 24px rgba(14,165,233,.08)}

/* Expediente contextual dentro del CRM */
.stdDialog.expedienteDialog{width:min(1180px,94vw);max-width:1180px;height:min(880px,92vh);max-height:92vh;padding:0;overflow:hidden}
.stdDialog.expedienteDialog .dlgBody{max-height:calc(92vh - 86px);overflow:auto;padding:0;background:#f6f9fd}
.stdDialog.expedienteDialog .expClientModal{min-height:auto;padding:22px}
.stdDialog.expedienteDialog .expMainCard{min-height:auto}
.stdDialog.expedienteDialog .expHead{position:sticky;top:0;background:#fff;z-index:2;padding:18px 20px 14px;margin:-22px -22px 18px}

/* Generadores embebidos, sin pestañas externas */
.stdGeneratorShell{position:fixed;inset:0;z-index:9999;pointer-events:none;visibility:hidden}
.stdGeneratorShell.open{pointer-events:auto;visibility:visible}
.stdGeneratorBackdrop{position:absolute;inset:0;background:rgba(10,28,58,.48);backdrop-filter:blur(3px);opacity:0;transition:.2s}
.stdGeneratorShell.open .stdGeneratorBackdrop{opacity:1}
.stdGeneratorPanel{position:absolute;right:0;top:0;height:100%;width:min(1240px,94vw);background:#f5f8fc;box-shadow:-24px 0 60px rgba(15,35,70,.22);transform:translateX(102%);transition:transform .24s ease;display:grid;grid-template-rows:auto 1fr}
.stdGeneratorShell.open .stdGeneratorPanel{transform:translateX(0)}
.stdGeneratorPanel>header{height:78px;background:#fff;border-bottom:1px solid #dfe9f6;display:flex;align-items:center;justify-content:space-between;padding:12px 18px 12px 22px}
.stdGeneratorPanel>header small{font-size:11px;font-weight:900;color:#1686c8;text-transform:uppercase;letter-spacing:.06em}
.stdGeneratorPanel>header h2{margin:2px 0 0;color:#102c5c;font-size:22px}.stdGeneratorPanel>header p{margin:2px 0 0;color:#6c809b;font-size:12px}
.stdGeneratorPanel>header button{width:42px;height:42px;border:1px solid #dbe6f4;border-radius:13px;background:#fff;color:#173665;font-size:26px;cursor:pointer}
.stdGeneratorPanel iframe{width:100%;height:100%;border:0;background:#f4f8fc}
body.generatorOpen{overflow:hidden}
@media(max-width:760px){.stdGeneratorPanel{width:100vw}.stdDialog.expedienteDialog{width:98vw}.stdDialog.expedienteDialog .expClientModal{padding:14px}}
.stdGeneratorPanel{outline:none;overscroll-behavior:contain}
.stdGeneratorPanel iframe{display:block;min-height:0;overscroll-behavior:contain}

/* Historial visible de addendums */
.expAddendumSection{margin-bottom:18px}
.expAddendumList{display:flex;flex-direction:column;gap:10px}
.expAddendumItem{display:grid;grid-template-columns:minmax(160px,220px) 1fr;gap:16px;align-items:center;padding:14px;border:1px solid #dfeaf7;border-radius:16px;background:linear-gradient(180deg,#fbfdff,#fff)}
.expAddendumNo small{display:block;color:#6f86a3;font-size:10px;font-weight:900;letter-spacing:.08em}.expAddendumNo b{display:block;margin-top:4px;color:#102c5c;font-size:17px}
.expAddendumParts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.expAddendumParts>div{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.expAddendumEmpty{padding:20px;border:1px dashed #bfd3e8;border-radius:16px;color:#6b7f99;text-align:center;background:#fbfdff}
@media(max-width:760px){.expAddendumItem,.expAddendumParts{grid-template-columns:1fr}}

/* V8.11 · Flujo documental firmado */
.expDocState{min-height:24px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.expDocActions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.expAddendumNo{display:flex;align-items:center;justify-content:space-between;gap:12px}
.expDeleteIcon{width:36px;height:36px;min-width:36px;border-radius:11px;border:1px solid #fecaca;background:#fff;color:#dc2626;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.expDeleteIcon:hover{background:#fff1f2;border-color:#fca5a5}
.expDeleteIcon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.expDocCard .expMuted{font-size:12px;line-height:1.35}
@media(max-width:1500px){.expDocumentGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.expDocumentGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V8.12.1 · acciones CRM siempre visibles */
.crmExtraActions{display:flex!important;visibility:visible!important;opacity:1!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important;margin-top:16px!important;}


/* V8.12.3 · Detalle de cliente actualizado */
.clientGeneralGrid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch;
}
.clientGeneralGrid .emailField{grid-column:span 2;}
.clientGeneralGrid .detailField{min-width:0;}
.clientGeneralGrid .emailField b{
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.32;
  font-size:15px;
}
.clientGeneralGrid .paymentState.ok{color:#079455;}
.clientGeneralGrid .paymentState.warn{color:#b7791f;}
.clientGeneralGrid .paymentState.danger{color:#d92d20;}
.creditorGridDetailed{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));}
.creditorCardDetailed{display:flex;flex-direction:column;min-height:145px;}
.creditorCardDetailed span{margin-bottom:14px;}
.creditorCardDetailed strong{margin-top:auto;color:var(--azul);font-size:21px;font-weight:950;}
.creditorTotalBox{
  margin-top:14px;
  margin-left:auto;
  width:min(360px,100%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  border:1px solid #cbe6f5;
  border-radius:18px;
  background:linear-gradient(135deg,#f7fcff,#eaf9ff);
}
.creditorTotalBox span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:900;}
.creditorTotalBox strong{color:var(--azul);font-size:23px;font-weight:950;white-space:nowrap;}
@media(max-width:900px){
  .clientGeneralGrid{grid-template-columns:1fr 1fr!important;}
  .clientGeneralGrid .emailField{grid-column:span 2;}
}
@media(max-width:620px){
  .clientGeneralGrid{grid-template-columns:1fr!important;}
  .clientGeneralGrid .emailField{grid-column:auto;}
}

/* V8.12.4 · Alineación de tablas CRM/Cobranza y pulido visual */
#viewCRM .crmFinalTable,
#viewCobranza .cobTableExact{
  table-layout:fixed;
}
#viewCRM .crmFinalTable thead th,
#viewCobranza .cobTableExact thead th{
  text-align:center!important;
  vertical-align:middle!important;
}
#viewCRM .crmFinalTable tbody td,
#viewCobranza .cobTableExact tbody td{
  text-align:center!important;
  vertical-align:middle!important;
}
#viewCRM .crmFinalTable th[data-field="cliente"],
#viewCobranza .cobTableExact th[data-field="cliente"],
#viewCRM .crmFinalTable td[data-field="cliente"],
#viewCobranza .cobTableExact td[data-field="cliente"]{
  text-align:left!important;
}
#viewCRM .crmFinalTable th[data-field="ultima"],
#viewCRM .crmFinalTable td[data-field="ultima"],
#viewCobranza .cobTableExact th[data-field="acciones"],
#viewCobranza .cobTableExact td[data-field="acciones"],
#viewCRM .crmFinalTable th[data-field="acciones"],
#viewCRM .crmFinalTable td[data-field="acciones"]{
  text-align:center!important;
}
#viewCRM .crmPerson,
#viewCobranza .crmPerson{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  min-width:0!important;
}
#viewCRM .crmPerson .avatarCob,
#viewCobranza .crmPerson .avatarCob{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  font-weight:900!important;
}
#viewCRM td[data-field="cliente"] .crmPerson > div,
#viewCobranza td[data-field="cliente"] .crmPerson > div{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-width:0!important;
}
#viewCRM td[data-field="cliente"] .crmPerson b,
#viewCobranza td[data-field="cliente"] .crmPerson b{
  line-height:1.18!important;
  margin-bottom:3px!important;
}
#viewCRM td[data-field="cliente"] .crmPerson small,
#viewCobranza td[data-field="cliente"] .crmPerson small{
  line-height:1.2!important;
}
#viewCRM td[data-field="folio"] b,
#viewCRM td[data-field="folio"] small,
#viewCobranza td[data-field="pago"],
#viewCobranza td[data-field="estatus"],
#viewCRM td[data-field="asesor"],
#viewCRM td[data-field="plan"],
#viewCRM td[data-field="pago"]{
  display:block;
}
#viewCRM .lastAction{
  margin:0 auto!important;
  text-align:left!important;
  max-width:180px!important;
}
#viewCRM .actionsStack,
#viewCobranza .cobActions{
  justify-content:center!important;
  align-items:center!important;
}

/* Modal de cliente: darle más aire al correo */
.clientGeneralGrid{
  grid-template-columns:1fr 1.35fr 1fr 1fr!important;
  align-items:stretch;
}
.clientGeneralGrid .emailField{
  grid-column:span 2;
}
.clientGeneralGrid .emailField b{
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.35;
  font-size:15px;
}

/* Archivos del expediente */
.expFilesTable td,
.expFilesTable th{
  vertical-align:middle;
}
.expFileName b{
  display:block;
  line-height:1.2;
}
.expFileName small{
  display:block;
  margin-top:4px;
  color:#6a7f99;
}


/* V8.12.5 · Corrección fina CRM/Cobranza y comprobantes */
#viewCRM .crmFinalTable,
#viewCobranza .cobTableExact{
  table-layout:fixed!important;
  width:max-content!important;
  min-width:100%!important;
}
#viewCRM .crmFinalTable thead th,
#viewCRM .crmFinalTable tbody td,
#viewCobranza .cobTableExact thead th,
#viewCobranza .cobTableExact tbody td{
  box-sizing:border-box!important;
  vertical-align:middle!important;
}
#viewCRM .crmFinalTable th[data-field="cliente"],
#viewCRM .crmFinalTable td[data-field="cliente"],
#viewCobranza .cobTableExact th[data-field="cliente"],
#viewCobranza .cobTableExact td[data-field="cliente"]{ width:280px!important; text-align:left!important; }
#viewCRM .crmFinalTable th[data-field="folio"],#viewCRM .crmFinalTable td[data-field="folio"]{ width:140px!important; text-align:center!important; }
#viewCRM .crmFinalTable th[data-field="asesor"],#viewCRM .crmFinalTable td[data-field="asesor"]{ width:150px!important; text-align:center!important; }
#viewCRM .crmFinalTable th[data-field="responsable"],#viewCRM .crmFinalTable td[data-field="responsable"]{ width:160px!important; text-align:center!important; }
#viewCRM .crmFinalTable th[data-field="plan"],#viewCRM .crmFinalTable td[data-field="plan"]{ width:110px!important; text-align:center!important; }
#viewCRM .crmFinalTable th[data-field="pago"],#viewCRM .crmFinalTable td[data-field="pago"]{ width:90px!important; text-align:center!important; }
#viewCRM .crmFinalTable th[data-field="estatus"],#viewCRM .crmFinalTable td[data-field="estatus"]{ width:110px!important; text-align:center!important; }
#viewCRM .crmFinalTable th[data-field="atrasos"],#viewCRM .crmFinalTable td[data-field="atrasos"]{ width:150px!important; text-align:left!important; }
#viewCRM .crmFinalTable th[data-field="ultima"],#viewCRM .crmFinalTable td[data-field="ultima"]{ width:190px!important; text-align:left!important; }
#viewCRM .crmFinalTable th[data-field="acciones"],#viewCRM .crmFinalTable td[data-field="acciones"]{ width:170px!important; text-align:center!important; }
#viewCRM .crmFinalTable tbody td{ padding:16px 14px!important; }

#viewCobranza .cobTableExact th[data-field="cliente"],#viewCobranza .cobTableExact td[data-field="cliente"]{ width:300px!important; }
#viewCobranza .cobTableExact tbody td{ padding:16px 14px!important; }

#viewCRM .crmPerson,
#viewCobranza .cobClient,
#viewCobranza .crmPerson{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  min-width:0!important;
}
#viewCRM .avatarCob,
#viewCobranza .avatarCob{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  flex:0 0 44px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  font-weight:900!important;
  line-height:1!important;
}
#viewCRM .crmPerson>div,
#viewCobranza .cobClient>div,
#viewCobranza .crmPerson>div{ min-width:0!important; }
#viewCRM .crmPerson b,
#viewCobranza .cobClient b,
#viewCobranza .crmPerson b{ display:block!important; margin:0 0 3px!important; line-height:1.2!important; }
#viewCRM .crmPerson small,
#viewCobranza .cobClient small,
#viewCobranza .crmPerson small{ display:block!important; line-height:1.2!important; }
#viewCobranza .cobClient em{ display:block!important; margin-top:3px!important; font-style:normal!important; }

#viewCRM .atrasoCell,
#viewCRM .lastAction{ display:flex!important; align-items:flex-start!important; gap:8px!important; min-width:0!important; }
#viewCRM .atrasoCell .dot,
#viewCRM .lastAction .dot{ width:8px!important; height:8px!important; border-radius:999px!important; margin-top:5px!important; flex:0 0 8px!important; background:#94a3b8!important; }
#viewCRM .atrasoCell .dot.red,
#viewCRM .lastAction .dot.red{ background:#e5484d!important; }
#viewCRM .atrasoCell .dot.gray{ background:#94a3b8!important; }
#viewCRM .atrasoCell b,
#viewCRM .lastAction b{ display:block!important; margin:0!important; font-size:12px!important; line-height:1.2!important; }
#viewCRM .atrasoCell small,
#viewCRM .lastAction small{ display:block!important; margin-top:2px!important; line-height:1.2!important; white-space:normal!important; }
#viewCRM .cellCentered,
#viewCRM .cellTwoLines{ display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:center!important; }
#viewCRM td[data-field="acciones"] .actionsStack{ justify-content:center!important; align-items:center!important; }

/* V8.12.6 · Alineación exacta de CRM y Cobranza */
#viewCRM table[data-resizable="1"],
#viewCobranza table[data-resizable="1"]{
  border-collapse:collapse!important;
  table-layout:fixed!important;
}
#viewCRM table[data-resizable="1"] th,
#viewCRM table[data-resizable="1"] td,
#viewCobranza table[data-resizable="1"] th,
#viewCobranza table[data-resizable="1"] td{
  box-sizing:border-box!important;
  vertical-align:middle!important;
  border-right:1px solid #edf3fa!important;
}
#viewCRM table[data-resizable="1"] th:last-child,
#viewCRM table[data-resizable="1"] td:last-child,
#viewCobranza table[data-resizable="1"] th:last-child,
#viewCobranza table[data-resizable="1"] td:last-child{
  border-right:0!important;
}
#viewCRM table[data-resizable="1"] thead th,
#viewCobranza table[data-resizable="1"] thead th{
  height:54px!important;
  padding:0 24px!important;
  text-align:center!important;
}
#viewCRM table[data-resizable="1"] .colHeaderLabel,
#viewCobranza table[data-resizable="1"] .colHeaderLabel{
  display:block!important;
  width:100%!important;
  text-align:center!important;
  line-height:54px!important;
}
#viewCRM table[data-resizable="1"] tbody td{
  height:104px!important;
  padding:14px 16px!important;
  text-align:center!important;
}
#viewCobranza table[data-resizable="1"] tbody td{
  height:112px!important;
  padding:14px 16px!important;
  text-align:center!important;
}

/* Cliente: avatar siempre arranca en la misma coordenada */
#viewCRM table[data-resizable="1"] td[data-field="cliente"],
#viewCobranza table[data-resizable="1"] td[data-field="cliente"]{
  text-align:left!important;
}
#viewCRM table[data-resizable="1"] .crmPerson,
#viewCobranza table[data-resizable="1"] .cobClient,
#viewCobranza table[data-resizable="1"] .crmPerson{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr)!important;
  align-items:center!important;
  justify-content:stretch!important;
  width:100%!important;
  gap:14px!important;
  margin:0!important;
  text-align:left!important;
}
#viewCRM table[data-resizable="1"] .avatarCob,
#viewCobranza table[data-resizable="1"] .avatarCob{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  align-self:center!important;
  justify-self:start!important;
  border-radius:999px!important;
  line-height:1!important;
}
#viewCRM table[data-resizable="1"] .crmPerson>div,
#viewCobranza table[data-resizable="1"] .cobClient>div,
#viewCobranza table[data-resizable="1"] .crmPerson>div{
  min-width:0!important;
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  text-align:left!important;
}
#viewCRM table[data-resizable="1"] .crmPerson b,
#viewCRM table[data-resizable="1"] .crmPerson small,
#viewCobranza table[data-resizable="1"] .cobClient b,
#viewCobranza table[data-resizable="1"] .cobClient small,
#viewCobranza table[data-resizable="1"] .cobClient em{
  width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  text-align:left!important;
  line-height:1.22!important;
}

/* Contenido de cada columna centrado dentro de su propia celda */
#viewCRM td[data-field="folio"]>*,
#viewCRM td[data-field="asesor"]>*,
#viewCRM td[data-field="responsable"]>*,
#viewCRM td[data-field="plan"]>*,
#viewCRM td[data-field="pago"]>*,
#viewCRM td[data-field="estatus"]>*,
#viewCobranza td:not([data-field="cliente"])>*{
  margin-left:auto!important;
  margin-right:auto!important;
}
#viewCRM td[data-field="atrasos"] .atrasoCell,
#viewCRM td[data-field="ultima"] .lastAction{
  width:100%!important;
  margin:0!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
#viewCRM td[data-field="acciones"] .actionsStack,
#viewCobranza td[data-field="acciones"] .cobActions{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  margin:0!important;
}

/* Modal de captura de pago */
.payModalGrid select{
  width:100%;
  min-height:43px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:0 12px;
  color:var(--azul);
  font-weight:800;
}

/* V8.13.0 · alineación fina y encabezados tipo Excel */
#viewCRM table[data-resizable="1"] thead th,
#viewCobranza table[data-resizable="1"] thead th{
  position:relative!important;
  user-select:none!important;
  cursor:move!important;
}
#viewCRM table[data-resizable="1"] .colHeaderLabel,
#viewCobranza table[data-resizable="1"] .colHeaderLabel{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:54px!important;
  line-height:1.15!important;
  padding-right:6px!important;
  text-align:center!important;
}
#viewCRM table[data-resizable="1"] .colResizeHandle,
#viewCobranza table[data-resizable="1"] .colResizeHandle{
  position:absolute!important;
  top:0!important;
  right:-1px!important;
  width:10px!important;
  height:100%!important;
  cursor:col-resize!important;
  background:transparent!important;
  z-index:4!important;
}
#viewCRM table[data-resizable="1"] .colResizeHandle::after,
#viewCobranza table[data-resizable="1"] .colResizeHandle::after{
  content:''!important;
  position:absolute!important;
  top:8px!important;
  bottom:8px!important;
  right:4px!important;
  width:1px!important;
  background:#b9d0e9!important;
}
#viewCRM table[data-resizable="1"] .colDragHandle,
#viewCobranza table[data-resizable="1"] .colDragHandle{
  display:none!important;
}
#viewCRM table[data-resizable="1"] td[data-field="folio"] > *,
#viewCRM table[data-resizable="1"] td[data-field="asesor"] > *,
#viewCRM table[data-resizable="1"] td[data-field="pago"] > *,
#viewCRM table[data-resizable="1"] td[data-field="plan"] > *,
#viewCRM table[data-resizable="1"] td[data-field="estatus"] > *,
#viewCobranza table[data-resizable="1"] td[data-field="plan"] > *,
#viewCobranza table[data-resizable="1"] td[data-field="pagoMensual"] > *,
#viewCobranza table[data-resizable="1"] td[data-field="numPago"] > *,
#viewCobranza table[data-resizable="1"] td[data-field="fechaPago"] > *,
#viewCobranza table[data-resizable="1"] td[data-field="atrasos"] > *,
#viewCobranza table[data-resizable="1"] td[data-field="estatus"] > *{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  margin:0!important;
}
#viewCRM table[data-resizable="1"] td[data-field="folio"],
#viewCRM table[data-resizable="1"] td[data-field="asesor"],
#viewCRM table[data-resizable="1"] td[data-field="plan"],
#viewCRM table[data-resizable="1"] td[data-field="pago"],
#viewCRM table[data-resizable="1"] td[data-field="estatus"],
#viewCobranza table[data-resizable="1"] td[data-field="plan"],
#viewCobranza table[data-resizable="1"] td[data-field="pagoMensual"],
#viewCobranza table[data-resizable="1"] td[data-field="numPago"],
#viewCobranza table[data-resizable="1"] td[data-field="fechaPago"],
#viewCobranza table[data-resizable="1"] td[data-field="atrasos"],
#viewCobranza table[data-resizable="1"] td[data-field="estatus"]{
  text-align:center!important;
}
#viewCRM table[data-resizable="1"] td[data-field="cliente"],
#viewCobranza table[data-resizable="1"] td[data-field="cliente"]{
  padding-left:18px!important;
  padding-right:18px!important;
}
#viewCRM table[data-resizable="1"] .avatarCob,
#viewCobranza table[data-resizable="1"] .avatarCob{
  align-self:center!important;
}
#viewCobranza table[data-resizable="1"] .payDate{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:100%!important;
}
#viewCRM table[data-resizable="1"] .cellCentered,
#viewCRM table[data-resizable="1"] .cellTwoLines{
  width:100%!important;
  margin:0!important;
}

/* V8.13.1 · divisor limpio, pago centrado y última acción restaurada */
#viewCRM table[data-resizable="1"] .colResizeHandle,
#viewCobranza table[data-resizable="1"] .colResizeHandle{
  right:-5px!important;
  width:10px!important;
  background:transparent!important;
}
#viewCRM table[data-resizable="1"] .colResizeHandle::after,
#viewCobranza table[data-resizable="1"] .colResizeHandle::after{
  display:none!important;
  content:none!important;
}
#viewCRM table[data-resizable="1"] thead th,
#viewCobranza table[data-resizable="1"] thead th{
  border-right:1px solid #cfe0f2!important;
}
#viewCRM table[data-resizable="1"] thead th:last-child,
#viewCobranza table[data-resizable="1"] thead th:last-child{
  border-right:0!important;
}
#viewCRM table[data-resizable="1"] td[data-field="pago"],
#viewCRM table[data-resizable="1"] td[data-field="pago"] .cellCentered{
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1.2!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
#viewCRM .lastAction{
  display:grid!important;
  grid-template-columns:10px minmax(0,1fr)!important;
  align-items:start!important;
  column-gap:8px!important;
  width:100%!important;
  margin:0!important;
  text-align:left!important;
}
#viewCRM .lastAction .dot{
  grid-column:1!important;
  grid-row:1!important;
  margin-top:4px!important;
  align-self:start!important;
}
#viewCRM .lastAction>div{
  grid-column:2!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  min-width:0!important;
}
#viewCRM .lastAction b,
#viewCRM .lastAction small{
  display:block!important;
  width:100%!important;
  text-align:left!important;
}
#viewCRM table[data-resizable="1"] tbody td,
#viewCobranza table[data-resizable="1"] tbody td{
  min-height:104px!important;
}


/* V8.13.2 · Pago centrado y responsable sin recorte */
#viewCRM table[data-resizable="1"] td[data-field="pago"]{
  display:table-cell!important;
  height:104px!important;
  min-height:104px!important;
  vertical-align:middle!important;
  padding:14px 16px!important;
  line-height:normal!important;
}
#viewCRM table[data-resizable="1"] td[data-field="pago"] .cellCentered{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:74px!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
}
#viewCRM table[data-resizable="1"] td[data-field="pago"] .cellCentered b{
  display:block!important;
  margin:0!important;
  line-height:1.2!important;
  text-align:center!important;
}
#viewCRM table[data-resizable="1"] td[data-field="responsable"]{
  vertical-align:middle!important;
  padding:14px 12px!important;
}
#viewCRM .respClean{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
}
#viewCRM .respCleanSelect{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:38px!important;
  padding:0 34px 0 12px!important;
  box-sizing:border-box!important;
  text-align:left!important;
  text-align-last:left!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* V8.13.3 · Historial compacto y papelera general */
.expHistoryScroll{
  max-height:440px;
  overflow:auto;
  padding-right:8px;
  scrollbar-gutter:stable;
}
.expHistoryScroll::-webkit-scrollbar{width:9px}
.expHistoryScroll::-webkit-scrollbar-track{background:#eef5fc;border-radius:999px}
.expHistoryScroll::-webkit-scrollbar-thumb{background:#b7cbe0;border-radius:999px}
.expEventTop{display:flex;align-items:center;justify-content:space-between;gap:14px}
.expEventTop small{margin-top:0!important;white-space:nowrap}
.expEventUser{font-weight:800;color:#315783!important}
.expDeleteDocBtn,.trashPermanent{
  color:#d92d20!important;
  border-color:#ffc7c2!important;
  background:#fff7f6!important;
}

.trashShell{
  background:#fff;
  border:1px solid #dce9f7;
  border-radius:22px;
  padding:20px;
  box-shadow:0 16px 38px rgba(20,63,109,.08);
}
.trashHead,.trashToolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.trashHead h2{margin:0;color:#102f5e}
.trashHead>div>span{display:block;margin-top:4px;color:#6e829b;font-size:13px}
.trashRetention{display:flex;align-items:center;gap:10px;font-weight:800;color:#284b76}
.trashRetention select{
  min-height:40px;
  border:1px solid #cadced;
  border-radius:11px;
  background:#fff;
  padding:0 12px;
  color:#12325f;
  font-weight:800;
}
.trashToolbar{
  margin-top:18px;
  padding:12px 14px;
  border:1px solid #e3edf8;
  border-radius:14px;
  background:#f8fbff;
}
.trashToolbar>label{display:flex;align-items:center;gap:8px;font-weight:800;color:#23466f}
.trashToolbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.trashDanger{color:#d92d20!important;border-color:#ffc7c2!important;background:#fff!important}
.trashTableWrap{margin-top:14px;overflow:auto;border:1px solid #e3edf8;border-radius:16px}
.trashTable{width:100%;min-width:900px;border-collapse:collapse}
.trashTable th{
  padding:13px 14px;
  background:#f4f8fd;
  border-bottom:1px solid #dce8f5;
  color:#315273;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.035em;
  text-align:left;
}
.trashTable td{padding:14px;border-bottom:1px solid #edf3f9;vertical-align:middle;color:#17365d}
.trashTable tr:last-child td{border-bottom:0}
.trashTable td small{display:block;margin-top:4px;color:#71849a}
.trashTable .expDocActions{margin-top:0}

@media(max-width:900px){
  .trashHead,.trashToolbar{align-items:flex-start;flex-direction:column}
  .trashRetention{width:100%;justify-content:space-between}
}


/* V8.13.4 · alineación responsiva, vista previa y permisos documentales */
#viewCRM table[data-resizable="1"] tbody tr,
#viewCobranza table[data-resizable="1"] tbody tr{
  height:108px!important;
}
#viewCRM table[data-resizable="1"] td[data-field="asesor"],
#viewCRM table[data-resizable="1"] td[data-field="plan"],
#viewCRM table[data-resizable="1"] td[data-field="pago"],
#viewCobranza table[data-resizable="1"] td[data-field="estatus"]{
  display:table-cell!important;
  height:108px!important;
  vertical-align:middle!important;
  padding-top:12px!important;
  padding-bottom:12px!important;
}
#viewCRM table[data-resizable="1"] td[data-field="asesor"] .cellTwoLines,
#viewCRM table[data-resizable="1"] td[data-field="plan"] .cellCentered,
#viewCRM table[data-resizable="1"] td[data-field="pago"] .cellCentered,
#viewCobranza table[data-resizable="1"] td[data-field="estatus"] .statusBadge{
  min-height:76px!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
#viewCobranza table[data-resizable="1"] td[data-field="estatus"] .statusBadge{
  min-height:34px!important;
  width:max-content!important;
  max-width:100%!important;
  margin-inline:auto!important;
}
#viewCRM table[data-resizable="1"] td[data-field="responsable"] .respCleanSelect{
  min-height:40px!important;
  line-height:38px!important;
}

.stdDocPreviewShell{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  max-width:none;
  max-height:none;
  margin:0;
  border:0;
  background:transparent;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  overflow:hidden;
}
.stdDocPreviewShell[open].open{display:flex}
.stdDocPreviewShell::backdrop{background:rgba(5,18,38,.64);backdrop-filter:blur(4px)}
.stdDocPreviewBackdrop{display:none!important}
.stdDocPreviewPanel{
  position:relative;
  z-index:1;
  width:min(1180px,calc(100vw - 48px));
  height:min(880px,calc(100vh - 48px));
  display:grid;
  grid-template-rows:auto 1fr;
  background:#fff;
  border:1px solid #d7e5f3;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 28px 90px rgba(0,30,70,.32);
}
.stdDocPreviewPanel>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border-bottom:1px solid #deebf7;background:#f8fbff}
.stdDocPreviewPanel>header h3{margin:2px 0 0;color:#102f5e;font-size:18px}
.stdDocPreviewPanel>header small{color:#6b8099;font-weight:700}
.stdDocPreviewPanel>header>div:last-child{display:flex;align-items:center;gap:10px}
.stdDocPreviewPanel iframe{width:100%;height:100%;border:0;background:#eef4fa}
.stdDocPreviewClose{width:38px;height:38px;border:1px solid #cbdced;border-radius:11px;background:#fff;color:#15365f;font-size:25px;line-height:1;cursor:pointer}
body.stdPreviewOpen{overflow:hidden}

.accessMode{display:grid;gap:10px;margin-bottom:14px}
.accessMode label{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid #dce8f5;border-radius:12px;font-weight:800;color:#24466e}
.accessUserList{display:grid;gap:8px;max-height:330px;overflow:auto;padding-right:5px}
.accessUserList label{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e1ebf5;border-radius:12px;background:#fbfdff}
.accessUserList label span{min-width:0}.accessUserList label b,.accessUserList label small{display:block}.accessUserList label small{margin-top:2px;color:#71839a}
[data-doc-perm][hidden]{display:none!important}

@media(max-width:900px){
  .stdDocPreviewShell{padding:8px}
  .stdDocPreviewPanel{width:calc(100vw - 16px);height:calc(100vh - 16px);border-radius:14px}
  .stdDocPreviewPanel>header{padding:10px 12px}
  #viewCRM table[data-resizable="1"] tbody tr,
  #viewCobranza table[data-resizable="1"] tbody tr{height:104px!important}
}


/* V8.13.5 · acciones de archivos simplificadas y visor siempre al frente */
.expFilesTable .expDocActions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* V8.13.6 · las tablas ocupan todo el espacio disponible */
#viewCRM .crmFinalTableWrap,
#viewCobranza .cobTableWrap,
#viewCobranza .cobTableScroll{
  width:100%!important;
  max-width:100%!important;
}
#viewCRM .crmFinalTable,
#viewCobranza .cobTableExact{
  width:100%!important;
  min-width:100%!important;
  max-width:none!important;
  table-layout:fixed!important;
}
#viewCRM table[data-resizable="1"] th,
#viewCRM table[data-resizable="1"] td,
#viewCobranza table[data-resizable="1"] th,
#viewCobranza table[data-resizable="1"] td{
  max-width:none!important;
}

/* V8.13.7 · estado de liquidaciones dentro del CRM */
.creditorCardDetailed.liquidated{
  border-color:#9fe6b6!important;
  background:linear-gradient(180deg,#f4fff7 0%,#ecfbf1 100%)!important;
}
.creditorCardTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.creditorLiquidatedBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border-radius:999px;
  background:#d9f8e3;
  color:#087a35;
  font-size:10px;
  font-weight:900;
}
.creditorLiquidationMeta{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid #bfeccc;
  display:grid;
  gap:4px;
  color:#315b40;
  font-size:11px;
}
.creditorLiquidationMeta span,
.creditorLiquidationMeta b{display:block;}

/* V8.13.8 · Actividad global, correo amplio y deuda pendiente */
.activityShell{background:#fff;border:1px solid #dce7f5;border-radius:18px;box-shadow:0 14px 36px rgba(15,23,42,.06);overflow:hidden}
.activityHead{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid #e8eff8}
.activityHead h2{margin:0;color:#0b2b59}
.activityFilters{display:grid;grid-template-columns:minmax(260px,1fr) 220px 220px auto;gap:12px;padding:16px 20px;border-bottom:1px solid #e8eff8}
.activityFilters select{min-height:44px;border:1px solid #d7e3f1;border-radius:12px;background:#fff;color:#102b55;padding:0 12px;font-weight:800}
.activityTableWrap{overflow:auto;max-height:calc(100vh - 290px)}
.activityTable{width:100%;border-collapse:collapse;min-width:1050px}
.activityTable th{position:sticky;top:0;z-index:2;background:#f4f9ff;color:#395371;font-size:11px;text-transform:uppercase;letter-spacing:.035em;text-align:left;padding:13px 15px;border-bottom:1px solid #dce7f5}
.activityTable td{padding:14px 15px;border-bottom:1px solid #edf2f8;vertical-align:top;font-size:13px;color:#263b58}
.activityTable td small{display:block;color:#73849a;margin-top:3px}
.activityModuleTag{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e9f3ff;color:#1752a2;font-size:10px;font-weight:900}
@media(max-width:1000px){.activityFilters{grid-template-columns:1fr 1fr}.activityFilters .searchBox{grid-column:1/-1}}

.detailField.emailField,.expInfoBox.emailInfoBox{grid-column:span 2!important;min-width:0}
.detailField.emailField b,.expInfoBox.emailInfoBox b,.crmPerson small,.cobClient small{
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important;max-width:100%!important
}
.creditorCardDetailed.liquidated{background:#f1fff5;border-color:#a8e6b9}
.creditorTotalBox strong{font-variant-numeric:tabular-nums}

/* V8.13.9 · actividad permanente */
.activityHeadActions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.activityHeadActions .ghostBtn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.activityHeadActions .btnSvg{width:16px;height:16px}
@media(max-width:720px){.activityHead{align-items:flex-start;flex-direction:column}.activityHeadActions{width:100%;justify-content:space-between}.activityFilters{grid-template-columns:1fr!important}.activityFilters .searchBox{grid-column:auto!important}}

/* V8.14.0 · actividad y buró */
.activityAutoBackup{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid #bdebd7;background:#eefcf6;color:#087a4b;border-radius:999px;font-size:12px;font-weight:900}

/* V8.14.6 · día de pago editable */
.paymentDayEdit input{width:100%;min-width:80px;border:1px solid #d6e3f0;border-radius:10px;padding:8px 10px;font:800 14px Inter;color:#123052;background:#fff}

/* V8.16.9 · Vista documental real y ligera */
.stdDocPreviewBody{min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;background:#eef4fa;display:grid;place-items:stretch}
.stdDocPreviewBody iframe{display:block;width:100%;height:100%;min-height:0;border:0;background:#eef4fa}
.stdDocPreviewImage{display:block;max-width:100%;max-height:100%;margin:auto;object-fit:contain;background:#fff}
.stdGeneratorLoadState{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#183d68;background:#f5f9fd}
.stdGeneratorLoadState span{width:42px;height:42px;border:4px solid #d7e8f6;border-top-color:#11a9d7;border-radius:50%;animation:stdGeneratorSpin .75s linear infinite}
.stdGeneratorLoadState b{font-size:14px}
@keyframes stdGeneratorSpin{to{transform:rotate(360deg)}}

/* V8.16.69 · Atrasos centrados y responsable operativo */
#viewCRM .crmFinalTable th[data-field="atrasos"],
#viewCRM .crmFinalTable td[data-field="atrasos"],
#viewCobranza .cobTableExact th[data-field="atrasos"],
#viewCobranza .cobTableExact td[data-field="atrasos"]{text-align:center!important;vertical-align:middle!important}
#viewCRM .crmFinalTable td[data-field="atrasos"] .atrasoCell,
#viewCobranza .cobTableExact td[data-field="atrasos"] .atrasoCell{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:100%!important;margin:0 auto!important}
#viewCRM .crmFinalTable td[data-field="atrasos"] .atrasoCell>div,
#viewCobranza .cobTableExact td[data-field="atrasos"] .atrasoCell>div{text-align:center!important}
#viewCRM .crmFinalTable th[data-field="responsable"],#viewCRM .crmFinalTable td[data-field="responsable"]{text-align:center!important}
