/* Lendix — Product wizard (fintech SaaS) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #0f172a;
  background: #eef1f6;
}

/* —— Shell —— */
.shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* —— Sidebar —— */
.sidebar {
  width: 268px;
  flex-shrink: 0;
  background: #0b1220;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 22px 20px;
  flex-shrink: 0;
}

.sidebar__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  color: #f8fafc;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.25);
}

.sidebar__brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.sidebar__tagline {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
  font-weight: 500;
}

.sidebar__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 4px 16px 20px;
}

.sidebar__nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
}

.sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__group + .sidebar__group {
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.sidebar__section {
  padding: 0 10px;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #55637a;
}

.sidebar__pill {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  border-left: 2.5px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

a.sidebar__pill:hover {
  background: rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
}

.sidebar__pill--active {
  background: rgba(56, 189, 248, 0.12);
  border-left-color: #38bdf8;
  color: #e0f2fe;
}

.sidebar__pill-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.sidebar__pill--active .sidebar__icon {
  color: #38bdf8;
}

/* —— Sidebar footer (user + logout) —— */
.sidebar__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.4);
}

.sidebar__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 999px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.sidebar__user {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar__user-name {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__user-role {
  margin: 0;
  font-size: 11px;
  color: #64748b;
}

.sidebar__logout-form {
  margin: 0;
  flex-shrink: 0;
}

.sidebar__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.sidebar__logout:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.sidebar__logout svg {
  width: 16px;
  height: 16px;
}

/* —— Main —— */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #e8edf4 100%);
}

.page-header {
  padding: 36px 40px 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.page-header__title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.page-header__lead {
  margin: 12px 0 0;
  max-width: 52rem;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  font-weight: 450;
}

.flash {
  margin: 0 40px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.flash--info {
  margin-top: 16px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 40px 56px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.page-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-aside {
  position: sticky;
  top: 24px;
}

/* —— Wizard stepper —— */
.wizard-stepper {
  margin-bottom: 4px;
}

.wizard-stepper__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
}

.wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.wizard-step--pending {
  opacity: 0.85;
}

.wizard-step--active {
  border-color: transparent;
  background: #ffffff;
  box-shadow:
    0 0 0 2px #3b82f6,
    0 8px 20px rgba(59, 130, 246, 0.2);
}

.wizard-step--done {
  border-color: #86efac;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.wizard-step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
}

.wizard-step--active .wizard-step__badge {
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.wizard-step--done .wizard-step__badge {
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
}

.wizard-step__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wizard-step__label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-step--active .wizard-step__label {
  color: #0f172a;
}

.wizard-stepper__join {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.wizard-stepper__join--done {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* —— Cards —— */
.wizard-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.wizard-card--review {
  border-color: #dbeafe;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 40px rgba(37, 99, 235, 0.08);
}

.wizard-card__head {
  padding: 22px 26px 0;
}

.wizard-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.wizard-card__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  font-weight: 450;
}

.wizard-card__body {
  padding: 20px 26px 26px;
}

/* —— Form —— */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.field--full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.input,
.select,
.textarea {
  width: 100%;
  margin: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #94a3b8;
  font-weight: 450;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #94a3b8;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.textarea--code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 13px;
  line-height: 1.45;
  background: #f8fafc;
}

.field__error {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
}

/* —— Hints —— */
.hint {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
  font-weight: 500;
}

.hint--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.hint--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.hint--warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* —— Code preview —— */
.code-preview {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.code-preview__label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 10px;
}

.code-preview__pre {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.55;
  overflow: auto;
  max-height: 300px;
  border: 1px solid #1e293b;
}

/* —— Review —— */
.review-dl {
  margin: 0;
}

.review-dl__row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.review-dl__row:last-child {
  border-bottom: none;
}

.review-dl__row dt {
  margin: 0;
  font-weight: 700;
  color: #64748b;
}

.review-dl__row dd {
  margin: 0;
  color: #0f172a;
  font-weight: 500;
}

.review-dl__multiline {
  white-space: pre-wrap;
  word-break: break-word;
}

/* —— Live summary (sticky) —— */
.summary-card,
.live-summary {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 28px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.live-summary__head {
  padding: 20px 22px 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
}

.live-summary__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 4px;
}

.live-summary__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.live-summary__step {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
}

.live-summary__name {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.45;
}

.live-summary__dl {
  margin: 0;
  padding: 4px 20px 18px;
}

.live-summary__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 6px 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.live-summary__row:last-child {
  border-bottom: none;
}

.live-summary__row dt {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  line-height: 1.35;
}

.live-summary__row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
  text-align: right;
  line-height: 1.4;
}

/* —— Actions —— */
.wizard-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border: none;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 6px 16px rgba(37, 99, 235, 0.35);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.button-primary:hover {
  filter: brightness(1.05);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.1),
    0 8px 22px rgba(37, 99, 235, 0.4);
}

.button-primary:active {
  transform: translateY(1px);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.button-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

@media (max-width: 1080px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .page-aside {
    position: relative;
    top: auto;
    order: -1;
  }

  .sidebar {
    width: 100%;
    position: static;
    height: auto;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }

  .sidebar__nav {
    flex: none;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .sidebar__group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar__group + .sidebar__group {
    padding-top: 0;
    border-top: none;
  }

  .sidebar__section {
    display: none;
  }

  .sidebar__footer {
    display: none;
  }

  .shell {
    flex-direction: column;
  }

  .page-header,
  .page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .flash {
    margin-left: 24px;
    margin-right: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .wizard-step__label {
    max-width: 100%;
  }

  .review-dl__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* —— Originación (tablero y expediente) —— */
.page-header__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
}

.orig-back {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.orig-back:hover {
  text-decoration: underline;
}

.orig-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
}

.orig-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.orig-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.12);
}

.orig-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.orig-card__text {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  flex: 1;
}

.orig-card__cta {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
}

.orig-section {
  margin-bottom: 24px;
}

.orig-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.orig-form__actions {
  padding-top: 4px;
}

.orig-table-wrap {
  overflow-x: auto;
}

.orig-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.orig-table th,
.orig-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.orig-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
}

.orig-table--dense td {
  font-size: 13px;
}

.orig-code {
  font-size: 12px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.orig-link {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
}

.orig-empty {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.orig-muted {
  color: #64748b;
  font-size: 13px;
}

.orig-pre {
  margin: 0;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.orig-detail-actions {
  margin-top: 12px;
}

/* —— Login + barra de sesión —— */
.auth-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 20px;
  background: #0b1220;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 13px;
}

.auth-strip__email {
  color: #94a3b8;
  font-weight: 500;
}

.auth-strip__form {
  margin: 0;
}

.auth-strip__btn {
  margin: 0;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.auth-strip__btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(96, 165, 250, 0.5);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(160deg, #0b1220 0%, #1e293b 42%, #334155 100%);
}

.auth-panel {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.auth-panel__brand {
  text-align: center;
}

.auth-panel__logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.auth-panel__tagline {
  margin: 8px 0 0;
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

.auth-card {
  background: rgba(248, 250, 252, 0.98);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.auth-card__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.auth-card__lead {
  margin: 0 0 20px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.auth-flash {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.auth-flash--info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.auth-flash--error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.auth-field__input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
}

.auth-field__input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-submit {
  margin-top: 4px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.auth-submit:hover {
  filter: brightness(1.05);
}

/* ═══════════════════════════════════════════════════════════════
   COBRANZA — Collections Dashboard
   ═══════════════════════════════════════════════════════════════ */

/* KPI Cards */
.cob-kpi {
  padding: 16px 18px;
  cursor: default;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cob-kpi--clickable {
  cursor: pointer;
}
.cob-kpi--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}
.cob-kpi__value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.cob-kpi__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.cob-kpi__sublabel {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

/* KPI color variants */
.cob-kpi--red    .cob-kpi__value { color: #dc2626; }
.cob-kpi--orange .cob-kpi__value { color: #ea580c; }
.cob-kpi--yellow .cob-kpi__value { color: #d97706; }
.cob-kpi--blue   .cob-kpi__value { color: #2563eb; }
.cob-kpi--dark   .cob-kpi__value { color: #1e293b; }

/* Bucket badges */
.cob-bucket {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.cob-bucket--yellow { background: #fef9c3; color: #713f12; }
.cob-bucket--orange { background: #fed7aa; color: #9a3412; }
.cob-bucket--red    { background: #fee2e2; color: #991b1b; }
.cob-bucket--dark   { background: #1e293b; color: #f1f5f9; }
.cob-bucket--default { background: #f1f5f9; color: #475569; }

/* Status badges */
.cob-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.cob-status--active         { background: #dbeafe; color: #1d4ed8; }
.cob-status--promise        { background: #dcfce7; color: #166534; }
.cob-status--broken_promise { background: #fee2e2; color: #991b1b; }
.cob-status--paid           { background: #d1fae5; color: #065f46; }
.cob-status--charged_off    { background: #f1f5f9; color: #475569; }
.cob-status--skip           { background: #f8fafc; color: #94a3b8; }
.cob-status--sent           { background: #dbeafe; color: #1d4ed8; }
.cob-status--delivered      { background: #dcfce7; color: #166534; }
.cob-status--responded      { background: #d1fae5; color: #065f46; }
.cob-status--failed         { background: #fee2e2; color: #991b1b; }
.cob-status--pending        { background: #fef9c3; color: #713f12; }

/* Channel badges */
.cob-channel {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.cob-channel--sms       { background: #e0f2fe; color: #0369a1; }
.cob-channel--whatsapp  { background: #dcfce7; color: #166534; }
.cob-channel--call      { background: #ede9fe; color: #5b21b6; }
.cob-channel--email     { background: #fef3c7; color: #92400e; }

/* Overdue date highlight */
.cob-overdue {
  color: #dc2626 !important;
  font-weight: 700;
}
