/* ========================================================= */
/* N|B INDUMENTARY - MÓDULOS ADMINISTRATIVOS                 */
/* ========================================================= */

.admin-module-body {
    color: #d8e3ef;
}

.admin-module-page {
    width: 100%;
    max-width: none;
    padding: 0 !important;
    animation: dashboardFadeIn .35s ease both;
}

/* Encabezados */
.admin-module-page > .d-flex.justify-content-between,
.admin-module-page > .mb-4:first-child {
    gap: 20px;
    margin-bottom: 28px !important;
}

.admin-module-body .admin-module-page h1,
.admin-module-body .admin-module-page h2,
.admin-module-body .admin-module-page h3,
.admin-module-body .admin-module-page h4,
.admin-module-body .admin-module-page h5,
.admin-module-body .admin-module-page h6 {
    color: #ffffff;
}

.admin-module-body .admin-module-page h1 {
    font-size: clamp(1.8rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.admin-module-body .text-muted,
.admin-module-body .form-text,
.admin-module-body .admin-module-page small {
    color: #7f91a8 !important;
}

.admin-module-body .text-dark {
    color: #dbe7f4 !important;
}

/* Panels and cards */
.admin-module-body .card {
    --bs-card-bg: transparent;
    --bs-card-color: #d8e3ef;
    background: linear-gradient(145deg, rgba(9, 25, 44, .96), rgba(4, 14, 28, .96));
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .18) !important;
    overflow: hidden;
}

.admin-module-body .card-header,
.admin-module-body .card-header.bg-white {
    background: rgba(255, 255, 255, .025) !important;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
}

.admin-module-body .card-body {
    color: #d8e3ef;
}

.admin-module-body .card .border-top,
.admin-module-body .card .border-bottom,
.admin-module-body .border {
    border-color: rgba(255, 255, 255, .09) !important;
}

.admin-module-body hr {
    border-color: rgba(255, 255, 255, .09);
    opacity: 1;
}

/* Formularios */
.admin-module-body .form-label,
.admin-module-body .form-check-label {
    color: #c8d6e5;
    font-size: .875rem;
}

.admin-module-body .form-control,
.admin-module-body .form-select,
.admin-module-body textarea,
.admin-module-body .input-group-text {
    background-color: rgba(255, 255, 255, .045);
    color: #edf5ff;
    border-color: rgba(255, 255, 255, .11);
    box-shadow: none;
}

.admin-module-body .form-control,
.admin-module-body .form-select,
.admin-module-body textarea {
    min-height: 42px;
    border-radius: 9px;
}

.admin-module-body textarea.form-control,
.admin-module-body textarea {
    min-height: 108px;
}

.admin-module-body .input-group > .form-control {
    border-radius: 0 9px 9px 0;
}

.admin-module-body .input-group-text {
    border-radius: 9px 0 0 9px;
    color: #8fa4ba;
}

.admin-module-body .form-control::placeholder {
    color: #71839a;
    opacity: 1;
}

.admin-module-body .form-control:focus,
.admin-module-body .form-select:focus,
.admin-module-body textarea:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, .06);
    border-color: rgba(20, 137, 255, .65);
    box-shadow: 0 0 0 .2rem rgba(0, 132, 255, .13);
}

.admin-module-body .form-select {
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%239bb0c7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}

.admin-module-body .form-select option {
    background: #0a1a2e;
    color: #edf5ff;
}

.admin-module-body input[type="date"],
.admin-module-body input[type="datetime-local"],
.admin-module-body input[type="file"] {
    color-scheme: dark;
}

.admin-module-body .form-check-input {
    background-color: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .2);
}

.admin-module-body .form-check-input:checked {
    background-color: #147dff;
    border-color: #147dff;
}

.admin-module-body .form-check-input:focus {
    border-color: #3da1ff;
    box-shadow: 0 0 0 .2rem rgba(20, 125, 255, .16);
}

/* Botones */
.admin-module-body .btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 9px;
    font-weight: 650;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.admin-module-body .btn:hover {
    transform: translateY(-1px);
}

