﻿/* =========================================================
   APP.CSS (GRIDTECH THEME)
   - Preto + Azul elétrico
   - Remove referências roxas e padroniza tudo no --brand
   ========================================================= */

/* =========================
   1) TOKENS / BASE
   ========================= */
html, body {
    height: 100%;
    margin: 0;
    background: radial-gradient(1200px 800px at 20% 10%, rgba(30,139,255,.18), transparent 62%), radial-gradient(900px 700px at 80% 20%, rgba(34,197,94,.10), transparent 62%), linear-gradient(180deg, rgba(10,16,28,1) 0%, rgba(8,12,20,1) 100%);
    background-attachment: fixed;
}

#app {
    min-height: 100vh;
    background: transparent;
}

:root {
    --bs-primary: #1e8bff;
    --bs-primary-rgb: 30, 139, 255;
    --bs-focus-ring-color: rgba(30,139,255,.28);
    --bg: #0e1624;
    --panel: rgba(255,255,255,.075);
    --panel2: rgba(0,0,0,.10);
    --border: rgba(255,255,255,.12);
    --border2: rgba(255,255,255,.10);
    --text: #eaf0ff;
    --muted: rgba(234,240,255,.72);
    --brand: rgba(30,139,255,.92);
    --brandBorder: rgba(30,139,255,.45);
    --ok: rgba(34,197,94,.85);
    --err: rgba(239,68,68,.12);
    --shadow: 0 18px 60px rgba(0,0,0,.35);
    --radius: 18px;
    --radiusSm: 12px;
    --inputBg: rgba(15,22,36,.72);
    --focusRing: 0 0 0 4px rgba(30,139,255,.22);
    --btnH: 34px;
    --btnPadX: 12px;
    --btnFont: 12px;
    --chkSize: 14px;
    --panelStrong: rgba(9, 22, 40, .88);
    --panelSoft: rgba(12, 30, 55, .62);
    --elev1: 0 20px 50px rgba(0,0,0,.35);
    --elev2: 0 8px 24px rgba(0,0,0,.28);
    --lineGlow: rgba(133, 211, 255, .34);
}

* {
    box-sizing: border-box;
}

/* Tipografia base */
label {
    font-size: 11px;
    color: rgba(234,240,255,.78);
}

/* Inputs padrão (global) */
input,
select,
textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: var(--inputBg);
    color: var(--text);
    outline: none;
    font-size: 13px;
}

    input::placeholder,
    textarea::placeholder {
        color: rgba(234,240,255,.45);
    }

    input:focus,
    select:focus,
    textarea:focus {
        border-color: var(--brandBorder);
        box-shadow: var(--focusRing);
    }

/* Select não ficar branco */
select {
    appearance: none;
    background-color: var(--inputBg);
    color: var(--text);
}

    select option {
        background: #050812;
        color: var(--text);
    }

/* =========================
   2) CHECKBOX / SWITCH (GLOBAL MENOR)
   ========================= */
input[type="checkbox"] {
    width: var(--chkSize) !important;
    height: var(--chkSize) !important;
    accent-color: rgba(30,139,255,.95);
    transform: translateY(1px);
}

.pager input[type="checkbox"],
.item input[type="checkbox"],
.modal input[type="checkbox"] {
    width: var(--chkSize);
    height: var(--chkSize);
}

/* =========================
   3) BOTÕES (GLOBAL MENOR) + VARIAÇÕES
   ========================= */
.gbtn,
.intp-btn {
    height: var(--btnH);
    padding: 0 var(--btnPadX);
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    font-size: var(--btnFont);
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(135deg, rgba(33,180,255,.88), rgba(79,124,255,.84));
    color: #fff;
    transition: all .18s ease;
    box-shadow: none;
}

    .gbtn:hover,
    .intp-btn:hover {
        background: rgba(33,180,255,.12);
        border-color: rgba(33,180,255,.28);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(33,180,255,.10);
        filter: none;
    }

    .gbtn:active,
    .intp-btn:active {
        transform: translateY(0);
    }

    .gbtn:disabled,
    .intp-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }

    .gbtn.primary,
    .intp-btn.primary {
        border: 1px solid rgba(255,255,255,.16);
        background: linear-gradient(135deg, rgba(33,180,255,.88), rgba(79,124,255,.84));
        color: #fff;
    }

        .gbtn.primary:hover,
        .intp-btn.primary:hover {
            background: rgba(33,180,255,.12);
            border-color: rgba(33,180,255,.28);
            color: #ffffff;
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(33,180,255,.10);
        }

    .gbtn.ghost,
    .intp-btn.ghost {
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.14);
        color: #fff;
    }

        .gbtn.ghost:hover,
        .intp-btn.ghost:hover {
            background: rgba(33,180,255,.10);
            border-color: rgba(33,180,255,.24);
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(33,180,255,.08);
        }

    .gbtn.danger,
    .intp-btn.danger {
        background: rgba(239,68,68,.14);
        border-color: rgba(239,68,68,.35);
        color: #ffb4b4;
    }

        .gbtn.danger:hover,
        .intp-btn.danger:hover {
            background: rgba(239,68,68,.18);
            border-color: rgba(239,68,68,.45);
            color: #ffd0d0;
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(239,68,68,.10);
        }

    .gbtn.sm,
    .intp-btn.sm {
        height: 30px;
        padding: 0 10px;
        font-size: 11px;
        border-radius: 10px;
    }

/* =========================
   4) LOADING (BLAZOR WASM / TV)
   ========================= */
.app-loading,
.tv-loading {
    display: grid;
    place-items: center;
    color: var(--text);
}

