﻿/* ==========================================================
   ERN Maestro Design System
   Version: 1.0
   ========================================================== */

:root {
    /* ======================================================
       Brand
       ====================================================== */

    --maestro-primary: #1769E0;
    --maestro-primary-hover: #0F5DD0;
    --maestro-primary-light: #E8F1FF;
    --maestro-success: #22C55E;
    --maestro-warning: #F59E0B;
    --maestro-danger: #EF4444;
    --maestro-primary-rgb: 23, 105, 224;
    /* ======================================================
       Background
       ====================================================== */

    --maestro-bg: #F6F8FB;
    --maestro-surface: #FFFFFF;
    /* ======================================================
       Text
       ====================================================== */

    --maestro-text: #1F2937;
    --maestro-text-light: #6B7280;
    /* ======================================================
       Borders
       ====================================================== */

    --maestro-border: #E5E7EB;
    /* ======================================================
       Radius
       ====================================================== */

    --maestro-radius-sm: 6px;
    --maestro-radius: 12px;
    --maestro-radius-lg: 14px;
    /* ======================================================
       Shadows
       ====================================================== */

    --maestro-shadow-sm: 0 2px 8px rgba(0,0,0,.04);
    --maestro-shadow: 0 8px 24px rgba(0,0,0,.08);
    --maestro-shadow-lg: 0 18px 40px rgba(0,0,0,.10);
    /* ======================================================
       Animation
       ====================================================== */

    --maestro-transition: .25s ease;
    /* ======================================================
   Spacing
   ====================================================== */

    --maestro-space-xs: .25rem;
    --maestro-space-sm: .5rem;
    --maestro-space: 1rem;
    --maestro-space-lg: 2rem;
    --maestro-space-xl: 3rem;
    /* ======================================================
   Font Sizes
   ====================================================== */

    --maestro-font-xs: .75rem;
    --maestro-font-sm: .875rem;
    --maestro-font: 1rem;
    --maestro-font-lg: 1.125rem;
    --maestro-font-xl: 1.5rem;
    --maestro-font-xxl: 2rem;
}

/* ==========================================================
   Themes
   ========================================================== */

[data-theme="purple"] {
    --maestro-primary: #7C3AED;
    --maestro-primary-hover: #6D28D9;
    --maestro-primary-light: #F1EAFF;
    --maestro-primary-rgb: 124, 58, 237;
}

[data-theme="teal"] {
    --maestro-primary: #0F8B8D;
    --maestro-primary-hover: #0B7779;
    --maestro-primary-light: #E6F7F7;
    --maestro-primary-rgb: 15, 139, 141;
}

#ordersTable tbody tr.overview-row-selected td {
    background-color: var(--maestro-primary-light);
}

    #ordersTable tbody tr.overview-row-selected td:first-child {
        box-shadow: inset 3px 0 0 var(--maestro-primary);
    }

html,
body {
    font-family: "Inter", sans-serif;
    background: var(--maestro-bg);
    color: var(--maestro-text);
    font-size: 15px;
    line-height: 1.5;
}

.maestro-theme-selector {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem 0;
}

.maestro-theme-label {
    margin-right: .35rem;
    color: var(--maestro-text);
    font-size: var(--maestro-font-sm);
}

.maestro-theme-option {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .55rem;
    border: 1px solid var(--maestro-border);
    border-radius: var(--maestro-radius-sm);
    background: var(--maestro-surface);
    color: var(--maestro-text);
    font-family: inherit;
    font-size: var(--maestro-font-sm);
    cursor: pointer;
    transition: var(--maestro-transition);
}

    .maestro-theme-option:hover {
        background: var(--maestro-bg);
        border-color: var(--maestro-primary);
    }

.maestro-theme-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.maestro-theme-dot-blue {
    background: #1769E0;
}

.maestro-theme-dot-purple {
    background: #7C3AED;
}

.maestro-theme-dot-teal {
    background: #0F8B8D;
}

.maestro-theme-option.active {
    border-color: var(--maestro-primary);
    background: var(--maestro-primary-light);
    color: var(--maestro-primary);
    font-weight: 600;
}