@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,500;0,700;1,500;1,700&family=Poppins:wght@400;600;700;800;900&display=swap');

:root {
    /* === Fuentes === */
    --font-heading: 'Poppins', 'Montserrat', sans-serif;
    --font-body: 'Lato', 'Nunito', sans-serif;

    /* === Colores Primarios === */
    --primary-100: #FF3E32; /* Rojo corporativo */
    --primary-200: #003C6F; /* Azul corporativo */
    --primary-300: #000000; /* Negro sólido */
    --primary-400: #F3F5F7; /* Blanco/gris claro fondo principal */

    /* === Colores Secundarios === */
    --secondary-100: #F15B40; /* Rojo anaranjado */
    --secondary-200: #FBB03B; /* Amarillo intenso */
    --secondary-300: #FBBF6D; /* Amarillo pastel */
    --secondary-400: #0F6E8C; /* Azul océano */
    --secondary-500: #148C9A; /* Verde-azulado */
    --secondary-600: #6EAAA0; /* Verde suave */
    --secondary-700: #B0C2CB; /* Gris azulado */
    --secondary-800: #C5D5DF; /* Gris claro */
    --secondary-900: #DAEBF5; /* Gris muy claro */

    /* === Estados === */
    --status-red: #FF3E32; /* Estado crítico */
    --status-green: #2ec75c; /* Estado correcto */
    --status-yellow: #FBB03B; /* Estado en atención */

    /* === Texto === */
    --text-100: #000000; /* Texto principal */
    --text-200: #313d44; /* Texto secundario */

    /* === Fondos === */
    --bg-100: #FFFFFF; /* Fondo base */
    --bg-200: #dbdbdb; /* Fondo secciones */
    --bg-300: #919191; /* Bordes y tarjetas */

    /* === Canales RGB para transparencias ===
       Usar: rgb(var(--primary-200-rgb) / .12) */
    --primary-100-rgb: 255 62 50;
    --primary-200-rgb: 0 60 111;
    --primary-300-rgb: 0 0 0;
    --primary-400-rgb: 243 245 247;
    --secondary-100-rgb: 241 91 64;
    --secondary-200-rgb: 251 176 59;
    --secondary-300-rgb: 251 191 109;
    --secondary-400-rgb: 15 110 140;
    --secondary-500-rgb: 20 140 154;
    --secondary-600-rgb: 110 170 160;
    --secondary-700-rgb: 176 194 203;
    --secondary-800-rgb: 197 213 223;
    --secondary-900-rgb: 218 235 245;
    --status-red-rgb: 255 62 50;
    --status-green-rgb: 46 199 92;
    --status-yellow-rgb: 251 176 59;
    --text-100-rgb: 0 0 0;
    --text-200-rgb: 49 61 68;
    --bg-100-rgb: 255 255 255;
    --bg-200-rgb: 219 219 219;
    --bg-300-rgb: 145 145 145;

    /* === Alias semánticos === */
    --color-brand-primary: var(--primary-200);
    --color-brand-accent: var(--secondary-200);
    --color-brand-danger: var(--primary-100);
    --color-brand-ocean: var(--secondary-400);
    --color-page: var(--primary-400);
    --color-surface: var(--bg-100);
    --color-surface-muted: var(--secondary-900);
    --color-surface-subtle: color-mix(in srgb, var(--secondary-900) 42%, var(--bg-100));
    --color-border: var(--secondary-800);
    --color-border-strong: var(--secondary-700);
    --color-text: var(--text-100);
    --color-text-muted: var(--text-200);
    --color-text-inverse: var(--bg-100);
    --color-focus: var(--primary-200);
    --color-overlay: rgb(var(--primary-300-rgb) / .48);

    /* === Estados semánticos === */
    --color-success: var(--status-green);
    --color-warning: var(--status-yellow);
    --color-danger: var(--status-red);
    --color-info: var(--secondary-400);
    --color-success-soft: color-mix(in srgb, var(--status-green) 12%, var(--bg-100));
    --color-warning-soft: color-mix(in srgb, var(--status-yellow) 16%, var(--bg-100));
    --color-danger-soft: color-mix(in srgb, var(--status-red) 10%, var(--bg-100));
    --color-info-soft: color-mix(in srgb, var(--secondary-400) 10%, var(--bg-100));

    /* === Tipografía === */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    --font-size-2xs: .68rem;
    --font-size-xs: .75rem;
    --font-size-sm: .85rem;
    --font-size-md: .95rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.35rem;
    --font-size-2xl: 1.65rem;
    --font-size-3xl: 2.1rem;
    --font-size-4xl: 2.6rem;
    --line-height-tight: 1.15;
    --line-height-snug: 1.25;
    --line-height-normal: 1.45;
    --line-height-relaxed: 1.65;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: .02em;
    --letter-spacing-uppercase: .04em;

    /* === Espaciado === */
    --space-0: 0;
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --gap-xs: var(--space-1);
    --gap-sm: var(--space-2);
    --gap-md: var(--space-3);
    --gap-lg: var(--space-4);
    --gap-xl: var(--space-6);

    /* === Radios === */
    --radius-none: 0;
    --radius-2xs: .18rem;
    --radius-xs: .25rem;
    --radius-sm: .35rem;
    --radius-md: .45rem;
    --radius-lg: .6rem;
    --radius-xl: .8rem;
    --radius-2xl: 1rem;
    --radius-pill: 999px;
    --radius-circle: 50%;
    --radius-card: var(--radius-md);
    --radius-button: var(--radius-md);
    --radius-input: var(--radius-md);
    --radius-modal: var(--radius-lg);

    /* === Bordes === */
    --border-width-hairline: 1px;
    --border-width-thin: 2px;
    --border-width-accent: 3px;
    --border-subtle: var(--border-width-hairline) solid var(--secondary-800);
    --border-strong: var(--border-width-hairline) solid var(--secondary-700);
    --border-brand: var(--border-width-hairline) solid var(--primary-200);
    --border-danger: var(--border-width-hairline) solid var(--status-red);
    --border-dashed: var(--border-width-hairline) dashed var(--secondary-700);

    /* === Sombras === */
    --shadow-none: none;
    --shadow-xs: 0 .12rem .28rem rgb(var(--primary-300-rgb) / .08);
    --shadow-sm: 0 .35rem .9rem rgb(var(--primary-300-rgb) / .08);
    --shadow-md: 0 .65rem 1.35rem rgb(var(--primary-300-rgb) / .10);
    --shadow-lg: 0 1rem 2.4rem rgb(var(--primary-300-rgb) / .16);
    --shadow-xl: 0 1.5rem 3rem rgb(var(--primary-300-rgb) / .22);
    --shadow-card: var(--shadow-sm);
    --shadow-card-hover: var(--shadow-md);
    --shadow-modal: var(--shadow-xl);
    --shadow-dropdown: 0 .65rem 1.5rem rgb(var(--primary-300-rgb) / .14);
    --shadow-focus: 0 0 0 .18rem rgb(var(--primary-200-rgb) / .16);
    --shadow-focus-danger: 0 0 0 .18rem rgb(var(--status-red-rgb) / .16);
    --shadow-inset-accent: inset .25rem 0 0 var(--secondary-200);

    /* === Transparencias y overlays === */
    --opacity-disabled: .48;
    --opacity-muted: .68;
    --opacity-hover: .88;
    --overlay-light: rgb(var(--bg-100-rgb) / .76);
    --overlay-medium: rgb(var(--primary-300-rgb) / .35);
    --overlay-dark: rgb(var(--primary-300-rgb) / .58);
    --backdrop-modal: rgb(var(--primary-300-rgb) / .48);
    --glass-bg: rgb(var(--bg-100-rgb) / .9);
    --glass-bg-strong: rgb(var(--bg-100-rgb) / .96);
    --glass-border: rgb(var(--bg-100-rgb) / .38);
    --glass-shadow: 0 1rem 2.4rem rgb(var(--primary-300-rgb) / .16);

    /* === Blur === */
    --blur-none: 0;
    --blur-sm: 6px;
    --blur-md: 12px;
    --blur-lg: 20px;
    --blur-xl: 28px;
    --blur-glass: var(--blur-lg);

    /* === Movimiento === */
    --duration-fast: .12s;
    --duration-normal: .18s;
    --duration-slow: .3s;
    --duration-slower: .45s;
    --ease-standard: ease;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --transition-fast: var(--duration-fast) var(--ease-standard);
    --transition-normal: var(--duration-normal) var(--ease-standard);
    --transition-slow: var(--duration-slow) var(--ease-in-out);
    --transition-interactive: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), color var(--transition-normal), transform var(--transition-normal);

    /* === Layout === */
    --header-height: 3.5em;
    --sidebar-width: 280px;
    --content-max-width: 1400px;
    --content-padding-x: clamp(1rem, 3vw, 3rem);
    --content-padding-y: 1.5rem;
    --page-min-height: calc(100vh - var(--header-height));
    --modal-max-width-sm: 32rem;
    --modal-max-width-md: 46rem;
    --modal-max-width-lg: 62rem;
    --modal-max-width-xl: 72rem;

    /* === Controles === */
    --control-height-xs: 1.85rem;
    --control-height-sm: 2.15rem;
    --control-height-md: 2.5rem;
    --control-height-lg: 3rem;
    --control-padding-x-sm: .55rem;
    --control-padding-x-md: .75rem;
    --control-padding-x-lg: 1rem;
    --control-padding-y-sm: .35rem;
    --control-padding-y-md: .55rem;
    --control-padding-y-lg: .75rem;
    --input-bg: var(--bg-100);
    --input-border: var(--secondary-800);
    --input-border-focus: var(--primary-200);
    --input-placeholder: rgb(var(--text-200-rgb) / .68);
    --button-primary-bg: var(--primary-200);
    --button-primary-text: var(--bg-100);
    --button-accent-bg: var(--secondary-200);
    --button-accent-text: var(--primary-200);
    --button-danger-bg: var(--status-red);
    --button-danger-text: var(--bg-100);

    /* === Componentes base === */
    --card-bg: var(--bg-100);
    --card-border: var(--secondary-800);
    --card-radius: var(--radius-card);
    --card-padding: .95rem;
    --card-shadow: var(--shadow-card);
    --card-shadow-hover: var(--shadow-card-hover);
    --panel-bg: var(--bg-100);
    --panel-border: var(--secondary-800);
    --panel-radius: var(--radius-lg);
    --table-header-bg: color-mix(in srgb, var(--secondary-900) 36%, var(--bg-100));
    --table-row-hover-bg: color-mix(in srgb, var(--secondary-900) 22%, var(--bg-100));
    --tooltip-bg: var(--primary-300);
    --tooltip-text: var(--bg-100);
    --sidebar-bg: var(--primary-200);
    --sidebar-text: var(--bg-100);
    --sidebar-active-bg: color-mix(in srgb, var(--primary-200) 76%, var(--secondary-400));
    --sidebar-active-accent: var(--secondary-200);

    /* === Iconos e imágenes === */
    --icon-size-xs: .85rem;
    --icon-size-sm: 1rem;
    --icon-size-md: 1.2rem;
    --icon-size-lg: 1.5rem;
    --icon-size-xl: 2rem;
    --avatar-size-sm: 2rem;
    --avatar-size-md: 2.55rem;
    --avatar-size-lg: 3.25rem;
    --avatar-size-xl: 4.25rem;
    --flag-width-xs: 1.125rem;
    --flag-height-xs: .8125rem;
    --flag-width-sm: 1.35rem;
    --flag-height-sm: 1rem;
    --flag-width-md: 1.7rem;
    --flag-height-md: 1.25rem;

    /* === Z-index === */
    --z-base: 1;
    --z-sticky: 10;
    --z-dropdown: 100;
    --z-header: 500;
    --z-sidebar: 600;
    --z-overlay: 900;
    --z-modal: 1000;
    --z-popover: 1100;
    --z-toast: 1200;
    --z-tooltip: 1300;

    /* === Scrollbars === */
    --scrollbar-size: 6px;
    --scrollbar-thumb: rgb(var(--primary-200-rgb) / .26);
    --scrollbar-thumb-strong: rgb(var(--primary-200-rgb) / .42);
    --scrollbar-track: transparent;
}