.app-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 800px at 20% 10%, rgba(30,139,255,.18), transparent 60%), radial-gradient(900px 700px at 80% 20%, rgba(34,197,94,.12), transparent 60%), var(--bg);
    pointer-events: none;
}

.app-loading-card {
    width: min(560px, calc(100% - 48px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.loading-progress,
.tv-spinner {
    width: 64px;
    height: 64px;
    display: block;
    filter: drop-shadow(0 10px 28px rgba(0,0,0,.35));
    border-radius: 999px;
}

    .loading-progress .lp-track {
        fill: none;
        stroke: rgba(30,139,255,.35);
        stroke-width: 10;
    }

    .loading-progress .lp-bar {
        fill: none;
        stroke: rgba(30,139,255,.92);
        stroke-width: 10;
        stroke-linecap: round;
        stroke-dasharray: 251;
        stroke-dashoffset: 160;
        transform-origin: 50% 50%;
        animation: lp-rotate 1.15s linear infinite, lp-dash 1.35s ease-in-out infinite;
    }

@keyframes lp-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes lp-dash {
    0% {
        stroke-dashoffset: 210;
        opacity: .7;
    }

    50% {
        stroke-dashoffset: 80;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 210;
        opacity: .85;
    }
}

.tv-spinner {
    border: 6px solid rgba(255,255,255,.14);
    border-top-color: rgba(30,139,255,.95);
    border-right-color: rgba(30,139,255,.45);
    animation: tvspin 1s linear infinite;
}

@keyframes tvspin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    text-align: center;
    line-height: 1.2;
}

.loading-title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .2px;
}

.loading-sub {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(234,240,255,.70);
}

.loading-dots,
.intp-progress-dots,
.tv-loading-card .dots {
    display: inline-flex;
    gap: 6px;
    height: 10px;
    align-items: center;
}

    .loading-dots span,
    .intp-progress-dots span {
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: rgba(234,240,255,.65);
        animation: dot 1.05s infinite ease-in-out;
    }

        .loading-dots span:nth-child(2),
        .intp-progress-dots span:nth-child(2) {
            animation-delay: .15s;
            opacity: .85;
        }

        .loading-dots span:nth-child(3),
        .intp-progress-dots span:nth-child(3) {
            animation-delay: .30s;
            opacity: .75;
        }

@keyframes dot {
    0%,100% {
        transform: translateY(0);
        opacity: .55;
    }

    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* =========================
   5) ADMIN LAYOUT (GLOBAL)
   ========================= */
.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: radial-gradient(1200px 760px at -10% -8%, rgba(33,180,255,.2), transparent 58%), radial-gradient(980px 680px at 105% 6%, rgba(79,124,255,.18), transparent 56%), linear-gradient(160deg, #04101f 2%, #061a32 43%, #0a2444 100%);
    color: var(--text);
}

.side {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 16px 14px 20px;
    border-right: 1px solid var(--lineGlow);
    background: linear-gradient(180deg, var(--panelStrong), rgba(8,22,39,.94));
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    box-shadow: inset -1px 0 0 rgba(255,255,255,.04), var(--elev2);
}

.side-toggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .side-toggle:hover {
        border-color: rgba(33,180,255,.55);
        background: rgba(33,180,255,.12);
    }

.burger,
.burger::before,
.burger::after {
    width: .95rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    content: "";
    display: block;
    position: relative;
}

    .burger::before {
        position: absolute;
        top: -.35rem;
    }

    .burger::after {
        position: absolute;
        top: .35rem;
    }

.brand {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding: .65rem .85rem;
    border: 1px solid rgba(148,206,255,.28);
    border-radius: .82rem;
    background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

    .brand span {
        color: #21b4ff;
    }

.side-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0px 10px 10px;
    margin-bottom: 0px;
}

.side-toggle {
    flex-shrink: 0;
    color: white;
}

.brand {
    flex: 1;
}

.menu {
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    overflow-y: auto;
    padding-right: 2px;
}

    .menu .menu-link {
        position: relative;
        display: flex;
        align-items: center;
        gap: .75rem;
        color: var(--text);
        text-decoration: none;
        border-radius: .8rem;
        padding: .7rem .78rem;
        border: 1px solid transparent;
        transition: all .2s ease;
    }

        .menu .menu-link:hover {
            background: rgba(255,255,255,.08);
            border-color: rgba(148,206,255,.32);
            transform: translateY(-1px);
        }

        .menu .menu-link.active {
            background: linear-gradient(90deg, rgba(33,180,255,.18), rgba(79,124,255,.14));
            border-color: rgba(33,180,255,.34);
            box-shadow: inset 0 0 0 1px rgba(189,231,255,.1);
        }

            .menu .menu-link.active::before {
                content: "";
                position: absolute;
                left: -8px;
                top: 8px;
                bottom: 8px;
                width: 3px;
                border-radius: 999px;
                background: linear-gradient(180deg, rgba(87,202,255,.95), rgba(67,136,255,.95));
                box-shadow: 0 0 12px rgba(87,202,255,.5);
            }

    .menu .ico {
        width: 28px;
        height: 28px;
        min-width: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(33,180,255,.12);
        color: #8ecaff;
    }

        .menu .ico svg {
            width: 18px;
            height: 18px;
        }

    .menu .lbl {
        font-size: .94rem;
        font-weight: 500;
        line-height: 1.1;
    }

.main {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
}

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: linear-gradient( 180deg, rgba(10,28,50,.82), rgba(10,28,50,.58) );
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,.025), var(--elev2);
}

