html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background: #eef3fb !important;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* NAVBAR */
.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    padding: 12px 24px;
}

.navbar-brand {
    font-weight: 700;
    color: #0d6efd !important;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
}

    .nav-link:hover {
        color: #0d6efd !important;
    }

/* CONTENEDOR GENERAL */
.container {
    max-width: 1150px;
}

/* TITULOS */
h1, h2, h3 {
    font-weight: 700;
    color: #1f2937;
}

/* ===== CREAR REVISIÓN PDX ===== */

.revision-page {
    width: min(1180px, 96%);
    margin: 30px auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.revision-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: #102a43;
    margin-bottom: 28px;
}

.card,
.form-section {
    background: #fff;
    border: 1px solid #e6eef8;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.section-title {
    font-weight: 800;
    color: #102a43;
    margin-bottom: 18px;
}

label,
.revision-page label {
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
}

/* INPUTS */
.form-control,
.form-select,
.revision-page .form-control,
.revision-page .form-select {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid #cfe0f5;
    background: #f8fbff;
    padding: 10px 12px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 .20rem rgba(13,110,253,.15);
    }

/* BOTONES */
.btn {
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
}

.btn-primary {
    background: #0d6efd;
    border: none;
}

    .btn-primary:hover {
        background: #0b5ed7;
    }

.btn-secondary {
    background: #6b7280;
    border: none;
}

.btn-danger {
    background: #dc3545;
    border: none;
}

.btnEliminar {
    width: 100% !important;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}



    .btnEliminar span {
        display: none;
    }

@media (max-width: 768px) {
    .btnEliminar span {
        display: inline;
        margin-left: 5px;
    }
}



/* TABLAS */
.table-responsive {
    border-radius: 18px;
    overflow-x: auto;
}

table {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
}

.revision-page table {
    min-width: 780px;
    margin-bottom: 0;
    box-shadow: none;
}

    table thead th,
    .revision-page table thead th {
        background: #0d6efd !important;
        color: white !important;
        padding: 14px !important;
        text-align: center;
        vertical-align: middle;
    }

    table tbody td,
    .revision-page table tbody td {
        padding: 12px !important;
        vertical-align: middle;
    }

/* NOTA */
.nota-box {
    background: linear-gradient(135deg, #0d6efd, #084fc7);
    color: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(13,110,253,.28);
}

    .nota-box h3 {
        color: white;
        font-weight: 800;
        margin-bottom: 15px;
    }

    .nota-box input {
        font-size: 28px;
        font-weight: 900;
        text-align: center;
        background: white !important;
    }

/* ACCIONES */
.revision-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

    .revision-actions .btn {
        min-width: 210px;
    }

#mensaje .btn {
    margin-top: 8px;
}

/* SELECT2 */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 44px !important;
    border-radius: 14px !important;
    border: 1px solid #cfe0f5 !important;
    background: #f8fbff !important;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 44px !important;
        padding-left: 12px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 44px !important;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    html {
        font-size: 13px;
    }

    .navbar {
        padding: 10px 12px;
    }

    .container {
        padding: 0 10px;
    }

    .revision-page {
        width: 94%;
        margin: 12px auto;
        padding: 16px;
        border-radius: 20px;
    }

    .revision-title {
        font-size: 22px;
    }

    .card,
    .form-section {
        padding: 16px;
        border-radius: 16px;
    }

    .revision-actions {
        flex-direction: column;
    }

        .revision-actions .btn {
            width: 100%;
            min-width: unset;
        }

    .revision-page table {
        min-width: 850px;
        font-size: 13px;
    }

    .nota-box {
        padding: 16px;
        text-align: center;
    }

        .nota-box input {
            font-size: 22px;
        }

    .responsable-card {
        background: #f8fbff;
        border: 1px solid #dbeafe;
        border-radius: 16px;
        padding: 14px;
        margin-bottom: 14px;
    }

        .responsable-card .btnEliminar {
            width: 100% !important;
            height: 38px !important;
        }



    .detalle-card {
        background: #f8fbff;
        border: 1px solid #dbeafe;
        border-radius: 16px;
        padding: 14px;
        margin-bottom: 14px;
    }

        .detalle-card .btnEliminar {
            width: 100% !important;
            margin-top: 10px;
        }




}

.filter-header {
    position: relative;
}

.filter-icon {
    cursor: pointer;
    margin-left: 5px;
    font-size: 12px;
}

.filter-menu {
    position: absolute;
    top: 40px;
    left: 0;
    width: 220px;
    background: white;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    z-index: 999;
}

    .filter-menu button {
        width: 100%;
        border: none;
        background: transparent;
        text-align: left;
        padding: 6px;
    }

        .filter-menu button:hover {
            background: #eef2ff;
        }