/* ==========================================================
   estilos_rh.css  -  Reclutamiento de Empleados
   Consolida todos los <style> de la vista. No cambia ids ni clases.
   ========================================================== */

/* ---------- Variables ---------- */
:root {
    --rh-navy: #1e3a5f;
    --rh-navy-2: #1f4e79;
    --rh-blue: #2563eb;
    --rh-blue-soft: #eff6ff;
    --rh-text: #334155;
    --rh-muted: #64748b;
    --rh-border: #d9e0ea;
    --rh-bg-input: #f8fafc;
    --rh-line: #eef2f7;
    --rh-shadow: 0 2px 14px rgba(15, 23, 42, .08);
    --rh-radius: 12px;
    --rh-radius-sm: 8px;
}

/* ==========================================================
   BASE
   ========================================================== */
.datepicker > div { display: inherit; }

.row { border-bottom-style: solid; }
.vista-cot .row { border-bottom: none !important; }

.vista-cot {
    width: 100%;
    padding: 0 15px 20px;
    color: var(--rh-text);
}
.vista-cot > .row { position: relative; z-index: 5; }

td { font-size: 11px; }

.isDisabled { cursor: not-allowed; opacity: .5; }

a[aria-disabled="true"] {
    color: currentColor;
    display: inline-block;
    pointer-events: none;
    text-decoration: none;
}

/* ==========================================================
   TITULO (breadcrumb)
   ========================================================== */