.top-grid {
    min-height: 62px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 10px 18px;
}
.who {
    display: flex;
    align-items: center;
}
.top .gbtn {
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: rgba(234,240,255,.92);
    font-size: 12px;
    font-weight: 800;
    transition: all .18s ease;
    box-shadow: none;
}

    .top .gbtn:hover {
        background: rgba(33,180,255,.12);
        border-color: rgba(33,180,255,.28);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(33,180,255,.10);
    }

    .top .gbtn:active {
        transform: translateY(0);
    }

    .top-grid .gbtn {
        justify-self: end;
        border: 1px solid rgba(255,255,255,.16);
        background: linear-gradient(135deg, rgba(33,180,255,.88), rgba(79,124,255,.84));
        border-radius: .65rem;
        font-weight: 700;
    }

        .top-grid .gbtn:hover {
            filter: brightness(1.05);
            transform: translateY(-1px);
            box-shadow: 0 10px 24px rgba(41,136,255,.3);
        }

.content {
    padding: 1.4rem 1.6rem 1.8rem;
    min-width: 0;
}

.company-center {
    text-align: center;
    font-size: .95rem;
    font-weight: 500;
    color: #d4e9ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(33,180,255,.22);
    background: linear-gradient( 180deg, rgba(33,180,255,.14), rgba(33,180,255,.08) );
    color: #bfe5ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 16px rgba(33,180,255,.14);
}

.shell.side-collapsed {
    grid-template-columns: 82px 1fr;
}

.side.collapsed {
    padding: 1.2rem .55rem;
}

    .side.collapsed .brand,
    .side.collapsed .menu .lbl {
        display: none;
    }

    .side.collapsed .menu .menu-link {
        justify-content: center;
        padding: .72rem;
    }

        .side.collapsed .menu .menu-link .ico {
            margin: 0;
        }

        .side.collapsed .menu .menu-link:hover::after {
            content: attr(data-title);
            position: absolute;
            left: calc(100% + 10px);
            top: 50%;
            transform: translateY(-50%);
            background: rgba(6,10,18,.92);
            border: 1px solid rgba(255,255,255,.12);
            color: var(--text);
            padding: 8px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
            box-shadow: var(--shadow);
            z-index: 50;
        }

@media (max-width: 980px) {
    .shell,
    .shell.side-collapsed {
        grid-template-columns: 1fr;
    }

    .side,
    .side.collapsed {
        position: relative;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(144,201,255,.2);
    }

        .side.collapsed .brand,
        .side.collapsed .menu .lbl {
            display: inline;
        }

    .top-grid {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 8px;
        padding: 12px 14px;
    }

    .company-center {
        text-align: left;
        padding: 0;
        max-width: 100%;
    }

    .company-center {
        text-align: center;
        font-size: 14px;
        font-weight: 700;
        color: rgba(234,240,255,.82);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 12px;
    }
}

/* =========================
   6) COMPONENTES (CARD / ALERT / LIST)
   ========================= */
.card,
.intp-card {
    width: min(1100px, 100%);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
    border: 1px solid rgba(159, 216, 255, .18);
    border-radius: calc(var(--radius) + 2px);
    padding: 18px;
    box-shadow: var(--elev1);
    backdrop-filter: blur(12px);
    color: var(--text);
}

    .card:hover,
    .intp-card:hover {
        border-color: rgba(159, 216, 255, .28);
        box-shadow: 0 24px 54px rgba(0,0,0,.38);
    }

.head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

    .head h2 {
        margin: 0;
        font-size: 18px;
        letter-spacing: .2px;
    }

.sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.divider {
    height: 1px;
    background: rgba(255,255,255,.10);
    margin: 10px 0 12px;
}

.alert {
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    margin: 10px 0 12px;
    background: rgba(255,255,255,.06);
    font-size: 12px;
}

    .alert.warn {
        border-color: rgba(245,158,11,.35);
        background: rgba(245,158,11,.08);
    }

    .alert.err {
        border-color: rgba(239,68,68,.35);
        background: rgba(239,68,68,.10);
    }

.tvprof-position-save-msg {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(34,197,94,.55);
    background: transparent;
    color: #39ff88;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .25px;
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(57,255,136,.75), 0 0 14px rgba(57,255,136,.45);
    box-shadow: inset 0 0 0 1px rgba(34,197,94,.22), 0 0 20px rgba(34,197,94,.15);
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

    .item.compact {
        padding: 7px 9px;
    }

.meta {
    min-width: 0;
}

.name {
    font-weight: 900;
    letter-spacing: .2px;
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metaLine {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--muted);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
}

.price-wrap {
    margin-left: auto;
    font-weight: 900;
    color: rgba(234,240,255,.92);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.price {
    font-weight: 900;
    color: rgba(234,240,255,.92);
}

.promoPrice {
    font-weight: 800;
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.45);
    background: rgba(34,197,94,.12);
    border-radius: 999px;
    padding: 2px 8px;
}

.empty {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: rgba(234,240,255,.72);
    font-size: 12px;
}

/* =========================
   7) PAGE: PRODUTOS (compact)
   ========================= */
.page {
    min-height: calc(100vh - 44px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 16px 28px;
}

.form {
    display: grid;
    grid-template-columns: 1fr 170px auto;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0,0,0,.18);
    border: 1px solid var(--border2);
    margin: 10px 0 12px;
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr 160px auto;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0,0,0,.14);
    border: 1px solid var(--border2);
    margin-bottom: 12px;
    align-items: end;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.pagerMeta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    font-size: 12px;
    color: rgba(234,240,255,.65);
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 920px) {
    .form,
    .toolbar {
        grid-template-columns: 1fr;
    }

    .toolbar {
        align-items: stretch;
    }

    .pager {
        justify-content: flex-start;
    }

    .price {
        margin-left: 0;
    }
}