body{
    font-family: var(--font-body);
}

h1,
h2{
    font-family: var(--font-heading);
    font-weight: 700;
}

h3{
    font-family: var(--font-body);
    font-weight: 500;
}

h4{
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 500;
}

h5{
    font-family: var(--font-body);
    font-weight: 700;
}

h6{
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 700;
}


/* ============================================================================
   MODO OSCURO
   ----------------------------------------------------------------------------
   El mismo sistema, otra luz. Se activa con data-theme="dark" en <html>, que
   pone el servidor según la preferencia de la persona (Account details).

   Sólo se redefinen los tokens que dependen de la claridad. Todo lo derivado
   —alias semánticos, color-mix, tarjetas, tablas, inputs— se recalcula solo,
   porque está construido con var() y no con valores copiados.

   Los colores de marca NO cambian: el rojo y el azul de Vector son la
   identidad, no una decisión de tema.

   Una nota sobre --bg-100. En este código significa dos cosas opuestas: la
   superficie de una tarjeta y el texto sobre el azul corporativo. Aquí se
   queda casi blanco, porque el sidebar sigue siendo azul y su texto tiene que
   leerse; las superficies viajan por --color-surface, que es a donde se
   movieron los fondos.
   ========================================================================= */

[data-theme="dark"] {
    /* === Fondos === */
    --primary-400: #0B1B2A; /* Lienzo de la página */
    --bg-200: #142C3F;      /* Secciones hundidas */
    --bg-300: #24455F;      /* Bordes y separadores */

    --primary-400-rgb: 11 27 42;
    --bg-200-rgb: 20 44 63;
    --bg-300-rgb: 36 69 95;

    /* === Texto === */
    --text-100: #E8EEF4; /* Principal */
    --text-200: #A8BCCB; /* Secundario */
    --text-100-rgb: 232 238 244;
    --text-200-rgb: 168 188 203;

    /* === Superficies ===
       Tres niveles, del más hundido al más cercano al lector. Nunca más de
       tres apilados: a partir de ahí el ojo deja de distinguirlos. */
    --color-page: var(--primary-400);
    --color-surface: #12283A;
    --color-surface-muted: #16314691;
    --color-surface-subtle: #163146;
    --color-surface-rgb: 18 40 58;

    /* === Bordes ===
       Sobre fondo oscuro un borde claro grita. Se dibujan con luz propia, no
       con la gama secundaria clara, que aquí sería un destello. */
    --color-border: rgb(255 255 255 / .10);
    --color-border-strong: rgb(255 255 255 / .18);
    --border-subtle: var(--border-width-hairline) solid rgb(255 255 255 / .10);
    --border-strong: var(--border-width-hairline) solid rgb(255 255 255 / .18);
    --border-dashed: var(--border-width-hairline) dashed rgb(255 255 255 / .18);

    /* === Estados suaves ===
       El color-mix de la paleta clara mezcla contra --bg-100, que aquí sigue
       siendo blanco; mezclar contra la superficie da el tinte correcto. */
    --color-success-soft: color-mix(in srgb, var(--status-green) 18%, var(--color-surface));
    --color-warning-soft: color-mix(in srgb, var(--status-yellow) 20%, var(--color-surface));
    --color-danger-soft: color-mix(in srgb, var(--status-red) 16%, var(--color-surface));
    --color-info-soft: color-mix(in srgb, var(--secondary-400) 18%, var(--color-surface));

    /* === Componentes === */
    --card-bg: var(--color-surface);
    --card-border: var(--color-border);
    --panel-bg: var(--color-surface);
    --panel-border: var(--color-border);
    --table-header-bg: #163146;
    --table-row-hover-bg: #1B3A52;
    --input-bg: #0E2233;
    --input-border: rgb(255 255 255 / .14);
    --input-placeholder: rgb(var(--text-200-rgb) / .55);

    /* El sidebar ya era oscuro; en modo oscuro se hunde un poco más para no
       competir con el contenido, que ahora también lo es. */
    --sidebar-bg: #08192A;
    --sidebar-active-bg: color-mix(in srgb, var(--primary-200) 62%, var(--secondary-400));

    /* === Sombras ===
       Sobre fondo oscuro una sombra suave no se ve. Se sube la opacidad y se
       añade un filo de luz arriba, que es lo que separa de verdad. */
    --shadow-xs: 0 .12rem .28rem rgb(0 0 0 / .35);
    --shadow-sm: 0 .35rem .9rem rgb(0 0 0 / .40);
    --shadow-md: 0 .65rem 1.35rem rgb(0 0 0 / .45);
    --shadow-lg: 0 1rem 2.4rem rgb(0 0 0 / .55);
    --shadow-xl: 0 1.5rem 3rem rgb(0 0 0 / .65);
    --shadow-dropdown: 0 .65rem 1.5rem rgb(0 0 0 / .5);
    --shadow-focus: 0 0 0 .18rem rgb(var(--secondary-400-rgb) / .35);

    /* === Velos y cristal === */
    --color-overlay: rgb(0 0 0 / .62);
    --overlay-light: rgb(var(--color-surface-rgb) / .78);
    --overlay-medium: rgb(0 0 0 / .5);
    --overlay-dark: rgb(0 0 0 / .7);
    --backdrop-modal: rgb(0 0 0 / .62);
    --glass-bg: rgb(var(--color-surface-rgb) / .88);
    --glass-bg-strong: rgb(var(--color-surface-rgb) / .96);
    --glass-border: rgb(255 255 255 / .12);
    --glass-shadow: 0 1rem 2.4rem rgb(0 0 0 / .5);

    /* === Scrollbars === */
    --scrollbar-thumb: rgb(255 255 255 / .18);
    --scrollbar-thumb-strong: rgb(255 255 255 / .3);

    /* Los controles nativos del navegador —scrollbars, selects, date pickers—
       se pintan solos en oscuro y dejan de romper la página. */
    color-scheme: dark;
}

