@charset "UTF-8";
/* KyO Group — Pastel Theme (Sushi Club / Panera Rosa) */

:root {
    --pastel-bg: #fef8f6;
    --pastel-bg-2: #f8f4ff;
    --pastel-surface: #ffffff;
    --pastel-surface-2: #fff9fb;
    --pastel-border: rgba(90, 70, 90, 0.1);
    --pastel-border-strong: rgba(90, 70, 90, 0.16);
    --pastel-rose: #f4a4b8;
    --pastel-rose-light: #fce4ec;
    --pastel-rose-deep: #e8879f;
    --pastel-sage: #b5d99c;
    --pastel-sage-light: #e8f5e0;
    --pastel-sage-deep: #8bc34a;
    --pastel-peach: #ffd4b8;
    --pastel-lavender: #e8dff5;
    --pastel-text: #3d3548;
    --pastel-text-muted: #7a7088;
    --pastel-text-light: #a89bb0;
    --pastel-success: #81c784;
    --pastel-success-bg: #e8f5e9;
    --pastel-warning: #ffb74d;
    --pastel-warning-bg: #fff3e0;
    --pastel-danger: #e57373;
    --pastel-danger-bg: #ffebee;
    --pastel-info: #64b5f6;
    --pastel-info-bg: #e3f2fd;
    --dt-body: #ffffff;
    --dt-head: #fce4ec;
    --dt-head-b: rgba(244, 164, 184, 0.25);
    --dt-row: #ffffff;
    --dt-row-zebra: #fff9fb;
    --dt-row-zebra2: #fef8f6;
    --dt-row-hover: #fce4ec;
    /* DataTables CDN usa estos RGB para el overlay azul de fila seleccionada */
    --dt-row-selected: 248, 215, 224;
    --dt-row-selected-text: 61, 53, 72;
    --dt-row-selected-link: 201, 74, 107;
    --dt-text: #3d3548;
    --dt-input: #ffffff;
    --dt-input-b: rgba(244, 164, 184, 0.35);
    --dt-pag-bg: #fff9fb;
    --dt-pag-active: #e8879f;
    --kyo-accent: #8bc34a;
    --kyo-text: #3d3548;
    --kyo-text-muted: #7a7088;
    --kyo-border: rgba(90, 70, 90, 0.1);
    --text: #3d3548;
    --muted: #7a7088;
    --bg: #fef8f6;
    --panel: #ffffff;
    --rp-nav-bg: rgba(255, 255, 255, 0.92);
    --rp-nav-accent: #e8879f;
    --rp-nav-text: #3d3548;
    --rp-nav-dropdown-bg: #ffffff;
}

body {
    background:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(244, 164, 184, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(181, 217, 156, 0.14) 0%, transparent 45%),
        linear-gradient(180deg, #fef8f6 0%, #fef5f8 50%, #f8f4ff 100%) !important;
    color: #3d3548 !important;
}

.rp-navbar {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 249, 251, 0.97) 100%) !important;
    border-bottom: 1px solid rgba(90, 70, 90, 0.1) !important;
    box-shadow: 0 2px 20px rgba(244, 164, 184, 0.12) !important;
}