.admin-module-body .btn-primary {
    border-color: rgba(50, 156, 255, .65);
    background: linear-gradient(135deg, #087cff, #1668dc);
    box-shadow: 0 8px 20px rgba(0, 112, 255, .2);
}

.admin-module-body .btn-primary:hover,
.admin-module-body .btn-primary:focus {
    border-color: #69b5ff;
    background: linear-gradient(135deg, #1689ff, #1c70e8);
    box-shadow: 0 11px 24px rgba(0, 112, 255, .3);
}

.admin-module-body .btn-outline-primary {
    color: #69b5ff;
    border-color: rgba(48, 154, 255, .48);
    background: rgba(0, 126, 255, .07);
}

.admin-module-body .btn-outline-primary:hover {
    color: #ffffff;
    border-color: #258fff;
    background: rgba(0, 126, 255, .23);
}

.admin-module-body .btn-outline-secondary,
.admin-module-body .btn-secondary {
    color: #bdcce0;
    border-color: rgba(177, 198, 222, .25);
    background: rgba(255, 255, 255, .035);
}

.admin-module-body .btn-outline-secondary:hover,
.admin-module-body .btn-secondary:hover {
    color: #ffffff;
    border-color: rgba(214, 229, 247, .45);
    background: rgba(255, 255, 255, .09);
}

.admin-module-body .btn-outline-danger,
.admin-module-body .btn-danger {
    color: #ff97a6;
    border-color: rgba(255, 98, 119, .4);
    background: rgba(255, 70, 94, .08);
}

.admin-module-body .btn-outline-danger:hover,
.admin-module-body .btn-danger:hover {
    color: #ffffff;
    border-color: #ff6077;
    background: rgba(230, 60, 82, .78);
}

.admin-module-body .btn-success {
    color: #07281f;
    border-color: #31d39b;
    background: #31d39b;
}

/* Tablas */
.admin-module-body .table-responsive {
    border-radius: 0 0 14px 14px;
}

.admin-module-body .table {
    --bs-table-bg: transparent;
    --bs-table-color: #d5e1ee;
    --bs-table-border-color: rgba(255, 255, 255, .06);
    --bs-table-hover-color: #ffffff;
    --bs-table-hover-bg: rgba(255, 255, 255, .035);
    margin-bottom: 0;
    color: #d5e1ee;
}

.admin-module-body .table > :not(caption) > * > * {
    padding: 1rem 1.15rem;
    border-bottom-color: rgba(255, 255, 255, .06);
}

.admin-module-body .table thead th {
    color: #7f91a8;
    background: rgba(255, 255, 255, .018);
    font-size: .69rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-module-body .table tbody tr {
    transition: background .16s ease;
}

.admin-module-body .table tbody tr:hover {
    background: rgba(255, 255, 255, .025);
}

.admin-module-body .table strong {
    color: #f1f7ff;
}

/* Estados, alertas y ayudas */
.admin-module-body .badge {
    padding: .42rem .62rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}

.admin-module-body .bg-success,
.admin-module-body .badge.bg-success {
    color: #32dca3 !important;
    background-color: rgba(31, 211, 151, .13) !important;
}

.admin-module-body .bg-danger,
.admin-module-body .badge.bg-danger {
    color: #ff97a6 !important;
    background-color: rgba(255, 84, 105, .13) !important;
}

.admin-module-body .bg-secondary,
.admin-module-body .badge.bg-secondary,
.admin-module-body .bg-light {
    color: #b8c9dc !important;
    background-color: rgba(159, 181, 210, .12) !important;
}

.admin-module-body .alert {
    border-radius: 10px;
    border-width: 1px;
}

.admin-module-body .alert-success {
    color: #72e4ba;
    background: rgba(24, 182, 125, .11);
    border-color: rgba(48, 211, 155, .28);
}

.admin-module-body .alert-danger,
.admin-module-body .validation-summary-errors {
    color: #ffadb8;
    background: rgba(224, 63, 84, .12);
    border-color: rgba(255, 93, 113, .29);
}

.admin-module-body .alert-info {
    color: #88c9ff;
    background: rgba(13, 130, 255, .11);
    border-color: rgba(56, 155, 255, .28);
}

.admin-module-body .text-danger,
.admin-module-body .field-validation-error {
    color: #ff9daa !important;
}

/* Modales */
.admin-module-body .modal-content {
    color: #d8e3ef;
    background: linear-gradient(145deg, #0b2039, #061426);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .4);
}

.admin-module-body .modal-header,
.admin-module-body .modal-footer {
    border-color: rgba(255, 255, 255, .09);
}

.admin-module-body .modal-title {
    color: #ffffff;
}

.admin-module-body .btn-close {
    filter: invert(1) grayscale(1) brightness(1.8);
    opacity: .75;
}

.admin-module-body .btn-close:hover {
    opacity: 1;
}

/* Galería de imágenes */
.admin-module-body .image-product-card {
    background: linear-gradient(145deg, rgba(10, 27, 48, .98), rgba(4, 14, 28, .98));
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.admin-module-body .image-product-card:hover {
    border-color: rgba(50, 155, 255, .35);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .28);
}

.admin-module-body .image-product-header h5 {
    color: #f4f8ff;
}

.admin-module-body .image-product-header small,
.admin-module-body .principal-info,
.admin-module-body .product-image-more small {
    color: #7f91a8;
}

.admin-module-body .image-count-icon {
    color: #45a9ff;
    background: rgba(0, 136, 255, .13);
}

.admin-module-body .product-image-thumb,
.admin-module-body .product-image-more {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .09);
}

.admin-module-body .product-image-more {
    color: #b5c6d8;
}

.admin-module-body .product-image-more:hover {
    background: rgba(255, 255, 255, .075);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-module-page > .d-flex.justify-content-between {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .admin-module-page > .d-flex.justify-content-between > .btn,
    .admin-module-page > .d-flex.justify-content-between > a.btn {
        width: 100%;
    }

    .admin-module-body .table > :not(caption) > * > * {
        padding: .9rem .85rem;
    }

    .admin-module-body .modal-dialog {
        margin: .75rem;
    }

    .admin-module-body .modal-footer {
        flex-wrap: wrap;
    }

    .admin-module-body .modal-footer .btn {
        flex: 1 1 180px;
    }
}

@media (max-width: 576px) {
    .admin-module-page > .mb-4:first-child {
        margin-bottom: 22px !important;
    }

    .admin-module-body .card-body.p-4 {
        padding: 1.1rem !important;
    }

    .admin-module-body .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .admin-module-body .d-flex.gap-2 > .btn,
    .admin-module-body .d-flex.gap-2 > a.btn {
        flex: 1 1 100%;
    }
}

/* ========================================================= */
/* COMPONENTES COMPARTIDOS DE ADMINISTRACIÓN                 */
/* ========================================================= */

.admin-module-body .admin-page {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    color: #d9e5f1;
    animation: dashboardFadeIn .35s ease both;
}

.admin-module-body .admin-heading,
.admin-module-body .admin-panel-header,
.admin-module-body .admin-filter-form,
.admin-module-body .admin-pagination,
.admin-module-body .admin-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-module-body .admin-heading {
    margin-bottom: 28px;
}

.admin-module-body .admin-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #54adff;
    font-size: .71rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.admin-module-body .admin-heading h1,
.admin-module-body .admin-detail-header h1 {
    margin: 6px 0 7px;
    color: #f4f8fe;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.admin-module-body .admin-heading p,
.admin-module-body .admin-panel-header p,
.admin-module-body .admin-detail-header p,
.admin-module-body .modal-header p {
    margin: 0;
    color: #8093aa;
}

.admin-module-body .admin-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 17px;
    color: #fff;
    background: linear-gradient(135deg, #168cff, #1367d8);
    border: 1px solid rgba(113, 186, 255, .65);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 109, 255, .22);
    font-weight: 750;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.admin-module-body .admin-primary-action:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 109, 255, .31);
}

.admin-module-body .admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.admin-module-body .admin-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 122px;
    padding: 20px;
    overflow: hidden;
    background: linear-gradient(140deg, rgba(13, 35, 60, .97), rgba(5, 19, 36, .97));
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
}

.admin-module-body .admin-stat-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    content: "";
    opacity: .85;
}

.admin-module-body .admin-stat-icon {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    place-items: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

.admin-module-body .admin-stat-card span:not(.admin-stat-icon),
.admin-module-body .admin-stat-card strong,
.admin-module-body .admin-stat-card small {
    display: block;
}

.admin-module-body .admin-stat-card span:not(.admin-stat-icon) {
    color: #8fa2b8;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.admin-module-body .admin-stat-card strong {
    margin: 2px 0;
    color: #f8fbff;
    font-size: 1.78rem;
    line-height: 1;
}

.admin-module-body .admin-stat-card small {
    color: #70849a;
    font-size: .77rem;
}

.admin-module-body .admin-stat-blue .admin-stat-icon { color: #69b8ff; background: rgba(24, 141, 255, .13); }
.admin-module-body .admin-stat-blue::after { background: #168cff; }
.admin-module-body .admin-stat-green .admin-stat-icon { color: #5be1b2; background: rgba(47, 211, 153, .13); }
.admin-module-body .admin-stat-green::after { background: #32d59b; }
.admin-module-body .admin-stat-purple .admin-stat-icon { color: #c09cff; background: rgba(152, 95, 255, .14); }
.admin-module-body .admin-stat-purple::after { background: #9862ef; }
.admin-module-body .admin-stat-orange .admin-stat-icon { color: #ffc06b; background: rgba(255, 159, 46, .14); }
.admin-module-body .admin-stat-orange::after { background: #f7a545; }

.admin-module-body .admin-notices { margin-bottom: 20px; }
.admin-module-body .admin-notices .alert { display: flex; align-items: center; gap: 10px; }
.admin-module-body .admin-notices .btn-close { margin-left: auto; }

.admin-module-body .admin-panel {
    overflow: hidden;
    margin-bottom: 22px;
    background: linear-gradient(145deg, rgba(9, 28, 49, .97), rgba(4, 15, 29, .97));
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 15px;
    box-shadow: 0 15px 36px rgba(0, 0, 0, .18);
}

.admin-module-body .admin-panel-header {
    min-height: 82px;
    padding: 20px 23px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.admin-module-body .admin-panel-header h2 {
    margin: 0 0 4px;
    color: #f2f7fe;
    font-size: 1.02rem;
    font-weight: 750;
}

.admin-module-body .admin-panel-header p { font-size: .82rem; }

.admin-module-body .admin-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    color: #99caff;
    background: rgba(29, 141, 255, .1);
    border: 1px solid rgba(64, 160, 255, .18);
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 750;
}

.admin-module-body .admin-filter-panel { padding: 18px 20px; }
.admin-module-body .admin-filter-form { justify-content: flex-start; }
.admin-module-body .admin-field { min-width: 205px; flex: 1 1 205px; }
.admin-module-body .admin-field label { display: block; margin: 0 0 7px; color: #9eb0c4; font-size: .76rem; font-weight: 700; }
.admin-module-body .admin-select,
.admin-module-body .admin-input { width: 100%; min-height: 42px; padding: .45rem .8rem; color: #edf5ff; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .11); border-radius: 9px; }
.admin-module-body .admin-select { color-scheme: dark; }
.admin-module-body .admin-select:focus,
.admin-module-body .admin-input:focus { outline: 0; border-color: rgba(20, 137, 255, .65); box-shadow: 0 0 0 .2rem rgba(0, 132, 255, .13); }

/* Dropdowns propios de los filtros de Variantes e Imágenes. El select
   nativo conserva el valor enviado por el formulario, pero no se muestra. */
.admin-module-body .admin-filter-panel { position: relative; z-index: 20; overflow: visible; }
.admin-module-body .admin-custom-select { position: relative; width: 100%; }
.admin-module-body .admin-native-filter-select { display: none !important; }
.admin-module-body .admin-custom-select-trigger { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: .45rem .8rem; color: #edf5ff; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .11); border-radius: 9px; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.admin-module-body .admin-custom-select-trigger:hover { background: rgba(255, 255, 255, .07); border-color: rgba(61, 161, 255, .48); }
.admin-module-body .admin-custom-select-trigger:focus-visible { outline: 0; border-color: rgba(20, 137, 255, .8); box-shadow: 0 0 0 .2rem rgba(0, 132, 255, .18); }
.admin-module-body .admin-custom-select-trigger i { color: #8fb4d7; font-size: .8rem; transition: transform .18s ease; }
.admin-module-body .admin-custom-select.is-open .admin-custom-select-trigger { border-color: rgba(20, 137, 255, .75); box-shadow: 0 0 0 .2rem rgba(0, 132, 255, .13); }
.admin-module-body .admin-custom-select.is-open .admin-custom-select-trigger i { transform: rotate(180deg); }
.admin-module-body .admin-custom-select-menu { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 1055; max-height: 260px; overflow-y: auto; padding: 6px; color: #dbe9f7 !important; background: #0a1a2e !important; border: 1px solid rgba(106, 181, 255, .24); border-radius: 9px; box-shadow: 0 16px 36px rgba(0, 0, 0, .34); }
.admin-module-body .admin-custom-select-menu[hidden] { display: none !important; }
.admin-module-body .admin-custom-select-option { width: 100%; display: flex; align-items: center; min-height: 36px; padding: 8px 10px; color: #dbe9f7 !important; background: transparent !important; border: 0; border-radius: 7px; text-align: left; font-size: .84rem; transition: color .16s ease, background .16s ease; }
.admin-module-body .admin-custom-select-option:hover,
.admin-module-body .admin-custom-select-option:focus-visible { color: #ffffff !important; background: rgba(22, 130, 255, .22) !important; outline: 0; }
.admin-module-body .admin-custom-select-option.is-selected { color: #ffffff !important; background: rgba(9, 117, 240, .52) !important; font-weight: 700; }
.admin-module-body .admin-custom-select-option[disabled] { display: none; }
body[data-theme="light"].admin-module-body .admin-custom-select-trigger { color: var(--admin-input-text); background: var(--admin-input-bg); border-color: var(--admin-border); }
body[data-theme="light"].admin-module-body .admin-custom-select-trigger:hover { background: #f7fbff; border-color: rgba(22, 130, 255, .45); }
body[data-theme="light"].admin-module-body .admin-custom-select-trigger i { color: #5d7690; }
body[data-theme="light"].admin-module-body .admin-custom-select-menu { color: #29445e !important; background: #ffffff !important; border-color: rgba(24, 58, 93, .18); box-shadow: 0 16px 32px rgba(35, 70, 106, .16); }
body[data-theme="light"].admin-module-body .admin-custom-select-option { color: #29445e !important; }
body[data-theme="light"].admin-module-body .admin-custom-select-option:hover,
body[data-theme="light"].admin-module-body .admin-custom-select-option:focus-visible { color: #173a5c !important; background: #eaf5ff !important; }
body[data-theme="light"].admin-module-body .admin-custom-select-option.is-selected { color: #ffffff !important; background: #087cff !important; }
.admin-module-body .admin-filter-actions { display: flex; align-items: flex-end; gap: 8px; padding-top: 25px; }

.admin-module-body .admin-table-wrapper { width: 100%; overflow-x: auto; }
.admin-module-body .admin-table { width: 100%; min-width: 780px; border-collapse: collapse; color: #d8e4f0; }
.admin-module-body .admin-table th,
.admin-module-body .admin-table td { padding: 14px 19px; vertical-align: middle; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.admin-module-body .admin-table th { color: #8295aa; background: rgba(255, 255, 255, .018); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.admin-module-body .admin-table tbody tr { transition: background .17s ease; }
.admin-module-body .admin-table tbody tr:hover { background: rgba(255, 255, 255, .028); }
.admin-module-body .admin-table tbody tr:last-child td { border-bottom: 0; }

.admin-module-body .admin-entity,
.admin-module-body .admin-color-cell,
.admin-module-body .admin-actions,
.admin-module-body .admin-status,
.admin-module-body .admin-stock { display: inline-flex; align-items: center; gap: 9px; }
.admin-module-body .admin-entity-icon { display: grid; width: 33px; height: 33px; place-items: center; color: #78beff; background: rgba(39, 151, 255, .1); border-radius: 9px; }
.admin-module-body .admin-entity strong { display: block; color: #ecf4fd; font-size: .88rem; font-weight: 700; }
.admin-module-body .admin-entity small { display: block; margin-top: 2px; color: #71859b; font-size: .71rem; }
.admin-module-body .admin-description { display: inline-block; max-width: 290px; color: #9aadbf; font-size: .82rem; line-height: 1.4; }
.admin-module-body .admin-badge,
.admin-module-body .admin-status,
.admin-module-body .admin-stock { padding: 6px 9px; border: 1px solid transparent; border-radius: 999px; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.admin-module-body .admin-badge-violet { color: #d5c2ff; background: rgba(151, 91, 255, .13); border-color: rgba(168, 119, 255, .18); }
.admin-module-body .admin-badge-gold { color: #ffd381; background: rgba(255, 178, 57, .13); border-color: rgba(255, 190, 79, .22); }
.admin-module-body .admin-badge-muted { color: #aabacd; background: rgba(164, 184, 208, .1); border-color: rgba(164, 184, 208, .13); }
.admin-module-body .admin-status-success { color: #62dfb2; background: rgba(47, 210, 151, .12); border-color: rgba(53, 218, 160, .18); }
.admin-module-body .admin-status-muted { color: #a9b8c9; background: rgba(162, 180, 202, .1); border-color: rgba(162, 180, 202, .14); }
.admin-module-body .admin-status-danger { color: #ff9eab; background: rgba(255, 80, 103, .12); border-color: rgba(255, 100, 120, .19); }
.admin-module-body .admin-status-warning { color: #ffc573; background: rgba(255, 159, 45, .12); border-color: rgba(255, 177, 75, .2); }
.admin-module-body .admin-stock { color: #8ec8ff; background: rgba(35, 146, 255, .1); border-color: rgba(54, 156, 255, .15); }
.admin-module-body .admin-stock-low { color: #ffc573; background: rgba(255, 159, 45, .12); border-color: rgba(255, 177, 75, .2); }
.admin-module-body .admin-stock-empty { color: #ff9aa9; background: rgba(255, 80, 103, .12); border-color: rgba(255, 100, 120, .2); }
.admin-module-body .admin-sku { padding: 5px 7px; color: #9ed2ff; background: rgba(19, 128, 235, .09); border: 1px solid rgba(69, 163, 255, .14); border-radius: 6px; font-size: .76rem; }
.admin-module-body .admin-color-swatch { display: inline-block; width: 21px; height: 21px; border: 2px solid rgba(255, 255, 255, .28); border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .12); }
.admin-module-body .admin-color-swatch-lg { width: 29px; height: 29px; }
.admin-module-body .admin-size-token { display: grid; width: 33px; height: 33px; place-items: center; color: #d5c3ff; background: rgba(151, 91, 255, .13); border: 1px solid rgba(168, 119, 255, .2); border-radius: 9px; font-size: .72rem; font-weight: 800; }
.admin-module-body .admin-order { color: #c7d6e7; font-size: .82rem; font-weight: 700; }

.admin-module-body .admin-actions { gap: 7px; }
.admin-module-body .admin-icon-button { display: inline-grid; width: 33px; height: 33px; padding: 0; place-items: center; color: #a9cfff; background: rgba(27, 137, 255, .08); border: 1px solid rgba(56, 157, 255, .19); border-radius: 8px; text-decoration: none; transition: transform .16s ease, color .16s ease, background .16s ease; }
.admin-module-body .admin-icon-button:hover { color: #fff; background: rgba(29, 143, 255, .22); transform: translateY(-1px); }
.admin-module-body .admin-icon-edit { color: #b9cdf2; background: rgba(154, 180, 217, .07); border-color: rgba(167, 192, 225, .16); }
.admin-module-body .admin-icon-danger { color: #ff9eab; background: rgba(255, 80, 103, .08); border-color: rgba(255, 100, 120, .19); }
.admin-module-body .admin-icon-danger:hover { background: rgba(235, 67, 90, .24); }
.admin-module-body .admin-icon-success { color: #61dfb1; background: rgba(47, 210, 151, .09); border-color: rgba(53, 218, 160, .18); }
.admin-module-body .admin-icon-success:hover { background: rgba(47, 210, 151, .22); }
.admin-module-body .admin-icon-gold { color: #ffd17f; background: rgba(255, 178, 57, .09); border-color: rgba(255, 190, 79, .2); }
.admin-module-body .admin-icon-gold:hover { background: rgba(255, 178, 57, .22); }
.admin-module-body .admin-image-thumb { display: block; width: 58px; height: 45px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .13); border-radius: 8px; background: #0a1b2e; }
.admin-module-body .admin-image-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.admin-module-body .admin-image-thumb:hover img { transform: scale(1.08); }

.admin-module-body .admin-empty-state { display: flex; min-height: 310px; padding: 46px 25px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.admin-module-body .admin-empty-state > span { display: grid; width: 58px; height: 58px; margin-bottom: 16px; place-items: center; color: #68b7ff; background: rgba(25, 141, 255, .1); border: 1px solid rgba(67, 162, 255, .16); border-radius: 17px; font-size: 1.55rem; }
.admin-module-body .admin-empty-state h3 { margin: 0 0 7px; color: #edf5fe; font-size: 1.05rem; font-weight: 750; }
.admin-module-body .admin-empty-state p { max-width: 420px; margin: 0 0 18px; color: #8295aa; }

.admin-module-body .admin-pagination { min-height: 72px; padding: 15px 20px; color: #8093a8; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .8rem; }
.admin-module-body .admin-pagination nav { display: flex; align-items: center; gap: 8px; }
.admin-module-body .admin-pagination-button,
.admin-module-body .admin-pagination-current { display: inline-flex; min-height: 34px; align-items: center; gap: 5px; padding: 0 10px; border-radius: 8px; font-size: .75rem; font-weight: 700; }
.admin-module-body .admin-pagination-button { color: #b8d9fa; background: rgba(39, 147, 255, .07); border: 1px solid rgba(61, 158, 255, .14); text-decoration: none; }
.admin-module-body .admin-pagination-button:hover { color: #fff; background: rgba(39, 147, 255, .18); }
.admin-module-body .admin-pagination-button.is-disabled { pointer-events: none; opacity: .42; }
.admin-module-body .admin-pagination-current { color: #8da4bd; }

.admin-module-body .admin-modal .modal-dialog { max-width: 580px; }
.admin-module-body .admin-modal .modal-header { align-items: flex-start; padding: 20px 22px; }
.admin-module-body .admin-modal .modal-header .modal-title { margin: 0 0 5px; font-size: 1.08rem; font-weight: 760; }
.admin-module-body .admin-modal .modal-header p { font-size: .82rem; }
.admin-module-body .admin-modal .modal-body { padding: 21px 22px; }
.admin-module-body .admin-modal .modal-footer { padding: 15px 22px; }
.admin-module-body .admin-optional { color: #71859b; font-size: .73rem; font-weight: 500; }
.admin-module-body .admin-readonly-field { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 .8rem; color: #a7b9cb; background: rgba(255, 255, 255, .027); border: 1px dashed rgba(255, 255, 255, .16); border-radius: 9px; }
.admin-module-body .admin-current-image { width: 100%; height: 165px; margin-bottom: 16px; overflow: hidden; background: #061728; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; }
.admin-module-body .admin-current-image img { width: 100%; height: 100%; object-fit: contain; }
.admin-module-body .admin-confirm-dialog { padding: 30px 24px 16px !important; text-align: center; }
.admin-module-body .admin-confirm-icon { display: grid; width: 49px; height: 49px; margin: 0 auto 14px; place-items: center; border-radius: 50%; font-size: 1.25rem; }
.admin-module-body .admin-confirm-danger { color: #ffabb5; background: rgba(255, 80, 103, .13); }
.admin-module-body .admin-confirm-success { color: #6be4b9; background: rgba(47, 210, 151, .13); }
.admin-module-body .admin-confirm-gold { color: #ffd17f; background: rgba(255, 178, 57, .14); }
.admin-module-body .admin-confirm-dialog h2 { margin: 0 0 8px; color: #f2f7fe; font-size: 1.06rem; font-weight: 760; }
.admin-module-body .admin-confirm-dialog p { margin: 0; color: #8da0b4; font-size: .85rem; line-height: 1.5; }

/* Selector visual de colores */
.admin-module-body .admin-color-picker { padding: 14px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .09); border-radius: 11px; }
.admin-module-body .admin-color-picker-current { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.admin-module-body .admin-color-picker-current input[type="color"] { width: 45px; height: 45px; padding: 3px; cursor: pointer; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; }
.admin-module-body .admin-color-picker-current input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.admin-module-body .admin-color-picker-current input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.admin-module-body .admin-color-picker-current strong { display: block; color: #dce9f7; font-size: .82rem; font-weight: 700; }
.admin-module-body .admin-color-picker-current output { display: block; margin-top: 2px; color: #77bcff; font-family: var(--bs-font-monospace); font-size: .76rem; }
.admin-module-body .admin-color-presets { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.admin-module-body .admin-color-preset { display: grid; width: 100%; aspect-ratio: 1; padding: 3px; place-items: center; cursor: pointer; background: transparent; border: 1px solid transparent; border-radius: 8px; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.admin-module-body .admin-color-preset span { display: block; width: 100%; height: 100%; border: 1px solid rgba(255, 255, 255, .32); border-radius: 5px; }
.admin-module-body .admin-color-preset:hover { background: rgba(82, 166, 255, .12); transform: translateY(-1px); }
.admin-module-body .admin-color-preset.is-selected { background: rgba(55, 151, 255, .15); border-color: #43a3ff; box-shadow: 0 0 0 1px rgba(67, 163, 255, .22); }
.admin-module-body .admin-color-picker-help { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: #8094ab; font-size: .76rem; line-height: 1.4; }
.admin-module-body .admin-color-picker-help i { color: #6eb8ff; }
.admin-module-body .admin-color-picker-compact { padding: 12px; }
.admin-module-body .admin-color-picker-compact .admin-color-picker-current { margin-bottom: 10px; }
.admin-module-body .admin-color-picker-compact .admin-color-picker-help { margin-top: 10px; }

.admin-module-body .admin-detail-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; color: #a9cfff; font-size: .84rem; font-weight: 700; text-decoration: none; }
.admin-module-body .admin-detail-back:hover { color: #fff; }
.admin-module-body .admin-detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 20px; }
.admin-module-body .admin-detail-card { padding: 22px; background: linear-gradient(145deg, rgba(9, 28, 49, .97), rgba(4, 15, 29, .97)); border: 1px solid rgba(255, 255, 255, .085); border-radius: 15px; box-shadow: 0 15px 36px rgba(0, 0, 0, .18); }
.admin-module-body .admin-detail-card h2 { margin: 0 0 18px; color: #eef6fe; font-size: 1rem; font-weight: 750; }
.admin-module-body .admin-detail-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-module-body .admin-detail-info span { display: block; margin-bottom: 4px; color: #73879d; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-module-body .admin-detail-info strong { color: #eaf3fd; font-size: .9rem; }
.admin-module-body .admin-total-card { display: flex; min-height: 170px; flex-direction: column; justify-content: space-between; background: linear-gradient(150deg, rgba(18, 81, 155, .35), rgba(7, 26, 48, .97)); }
.admin-module-body .admin-total-card strong { color: #fff; font-size: 1.85rem; letter-spacing: -.04em; }
.admin-module-body .admin-total-line { display: flex; justify-content: space-between; color: #9cb3cb; font-size: .87rem; }
.admin-module-body .admin-money { color: #eaf4ff; font-size: .92rem; }
.admin-module-body .admin-form-card { max-width: 830px; margin: 0 auto; }
.admin-module-body .producto-form-card { padding: 0; }

/* Reportes y sistema */
.admin-module-body .report-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-module-body .admin-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.admin-module-body .admin-report-grid .admin-panel { min-width: 0; }
.admin-module-body .report-table { min-width: 520px; }
.admin-module-body .admin-report-link { color: #b8dcff; font-size: .84rem; font-weight: 700; text-decoration: none; }
.admin-module-body .admin-report-link:hover { color: #fff; }
.admin-module-body .admin-compact-empty { min-height: 230px; padding: 32px 20px; }
.admin-module-body .system-profile-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.admin-module-body .system-profile-heading h2 { margin: 0 0 3px; }
.admin-module-body .system-profile-heading p,
.admin-module-body .system-card-description { margin: 0; color: #8296ad; font-size: .83rem; line-height: 1.55; }
.admin-module-body .system-profile-avatar { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; background: linear-gradient(135deg, #087cff, #743dff); border-radius: 50%; box-shadow: 0 8px 20px rgba(41, 111, 255, .25); font-weight: 800; }
.admin-module-body .system-positive { color: #61dfb1; }
.admin-module-body .system-note-card { display: flex; min-height: 210px; flex-direction: column; align-items: flex-start; }
.admin-module-body .system-note-card > i { display: grid; width: 40px; height: 40px; margin-bottom: 16px; place-items: center; color: #8fc6ff; background: rgba(32, 144, 255, .12); border-radius: 11px; font-size: 1.15rem; }
.admin-module-body .system-note-card p { margin: 0 0 18px; color: #8498af; font-size: .84rem; line-height: 1.55; }
.admin-module-body .system-setting-row { display: flex; align-items: center; gap: 14px; padding: 19px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-module-body .system-card-description + .system-setting-row { margin-top: 17px; }
.admin-module-body .system-setting-icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 10px; }
.admin-module-body .system-setting-blue { color: #7cc3ff; background: rgba(29, 143, 255, .13); }
.admin-module-body .system-setting-purple { color: #c2a0ff; background: rgba(145, 91, 255, .14); }
.admin-module-body .system-setting-row > div:nth-child(2) { flex: 1; }
.admin-module-body .system-setting-row strong,
.admin-module-body .system-setting-row small { display: block; }
.admin-module-body .system-setting-row strong { color: #ebf3fc; font-size: .88rem; }
.admin-module-body .system-setting-row small { margin-top: 3px; color: #8195ac; font-size: .76rem; line-height: 1.4; }
.admin-module-body .system-setting-row .form-switch { margin: 0; padding-left: 2.55em; }

body.dashboard-light-mode.admin-module-body .admin-page { color: #203a53; }
body.dashboard-light-mode.admin-module-body .admin-heading h1,
body.dashboard-light-mode.admin-module-body .admin-panel-header h2,
body.dashboard-light-mode.admin-module-body .admin-detail-header h1,
body.dashboard-light-mode.admin-module-body .admin-detail-card h2 { color: #18324a; }
body.dashboard-light-mode.admin-module-body .admin-panel,
body.dashboard-light-mode.admin-module-body .admin-detail-card,
body.dashboard-light-mode.admin-module-body .admin-stat-card { background: linear-gradient(145deg, #ffffff, #f5f9fd); border-color: rgba(24, 58, 93, .12); box-shadow: 0 10px 28px rgba(29, 71, 111, .08); }
body.dashboard-light-mode.admin-module-body .admin-table { color: #233c54; }
body.dashboard-light-mode.admin-module-body .admin-table th { color: #607890; background: rgba(21, 76, 128, .035); }
body.dashboard-light-mode.admin-module-body .admin-table strong,
body.dashboard-light-mode.admin-module-body .admin-detail-info strong,
body.dashboard-light-mode.admin-module-body .system-setting-row strong { color: #1b354d; }
body.dashboard-light-mode.admin-module-body .admin-input,
body.dashboard-light-mode.admin-module-body .admin-select,
body.dashboard-light-mode.admin-module-body .form-control,
body.dashboard-light-mode.admin-module-body .form-select { color: #1d354d; background: #fff; border-color: rgba(24, 58, 93, .16); color-scheme: light; }

/* Cobertura del tema claro para módulos, formularios y Bootstrap. */
body[data-theme="light"].admin-module-body { color: var(--admin-text); }
body[data-theme="light"].admin-module-body .admin-heading p,
body[data-theme="light"].admin-module-body .admin-panel-header p,
body[data-theme="light"].admin-module-body .admin-field label,
body[data-theme="light"].admin-module-body .form-label,
body[data-theme="light"].admin-module-body .form-check-label,
body[data-theme="light"].admin-module-body .admin-entity small,
body[data-theme="light"].admin-module-body .admin-pagination,
body[data-theme="light"].admin-module-body .admin-empty-state p,
body[data-theme="light"].admin-module-body .text-muted,
body[data-theme="light"].admin-module-body .form-text { color: var(--admin-text-muted) !important; }
body[data-theme="light"].admin-module-body .admin-panel,
body[data-theme="light"].admin-module-body .admin-detail-card,
body[data-theme="light"].admin-module-body .admin-stat-card,
body[data-theme="light"].admin-module-body .card,
body[data-theme="light"].admin-module-body .modal-content { color: var(--admin-text); background: linear-gradient(145deg, var(--admin-surface), var(--admin-surface-elevated)); border-color: var(--admin-border) !important; }
body[data-theme="light"].admin-module-body .modal-header,
body[data-theme="light"].admin-module-body .modal-footer,
body[data-theme="light"].admin-module-body .card-header { color: var(--admin-text); background: #f7fbff !important; border-color: var(--admin-border) !important; }
body[data-theme="light"].admin-module-body .admin-input,
body[data-theme="light"].admin-module-body .admin-select,
body[data-theme="light"].admin-module-body .form-control,
body[data-theme="light"].admin-module-body .form-select,
body[data-theme="light"].admin-module-body textarea,
body[data-theme="light"].admin-module-body .input-group-text,
body[data-theme="light"].admin-module-body .admin-readonly-field { color: var(--admin-input-text) !important; background-color: var(--admin-input-bg) !important; border-color: var(--admin-border) !important; color-scheme: light; }
body[data-theme="light"].admin-module-body .form-control::placeholder,
body[data-theme="light"].admin-module-body textarea::placeholder { color: #71849a; }
body[data-theme="light"].admin-module-body .admin-select option,
body[data-theme="light"].admin-module-body .form-select option { color: var(--admin-text); background: var(--admin-option-bg); }
body[data-theme="light"].admin-module-body .admin-table,
body[data-theme="light"].admin-module-body .table { --bs-table-bg: transparent; --bs-table-color: var(--admin-text); --bs-table-border-color: var(--admin-border); --bs-table-hover-color: var(--admin-text); --bs-table-hover-bg: var(--admin-hover); color: var(--admin-text); }
body[data-theme="light"].admin-module-body .admin-table th,
body[data-theme="light"].admin-module-body .table thead th { color: #48627b; background: var(--admin-table-header); }
body[data-theme="light"].admin-module-body .admin-table tbody tr:hover,
body[data-theme="light"].admin-module-body .table tbody tr:hover { background: var(--admin-hover); }
body[data-theme="light"].admin-module-body .admin-table strong,
body[data-theme="light"].admin-module-body .table strong,
body[data-theme="light"].admin-module-body .modal-title,
body[data-theme="light"].admin-module-body .admin-confirm-dialog h2 { color: var(--admin-text); }
body[data-theme="light"].admin-module-body .btn-outline-secondary,
body[data-theme="light"].admin-module-body .btn-secondary,
body[data-theme="light"].admin-module-body .admin-pagination-button { color: #38536b; background: #ffffff; border-color: var(--admin-border); }
body[data-theme="light"].admin-module-body .btn-close { filter: none; opacity: .68; }

@media (max-width: 1200px) {
    .admin-module-body .report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-module-body .admin-report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .admin-module-body .report-stats { grid-template-columns: 1fr; }
    .admin-module-body .system-setting-row { align-items: flex-start; }
}
.admin-module-body .producto-form-card-header { display: flex; align-items: center; gap: 13px; padding: 20px 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-module-body .producto-form-card-header h2 { margin: 0 0 3px; color: #edf5fe; font-size: 1rem; font-weight: 760; }
.admin-module-body .producto-form-card-header p { margin: 0; color: #8195ab; font-size: .78rem; }
.admin-module-body .producto-form-card-icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; color: #70bbff; background: rgba(24, 141, 255, .12); border: 1px solid rgba(66, 161, 255, .18); border-radius: 11px; font-size: 1.08rem; }
.admin-module-body .producto-form-card .admin-form { padding: 22px; }
.admin-module-body .producto-status-control { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 16px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .075); border-radius: 10px; }
.admin-module-body .producto-status-control strong,
.admin-module-body .producto-status-control span { display: block; }
.admin-module-body .producto-status-control strong { color: #dce9f7; font-size: .84rem; }
.admin-module-body .producto-status-control span { margin-top: 3px; color: #7f93a8; font-size: .75rem; }
.admin-module-body .producto-status-control .form-check { display: flex; align-items: center; gap: 8px; padding-left: 0; white-space: nowrap; }
.admin-module-body .producto-status-control .form-check-input { width: 2.25em; margin: 0; }
.admin-module-body .admin-form-help { display: flex; min-height: 100%; align-items: center; gap: 11px; padding: 13px; color: #9eb2c8; background: rgba(29, 142, 255, .065); border: 1px solid rgba(62, 160, 255, .13); border-radius: 10px; }
.admin-module-body .admin-form-help > i { color: #6ab8ff; font-size: 1.2rem; }
.admin-module-body .admin-form-help strong,
.admin-module-body .admin-form-help span { display: block; }
.admin-module-body .admin-form-help strong { color: #dcecff; font-size: .8rem; }
.admin-module-body .admin-form-help span { margin-top: 2px; font-size: .75rem; line-height: 1.35; }
.admin-module-body .admin-form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 27px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* Detalle de producto */
.admin-module-body .producto-detail-header { margin-bottom: 25px; }
.admin-module-body .producto-detail-overview { margin-bottom: 22px; }
.admin-module-body .producto-overview-card { min-height: 250px; }
.admin-module-body .producto-overview-top { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.admin-module-body .producto-detail-image { display: grid; width: 76px; height: 76px; flex: 0 0 76px; overflow: hidden; place-items: center; color: #69b8ff; background: rgba(21, 136, 255, .1); border: 1px solid rgba(68, 165, 255, .18); border-radius: 15px; font-size: 1.8rem; }
.admin-module-body .producto-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.admin-module-body .producto-detail-label { display: block; margin-bottom: 5px; color: #72baff; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-module-body .producto-overview-top h2 { margin: 0 0 6px; color: #f4f8fe; font-size: 1.22rem; font-weight: 780; }
.admin-module-body .producto-overview-top p { max-width: 620px; margin: 0; color: #8296ad; font-size: .86rem; line-height: 1.55; }
.admin-module-body .producto-detail-info { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-module-body .producto-detail-info strong { display: inline-flex; align-items: center; gap: 7px; }
.admin-module-body .producto-detail-info strong > i { color: #b78cff; }
.admin-module-body .producto-detail-price { color: #7fc5ff !important; font-size: 1.05rem !important; }
.admin-module-body .producto-state-card { display: flex; min-height: 250px; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(145deg, rgba(9, 35, 55, .98), rgba(4, 17, 30, .98)); }
.admin-module-body .producto-state-card.is-active { border-color: rgba(53, 215, 156, .18); }
.admin-module-body .producto-state-card.is-inactive { border-color: rgba(166, 184, 206, .16); }
.admin-module-body .producto-state-icon { display: grid; width: 46px; height: 46px; margin-bottom: 16px; place-items: center; border-radius: 13px; font-size: 1.4rem; }
.admin-module-body .producto-state-card.is-active .producto-state-icon { color: #5ce2b2; background: rgba(45, 212, 151, .13); }
.admin-module-body .producto-state-card.is-inactive .producto-state-icon { color: #aebfd2; background: rgba(164, 184, 208, .12); }
.admin-module-body .producto-state-card h2 { margin: 0 0 7px; color: #f1f7fe; }
.admin-module-body .producto-state-card p { margin: 0 0 18px; color: #8297ae; font-size: .83rem; line-height: 1.5; }
.admin-module-body .producto-state-card .btn { margin-top: auto; }
.admin-module-body .producto-variants-panel,
.admin-module-body .producto-images-panel { margin-bottom: 22px; }
.admin-module-body .producto-detail-table { min-width: 660px; }
.admin-module-body .producto-detail-color { display: inline-flex; align-items: center; gap: 9px; color: #d5e0ec; font-size: .84rem; }
.admin-module-body .producto-images-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 13px; padding: 20px 22px 22px; }
.admin-module-body .producto-image-card { position: relative; display: block; height: 126px; overflow: hidden; background: #071728; border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px; }
.admin-module-body .producto-image-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.admin-module-body .producto-image-card:hover img { transform: scale(1.05); }
.admin-module-body .producto-image-card span { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; color: #9ee7cb; background: rgba(6, 33, 30, .82); border: 1px solid rgba(76, 222, 165, .25); border-radius: 6px; font-size: .65rem; font-weight: 750; }
.admin-module-body .producto-images-empty { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 116px; color: #8296ad; font-size: .84rem; }
.admin-module-body .producto-images-empty i { color: #68b7ff; font-size: 1.2rem; }

body.dashboard-light-mode.admin-module-body .producto-overview-top h2,
body.dashboard-light-mode.admin-module-body .producto-state-card h2 { color: #18324a; }
body.dashboard-light-mode.admin-module-body .producto-overview-top p,
body.dashboard-light-mode.admin-module-body .producto-state-card p { color: #607891; }
body.dashboard-light-mode.admin-module-body .producto-state-card { background: linear-gradient(145deg, #fff, #f4f9fd); }
body.dashboard-light-mode.admin-module-body .producto-detail-info { border-color: rgba(24, 58, 93, .1); }

@media (max-width: 1024px) {
    .admin-module-body .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-module-body .admin-stat-card { min-height: 108px; padding: 16px; }
    .admin-module-body .admin-stat-icon { width: 40px; height: 40px; flex-basis: 40px; }
}

@media (max-width: 768px) {
    .admin-module-body .admin-heading,
    .admin-module-body .admin-panel-header,
    .admin-module-body .admin-detail-header { align-items: flex-start; flex-direction: column; }
    .admin-module-body .admin-heading .admin-primary-action { width: 100%; }
    .admin-module-body .admin-stats { grid-template-columns: 1fr; gap: 11px; }
    .admin-module-body .admin-stat-card { min-height: 95px; }
    .admin-module-body .admin-filter-form { align-items: stretch; flex-direction: column; }
    .admin-module-body .admin-field { width: 100%; min-width: 0; }
    .admin-module-body .admin-filter-actions { width: 100%; padding-top: 0; }
    .admin-module-body .admin-filter-actions .btn { flex: 1 1 0; }
    .admin-module-body .admin-pagination { align-items: flex-start; flex-direction: column; }
    .admin-module-body .admin-pagination nav { width: 100%; justify-content: space-between; }
    .admin-module-body .admin-pagination-current { display: none; }
    .admin-module-body .admin-detail-grid { grid-template-columns: 1fr; }
    .admin-module-body .admin-form-actions { flex-direction: column-reverse; }
    .admin-module-body .admin-form-actions .btn { width: 100%; }
    .admin-module-body .producto-status-control { align-items: flex-start; flex-direction: column; }
    .admin-module-body .producto-overview-top { align-items: flex-start; flex-direction: column; }
    .admin-module-body .producto-images-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .admin-module-body .admin-page { width: 100%; }
    .admin-module-body .admin-heading h1,
    .admin-module-body .admin-detail-header h1 { font-size: 1.7rem; }
    .admin-module-body .admin-panel-header,
    .admin-module-body .admin-filter-panel { padding-right: 15px; padding-left: 15px; }
    .admin-module-body .admin-filter-actions { flex-direction: column; }
    .admin-module-body .admin-filter-actions .btn { width: 100%; }
    .admin-module-body .admin-pagination-button span { display: none; }
    .admin-module-body .admin-pagination-button { width: 37px; justify-content: center; padding: 0; }
    .admin-module-body .admin-detail-info { grid-template-columns: 1fr; }
}

/* ========================================================= */
/* PEDIDOS                                                   */
/* ========================================================= */

.admin-module-body .pedidos-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-module-body .pedidos-filter-form {
    flex-wrap: wrap;
}

.admin-module-body .pedidos-search-field {
    min-width: 290px;
    flex-grow: 1.45;
}

.admin-module-body .pedidos-date-field {
    min-width: 155px;
    flex-basis: 155px;
}

.admin-module-body .pedidos-search-input {
    position: relative;
}

.admin-module-body .pedidos-search-input > i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    color: #718aa3;
    transform: translateY(-50%);
}

.admin-module-body .pedidos-search-input .admin-input {
    padding-left: 38px;
}

.admin-module-body .pedidos-table {
    min-width: 1040px;
}

.admin-module-body .pedido-payment {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #aabbd0;
    font-size: .78rem;
    white-space: nowrap;
}

.admin-module-body .pedido-payment i {
    color: #79bfff;
}

.admin-module-body .pedido-status-pending {
    color: #ffc573;
    background: rgba(255, 159, 45, .12);
    border-color: rgba(255, 177, 75, .2);
}

.admin-module-body .pedido-status-confirmed {
    color: #78c5ff;
    background: rgba(31, 145, 255, .12);
    border-color: rgba(65, 163, 255, .2);
}

.admin-module-body .pedido-status-preparing {
    color: #c7a5ff;
    background: rgba(151, 91, 255, .13);
    border-color: rgba(168, 119, 255, .2);
}

.admin-module-body .pedido-status-shipped {
    color: #79e2df;
    background: rgba(44, 199, 195, .12);
    border-color: rgba(75, 214, 210, .2);
}

.admin-module-body .pedido-status-delivered {
    color: #62dfb2;
    background: rgba(47, 210, 151, .12);
    border-color: rgba(53, 218, 160, .2);
}

.admin-module-body .pedido-status-cancelled {
    color: #ff9eab;
    background: rgba(255, 80, 103, .12);
    border-color: rgba(255, 100, 120, .2);
}

body.pedido-drawer-open {
    overflow: hidden;
}

.pedido-drawer-layer,
.pedido-confirm-layer {
    position: fixed;
    inset: 0;
    z-index: 1085;
}

.pedido-confirm-layer {
    z-index: 1100;
}

.pedido-drawer-layer[hidden],
.pedido-confirm-layer[hidden] {
    display: none !important;
}

.pedido-drawer-backdrop,
.pedido-confirm-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(0, 7, 16, .63);
    border: 0;
    opacity: 0;
    backdrop-filter: blur(2px);
    transition: opacity .22s ease;
}

.pedido-drawer {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(480px, 100%);
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    color: #dce8f4;
    background: linear-gradient(165deg, #0b2139, #061426 65%);
    border-left: 1px solid rgba(111, 184, 255, .2);
    box-shadow: -24px 0 55px rgba(0, 0, 0, .35);
    outline: 0;
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(.22, .75, .25, 1);
}

.pedido-drawer-layer.is-open .pedido-drawer-backdrop,
.pedido-confirm-layer.is-open .pedido-confirm-backdrop {
    opacity: 1;
}

.pedido-drawer-layer.is-open .pedido-drawer {
    transform: translateX(0);
}

.pedido-drawer-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #91a8bf;
    background: #07172a;
}

.pedido-drawer-loading[hidden] {
    display: none;
}

.pedido-drawer > [data-pedido-drawer-content] {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.pedido-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pedido-drawer-header h2 {
    margin: 5px 0 4px;
    color: #f3f8fe;
    font-size: 1.35rem;
    font-weight: 780;
}

.pedido-drawer-header p {
    margin: 0;
    color: #7f94aa;
    font-size: .8rem;
}

.pedido-drawer-close {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    color: #a9bfd4;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    transition: color .17s ease, background .17s ease;
}

.pedido-drawer-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.pedido-drawer-body {
    min-height: 0;
    padding: 20px 24px 28px;
    overflow-y: auto;
}

.pedido-drawer-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 15px;
    background: rgba(31, 142, 255, .065);
    border: 1px solid rgba(63, 159, 255, .14);
    border-radius: 12px;
}

.pedido-drawer-state > div > span,
.pedido-drawer-state > div > strong {
    display: block;
}

.pedido-drawer-state > div > span {
    margin-bottom: 7px;
    color: #8299b0;
    font-size: .7rem;
    font-weight: 750;
    text-transform: uppercase;
}

.pedido-drawer-state .btn {
    font-size: .78rem;
    white-space: nowrap;
}

.pedido-drawer-state > small {
    color: #8499ae;
    font-size: .76rem;
}

.pedido-drawer-section {
    padding: 19px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.pedido-drawer-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #edf5fd;
    font-size: .91rem;
    font-weight: 750;
}

.pedido-drawer-section h3 > i {
    color: #70baff;
}

.pedido-drawer-section h3 > span {
    margin-left: auto;
    color: #71879d;
    font-size: .7rem;
    font-weight: 600;
}

.pedido-info-list {
    display: grid;
    gap: 11px;
    margin: 0;
}

.pedido-info-list > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
}

.pedido-info-list dt {
    color: #7d92a8;
    font-size: .76rem;
    font-weight: 600;
}

.pedido-info-list dd {
    min-width: 0;
    margin: 0;
    color: #dce8f4;
    font-size: .8rem;
    overflow-wrap: anywhere;
}

.pedido-info-list a {
    color: #8bcaff;
}

.pedido-highlight {
    margin: 0;
    color: #dbe8f5;
    font-size: .83rem;
    font-weight: 700;
}

.pedido-drawer-section address {
    display: grid;
    gap: 3px;
    margin: 10px 0 0;
    color: #91a6bb;
    font-size: .79rem;
    font-style: normal;
}

.pedido-observations {
    margin-top: 13px;
    padding: 11px 12px;
    color: #92a8bd;
    background: rgba(255, 255, 255, .035);
    border-radius: 9px;
    font-size: .77rem;
}

.pedido-observations strong,
.pedido-observations p {
    display: block;
    margin: 0;
}

.pedido-observations strong {
    margin-bottom: 4px;
    color: #b9c9d9;
}

.pedido-products {
    display: grid;
    gap: 10px;
}

.pedido-product {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 11px;
}

.pedido-product-image {
    display: grid;
    width: 54px;
    height: 58px;
    overflow: hidden;
    place-items: center;
    color: #6daedc;
    background: #0c2137;
    border-radius: 8px;
}

.pedido-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pedido-product-info {
    min-width: 0;
}

.pedido-product-info strong,
.pedido-product-info span,
.pedido-product-info small {
    display: block;
}

.pedido-product-info strong {
    color: #e6eff8;
    font-size: .79rem;
}

.pedido-product-info span,
.pedido-product-info small {
    margin-top: 3px;
    color: #8096ac;
    font-size: .69rem;
}

.pedido-product-total {
    color: #dceaf8;
    font-size: .78rem;
    white-space: nowrap;
}

.pedido-totals {
    display: grid;
    gap: 10px;
    padding: 19px 0;
}

.pedido-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #8298ae;
    font-size: .8rem;
}

.pedido-totals > div strong {
    color: #dae7f4;
}

.pedido-totals .pedido-totals-final {
    margin-top: 3px;
    padding-top: 13px;
    color: #edf6ff;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: .95rem;
    font-weight: 750;
}

.pedido-totals .pedido-totals-final strong {
    color: #72beff;
    font-size: 1.1rem;
}

.pedido-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
    padding: 14px;
    background: rgba(255, 71, 93, .05);
    border: 1px solid rgba(255, 91, 111, .13);
    border-radius: 11px;
}

.pedido-danger-zone strong,
.pedido-danger-zone span {
    display: block;
}

.pedido-danger-zone strong {
    color: #f3c5cb;
    font-size: .78rem;
}

.pedido-danger-zone span {
    margin-top: 3px;
    color: #8b737b;
    font-size: .68rem;
}

.pedido-danger-zone .btn {
    flex: 0 0 auto;
    font-size: .75rem;
}

.pedido-confirm-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(410px, calc(100% - 32px));
    padding: 27px;
    color: #dce8f4;
    text-align: center;
    background: linear-gradient(155deg, #102943, #07172a);
    border: 1px solid rgba(255, 113, 130, .22);
    border-radius: 16px;
    box-shadow: 0 26px 65px rgba(0, 0, 0, .42);
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px)) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
}

.pedido-confirm-layer.is-open .pedido-confirm-dialog {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.pedido-confirm-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    place-items: center;
    color: #ff9eab;
    background: rgba(255, 80, 103, .11);
    border-radius: 14px;
    font-size: 1.3rem;
}

.pedido-confirm-dialog h2 {
    margin: 0 0 8px;
    color: #f5f8fc;
    font-size: 1.15rem;
}

.pedido-confirm-dialog p {
    margin: 0 0 10px;
    color: #8da1b6;
    font-size: .81rem;
    line-height: 1.5;
}

.pedido-confirm-dialog > strong {
    display: block;
    margin-bottom: 21px;
    color: #ffb0ba;
    font-size: .85rem;
}

.pedido-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 9px;
}

.pedido-drawer-error {
    display: flex;
    height: 100%;
    padding: 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8fa4b9;
    text-align: center;
}

.pedido-drawer-error > i {
    margin-bottom: 12px;
    color: #ff9daa;
    font-size: 2rem;
}

.pedido-drawer-error h2 {
    color: #edf5fd;
    font-size: 1.05rem;
}

.pedido-state-form .is-loading,
.pedido-confirm-dialog .is-loading {
    cursor: wait;
    opacity: .7;
}

body[data-theme="light"].admin-module-body .pedido-drawer {
    color: #29445e;
    background: linear-gradient(165deg, #ffffff, #f3f8fc 68%);
    border-color: rgba(23, 81, 132, .16);
    box-shadow: -24px 0 55px rgba(33, 68, 101, .2);
}

body[data-theme="light"].admin-module-body .pedido-drawer-loading {
    color: #607891;
    background: #f7fbff;
}

body[data-theme="light"].admin-module-body .pedido-drawer-header,
body[data-theme="light"].admin-module-body .pedido-drawer-section {
    border-color: rgba(24, 58, 93, .1);
}

body[data-theme="light"].admin-module-body .pedido-drawer-header h2,
body[data-theme="light"].admin-module-body .pedido-drawer-section h3,
body[data-theme="light"].admin-module-body .pedido-info-list dd,
body[data-theme="light"].admin-module-body .pedido-highlight,
body[data-theme="light"].admin-module-body .pedido-product-info strong,
body[data-theme="light"].admin-module-body .pedido-product-total,
body[data-theme="light"].admin-module-body .pedido-totals > div strong {
    color: #18324a;
}

body[data-theme="light"].admin-module-body .pedido-drawer-close,
body[data-theme="light"].admin-module-body .pedido-product,
body[data-theme="light"].admin-module-body .pedido-observations {
    color: #49647d;
    background: #ffffff;
    border-color: rgba(24, 58, 93, .12);
}

body[data-theme="light"].admin-module-body .pedido-drawer-state {
    background: #edf7ff;
    border-color: rgba(24, 128, 225, .15);
}

body[data-theme="light"].admin-module-body .pedido-product-image {
    color: #5385ad;
    background: #eaf2f8;
}

body[data-theme="light"].admin-module-body .pedido-totals .pedido-totals-final {
    color: #18324a;
    border-color: rgba(24, 58, 93, .12);
}

body[data-theme="light"].admin-module-body .pedido-confirm-dialog {
    color: #29445e;
    background: linear-gradient(155deg, #ffffff, #f5f9fd);
    border-color: rgba(202, 70, 89, .2);
    box-shadow: 0 26px 65px rgba(38, 70, 101, .22);
}

body[data-theme="light"].admin-module-body .pedido-confirm-dialog h2 {
    color: #18324a;
}

@media (max-width: 1200px) {
    .admin-module-body .pedidos-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-module-body .pedidos-stats {
        grid-template-columns: 1fr;
    }

    .pedido-drawer {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pedido-drawer-header,
    .pedido-drawer-body {
        padding-right: 17px;
        padding-left: 17px;
    }

    .pedido-drawer-state,
    .pedido-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .pedido-drawer-state .btn,
    .pedido-danger-zone .btn {
        width: 100%;
    }

    .pedido-product {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .pedido-product-image {
        width: 48px;
        height: 52px;
    }

    .pedido-product-total {
        grid-column: 2;
    }

    .pedido-confirm-actions {
        flex-direction: column-reverse;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pedido-drawer,
    .pedido-drawer-backdrop,
    .pedido-confirm-backdrop,
    .pedido-confirm-dialog {
        transition-duration: .01ms;
    }
}

/* Payment methods configuration */
.payment-order-controls { display: flex; align-items: center; gap: 9px; }
.payment-order-controls > span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--admin-text); background: var(--admin-surface-elevated); border: 1px solid var(--admin-border); border-radius: 8px; font-size: .75rem; font-weight: 800; }
.payment-order-controls form { display: flex; gap: 3px; }
.payment-order-controls button { display: grid; width: 25px; height: 25px; padding: 0; place-items: center; color: var(--admin-text-muted); background: transparent; border: 1px solid var(--admin-border); border-radius: 6px; }
.payment-order-controls button:hover:not(:disabled) { color: #2d9cff; border-color: #2d9cff; }
.payment-order-controls button:disabled { cursor: default; opacity: .3; }
.payment-conditions strong, .payment-conditions small { display: block; }
.payment-conditions strong { color: var(--admin-text); font-size: .79rem; }
.payment-conditions small { margin-top: 4px; color: var(--admin-text-muted); font-size: .7rem; }
.payment-method-modal .modal-dialog { max-width: 760px !important; }
.admin-module-body .payment-method-modal .modal-content { color: var(--admin-text); background: var(--admin-surface); border-color: var(--admin-border); }
.admin-module-body .payment-method-modal :is(.modal-header, .modal-footer) { border-color: var(--admin-border); }
.admin-module-body .payment-method-modal :is(.form-control, .form-select, .form-select option) { color: var(--admin-input-text); background-color: var(--admin-input-bg); border-color: var(--admin-border); }
.admin-module-body .payment-method-modal .admin-custom-select-trigger { color: var(--admin-input-text); background: var(--admin-input-bg); border-color: var(--admin-border); }
.admin-module-body .payment-method-modal .admin-custom-select-menu { z-index: 1080; color: var(--admin-input-text) !important; background: var(--admin-option-bg) !important; border-color: var(--admin-border); }
.admin-module-body .payment-method-modal .admin-custom-select-option { color: var(--admin-input-text) !important; }
.admin-module-body .payment-method-modal .admin-custom-select-option:hover,
.admin-module-body .payment-method-modal .admin-custom-select-option:focus-visible { color: var(--admin-text) !important; background: var(--admin-hover) !important; }
.admin-module-body .payment-method-modal .admin-custom-select-option.is-selected { color: #ffffff !important; background: #087cff !important; }
.admin-module-body .payment-method-modal :is(.modal-title, .form-label, .form-check-label, h2) { color: var(--admin-text); }
.admin-module-body .payment-method-modal :is(p, .admin-optional) { color: var(--admin-text-muted); }
.admin-module-body .payment-method-modal .payment-plan-preview { background: var(--admin-surface-elevated); color: var(--admin-text); border-color: var(--admin-border); }
.admin-module-body .payment-method-modal .payment-plan-preview :is(span, small) { color: var(--admin-text); }
.admin-module-body .payment-method-modal .form-check-input:not(:checked) { background-color: var(--admin-input-bg); border-color: var(--admin-border); }
.payment-plan-preview { padding: 16px 18px; color: var(--admin-text); background: linear-gradient(135deg, rgba(45, 156, 255, .11), var(--admin-surface-elevated)); border: 1px solid rgba(45, 156, 255, .28); border-radius: 12px; }
.payment-plan-preview > span { display: block; margin-bottom: 8px; color: #2d9cff; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.payment-plan-preview strong, .payment-plan-preview p, .payment-plan-preview small { display: block; margin: 0; }
.payment-plan-preview strong { font-size: .95rem; }
.payment-plan-preview p { margin-top: 4px; color: var(--admin-text-muted); font-size: .8rem; }
.payment-plan-preview small { margin-top: 8px; color: var(--admin-success, #43d39e); font-weight: 700; }
@media (max-width: 768px) { .payment-method-table { min-width: 900px; } }

/* Lectura móvil: las tablas conservan su semántica y se presentan como cards. */
@media (max-width: 700px) {
    .admin-module-body .admin-heading {
        gap: 14px;
        margin-bottom: 20px;
    }

    .admin-module-body .admin-heading h1 {
        font-size: clamp(1.65rem, 8vw, 2rem);
    }

    .admin-module-body .admin-heading > .admin-primary-action,
    .admin-module-body .admin-filter-actions,
    .admin-module-body .admin-filter-actions :is(.btn, a, button) {
        width: 100%;
    }

    .admin-module-body .admin-stats,
    .admin-module-body .pedidos-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-module-body .admin-stat-card {
        min-height: 112px;
        padding: 15px;
        gap: 10px;
    }

    .admin-module-body .admin-stat-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .admin-module-body .admin-stat-card strong {
        font-size: 1.25rem;
    }

    .admin-module-body .admin-stat-card small {
        line-height: 1.25;
    }

    .admin-module-body .admin-filter-form,
    .admin-module-body .pedidos-filter-form {
        grid-template-columns: 1fr !important;
    }

    .admin-module-body .admin-panel,
    .admin-module-body .card {
        border-radius: 13px;
    }

    .admin-module-body .admin-panel-header {
        align-items: flex-start;
        padding: 17px;
        gap: 12px;
    }

    .admin-module-body .admin-table-wrapper,
    .admin-module-body .table-responsive,
    .admin-module-body .table- {
        overflow: visible;
    }

    .admin-module-body table.responsive-card-table,
    .admin-module-body table.responsive-card-table tbody,
    .admin-module-body table.responsive-card-table tr,
    .admin-module-body table.responsive-card-table td,
    table.dashboard-table.responsive-card-table,
    table.dashboard-table.responsive-card-table tbody,
    table.dashboard-table.responsive-card-table tr,
    table.dashboard-table.responsive-card-table td {
        display: block;
        width: 100%;
    }

    .admin-module-body table.responsive-card-table,
    table.dashboard-table.responsive-card-table {
        min-width: 0 !important;
        border-collapse: separate;
        border-spacing: 0 11px;
        background: transparent;
    }

    .admin-module-body table.responsive-card-table thead,
    table.dashboard-table.responsive-card-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .admin-module-body table.responsive-card-table tbody tr,
    table.dashboard-table.responsive-card-table tbody tr {
        margin-bottom: 12px;
        overflow: hidden;
        color: var(--admin-text);
        background: var(--admin-surface-elevated);
        border: 1px solid var(--admin-border);
        border-radius: 12px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, .11);
    }

    .admin-module-body table.responsive-card-table tbody tr:hover,
    table.dashboard-table.responsive-card-table tbody tr:hover {
        background: var(--admin-hover);
    }

    .admin-module-body table.responsive-card-table tbody td,
    table.dashboard-table.responsive-card-table tbody td {
        display: grid;
        grid-template-columns: minmax(88px, .42fr) minmax(0, 1fr);
        align-items: center;
        min-height: 48px;
        padding: 11px 14px !important;
        color: var(--admin-text);
        border: 0 !important;
        border-bottom: 1px solid var(--admin-border) !important;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .admin-module-body table.responsive-card-table tbody td:last-child,
    table.dashboard-table.responsive-card-table tbody td:last-child {
        border-bottom: 0 !important;
    }

    .admin-module-body table.responsive-card-table tbody td::before,
    table.dashboard-table.responsive-card-table tbody td::before {
        padding-right: 12px;
        color: var(--admin-text-muted);
        content: attr(data-mobile-label);
        font-size: .66rem;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .admin-module-body table.responsive-card-table .admin-actions,
    table.dashboard-table.responsive-card-table .admin-actions,
    table.dashboard-table.responsive-card-table .productos-row-actions {
        justify-content: flex-start !important;
    }

    .admin-module-body .modal-dialog {
        width: calc(100% - 20px);
        max-width: none !important;
        margin: 10px auto;
    }

    .admin-module-body .modal-dialog-centered {
        min-height: calc(100% - 20px);
    }

    .admin-module-body .modal-content,
    .admin-module-body .payment-method-modal .modal-content {
        max-height: calc(100dvh - 20px);
        overflow: hidden;
        color: var(--admin-text);
        background: var(--admin-surface);
        border-color: var(--admin-border);
    }

    .admin-module-body .modal-content > form {
        display: flex;
        min-height: 0;
        max-height: inherit;
        flex-direction: column;
    }

    .admin-module-body .modal-body {
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .admin-module-body .modal-footer {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .admin-module-body .modal-footer > * {
        width: 100%;
        margin: 0;
    }

    .pedido-drawer {
        color: var(--admin-text);
        background: var(--admin-surface);
        border-color: var(--admin-border);
    }
}

@media (max-width: 360px) {
    .admin-module-body .admin-stats,
    .admin-module-body .pedidos-stats {
        grid-template-columns: 1fr;
    }

    .admin-module-body table.responsive-card-table tbody td,
    table.dashboard-table.responsive-card-table tbody td {
        grid-template-columns: 78px minmax(0, 1fr);
        padding-inline: 11px !important;
    }
}