[data-theme="dark"] body {
    background: var(--color-page);
    color: var(--color-text);
}

/* ======================================================================
   Dropdowns (single-choice selects) across Vector Cloud: the clean look of
   Time Off. Thin light border, soft corners, regular text and a small
   chevron. Multi-selects, the status/priority pills and slim-select (which
   draws its own box) are left as they are.
   ====================================================================== */
select:not([multiple]):not([size]):not([class*="inline-input"]):not([class*="--status"]):not(.ss-hide) {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23526071' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-position: right .85rem center !important;
    background-repeat: no-repeat !important;
    background-size: .75rem !important;
    border: 1px solid #d1d9e0 !important;
    border-radius: 8px !important;
    color: #333 !important;
    cursor: pointer;
    font-size: .9rem !important;
    font-weight: 500 !important;
    min-height: 2.5rem;
    padding-bottom: .5rem !important;
    padding-left: .8rem !important;
    padding-right: 2.2rem !important;
    padding-top: .5rem !important;
    text-align: left !important;
    text-overflow: ellipsis;
    transition: border-color .2s ease, box-shadow .2s ease;
}

select:not([multiple]):not([size]):not([class*="inline-input"]):not([class*="--status"]):not(.ss-hide):hover {
    border-color: #b6c2cf !important;
}

