/*
 * Cristal estilo visionOS para todo el backend de esta instalación (AjustesLocales).
 * Lo enlaza Extension/View/MenuTemplate_HeadEnd_99.html.twig, después de GesDix y
 * liquid-glass. Todo cuelga de html.rtc-glass: sin JS queda el diseño original.
 */
@import url("rtc-glass.css?v=2");

/* ---------- Navegación entre páginas: fundido nativo, menú y barra quietos ---------- */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}
html.rtc-glass .left-sidebar.with-vertical { view-transition-name: rtc-sidebar; }
html.rtc-glass .app-header { view-transition-name: rtc-header; }
::view-transition-group(root) { animation-duration: 260ms; }
::view-transition-old(root) { animation: rtc-vt-out 200ms ease both; }
::view-transition-new(root) { animation: rtc-vt-in 280ms var(--g-spring-soft, ease) both; }
@keyframes rtc-vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes rtc-vt-in { from { opacity: 0; filter: blur(6px); transform: scale(.99); } }

/* A partir de la 2.ª página de la sesión la foto está desde el primer pintado. */
html.rtc-glass-quick::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background: url("../Images/rtc-glass-bg.webp") center 42% / cover no-repeat;
}
@media (max-width: 760px) and (orientation: portrait) {
    html.rtc-glass-quick::before { background-image: url("../Images/rtc-glass-bg-sm.webp"); background-position: center 30%; }
}
html.rtc-glass-quick .rtc-bg { background: transparent; }
html.rtc-glass-quick .rtc-bg__img { transition: none; transform: none; }
html.rtc-glass-quick .rtc-g-enter { animation: none; }

html.rtc-glass-pending :is(.left-sidebar, .app-header, .body-wrapper > .pt-4, .body-wrapper :is(.card, .tab-content, .app-calendar-wrapper)) { opacity: 0; }

