html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background: #f4f6f9;
    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 */
.container {
    max-width: 1150px;
}

/* TITULOS */
h1, h2, h3 {
    font-weight: 700;
    color: #1f2937;
}

/* CARDS */
.card,
.form-section {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    margin-bottom: 24px;
}

/* INPUTS */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 .20rem rgba(13,110,253,.15);
    }

label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

/* BOTONES */
.btn {
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
}

.btn-primary {
    background: #0d6efd;
    border: none;
}

    .btn-primary:hover {
        background: #0b5ed7;
    }

.btn-secondary {
    background: #6b7280;
    border: none;
}

.btn-danger {
    background: #dc3545;
    border: none;
}

/* TABLAS */
table {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
}

    table thead th {
        background: #0d6efd !important;
        color: white !important;
        padding: 14px !important;
    }

    table tbody td {
        padding: 12px !important;
        vertical-align: middle;
    }

/* TITULO */
.page-title {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* NOTA */
.nota-box {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(13,110,253,.25);
}

    .nota-box h3 {
        color: white;
    }

    .nota-box input {
        font-size: 22px;
        font-weight: bold;
        text-align: center;
    }

/* 🔥 RESPONSIVE */

/* Tablets */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .card {
        padding: 18px;
    }
}

/* Celulares */
@media (max-width: 576px) {

    html {
        font-size: 13px;
    }

    .navbar {
        padding: 10px 12px;
    }

    .navbar-brand {
        font-size: 16px;
    }

    .nav-link {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .card,
    .form-section {
        padding: 16px;
        border-radius: 12px;
    }

    h1, h2 {
        font-size: 22px;
        text-align: center;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    table {
        font-size: 13px;
    }

        table thead {
            display: none;
        }

        table tbody td {
            display: block;
            width: 100%;
            padding: 8px !important;
        }

        table tbody tr {
            margin-bottom: 10px;
            display: block;
            border-bottom: 1px solid #ddd;
        }

    .nota-box {
        padding: 15px;
        text-align: center;
    }

        .nota-box input {
            font-size: 18px;



        }


}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background: #f4f6f9;
    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 */
.container {
    max-width: 1150px;
}

/* TITULOS */
h1, h2, h3 {
    font-weight: 700;
    color: #1f2937;
}

/* CARDS */
.card,
.form-section {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    margin-bottom: 24px;
}

/* INPUTS */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 .20rem rgba(13,110,253,.15);
    }

label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

/* BOTONES */
.btn {
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
}

.btn-primary {
    background: #0d6efd;
    border: none;
}

    .btn-primary:hover {
        background: #0b5ed7;
    }

.btn-secondary {
    background: #6b7280;
    border: none;
}

.btn-danger {
    background: #dc3545;
    border: none;
}

/* TABLAS */
table {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
}

    table thead th {
        background: #0d6efd !important;
        color: white !important;
        padding: 14px !important;
    }

    table tbody td {
        padding: 12px !important;
        vertical-align: middle;
    }

/* TITULO */
.page-title {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* NOTA */
.nota-box {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(13,110,253,.25);
}

    .nota-box h3 {
        color: white;
    }

    .nota-box input {
        font-size: 22px;
        font-weight: bold;
        text-align: center;
    }

/* 🔥 RESPONSIVE */

/* Tablets */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .card {
        padding: 18px;
    }
}

/* Celulares */
@media (max-width: 576px) {

    html {
        font-size: 13px;
    }

    .navbar {
        padding: 10px 12px;
    }

    .navbar-brand {
        font-size: 16px;
    }

    .nav-link {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .card,
    .form-section {
        padding: 16px;
        border-radius: 12px;
    }

    h1, h2 {
        font-size: 22px;
        text-align: center;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    table {
        font-size: 13px;
    }

        table thead {
            display: none;
        }

        table tbody td {
            display: block;
            width: 100%;
            padding: 8px !important;
        }

        table tbody tr {
            margin-bottom: 10px;
            display: block;
            border-bottom: 1px solid #ddd;
        }

    .nota-box {
        padding: 15px;
        text-align: center;
    }

        .nota-box input {
            font-size: 18px;
        }

    /* ===== CREAR REVISIÓN PDX ===== */

    body {
        background: #f4f6f9 !important;
    }

    .revision-page {
        max-width: 1150px;
        margin: 40px auto;
        padding: 30px;
        background: #ffffff;
        border-radius: 22px;
        box-shadow: 0 15px 40px rgba(0,0,0,.12);
    }

    .revision-title {
        text-align: center;
        margin-bottom: 30px;
        color: #1f2d4d;
    }

    .revision-page .row {
        margin-bottom: 20px;
    }

    .revision-page table {
        width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;
    }

        .revision-page table thead th {
            background: #0d6efd !important;
            color: white !important;
            text-align: center;
        }

        .revision-page table tbody td {
            background: #fff;
        }

    .revision-page .btn {
        margin: 5px 5px 15px 0;
    }

    .revision-page .nota-box {
        margin-top: 25px;
    }

    .revision-actions {
        margin-top: 20px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    /* Evita que el navbar se meta dentro del formulario */
    .navbar {
        position: relative !important;
        z-index: 10;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .revision-page {
            margin: 15px;
            padding: 20px;
        }

        .revision-actions {
            flex-direction: column;
        }

            .revision-actions .btn {
                width: 100%;
            }

        .revision-page table {
            display: block;
            overflow-x: auto;
            white-space: nowrap;
        }

            .revision-page table thead {
                display: table-header-group;
            }

            .revision-page table tbody tr {
                display: table-row;
            }

            .revision-page table tbody td {
                display: table-cell;
            }
    }
}
/* ===== CREAR REVISIÓN PDX - APP STYLE ===== */

body {
    background: #f4f6f9 !important;
}

.revision-page {
    max-width: 1150px;
    margin: 35px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .15);
}

.revision-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: #1f2d4d;
    margin-bottom: 30px;
}

.form-section {
    background: #ffffff;
    border: none;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.section-title {
    font-weight: 800;
    color: #1f2d4d;
    margin-bottom: 18px;
}

.revision-page label {
    font-weight: 700;
    color: #374151;
    margin-bottom: 7px;
}

.revision-page .form-control,
.revision-page .form-select {
    min-height: 46px;
    border-radius: 13px;
    border: 1px solid #d6e4ff;
    background: #f8fbff;
}

    .revision-page .form-control:focus,
    .revision-page .form-select:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 .20rem rgba(13,110,253,.18);
    }

.revision-page table {
    margin-bottom: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
}

    .revision-page table thead th {
        background: #0d6efd !important;
        color: white !important;
        text-align: center;
        vertical-align: middle;
        padding: 14px !important;
    }

    .revision-page table tbody td {
        vertical-align: middle;
        background: #ffffff;
    }

.revision-page .btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 18px;
}

.revision-page .btn-secondary {
    background: #6b7280;
    border: none;
}

    .revision-page .btn-secondary:hover {
        background: #4b5563;
    }

.revision-page .btn-danger {
    background: #dc3545;
    border: none;
}

.nota-box {
    background: linear-gradient(135deg, #0d6efd, #084fc7);
    color: white;
    border-radius: 18px;
    padding: 25px;
    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: 24px;
        font-weight: 800;
        text-align: center;
        background: white !important;
    }

.revision-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

    .revision-actions .btn {
        min-width: 190px;
    }

#mensaje .btn {
    margin-top: 8px;
}

.select2-container--default .select2-selection--single {
    height: 46px !important;
    border-radius: 13px !important;
    border: 1px solid #d6e4ff !important;
    background: #f8fbff !important;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 46px !important;
        padding-left: 12px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 46px !important;
    }

/* Responsive */
@media (max-width: 768px) {
    .revision-page {
        margin: 15px;
        padding: 18px;
        border-radius: 18px;
    }

    .revision-title {
        font-size: 24px;
    }

    .form-section {
        padding: 18px;
        border-radius: 16px;
    }

    .revision-actions {
        flex-direction: column;
    }

        .revision-actions .btn {
            width: 100%;
        }

    .revision-page table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

        .revision-page table thead {
            display: table-header-group !important;
        }

        .revision-page table tbody tr {
            display: table-row !important;
        }

        .revision-page table tbody td {
            display: table-cell !important;
        }
}