/* Indirect Supply Business Meeting (MRO): el azul rey del evento sobre el tema
 * común, que de fábrica viene en el verde de CEE. Se carga al final. */
:root {
  --primary-bg-color: #1d3fd8;
  --primary-bg-hover: #152e9e;
  --acento-evento: #1d3fd8;        /* botones de los diálogos (dialogos.js) */
}

/* El botón de acción. Las etiquetas verdes («Pagado») se quedan verdes. */
.btn-success, .btn-success.disabled, .btn-success:disabled {
  background-color: #1d3fd8 !important;
  border-color: #1d3fd8 !important;
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
  background-color: #152e9e !important;
  border-color: #152e9e !important;
}
.btn-outline-success { color: #1d3fd8 !important; border-color: #1d3fd8 !important; }
.btn-outline-success:hover, .btn-outline-success:focus {
  color: #fff !important; background-color: #1d3fd8 !important;
}

select.form-select:hover, select.form-control:hover, .form-select:hover,
select.form-select:focus, select.form-control:focus, .form-select:focus,
.dataTables_length select:focus, .dataTables_wrapper select:focus {
  border-color: #1d3fd8 !important;
}
select.form-select:focus, select.form-control:focus, .form-select:focus,
.dataTables_length select:focus, .dataTables_wrapper select:focus {
  box-shadow: 0 0 0 3px rgba(29, 63, 216, .15) !important;
}

/* Pantallas de acceso */
.acceso-card { --acento: #1d3fd8; --acento-suave: rgba(29, 63, 216, .07); }
.acceso-card .form-control:focus { box-shadow: 0 0 0 .2rem rgba(29, 63, 216, .15); }
.acceso-card .btn-outline-secondary { border-color: rgba(29, 63, 216, .26); }
.acceso-split {
  --acento: #1d3fd8;
  --acento-hover: #152e9e;
  --acento-tenue: rgba(29, 63, 216, .12);
  --acento-borde: rgba(29, 63, 216, .3);
  --grad-a: #060d2e;
  --grad-b: #12277f;
  --grad-c: #1d3fd8;
  --halo-a: rgba(120, 150, 255, .28);
  --halo-b: rgba(29, 63, 216, .2);
}
/* «Continuar mi registro» se distingue del acceso al B2B: aquí, en negro. */
.acceso-split--continuar { --grad-b: #0b1440; --grad-c: #24346f; }

/* Fichas */
.ficha-cabeza { background: linear-gradient(135deg, #060d2e 0%, #12277f 55%, #1d3fd8 100%) !important; }
.ficha-seccion__titulo, .ficha-enlaces a { color: #152e9e !important; }
.ficha-seccion__cuenta { background: #eef2ff !important; color: #152e9e !important; }
.ficha-enlaces a { border-color: #b9c5f7 !important; }
.ficha-enlaces a:hover { background: #1d3fd8 !important; color: #fff !important; }

/* Botones del evento */
.btn-mro-primary,
.btn-mro-secondary,
.btn-mro-accent,
.btn-mro-neutral,
.btn-mro-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 10px;
  padding: 9px 18px;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-mro-primary:active,
.btn-mro-secondary:active,
.btn-mro-accent:active,
.btn-mro-neutral:active,
.btn-mro-back:active { transform: translateY(0) scale(.98); }

/* Primario — azul rey sólido, CTA principal */
.btn-mro-primary {
  background: linear-gradient(135deg, #1d3fd8 0%, #152e9e 100%);
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(29,63,216,.30);
}
.btn-mro-primary:hover, .btn-mro-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29,63,216,.40);
  color: #fff !important;
}

/* Secundario — outline azul rey */
.btn-mro-secondary {
  background: #fff;
  border: 1.5px solid #1d3fd8;
  color: #1d3fd8 !important;
  box-shadow: 0 1px 6px rgba(29,63,216,.10);
}
.btn-mro-secondary:hover, .btn-mro-secondary:focus {
  background: #1d3fd8;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(29,63,216,.28);
}

/* Acento — ámbar para control de accesos */
.btn-mro-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(245,158,11,.28);
}
.btn-mro-accent:hover, .btn-mro-accent:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245,158,11,.38);
  color: #fff !important;
}

/* Neutro — acciones sin color (imprimir, exportar…) */
.btn-mro-neutral {
  background: #fff;
  border: 1.5px solid #d1d5db;
  color: #374151 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.btn-mro-neutral:hover, .btn-mro-neutral:focus {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.10);
}

/* Volver — navegación de regreso */
.btn-mro-back {
  background: #f4f6f9;
  border: 1.5px solid #e2e6ea;
  color: #4a5568 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.btn-mro-back:hover, .btn-mro-back:focus {
  background: #e9ecef;
  border-color: #cbd0d6;
  color: #2d3748 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.10);
}

/* Iconos dentro de botones MRO */
.btn-mro-primary i,
.btn-mro-secondary i,
.btn-mro-accent i,
.btn-mro-neutral i,
.btn-mro-back i { font-size: 14px; flex-shrink: 0; }

/* Subir un documento */
.mro-drop-zone {
  position: relative;
  border: 2px dashed #c8cfe0;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: #f8f9fb;
  transition: border-color .2s ease, background .2s ease;
  overflow: hidden;
}
.mro-drop-zone:hover,
.mro-drop-zone.drag-over {
  border-color: #1d3fd8;
  background: #edf7f2;
}
.mro-drop-zone.has-file {
  border-color: #1d3fd8;
  background: #edf7f2;
}
/* El input real cubre toda la zona para abrir el picker al hacer clic */
.mro-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.mro-drop-zone__body { pointer-events: none; }
.mro-drop-zone__icon {
  font-size: 2.2rem;
  color: #6c757d;
  display: block;
  margin-bottom: .4rem;
}
.mro-drop-zone.drag-over .mro-drop-zone__icon,
.mro-drop-zone.has-file   .mro-drop-zone__icon { color: #1d3fd8; }
.mro-drop-zone__title {
  font-size: .95rem;
  font-weight: 600;
  color: #3d4451;
  margin: 0 0 .25rem;
}
.mro-drop-zone__sep {
  display: block;
  color: #9aa0b4;
  font-size: .82rem;
  margin: .25rem 0;
}
.mro-drop-zone__btn {
  display: inline-block;
  margin-top: .3rem;
  padding: .3rem 1.1rem;
  border-radius: 8px;
  border: 1px solid #1d3fd8;
  color: #1d3fd8;
  font-size: .82rem;
  font-weight: 600;
  background: #fff;
  transition: background .15s, color .15s;
}
.mro-drop-zone:hover .mro-drop-zone__btn {
  background: #1d3fd8;
  color: #fff;
}
.mro-drop-zone__btn--change {
  border-color: #6c757d;
  color: #6c757d;
}
.mro-drop-zone:hover .mro-drop-zone__btn--change {
  background: #6c757d;
  color: #fff;
}

/* La ficha lateral del tablero (`_ficha_estilos.html`) es común y nace verde. */
body .ficha-cabeza { background: linear-gradient(135deg, #05070f 0%, #14277d 55%, #1d3fd8 100%); }
body .ficha-seccion__titulo, body .ficha-enlaces a { color: #1d3fd8; }
body .ficha-seccion__cuenta { background: #e8edff; color: #1d3fd8; }
body .ficha-enlaces a { border-color: #b9c6ff; }
body .ficha-enlaces a:hover { background: #1d3fd8; color: #fff; border-color: #1d3fd8; }

/* El tema pinta de rojo el último botón de los formularios por pasos. */
.wizard > .actions > ul > li:last-child a { background-color: #1d3fd8; }
