/* SpeedOk Admin - the shell of the interactive pages (GitHub #104, design approved 2026-10-19): the look of
   speedok.oduvis.com - near-black or light background, Manrope, blue / green / amber accents, large rounded blocks.
   Colours are tokens on .sz-app[data-theme]; MudBlazor follows them through AdminTheme. */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../lib/manrope/manrope-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../lib/manrope/manrope-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.sz-app {
    --sz-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --sz-navw: 232px;
    --sz-ok: #4cd964;
    --sz-warn: #f5a623;
    --sz-bad: #ff6b5e;
    --sz-acc: #2e9cca;
    display: flex;
    min-height: 100vh;
    font-family: var(--sz-font);
    font-weight: 500;
    background: var(--sz-bg);
    color: var(--sz-text);
    transition: background .25s, color .25s;
}

.sz-app[data-theme="dark"] {
    color-scheme: dark;
    --sz-bg: #04060c;
    --sz-surf: #0a101b;
    --sz-raised: #0f1b2b;
    --sz-side: #070b14;
    --sz-line: #172336;
    --sz-line2: #1d3550;
    --sz-hair: #0d1626;
    --sz-text: #f5f7fa;
    --sz-soft: #c7d2e1;
    --sz-mut: #9aaac0;
    --sz-faint: #8191a8;
    --sz-sky: #7fd0f2;
    --sz-accbg: rgba(46, 156, 202, .16);
    --sz-pbg: #f5f7fa;
    --sz-pfg: #04060c;
    --sz-warnfg: #ffc766;
    --sz-okfg: #7ee891;
    --sz-badfg: #ffb3ab;
    --sz-glass: rgba(4, 6, 12, .72);
    --sz-glassl: rgba(255, 255, 255, .14);
    --sz-navgrad: linear-gradient(180deg, #010208, #050b18);
    --sz-glow: radial-gradient(60% 200% at 80% 0%, rgba(46, 156, 202, .16), rgba(4, 6, 12, 0));
    --sz-topbg: rgba(4, 6, 12, .82);
    --sz-scrim: rgba(1, 2, 8, .6);
    --sz-shadow: rgba(0, 0, 0, .5);
}

.sz-app[data-theme="light"] {
    color-scheme: light;
    /* 2026-11-01 (UI/UX check): darker accent and faint text - AA contrast (4.5:1) on the light surfaces too. */
    --sz-acc: #1a6f99;
    --sz-bg: #f3f6f9;
    --sz-surf: #ffffff;
    --sz-raised: #edf1f5;
    --sz-side: #ffffff;
    --sz-line: #dbe2e9;
    --sz-line2: #c6d1dc;
    --sz-hair: #e4e9ee;
    --sz-text: #0b1220;
    --sz-soft: #2b394a;
    --sz-mut: #58677a;
    --sz-faint: #5f6e80;
    --sz-sky: #156f9e;
    --sz-accbg: rgba(26, 111, 153, .12);
    --sz-pbg: #0b1220;
    --sz-pfg: #ffffff;
    --sz-warnfg: #8a5600;
    --sz-okfg: #17733a;
    --sz-badfg: #b3261e;
    --sz-glass: rgba(255, 255, 255, .88);
    --sz-glassl: rgba(11, 18, 32, .12);
    --sz-navgrad: linear-gradient(180deg, #ffffff, #f3f6fa);
    --sz-glow: radial-gradient(60% 200% at 80% 0%, rgba(31, 127, 174, .10), rgba(255, 255, 255, 0));
    --sz-topbg: rgba(243, 246, 249, .86);
    --sz-scrim: rgba(11, 18, 32, .35);
    --sz-shadow: rgba(15, 25, 35, .18);
}

.sz-app.sz-nav-min {
    --sz-navw: 68px;
}

/* ---- Menu ------------------------------------------------------------------------------------ */

.sz-nav {
    width: var(--sz-navw);
    flex: none;
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 10px;
    border-right: 1px solid var(--sz-hair);
    background: var(--sz-navgrad);
    overflow: hidden;
    transition: width .2s;
    z-index: 1250;
}

.sz-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 4px 18px 6px;
}

.sz-brand-name {
    flex: 1;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.01em;
    color: var(--sz-text);
    text-decoration: none;
    white-space: nowrap;
}

.sz-navb {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--sz-mut);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .12s, color .12s;
}

