﻿:root {
    --primary: #4f46e5;
    --primary-light: #eef2ff;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --border-color: #e0e0e0;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --accent-charcoal: #34495e;
}

.container-detail-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 500px;
    box-sizing: border-box;
}

.detail-column {
    white-space: pre-wrap;
    box-sizing: border-box;
    text-align: justify;
    font-size: .8rem;
}

.alert {
    background-color: #F8D7DA;
    padding: 5px 10px;
    border-radius: 5px;
    color: #721C24;
    border: 1px solid #F5C6CB;
    box-sizing: border-box;
}

.danger {
    background-color: #FFF3CD;
    padding: 5px 10px;
    border-radius: 5px;
    color: #856404;
    border: 1px solid #FFEEBA;
    box-sizing: border-box;
}

.success {
    background-color: #D4EDDA;
    padding: 5px 10px;
    border-radius: 5px;
    color: #155724;
    border: 1px solid #C3E6CB;
    box-sizing: border-box;
}

.table-container {
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border: 1px solid var(--border);
}

.container-custom-table {
    width: 100%;
    overflow-x: auto;
}

/* Barra de herramientas superior */
.toolbar {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex: 1;
    box-sizing: border-box;
    max-width: 400px;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

    .search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-light);
    }

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Tabla */
table.custom-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
}

th {
    background: #f1f5f9;
    padding: 12px 19px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: left;
    font-weight: 600;
}

.custom-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dark);
    box-sizing: border-box;
}

.register-empty {
    width: 100%;
    text-align: center;
}

/* Botones de Acción */
.action-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-delete:hover {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger);
}
/* Badge */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.active {
    background: #dcfce7;
    color: #166534;
}

.inactive {
    background: #fee2e2;
    color: #991b1b;
}
/* Paginación */
.pagination {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

    .page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/*Botones*/
.btn-excel {
    padding: 10px;
    margin: 5px;
    background-color: #185C37;
    color: white;
    border: #038387;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-wrap: nowrap;
    height: 45px;
    max-width: 100%;
    gap: 10px;
}

.group-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/*Estilos tabla control*/
.container-revision {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    gap: 10px;
}

.list-responsable {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
}

    .list-responsable li {
        background-color: #C3E6CB;
        padding: 5px 10px;
        border-radius: 15px;
        display: flex;
        align-items: center;
        flex-direction: row;
        font-size: 13px;
        color: #434343;
    }

.container-option-revisor {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.client-chain {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1975C5;
    padding: 5px 15px;
    border-radius: 5px;
    color: white;
    display: inline-block;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 5;
}

.container-option-revisor:hover .client-chain {
    opacity: 1;
    transform: translateX(-50%, 0);
    visibility: visible;
}


.content-revisor {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.revisor-span {
    background-color: #FF6C37;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    padding: 2px;
    color: white;
    border: 1px solid white;
    text-align: center;
}

.btn-add-revisor {
    padding: 3px;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.678);
    border: none;
    border-radius: 5px;
}

    .btn-add-revisor:hover {
        background-color: rgba(255, 255, 255, 0.842);
    }

.btn-remove-revisor {
    background-color: transparent;
    width: 15px;
    height: 15px;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    border: none;
    color: transparent;
    cursor: pointer;
}

    .btn-remove-revisor:hover {
        background-color: rgba(255, 255, 255, 0.534);
        color: black;
    }

.status-test {
    padding: 5px 10px;
    white-space: nowrap;
    font-size: 0.75rem;
}

.text-alert {
    padding: 5px;
    border-radius: 5px;
}

.alert-magenta {
    background-color: #CFF4FC;
    border: solid 1px #9EEAF9;
    color: #3A5175;
}

.alert-yelow {
    background-color: #FFF3CD;
    border: solid 1px #FFE69C;
    color: #664D37;
}

.alert-red {
    background-color: #F8D7DA;
    border: solid 1px #F1AEB5;
    color: #58151C;
}




.container-table-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
    pad: 5px;
    width: 100%;
}

.table-grid {
    border-collapse: collapse;
    width: 100%;
}

    .table-grid td, th {
        border: solid 1px #F3F3F3;
    }

    .table-grid td {
        padding: 5px;
    }

.title-grid {
    font-size: 14px;
    padding: 5px;
    min-width: 300px;
}

.thead-grid th {
    position: sticky;
    top: 0;
    background-color: #F0F6FB;
    z-index: 10;
    border-bottom: 1px solid #C1C1C1;
}

.td-separator {
    width: 100%;
    background-color: #F0F6FB;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: start;
    padding: 5px;
    font-size: 14px;
}

.option-select-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 30px !important;
}

.header-text {
    font-weight: bold;
    font-size: 14px;
    color: #2A2716;
}

input[type="checkbox"] {
    transform: scale(1);
    cursor: pointer;
    accent-color: #1975C5;
}


/*Fin Estilos revisor*/


@media (max-width: 1620px) { /* tablet */
}

@media (max-width: 1024px) { /* tablet */

}

@media (max-width: 880px) { /* tablet */

}

@media (max-width: 490px) { /* phone */
    .search-wrapper {
        width: 100%;
    }

    .toolbar {
        flex-direction: column-reverse;
    }

    .pagination {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}