/* ---------- Base y variables de Bootstrap (modo oscuro de cristal) ---------- */
html.rtc-glass[data-bs-theme=dark] {
    --bs-body-bg: rgba(18, 22, 36, .5);
    --bs-body-bg-rgb: 18, 22, 36;
    --bs-body-color: rgba(255, 255, 255, .92);
    --bs-body-color-rgb: 255, 255, 255;
    --bs-emphasis-color: #fff;
    --bs-heading-color: #fff;
    --bs-secondary-color: rgba(255, 255, 255, .7);
    --bs-tertiary-color: rgba(255, 255, 255, .55);
    --bs-secondary-bg: rgba(255, 255, 255, .08);
    --bs-tertiary-bg: rgba(255, 255, 255, .05);
    --bs-border-color: rgba(255, 255, 255, .14);
    --bs-border-color-translucent: rgba(255, 255, 255, .14);
    --bs-link-color: #93c5fd;
    --bs-link-color-rgb: 147, 197, 253;
    --bs-link-hover-color: #bfdbfe;
    --bs-link-hover-color-rgb: 191, 219, 254;
    --bs-primary: #60a5fa;
    --bs-primary-rgb: 96, 165, 250;
    --bs-focus-ring-color: rgba(59, 130, 246, .35);
}
html.rtc-glass body,
html.rtc-glass body.rtc-calendar-page {
    color: var(--g-text);
    background: transparent !important;
    font-family: var(--g-font) !important;
    letter-spacing: 0;
}
html.rtc-glass :is(#main-wrapper, .page-wrapper, .body-wrapper, .body-wrapper-inner) { background: transparent !important; }
html.rtc-glass :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) { color: #fff; }
html.rtc-glass :is(.text-dark, .text-body, .text-black):not(.badge):not(.btn):not(.bg-warning):not(.bg-light):not(.bg-white) { color: #fff !important; }
html.rtc-glass :is(.text-muted, .text-secondary, .form-text) { color: var(--g-text-3) !important; }
html.rtc-glass .text-primary { color: #93c5fd !important; }
html.rtc-glass .text-success { color: #6ee7b7 !important; }
html.rtc-glass .text-danger { color: #fca5a5 !important; }
html.rtc-glass .text-warning { color: #fcd34d !important; }
html.rtc-glass .text-info { color: #7dd3fc !important; }
html.rtc-glass :is(.bg-white, .bg-light, .bg-body, .bg-body-tertiary, .bg-body-secondary):not(.badge) { background-color: transparent !important; }
html.rtc-glass :is(.border, .border-top, .border-bottom, .border-start, .border-end) { border-color: rgba(255, 255, 255, .12) !important; }
html.rtc-glass hr { border-color: rgba(255, 255, 255, .2); opacity: 1; }
html.rtc-glass ::selection { color: #0f172a; background: rgba(191, 219, 254, .9); }

/* ---------- Material de cristal ---------- */
/* Paneles de primer nivel: desenfoque real. Los anidados solo son translúcidos (rendimiento). */
html.rtc-glass :is(#main-wrapper, body) :is(.left-sidebar.with-vertical, .app-header, .tab-content, .card:not(:is(.card, .tab-content, .modal, .offcanvas, .rtc-g-flat) .card)) {
    color: var(--g-text);
    background: var(--g-sheen), var(--g-noise), linear-gradient(var(--g-fill, var(--g-tint)), var(--g-fill, var(--g-tint))) !important;
    -webkit-backdrop-filter: blur(var(--g-blur)) saturate(160%) !important;
    backdrop-filter: blur(var(--g-blur)) saturate(160%) !important;
    border: 1px solid var(--g-border) !important;
    border-radius: var(--g-radius) !important;
    box-shadow: var(--g-highlight), var(--g-shadow) !important;
}
html.rtc-glass :is(#main-wrapper, body) :is(.card, .tab-content) :is(.card, .list-group-item) {
    color: var(--g-text);
    background: rgba(255, 255, 255, .05) !important;
    border-color: rgba(255, 255, 255, .12) !important;
    box-shadow: none !important;
}
html.rtc-glass .tab-content { --g-radius: 0 24px 24px 24px; }
html.rtc-glass :is(.card-header, .card-footer) { color: #fff; background: rgba(255, 255, 255, .05) !important; border-color: rgba(255, 255, 255, .1) !important; }
html.rtc-glass .card-header:first-child { border-radius: var(--g-radius) var(--g-radius) 0 0 !important; }
html.rtc-glass .card-footer:last-child { border-radius: 0 0 var(--g-radius) var(--g-radius) !important; }
html.rtc-glass :is(.card, .tab-content, .app-calendar-wrapper).rtc-g { position: relative; }
html.rtc-glass :is(.card, .tab-content, .app-calendar-wrapper).rtc-g:hover { border-color: var(--g-border-hover) !important; }
html.rtc-glass .shadow { box-shadow: var(--g-highlight), var(--g-shadow) !important; }

/* Ventanas flotantes: cristal más oscuro y más blur. */
html.rtc-glass :is(.modal-content, .offcanvas, .popover, .toast) {
    color: var(--g-text);
    background: var(--g-sheen), var(--g-noise), rgba(20, 24, 38, .74) !important;
    -webkit-backdrop-filter: blur(34px) saturate(170%);
    backdrop-filter: blur(34px) saturate(170%);
    border: 1px solid var(--g-border) !important;
    box-shadow: var(--g-highlight), 0 30px 90px rgba(0, 0, 0, .55) !important;
}
html.rtc-glass .modal-content { overflow: hidden; border-radius: 26px !important; }
html.rtc-glass :is(.modal-header, .modal-footer, .offcanvas-header) { border-color: rgba(255, 255, 255, .1) !important; }
html.rtc-glass .modal-title { color: #fff; font-weight: 600; }
html.rtc-glass .modal-backdrop { --bs-backdrop-bg: #050812; --bs-backdrop-opacity: .45; }
html.rtc-glass .modal-backdrop.show { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.rtc-glass .modal.fade .modal-dialog { transform: translate3d(0, 14px, 0) scale(.97); filter: blur(6px); transition: transform var(--g-spring-ms) var(--g-spring), filter .3s ease; }
html.rtc-glass .modal.show .modal-dialog { transform: none; filter: none; }
html.rtc-glass .offcanvas.offcanvas-end { border-radius: 28px 0 0 28px; }
html.rtc-glass .offcanvas.offcanvas-start { border-radius: 0 28px 28px 0; }
html.rtc-glass :is(.btn-close) { filter: invert(1) grayscale(1) brightness(2); opacity: .7; }
html.rtc-glass dialog {
    color: var(--g-text);
    background: var(--g-sheen), rgba(20, 24, 38, .76) !important;
    -webkit-backdrop-filter: blur(34px) saturate(170%);
    backdrop-filter: blur(34px) saturate(170%);
    border: 1px solid var(--g-border) !important;
    border-radius: 24px !important;
    box-shadow: var(--g-highlight), 0 30px 90px rgba(0, 0, 0, .55) !important;
}
html.rtc-glass dialog::backdrop { background: rgba(5, 8, 18, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.rtc-glass dialog[open] { animation: rtc-g-in var(--g-spring-soft-ms) var(--g-spring-soft) backwards; }

/* ---------- Marco de GesDix ---------- */
html.rtc-glass #main-wrapper[data-layout='vertical'] .left-sidebar.with-vertical { --g-radius: 30px; --g-tint: rgba(18, 22, 36, .36); }
html.rtc-glass #main-wrapper[data-layout='vertical'] .left-sidebar.with-vertical > div { background: transparent !important; }
html.rtc-glass #main-wrapper[data-layout='vertical'] .left-sidebar.with-vertical::before { content: none !important; }
html.rtc-glass .left-sidebar .brand-logo .gd-logo-full { filter: brightness(0) invert(1); opacity: .95; }
html.rtc-glass #main-wrapper[data-layout='vertical'] .left-sidebar .sidebar-nav ul .sidebar-item .sidebar-link {
    position: relative;
    z-index: 1;
    color: var(--g-text-2) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    transition: color .2s ease;
}
html.rtc-glass #main-wrapper[data-layout='vertical'] .left-sidebar .sidebar-nav ul .sidebar-item .sidebar-link :is(i, .menu-title, .hide-menu) { color: inherit !important; }
html.rtc-glass #main-wrapper[data-layout='vertical'] .left-sidebar .sidebar-nav ul .sidebar-item .sidebar-link:hover { color: #fff !important; }
/* Opción activa: pastilla blanca sólida con texto oscuro. */
html.rtc-glass #main-wrapper[data-layout='vertical'] .left-sidebar .sidebar-nav ul .sidebar-item .sidebar-link.active,
html.rtc-glass #main-wrapper[data-layout='vertical'] .left-sidebar .sidebar-nav ul .sidebar-item .first-level .sidebar-item .sidebar-link.active {
    color: #0f172a !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22) !important;
}
html.rtc-glass #main-wrapper[data-layout='vertical'] .left-sidebar .sidebar-item.selected > .sidebar-link:not(.active) { color: #fff !important; background: rgba(255, 255, 255, .1) !important; }
html.rtc-glass #main-wrapper[data-layout='vertical'] .left-sidebar .sidebar-nav .has-arrow::after { border-color: currentColor !important; }
html.rtc-glass #sidebarnav { position: relative; }
html.rtc-glass #sidebarnav > .rtc-g-indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    list-style: none;
    pointer-events: none;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    opacity: 0;
    transition: transform var(--g-spring-ms) var(--g-spring), width var(--g-spring-ms) var(--g-spring), height var(--g-spring-ms) var(--g-spring), opacity .25s ease;
}

html.rtc-glass #main-wrapper .app-header { --g-radius: 999px; --g-tint: rgba(18, 22, 36, .3); width: auto; margin: 14px 20px 0; }
html.rtc-glass .app-header :is(.logo-text, .nav-link, .nav-link i) { color: var(--g-text) !important; }
html.rtc-glass .app-header .logo-text { font-weight: 600; letter-spacing: -.01em; }
html.rtc-glass .app-header .nav-link { border-radius: 50%; transition: background-color .2s ease, transform .18s var(--g-spring); }
html.rtc-glass .app-header .nav-link:hover { background: rgba(255, 255, 255, .14); }
html.rtc-glass .app-header .nav-link:active { transform: scale(.94); }
html.rtc-glass .app-header #drop2 {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(203, 213, 225, .85));
    border-radius: 50%;
    box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(0, 0, 0, .25);
}
html.rtc-glass .app-header #drop2 i { color: #1e293b !important; font-size: 1.15rem; }
html.rtc-glass .app-header .nav-item[title] { position: relative; }
html.rtc-glass :is(.app-header .nav-item[title], #rtc-open-settings)::after {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 30;
    padding: 6px 10px;
    content: attr(title);
    color: #fff;
    background: rgba(22, 27, 42, .7);
    border: 1px solid var(--g-border);
    border-radius: 10px;
    font-size: .74rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    filter: blur(4px);
    transform: translate(-50%, -6px);
    transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}
html.rtc-glass #rtc-open-settings::after { content: attr(aria-label); }
html.rtc-glass :is(.app-header .nav-item[title], #rtc-open-settings):hover::after { opacity: 1; filter: none; transform: translate(-50%, 0); }

/* Avisos (setToast): cristal que entra arriba a la derecha. */
html.rtc-glass #messages-toasts { top: 18px !important; right: 18px !important; bottom: auto !important; left: auto !important; transform: none !important; }
html.rtc-glass #messages-toasts .toast { border-radius: 18px; animation: rtc-toast-in var(--g-spring-ms) var(--g-spring) backwards; }
html.rtc-glass .toast-header { color: #fff; background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .12); }
@keyframes rtc-toast-in { from { opacity: 0; transform: translate3d(24px, -12px, 0) scale(.97); filter: blur(6px); } }

/* ---------- Botones ---------- */
html.rtc-glass :is(#main-wrapper, body) .btn {
    --bs-btn-border-radius: 999px;
    border-radius: var(--bs-btn-border-radius);
    font-weight: 600;
    /* Ya están sobre cristal: sin desenfoque propio (rendimiento). */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: transform .18s var(--g-spring), background-color .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease, filter .2s ease;
}
html.rtc-glass :is(#main-wrapper, body) :is(.btn-group, .input-group) > .btn { --bs-btn-border-radius: 12px; }
html.rtc-glass :is(#main-wrapper, body) .btn:hover { transform: translateY(-1px); }
html.rtc-glass :is(#main-wrapper, body) .btn:active:not(:disabled) { transform: scale(.96); }
html.rtc-glass :is(#main-wrapper, body) :is(.btn-light, .btn-secondary, .btn-outline-secondary, .btn-outline-dark, .btn-outline-light, .btn-link.btn-sm) {
    color: #fff !important;
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 18px rgba(0, 0, 0, .16) !important;
}
html.rtc-glass :is(#main-wrapper, body) :is(.btn-light, .btn-secondary, .btn-outline-secondary, .btn-outline-dark, .btn-outline-light):is(:hover, .active, :focus-visible) { background: rgba(255, 255, 255, .2) !important; border-color: rgba(255, 255, 255, .36) !important; }
html.rtc-glass :is(#main-wrapper, body) .btn-primary {
    color: #fff !important;
    background: linear-gradient(145deg, rgba(96, 165, 250, .95), rgba(37, 99, 235, .92)) !important;
    border: 1px solid rgba(191, 219, 254, .5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 28px rgba(37, 99, 235, .4) !important;
}
html.rtc-glass :is(#main-wrapper, body) .btn-success {
    color: #fff !important;
    background: linear-gradient(145deg, rgba(52, 211, 153, .9), rgba(5, 150, 105, .88)) !important;
    border: 1px solid rgba(167, 243, 208, .5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 28px rgba(16, 185, 129, .35) !important;
}
html.rtc-glass :is(#main-wrapper, body) .btn-danger {
    color: #fff !important;
    background: linear-gradient(145deg, rgba(248, 113, 113, .9), rgba(220, 38, 38, .88)) !important;
    border: 1px solid rgba(254, 202, 202, .5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 28px rgba(220, 38, 38, .32) !important;
}
html.rtc-glass :is(#main-wrapper, body) .btn-warning {
    color: #1f1300 !important;
    background: linear-gradient(145deg, rgba(252, 211, 77, .95), rgba(245, 158, 11, .92)) !important;
    border: 1px solid rgba(254, 240, 138, .6) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 28px rgba(245, 158, 11, .3) !important;
}
html.rtc-glass :is(#main-wrapper, body) .btn-info {
    color: #fff !important;
    background: linear-gradient(145deg, rgba(56, 189, 248, .9), rgba(2, 132, 199, .88)) !important;
    border: 1px solid rgba(186, 230, 253, .5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 28px rgba(14, 165, 233, .3) !important;
}
html.rtc-glass :is(#main-wrapper, body) :is(.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info):hover { filter: brightness(1.08); }
html.rtc-glass :is(#main-wrapper, body) :is(.btn-outline-primary, .btn-outline-success, .btn-outline-danger, .btn-outline-warning, .btn-outline-info) { background: rgba(255, 255, 255, .06) !important; box-shadow: none !important; }
html.rtc-glass :is(#main-wrapper, body) .btn-outline-primary { color: #bfdbfe !important; border-color: rgba(147, 197, 253, .55) !important; }
html.rtc-glass :is(#main-wrapper, body) .btn-outline-success { color: #a7f3d0 !important; border-color: rgba(110, 231, 183, .55) !important; }
html.rtc-glass :is(#main-wrapper, body) .btn-outline-danger { color: #fecaca !important; border-color: rgba(252, 165, 165, .55) !important; }
html.rtc-glass :is(#main-wrapper, body) .btn-outline-warning { color: #fde68a !important; border-color: rgba(252, 211, 77, .55) !important; }
html.rtc-glass :is(#main-wrapper, body) .btn-outline-info { color: #bae6fd !important; border-color: rgba(125, 211, 252, .55) !important; }
html.rtc-glass :is(#main-wrapper, body) :is(.btn-outline-primary, .btn-outline-success, .btn-outline-danger, .btn-outline-warning, .btn-outline-info):is(:hover, .active) { color: #fff !important; background: rgba(255, 255, 255, .16) !important; }
html.rtc-glass :is(#main-wrapper, body) .btn-link { color: #93c5fd; }

/* ---------- Campos ---------- */
html.rtc-glass :is(.form-control, .form-select, .input-group-text) {
    color: #fff;
    background-color: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .18) !important;
    border-radius: 14px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
html.rtc-glass .input-group > :is(.form-control, .form-select, .input-group-text, .btn) { border-radius: 14px; }
html.rtc-glass .input-group > :not(:last-child):not(.dropdown-menu):not(.dropdown-toggle) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
html.rtc-glass .input-group > :not(:first-child):not(.dropdown-menu) { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
html.rtc-glass .input-group-text { color: var(--g-text-2); }
html.rtc-glass :is(.form-control, .form-select):hover:not(:disabled) { border-color: rgba(255, 255, 255, .32) !important; }
html.rtc-glass :is(.form-control, .form-select):focus { color: #fff; background-color: rgba(255, 255, 255, .12) !important; border-color: rgba(147, 197, 253, .85) !important; box-shadow: 0 0 0 4px rgba(59, 130, 246, .25) !important; }
html.rtc-glass :is(.form-control, .form-select):is(:disabled, [readonly]) { color: var(--g-text-2); background-color: rgba(255, 255, 255, .04) !important; }
html.rtc-glass .form-control::placeholder { color: rgba(255, 255, 255, .5); }
html.rtc-glass :is(.form-label, label, .col-form-label) { color: var(--g-text-2); }
html.rtc-glass input:is([type="date"], [type="time"], [type="datetime-local"], [type="month"])::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }
html.rtc-glass input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 40px rgba(30, 41, 59, .96) inset !important; }
/* Obligatorio (amarillo en GesDix): mismo aviso, en ámbar translúcido. */
html.rtc-glass :is(input, textarea)[required].form-control:not(:read-only),
html.rtc-glass select[required].form-control:not(:disabled) {
    background-image: linear-gradient(rgba(245, 185, 66, .16), rgba(245, 185, 66, .07));
    border-color: rgba(245, 185, 66, .38) !important;
}
html.rtc-glass .form-check-input { background-color: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
html.rtc-glass .form-check-input:checked { background-color: #3b82f6; border-color: #60a5fa; }
html.rtc-glass .form-switch .form-check-input { width: 2.4em; height: 1.35em; transition: background-position .3s var(--g-spring), background-color .2s ease; }
html.rtc-glass .form-switch .form-check-input:checked { background-color: #34d399; border-color: #34d399; }
html.rtc-glass .form-range::-webkit-slider-runnable-track { background: rgba(255, 255, 255, .18); }
html.rtc-glass .form-range::-webkit-slider-thumb { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }

/* ---------- Desplegables ---------- */
/* Flecha clara para todos los <select>. */
html.rtc-glass :is(.form-select, select.form-control) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 16px 16px;
    padding-right: 2.5rem;
}
html.rtc-glass select[required].form-control:not(:disabled) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"), linear-gradient(rgba(245, 185, 66, .16), rgba(245, 185, 66, .07));
    background-repeat: no-repeat, repeat;
    background-position: right .85rem center, 0 0;
    background-size: 16px 16px, auto;
}
html.rtc-glass select :is(option, optgroup) { color: #0f172a; background: #fff; }

/* Lista de opciones en cristal (Chrome 135+ de escritorio; en táctil se deja el selector nativo). */
@supports (appearance: base-select) {
    @media (hover: hover) and (pointer: fine) {
        html.rtc-glass :is(select.form-select, select.form-control):not([multiple]):not([size]):not(.select2-hidden-accessible),
        html.rtc-glass :is(select.form-select, select.form-control):not([multiple]):not([size]):not(.select2-hidden-accessible)::picker(select) {
            appearance: base-select;
        }
        html.rtc-glass :is(select.form-select, select.form-control):not([multiple]):not([size]):not(.select2-hidden-accessible) {
            display: flex;
            align-items: center;
            font: inherit;
            cursor: pointer;
        }
        html.rtc-glass :is(select.form-select, select.form-control)::picker-icon { display: none; }
        html.rtc-glass :is(select.form-select, select.form-control)::picker(select) {
            min-width: anchor-size(width);
            max-height: min(360px, 60vh);
            margin-block: 8px;
            padding: 6px;
            color: #fff;
            background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 45%), rgba(22, 27, 42, .78);
            -webkit-backdrop-filter: blur(30px) saturate(170%);
            backdrop-filter: blur(30px) saturate(170%);
            border: 1px solid rgba(255, 255, 255, .2);
            border-radius: 18px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 24px 60px rgba(0, 0, 0, .5);
            opacity: 0;
            transform: translate3d(0, -6px, 0) scale(.98);
            filter: blur(4px);
            transition: opacity .2s ease, transform .35s var(--g-spring), filter .2s ease, overlay .35s allow-discrete, display .35s allow-discrete;
        }
        html.rtc-glass :is(select.form-select, select.form-control):open::picker(select) { opacity: 1; transform: none; filter: none; }
        @starting-style {
            html.rtc-glass :is(select.form-select, select.form-control):open::picker(select) { opacity: 0; transform: translate3d(0, -6px, 0) scale(.98); filter: blur(4px); }
        }
        html.rtc-glass :is(select.form-select, select.form-control) :is(option, optgroup) { color: #fff; background: transparent; }
        html.rtc-glass :is(select.form-select, select.form-control) option {
            min-height: 38px;
            padding: 8px 12px;
            border-radius: 12px;
            font-size: .92rem;
            transition: background-color .15s ease, color .15s ease;
        }
        html.rtc-glass :is(select.form-select, select.form-control) option:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .14); outline: none; }
        html.rtc-glass :is(select.form-select, select.form-control) option:checked { color: #0f172a; background: rgba(255, 255, 255, .94); font-weight: 600; }
        html.rtc-glass :is(select.form-select, select.form-control) option::checkmark { display: none; }
        html.rtc-glass :is(select.form-select, select.form-control) option:disabled { color: rgba(255, 255, 255, .4); }
        html.rtc-glass :is(select.form-select, select.form-control) optgroup { padding: 6px 4px 2px; color: var(--g-text-3); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
    }
}

/* Menús .dropdown-menu (Opciones, imprimir, usuario…). */
html.rtc-glass .dropdown-menu {
    --bs-dropdown-link-color: rgba(255, 255, 255, .86);
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-active-color: #0f172a;
    --bs-dropdown-header-color: var(--g-text-3);
    --bs-dropdown-divider-bg: rgba(255, 255, 255, .12);
    padding: 6px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 45%), rgba(22, 27, 42, .78) !important;
    -webkit-backdrop-filter: blur(30px) saturate(170%);
    backdrop-filter: blur(30px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 18px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 24px 60px rgba(0, 0, 0, .5) !important;
}
html.rtc-glass .dropdown-menu.show { animation: rtc-menu-in .32s var(--g-spring) backwards; }
@keyframes rtc-menu-in { from { opacity: 0; transform: translate3d(0, -6px, 0) scale(.98); filter: blur(4px); } }
html.rtc-glass .dropdown-item { padding: .55rem .8rem; color: var(--bs-dropdown-link-color); border-radius: 12px; transition: background-color .15s ease, color .15s ease; }
html.rtc-glass .dropdown-item:is(:hover, :focus) { color: #fff; background: rgba(255, 255, 255, .14); }
html.rtc-glass .dropdown-item:is(.active, :active) { color: #0f172a; background: rgba(255, 255, 255, .94); }
html.rtc-glass .dropdown-item i { opacity: .8; }
html.rtc-glass .dropdown-header { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* select2. */
html.rtc-glass .select2-container--bootstrap-5 .select2-selection,
html.rtc-glass .select2-container--default .select2-selection {
    min-height: 44px;
    color: #fff;
    background-color: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .18) !important;
    border-radius: 14px !important;
}
html.rtc-glass .select2-container .select2-selection__rendered { color: #fff !important; }
html.rtc-glass .select2-container .select2-selection__placeholder { color: rgba(255, 255, 255, .5) !important; }
html.rtc-glass .select2-container .select2-selection__choice { color: #fff !important; background: rgba(255, 255, 255, .14) !important; border-color: rgba(255, 255, 255, .22) !important; border-radius: 999px !important; }
html.rtc-glass .select2-container--focus .select2-selection { border-color: rgba(147, 197, 253, .85) !important; box-shadow: 0 0 0 4px rgba(59, 130, 246, .25) !important; }
html.rtc-glass .select2-dropdown {
    padding: 6px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 45%), rgba(22, 27, 42, .82) !important;
    -webkit-backdrop-filter: blur(30px) saturate(170%);
    backdrop-filter: blur(30px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    animation: rtc-menu-in .32s var(--g-spring) backwards;
}
html.rtc-glass .select2-search__field { color: #fff !important; background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .18) !important; border-radius: 10px !important; }
html.rtc-glass .select2-results__option { color: rgba(255, 255, 255, .86) !important; border-radius: 12px; }
html.rtc-glass .select2-results__option--highlighted { color: #fff !important; background: rgba(255, 255, 255, .14) !important; }
html.rtc-glass .select2-results__option--selected,
html.rtc-glass .select2-results__option[aria-selected="true"] { color: #0f172a !important; background: rgba(255, 255, 255, .94) !important; }

/* Autocompletado (jQuery UI): buscador de clientes de Nueva cita, etc. */
html.rtc-glass .ui-autocomplete.ui-menu {
    z-index: 2000;
    padding: 6px;
    color: #fff;
    background: rgba(22, 27, 42, .82) !important;
    -webkit-backdrop-filter: blur(30px) saturate(170%);
    backdrop-filter: blur(30px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
html.rtc-glass .ui-menu .ui-menu-item-wrapper { padding: 8px 12px; color: rgba(255, 255, 255, .86); border: 0 !important; border-radius: 12px; }
html.rtc-glass .ui-menu .ui-menu-item-wrapper.ui-state-active { color: #0f172a; background: rgba(255, 255, 255, .94) !important; }

/* flatpickr (desplegable y en línea). */
html.rtc-glass .flatpickr-calendar:not(.inline) {
    background: rgba(22, 27, 42, .82) !important;
    -webkit-backdrop-filter: blur(30px) saturate(170%);
    backdrop-filter: blur(30px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5) !important;
}
html.rtc-glass .flatpickr-calendar::before,
html.rtc-glass .flatpickr-calendar::after { display: none; }
html.rtc-glass .flatpickr-calendar.inline { background: transparent !important; box-shadow: none !important; }
html.rtc-glass :is(.flatpickr-months .flatpickr-month, .flatpickr-current-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year, .rtc-calendar-page .flatpickr-current-month) { color: #fff !important; fill: #fff !important; background: transparent; }
html.rtc-glass .flatpickr-monthDropdown-months option { color: #0f172a; }
html.rtc-glass :is(.flatpickr-prev-month, .flatpickr-next-month) svg { fill: #fff !important; }
html.rtc-glass :is(.flatpickr-weekday, .rtc-calendar-page .flatpickr-weekday) { color: var(--g-text-3) !important; background: transparent; }
html.rtc-glass body .flatpickr-day { color: #fff; border-radius: 999px; }
html.rtc-glass body .flatpickr-day:is(:hover, :focus) { color: #fff; background: rgba(255, 255, 255, .14); border-color: transparent; }
html.rtc-glass body .flatpickr-day:is(.prevMonthDay, .nextMonthDay, .flatpickr-disabled) { color: rgba(255, 255, 255, .35); }
html.rtc-glass body .flatpickr-day.today { color: #bfdbfe; border-color: rgba(147, 197, 253, .55); }
html.rtc-glass body .flatpickr-day:is(.selected, .selected:hover, .startRange, .endRange) { color: #0f172a !important; background: #fff !important; border-color: #fff !important; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
html.rtc-glass body .flatpickr-day.inRange { background: rgba(255, 255, 255, .14); border-color: transparent; box-shadow: none; }

/* ---------- Tablas y listas ---------- */
html.rtc-glass .table {
    --bs-table-bg: transparent;
    --bs-table-color: rgba(255, 255, 255, .9);
    --bs-table-striped-bg: rgba(255, 255, 255, .03);
    --bs-table-striped-color: #fff;
    --bs-table-hover-bg: rgba(255, 255, 255, .07);
    --bs-table-hover-color: #fff;
    --bs-table-active-bg: rgba(255, 255, 255, .1);
    --bs-table-border-color: rgba(255, 255, 255, .08);
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}
html.rtc-glass .table > :not(caption) > * > * { color: var(--bs-table-color); border-bottom-color: var(--bs-table-border-color); }
html.rtc-glass .table thead th,
html.rtc-glass .table th {
    color: var(--g-text-3) !important;
    background: transparent !important;
    border-bottom-color: rgba(255, 255, 255, .14) !important;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
html.rtc-glass .table th a { color: inherit !important; }
html.rtc-glass .table tbody tr { transition: background-color .15s ease; }
/* Colores de estado de FacturaScripts (table-*) como tintes translúcidos. */
html.rtc-glass .table :is(tr, td, th):is(.table-primary) { --bs-table-bg: rgba(59, 130, 246, .16); --bs-table-hover-bg: rgba(59, 130, 246, .24); }
html.rtc-glass .table :is(tr, td, th):is(.table-info) { --bs-table-bg: rgba(56, 189, 248, .13); --bs-table-hover-bg: rgba(56, 189, 248, .22); }
html.rtc-glass .table :is(tr, td, th):is(.table-success) { --bs-table-bg: rgba(52, 211, 153, .14); --bs-table-hover-bg: rgba(52, 211, 153, .22); }
html.rtc-glass .table :is(tr, td, th):is(.table-warning) { --bs-table-bg: rgba(245, 185, 66, .15); --bs-table-hover-bg: rgba(245, 185, 66, .24); }
html.rtc-glass .table :is(tr, td, th):is(.table-danger) { --bs-table-bg: rgba(248, 113, 113, .15); --bs-table-hover-bg: rgba(248, 113, 113, .24); }
html.rtc-glass .table :is(tr, td, th):is(.table-secondary, .table-light, .table-dark) { --bs-table-bg: rgba(255, 255, 255, .06); --bs-table-hover-bg: rgba(255, 255, 255, .12); }
html.rtc-glass .table :is(tr, td, th):is(.table-primary, .table-info, .table-success, .table-warning, .table-danger, .table-secondary, .table-light, .table-dark) { --bs-table-color: #fff; --bs-table-hover-color: #fff; --bs-table-border-color: rgba(255, 255, 255, .08); color: #fff; }
/* custom.css pinta .table-warning en el <tr> (detrás de las celdas): fuera. */
html.rtc-glass .table tr[class*="table-"] { background-color: transparent !important; }
html.rtc-glass .table-responsive { border-color: rgba(255, 255, 255, .1) !important; }
html.rtc-glass .clickableRow,
html.rtc-glass .clickableListRow { cursor: pointer; }
html.rtc-glass .list-group { --bs-list-group-bg: transparent; --bs-list-group-color: #fff; --bs-list-group-border-color: rgba(255, 255, 255, .1); --bs-list-group-action-hover-bg: rgba(255, 255, 255, .08); --bs-list-group-action-hover-color: #fff; --bs-list-group-active-bg: rgba(255, 255, 255, .94); --bs-list-group-active-color: #0f172a; --bs-list-group-active-border-color: transparent; }

/* Pestañas, paginación, migas, insignias y alertas. */
html.rtc-glass .nav-tabs { gap: 6px; border-bottom: 0; }
html.rtc-glass .nav-tabs .nav-link {
    color: var(--g-text-2);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-bottom: 0 !important;
    border-radius: 18px 18px 0 0;
    transition: background-color .2s ease, color .2s ease;
}
html.rtc-glass .nav-tabs .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .13); }
html.rtc-glass .nav-tabs .nav-link.active {
    color: #fff !important;
    background: linear-gradient(rgba(22, 27, 42, .34), rgba(22, 27, 42, .34)) !important;
    -webkit-backdrop-filter: blur(var(--g-blur)) saturate(160%);
    backdrop-filter: blur(var(--g-blur)) saturate(160%);
    border-color: var(--g-border) !important;
}
html.rtc-glass .nav-tabs .nav-link :is(.badge, span.text-primary, .text-primary) { color: #bfdbfe !important; }
html.rtc-glass .nav-pills .nav-link { color: var(--g-text-2); border-radius: 999px; }
html.rtc-glass .nav-pills .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
html.rtc-glass .nav-pills .nav-link.active { color: #0f172a; background: rgba(255, 255, 255, .94); }
html.rtc-glass .pagination { --bs-pagination-color: #fff; --bs-pagination-bg: rgba(255, 255, 255, .08); --bs-pagination-border-color: rgba(255, 255, 255, .16); --bs-pagination-hover-color: #fff; --bs-pagination-hover-bg: rgba(255, 255, 255, .16); --bs-pagination-hover-border-color: rgba(255, 255, 255, .26); --bs-pagination-active-color: #0f172a; --bs-pagination-active-bg: #fff; --bs-pagination-active-border-color: #fff; --bs-pagination-disabled-color: rgba(255, 255, 255, .4); --bs-pagination-disabled-bg: rgba(255, 255, 255, .04); --bs-pagination-disabled-border-color: rgba(255, 255, 255, .1); }
html.rtc-glass :is(.active > .page-link, .page-link.active) { color: #0f172a !important; background-color: #fff !important; border-color: #fff !important; }
html.rtc-glass .page-link { transition: background-color .2s ease, transform .18s var(--g-spring); }
html.rtc-glass .page-link:active { transform: scale(.94); }
html.rtc-glass .breadcrumb-item, html.rtc-glass .breadcrumb-item a { color: var(--g-text-2); }
html.rtc-glass .breadcrumb-item.active { color: #fff; }
html.rtc-glass .badge.bg-light, html.rtc-glass .badge.text-bg-light { color: #0f172a !important; background: rgba(255, 255, 255, .9) !important; }
html.rtc-glass .alert {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
}
html.rtc-glass .alert :is(a, .alert-link) { color: #fff; }
html.rtc-glass .alert-success { background: rgba(52, 211, 153, .2); border-color: rgba(110, 231, 183, .4); }
html.rtc-glass .alert-danger { background: rgba(248, 113, 113, .22); border-color: rgba(252, 165, 165, .45); }
html.rtc-glass .alert-warning { background: rgba(245, 185, 66, .22); border-color: rgba(252, 211, 77, .45); }
html.rtc-glass .alert-info { background: rgba(56, 189, 248, .2); border-color: rgba(125, 211, 252, .45); }
html.rtc-glass .alert-primary { background: rgba(59, 130, 246, .22); border-color: rgba(147, 197, 253, .45); }
html.rtc-glass .progress { background: rgba(255, 255, 255, .1); border-radius: 999px; }

/* ---------- Agenda (Calendario: FullCalendar + calendar-premium + vista por responsables) ---------- */
html.rtc-glass .rtc-calendar-heading h1 { color: #fff; font-weight: 600; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
html.rtc-glass .rtc-calendar-heading p { color: var(--g-text-2); }
html.rtc-glass .rtc-calendar-eyebrow { color: rgba(191, 219, 254, .9); }
html.rtc-glass .rtc-live-status { color: #a7f3d0; background: rgba(52, 211, 153, .16); border-color: rgba(110, 231, 183, .32); }
html.rtc-glass .rtc-live-status span { animation: rtc-badge-pulse 2.4s ease-out infinite; }
@keyframes rtc-badge-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
html.rtc-glass .rtc-calendar-page .app-calendar-wrapper {
    background: var(--g-sheen), var(--g-noise), var(--g-tint) !important;
    -webkit-backdrop-filter: blur(var(--g-blur)) saturate(160%);
    backdrop-filter: blur(var(--g-blur)) saturate(160%);
    border: 1px solid var(--g-border) !important;
    border-radius: var(--g-radius) !important;
    box-shadow: var(--g-highlight), var(--g-shadow) !important;
}
/* Dentro del contenedor de la agenda las tarjetas no vuelven a desenfocar. */
html.rtc-glass :is(#main-wrapper, body) .app-calendar-wrapper .card { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 0 !important; box-shadow: none !important; }
html.rtc-glass .rtc-calendar-page :is(.app-calendar-sidebar, .app-calendar-content) { background: transparent; border-color: rgba(255, 255, 255, .1); }
html.rtc-glass .rtc-calendar-page :is(.app-calendar-sidebar > .border-bottom, .app-calendar-sidebar > .p-2) { border-color: rgba(255, 255, 255, .1) !important; }
html.rtc-glass .rtc-calendar-page .rtc-quick-button { background: linear-gradient(145deg, rgba(96, 165, 250, .95), rgba(37, 99, 235, .92)); border: 1px solid rgba(191, 219, 254, .5); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 28px rgba(37, 99, 235, .4); }
html.rtc-glass .rtc-filter-toggle { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
html.rtc-glass .rtc-calendar-page .rtc-filter-panel > .mb-3:first-child { color: var(--g-text-2); }
html.rtc-glass .rtc-calendar-page #btnClearFilters { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); border-radius: 999px; }
html.rtc-glass :is(.modcitassms-legend__item, .modcitassms-legend-horizontal, .modcitassms-legend-title) { color: var(--g-text-2); }
html.rtc-glass .modcitassms-legend__color { border-color: rgba(255, 255, 255, .4); }
html.rtc-glass #repeatFields { background: rgba(255, 255, 255, .05) !important; border-color: rgba(255, 255, 255, .12) !important; border-radius: 16px; }

html.rtc-glass body .fc {
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: rgba(255, 255, 255, .05);
    --fc-neutral-text-color: var(--g-text-3);
    --fc-border-color: rgba(255, 255, 255, .1);
    --fc-today-bg-color: rgba(59, 130, 246, .14);
    --fc-now-indicator-color: #f87171;
    --fc-list-event-hover-bg-color: rgba(255, 255, 255, .08);
    --fc-highlight-color: rgba(255, 255, 255, .1);
    --fc-non-business-color: rgba(0, 0, 0, .14);
    color: #fff;
}
html.rtc-glass body #calendar :is(a, .fc-toolbar-title, .fc-daygrid-day-number, .fc-col-header-cell-cushion, .fc-timegrid-axis-cushion, .fc-timegrid-slot-label-cushion, .fc-list-day-text, .fc-list-day-side-text, .fc-list-event-title, .fc-list-event-time) { color: #fff !important; }
html.rtc-glass body #calendar :is(.fc-col-header-cell-cushion, .fc-timegrid-slot-label-cushion, .fc-timegrid-axis-cushion) { color: var(--g-text-3) !important; letter-spacing: .08em; }
html.rtc-glass body .fc .fc-toolbar-title { font-weight: 600; letter-spacing: -.02em; text-transform: capitalize; }
html.rtc-glass body.rtc-calendar-page .fc-theme-standard th,
html.rtc-glass body .fc-theme-standard th { background: transparent; border-color: rgba(255, 255, 255, .1); }
html.rtc-glass body .fc .fc-scrollgrid { border-color: rgba(255, 255, 255, .1); border-radius: 18px; overflow: hidden; }
html.rtc-glass body .fc .fc-day-other { background: rgba(0, 0, 0, .12); }
html.rtc-glass body .fc .fc-day-other .fc-daygrid-day-number { opacity: .45; }
html.rtc-glass body #calendar .fc-daygrid-day.fc-day-today,
html.rtc-glass body.rtc-calendar-page .fc .fc-day-today { background: rgba(59, 130, 246, .12) !important; }
html.rtc-glass body.rtc-calendar-page .fc .fc-daygrid-day-number { border-radius: 999px; transition: background-color .2s ease; }
html.rtc-glass body.rtc-calendar-page .fc .fc-daygrid-day:hover .fc-daygrid-day-number { background: rgba(255, 255, 255, .12); }
/* Hoy: círculo blanco sólido con número oscuro. */
html.rtc-glass body.rtc-calendar-page #calendar .fc .fc-day-today .fc-daygrid-day-number,
html.rtc-glass body #calendar .fc-day-today .fc-daygrid-day-number { color: #0f172a !important; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
/* Botones de FullCalendar como pastillas de cristal; la vista activa en blanco. */
html.rtc-glass body #calendar :is(.fc-button-primary, .fc-button-group .fc-button),
html.rtc-glass body.rtc-calendar-page .fc .fc-button {
    color: #fff !important;
    background-color: rgba(255, 255, 255, .1) !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16) !important;
    transition: background-color .2s ease, transform .18s var(--g-spring) !important;
}
html.rtc-glass body #calendar .fc-button-group { gap: 4px; }
html.rtc-glass body #calendar :is(.fc-button-primary, .fc-button-group .fc-button):hover { background-color: rgba(255, 255, 255, .2) !important; }
html.rtc-glass body #calendar :is(.fc-button-primary, .fc-button-group .fc-button):active { transform: scale(.95); }
html.rtc-glass body #calendar :is(.fc-button-primary.fc-button-active, .fc-button-group .fc-button.fc-button-active) { color: #0f172a !important; background-color: #fff !important; border-color: #fff !important; }
html.rtc-glass body #calendar :is(.fc-button-primary, .fc-button-group .fc-button):disabled { color: rgba(255, 255, 255, .5) !important; background-color: rgba(255, 255, 255, .05) !important; }
/* Citas: cristal claro; el color del responsable (borde en línea) queda como franja. */
html.rtc-glass body .fc .fc-daygrid-event,
html.rtc-glass body .fc .fc-timegrid-event,
html.rtc-glass body.rtc-calendar-page .fc .fc-event {
    color: #fff !important;
    background: rgba(255, 255, 255, .14) !important;
    border-width: 0 0 0 3px !important;
    border-style: solid !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 12px rgba(0, 0, 0, .18) !important;
    transition: background-color .2s ease, transform .3s var(--g-spring);
}
html.rtc-glass body .fc .fc-event:hover { background: rgba(255, 255, 255, .24) !important; transform: translateY(-1px); }
html.rtc-glass body .fc .fc-event :is(.fc-event-title, .fc-event-time, .fc-event-main, b, strong) { color: #fff !important; }
html.rtc-glass body .fc .fc-daygrid-more-link { color: #bfdbfe; }
html.rtc-glass body .fc .fc-popover { background: rgba(22, 27, 42, .85); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; }
html.rtc-glass body .fc .fc-popover-header { color: #fff; background: rgba(255, 255, 255, .06); }
html.rtc-glass .modcitassms-agent-day-view { background: transparent !important; border-color: rgba(255, 255, 255, .12) !important; border-radius: 18px; }
html.rtc-glass :is(.modcitassms-agent-day-header, .modcitassms-agent-day-times) { background: rgba(255, 255, 255, .05) !important; border-color: rgba(255, 255, 255, .1) !important; }
html.rtc-glass :is(.modcitassms-agent-day-time, .modcitassms-agent-day-time-row) { color: var(--g-text-3) !important; border-color: rgba(255, 255, 255, .06) !important; }
html.rtc-glass .modcitassms-agent-event { color: #0f172a; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }

/* ---------- Entradas del marco (primera página de la sesión) ---------- */
html.rtc-glass-intro .left-sidebar { animation: rtc-g-right 600ms var(--g-spring-soft) 120ms backwards; }
html.rtc-glass-intro .app-header { animation: rtc-g-down 600ms var(--g-spring-soft) 120ms backwards; }
html.rtc-glass-intro .body-wrapper > .pt-4 { animation: rtc-g-down 600ms var(--g-spring-soft) 220ms backwards; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    html.rtc-glass #main-wrapper .app-header { margin: 10px 12px 0; }
}
@media (max-width: 680px) {
    html.rtc-glass { --g-radius: 22px; }
    html.rtc-glass .tab-content { --g-radius: 0 20px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html.rtc-glass-intro :is(.left-sidebar, .app-header, .body-wrapper > .pt-4) { animation: rtc-g-fade .2s ease backwards; }
    html.rtc-glass .modal.fade .modal-dialog { transform: none; filter: none; }
    html.rtc-glass :is(.dropdown-menu.show, .select2-dropdown, #messages-toasts .toast) { animation: none; }
    html.rtc-glass .rtc-live-status span { animation: none; }
    html.rtc-glass :is(.app-header .nav-item[title], #rtc-open-settings)::after { filter: none; transform: translate(-50%, 0); }
}
