.container.wide { max-width: 1180px; }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.user-box { font-size: .85rem; display: flex; gap: 1rem; align-items: center; }
.logout { color: var(--cian); text-decoration: none; font-weight: 700; }

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 440px;
  margin: 4rem auto;
  text-align: center;
  border: 1px solid var(--borde);
}
.login-card h1 { color: var(--azul-innovate); font-size: 1.4rem; margin-bottom: .75rem; }
.login-card p { margin-bottom: 1.5rem; line-height: 1.5; }
.login-card .btn-primary { display: inline-block; text-decoration: none; }

.status-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1rem; }
.chip {
  font-size: .78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .3rem .8rem;
  background: #fff;
  border: 1px solid var(--borde);
}
.chip.ok { border-color: #9fd8b6; background: #eaf7ef; color: #1a6b3c; }
.chip.warn { border-color: #f2d19b; background: #fdf5e6; color: #8a5a00; }
.chip a { color: inherit; }

.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--borde); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs button {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  background: none;
  border: none;
  padding: .7rem 1rem;
  color: #6b7684;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.tabs button.active { color: var(--azul-innovate); border-bottom-color: var(--cian); }

.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1rem; }
.toolbar label { font-size: .8rem; font-weight: 700; color: var(--azul-innovate); display: flex; flex-direction: column; gap: .25rem; }
.toolbar input, .toolbar select { font: inherit; font-weight: 400; padding: .5rem .6rem; border: 1px solid var(--borde); border-radius: 8px; }
.toolbar .btn-secondary { height: 38px; }
#cl-search { min-width: 280px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--borde); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.data th {
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: .75rem;
  color: #6b7684;
  font-weight: 600;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--borde);
  white-space: nowrap;
}
table.data td { padding: .65rem .8rem; border-bottom: 1px solid #eef1f5; vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data .empty { text-align: center; color: #97a1b0; padding: 2rem; }
.muted { color: #97a1b0; font-size: .8rem; }
.status { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; }
.status.confirmed { background: #eaf7ef; color: #1a6b3c; }
.status.pending_payment { background: #fdf5e6; color: #8a5a00; }
.status.cancelled { background: #fdecea; color: #8a2620; }
.warn-icon { cursor: help; color: #c77700; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.row-actions button, .mini {
  font-size: .75rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--borde);
  background: #fff;
  padding: .25rem .55rem;
  cursor: pointer;
  color: var(--azul-innovate);
}
.row-actions button.danger, .mini.danger { color: #b3261e; border-color: #f5c6c1; }

.of-list { display: grid; gap: 1rem; }
.of-card { background: #fff; border: 1px solid var(--borde); border-left: 5px solid var(--accent, var(--cian)); border-radius: 12px; padding: 1.1rem 1.25rem; }
.of-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.of-head h3 { color: var(--azul-innovate); font-size: 1.05rem; }
.of-meta { font-size: .85rem; color: #5b6572; margin-top: .25rem; }
.occ-box { margin-top: 1rem; border-top: 1px dashed var(--borde); padding-top: .9rem; }
.occ-box h4 { font-family: 'Poppins', sans-serif; font-size: .85rem; color: var(--azul-innovate); margin-bottom: .5rem; }
.occ-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; font-size: .86rem; flex-wrap: wrap; }
.occ-add { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; align-items: center; }
.occ-add input { font: inherit; padding: .4rem .5rem; border: 1px solid var(--borde); border-radius: 8px; }
.occ-add input[type=number] { width: 90px; }

.panel-card { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 1.5rem; max-width: 760px; }
.panel-card h2 { color: var(--azul-innovate); font-size: 1rem; margin: .5rem 0 .4rem; }
.panel-card textarea { width: 100%; font: inherit; padding: .6rem; border: 1px solid var(--borde); border-radius: 8px; margin-bottom: 1rem; }
.hint { font-size: .8rem; color: #6b7684; margin-bottom: .8rem; line-height: 1.5; }
.hint code { background: var(--gris-claro); padding: .05rem .3rem; border-radius: 4px; }
.av-days { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.av-day { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: .75rem; }
.av-day span { font-weight: 700; color: var(--azul-innovate); font-size: .9rem; }
.av-day input { font: inherit; padding: .5rem .6rem; border: 1px solid var(--borde); border-radius: 8px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin-bottom: 1.25rem; }
.form-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--azul-innovate); }
.form-grid input, .form-grid select, .form-grid textarea { font: inherit; font-weight: 400; color: var(--gris-pizarra); padding: .55rem .65rem; border: 1px solid var(--borde); border-radius: 8px; }
.form-grid input[type=color] { padding: .15rem; height: 38px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid label.check { flex-direction: row; align-items: center; gap: .5rem; }
.form-grid label.check-row { flex-direction: row; align-items: flex-start; font-weight: 400; color: inherit; font-size: .9rem; }
.form-grid fieldset { border: 1px solid var(--borde); border-radius: 8px; padding: .6rem .8rem; }
.form-grid legend { font-size: .8rem; font-weight: 700; color: var(--azul-innovate); padding: 0 .3rem; }
.check-list { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; }
.check-list label { flex-direction: row; font-weight: 400; color: var(--gris-pizarra); align-items: center; gap: .35rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .av-day { grid-template-columns: 1fr; } }

dialog { margin: auto; border: none; border-radius: 16px; padding: 1.75rem; width: min(640px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20, 54, 95, .45); }
dialog h2 { color: var(--azul-innovate); font-size: 1.15rem; margin-bottom: 1rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 1rem; align-items: center; }
.dialog-actions .btn-link { margin: 0; }

.admin-brand { align-items: center; gap: .9rem; }
.admin-brand .brand-logo { height: 64px; }
.check-row { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; margin: .9rem 0; cursor: pointer; }
.check-row input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--cian); flex-shrink: 0; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem; margin: .2rem .25rem 0 0; }
.tag.invoice { background: #fdf5e6; color: #8a5a00; }
.tag.invoice.issued { background: #eaf7ef; color: #1a6b3c; }
.tag.ref { background: #e5f7fd; color: #0b5d80; }
@media (max-width: 640px) {
  .data td, .data th { padding: .55rem .5rem; }
  .toolbar > * { flex: 1 1 100%; }
  #cl-search { min-width: 0; }
}

/* Imágenes */
.field-label { display: block; font-size: .8rem; font-weight: 700; color: var(--azul-innovate); margin-bottom: .4rem; }
.image-picker { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.image-preview { border: 1px dashed var(--borde); border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: var(--gris-claro); color: #97a1b0; font-size: .8rem; }
.image-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-preview.wide { width: 240px; aspect-ratio: 16 / 9; }
.image-preview.email-header { width: 280px; height: 90px; background: var(--azul-innovate); color: rgba(255,255,255,.7); padding: 12px 18px; place-items: center start; }
.image-preview.email-header img { width: auto; max-width: 170px; height: auto; max-height: 66px; object-fit: contain; }
.image-actions { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; max-width: 260px; }
.image-actions .btn-link { margin: 0; }
.file-btn { display: inline-flex; align-items: center; height: 36px; cursor: pointer; }
.of-thumb { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.of-head-main { display: flex; gap: 1rem; align-items: flex-start; }

/* Editor de correos */
.email-editor { display: grid; gap: 1rem; max-width: 820px; }
.email-editor .panel-card { max-width: none; }
.tpl-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.tpl-head h2 { margin: 0; }
.tpl-head .check { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--azul-innovate); font-size: .88rem; cursor: pointer; }
.tpl-head .check input { width: 18px; height: 18px; accent-color: var(--cian); }
.tpl-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.tpl-actions .btn-link { margin: 0; }
.panel-card.off .form-grid { opacity: .55; }
.hint.vars code { white-space: nowrap; }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 1rem; align-items: center; background: rgba(244, 246, 249, .95); padding: .8rem 0; border-top: 1px solid var(--borde); }
.save-bar .btn-link { margin: 0; }
.preview-dialog { width: min(700px, calc(100vw - 1.5rem)); padding: 1rem; }
.preview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; font-size: .9rem; }
.preview-head .btn-link { margin: 0; }
#em-preview-frame { width: 100%; height: 70vh; border: 1px solid var(--borde); border-radius: 10px; background: #f4f6f9; }

.pc-result { background: #eaf7ef; border: 1px solid #9fd8b6; border-radius: 10px; padding: 1rem; margin-bottom: 1rem; display: grid; gap: .6rem; }
.pc-result input { font: inherit; font-size: .85rem; padding: .5rem .6rem; border: 1px solid var(--borde); border-radius: 8px; width: 100%; }
.of-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; }

.toast {
  position: fixed;
  inset: 1.25rem auto auto 50%;
  margin: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .8rem;
  background: #1a8a4a;
  color: #fff;
  border: 0;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  z-index: 1000;
  width: max-content;
  min-width: min(320px, calc(100vw - 2rem));
  max-width: min(560px, calc(100vw - 2rem));
  cursor: pointer;
  animation: toast-in .25s ease-out;
}
.toast[popover]:not(:popover-open), .toast[hidden] { display: none; }
.toast.error { background: #b3261e; }
.toast-icon {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.22); font-size: 1.15rem;
}
@keyframes toast-in { from { transform: translate(-50%, -14px); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

.paid-ok { color: #1a8a4a; font-weight: 700; }
.price-options { border: 1px solid #e0e6ee; border-radius: 10px; padding: 10px 14px; display: grid; gap: 10px; min-width: 0; }
.price-options legend { font-weight: 700; padding: 0 6px; }

.tpl-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .4rem 0 .6rem; }
.tpl-bar select { flex: 1 1 260px; min-width: 0; }
.btn-link.danger { color: #b3261e; }
.tpl-picker { border-left: 4px solid var(--cian, #00A8E8); }

.btn-primary.danger-btn { background: #b3261e; }


/* Eventos: diálogos anchos, inscritos, tipos de evento, uso de correos */
.wide-dialog { width: min(1100px, calc(100vw - 32px)); max-width: none; }
.sheet-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 10px; background: color-mix(in srgb, #0F9D58 7%, #fff); border: 1px solid color-mix(in srgb, #0F9D58 30%, #fff); font-size: .9rem; }
.sheet-bar > span { flex: 1 1 320px; }
.sheet-bar a.btn-secondary { text-decoration: none; }
.at-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
#at-table td, #at-table th { white-space: nowrap; font-size: .82rem; }
.dialog-actions .spacer { flex: 1; }
.et-card { margin: 0 0 12px; }
.et-q { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .5rem; align-items: center; margin: 0 0 .5rem; }
.et-q textarea { grid-column: 1 / -1; }
.et-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.usage-bar { height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; margin-top: .35rem; }
.usage-bar span { display: block; height: 100%; background: #1a8a4a; }
.usage-bar.mid span { background: #c77700; }
.usage-bar.high span { background: #b3261e; }
@media (max-width: 640px) { .et-q { grid-template-columns: 1fr 1fr; } .et-q [data-q=label] { grid-column: 1 / -1; } }

/* Cursos grabados */
.co-lessons { display: grid; gap: .6rem; margin-bottom: .7rem; }
.co-lesson { border: 1px solid var(--borde); border-radius: 10px; padding: .7rem .8rem; background: var(--gris-claro); display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1.4fr) 90px; gap: .5rem; align-items: start; }
.co-lesson .n { font-weight: 700; color: var(--azul-innovate); padding-top: .55rem; }
.co-lesson input, .co-lesson textarea { width: 100%; font: inherit; font-weight: 400; font-size: .85rem; padding: .45rem .55rem; border: 1px solid var(--borde); border-radius: 7px; background: #fff; }
.co-lesson .wide { grid-column: 2 / -1; }
.co-lesson .row-tools { grid-column: 2 / -1; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; font-size: .8rem; font-weight: 400; color: var(--gris-pizarra); }
.co-lesson .row-tools label { display: flex; flex-direction: row; gap: .35rem; align-items: center; font-weight: 400; color: inherit; }
.co-lesson .video-ok { font-size: .75rem; color: #1a8a4a; }
.co-lesson .video-bad { font-size: .75rem; color: #b42318; }
.co-faq-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: .5rem; margin-bottom: .5rem; }
.co-faq-row input, .co-faq-row textarea { font: inherit; font-weight: 400; font-size: .85rem; padding: .45rem .55rem; border: 1px solid var(--borde); border-radius: 7px; }
.funnel { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.funnel span { background: var(--gris-claro); border-radius: 8px; padding: .3rem .65rem; font-size: .8rem; }
.funnel strong { color: var(--azul-innovate); }
.status.st-draft { background: #eef1f6; color: #4b5563; }
.status.st-announced { background: #e8f1fb; color: #1d4f91; }
.status.st-presale { background: #fff4e0; color: #9a5b00; }
.status.st-open { background: #e7f6ec; color: #1a7a43; }
.status.st-closed { background: #fdecea; color: #8a2620; }
.grant-box { background: #fff; border: 1px solid var(--borde); border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1rem; }
.grant-box summary { cursor: pointer; font-weight: 700; color: var(--azul-innovate); font-size: .9rem; }
.mini-bar { display: inline-block; vertical-align: middle; width: 70px; height: 6px; background: #e9edf3; border-radius: 99px; overflow: hidden; margin-right: .4rem; }
.mini-bar span { display: block; height: 100%; background: var(--cian); }
@media (max-width: 720px) {
  .co-lesson { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .co-lesson > * { grid-column: 2 / -1; }
  .co-lesson .n { grid-column: 1; grid-row: 1; }
  .co-faq-row { grid-template-columns: 1fr; }
}

/* Foto en círculo y su recorte */
.image-preview.round { width: 96px; height: 96px; border-radius: 50%; }
.crop-dialog { width: min(440px, calc(100vw - 2rem)); }
.crop-dialog canvas { display: block; width: 100%; max-width: 360px; aspect-ratio: 1; margin: .5rem auto 1rem; border-radius: 12px; background: #0f172a; cursor: grab; touch-action: none; }
.crop-dialog canvas:active { cursor: grabbing; }
.crop-zoom { display: flex; align-items: center; gap: .8rem; font-size: .85rem; font-weight: 700; color: var(--azul-innovate); margin-bottom: 1rem; }
.crop-zoom input { flex: 1; accent-color: var(--cian); }

/* Paquetes de cursos */
.bu-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--borde); }
.bu-head h3 { color: var(--azul-innovate); font-size: 1.05rem; margin-bottom: .25rem; }
.bu-head .hint { margin: 0; max-width: 640px; }
.bu-courses { display: grid; gap: .45rem; margin: .3rem 0 .5rem; }
.bu-courses label.check { font-weight: 400; color: var(--gris-pizarra); font-size: .88rem; }
.bu-savings { align-self: end; font-size: .85rem; padding: .6rem .8rem; border-radius: 8px; background: var(--gris-claro); color: #4b5563; line-height: 1.45; }
.bu-savings.ok { background: #eaf7ef; color: #1a6b3c; }
.bu-savings.bad { background: #fdecea; color: #8a2620; }

/* Facturación */
.fx-env:empty { display: none; }
.fx-env { margin-bottom: .8rem; }
.fx-summary { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; background: var(--gris-claro); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; }
.fx-summary div { display: grid; gap: .1rem; text-align: right; }
.fx-summary span { font-size: .75rem; color: #6b7684; }
.v-alert-admin { background: #fdecea; border: 1px solid #f5c6c1; color: #8a2620; border-radius: 10px; padding: .7rem .9rem; font-size: .88rem; margin-bottom: 1rem; line-height: 1.45; }

.gl-bar { display: flex; gap: 1rem; align-items: end; margin: 1.25rem 0 .8rem; padding-top: 1.25rem; border-top: 1px solid var(--borde); }
.gl-bar label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 700; }
.gl-bar select { font: inherit; padding: .5rem .6rem; border: 1px solid var(--borde); border-radius: 8px; min-width: 200px; }
.gl-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: .8rem 0; }
.gl-list { max-height: 320px; overflow: auto; margin-top: .6rem; }
.gl-list td.num, .gl-list th.num { text-align: right; white-space: nowrap; }
.gl-warn { background: #fdf5e6; border: 1px solid #f2d19b; color: #8a5a00; border-radius: 10px; padding: .7rem .9rem; font-size: .88rem; margin-bottom: .8rem; line-height: 1.45; }
.gl-warn ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.csd-box { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--borde); }
.csd-box h3 { color: var(--azul-innovate); font-size: 1rem; margin-bottom: .4rem; }

/* Diplomas */
.ce-map { margin: .5rem 0 1rem; }
.ce-map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem 1rem; }
.ce-map-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--azul-innovate); }
.ce-map-grid select, .ce-name, .ce-email { font: inherit; font-weight: 400; padding: .4rem .5rem; border: 1px solid var(--borde); border-radius: 8px; }
.ce-name { min-width: 240px; width: 100%; }
.ce-email { min-width: 200px; width: 100%; }
.ce-paste { width: 100%; font: inherit; padding: .6rem; border: 1px solid var(--borde); border-radius: 8px; margin-bottom: .5rem; }
.ce-missing { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; background: #fdf5e6; border: 1px solid #f2d19b; }
.ce-missing p { margin: 0 0 .4rem; font-size: .9rem; }
.ce-missing .check-row { margin: .3rem 0; }
.ce-issue-bar { margin-top: 1rem; }
.ce-h3 { margin: 1.2rem 0 .6rem; }
.ce-days-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; margin: .7rem 0 .6rem; }
.ce-days-row label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--azul-innovate); }
.ce-days-row input, .ce-days-row select { font: inherit; font-weight: 400; padding: .45rem .5rem; border: 1px solid var(--borde); border-radius: 8px; }
.ce-days-or { font-size: .85rem; color: #6b7684; padding-bottom: .55rem; }
.ce-days-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.ce-days-list .chip { display: inline-flex; align-items: center; gap: .35rem; }
.ce-days-list .chip button { border: 0; background: none; cursor: pointer; font: inherit; color: #8a5a00; padding: 0 .1rem; line-height: 1; }
tr.row-off td { opacity: .55; }
.cs-cred { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1.4fr) auto; gap: .5rem; margin-bottom: .5rem; }
.cs-cred input { font: inherit; padding: .5rem .6rem; border: 1px solid var(--borde); border-radius: 8px; min-width: 0; }
@media (max-width: 700px) { .cs-cred { grid-template-columns: 1fr; } }
#cs-sig-preview, #cs-photo-preview { background: #fff; }

/* Facturas de servicios: un renglón por concepto */
.sv-concept { display: grid; grid-template-columns: minmax(0, 3fr) 90px 150px 110px auto; gap: .6rem; align-items: end; margin-bottom: .6rem; }
.sv-concept label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--azul-innovate); }
.sv-concept input { font: inherit; font-weight: 400; color: var(--gris-pizarra); padding: .55rem .65rem; border: 1px solid var(--borde); border-radius: 8px; min-width: 0; }
.sv-concept [data-remove] { padding-bottom: .6rem; }
@media (max-width: 760px) { .sv-concept { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sv-concept .sv-desc { grid-column: 1 / -1; } }

/* Las listas con textos largos (regímenes, clientes) no ensanchan el formulario en celular */
.form-grid > label { min-width: 0; }
.form-grid select { width: 100%; min-width: 0; text-overflow: ellipsis; }