.sz-navb:hover {
    background: var(--sz-raised);
    color: var(--sz-text);
}

.sz-navb:focus-visible, .sz-iconbtn:focus-visible, .sz-tab:focus-visible, .sz-searchbtn:focus-visible {
    outline: 2px solid var(--sz-sky);
    outline-offset: 2px;
}

.sz-navb.active {
    background: var(--sz-accbg);
    color: var(--sz-text);
    box-shadow: inset 0 0 0 1px rgba(46, 156, 202, .35);
}

.sz-navb svg, .sz-iconbtn svg, .sz-searchbtn svg {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sz-navl {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 2026-11-01 (UI/UX check): "Greičio matuokliai" was cut to "Greičio matuokl..." beside its badge - wrap to two lines instead. */
    white-space: normal;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sz-badge {
    flex: none;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    padding: 1px 8px;
    background: rgba(245, 166, 35, .18);
    color: var(--sz-warnfg);
}

.sz-nav-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sz-live-card {
    padding: 12px;
    border-radius: 16px;
    background: var(--sz-surf);
    border: 1px solid var(--sz-line);
    font-size: 12px;
    color: var(--sz-mut);
    line-height: 1.5;
}

.sz-live-card b {
    display: block;
    color: var(--sz-text);
    font-weight: 800;
}

.sz-live-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sz-text);
    font-weight: 800;
    margin-bottom: 4px;
}

@keyframes sz-ring {
    0% { transform: scale(.6); opacity: .9; }
    100% { transform: scale(2.2); opacity: 0; }
}

.sz-live {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sz-ok);
    flex: none;
}

.sz-live::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--sz-ok);
    animation: sz-ring 2.4s ease-out infinite;
}

.sz-live.sz-live-off {
    background: var(--sz-faint);
}

.sz-live.sz-live-off::after {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .sz-live::after { animation: none; }
    .sz-nav, .sz-app { transition: none; }
}

.sz-nav-min .sz-navl, .sz-nav-min .sz-brand-name, .sz-nav-min .sz-live-card {
    display: none;
}

.sz-nav-min .sz-navb {
    justify-content: center;
    padding: 0;
}

.sz-nav-min .sz-badge {
    position: absolute;
    top: 3px;
    right: 4px;
    padding: 0 5px;
    font-size: 10px;
}

.sz-nav-min .sz-brand {
    flex-direction: column;
    padding: 2px 0 18px;
    gap: 12px;
}

/* ---- Top bar and tabs -------------------------------------------------------------------------- */

.sz-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sz-top {
    position: sticky;
    top: 0;
    z-index: 1200;
    min-height: 60px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-bottom: 1px solid var(--sz-hair);
    background: var(--sz-glow), var(--sz-topbg);
    backdrop-filter: blur(10px);
}

.sz-top-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.sz-tabs {
    display: flex;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: 6px;
}

.sz-tabs::-webkit-scrollbar {
    display: none;
}

.sz-tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--sz-mut);
    text-decoration: none;
    white-space: nowrap;
}

.sz-tab:hover {
    color: var(--sz-text);
    background: var(--sz-raised);
}

.sz-tab.active {
    background: var(--sz-pbg);
    color: var(--sz-pfg);
}

.sz-spacer {
    flex: 1;
}

.sz-searchbtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    max-width: 34vw;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--sz-line2);
    border-radius: 12px;
    background: transparent;
    color: var(--sz-faint);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sz-searchbtn:hover {
    border-color: var(--sz-sky);
}

.sz-searchbtn .sz-kbd {
    margin-left: auto;
}

/* A laptop screen: the camera / section pages put their own controls in the top bar, so search shrinks to its icon (Ctrl K still works). */
@media (max-width: 1400px) {
    .sz-searchbtn {
        width: auto;
    }

    .sz-searchbtn .sz-search-label, .sz-searchbtn .sz-kbd {
        display: none;
    }
}

.sz-kbd {
    font-size: 10px;
    font-weight: 800;
    border: 1px solid currentColor;
    border-radius: 5px;
    padding: 0 4px;
    opacity: .7;
    font-family: inherit;
}

.sz-iconbtn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid var(--sz-line);
    background: var(--sz-surf);
    color: var(--sz-text);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.sz-iconbtn:hover {
    border-color: var(--sz-sky);
}