/* =========================================================
   INTEGRAÇÃO DE PRODUTOS (ProductsIntegration.razor)
   ========================================================= */
.intp-page {
    padding: 22px;
    display: flex;
    justify-content: center;
}

.intp-top {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 14px;
}

.intp-title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: .2px;
}

.intp-sub {
    margin: 6px 0 0;
    color: rgba(234,240,255,.72);
    font-size: 13px;
}

.intp-tip {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.14);
    color: rgba(234,240,255,.78);
    font-size: 12.5px;
}

.intp-presetbox {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(0,0,0,.14);
    border: 1px solid rgba(255,255,255,.08);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.intp-presets {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(245,158,11,.35);
    background: rgba(245,158,11,.06);
    box-shadow: 0 0 0 1px rgba(245,158,11,.10) inset;
}

    .intp-presets b {
        display: block;
        font-size: 13px;
        margin-bottom: 10px;
    }

.intp-alert {
    margin: 10px 0 14px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    font-size: 13px;
}

    .intp-alert.err {
        border-color: rgba(239,68,68,.35);
        background: rgba(239,68,68,.12);
    }

    .intp-alert.ok {
        border-color: rgba(34,197,94,.70);
        background: rgba(34,197,94,.08);
        box-shadow: 0 0 0 1px rgba(34,197,94,.22), 0 0 18px rgba(34,197,94,.28), 0 0 60px rgba(34,197,94,.14);
        backdrop-filter: blur(10px);
    }

    .intp-alert.warn {
        border-color: rgba(245,158,11,.45);
        background: rgba(245,158,11,.08);
    }

.intp-form {
    margin-top: 10px;
}

.intp-field {
    min-width: 0;
}

    .intp-field label {
        display: block;
        font-size: 12px;
        color: rgba(234,240,255,.75);
        margin: 0 0 8px;
    }

    .intp-field textarea {
        width: 100%;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,.14);
        background: var(--inputBg);
        color: var(--text);
        outline: none;
        resize: vertical;
    }

.intp-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(234,240,255,.65);
}

.intp-grid,
.intp-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.intp-grid {
    padding: 14px;
    border-radius: 16px;
    background: rgba(0,0,0,.18);
    border: 1px solid var(--border2);
}

.intp-grid2 {
    margin-top: 12px;
}

.intp-span2 {
    grid-column: 1 / -1;
}

.intp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 14px;
}

.intp-tablewrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--border2);
    background: rgba(0,0,0,.12);
}

.intp-table {
    width: 100%;
    border-collapse: collapse;
}

    .intp-table th,
    .intp-table td {
        padding: 10px;
        border-bottom: 1px solid var(--border2);
        text-align: left;
        font-size: 13px;
    }

.intp-pre {
    white-space: pre-wrap;
    margin-top: 10px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.10);
    padding: 10px;
    border-radius: 12px;
}

.intp-progress {
    margin: 10px 0 14px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(10px);
}

    .intp-progress.preview {
        border-color: rgba(30,139,255,.35);
        box-shadow: 0 0 18px rgba(30,139,255,.18);
    }

    .intp-progress.import {
        border-color: rgba(34,197,94,.30);
        box-shadow: 0 0 18px rgba(34,197,94,.14);
    }

.intp-progress-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0,0,0,.22);
    border: 1px solid var(--border2);
}

    .intp-progress-bar > div {
        height: 100%;
        width: 0%;
        border-radius: 999px;
        transition: width .18s ease;
        background: var(--ok);
        box-shadow: 0 0 18px rgba(34,197,94,.25);
    }

.intp-progress.preview .intp-progress-bar > div {
    background: var(--brand);
    box-shadow: 0 0 18px rgba(30,139,255,.25);
}

.intp-progress-meta {
    font-size: 12px;
    color: rgba(234,240,255,.75);
    white-space: nowrap;
}

.intp-progress-sub {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(234,240,255,.70);
}

/* =========================
   MODAIS
   ========================= */
.modal,
.intp-modal-backdrop,
.intp-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.modalCard,
.intp-modal,
.intp-confirm,
.app-modalCard {
    width: min(720px, 100%);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: rgba(10,16,28,.90);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
    overflow: hidden;
}

.modalHead,
.intp-modal-head {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.18);
}

.modalBody,
.intp-modal-body {
    padding: 14px 16px;
    overflow: auto;
}

.modalActions,
.intp-modal-footer {
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.14);
}

.intp-modal-title,
.intp-confirm-title {
    font-size: 14px;
    font-weight: 950;
    letter-spacing: .2px;
}

.intp-modal-close,
.iconBtn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.9);
    cursor: pointer;
}

    .iconBtn:hover,
    .intp-modal-close:hover {
        background: rgba(255,255,255,.10);
    }

.app-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,.55) !important;
    backdrop-filter: blur(6px) !important;
    z-index: 2147483647 !important;
}

.app-modalCard {
    width: min(720px, calc(100% - 24px)) !important;
    max-height: 88vh !important;
    overflow: auto !important;
}

/* =========================
   DEPARTAMENTOS / TVs
   ========================= */
.dept-list {
    display: grid;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0,0,0,.14);
    border: 1px solid rgba(255,255,255,.10);
}

