@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Work+Sans:wght@100;200&display=swap');

/* Reset Styles */
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a,
button {
    cursor: revert;
}

ol,
ul,
menu {
    list-style: none;
}

img {
    max-inline-size: 100%;
    max-block-size: 100%;
}

table {
    border-collapse: collapse;
}

input,
textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    user-select: auto;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border: 1px solid #b0b8c1;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.08);
    transition: box-shadow 0.2s, border-color 0.2s;
}

textarea {
    white-space: revert;
}

meter {
    -webkit-appearance: revert;
    -moz-appearance: revert;
    appearance: revert;
}

:where(pre) {
    all: revert;
}

::-moz-placeholder {
    color: unset;
}

::placeholder {
    color: unset;
}

::marker {
    content: initial;
}

:where([hidden]) {
    display: none;
}

:where([contenteditable]:not([contenteditable=false])) {
    -moz-user-modify: read-write;
    -webkit-user-modify: read-write;
    overflow-wrap: break-word;
    -webkit-line-break: after-white-space;
    line-break: after-white-space;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    user-select: auto;
}

:where([draggable=true]) {
    -webkit-user-drag: element;
}

:where(dialog:modal) {
    all: revert;
    display: none;
}

:root {
    --color-white: #fff;
    --color-black: #000;
    --font-poppins: "Poppins", sans-serif;
    --primary: #033c73;
    --info: #4ca2be;
    --success: #469408;
    --danger: #c71c22;
    --warning: #dd5600;
    --pending: #8E1F4C;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    font-size: 1.3rem;
    line-height: 1;
    color: var(--color-black);
    font-family: var(--font-poppins);
    font-weight: 400;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
}

a {
    color: var(--color-black);
    text-decoration: none;
    cursor: pointer;
}

a:hover,
a:focus {
    color: var(--color-black);
    text-decoration: none;
    outline: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-family: var(--font-poppins);
    font-weight: normal;
}

strong,
b {
    font-weight: bold;
}

p:last-child {
    margin-bottom: 0 !important;
}

.table {
    --bs-table-bg: var(--color-white) !important;
}

/* Borde rojo para campos inválidos */
.is-invalid {
    border: 1.5px solid #c71c22 !important;
    box-shadow: 0 0 0 2px rgba(199, 28, 34, 0.12);
}

/* Resto de los estilos existentes... */
/* --- PAGINADOR PERSONALIZADO (DataTables + Bootstrap) --- */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1.2rem;
}

.dataTables_wrapper .dataTables_paginate .pagination,
.pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 1.5rem 0 0;
    padding: 0.4rem;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 999px;
}

.dataTables_wrapper .dataTables_paginate .page-item,
.pagination .page-item {
    margin: 0;
}

