/* =========================================================
   RUMA POS theme tokens (single source of truth)
   Load after vertical-layout-light/style.css and mainDudu.css.
   ========================================================= */

:root {
    /* Shared neutral surface for Booking and Salon Center frames. */
    --bk-surface: #f8f6f3;
    /* Brand */
    --bs-main: #f26522;
    --bs-main-50: #fff4e8;
    --bs-main-100: #ffe6d1;
    --bs-main-200: #fdcba6;
    --bs-main-300: #f9a877;
    --bs-main-400: #f6874b;
    --bs-main-500: #f47533;
    --bs-main-600: #f26522;
    --bs-main-700: #d4531a;
    --bs-main-800: #ad4316;
    --bs-main-900: #8a3714;
    --bs-main-950: #4a1c09;
    --bs-main-rgb: 242, 101, 34;
    --bs-dudu: var(--bs-main);
    --bs-dudu-o: var(--main-color-o);
    --bs-dudu-rgb: var(--bs-dudu);
    --bs-dudu-leaf: #9BA4B5;
    --bs-dudu-leaf-o: #9BA4B528;
    --main-color: var(--bs-dudu);
    --main-color-o: var(--bs-main-100);
    --salon-appt: var(--bs-main);
    --sub-color: #c3c9ce;
    --sub-color-o: #80878b6b;
    --color-default: #9FCB39;

    /* Palette */
    --bs-blue: var(--bs-main);
    --bs-indigo: #6610f2;
    --bs-purple: #6a008a;
    --bs-pink: #f0446e;
    --bs-pink-o: #fee5e9;
    --bs-red: #DA2345;
    --bs-orange: #f2a372;
    --bs-yellow: #f5d971;
    --bs-green: #46c35f;
    --bs-teal: #58d8a3;
    --bs-cyan: #57c7d4;
    --bs-white: #ffffff;
    --bs-black: #000000;
    --bs-gray: #434a54;
    --bs-gray-light: #aab2bd;
    --bs-gray-lighter: #e8eff4;
    --bs-gray-lightest: #e6e9ed;
    --bs-gray-dark: #0f1531;
    --bs-gray-100: #F3F3F3;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --yellow-background: #fffaa8;
    --yellow-border: #f5eb71;

    /* Semantic */
    --bs-primary: var(--bs-dark);
    --bs-secondary: #F1F1F1;
    --bs-success: var(--bs-dudu);
    --bs-success-o: var(--bs-dudu-o);
    --bs-info: #3092E8;
    --bs-warning: #ffaf00;
    --bs-danger: #F95F53;
    --bs-side: #e73028;
    --bs-light: #fff4e8;
    --bs-dark: #383838;
    --bs-primary-rgb: 56, 56, 56;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success-rgb: var(--bs-dudu);
    --bs-info-rgb: 13, 202, 240;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger-rgb: 220, 53, 69;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark-rgb: 56, 56, 56;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;

    /* Body & typography */
    --bs-body-color-rgb: 56, 56, 56;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-font-sans-serif: Lexend, ui-sans-serif, system-ui, sans-serif;
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: var(--theme-mode-text);
    --bs-body-bg: #fff;

    /* Labels */
    --label-color: #f2f2f2;
    --label-color2: #e8e7e6;
    --label-color3: #f9f9f9;
    --label-dark: #4f4f4f;
    --label-dark2: #393939;
    --label-dark3: #232323;

    /* Theme mode (light defaults) */
    --theme-mode-bs-400: #FFFFFF;
    --theme-mode-bs-300: #FFFFFF;
    --theme-mode-bs-200: #FFFFFF;
    --theme-mode-bs-100: #fff4e8;
    --theme-mode-text: #383838;
    --theme-mode-text-gray: rgba(56, 56, 56, 0.64);
    --theme-mode-gray: #969696;
    --theme-mode-btn-text: var(--bs-dudu);
    --theme-mode-text-dark: #383838;
    --theme-mode-text-white: #FFFFFF;
    --theme-mode-button: #FFFFFF;
    --theme-mode-border: #f5e1cc;
    --theme-mode-input: #fff8f1;
    --theme-mode-border-light: #fbeee0;
    --theme-mode-sidebar: var(--bs-dudu);
    --theme-mode-calendar-light: #ffeedd;
    --theme-mode-calendar-solid: var(--theme-mode-border);
    --theme-mode-salonappt-color: #ffeeee;
    --header-filter-mode-bg-300: #fffaf4;
    --backend-siderbar-item-hight-bg: #ffe6d1;

    /* Ticket status */
    --tix-wait: #ffaf00;
    --tix-done: #F95F53;
    --tix-confirm: #50aeff;
    --tix-checkin: #ffaf00;
    --tix-inservice: #0BC2AF;
    --tix-closed: var(--bs-gray-500);
    --tix-noshow: var(--bs-red);
    --tix-cancelled: var(--bs-gray-500);
    --tix-wait-r: 255, 175, 0;
    --tix-done-r: 249, 95, 83;
    --tix-confirm-r: 48, 147, 231;
    --tix-checkin-r: 255, 175, 0;
    --tix-inservice-r: 11, 194, 175;
    --tix-closed-r: 173, 181, 189;
    --tix-noshow-r: 173, 181, 189;
    --tix-cancelled-r: 108, 117, 125;
}

/* Display mode, driven by the modeViewScreen cookie (class on <html>).
   :where() keeps specificity equal to :root so page stylesheets loaded later still win. */
:root:where(.theme-light) {
    --theme-mode-text-dark: #383838;
    --theme-mode-calendar-solid: #e8cdb3;
    --bg-calendar: #f9e9d8;
    --chose-label: var(--label-color);
    --chose-label2: var(--label-color2);
    --chose-label3: var(--label-color3);
}

:root:where(.theme-dark) {
    --theme-mode-bs-400: #1A1918;
    --theme-mode-bs-300: #292C2D;
    --theme-mode-bs-200: #404142;
    --theme-mode-bs-100: #404142;
    --theme-mode-text: #CBC7C4;
    --theme-mode-text-gray: #CBC7C4;
    --theme-mode-text-dark: #262626;
    --theme-mode-button: #404142;
    --theme-mode-border: #393939;
    --theme-mode-calendar-light: #414141;
    --theme-mode-calendar-solid: #515151;
    --bg-calendar: #323232;
    --theme-mode-input: #404142;
    --chose-label: var(--label-dark);
    --chose-label2: var(--label-dark2);
    --chose-label3: var(--label-dark3);
    --header-filter-mode-bg-300: #292C2D;
    --backend-siderbar-item-hight-bg: #292C2D;
}