.dept-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    cursor: pointer;
    user-select: none;
    transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .dept-item:hover {
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.14);
    }

    .dept-item:active {
        transform: translateY(1px);
    }

    .dept-item input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
        width: 1px !important;
        height: 1px !important;
    }

.dept-check {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
    flex: 0 0 auto;
}

    .dept-check::after {
        content: "";
        width: 9px;
        height: 5px;
        border-left: 3px solid transparent;
        border-bottom: 3px solid transparent;
        transform: rotate(-45deg);
        opacity: 0;
    }

.dept-name {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .2px;
    color: rgba(234,240,255,.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dept-item input[type="checkbox"]:checked ~ .dept-check {
    background: rgba(30,139,255,.22);
    border-color: rgba(30,139,255,.70);
    box-shadow: 0 0 0 4px rgba(30,139,255,.14);
}

    .dept-item input[type="checkbox"]:checked ~ .dept-check::after {
        border-left-color: rgba(234,240,255,.95);
        border-bottom-color: rgba(234,240,255,.95);
        opacity: 1;
    }

.dept-item input[type="checkbox"]:checked ~ .dept-name {
    color: rgba(255,255,255,.98);
}

.dept-item:focus-within {
    outline: none;
    box-shadow: 0 0 0 4px rgba(30,139,255,.18);
    border-color: rgba(30,139,255,.55);
}

.dept-list.compact .dept-item {
    padding: 8px 10px;
    border-radius: 12px;
}

.dept-list.compact .dept-check {
    width: 16px;
    height: 16px;
    border-radius: 5px;
}

/* =========================
   CHECKBOX BONITO (ui-check)
   ========================= */
.ui-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    cursor: pointer;
    line-height: 1.1;
}

    .ui-check input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .ui-check .ui-box {
        width: 18px;
        height: 18px;
        border-radius: 6px;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.18);
        box-shadow: inset 0 0 0 1px rgba(0,0,0,.30);
        display: grid;
        place-items: center;
        transition: background .14s ease, border-color .14s ease, transform .08s ease, box-shadow .14s ease;
    }

        .ui-check .ui-box::after {
            content: "";
            width: 9px;
            height: 9px;
            border-radius: 3px;
            background: rgba(30,139,255,.95);
            transform: scale(0);
            transition: transform .12s ease;
        }

    .ui-check:hover .ui-box {
        border-color: rgba(255,255,255,.28);
        background: rgba(255,255,255,.08);
    }

    .ui-check input:checked + .ui-box {
        border-color: rgba(30,139,255,.70);
        background: rgba(30,139,255,.16);
        box-shadow: 0 0 0 3px rgba(30,139,255,.12);
    }

        .ui-check input:checked + .ui-box::after {
            transform: scale(1);
        }

    .ui-check input:focus-visible + .ui-box {
        box-shadow: 0 0 0 4px rgba(30,139,255,.18);
    }

    .ui-check .ui-label {
        font-size: 12px;
        color: rgba(234,240,255,.82);
    }

    .ui-check.sm {
        gap: 8px;
    }

        .ui-check.sm .ui-box {
            width: 16px;
            height: 16px;
            border-radius: 5px;
        }

            .ui-check.sm .ui-box::after {
                width: 8px;
                height: 8px;
                border-radius: 3px;
            }

    .ui-check.only {
        gap: 0;
        padding: 0;
    }

        .ui-check.only .ui-label {
            display: none;
        }

    .ui-check input:disabled + .ui-box {
        opacity: .45;
        filter: grayscale(.2);
    }

    .ui-check input:disabled ~ .ui-label {
        opacity: .55;
        cursor: not-allowed;
    }

.item .ui-check {
    margin-right: 4px;
}

/* =========================
   TV PICK
   ========================= */
.tvpick-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    max-height: 180px;
    overflow: auto;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0,0,0,.14);
    border: 1px solid rgba(255,255,255,.10);
}

.tvpick {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    transition: background .15s ease, border-color .15s ease, transform .08s ease;
}

    .tvpick:hover {
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.14);
    }

    .tvpick:active {
        transform: translateY(1px);
    }

    .tvpick input:checked ~ .ui-label {
        color: rgba(255,255,255,.95);
        font-weight: 900;
    }

.app-modal input[type="checkbox"] {
    accent-color: initial !important;
}

/* =========================
   UTILITY / SMALL HELPERS
   ========================= */
.kv-wrap {
    display: grid;
    gap: 8px;
}

.kv-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
}

.intp-presets-list,
.tvpick-list {
    max-height: 420px;
    overflow: auto;
    padding-right: 6px;
}

@media (max-width: 980px) {
    .intp-top {
        grid-template-columns: 1fr;
    }

    .intp-presets-list {
        max-height: 300px;
    }

    .intp-presetbox {
        grid-template-columns: 1fr;
    }

    .intp-preset-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .intp-grid,
    .intp-grid2 {
        grid-template-columns: 1fr;
    }

    .kv-row {
        grid-template-columns: 1fr 1fr auto;
    }
}

/* =========================================================
   LOGIN
   ========================================================= */
.wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: transparent;
}

    .wrap .card:not(.login-card) {
        width: min(640px, calc(100% - 24px));
        padding: 22px;
        border-radius: 18px;
    }

    .wrap input,
    .wrap select,
    .wrap textarea {
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
    }

        .wrap input:focus,
        .wrap input:focus-visible,
        .wrap select:focus,
        .wrap select:focus-visible,
        .wrap textarea:focus,
        .wrap textarea:focus-visible {
            border-color: rgba(30,139,255,.65) !important;
            box-shadow: 0 0 0 4px rgba(30,139,255,.22) !important;
            outline: none !important;
        }

    .wrap .err {
        margin-top: 12px;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid rgba(239,68,68,.45);
        background: rgba(239,68,68,.12);
        color: rgba(255,190,190,.95);
        font-size: 13px;
    }

