/**
 * UltimatePOS Design System — tokens
 * Primary maps to business theme_color (--theme-700/800) from layouts/partials/css.blade.php
 * Do not edit vendor.css; keep this layer separate.
 */

:root {
    --primary: var(--theme-700, #004eeb);
    --primary-hover: var(--theme-800, #0040c1);
    --primary-active: var(--theme-900, #00359e);
    --secondary: #475569;

    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #0284c7;

    --background: #f4f6f9;
    --surface: #ffffff;
    --surface-secondary: #f8fafc;
    --surface-elevated: #ffffff;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;

    --border: #e8ecf1;
    --border-dark: #d1d5db;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 16px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.07);

    --sidebar-width: 260px;
    --sidebar-collapsed-width: 76px;
    --header-height: 64px;

    --focus-ring: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
}

[data-theme="dark"] {
    --background: #0f172a;
    --surface: #111827;
    --surface-secondary: #1f2937;
    --surface-elevated: #1e293b;

    --text-primary: #f9fafb;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --border: #334155;
    --border-dark: #475569;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Print / invoices: force light surfaces */
@media print {
    html,
    body,
    [data-theme="dark"] {
        --background: #ffffff !important;
        --surface: #ffffff !important;
        --text-primary: #000000 !important;
        --text-secondary: #333333 !important;
        --border: #cccccc !important;
    }

    .ds-theme-toggle,
    .no-print {
        display: none !important;
    }
}

/* Base shell helpers */
.ds-app-shell {
    background-color: var(--background);
    color: var(--text-primary);
}

.ds-app-shell main,
.ds-app-shell #scrollable-container {
    background-color: var(--background);
}

.ds-focusable:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
