/* ============================================================================
   Mayon Licensing — design tokens
   Extracted verbatim from MayonFlow. See DESIGN-TOKENS.md for per-token
   provenance. Do not invent values here; if a token is missing, read it out of
   MayonFlow's source rather than guessing a near match.

   Source of truth on the server (READ-ONLY — never modify):
     /var/www/flow/resources/views/layouts/app.blade.php   (:root, lines 34–93)
     /var/www/flow/resources/views/auth/login.blade.php    (login surface)
     /var/www/flow/public/vendor/fonts/cairo.css           (self-hosted Cairo)
   ============================================================================ */

:root {
    /* ——— Brand ramp ——— */
    --brand-900: #0a3a3a;
    --brand-800: #0d4f4f;
    --brand-700: #116161;
    --brand-600: #147878;
    --brand-500: #168f7d;
    --brand-400: #1faa8c;
    --brand-300: #2ec4a6;
    --brand-200: #5fd6bb;
    --brand-100: #a8ead8;

    --brand-grad: linear-gradient(135deg, #147878 0%, #1faa8c 55%, #2ec4a6 100%);
    --side-grad: linear-gradient(160deg, #0d4f4f 0%, #168f7d 60%, #1faa8c 100%);

    /* ——— Motion: one curve across the whole system ——— */
    --spring: cubic-bezier(.34, 1.4, .64, 1);
    --swift: cubic-bezier(.22, 1, .36, 1);

    /* ——— Radii ——— */
    --r-sm: 9px;
    --r: 13px;
    --r-lg: 20px;
    --r-xl: 26px;

    /* ——— Layout ——— */
    --rail: 74px;

    /* ——— Surface layers (light) ——— */
    --void: #eef3f2;
    --sheet: rgba(255, 255, 255, .78);
    --sheet-solid: #ffffff;
    --raise: rgba(13, 79, 79, .038);
    --edge: rgba(13, 79, 79, .11);
    --edge-2: rgba(20, 120, 120, .3);
    --glow: 0 1px 2px rgba(13, 79, 79, .04), 0 18px 44px -24px rgba(13, 79, 79, .36);
    --on-acc: #04100f;

    /* ——— Compatibility bridge: legacy names, current values ——— */
    --ink: #0d2b2b;
    --ink-2: #3a5a5a;
    --muted: #6d8a88;
    --page: var(--void);
    --card: var(--sheet-solid);
    --surface: var(--sheet-solid);
    --surface-2: #f4f8f7;
    --line: var(--edge);
    --row-hover: rgba(46, 196, 166, .06);
    --grid-head-bg: transparent;
    --grid-head-ink: #6d8a88;
    --chip-bg: rgba(46, 196, 166, .10);
    --chip-bd: rgba(46, 196, 166, .28);
    --chip-ink: #116161;
    --tb-hover: var(--raise);
    --dd-bg: var(--sheet-solid);
    --dd-hover: var(--raise);
    --input-bg: rgba(13, 79, 79, .035);
    --shadow: rgba(13, 79, 79, .07);

    color-scheme: light;
}

html[data-theme="dark"] {
    --void: #061110;
    --sheet: rgba(18, 42, 41, .62);
    --sheet-solid: #102624;
    --raise: rgba(255, 255, 255, .05);
    --edge: rgba(120, 220, 200, .14);
    --edge-2: rgba(120, 220, 200, .3);
    --glow: 0 0 0 1px rgba(120, 220, 200, .07), 0 22px 60px -26px rgba(0, 0, 0, .9);

    --ink: #e8f4f1;
    --ink-2: #b6cfc9;
    --muted: #7d9a95;
    --surface-2: #16302d;
    --row-hover: rgba(46, 196, 166, .07);
    --grid-head-ink: #7d9a95;
    --chip-bg: rgba(46, 196, 166, .13);
    --chip-bd: rgba(46, 196, 166, .3);
    --chip-ink: #5fd6bb;
    --input-bg: rgba(255, 255, 255, .045);
    --shadow: rgba(0, 0, 0, .5);

    color-scheme: dark;
}

/* ——— Base ——— */
* {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body {
    font-size: .875rem;
    background: var(--void);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

::selection {
    background: var(--brand-400);
    color: var(--on-acc);
}

/* Financial and identifier columns always line up */
table.erp-grid td,
table.erp-grid th,
.num,
.table td {
    font-variant-numeric: tabular-nums;
}

/* ——— Left-to-right identifiers inside an RTL page ———
   License keys, fingerprints, and version strings are inherently LTR. Without
   this they render scrambled in Arabic layout. Required by spec 003 FR-230. */
.ltr-id {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}