.auth-shell {
    min-height: 100vh;
    background: transparent;
}

.wrap.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.login-card {
    width: min(920px, calc(100% - 24px));
    padding: 0;
    border-radius: 22px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 80px rgba(0,0,0,.50);
    backdrop-filter: blur(14px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .login-card:hover {
        transform: translateY(-2px);
        border-color: rgba(30,139,255,.26);
        box-shadow: 0 28px 95px rgba(0,0,0,.56), 0 0 0 1px rgba(30,139,255,.10) inset;
    }

.login-left {
    padding: 26px 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.10);
    gap: 6px;
    position: relative;
    overflow: hidden;
}

    .login-left h1 {
        margin-top: 10px;
        font-size: 36px;
        font-weight: 950;
        letter-spacing: .2px;
    }

    .login-left p {
        margin: 0;
        color: rgba(234,240,255,.72);
        font-size: 13.5px;
        max-width: 42ch;
    }

    .login-left::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 86px;
        width: 360px;
        height: 220px;
        transform: translateX(-50%);
        background: radial-gradient(circle at 50% 40%, rgba(30,139,255,.18), transparent 62%);
        filter: blur(10px);
        opacity: .85;
        pointer-events: none;
    }

    .login-left::after {
        content: "";
        position: absolute;
        top: 16px;
        right: -1px;
        bottom: 16px;
        width: 1px;
        background: linear-gradient(to bottom, transparent, rgba(30,139,255,.55), rgba(30,139,255,.20), transparent);
        box-shadow: 0 0 18px rgba(30,139,255,.35), 0 0 42px rgba(30,139,255,.18);
        opacity: .95;
    }

.login-logo {
    width: 210px;
    max-width: 86%;
    height: auto;
    margin-bottom: 6px;
    transform: translateZ(0);
    filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)) drop-shadow(0 0 18px rgba(30,139,255,.22)) drop-shadow(0 0 42px rgba(30,139,255,.12));
    transition: transform .22s ease, filter .22s ease;
}

.login-card:hover .login-logo {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 14px 34px rgba(0,0,0,.55)) drop-shadow(0 0 26px rgba(30,139,255,.30)) drop-shadow(0 0 60px rgba(30,139,255,.18));
}

.login-right {
    padding: 26px 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-right .field {
        margin-top: 12px;
    }

        .login-right .field label {
            display: block;
            margin: 0 0 8px;
            font-size: 12px;
            color: rgba(234,240,255,.78);
        }

.login-right-head {
    margin-bottom: 14px;
}

    .login-right-head h1 {
        margin: 0;
        font-size: 28px;
        font-weight: 950;
        letter-spacing: .2px;
    }

    .login-right-head p {
        margin: 6px 0 0;
        font-size: 13px;
        color: rgba(234,240,255,.72);
    }

.login-tagline {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(234,240,255,.78);
    line-height: 1.35;
    max-width: 260px;
}

.login-card input.input {
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(15,22,36,.72);
    color: var(--text);
    transition: border-color .12s ease, box-shadow .12s ease;
}

    .login-card input.input:focus,
    .login-card input.input:focus-visible {
        border-color: rgba(30,139,255,.75) !important;
        box-shadow: 0 0 0 4px rgba(30,139,255,.22) !important;
        outline: none !important;
    }

.login-card .gbtn {
    width: 100%;
    height: 46px;
    margin-top: 16px;
    border-radius: 14px;
    background: rgba(30,139,255,.96);
    border-color: rgba(30,139,255,.55);
}

.login-card .err {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(239,68,68,.45);
    background: rgba(239,68,68,.12);
    color: rgba(255,190,190,.95);
    font-size: 13px;
}

@media (max-width: 820px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-left {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.10);
        text-align: left;
    }

        .login-left::after {
            top: auto;
            left: 16px;
            right: 16px;
            bottom: -1px;
            width: auto;
            height: 1px;
            background: linear-gradient(to right, transparent, rgba(30,139,255,.55), rgba(30,139,255,.20), transparent);
        }
}

.lp-wrap {
    max-width: 1120px;
    margin: 32px auto;
    padding: 0 24px 24px;
}

.lp-hero {
    margin-bottom: 22px;
}

.lp-badge {
    display: inline-block;
    background: rgba(148, 163, 184, 0.22);
    border: 1px solid rgba(203, 213, 225, 0.25);
    color: #dbeafe;
    font-size: 0.82rem;
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.lp-hero h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
    margin-bottom: 10px;
    color: #f8fafc;
    font-weight: 700;
}

.lp-hero p {
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1.45;
    max-width: 980px;
}

.lp-form-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 22px 48px rgba(2, 8, 23, 0.32);
    border: 1px solid #e2e8f0;
}

    .lp-form-card h3 {
        margin: 0;
        color: #0f172a;
        font-size: 2rem;
    }

.lp-subtitle {
    margin: 8px 0 18px;
    color: #475569;
}

.lp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.lp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp-field-full {
    grid-column: 1 / -1;
}

.lp-label {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

.lp-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    padding: 12px 13px;
    outline: none;
    box-sizing: border-box;
}

    .lp-input::placeholder {
        color: #969696;
    }

    .lp-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