.sz-iconbtn.sz-ghost {
    background: transparent;
}

.sz-top .logout-form {
    display: inline-flex;
    margin: 0;
}

.sz-mobile-only {
    display: none;
}

/* ---- Content ----------------------------------------------------------------------------------- */

.sz-content {
    flex: 1;
    width: 100%;
    max-width: 1440px;
    box-sizing: border-box;
    padding: 20px 24px 48px;
}

.sz-content.sz-content-wide {
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sz-app .mud-paper {
    border-radius: 18px;
}

.sz-app .mud-paper.mud-elevation-1 {
    box-shadow: none;
    border: 1px solid var(--sz-line);
}

.sz-app .mud-typography-h4 {
    font-weight: 800;
    letter-spacing: -.02em;
}

.sz-app .mud-typography-h6 {
    font-weight: 800;
}

.sz-app a.mud-link, .sz-app .mud-link {
    color: var(--sz-sky);
}

/* Snackbars sit at the bottom left of the content, not under the menu. */
.sz-app .mud-snackbar-location-bottom-left {
    left: calc(var(--sz-navw) + 16px);
}

.sz-app .mud-snackbar {
    border-radius: 16px;
    font-family: var(--sz-font);
    font-weight: 700;
    box-shadow: 0 16px 36px var(--sz-shadow);
}

/* ---- Command palette (Ctrl K) ------------------------------------------------------------------- */

.sz-palette .mud-dialog-content {
    padding: 0 !important;
}

.sz-palette-input {
    width: 100%;
    height: 56px;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding: 0 18px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    color: var(--mud-palette-text-primary);
    outline: none;
}

.sz-palette-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px 0;
}

.sz-palette-group {
    padding: 8px 18px 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mud-palette-primary);
}

.sz-palette-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 18px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    color: var(--mud-palette-text-primary);
    text-decoration: none;
    cursor: pointer;
}

.sz-palette-item.active, .sz-palette-item:hover {
    background: rgba(46, 156, 202, .16);
}

.sz-palette-item .sz-palette-icon {
    width: 20px;
    flex: none;
    text-align: center;
    color: var(--mud-palette-primary);
}

.sz-palette-item .sz-palette-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sz-palette-item .sz-palette-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sz-palette-hint {
    font-size: 11px;
    font-weight: 700;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.sz-palette-foot {
    padding: 8px 18px;
    border-top: 1px solid var(--mud-palette-lines-default);
    font-size: 11px;
    font-weight: 700;
    color: var(--mud-palette-text-secondary);
}

/* ---- Phone width ------------------------------------------------------------------------------- */

.sz-scrim {
    display: none;
}

@media (max-width: 900px) {
    .sz-app, .sz-app.sz-nav-min {
        --sz-navw: 0px;
    }

    .sz-nav {
        position: fixed;
        left: 0;
        top: 0;
        width: 260px;
        transform: translateX(-105%);
        transition: transform .2s;
        box-shadow: 0 20px 60px var(--sz-shadow);
    }

    .sz-nav-min .sz-navl, .sz-nav-min .sz-brand-name, .sz-nav-min .sz-live-card {
        display: initial;
    }

    .sz-nav-min .sz-navb {
        justify-content: flex-start;
        padding: 0 12px;
    }

    .sz-nav-min .sz-badge {
        position: static;
    }

    .sz-nav-min .sz-brand {
        flex-direction: row;
    }

    .sz-nav-open .sz-nav {
        transform: none;
    }

    .sz-nav-open .sz-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1240;
        background: var(--sz-scrim);
    }

    .sz-mobile-only {
        display: inline-flex;
    }

    .sz-desktop-only {
        display: none !important;
    }

    .sz-top {
        flex-wrap: wrap;
        padding: 8px 12px;
    }

    .sz-tabs {
        order: 10;
        width: 100%;
        margin: 4px 0 0;
    }

    .sz-searchbtn {
        width: auto;
        max-width: none;
    }

    .sz-searchbtn .sz-search-label, .sz-searchbtn .sz-kbd {
        display: none;
    }

    .sz-content {
        padding: 16px 12px 40px;
    }

    .sz-app .mud-snackbar-location-bottom-left {
        left: 12px;
    }
}