.dataTables_wrapper .dataTables_paginate .page-link,
.pagination .page-link {
    min-width: 3.2rem;
    height: 3.2rem;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background: #ffffff;
    color: #0c3878;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .page-link:hover,
.pagination .page-link:hover {
    background: inherit;
    border-color: inherit !important;
    color: #0c3878;
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.pagination .page-item.active .page-link {
    background: #f4f7fc;
    border-color: #d6e0ef !important;
    color: #0c3878;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link,
.pagination .page-item.disabled .page-link {
    background: #f8fafc;
    border-color: transparent !important;
    color: #b0b8c1;
    opacity: 0.8;
    cursor: not-allowed;
}

.dataTables_wrapper .dataTables_paginate .page-link:focus,
.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(12, 56, 120, 0.15);
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    width: 100% !important;
}

.configform-table .form-check.form-switch {
    display: inline-block;
}

.configform-table .form-check-input {
    background-color: #dc3545;
    border-color: #dc3545;
}

.configform-table .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.configform-table .form-check-input:focus {
    box-shadow: none;
}

.pagination .ellipsis {
    pointer-events: none;
    background: transparent;
    color: #0c3878;
    font-weight: 500;
    font-size: 1.3rem;
}

.configform-breadcrumb {
    background: #f5f6fa;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    border: 1px solid #e0e0e0;
    padding: 1.2rem;
}

.configform-title {
    background: #f5f6fa;
    border-radius: 8px;
    font-size: 1.3rem !important;
    font-weight: 400;
    color: var(--primary);
    border: 1px solid #e0e0e0;
    padding: 1.2rem;
}

.configform-title .btn {
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 400;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 2px 8px 0 rgba(44, 62, 80, 0.07);
    transition: background 0.2s, color 0.2s;
}

.configform-title .btn-success {
    background: var(--success);
    border: none;
}

.configform-title .btn-success:hover {
    background: #388e3c;
}

.configform-title .btn-info {
    background: var(--info);
    border: none;
    color: #fff;
}

.configform-title .btn-info:hover {
    background: #1565c0;
    color: #fff;
}

.configform-title .btn-warning {
    background: var(--warning);
    border: none;
    color: #fff;
}

.configform-title .btn-warning:hover {
    background: #f9a825;
    color: #fff;
}

    .configform-summary table thead tr {
        background: #0c3878 !important;
        color: #fff !important;
        background: #fff;
    }



.configform-summary .fw-semibold {
    color: #2d3e50;
    font-size: 1.1rem;
}

.configform-summary .fw-bold {
    font-size: 1.35rem;
}

.configform-summary .fs-5 {
    font-size: 1.5rem !important;
}

.configform-summary .fs-6 {
    font-size: 1.2rem !important;
}

.configform-summary .progress {
    height: 7px;
    border-radius: 4px;
    background: #e0e0e0;
}

.configform-summary .progress-bar.bg-success {
    background: #4caf50 !important;
}

.configform-summary .progress-bar.bg-danger {
    background: #e53935 !important;
}

.configform-table {
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 2px 8px 0 rgba(31, 45, 61, 0.07);
}

.configform-table th {
    background: var(--primary) !important;
    color: var(--color-white) !important;
    font-size: 1.4rem;
    font-weight: 400 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    text-align: center;
}

.configform-table td {
    font-size: 1.3rem;
    color: var(--color-black);
    background: var(--color-white);
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.configform-table .badge {
    font-size: 1.3rem;
    padding: 0.5em 1em;
    border-radius: 5px;
    font-weight: 400;
    background: var(--primary);
}

.configform-table .form-check-input {
    width: 2.2em;
    height: 1.2em;
    border-radius: 1em;
    background: #e0e0e0;
    border: none;
    box-shadow: none;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}

.configform-table .form-check-input::after {
    content: '';
    position: absolute;
    top: 0.1em;
    left: 0.1em;
    width: 1em;
    height: 1em;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: left 0.2s;
}

.configform-table .form-check-input:checked::after {
    left: 1.1em;
}

.configform-table .btn-warning {
    background: var(--warning);
    border: none;
    color: #fff;
}

.configform-table .btn-warning:hover {
    background: #ffa000;
    color: #fff;
}

.configform-table .btn-danger {
    background: var(--danger);
    border: none;
    color: #fff;
}

.configform-table .btn-danger:hover {
    background: #c62828;
    color: #fff;
}

.configform-table .fa-edit {
    font-size: 1.3rem;
}

.configform-table .fa-trash {
    font-size: 1.3rem;
}

.configform-table th,
.configform-table td {
    padding: 0.7rem 0.6rem !important;
}

.configform-table thead tr {
    border-radius: 8px 8px 0 0;
}

.configform-table tbody tr:last-child td {
    border-bottom: none;
}

.login-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-black);
    background-size: cover;
}

.login-card {
    max-width: 120rem;
    margin: 4rem auto;
    box-shadow: 0 8px 32px 0 rgba(31, 45, 61, 0.2);
    border-radius: 2.4rem;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.login-left {
    background: var(--primary);
    min-width: 40rem;
    max-width: 50rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-image-box {
    width: 40rem;
    height: 40rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-image {
    object-fit: contain;
    max-width: 90%;
    max-height: 90%;
}

.login-right {
    background: var(--color-white);
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top-right-radius: 2.4rem;
    border-bottom-right-radius: 2.4rem;
    min-width: 40rem;
    max-width: 50rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.login-logo-box {
    width: 12rem;
    height: 12rem;
    background: rgba(76, 162, 190, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: hidden;
}

.login-logo {
    object-fit: contain;
    max-width: 90%;
    max-height: 90%;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.input-group-text {
    background: #f0f4f8;
    border: none;
    color: #162447;
    font-size: 1.3rem;
    border-radius: 8px 0 0 8px;
}

/* Unificar estilos de focus para campos */
.form-control,
.form-select {
    background: #f0f4f8;
    border: 1px solid #e0e0e0;
    color: #1f2d3d;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border: 1.5px solid #0c3878;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.50);
}

.login-btn {
    font-size: 1.3rem;
    font-weight: 500;
    padding: 1rem 2.4rem;
    border-radius: 1rem;
    background: var(--success) !important;
}

.login-btn-facebook {
    font-size: 1.3rem;
    font-weight: 500;
    padding: 1.2rem 0;
    border-radius: 8px;
    background: var(--primary) !important;
}

.login-divider {
    font-size: 1.2rem;
    color: var(--color-black);
    margin: 24px 0 12px 0;
}

.login-footer {
    font-size: 1.2rem;
    color: var(--color-black);
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 26rem);
    margin-left: 26rem;
    padding-bottom: 1.2rem;
    background: transparent;
}

/* DASHBOARD ADMINLTE STYLE */
.dashboard-wrapper {
    min-height: 100vh;
    background: var(--color-white);
}

.sidebar {
    width: 26rem;
    min-width: 26rem;
    background: #172d4f;
    color: var(--color-white);
    transition: width 0.3s;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 10;
}

.sidebar-collapsed {
    width: 6rem !important;
    min-width: 6rem !important;
}

.sidebar-header {
    border-bottom: 1px solid #ffffff1a;
    gap: 2.5rem;
}

.sidebar-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    margin-right: 0 !important;
}

.sidebar-title {
    margin-left: 0 !important;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.sidebar .nav-link {
    font-size: 1.3rem;
    padding: 1.2rem 1.8rem;
    border-radius: 1rem;
    transition: background 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #23395d;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    min-width: 2.4rem;
    text-align: center;
}

.sidebar-collapsed .sidebar-text {
    display: none !important;
}

.sidebar-collapsed .sidebar {
    width: 6rem !important;
    min-width: 6rem !important;
}

.sidebar-collapsed .sidebar-title {
    display: none !important;
}

/* Sidebar submenu funcional */
.sidebar-submenu {
    display: none;
    transition: all 0.2s;
}

.sidebar-submenu.show {
    display: block;
}

.sidebar-toggle-submenu .fa-chevron-down {
    transition: transform 0.2s;
}

.sidebar-toggle-submenu .fa-chevron-down.rotate {
    transform: rotate(180deg);
}

/* Main content */
.main-content {
    background: var(--color-white);
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.topbar-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border-radius: 50%;
}

.dashboard-card {
    color: var(--color-white);
    box-shadow: 0 4px 16px 0 rgba(31, 45, 61, 0.08);
    border: none;
    min-height: 17rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-gradient-1 {
    background: linear-gradient(120deg, #191919, #f731db 100%);
}

.card-gradient-2 {
    background: linear-gradient(120deg, #191919, #198bfd 100%);
}

.card-gradient-3 {
    background: linear-gradient(120deg, #191919, #572364 100%);
}

.dashboard-card-number {
    font-size: 2.7rem;
    font-weight: 700;
}

.dashboard-card-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dashboard-card-link {
    font-size: 1.2rem;
    color: var(--color-white);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 0 0 8px 8px;
    padding: .6rem 0;
    transition: background 0.2s;
}

.dashboard-card-link:hover {
    background: rgba(0, 0, 0, 0.18);
    color: var(--color-white);
}

.dashboard-footer {
    width: 100%;
    margin-left: 0;
    border-top: 1px solid #e0e0e0;
    font-size: 1.3rem;
    background: var(--color-white);
    z-index: 20;
    min-height: 4.5rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

.navbar {
    border-bottom: 1.5px solid #e0e0e0;
    box-shadow: none;
}

/* Estilos para el menú desplegable de usuario en el navbar */
.dropdown-menu {
    border-radius: 1rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 16px 0 rgba(31, 45, 61, 0.10);
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    min-width: 230px;
}

.dropdown-menu .dropdown-item {
    font-size: 1.2rem;
    padding: 1.1rem 1.7rem;
    color: #222;
    border-radius: 0.7rem;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 0.5rem;
}

.dropdown-menu .dropdown-item:hover {
    background: #f0f4f8;
    color: var(--primary);
}

.dropdown-menu .dropdown-divider {
    margin: 0.7rem 0;
    border-top: 1px solid #e0e0e0;
}

.dropdown-menu .fw-bold {
    font-size: 1.3rem;
    color: #222;
}

.dropdown-menu .text-secondary {
    font-size: 1.1rem;
}

.user-dropdown-email {
    font-size: 1.3rem !important;
    font-weight: 500 !important;
    color: #222 !important;
    display: block !important;
    margin-bottom: 0.7rem;
    margin-top: 0.7rem;
}

.user-dropdown-arrow {
    transition: transform 0.2s;
}

.user-dropdown-arrow.rotate {
    transform: rotate(180deg);
}

.dropdown-toggle::after {
    display: none !important;
}

.user-navbar-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-black);
    letter-spacing: 0.2px;
}

.configform-summary-table th,
.configform-summary-table td {
    width: 33.33%;
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
}

.configform-filter {
    gap: 2rem !important;
    margin-bottom: 0.5rem;
}

.configform-filter-select {
    min-width: 220px;
}

.configform-filter-select .form-label {
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
}

.configform-filter-select .form-select {
    border-radius: 6px;
    border: 1px solid #0c3878;
    font-size: 1.3rem;
    padding: 0.35rem 0.75rem;
    background: #f7f9fc;
    color: var(--primary);
}

.configform-filter-btn {
    margin-top: 2rem !important;
}

.configform-filter-btn .btn-primary {
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 0.35rem 1.2rem;
    background: var(--primary);
    border: none;
    box-shadow: 0 2px 8px 0 rgba(44, 62, 80, 0.07);
    transition: background 0.2s;
}

.configform-filter-btn .btn-primary:hover {
    background: #1451b8;
}

.configform-content {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .configform-content {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .configform-content {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (max-width: 991px) {
    .login-card {
        max-width: 100vw;
        border-radius: 0;
        margin: 0;
    }

    .login-left,
    .login-right {
        min-width: 100%;
        max-width: 100%;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .login-image-box {
        width: 250px;
        height: 250px;
    }

    .login-logo-box {
        width: 80px;
        height: 80px;
    }

    .login-right {
        border-radius: 0;
    }

    .sidebar {
        width: 100vw;
        min-width: 100vw;
        position: fixed;
        height: 100vh;
        left: 0;
        top: 0;
        z-index: 100;
    }

    .sidebar-collapsed {
        width: 70px !important;
        min-width: 70px !important;
    }

    .main-content {
        margin-left: 0;
    }

    .dashboard-footer {
        width: 100%;
        margin-left: 0;
        left: 0;
    }
}


.modal-dialog.modal-lg {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 80vh;
    height: 80vh;
    top: 0;
    transform: none;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.modal-header {
    background: var(--primary);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1.1rem 1.5rem;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-white);
}

.modal-body {
    padding: 2rem 2.2rem 1.2rem 2.2rem;
}

.modal-footer {
    padding: 1.2rem 2.2rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.modal .form-label,
.modal .fw-bold {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
}

.modal .form-select,
.modal .form-control {
    font-size: 1.05rem;
    border-radius: 7px;
    border: 1px solid #e0e6ed;
    background: #f8fafc;
}

.modal .input-group-text {
    background: #f8fafc;
    border: 1px solid #e0e6ed;
    border-right: none;
    border-radius: 7px 0 0 7px;
}

.modal .btn-success {
    background: var(--success);
    border: none;
    font-weight: 600;
    padding: 0.55em 1.5em;
    font-size: 1.3rem;
    border-radius: 7px;
}

.modal .btn-danger {
    background: var(--danger);
    border: none;
    font-weight: 600;
    padding: 0.55em 1.5em;
    font-size: 1.3rem;
    border-radius: 7px;
}

.modal .btn-success i,
.modal .btn-danger i {
    font-size: 1.3em;
    margin-right: 0.3em;
}