.lp-cta {
    background: linear-gradient(100deg, #2de702 0%, #07de04 100%);
    color: #fff;
    border: 0;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .lp-cta:hover {
        transform: scale(1.05); /* Aumenta levemente o botão */
        background: linear-gradient(100deg, #32ff00 0%, #09f505 100%); /* Verde mais vibrante */
        box-shadow: 0 0 20px rgba(45, 231, 2, 0.6); /* Efeito neon/glow */
        filter: brightness(1.1); /* Dá um "tapa" na iluminação */
    }

.lp-success {
    margin-top: 16px;
    background: #ddfadd;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 12px;
}

    .lp-success hr {
        border: 0;
        border-top: 1px solid #bbf7d0;
        margin: 10px 0;
    }

.lp-pair-code {
    display: inline-block;
    background: #052e16;
    color: #dcfce7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.lp-pair-help {
    color: #166534;
}

.lp-error {
    margin-top: 12px;
    color: #b91c1c;
}

@media (max-width: 800px) {
    .lp-wrap {
        padding: 0 14px 18px;
    }

    .lp-hero p {
        font-size: 1rem;
    }

    .lp-form-card {
        padding: 20px;
        border-radius: 14px;
    }

        .lp-form-card h3 {
            font-size: 1.6rem;
        }

    .lp-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .tv-layout-canvas {
        width: 100%;
    }

    .tv-layout-livePreview-head {
        gap: 12px;
        align-items: flex-start;
    }
}

/* =========================================================
   GRIDTECH ADMIN 2026
   Interface clara, operacional e inspirada no painel de
   referência, preservando o azul e o ciano da marca.
   ========================================================= */
:root {
    --gt-blue: #2587f3;
    --gt-cyan: #16c9d4;
    --gt-mint: #2ee7b5;
    --gt-navy: #082d3c;
    --gt-navy-deep: #05242f;
    --gt-ink: #142733;
    --gt-muted: #71838d;
    --gt-canvas: #f3f7f7;
    --gt-surface: #ffffff;
    --gt-line: #dfe9e8;
    --gt-soft: #edf6f5;
    --brand: var(--gt-blue);
    --brandBorder: rgba(37, 135, 243, .4);
    --text: var(--gt-ink);
    --muted: var(--gt-muted);
    --inputBg: #fff;
    --border: var(--gt-line);
    --border2: var(--gt-line);
    --focusRing: 0 0 0 4px rgba(37, 135, 243, .12);
    --shadow: 0 12px 32px rgba(20, 58, 68, .09);
}

html,
body {
    color: var(--gt-ink);
    background: var(--gt-canvas);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.shell {
    grid-template-columns: 248px minmax(0, 1fr);
    background: var(--gt-canvas);
    color: var(--gt-ink);
}

.side {
    padding: 22px 16px 18px;
    border-right: 0;
    background:
        radial-gradient(circle at 15% 0, rgba(22, 201, 212, .15), transparent 32%),
        linear-gradient(180deg, #093f4a 0%, var(--gt-navy-deep) 100%);
    box-shadow: 8px 0 28px rgba(5, 36, 47, .08);
}

.side-header {
    gap: 8px;
    min-height: 58px;
    padding: 0 4px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.side-toggle {
    width: 36px;
    height: 36px;
    color: #dff9f7;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .06);
}

.side-toggle:hover {
    border-color: rgba(46, 231, 181, .5);
    background: rgba(46, 231, 181, .1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 4px 2px;
    border: 0;
    background: transparent;
}

.brand img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: cover;
    object-position: top;
    border-radius: 9px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .18));
}

.brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    color: #eafcff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .045em;
}

.brand-copy strong span {
    color: var(--gt-mint);
}

.brand-copy small {
    margin-top: 5px;
    color: rgba(223, 249, 247, .58);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.menu {
    margin-top: 20px;
    gap: 5px;
}

.menu .menu-link {
    gap: 12px;
    min-height: 46px;
    padding: 8px 11px;
    color: rgba(231, 249, 249, .72);
    border-radius: 9px;
}

.menu .menu-link:hover {
    color: #fff;
    border-color: rgba(46, 231, 181, .12);
    background: rgba(255, 255, 255, .06);
    transform: none;
}

.menu .menu-link.active {
    color: #fff;
    border-color: rgba(46, 231, 181, .16);
    background: linear-gradient(90deg, rgba(46, 231, 181, .18), rgba(22, 201, 212, .1));
    box-shadow: inset 3px 0 0 var(--gt-mint);
}

.menu .menu-link.active::before {
    display: none;
}

.menu .ico {
    width: 28px;
    min-width: 28px;
    height: 28px;
    color: #62e7df;
    background: transparent;
}

.menu .lbl {
    font-size: 13px;
    font-weight: 650;
}

.side-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 18px 8px 2px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #dff9f7;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--gt-mint);
    box-shadow: 0 0 0 4px rgba(46, 231, 181, .1), 0 0 12px rgba(46, 231, 181, .5);
}

.status-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.status-copy strong {
    font-size: 10px;
    font-weight: 650;
}

.status-copy small {
    margin-top: 3px;
    color: rgba(223, 249, 247, .45);
    font-size: 9px;
}

.main {
    grid-template-rows: 74px 1fr;
    background: var(--gt-canvas);
}

.top {
    border-bottom: 1px solid var(--gt-line);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 18px rgba(22, 62, 70, .035);
}

.top-grid {
    min-height: 74px;
    padding: 12px 30px;
}

.company-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gt-ink);
}

.company-center small {
    color: var(--gt-muted);
    font-size: 11px;
}

.company-center small::after {
    content: "•";
    margin-left: 8px;
    color: var(--gt-cyan);
}

.company-center strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
}