select:not([multiple]):not([size]):not([class*="inline-input"]):not([class*="--status"]):not(.ss-hide):focus {
    border-color: var(--primary-200) !important;
    box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--primary-200) 14%, transparent);
    outline: 0;
}

select:not([multiple]):not([size]):disabled {
    background-color: #f3f5f8;
    cursor: not-allowed;
    opacity: .7;
}

/* Slim-select boxes (the dropdowns that replace some selects): same regular text, left aligned. */
.ss-main .ss-values .ss-single,
.ss-main .ss-values .ss-placeholder {
    color: #333 !important;
    font-size: .9rem !important;
    font-weight: 500 !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.ss-main {
    border-color: #d1d9e0 !important;
    border-radius: 8px !important;
}

.ss-content .ss-list .ss-option {
    font-size: .9rem;
    font-weight: 500;
}

/* ======================================================================
   Vector Cloud dropdown menu (panel/js/vectorSelect.js)
   ====================================================================== */
.vs-wrap { position: relative; vertical-align: middle; }

.vs-wrap > .vs-native {
    opacity: 0;
    pointer-events: none;
    width: 100%;
}

.vs-button {
    align-items: center;
    background: #fff;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    box-sizing: border-box;
    color: #333;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    inset: 0;
    justify-content: space-between;
    padding: 0 2.2rem 0 .8rem;
    position: absolute;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

.vs-button::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23526071' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    content: "";
    height: .5rem;
    position: absolute;
    right: .85rem;
    transition: transform .2s ease;
    width: .75rem;
}

.vs-button[aria-expanded="true"]::after { transform: rotate(180deg); }
.vs-button:hover { border-color: #b6c2cf; }
.vs-button:focus-visible,
.vs-button[aria-expanded="true"] {
    border-color: var(--primary-200);
    box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--primary-200) 14%, transparent);
    outline: 0;
}
.vs-button:disabled { background: #f3f5f8; cursor: not-allowed; opacity: .7; }

.vs-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vs-menu {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(27, 53, 87, .16);
    box-sizing: border-box;
    overflow-y: auto;
    padding: .3rem;
    position: fixed;
    z-index: 20000;
}

.vs-option {
    border-radius: 7px;
    color: #333;
    cursor: pointer;
    font-size: .92rem;
    padding: .6rem .8rem;
}

.vs-option:hover,
.vs-option.is-active { background: #eef2f8; color: var(--primary-200); }
.vs-option.is-selected { background: #eef2f8; color: var(--primary-200); font-weight: 700; }
.vs-option.is-disabled { color: #9aa5b1; cursor: not-allowed; }

/* Page rules that style every <button> (like the yellow buttons of filter bars) must not reach the dropdown buttons. */
.vs-wrap > .vs-button {
    background: #fff !important;
    border: 1px solid #d1d9e0 !important;
    border-radius: 8px !important;
    color: #333 !important;
    font-size: .9rem !important;
    font-weight: 500 !important;
    gap: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 2.2rem 0 .8rem !important;
    transform: none !important;
}

.vs-wrap > .vs-button:hover { border-color: #b6c2cf !important; }

.vs-wrap > .vs-button:disabled { background: #f3f5f8 !important; }

.vs-wrap > .vs-button:focus-visible,
.vs-wrap > .vs-button[aria-expanded="true"] { border-color: var(--primary-200) !important; }

/* ======================================================================
   Loading screen (panel/js/vectorLoader.js)
   ====================================================================== */
.vector-loader {
    align-items: center;
    background: rgb(255 255 255 / .86);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    inset: var(--header-height, 3.5rem) 0 0 0;
    justify-content: center;
    position: fixed;
    z-index: 9000;
    /* If the script never comes, the screen leaves by itself. */
    animation: vector-loader-fallback 0s linear 14s forwards;
}

.vector-loader[hidden] { display: none; }

.vector-loader img {
    animation: vector-loader-bounce .7s cubic-bezier(.3, 0, .4, 1) infinite alternate;
    height: 3.6rem;
    width: auto;
}

.vector-loader span {
    color: var(--primary-200, #003c6f);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
}

@keyframes vector-loader-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-1.6rem); }
}

@keyframes vector-loader-fallback {
    to { opacity: 0; pointer-events: none; visibility: hidden; }
}

[data-theme="dark"] .vector-loader { background: rgb(8 25 42 / .88); }
[data-theme="dark"] .vector-loader span { color: #fff; }


/* One loading screen for Vector Cloud: the older loaders of single pages stay out of sight. */
.employee-loader-overlay,
.vector-blocking-loader,
.nivel-loading,
.roca-loading,
.biggreenegg-loading,
.mondetta-loading,
.torani-loading,
.whirlpool-loading,
.globalauto-loading,
.boxwell-loading,
.ushb-loading,
.demo-loading,
.vgl-loading {
    display: none !important;
}


/* Until the script has set its margins (beside the side menu), the loading screen stays invisible,
   so a page never flashes it across the whole width first. */
.vector-loader:not([data-ready]) {
    visibility: hidden;
}


/* ======================================================================
   Vector Cloud shared look — cards, table headers and empty states
   The same flat card, light-blue table head and dashed empty box in every module.
   (The customer tariff simulators keep their own design and are not listed here.)
   ====================================================================== */
:root {
    --vc-line: color-mix(in srgb, var(--primary-200) 18%, var(--bg-100));
    --vc-tint: color-mix(in srgb, var(--primary-200) 4%, var(--bg-100));
    --vc-head: color-mix(in srgb, var(--primary-200) 8%, var(--bg-100));
    --vc-hover: color-mix(in srgb, var(--secondary-200) 14%, var(--bg-100));
}

/* Cards: white, thin blue-tinted border, rounded, no resting shadow (hover rules keep theirs). */
body :is(.timeoff-card, .kc-card, .kc-stat, .kc-manual-row, .reports-panel, .vector-card, .ib-card,
         .vector-import-panel, .vector-import-summary, .vector-settings-panel, .vector-export-panel) {
    border: 1.5px solid var(--vc-line);
    border-radius: 1rem;
    box-shadow: none;
}

/* Table headers: light blue with navy capitals. */
body :is(.timeoff-table, .reports-table, .gm-table, .vector-preview-table) th {
    background: var(--vc-head);
    border-bottom: 0;
    color: var(--primary-200);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

body :is(.timeoff-table, .reports-table, .gm-table, .vector-preview-table) tbody tr:hover td {
    background: var(--vc-hover);
}

/* Empty states: a quiet dashed box with centred navy text. */
body :is(.vector-empty-state, .reports-empty-state, .ib-empty, .data-empty) {
    background: var(--vc-tint);
    border: 1.5px dashed color-mix(in srgb, var(--primary-200) 25%, var(--bg-100));
    border-radius: .75rem;
    box-shadow: none;
    color: var(--primary-200);
    justify-content: center;
    text-align: center;
}

body :is(p.timeoff-empty, .vector-empty-inline, .reports-empty-inline, p.gm-empty) {
    background: var(--vc-tint);
    border: 1.5px dashed color-mix(in srgb, var(--primary-200) 25%, var(--bg-100));
    border-radius: .75rem;
    color: var(--primary-200);
    font-size: .95rem;
    font-weight: 600;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-align: center;
}

body :is(td.timeoff-empty, td.gm-empty) {
    background: var(--vc-tint);
    color: var(--primary-200);
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
}


/* ======================================================================
   Date pickers (panel/js/vectorDatePicker.js)
   ====================================================================== */
.vd-wrap {
    position: relative;
    vertical-align: middle;
}

/* The real input stays and shows the value; the calendar button above it takes the clicks. */
.vd-wrap > .vd-native {
    box-sizing: border-box;
    padding-right: 2.6rem !important;
    pointer-events: none;
    width: 100%;
}

.vd-wrap > .vd-native::-webkit-calendar-picker-indicator {
    display: none;
}

/* The button is only a transparent layer with an icon: the page's own button styles (yellow or navy
   buttons in filters, forms and rows) must not reach it. */
.vd-wrap > .vd-trigger {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23003C6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M4 11h16'/%3E%3C/svg%3E") no-repeat right .85rem center !important;
    border: 0 !important;
    border-radius: inherit;
    box-shadow: none !important;
    color: transparent !important;
    cursor: pointer;
    height: 100% !important;
    inset: 0;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    opacity: 1 !important;
    padding: 0 !important;
    position: absolute;
    transform: none !important;
    width: 100% !important;
}

.vd-wrap > .vd-trigger:focus-visible {
    outline: 2px solid var(--primary-200);
    outline-offset: -2px;
}

.vd-wrap > .vd-native:disabled + .vd-trigger {
    cursor: not-allowed;
    opacity: .5 !important;
}

.vd-popup {
    background: #fff;
    border: 1.5px solid #d3e0ea;
    border-radius: 1rem;
    box-shadow: 0 .9rem 2.2rem rgba(0, 40, 80, .18);
    box-sizing: border-box;
    color: var(--text-100);
    font-family: var(--font-body);
    padding: 1rem;
    position: fixed;
    user-select: none;
    width: 19.5rem;
    z-index: 100000;
}

.vd-popup.has-time {
    width: 27.5rem;
}

.vd-popup.has-time {
    display: grid;
    gap: .5rem 1rem;
    grid-template-columns: 17.5rem minmax(0, 1fr);
}

.vd-popup.has-time > .vd-head,
.vd-popup.has-time > .vd-grid,
.vd-popup.has-time > .vd-months {
    grid-column: 1;
}

.vd-popup.has-time > .vd-time {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.vd-popup.has-time > .vd-foot {
    grid-column: 1 / -1;
}

.vd-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: .6rem;
}

.vd-title {
    color: var(--primary-200);
    font-size: .95rem;
    font-weight: 800;
}

.vd-title-btn {
    align-items: center;
    background: none;
    border: 0;
    border-radius: .5rem;
    cursor: pointer;
    display: inline-flex;
    gap: .3rem;
    padding: .3rem .55rem;
}

.vd-title-btn:hover {
    background: #e3eef8;
}

.vd-nav {
    align-items: center;
    background: #e3eef8;
    border: 0;
    border-radius: 999px;
    color: var(--primary-200);
    cursor: pointer;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.vd-nav:hover {
    background: var(--secondary-200);
}

.vd-week,
.vd-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.vd-week span {
    color: var(--primary-200);
    font-size: .75rem;
    font-weight: 800;
    padding: .25rem 0;
    text-align: center;
}

.vd-day {
    aspect-ratio: 1;
    background: none;
    border: 0;
    border-radius: 999px;
    color: var(--text-100);
    cursor: pointer;
    font: 600 .88rem var(--font-body);
    margin: 1px;
    padding: 0;
}

.vd-day:hover:not(:disabled) {
    background: #e3eef8;
}

.vd-day.is-outside {
    color: var(--text-200);
    opacity: .55;
}

.vd-day.is-today {
    box-shadow: inset 0 0 0 2px var(--secondary-200);
}

.vd-day.is-selected {
    background: var(--primary-200);
    box-shadow: none;
    color: #fff;
    opacity: 1;
}

.vd-day:disabled {
    cursor: not-allowed;
    opacity: .3;
}

.vd-months {
    display: grid;
    gap: .4rem;
    grid-template-columns: repeat(3, 1fr);
}

.vd-month {
    background: #f4f8fc;
    border: 1.5px solid transparent;
    border-radius: .6rem;
    color: var(--primary-200);
    cursor: pointer;
    font: 700 .9rem var(--font-body);
    padding: .7rem 0;
}

.vd-month:hover {
    background: #e3eef8;
}

.vd-month.is-current {
    background: var(--primary-200);
    color: #fff;
}

.vd-time {
    display: flex;
    gap: .35rem;
    max-height: 16.5rem;
}

.vd-col {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.vd-t {
    background: none;
    border: 0;
    border-radius: .5rem;
    color: var(--text-100);
    cursor: pointer;
    flex: 0 0 auto;
    font: 600 .85rem var(--font-body);
    padding: .45rem 0;
}

.vd-t:hover {
    background: #e3eef8;
}

.vd-t.is-selected {
    background: var(--primary-200);
    color: #fff;
}

.vd-foot {
    align-items: center;
    border-top: 1.5px solid #e1ebf3;
    display: flex;
    gap: 1rem;
    margin-top: .75rem;
    padding-top: .7rem;
}

.vd-link {
    background: none;
    border: 0;
    color: var(--primary-200);
    cursor: pointer;
    font: 800 .85rem var(--font-body);
    padding: .2rem 0;
}

.vd-link:hover {
    text-decoration: underline;
}

.vd-done {
    background: var(--secondary-200);
    border: 0;
    border-radius: .6rem;
    color: var(--primary-200);
    cursor: pointer;
    font: 800 .85rem var(--font-body);
    margin-left: auto;
    padding: .5rem 1.2rem;
}

.vd-done:hover {
    background: var(--secondary-300);
}