.vista-cot .breadcrumb {
    background: #fff;
    border-radius: var(--rh-radius);
    border: 1px solid var(--rh-line);
    border-left: 4px solid var(--rh-blue);
    box-shadow: var(--rh-shadow);
    padding: 10px 15px;
    margin: 10px 0 12px;
    font-weight: 600;
    color: var(--rh-text);
    min-height: 44px;
    line-height: 24px;
}
.vista-cot .breadcrumb .fa-folder-open-o { color: var(--rh-blue) !important; margin: 0 8px 0 0 !important; }
.vista-cot .breadcrumb .fa-outdent { color: var(--rh-muted) !important; margin: 0 0 0 10px !important; }
.vista-cot .breadcrumb a { color: #dc2626; font-weight: 700; text-decoration: none; }
.vista-cot .breadcrumb a:hover { text-decoration: underline; }

/* ==========================================================
   TARJETA DE FILTROS
   ========================================================== */
.vista-cot .filtros-empleados {
    background: #fff;
    border: 1px solid var(--rh-line);
    border-radius: var(--rh-radius);
    box-shadow: var(--rh-shadow);
    padding: 14px 15px 2px;
    margin: 0 0 12px !important;
}
.vista-cot .filtros-empleados .form-group { margin-bottom: 10px; }

/* ==========================================================
   ETIQUETAS
   ========================================================== */
.vista-cot label {
    font-size: 11px;
    font-weight: 700;
    color: var(--rh-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 4px;
}
.vista-cot label .fa { color: #3b82f6; margin-right: 4px; }

/* ==========================================================
   INPUTS / COMBOS
   ========================================================== */
.vista-cot .form-group { margin-bottom: 12px; }

.vista-cot .form-control {
    height: 38px;
    font-size: 13px;
    color: var(--rh-text) !important;
    background-color: var(--rh-bg-input);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius-sm);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.vista-cot .form-control:hover { border-color: #93c5fd; }
.vista-cot .form-control:focus {
    background-color: #fff;
    border-color: var(--rh-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
    outline: 0;
}
.vista-cot .form-control::placeholder { color: #94a3b8; }
.vista-cot .form-control[disabled],
.vista-cot .form-control[readonly] { background-color: #eef2f7; cursor: not-allowed; }

.vista-cot select.form-control {
    cursor: pointer;
    padding-right: 34px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2364748b' stroke-width='2' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* ==========================================================
   BOTONES
   ========================================================== */
.vista-cot .btn {
    border: none;
    border-radius: var(--rh-radius-sm);
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.vista-cot .btn:hover,
.vista-cot .btn:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, .22);
    filter: brightness(1.07);
}
.vista-cot .btn:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(15, 23, 42, .2); }
.vista-cot .btn[disabled],
.vista-cot .btn.disabled { opacity: .55; transform: none; box-shadow: none; filter: none; }
.vista-cot .btn .fa { font-size: 14px !important; margin-right: 5px; color: #fff !important; }

.vista-cot .btn-primary { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.vista-cot .btn-success { background: linear-gradient(135deg, #10b981, #047857); }
.vista-cot .btn-warning { background: linear-gradient(135deg, #fbbf24, #d97706); }
.vista-cot .btn-danger  { background: linear-gradient(135deg, #f87171, #dc2626); }
.vista-cot .btn-info    { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.vista-cot .btn-default { background: linear-gradient(135deg, #64748b, #334155); }

/* ==========================================================
   FILA BOTONES + BUSCADOR
   ========================================================== */
.vista-cot .fila-acciones-tabla {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
}
.vista-cot .acciones-tabla {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}
.vista-cot .grupo-botones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.vista-cot .grupo-botones .btn { margin: 0 !important; }

.vista-cot .buscador-tabla {
    display: flex;
    align-items: center;
    height: 38px;
    margin-left: 15px;
    border-radius: var(--rh-radius-sm);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .1);
}
.vista-cot .buscador-label {
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rh-navy), var(--rh-navy-2));
    color: #fff;
    border-radius: var(--rh-radius-sm) 0 0 var(--rh-radius-sm);
}
.vista-cot .buscador-label .fa { margin: 0 !important; color: #fff !important; font-size: 14px; }

.vista-cot #buscarTablaCotizaciones {
    width: 240px;
    height: 38px;
    margin: 0 !important;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--rh-border);
    border-left: none;
    border-radius: 0 var(--rh-radius-sm) var(--rh-radius-sm) 0;
    box-shadow: none;
    font-size: 13px;
}
.vista-cot #buscarTablaCotizaciones:focus {
    border-color: var(--rh-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* ocultar completamente el buscador nativo de bootstrap-table */
.fixed-table-toolbar .search,
.fixed-table-toolbar .pull-left.search,
.fixed-table-toolbar .search input,
.fixed-table-toolbar .form-control.search {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.fixed-table-toolbar { min-height: 0 !important; padding: 0 !important; }
.fixed-table-toolbar::after { display: table; clear: both; content: ""; }

/* ==========================================================
   TARJETA DE TABLA
   ========================================================== */
.vista-cot .contenedor-tabla-empleados {
    width: 100%;
    background: #fff;
    border: 1px solid var(--rh-line);
    border-radius: var(--rh-radius);
    box-shadow: var(--rh-shadow);
    overflow: hidden;
}
.vista-cot .bootstrap-table { margin: 0; }
.vista-cot .bootstrap-table .fixed-table-container {
    border: none !important;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}
.vista-cot .bootstrap-table .fixed-table-body { overflow-x: auto; }

/* ==========================================================
   ENCABEZADO TABLA
   ========================================================== */
#tablaCotizaciones { margin-bottom: 0; }

#tablaCotizaciones thead th,
#tablaCotizaciones thead th .th-inner {
    background: linear-gradient(135deg, var(--rh-navy), var(--rh-navy-2));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    border: none !important;
    vertical-align: middle;
}
#tablaCotizaciones thead th { padding: 0; }
#tablaCotizaciones thead th .th-inner { padding: 9px 18px 9px 6px !important; }
#tablaCotizaciones thead th .fa { margin-right: 5px; opacity: .9; }

/* ==========================================================
   CUERPO TABLA (compacto)
   ========================================================== */
#tablaCotizaciones tbody td {
    font-size: 11px;
    line-height: 1.3;
    color: var(--rh-text);
    padding: 5px 6px !important;
    vertical-align: middle !important;
    border-top: 1px solid var(--rh-line) !important;
}
#tablaCotizaciones tbody tr { transition: background .15s ease; }
#tablaCotizaciones tbody tr:nth-child(even) { background: #fafbfd; }
#tablaCotizaciones tbody tr:hover { background: var(--rh-blue-soft) !important; }
#tablaCotizaciones tbody tr.selected td { background: #dbeafe !important; }

.table-striped > tbody > tr:nth-of-type(odd) {
    box-shadow: none;
    border-bottom: 0 solid #fff;
}

/* Nombre (col 5, porque ahora existe la columna folio) */
#tablaCotizaciones tbody td:nth-child(5) {
    max-width: 180px;
    white-space: normal;
    word-break: break-word;
    font-weight: 600;
}
/* CURP (col 7) */
#tablaCotizaciones tbody td:nth-child(7) {
    font-size: 10px;
    letter-spacing: .2px;
}

/* ==========================================================
   ACCIONES
   ========================================================== */
#tablaCotizaciones tbody td:last-child a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0 1px !important;
    border-radius: var(--rh-radius-sm);
    color: #475569;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
#tablaCotizaciones tbody td:last-child a:hover {
    background: #e0e7ff;
    color: #1d4ed8;
    transform: scale(1.12);
    text-decoration: none;
}

/* ==========================================================
   PAGINACION
   ========================================================== */
.fixed-table-pagination {
    padding: 4px 12px;
    font-size: 12px;
    background: #fff;
    border-top: 1px solid var(--rh-line);
}
.pagination > li > a {
    border: none;
    border-radius: var(--rh-radius-sm) !important;
    margin: 0 2px;
    padding: 5px 11px;
    font-size: 12px;
    color: #475569;
}
.pagination > li > a:hover { background: #e0e7ff; color: #1d4ed8; }
.pagination > .active > a,
.pagination > .active > a:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #fff !important;
}

/* ==========================================================
   MODALES (dialogoCotizacion, dialogoCotizacionEntrega, dialogoDocumentos)
   ========================================================== */
.vista-cot .modal-header,
.modal.vista-cot .modal-header {
    border-radius: var(--rh-radius) var(--rh-radius) 0 0;
    padding: 12px 18px;
}
.vista-cot .modal-title { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.vista-cot .modal-body { background: #fff; }
.vista-cot .modal-footer {
    background: var(--rh-bg-input);
    border-top: 1px solid var(--rh-line);
    border-radius: 0 0 var(--rh-radius) var(--rh-radius);
}

/* títulos de sección dentro del modal (Direccion, Documentos Entregados) */
.vista-cot .modal-body h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--rh-navy-2);
    padding-bottom: 6px;
    border-bottom: 2px solid #dbeafe;
}
.vista-cot .modal-body hr { border-top: 1px solid var(--rh-line); margin: 14px 0; }

/* ==========================================================
   CHECKBOX DOCUMENTOS
   ========================================================== */
.vista-cot .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    margin-bottom: 4px;
    border-radius: var(--rh-radius-sm);
    transition: background .15s ease;
}
.vista-cot .form-check:hover { background: var(--rh-blue-soft); }
.vista-cot .form-check .form-check-input {
    margin: 0;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    cursor: pointer;
    accent-color: var(--rh-blue);
}
.vista-cot .form-check-label {
    margin: 0;
    cursor: pointer;
    text-transform: none;
    font-size: 12px;
    letter-spacing: 0;
    color: var(--rh-text);
    font-weight: 600;
}
.vista-cot .form-check-label .fa-asterisk { font-size: 8px; vertical-align: super; margin-right: 3px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
    .vista-cot { padding-left: 8px; padding-right: 8px; }
    .vista-cot .acciones-tabla { flex-direction: column; align-items: stretch; }
    .vista-cot .grupo-botones { width: 100%; margin-bottom: 8px; }
    .vista-cot .buscador-tabla { width: 100%; margin-left: 0; }
    .vista-cot #buscarTablaCotizaciones { width: 100%; }
    .vista-cot .buscador-label { flex: 0 0 40px; }
    .vista-cot .breadcrumb { font-size: 12px; }
    .vista-cot .grupo-botones .btn { margin-bottom: 5px !important; }
}

/* ==========================================================
   MODAL REGISTRO DE EMPLEADO (#dialogoDocumentos) - SECCIONES
   ========================================================== */
#dialogoDocumentos.vista-cot {
    padding: 0;
    background: #fff;
    border-radius: var(--rh-radius);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .35);
}

/* encabezado */
#dialogoDocumentos .modal-header {
    background: linear-gradient(135deg, var(--rh-navy), var(--rh-navy-2));
    color: #fff;
    border-bottom: none;
    padding: 14px 20px;
}
#dialogoDocumentos .modal-header .close {
    color: #fff;
    opacity: .85;
    text-shadow: none;
    margin-top: 2px;
}
#dialogoDocumentos .modal-header .close:hover { opacity: 1; }
#dialogoDocumentos .modal-title { color: #fff; font-size: 17px; }
#dialogoDocumentos .modal-title .fa { margin-right: 8px; }
#dialogoDocumentos .rh-subtitulo {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, .75);
    font-size: 11px;
    letter-spacing: .3px;
}

/* cuerpo con fondo gris para que resalten las tarjetas */
#dialogoDocumentos .modal-body {
    background: #f1f5f9;
    padding: 16px 18px 6px;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    overflow-x: hidden;
    border-bottom: none;
}

/* tarjeta de sección */
.rh-seccion {
    background: #fff;
    border: 1px solid var(--rh-line);
    border-radius: var(--rh-radius);
    box-shadow: 0 1px 6px rgba(15, 23, 42, .06);
    margin-bottom: 14px;
    overflow: hidden;
}
.rh-seccion-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--rh-navy);
    background: #f8fafc;
    border-bottom: 1px solid var(--rh-line);
}
.rh-seccion-body { padding: 14px 16px 4px; }

/* icono de la sección */
.rh-chip {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    background: #3b82f6;
}
.rh-azul    .rh-chip { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.rh-verde   .rh-chip { background: linear-gradient(135deg, #10b981, #047857); }
.rh-morado  .rh-chip { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.rh-naranja .rh-chip { background: linear-gradient(135deg, #fbbf24, #d97706); }
.rh-cyan    .rh-chip { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.rh-rojo    .rh-chip { background: linear-gradient(135deg, #f87171, #dc2626); }
.rh-gris    .rh-chip { background: linear-gradient(135deg, #64748b, #334155); }

/* ayuda CURP junto a la etiqueta */
.rh-ayuda { color: #e33338; font-size: 15px; margin-left: 4px; cursor: pointer; vertical-align: middle; }
.rh-ayuda:hover { color: #b91c1c; }

/* documentos entregados */
.rh-leyenda {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: none;
    color: var(--rh-muted);
}
.rh-leyenda .fa { color: #e33338; font-size: 8px; margin-right: 3px; vertical-align: super; }

.rh-todos { margin: 0 !important; padding: 3px 10px !important; background: #dbeafe; }
.rh-todos .form-check-label { color: var(--rh-navy-2); font-weight: 700; }

.rh-grupo-docs {
    border-right: 1px dashed var(--rh-border);
    margin-bottom: 8px;
}
.rh-grupo-docs:last-child { border-right: none; }
.rh-grupo-titulo {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--rh-muted);
    margin-bottom: 6px;
}
.rh-grupo-titulo .fa { color: #3b82f6; margin-right: 4px; }

@media (max-width: 767px) {
    .rh-grupo-docs { border-right: none; border-bottom: 1px dashed var(--rh-border); }
    .rh-grupo-docs:last-child { border-bottom: none; }
}

/* pie */
#dialogoDocumentos .rh-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 12px 18px;
    background: #fff;
    border-top: 1px solid var(--rh-line);
}
#dialogoDocumentos .rh-footer-izq,
#dialogoDocumentos .rh-footer-der { display: flex; flex-wrap: wrap; gap: 6px; }