.pill {
    min-height: 28px;
    color: #087d82;
    border-color: #cceceb;
    background: #ebf9f7;
    box-shadow: none;
    font-size: 9px;
}

.top .gbtn.logout-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #31505d;
    border-color: var(--gt-line);
    background: #fff;
    box-shadow: 0 3px 10px rgba(20, 58, 68, .05);
}

.logout-button svg {
    width: 15px;
    height: 15px;
}

.content {
    padding: 24px 30px 38px;
}

.page,
.intp-page {
    justify-content: stretch;
    min-height: auto;
    padding: 0;
}

.card,
.intp-card {
    width: 100%;
    color: var(--gt-ink);
    border: 1px solid var(--gt-line);
    border-radius: 12px;
    background: var(--gt-surface);
    box-shadow: 0 8px 24px rgba(20, 58, 68, .055);
    backdrop-filter: none;
}

.card:hover,
.intp-card:hover {
    border-color: #d3e3e2;
    box-shadow: 0 10px 28px rgba(20, 58, 68, .075);
}

.head {
    align-items: center;
    margin-bottom: 18px;
}

.head h2,
.intp-title h2 {
    color: #142733;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.sub,
.intp-sub,
.muted,
.hint,
.pagerMeta {
    color: var(--gt-muted);
}

.divider {
    background: var(--gt-line);
}

label {
    color: #506873;
    font-weight: 650;
}

input,
select,
textarea {
    min-height: 40px;
    color: var(--gt-ink);
    border-color: #d7e3e3;
    background: #fff;
}

input::placeholder,
textarea::placeholder {
    color: #9babb2;
}

select option {
    color: var(--gt-ink);
    background: #fff;
}

.gbtn,
.intp-btn {
    min-height: 36px;
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--gt-blue), #1675df);
    box-shadow: 0 5px 12px rgba(37, 135, 243, .18);
}

.gbtn:hover,
.intp-btn:hover,
.gbtn.primary:hover,
.intp-btn.primary:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #1675df, #0866cd);
    box-shadow: 0 7px 16px rgba(37, 135, 243, .25);
}

.gbtn.ghost,
.intp-btn.ghost,
.btn.ghost {
    color: #3d5964;
    border-color: var(--gt-line);
    background: #fff;
}

.gbtn.danger,
.intp-btn.danger {
    color: #c84949;
    border-color: #f3d4d4;
    background: #fff5f5;
}

.form,
.toolbar,
.intp-tip,
.intp-presetbox {
    border-color: var(--gt-line);
    background: #f8fbfb;
}

.list {
    gap: 8px;
}

.item {
    color: var(--gt-ink);
    border-color: var(--gt-line);
    background: #fff;
}

.item:hover {
    border-color: #c7dddc;
    background: #fbfdfd;
}

.name,
.price {
    color: var(--gt-ink);
}

.chip {
    color: #4e6872;
    border-color: var(--gt-line);
    background: var(--gt-soft);
}

.alert {
    color: #35515c;
    border-color: #cfe5e3;
    background: #f1f9f8;
}

.alert.warn {
    color: #8a6418;
    border-color: #eedcae;
    background: #fffaf0;
}

.alert.err {
    color: #ad4141;
    border-color: #f0cccc;
    background: #fff4f4;
}

.modal,
.modalCard {
    color: var(--gt-ink);
    border-color: var(--gt-line);
    background: #fff;
    box-shadow: 0 24px 70px rgba(7, 37, 47, .2);
}

.modalBackdrop {
    background: rgba(5, 36, 47, .45);
    backdrop-filter: blur(3px);
}

.selectedBadge {
    color: #087d82;
    border-color: #cceceb;
    background: #ebf9f7;
}

.selectedBadge .dot {
    background: var(--gt-mint);
    box-shadow: 0 0 0 4px rgba(46, 231, 181, .15);
}

.shell.side-collapsed {
    grid-template-columns: 82px minmax(0, 1fr);
}

.side.collapsed .brand-copy,
.side.collapsed .side-status .status-copy {
    display: none;
}

.side.collapsed .brand img {
    width: 36px;
    height: 36px;
}

@media (max-width: 980px) {
    .shell,
    .shell.side-collapsed {
        grid-template-columns: 1fr;
    }

    .side,
    .side.collapsed {
        position: sticky;
        z-index: 30;
        top: 0;
        height: auto;
        padding: 10px 14px;
    }

    .side-header {
        min-height: 48px;
        padding: 0;
        border-bottom: 0;
    }

    .side .menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .side.collapsed .menu {
        display: none;
    }

    .side-status {
        display: none;
    }

    .main {
        grid-template-rows: auto 1fr;
    }

    .top {
        position: relative;
    }

    .top-grid {
        grid-template-columns: auto 1fr auto;
        min-height: 58px;
        padding: 10px 16px;
    }

    .company-center {
        text-align: center;
    }

    .content {
        padding: 18px 16px 30px;
    }
}

@media (max-width: 680px) {
    .side .menu {
        grid-template-columns: 1fr 1fr;
    }

    .top-grid {
        grid-template-columns: 1fr auto;
    }

    .who {
        display: none;
    }

    .company-center {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        text-align: left;
    }

    .company-center small::after {
        display: none;
    }

    .head,
    .headActions,
    .actions,
    .item {
        align-items: stretch;
        flex-direction: column;
    }

    .itemActions {
        justify-content: flex-start;
    }

    .card,
    .intp-card {
        padding: 14px;
    }

    .head h2,
    .intp-title h2 {
        font-size: 20px;
    }
}