.rp-brand-text strong { color: #3d3548 !important; }
.rp-brand-text small { color: #e8879f !important; }
.rp-nav-link { color: #3d3548 !important; }
.rp-nav-link:hover { background: #fce4ec !important; color: #e8879f !important; }
.rp-nav-link.show, .rp-nav-link.active {
    background: #fce4ec !important;
    color: #e8879f !important;
    box-shadow: none !important;
}
.rp-nav-dropdown {
    background: #fff !important;
    border: 1px solid rgba(90, 70, 90, 0.1) !important;
    box-shadow: 0 12px 40px rgba(90, 70, 90, 0.12) !important;
}
.rp-nav-item { color: #3d3548 !important; }
.rp-nav-item:hover { background: #fce4ec !important; color: #e8879f !important; }
.rp-nav-item-icon { background: #e8f5e0 !important; color: #8bc34a !important; }
.rp-user-pill { background: #fce4ec !important; border-color: rgba(244, 164, 184, 0.3) !important; color: #3d3548 !important; }
.rp-user-avatar:not(.rp-avatar-circle) { background: linear-gradient(135deg, #f4a4b8, #e8879f) !important; }
.rp-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2861, 53, 72, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: none !important;
    opacity: 1 !important;
}

.cc-header {
    background: linear-gradient(135deg, #fff 0%, #fce4ec 100%) !important;
    border: 1px solid rgba(90, 70, 90, 0.1) !important;
    box-shadow: 0 4px 24px rgba(244, 164, 184, 0.1) !important;
}
.cc-header h2 { color: #3d3548 !important; }
.cc-badge {
    background: linear-gradient(135deg, #fce4ec, #e8f5e0) !important;
    border: 1px solid rgba(244, 164, 184, 0.3) !important;
    color: #e8879f !important;
}
.cc-stat {
    background: #fff !important;
    border: 1.5px solid rgba(90, 70, 90, 0.14) !important;
    box-shadow: 0 4px 16px rgba(61, 45, 70, 0.08);
}
.cc-stat .label { color: #6b6178 !important; font-weight: 800 !important; }
.cc-stat .value { color: #c2185b !important; }

/* Acción destacada en header (ej. Análisis) */
.cc-header-actions {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cc-header-actions--inline {
    align-items: center;
}

.cc-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 100%;
    padding: 0.65rem 0.95rem 0.65rem 0.75rem;
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit;
    border: 1.5px solid rgba(244, 164, 184, 0.35);
    background: linear-gradient(135deg, #ffffff 0%, #f3edf8 45%, #fce4ec 100%);
    box-shadow: 0 4px 16px rgba(61, 45, 70, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}

.cc-header-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 164, 184, 0.12), rgba(139, 195, 74, 0.08));
    opacity: 0;
    transition: opacity 0.18s ease;
}

.cc-header-link:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 164, 184, 0.55);
    box-shadow: 0 8px 24px rgba(232, 135, 159, 0.22);
    color: inherit;
}

.cc-header-link:hover::before {
    opacity: 1;
}

.cc-header-link-icon {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, #b39ddb, #9575cd);
    box-shadow: 0 4px 12px rgba(149, 117, 205, 0.35);
}

.cc-header-link--analisis .cc-header-link-icon {
    background: linear-gradient(135deg, #7986cb, #5c6bc0);
    box-shadow: 0 4px 12px rgba(92, 107, 192, 0.35);
}

.cc-header-link-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.cc-header-link-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #3d3548;
    line-height: 1.2;
}

.cc-header-link-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: #7a7088;
    line-height: 1.2;
    white-space: nowrap;
}

.cc-header-link-chevron {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.85);
    color: #9575cd;
    font-size: 1rem;
    border: 1px solid rgba(149, 117, 205, 0.2);
    transition: transform 0.18s ease, background 0.18s ease;
}

.cc-header-link:hover .cc-header-link-chevron {
    transform: translateX(2px);
    background: #fff;
    color: #5c6bc0;
}

.cc-header-link--compact {
    padding: 0.5rem 0.75rem 0.5rem 0.6rem;
}

.cc-header-link--compact .cc-header-link-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    border-radius: 10px;
}

.cc-header-link--compact .cc-header-link-sub {
    display: none;
}

@media (max-width: 576px) {
    .cc-header-actions {
        width: 100%;
        margin-top: 0.5rem;
    }

    .cc-header-link {
        flex: 1 1 100%;
    }

    .cc-stat {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 0;
    }
}

.card-glass {
    background: #fff !important;
    border: 1px solid rgba(90, 70, 90, 0.08) !important;
    border-radius: 16px !important;
    /* Sombra suave neutra (evita la “raya” amarillenta sobre fondo lavanda) */
    box-shadow: 0 1px 3px rgba(61, 53, 72, 0.04) !important;
    color: #2d2636 !important;
}

/* Si adentro ya hay .dt-dark-wrap con marco, no duplicar sombra */
.card-glass > .tabla-wrap .dt-dark-wrap,
.card-glass .dt-dark-wrap {
    box-shadow: none !important;
}

.text-muted-cc { color: #7a7088 !important; }
.text-new { color: #e8879f !important; }

.btn-new {
    background: #e8879f !important;
    color: #fff !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 2px rgba(61, 45, 70, 0.06) !important;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-new:hover {
    background: #f4a4b8 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232, 135, 159, 0.28) !important;
}
.btn-new:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(61, 45, 70, 0.06) !important;
}

/* ── Empty states (unificado en todo el sistema) ── */
.pg-empty-state,
.pg-precios-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--pastel-text-muted);
}

.kyo-empty-card,
.pg-precios-empty-card,
.rp-cards-empty,
.cg-cards-empty,
.ax-rank-empty,
.acc-empty,
.oc-empty {
    max-width: 440px;
    margin: 0 auto;
    padding: 2rem 1.75rem;
    text-align: center;
    border-radius: 16px;
    background: var(--pastel-surface-2);
    border: 1px solid rgba(90, 70, 90, 0.07);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rp-cards-empty,
.cg-cards-empty {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
    padding: 2.5rem 1.5rem;
}

.kyo-empty-icon,
.pg-precios-empty-icon,
.rp-cards-empty .fa,
.cg-cards-empty .fa,
.ax-rank-empty > .fa,
.ax-rank-empty > i,
.acc-empty > i,
.acc-empty > .fa {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--pastel-rose-light);
    color: var(--pastel-rose-deep);
    font-size: 1.35rem;
    opacity: 1 !important;
}

.kyo-empty-title,
.pg-precios-empty-card h5,
.pg-empty-state h5 {
    color: var(--pastel-text);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
    letter-spacing: -0.01em;
}

.kyo-empty-text,
.pg-precios-empty-card p,
.rp-cards-empty,
.cg-cards-empty,
.ax-rank-empty,
.oc-empty {
    color: var(--pastel-text-muted);
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.pg-precios-empty-card p {
    margin-bottom: 1.25rem;
}

.kyo-empty-card .btn-new,
.pg-precios-empty-card .btn-new {
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
}

.acc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    max-width: none;
}
.btn-secondary {
    background: #fff !important;
    border: 1px solid rgba(90, 70, 90, 0.16) !important;
    color: #3d3548 !important;
}
.btn-secondary:hover {
    background: #fce4ec !important;
    border-color: #f4a4b8 !important;
    color: #e8879f !important;
}
.btn-primary {
    background: linear-gradient(135deg, #f4a4b8, #e8879f) !important;
    border: none !important;
    color: #fff !important;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #f8b4c8, #f4a4b8) !important;
    color: #fff !important;
}
.btn-outline-primary {
    background: #fff !important;
    border: 1.5px solid rgba(244, 164, 184, 0.45) !important;
    color: #e8879f !important;
    font-weight: 600 !important;
}
.btn-outline-primary:hover {
    background: #fce4ec !important;
    border-color: #f4a4b8 !important;
    color: #e8879f !important;
}
.btn-outline-light, .pg-back-link {
    background: #fff !important;
    border: 1px solid rgba(90, 70, 90, 0.16) !important;
    color: #3d3548 !important;
}
.btn-outline-light:hover, .pg-back-link:hover {
    background: #fce4ec !important;
    color: #e8879f !important;
}

.form-control, .form-select {
    background: #fff !important;
    border: 1.5px solid rgba(90, 70, 90, 0.16) !important;
    color: #3d3548 !important;
    border-radius: 12px !important;
}
.form-control:focus, .form-select:focus {
    border-color: #f4a4b8 !important;
    box-shadow: 0 0 0 3px rgba(244, 164, 184, 0.2) !important;
}
.form-label { color: #7a7088 !important; font-weight: 600 !important; font-size: 0.85rem; }

.rp-tabs-shell { background: #fff9fb; border-bottom: 1px solid rgba(90, 70, 90, 0.1) !important; }
.rp-tabs-modern .nav-link { color: #7a7088 !important; font-weight: 600; }
.rp-tabs-modern .nav-link.active, .cc-tabs .nav-link.active {
    background: linear-gradient(180deg, #fff 0%, #fce4ec 100%) !important;
    color: #e8879f !important;
    border-bottom: 3px solid #f4a4b8 !important;
    border-radius: 12px 12px 0 0 !important;
}
.rp-tabs-modern .nav-link:hover:not(.active) {
    background: #fff9fb !important;
    color: #e8879f !important;
}
.rp-tabs-modern .nav-link i { margin-right: 0.35rem; opacity: 0.85; }

.dt-dark-wrap {
    background: #fff !important;
    border: 1px solid rgba(90, 70, 90, 0.1) !important;
    border-radius: 16px !important;
    overflow: visible;
    max-width: 100%;
    box-shadow: 0 2px 16px rgba(90, 70, 90, 0.06);
}

.dt-dark thead th, .dt-dark thead td, table.dataTable thead th {
    background: linear-gradient(180deg, #f0c4d4 0%, #e8a8be 100%) !important;
    color: #2d2636 !important;
    border-color: rgba(194, 24, 91, 0.2) !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.7rem 0.85rem !important;
}
.dt-dark thead tr.filters th { background: #fff9fb !important; padding: 6px 8px !important; }
.dt-dark tbody tr, table.dataTable tbody tr { background: #fff !important; color: #3d3548 !important; }
.dt-dark.display tbody tr:nth-child(2n) td, table.dataTable.display tbody tr:nth-child(even) td { background: #fff9fb !important; }
.dt-dark tbody tr:nth-child(2n+1) td, table.dataTable.display tbody tr:nth-child(odd) td { background: #fef8f6 !important; }
.dt-dark tbody tr:hover td, table.dataTable tbody tr:hover td { background: #fce4ec !important; }
.dt-dark tbody tr.selected > *, table.dataTable tbody tr.selected > *,
.dt-dark tbody tr.dt-row-selected > *, table.dataTable tbody tr.dt-row-selected > *,
.dt-dark tbody tr.seleccionada > *, table.dataTable tbody tr.seleccionada > *,
.dt-dark tbody tr.selected td, table.dataTable tbody tr.selected td,
.dt-dark tbody tr.dt-row-selected td, table.dataTable tbody tr.dt-row-selected td,
.dt-dark tbody tr.seleccionada td, table.dataTable tbody tr.seleccionada td {
    background: #f8d7e0 !important;
    background-color: #f8d7e0 !important;
    color: #3d3548 !important;
    box-shadow: none !important;
}
.dt-dark tbody tr.selected > *:first-child, table.dataTable tbody tr.selected > *:first-child,
.dt-dark tbody tr.dt-row-selected > *:first-child, table.dataTable tbody tr.dt-row-selected > *:first-child,
.dt-dark tbody tr.seleccionada > *:first-child, table.dataTable tbody tr.seleccionada > *:first-child,
.dt-dark tbody tr.selected td:first-child, table.dataTable tbody tr.selected td:first-child,
.dt-dark tbody tr.dt-row-selected td:first-child, table.dataTable tbody tr.dt-row-selected td:first-child,
.dt-dark tbody tr.seleccionada td:first-child, table.dataTable tbody tr.seleccionada td:first-child,
.dt-dark tbody tr.selected td.rp-col-acciones, table.dataTable tbody tr.selected td.rp-col-acciones {
    background: #f8d7e0 !important;
    box-shadow: inset 4px 0 0 #e8879f !important;
}

.dt-dark thead tr.filters th input, .dt-dark thead tr.filters th select {
    background: #fff !important;
    border: 1.5px solid rgba(90, 70, 90, 0.16) !important;
    border-radius: 10px !important;
    color: #3d3548 !important;
    font-size: 0.82rem !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
    line-height: 1.25 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
.dt-dark thead tr.filters th input:focus {
    border-color: #f4a4b8 !important;
    box-shadow: 0 0 0 2px rgba(244, 164, 184, 0.2) !important;
}
.dt-dark thead tr.filters th input::placeholder { color: #a89bb0; }

/* Select2 de filtros alineado a los inputs (todas las grillas) */
.dt-dark thead tr.filters th .select2-container,
table.dataTable thead tr.filters th .select2-container {
    width: 100% !important;
}
.dt-dark thead tr.filters th .select2-container--default .select2-selection--single,
table.dataTable thead tr.filters th .select2-container--default .select2-selection--single {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    border: 1.5px solid rgba(90, 70, 90, 0.16) !important;
    background: #fff !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: #fff !important;
    border: 1.5px solid rgba(90, 70, 90, 0.16) !important;
    border-radius: 10px !important;
    color: #3d3548 !important;
}
.dataTables_wrapper .dataTables_paginate {
    background: #fff9fb !important;
    border: 1px solid rgba(90, 70, 90, 0.1) !important;
    border-radius: 12px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #f4a4b8, #e8879f) !important;
    color: #fff !important;
}
.dataTables_wrapper .dt-buttons .dt-button {
    background: #fff !important;
    border: 1.5px solid rgba(90, 70, 90, 0.16) !important;
    color: #3d3548 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}
.dataTables_wrapper .dt-buttons .dt-button:hover { background: #e8f5e0 !important; }

.dataTables_wrapper .dataTables_scroll { overflow: hidden !important; width: 100% !important; }
.dataTables_scrollHead, .dataTables_scrollFoot { overflow: hidden !important; }
.dataTables_scrollBody {
    overflow: auto !important;
    max-height: min(70vh, calc(100vh - 260px));
    scrollbar-width: thin;
    scrollbar-color: #f4a4b8 transparent;
    -webkit-overflow-scrolling: touch;
}
.dataTables_scrollBody::-webkit-scrollbar { height: 8px; width: 8px; }
.dataTables_scrollBody::-webkit-scrollbar-thumb { background: #f4a4b8; border-radius: 6px; }
.dataTables_scrollBody::-webkit-scrollbar-track { background: rgba(244, 164, 184, 0.12); border-radius: 6px; }

.kyo-dt-scroll {
    width: 100%;
    max-width: 100%;
    overflow: auto !important;
    max-height: min(70vh, calc(100vh - 260px));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #f4a4b8 transparent;
}
.kyo-dt-scroll > table.dataTable,
.kyo-dt-scroll > table.dt-dark {
    width: 100% !important;
    margin: 0 !important;
}

table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after { opacity: 0.3; font-size: 0.65em; }
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_desc:after { opacity: 0.65; color: #e8879f; }

.modal-content {
    background: #fff !important;
    color: #3d3548 !important;
    border: 1px solid rgba(90, 70, 90, 0.1) !important;
    border-radius: 20px !important;
}
.colorEncabezado, .colorEncabezadoModales {
    background: linear-gradient(90deg, #fce4ec, #e8dff5) !important;
    color: #3d3548 !important;
    border-left: 4px solid #f4a4b8 !important;
}
.modal-footer, .modal-footer-cc, .footer-Modales {
    background: #fff9fb !important;
    border-top: 1px solid rgba(90, 70, 90, 0.1) !important;
}

.kyo-modal-system--error .modal-header { background: linear-gradient(135deg, #ffebee, #fff) !important; }
.kyo-modal-system--error .kyo-modal-msg { color: #c62828 !important; }
.kyo-modal-system--success .modal-header { background: linear-gradient(135deg, #e8f5e9, #fff) !important; }
.kyo-modal-system--success .kyo-modal-msg { color: #2e7d32 !important; }
.kyo-modal-system--warn .modal-header, .kyo-modal-system--confirm .modal-header { background: linear-gradient(135deg, #fff3e0, #fff) !important; }
.kyo-modal-system--warn .kyo-modal-msg, .kyo-modal-system--confirm .kyo-modal-msg { color: #e65100 !important; }

.alert-danger { background: #ffebee !important; color: #c62828 !important; border-radius: 12px !important; }
.alert-warning { background: #fff3e0 !important; color: #e65100 !important; border-radius: 12px !important; }
.alert-success { background: #e8f5e9 !important; color: #2e7d32 !important; border-radius: 12px !important; }

.rp-row-actions { background: #fff9fb !important; border: 1px solid rgba(90, 70, 90, 0.1) !important; }
.rp-act { background: #fff !important; }
.rp-act-edit i { color: #8bc34a !important; }
.rp-act-del i { color: #e57373 !important; }
.rp-grid-id {
    background: #e8f5e0;
    border: 1px solid rgba(181, 217, 156, 0.5);
    border-radius: 8px;
    padding: 2px 8px;
    font-weight: 700;
    color: #8bc34a;
    font-size: 0.82rem;
}

.dropdown-menu { background: #fff !important; border: 1px solid rgba(90, 70, 90, 0.1) !important; }
.dropdown-item { color: #3d3548 !important; }
.dropdown-item:hover { background: #fce4ec !important; color: #e8879f !important; }
.filter-bar { background: #fff9fb !important; border: 1px solid rgba(90, 70, 90, 0.1) !important; }

.select2-container--default .select2-selection--single {
    background: #fff !important;
    border: 1.5px solid rgba(90, 70, 90, 0.16) !important;
    border-radius: 12px !important;
}
.select2-container .select2-selection--multiple {
    background-color: #fff !important;
    border: 1.5px solid rgba(90, 70, 90, 0.16) !important;
    border-radius: 12px !important;
}
.select2-container .select2-selection--multiple .select2-selection__choice {
    background: #fce4ec !important;
    border: 1px solid rgba(244, 164, 184, 0.35) !important;
    color: #3d3548 !important;
}
.select2-dropdown,
.select2-search__field {
    background: #fff !important;
    border: 1px solid rgba(90, 70, 90, 0.12) !important;
    color: #3d3548 !important;
    box-shadow: 0 10px 30px rgba(90, 70, 90, 0.12) !important;
}
.select2-results__option {
    color: #3d3548 !important;
}
.select2-results__option--highlighted { background: #fce4ec !important; color: #e8879f !important; }

.rp-page .dt-dark-wrap.rp-table-wrap,
.page-99 .dt-dark-wrap.rp-table-wrap {
    background: #fff !important;
    border: 1px solid rgba(90, 70, 90, 0.1) !important;
    box-shadow: 0 2px 16px rgba(90, 70, 90, 0.06) !important;
}

.tri-chips {
    border: 1px solid rgba(90, 70, 90, 0.16) !important;
    background: #fff9fb !important;
}
.tri-chips .chip {
    color: #7a7088 !important;
}
.tri-chips .chip:hover {
    background: #fce4ec !important;
}
.tri-chips .chip.active[data-val="all"] {
    background: linear-gradient(180deg, #fce4ec, #f4a4b8) !important;
    color: #3d3548 !important;
}

.rp-grid-filtros-wrap .rp-filtros-badge {
    background: #fce4ec !important;
    border: 1px solid rgba(244, 164, 184, 0.35) !important;
    color: #e8879f !important;
}

.rp-view-btn:hover:not(.is-active),
.cg-view-btn:hover:not(.is-active) {
    background: #fce4ec !important;
    color: #e8879f !important;
}

.rp-data-card.is-selected,
.cg-data-card.is-selected {
    border-color: rgba(139, 195, 74, 0.55) !important;
    background: linear-gradient(135deg, #e8f5e0, #fff) !important;
    box-shadow: 0 0 0 1px rgba(139, 195, 74, 0.25), inset 4px 0 0 #8bc34a, 0 10px 28px rgba(139, 195, 74, 0.12) !important;
}

.rp-data-card, .cg-data-card { background: #fff !important; border: 1px solid rgba(90, 70, 90, 0.1) !important; }
.dash-kpi h3 { color: #e8879f !important; }
.config-card { background: #fff !important; }
.config-card:hover { background: #fce4ec !important; border-color: #f4a4b8 !important; }
.ax-chip.active { background: #fce4ec !important; border-color: #f4a4b8 !important; color: #e8879f !important; }

.btn-exportar-excel { background: linear-gradient(135deg, #81c784, #66bb6a) !important; color: #fff !important; }
.btn-exportar-pdf { background: linear-gradient(135deg, #e57373, #ef5350) !important; color: #fff !important; }
.btn-exportar-print { background: linear-gradient(135deg, #64b5f6, #42a5f5) !important; color: #fff !important; }

.pg-resumen-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, #f3edf8 0%, #fce4ec 55%, #fff5f8 100%);
    border-bottom: 1px solid rgba(90, 70, 90, 0.08);
}
.pg-kpi-mini {
    background: #fff;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    text-align: left;
    box-shadow: 0 1px 8px rgba(90, 70, 90, 0.05);
    border: 1px solid rgba(244, 164, 184, 0.2);
    border-left: 3px solid #e8879f;
    min-width: 0;
}
.pg-kpi-mini.pg-kpi-sage { border-left-color: #8bc34a; }
.pg-kpi-mini.pg-kpi-sky { border-left-color: #0288d1; }
.pg-kpi-mini .pg-kpi-label {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a7088;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.2rem;
}
.pg-kpi-mini .pg-kpi-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #e8879f;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    word-break: break-word;
}
.pg-kpi-mini.pg-kpi-sage .pg-kpi-value { color: #689f38; }
.pg-kpi-mini.pg-kpi-sky .pg-kpi-value { color: #0277bd; }
@media (max-width: 992px) {
    .pg-resumen-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .pg-resumen-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.pg-tab-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1rem 0; }
.pg-form-grid .form-control { background: #fff9fb !important; }
.pg-form-grid .form-control:focus { background: #fff !important; }

/* Pisa reglas oscuras residuales de DisenoPantallas / CDN DataTables */
table.dataTable.display tbody tr:nth-child(odd) td,
table.dataTable.display tbody tr:nth-child(even) td,
table.dataTable.stripe tbody tr.odd td,
table.dataTable.stripe tbody tr.even td {
    background-color: #fff !important;
    background-image: none !important;
    color: #3d3548 !important;
}
table.dataTable.display tbody tr:nth-child(even) td,
table.dataTable.stripe tbody tr.even td {
    background-color: #fff9fb !important;
}
table.dataTable.display tbody tr:hover td,
table.dataTable tbody tr:hover td {
    background-color: #fce4ec !important;
}
.dt-dark-wrap .dataTables_scrollBody {
    background: #fff !important;
}
.page-99 .dataTables_wrapper .dataTables_filter input,
.page-99 .dataTables_wrapper .dataTables_length select {
    background: #fff !important;
    color: #3d3548 !important;
    border: 1.5px solid rgba(90, 70, 90, 0.16) !important;
}
.page-99 .dataTables_wrapper .dataTables_paginate {
    background: #fff9fb !important;
    border: 1px solid rgba(90, 70, 90, 0.1) !important;
}
.colorEncabezado .modal-title,
.colorEncabezadoModales .modal-title {
    color: #3d3548 !important;
}

/* === Bloque final: pisa cualquier resto oscuro de DisenoPantallas / módulos === */
.dt-dark tbody tr,
.dt-dark tbody td,
.dt-dark thead th {
    color: #3d3548 !important;
}

.filter-bar {
    background: #fff9fb !important;
    border: 1px solid rgba(90, 70, 90, 0.1) !important;
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: #f4a4b8 !important;
    box-shadow: 0 0 0 3px rgba(244, 164, 184, 0.2) !important;
}

.select2-container .select2-selection__rendered {
    color: #3d3548 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #7a7088 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #f4a4b8, #e8879f) !important;
    color: #fff !important;
    border: 1px solid rgba(232, 135, 159, 0.4) !important;
    box-shadow: 0 2px 8px rgba(244, 164, 184, 0.25) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: rgba(122, 112, 136, 0.45) !important;
}

.modal-body .form-label.text-white,
.modal-body label.text-white {
    color: #7a7088 !important;
}

.modal-body .text-black {
    color: #3d3548 !important;
}

/* === GridViewMode — tema pastel === */
.rp-view-switch,
.cg-view-switch {
    border: 1px solid rgba(90, 70, 90, 0.12) !important;
    background: #fff9fb !important;
}

.rp-view-switch-label,
.cg-view-switch-label {
    color: #7a7088 !important;
}

.rp-view-btn,
.cg-view-btn {
    color: #7a7088 !important;
}

.rp-view-btn.is-active,
.cg-view-btn.is-active {
    background: linear-gradient(135deg, #f4a4b8, #e8879f) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(244, 164, 184, 0.3) !important;
}

.rp-view-btn:hover:not(.is-active),
.cg-view-btn:hover:not(.is-active) {
    background: #fce4ec !important;
    color: #e8879f !important;
}

.rp-config-prefs {
    border: 1px solid rgba(90, 70, 90, 0.1) !important;
    background: #fff !important;
}

.rp-config-prefs-title {
    color: #3d3548 !important;
}

.rp-config-prefs-sub {
    color: #7a7088 !important;
}

.rp-config-view-opt {
    border: 1px solid rgba(90, 70, 90, 0.12) !important;
    background: #fff9fb !important;
    color: #3d3548 !important;
}

.rp-config-view-opt:hover {
    background: #fce4ec !important;
    border-color: rgba(244, 164, 184, 0.35) !important;
}

.rp-config-view-opt.is-active {
    border-color: rgba(244, 164, 184, 0.55) !important;
    background: linear-gradient(135deg, #fce4ec, #fff9fb) !important;
    box-shadow: 0 4px 16px rgba(244, 164, 184, 0.15) !important;
}

.rp-config-view-opt-icon {
    background: #fce4ec !important;
    color: #e8879f !important;
}

.rp-config-view-opt.is-active .rp-config-view-opt-icon {
    background: rgba(244, 164, 184, 0.35) !important;
    color: #e8879f !important;
}

.rp-config-view-opt-text strong {
    color: #3d3548 !important;
}

.rp-config-view-opt-text small {
    color: #7a7088 !important;
}

.rp-data-card,
.cg-data-card {
    background: #fff !important;
    border: 1px solid rgba(90, 70, 90, 0.1) !important;
    color: #3d3548 !important;
}

.rp-data-card:hover,
.cg-data-card:hover {
    border-color: rgba(244, 164, 184, 0.4) !important;
    box-shadow: 0 8px 24px rgba(244, 164, 184, 0.12) !important;
}

.rp-data-card__title,
.cg-data-card__title {
    color: #3d3548 !important;
}

.rp-data-card__meta,
.cg-data-card__meta {
    color: #7a7088 !important;
}

.colorEncabezadoTabla,
.colorEncabezadoTabla th,
.colorEncabezadoTabla .text-white,
thead.colorEncabezadoTabla th {
    color: #3d3548 !important;
}

.modal-header.colorEncabezado .modal-title.text-white {
    color: #3d3548 !important;
}

/* ===== Historial coloreado ===== */
.kyo-hist-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kyo-hist-empty {
    text-align: center;
    color: #8a8098;
    padding: 2rem 1rem;
    font-weight: 600;
}

.kyo-hist-card {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #fff9fb 100%);
    border: 1px solid rgba(90, 70, 90, 0.1);
    border-radius: 14px;
    padding: 0.95rem 1rem 0.85rem 1.05rem;
    box-shadow: 0 4px 16px rgba(61, 53, 72, 0.06);
    overflow: hidden;
}

.kyo-hist-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.kyo-hist-card--create::before { background: linear-gradient(180deg, #81c784, #a5d6a7); }
.kyo-hist-card--update::before { background: linear-gradient(180deg, #64b5f6, #e8879f); }
.kyo-hist-card--delete::before { background: linear-gradient(180deg, #e57373, #ef9a9a); }

.kyo-hist-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.kyo-hist-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.kyo-hist-badge--create {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid rgba(129, 199, 132, 0.45);
}
.kyo-hist-badge--update {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid rgba(100, 181, 246, 0.45);
}
.kyo-hist-badge--delete {
    background: #ffebee;
    color: #c62828;
    border: 1px solid rgba(229, 115, 115, 0.45);
}

.kyo-hist-time {
    font-size: 0.78rem;
    color: #8a8098;
    font-weight: 600;
}

.kyo-hist-resumo {
    margin: 0.55rem 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #2d2636;
}

.kyo-hist-user {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: #7a7088;
    font-weight: 600;
}

.kyo-hist-user i {
    color: #e8879f;
    margin-right: 0.25rem;
}

.kyo-hist-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kyo-hist-chip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.38rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    border: 1px solid transparent;
}

.kyo-hist-chip--diff {
    background: #fffdf8 !important;
    border-color: rgba(212, 168, 75, 0.35) !important;
    box-shadow: 0 2px 8px rgba(212, 168, 75, 0.12);
    color: inherit !important;
}

.kyo-hist-chip--info,
.kyo-hist-chip--upd {
    background: #f3e8ff;
    border-color: rgba(186, 104, 200, 0.25);
    color: #5e4570;
}

.kyo-hist-chip--add {
    background: #e8f5e9;
    border-color: rgba(129, 199, 132, 0.35);
    color: #2e7d32;
}

.kyo-hist-chip--del {
    background: #ffebee;
    border-color: rgba(229, 115, 115, 0.35);
    color: #c62828;
}

.kyo-hist-field {
    color: #7a7088 !important;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kyo-hist-old {
    padding: 0.12rem 0.45rem !important;
    border-radius: 6px !important;
    background: #ffebee !important;
    color: #c62828 !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 1.5px !important;
    font-weight: 800 !important;
}

.kyo-hist-arrow {
    color: #d4a84b !important;
    font-weight: 900 !important;
}

.kyo-hist-new {
    padding: 0.12rem 0.45rem !important;
    border-radius: 6px !important;
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.kyo-hist-val {
    color: #3d3548 !important;
    font-weight: 800;
}

/* Variación de precios (Proveedores-Insumos) */
.kyo-hist-origen {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #f0eef3;
    color: #6b6280;
}
.kyo-hist-origen--import {
    background: #e8f0fe;
    color: #1a56c4;
}
.kyo-hist-prices {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.55rem 0 0.35rem;
}
.kyo-hist-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    font-size: 0.86rem;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(90, 70, 100, 0.08);
}
.kyo-hist-price-row--same {
    opacity: 0.85;
}
.kyo-hist-price-label {
    min-width: 7.2rem;
    font-weight: 700;
    color: #5c5368;
}
.kyo-hist-price-val {
    font-weight: 800;
    color: #3d3548;
    font-variant-numeric: tabular-nums;
}
.kyo-hist-var {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.kyo-hist-var--up {
    background: #fdecea;
    color: #c62828;
}
.kyo-hist-var--down {
    background: #e8f5e9;
    color: #2e7d32;
}
.kyo-hist-var--flat {
    background: #f3f1f5;
    color: #6b6280;
}
.kyo-hist-card--price-up {
    box-shadow: inset 0 0 0 1px rgba(198, 40, 40, 0.12);
}
.kyo-hist-card--price-down {
    box-shadow: inset 0 0 0 1px rgba(46, 125, 50, 0.14);
}

/* Busy lock buttons (anti doble-submit) */
button.is-busy,
.btn.is-busy,
input[type="submit"].is-busy {
    cursor: wait !important;
    pointer-events: none;
    opacity: 0.85;
}

button.is-busy .spinner-border,
.btn.is-busy .spinner-border {
    vertical-align: -0.125em;
}

