/* === CONTENEDOR PRINCIPAL === */
.container-excel {
    padding: 25px;
    width: 95%;
    margin: 20px auto 40px auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* === TÍTULO === */
.container-excel h1 {
    font-size: 1.6rem;
    color: #00a2e8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}



/* === TÍTULO === */
.container-excel-trans h1 {
    font-size: 1.6rem;
    color: #00a2e8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* === BARRA DE BÚSQUEDA === */
.search-bar {
    margin-top: 12px;
}

.search-bar input {
    width: 100%;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
}

/* === TABLA === */
.table-excel {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    font-size: 14px;
}

.table-excel th {
    background: #00a2e8;
    color: #fff;
    padding: 10px;
    border: 1px solid #c0c0c0;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-excel td {
    padding: 8px;
    border: 1px solid #d0d0d0;
}

/* === TABLA TRANSPARENTE === */
.table-excel-tp {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    font-size: 14px;
}

.table-excel-tp th {
    background: #ffffff;
    color: #000000;
    padding: 10px;
    border: 1px solid #c0c0c0;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-excel-tp td {
    padding: 8px;
    border: 1px solid #d0d0d0;
}


/* === BOTONES === */
.btn-vb {
    display: inline-block;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.btn-vb:hover {
    transform: scale(1.05);
}

.btn-ingresar {
    background: #00a2e8;
}

.btn-editar {
    background: #fbbc04;
}

.btn-borrar {
    background: #d83b01;
}

/* === FORMULARIOS === */
.form-control, .form-select, textarea {
    border: 1px solid #c0c0c0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus, textarea:focus {
    border-color: #00a2e8;
    box-shadow: 0 0 6px rgba(0,162,232,0.3);
    outline: none;
}

/* === BOTÓN DE ENVÍO === */
.btn-submit {
    display: inline-block;
    background-color: #00a2e8;
    color: #fff;
    padding: 8px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* === LABELS === */
.form-label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

/* === GRID DE PERMISOS === */
.permisos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    padding: 10px 0;
}

.permisos-grid label {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: background 0.2s;
}

.permisos-grid label:hover {
    background: #e0e0e0;
}

.permisos-grid input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
}
/* Modal compacto */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
}

.modal-content h3 {
    margin-top: 0;
    color: #00a2e8;
}

.modal-content p {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #333;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover {
    color: black;
}

/* Botón Ver PDF */
.btn-ver {
    background: #27AE60; /* verde */
    color: #fff;
}

.btn-ver:hover {
    background: #1E8449; /* verde más oscuro al pasar el mouse */
}

.chip {
    display: inline-flex;
    align-items: center;
    background: #dce9ff;
    border: 1px solid #5b8bff;
    color: #1b3d8a;
    border-radius: 15px;
    padding: 4px 10px;
    margin: 3px;
    font-size: 14px;
}
.chip .close {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}
#resultadosBusqueda li {
    cursor: pointer;
}
#resultadosBusqueda li:hover {
    background-color: #e7f0ff;
}

/* BOTÓN MINI OT */
.btn-mini-ot {
    background: #0d6efd;
    color: white !important;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
    font-weight: 600;
}

.btn-mini-ot:hover {
    background: #0a58ca;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

/* Texto apagado cuando no hay OT */
.ot-none {
    opacity: 0.6;
    font-style: italic;
}

/* Tooltip personalizado */
.btn-mini-ot[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 4px;
    top: -5px;
    left: 105%;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}
