:root {
    --navy: #0b1739;
    --navy-light: #13244d;
    --blue: #2563eb;
    --blue-light: #eff6ff;

    --background: #f5f7fb;
    --surface: #ffffff;

    --text: #182230;
    --muted: #667085;
    --border: #e6eaf0;

    --green: #16a34a;
    --green-bg: #ecfdf3;

    --red: #dc2626;
    --red-bg: #fef2f2;

    --amber: #d97706;
    --amber-bg: #fff7ed;

    --sidebar-width: 260px;

    --shadow:
        0 8px 30px rgba(16, 24, 40, 0.06);
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    min-height: 100%;
}


body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);
}


button,
input {
    font: inherit;
}


a {
    color: inherit;
    text-decoration: none;
}


/* BRAND */

.brand-symbol {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #4d8dff,
            #1f5ed7
        );

    color: #ffffff;

    font-size: 28px;
    font-weight: 800;

    box-shadow:
        0 8px 22px rgba(37, 99, 235, 0.28);
}


.brand-symbol.small {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    font-size: 21px;
}


.brand-name {
    color: #ffffff;

    font-size: 20px;
    font-weight: 700;

    letter-spacing: -0.4px;
}


.brand-name span {
    color: #68a0ff;
}


.brand-name.dark {
    color: var(--navy);
}


.brand-description {
    margin-top: 8px;

    max-width: 280px;

    color: #9aabd1;

    line-height: 1.6;
    font-size: 14px;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    color: #7ca7ff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.eyebrow.blue {
    color: var(--blue);
}


/* LOGIN */

.login-page {
    min-height: 100vh;

    display: grid;
    grid-template-columns:
        minmax(420px, 46%)
        1fr;
}


.login-panel {
    min-height: 100vh;

    padding: 54px 64px;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(52, 102, 214, 0.24),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #07122f,
            #0c1b43
        );

    color: #ffffff;
}


.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}


.login-content {
    margin: auto 0;
}


.login-heading h1 {
    margin: 0;

    max-width: 520px;

    font-size: clamp(
        38px,
        4vw,
        58px
    );

    line-height: 1.08;

    letter-spacing: -2px;
}


.login-heading p {
    max-width: 500px;

    margin-top: 24px;

    color: #aebbd9;

    line-height: 1.75;

    font-size: 16px;
}


.login-features {
    margin-top: 40px;

    display: grid;
    gap: 16px;
}


.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #dbe4f7;

    font-size: 14px;
}


.login-feature span {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(74, 222, 128, 0.13);

    color: #4ade80;

    font-size: 12px;
}


.login-footer {
    color: #7284ae;

    font-size: 12px;
}


.login-form-area {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;

    background: #f8faff;
}


.login-card {
    width: 100%;
    max-width: 430px;

    padding: 44px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 22px;

    box-shadow: var(--shadow);
}


.mobile-brand {
    display: none;

    margin-bottom: 35px;

    align-items: center;
    gap: 12px;
}


.login-card h2 {
    margin: 0;

    font-size: 34px;

    letter-spacing: -1px;
}


.login-subtitle {
    margin:
        10px
        0
        32px;

    color: var(--muted);

    font-size: 14px;
}


.login-form {
    display: grid;
}


.login-form label {
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 600;
}


.login-form input {
    width: 100%;

    margin-bottom: 20px;
    padding: 14px 15px;

    border: 1px solid #d8dee9;
    border-radius: 10px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}


.login-form input:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.1);
}


.login-form button {
    margin-top: 8px;

    padding: 14px;

    border: 0;
    border-radius: 10px;

    background: var(--blue);

    color: #ffffff;

    font-weight: 700;

    cursor: pointer;
}


.login-form button:hover {
    background: #1d4ed8;
}


.login-security {
    margin-top: 24px;

    text-align: center;

    color: #98a2b3;

    font-size: 12px;
}


/* APP LAYOUT */

.app-shell {
    min-height: 100vh;

    display: flex;
}


.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: var(--sidebar-width);

    padding: 28px 18px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #0b1739,
            #09132f
        );

    color: #ffffff;
}


.sidebar-brand {
    padding: 0 10px 28px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.sidebar-nav {
    margin-top: 26px;

    display: grid;
    gap: 7px;
}


.nav-item {
    padding: 12px 14px;

    display: flex;
    align-items: center;
    gap: 13px;

    border-radius: 9px;

    color: #aebbd4;

    font-size: 14px;

    transition:
        background 0.2s,
        color 0.2s;
}


.nav-item:hover {
    background:
        rgba(255, 255, 255, 0.06);

    color: #ffffff;
}


.nav-item.active {
    background:
        rgba(52, 105, 225, 0.18);

    color: #ffffff;
}


.nav-icon {
    width: 20px;

    color: #779bea;

    text-align: center;
}


.nav-divider {
    height: 1px;

    margin: 13px 10px;

    background:
        rgba(255, 255, 255, 0.07);
}


.sidebar-footer {
    margin-top: auto;

    padding: 20px 8px 4px;

    display: flex;
    align-items: center;
    gap: 11px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.user-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #274b98;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}


.user-info {
    min-width: 0;

    display: grid;
}


.user-info strong {
    font-size: 13px;
}


.user-info span {
    margin-top: 3px;

    color: #7f90b3;

    font-size: 11px;
}


.main-content {
    width:
        calc(
            100% - var(--sidebar-width)
        );

    min-height: 100vh;

    margin-left:
        var(--sidebar-width);
}


.topbar {
    min-height: 88px;

    padding: 0 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    border-bottom:
        1px solid var(--border);
}


.topbar h1 {
    margin: 0;

    font-size: 20px;

    letter-spacing: -0.4px;
}


.topbar p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 12px;
}


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


.system-indicator {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--muted);

    font-size: 12px;
}


.system-indicator span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 4px
        rgba(22, 163, 74, 0.1);
}


.primary-button {
    padding: 11px 16px;

    border: 0;
    border-radius: 9px;

    background: var(--blue);

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}


.dashboard {
    padding: 34px 36px 50px;
}


.welcome-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}


.welcome-row h2 {
    margin: 0;

    font-size: 28px;

    letter-spacing: -0.8px;
}


.welcome-row p {
    margin: 8px 0 0;

    color: var(--muted);

    font-size: 14px;
}


.last-update {
    color: var(--muted);

    font-size: 12px;
}


/* METRICS */

.metric-grid {
    margin-top: 28px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.metric-card {
    min-height: 128px;

    padding: 22px;

    display: flex;
    align-items: center;
    gap: 17px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 14px;

    box-shadow:
        0 3px 14px
        rgba(16, 24, 40, 0.025);
}


.metric-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    font-weight: 800;
}


.blue-card {
    background: var(--blue-light);
    color: var(--blue);
}


.green-card {
    background: var(--green-bg);
    color: var(--green);
}


.red-card {
    background: var(--red-bg);
    color: var(--red);
}


.amber-card {
    background: var(--amber-bg);
    color: var(--amber);
}


.metric-card > div:last-child {
    display: grid;
}


.metric-card span {
    color: var(--muted);

    font-size: 12px;
}


.metric-card strong {
    margin-top: 3px;

    font-size: 27px;

    letter-spacing: -1px;
}


.metric-card small {
    margin-top: 3px;

    color: #98a2b3;

    font-size: 10px;
}


/* PANEL */

.panel {
    margin-top: 22px;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 14px;
}


.panel-header {
    min-height: 82px;

    padding: 20px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid var(--border);
}


.panel-header h3 {
    margin: 0;

    font-size: 16px;
}


.panel-header p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 12px;
}


.panel-header a {
    color: var(--blue);

    font-size: 12px;
    font-weight: 700;
}


.table-wrapper {
    overflow-x: auto;
}


table {
    width: 100%;

    border-collapse: collapse;
}


th {
    padding: 13px 20px;

    background: #fafbfc;

    color: #7b8494;

    text-align: left;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.4px;

    text-transform: uppercase;
}


td {
    padding: 17px 20px;

    border-top:
        1px solid #edf0f4;

    color: #475467;

    font-size: 12px;
}


.device-name {
    display: flex;
    align-items: center;
    gap: 12px;
}


.device-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--blue-light);

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;
}


.device-name > div:last-child {
    display: grid;
}


.device-name strong {
    color: var(--text);

    font-size: 13px;
}


.device-name span {
    margin-top: 3px;

    color: #98a2b3;

    font-size: 10px;
}


.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
}


.status-badge.online {
    background: var(--green-bg);
    color: var(--green);
}


.status-badge.offline {
    background: var(--red-bg);
    color: var(--red);
}


.status-badge i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;
}


.table-action {
    width: 30px;
    height: 30px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: #ffffff;

    color: var(--muted);

    cursor: pointer;
}


/* RESPONSIVE */

@media (
    max-width: 1100px
) {
    .metric-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (
    max-width: 850px
) {
    .login-page {
        display: block;
    }

    .login-panel {
        display: none;
    }

    .login-form-area {
        min-height: 100vh;

        padding: 25px;
    }

    .mobile-brand {
        display: flex;
    }

    .sidebar {
        width: 76px;

        padding-left: 10px;
        padding-right: 10px;
    }

    .sidebar-brand .brand-name,
    .nav-item:not(.active) {
    }

    .sidebar-brand {
        justify-content: center;

        padding-left: 0;
        padding-right: 0;
    }

    .sidebar-brand .brand-name,
    .nav-item {
        font-size: 0;
    }

    .nav-item {
        justify-content: center;
    }

    .nav-icon {
        font-size: 18px;
    }

    .sidebar-footer .user-info {
        display: none;
    }

    .sidebar-footer {
        justify-content: center;
    }

    .main-content {
        width: calc(100% - 76px);
        margin-left: 76px;
    }

    .topbar {
        padding: 0 20px;
    }

    .system-indicator {
        display: none;
    }

    .dashboard {
        padding: 25px 20px;
    }
}


@media (
    max-width: 620px
) {
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .welcome-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .primary-button {
        display: none;
    }

    .login-card {
        padding: 30px 24px;
    }
}


/* ============================================================
   SAMPAIO MANAGER - DASHBOARD BRAND
   ============================================================ */

.dashboard-brand {
    width: 210px;
    height: 54px;

    margin-bottom: 14px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.dashboard-brand img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: left center;
}


/* ============================================================
   SAMPAIO MANAGER - VISUAL V2
   ============================================================ */

:root {
    --background: #e8edf5;
    --surface: #ffffff;
    --border: #d8e0eb;

    --shadow:
        0 10px 28px rgba(15, 23, 42, 0.08);
}


/* Fundo principal */

body {
    background: var(--background);
}


/* Nova identidade da sidebar */

.brand-symbol.small {
    width: 46px;
    height: 46px;

    padding: 0;

    flex-shrink: 0;

    border-radius: 13px;

    background: transparent;

    box-shadow:
        0 8px 22px rgba(37, 99, 235, 0.18);

    overflow: hidden;
}

.brand-symbol.small img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: inherit;
}


/* Sidebar um pouco mais profunda */

.sidebar {
    background:
        linear-gradient(
            180deg,
            #091735 0%,
            #07122b 55%,
            #050f25 100%
        );

    box-shadow:
        10px 0 35px rgba(15, 23, 42, 0.08);
}


/* Item selecionado */

.nav-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(37, 99, 235, 0.24),
            rgba(37, 99, 235, 0.14)
        );

    box-shadow:
        inset 0 0 0 1px
        rgba(96, 165, 250, 0.08);
}


/* Cards */

.metric-card {
    border-color: rgba(203, 213, 225, 0.85);

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.055);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);

    border-color: #c4d0df;

    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.09);
}


/* Painéis e tabelas */

.panel {
    border-color: rgba(203, 213, 225, 0.9);

    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.055);
}


/* Logo principal da Dashboard */

.dashboard-brand {
    width: 250px;
    height: 64px;

    margin-bottom: 15px;
}

.dashboard-brand img {
    object-fit: contain;
    object-position: left center;
}


/* ============================================================
   SAMPAIO MANAGER - DASHBOARD FINAL
   ============================================================ */

/* Logo principal */

.dashboard-brand {
    width: 290px;
    height: 76px;

    margin-bottom: 18px;
}


/* Ícones dos indicadores */

.metric-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 13px;
}

.metric-icon svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Cores dos indicadores */

.blue-card {
    color: #2563eb;
    background: #eaf2ff;
}

.green-card {
    color: #16a34a;
    background: #e9f9ef;
}

.red-card {
    color: #e11d48;
    background: #fff0f3;
}

.amber-card {
    color: #ea7600;
    background: #fff3e6;
}


/* Cards */

.metric-card {
    min-height: 118px;

    padding: 22px 20px;

    border-radius: 15px;
}

.metric-card strong {
    font-size: 28px;
    line-height: 1.1;
}


/* Última atualização */

.last-update {
    padding: 12px 16px;

    border:
        1px solid
        rgba(203, 213, 225, 0.75);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.42);

    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.035);

    color: #53647d;
}


/* Painel principal */

.panel {
    border-radius: 16px;
    overflow: hidden;
}

.panel-header {
    padding-top: 22px;
    padding-bottom: 22px;
}


/* Cabeçalho da tabela */

table thead th {
    background: #f7f9fc;

    color: #53647d;

    font-weight: 700;
}


/* Botão da tabela */

.table-action {
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.table-action:hover {
    transform: translateX(2px);

    background: #eff6ff;
    border-color: #bfd3f8;
}


/* ============================================================
   SAMPAIO MANAGER - OPERATIONAL HOME
   ============================================================ */

/* Marca principal */

.dashboard-brand {
    width: 350px;
    height: 90px;

    margin-bottom: 20px;
}

.welcome-row h2 {
    font-size: 30px;
    font-weight: 800;

    letter-spacing: -0.9px;
}

.welcome-row p {
    font-size: 14px;
    font-weight: 500;
}


/* Visão geral */

.dashboard-overview {
    margin-top: 28px;

    display: grid;
    grid-template-columns:
        minmax(260px, 0.8fr)
        minmax(480px, 2.2fr);

    gap: 18px;
}


/* Card Equipamentos */

.equipment-summary-card {
    min-height: 132px;

    padding: 24px;

    display: flex;
    align-items: center;

    gap: 18px;

    background: var(--surface);

    border:
        1px solid
        rgba(203, 213, 225, 0.85);

    border-radius: 16px;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.055);
}

.equipment-summary-content {
    display: grid;
    gap: 7px;
}

.equipment-summary-content > span {
    color: #53647d;

    font-size: 13px;
    font-weight: 700;
}

.equipment-summary-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.equipment-summary-value strong {
    color: var(--text);

    font-size: 32px;
    font-weight: 800;

    letter-spacing: -1.2px;
}

.equipment-summary-value small {
    color: #7c8ba1;

    font-size: 11px;
    font-weight: 600;
}


/* Acesso rápido */

.quick-access {
    min-height: 132px;

    padding: 20px 22px;

    display: grid;
    grid-template-columns:
        minmax(150px, 0.7fr)
        minmax(360px, 1.6fr);

    align-items: center;

    gap: 20px;

    background: var(--surface);

    border:
        1px solid
        rgba(203, 213, 225, 0.85);

    border-radius: 16px;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.055);
}

.quick-access-heading {
    display: grid;
    gap: 5px;
}

.quick-access-heading strong {
    color: var(--text);

    font-size: 15px;
    font-weight: 800;
}

.quick-access-heading span {
    color: var(--muted);

    font-size: 11px;
    line-height: 1.45;
}

.quick-access-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.quick-action {
    min-height: 72px;

    padding: 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    border:
        1px solid
        #d8e2f0;

    border-radius: 12px;

    background: #f8faff;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.quick-action:not(.disabled):hover {
    transform: translateY(-2px);

    border-color: #b9cff5;

    background: #f1f6ff;
}

.quick-action-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    border-radius: 10px;

    background: #e8f1ff;

    color: #2563eb;

    font-size: 24px;
    font-weight: 500;
}

.quick-action-icon.credential {
    background: #edf9f1;

    color: #16a34a;
}

.quick-action > span:last-child {
    display: grid;
    gap: 3px;
}

.quick-action strong {
    color: var(--text);

    font-size: 12px;
    font-weight: 800;
}

.quick-action small {
    color: var(--muted);

    font-size: 10px;
}

.quick-action.disabled {
    cursor: default;

    opacity: 0.58;
}


/* Responsividade */

@media (max-width: 1100px) {
    .dashboard-overview {
        grid-template-columns: 1fr;
    }

    .quick-access {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dashboard-brand {
        width: 280px;
        height: 74px;
    }

    .quick-access-actions {
        grid-template-columns: 1fr;
    }
}


/* SAMPAIO MANAGER - BACKGROUND V3 */

:root {
    --background: #cbd5e1;
}

body {
    background: var(--background);
}

.main-content {
    background: var(--background);
}


/* ============================================================
   SAMPAIO MANAGER - CREDENTIALS V1
   ============================================================ */

.credentials-toolbar {
    margin: 26px 0 16px;

    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        220px;

    gap: 12px;
}

.credentials-search,
.credentials-filter {
    width: 100%;
    min-height: 44px;

    padding: 0 14px;

    color: var(--text);
    background: var(--surface);

    border: 1px solid #cbd5e1;
    border-radius: 11px;

    font: inherit;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.credentials-search:focus,
.credentials-filter:focus {
    border-color: #8bb3f5;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .10);
}

.credential-category {
    display: inline-flex;
    align-items: center;

    min-height: 26px;

    padding: 4px 9px;

    color: #31517e;
    background: #edf4ff;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}

#new-credential-button:disabled {
    opacity: .55;
    cursor: default;
}

@media (max-width: 760px) {
    .credentials-toolbar {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   SAMPAIO MANAGER - CREDENTIAL CREATE
   ============================================================ */

.credential-form-panel {
    margin-top: 26px;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid
        rgba(203, 213, 225, .9);

    border-radius: 16px;

    box-shadow:
        0 10px 28px
        rgba(15, 23, 42, .055);
}

.credential-form-section {
    padding: 26px 28px;

    border-bottom: 1px solid #e2e8f0;
}

.credential-section-heading {
    margin-bottom: 20px;
}

.credential-section-heading h3 {
    margin: 0 0 5px;

    font-size: 16px;
    font-weight: 800;

    color: var(--text);
}

.credential-section-heading p {
    margin: 0;

    font-size: 12px;

    color: var(--muted);
}

.credential-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.credential-field-wide {
    grid-column: 1 / -1;
}

.credential-form-panel .form-field {
    display: grid;
    gap: 8px;
}

.credential-form-panel .form-field label {
    font-size: 12px;
    font-weight: 700;

    color: #344054;
}

.credential-form-panel input,
.credential-form-panel select,
.credential-form-panel textarea {
    width: 100%;

    padding: 11px 13px;

    color: var(--text);
    background: #fff;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    font: inherit;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.credential-form-panel input,
.credential-form-panel select {
    min-height: 44px;
}

.credential-form-panel textarea {
    resize: vertical;

    min-height: 110px;
}

.credential-form-panel input:focus,
.credential-form-panel select:focus,
.credential-form-panel textarea:focus {
    border-color: #8bb3f5;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .10);
}

.credential-password-input {
    position: relative;
}

.credential-password-input input {
    padding-right: 48px;
}

.credential-password-eye {
    position: absolute;

    top: 50%;
    right: 8px;

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #64748b;
    background: transparent;

    border: 0;
    border-radius: 8px;

    cursor: pointer;
}

.credential-password-eye:hover,
.credential-password-eye.active {
    color: #2563eb;
    background: #eff6ff;
}

.credential-form-message {
    min-height: 20px;

    padding: 0 28px;

    color: #dc2626;

    font-size: 12px;
    font-weight: 600;
}

.credential-form-message.success {
    color: #16a34a;
}

.credential-form-actions {
    padding: 22px 28px 26px;

    display: flex;
    justify-content: flex-end;

    gap: 10px;
}

@media (max-width: 760px) {
    .credential-form-grid {
        grid-template-columns: 1fr;
    }

    .credential-field-wide {
        grid-column: auto;
    }
}
CSScat >> backend/app/static/css/app.css <<'CSS'


/* ============================================================
   SAMPAIO MANAGER - CREDENTIAL CREATE
   ============================================================ */

.credential-form-panel {
    margin-top: 26px;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid
        rgba(203, 213, 225, .9);

    border-radius: 16px;

    box-shadow:
        0 10px 28px
        rgba(15, 23, 42, .055);
}

.credential-form-section {
    padding: 26px 28px;

    border-bottom: 1px solid #e2e8f0;
}

.credential-section-heading {
    margin-bottom: 20px;
}

.credential-section-heading h3 {
    margin: 0 0 5px;

    font-size: 16px;
    font-weight: 800;

    color: var(--text);
}

.credential-section-heading p {
    margin: 0;

    font-size: 12px;

    color: var(--muted);
}

.credential-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.credential-field-wide {
    grid-column: 1 / -1;
}

.credential-form-panel .form-field {
    display: grid;
    gap: 8px;
}

.credential-form-panel .form-field label {
    font-size: 12px;
    font-weight: 700;

    color: #344054;
}

.credential-form-panel input,
.credential-form-panel select,
.credential-form-panel textarea {
    width: 100%;

    padding: 11px 13px;

    color: var(--text);
    background: #fff;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    font: inherit;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.credential-form-panel input,
.credential-form-panel select {
    min-height: 44px;
}

.credential-form-panel textarea {
    resize: vertical;

    min-height: 110px;
}

.credential-form-panel input:focus,
.credential-form-panel select:focus,
.credential-form-panel textarea:focus {
    border-color: #8bb3f5;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .10);
}

.credential-password-input {
    position: relative;
}

.credential-password-input input {
    padding-right: 48px;
}

.credential-password-eye {
    position: absolute;

    top: 50%;
    right: 8px;

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #64748b;
    background: transparent;

    border: 0;
    border-radius: 8px;

    cursor: pointer;
}

.credential-password-eye:hover,
.credential-password-eye.active {
    color: #2563eb;
    background: #eff6ff;
}

.credential-form-message {
    min-height: 20px;

    padding: 0 28px;

    color: #dc2626;

    font-size: 12px;
    font-weight: 600;
}

.credential-form-message.success {
    color: #16a34a;
}

.credential-form-actions {
    padding: 22px 28px 26px;

    display: flex;
    justify-content: flex-end;

    gap: 10px;
}

@media (max-width: 760px) {
    .credential-form-grid {
        grid-template-columns: 1fr;
    }

    .credential-field-wide {
        grid-column: auto;
    }
}


/* ============================================================
   SAMPAIO MANAGER - SECONDARY / DANGER BUTTONS
   ============================================================ */

.secondary-button {
    min-height: 40px;

    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #344054;
    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.secondary-button:hover {
    background: #f8fafc;
    border-color: #aebdce;

    box-shadow:
        0 4px 12px
        rgba(15, 23, 42, .06);
}

.secondary-button:active {
    transform: translateY(1px);
}


.danger-button {
    min-height: 40px;

    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #b42318;
    background: #fff;

    border: 1px solid #f0b4ad;
    border-radius: 9px;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.danger-button:hover {
    color: #9f1d15;
    background: #fff5f4;
    border-color: #e9958b;

    box-shadow:
        0 4px 12px
        rgba(180, 35, 24, .08);
}

.danger-button:disabled,
.secondary-button:disabled {
    opacity: .55;
    cursor: default;
}


/* ============================================================
   SAMPAIO MANAGER - CREDENTIAL DETAIL
   ============================================================ */

.credential-detail-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credential-detail-message {
    padding: 0;
    margin-top: 18px;
}

.credential-detail-panel {
    margin-top: 26px;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid
        rgba(203, 213, 225, .9);

    border-radius: 16px;

    box-shadow:
        0 10px 28px
        rgba(15, 23, 42, .055);
}

.credential-detail-section {
    padding: 26px 28px;

    border-bottom: 1px solid #e2e8f0;
}

.credential-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.credential-detail-item {
    min-height: 76px;

    padding: 15px 16px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 7px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.credential-detail-item > span:first-child {
    color: #64748b;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .03em;
}

.credential-detail-item strong {
    color: var(--text);

    font-size: 13px;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.credential-detail-wide {
    grid-column: 1 / -1;
}

.credential-secret-row {
    display: flex;
    align-items: center;

    gap: 8px;
}

.credential-secret {
    min-width: 120px;

    letter-spacing: .04em;

    overflow-wrap: anywhere;
}

.detail-eye {
    position: static;

    transform: none;

    flex: 0 0 34px;
}

.credential-detail-notes {
    color: #344054;

    font-size: 13px;
    line-height: 1.6;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.credential-detail-footer {
    padding: 22px 28px;

    display: flex;
    justify-content: flex-end;

    background: #fbfcfe;
}

#credential-edit-button:disabled {
    opacity: .55;
    cursor: default;
}

@media (max-width: 760px) {
    .credential-detail-grid {
        grid-template-columns: 1fr;
    }

    .credential-detail-wide {
        grid-column: auto;
    }

    .credential-detail-top-actions {
        width: 100%;

        margin-top: 16px;
    }
}


/* ============================================================
   SAMPAIO MANAGER - DASHBOARD CREDENTIALS
   ============================================================ */

.dashboard-credentials-panel {
    margin-top: 20px;
}

.credential-category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf4ff;
    color: #174ea6;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================================
   SAMPAIO MANAGER - DASHBOARD CLEAN V3
   ============================================================ */

.welcome-row h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
}

.welcome-row p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.dashboard-overview-clean {
    grid-template-columns:
        minmax(230px, 0.72fr)
        minmax(230px, 0.72fr)
        minmax(500px, 1.8fr);

    gap: 18px;
    align-items: stretch;
}

.dashboard-summary-link {
    color: inherit;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.dashboard-summary-link:hover {
    transform: translateY(-2px);
    border-color: #b9cff5;
    box-shadow:
        0 14px 30px
        rgba(15, 23, 42, 0.09);
}

.equipment-summary-card {
    min-height: 145px;
    padding: 26px;
}

.equipment-summary-content {
    gap: 9px;
}

.equipment-summary-content > span {
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
}

.equipment-summary-value {
    gap: 10px;
}

.equipment-summary-value strong {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
}

.equipment-summary-value small {
    font-size: 13px;
    font-weight: 600;
}

.dashboard-overview-clean .metric-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.dashboard-overview-clean .metric-icon svg {
    width: 27px;
    height: 27px;
}

.dashboard-overview-clean .quick-access {
    min-height: 145px;
    padding: 22px 24px;
}

.dashboard-overview-clean .quick-access-heading strong {
    font-size: 18px;
    font-weight: 800;
}

.dashboard-overview-clean .quick-access-heading span {
    font-size: 13px;
}

.dashboard-overview-clean .quick-action {
    min-height: 82px;
    padding: 16px;
}

.dashboard-overview-clean .quick-action strong {
    font-size: 14px;
    font-weight: 800;
}

.dashboard-overview-clean .quick-action small {
    font-size: 12px;
    line-height: 1.4;
}

.dashboard-overview-clean .quick-action-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    font-size: 26px;
}

@media (max-width: 1250px) {
    .dashboard-overview-clean {
        grid-template-columns:
            repeat(2, minmax(220px, 1fr));
    }

    .dashboard-overview-clean .quick-access {
        grid-column: 1 / -1;
    }
}


/* ==========================================================
   SAMPAIO MANAGER - TYPOGRAPHY SYSTEM V1
   Padrão visual global
   ========================================================== */

/* Topbar de todas as páginas */
.topbar h1 {
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
}

.topbar p {
    font-size: 11px;
    line-height: 1.45;
}

/* Título principal das páginas */
.dashboard h2,
.page-content h2,
.credential-page h2,
.device-page h2 {
    font-size: 27px;
    line-height: 1.2;
    font-weight: 750;
}

/* Texto auxiliar abaixo dos títulos */
.dashboard > .welcome-row p {
    font-size: 13px;
    line-height: 1.5;
}

/* Cabeçalhos internos */
.panel-header h3,
.credential-form-section h3,
.credential-detail-section h3 {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.panel-header p,
.credential-form-section > p,
.credential-detail-section > p {
    font-size: 11px;
    line-height: 1.5;
}

/* Tabelas */
table thead th {
    font-size: 10px;
    line-height: 1.3;
}

table tbody td {
    font-size: 12px;
    line-height: 1.45;
}

/* Labels de formulários */
label {
    font-size: 11px;
}

/* Campos */
input,
select,
textarea {
    font-size: 13px;
}

/* Botões */
.primary-button,
.secondary-button,
.danger-button,
button {
    font-size: 12px;
}

/* Dashboard - cards */
.dashboard-overview-clean .metric-card span {
    font-size: 13px;
}

.dashboard-overview-clean .metric-card strong {
    font-size: 32px;
    line-height: 1;
}

.dashboard-overview-clean .metric-card small {
    font-size: 10px;
}

/* Dashboard - acesso rápido */
.dashboard-overview-clean .quick-access-heading strong {
    font-size: 16px;
    line-height: 1.25;
}

.dashboard-overview-clean .quick-access-heading span {
    font-size: 11px;
    line-height: 1.4;
}

.dashboard-overview-clean .quick-action strong {
    font-size: 13px;
    line-height: 1.25;
}

.dashboard-overview-clean .quick-action small {
    font-size: 10px;
    line-height: 1.35;
}

/* Última atualização */
.last-update {
    font-size: 11px;
}

/* Sidebar */
.sidebar .nav-item {
    font-size: 13px;
}

.sidebar-user strong {
    font-size: 12px;
}

.sidebar-user span {
    font-size: 10px;
}



/* ==========================================================
   SAMPAIO MANAGER - DASHBOARD INSIGHTS
   ========================================================== */

.dashboard-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.insight-card {
    min-height: 210px;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: 16px;
    box-shadow:
        0 10px 28px
        rgba(15, 23, 42, .055);
}

.insight-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 17px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e7edf5;
}

.insight-card-header h3 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.insight-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.insight-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
}

.insight-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.insight-list {
    padding-top: 5px;
}

.insight-row {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #edf1f6;
}

.insight-row:last-child {
    border-bottom: 0;
}

.insight-row span {
    min-width: 0;
    overflow: hidden;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insight-row strong {
    min-width: 30px;
    padding: 4px 9px;
    color: #0f4fd6;
    background: #edf4ff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.insight-empty {
    padding: 22px 0 10px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1100px) {
    .dashboard-insights {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   SAMPAIO MANAGER - LOGIN V2
   ============================================================ */

.sm-login-page {
    min-height: 100vh;
    padding: 48px 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #f8fafc;

    background:
        radial-gradient(
            circle at 8% 35%,
            rgba(37, 99, 235, 0.30),
            transparent 25%
        ),
        radial-gradient(
            circle at 92% 55%,
            rgba(0, 119, 255, 0.25),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #06101d 0%,
            #07182a 48%,
            #061321 100%
        );

    position: relative;
    overflow: hidden;
}

.sm-login-page::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(68, 111, 156, 0.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(68, 111, 156, 0.12) 1px,
            transparent 1px
        );

    background-size: 72px 72px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0.45)
        );
}

.sm-login-wrapper {
    width: 100%;
    max-width: 610px;

    position: relative;
    z-index: 1;
}

.sm-login-card {
    width: 100%;

    padding: 46px 50px 48px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 30, 49, 0.96),
            rgba(7, 24, 40, 0.97)
        );

    border: 1px solid rgba(76, 136, 190, 0.38);
    border-radius: 20px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    backdrop-filter: blur(14px);
}

.sm-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 38px;

    text-align: center;
}

.sm-login-logo {
    display: block;

    width: min(100%, 330px);
    max-height: 92px;

    object-fit: contain;
}

.sm-login-by {
    margin-top: 5px;

    color: #aebdd0;

    font-size: 17px;
    font-weight: 400;
}

.sm-login-heading {
    margin-bottom: 34px;
}

.sm-login-heading h1 {
    margin: 0;

    color: #ffffff;

    font-size: 35px;
    line-height: 1.15;
    letter-spacing: -0.7px;
}

.sm-login-heading p {
    margin: 10px 0 0;

    color: #aebdd0;

    font-size: 17px;
}

.sm-login-form {
    display: flex;
    flex-direction: column;
}

.sm-login-form > label {
    margin-bottom: 9px;

    color: #f3f6fa;

    font-size: 14px;
    font-weight: 700;
}

.sm-login-input {
    height: 60px;

    margin-bottom: 25px;

    display: flex;
    align-items: center;

    position: relative;

    background: rgba(15, 38, 60, 0.82);

    border: 1px solid #294d6c;
    border-radius: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.sm-login-input:focus-within {
    background: rgba(16, 42, 66, 0.95);

    border-color: #168bff;

    box-shadow:
        0 0 0 4px rgba(22, 139, 255, 0.10);
}

.sm-input-icon {
    width: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 54px;

    color: #a9bed4;

    font-size: 23px;
}

.sm-lock-icon {
    font-size: 21px;
}

.sm-login-input input {
    min-width: 0;
    width: 100%;
    height: 100%;

    padding: 0 15px 0 0;

    color: #ffffff;
    background: transparent;

    border: 0;
    outline: 0;

    font: inherit;
    font-size: 16px;
}

.sm-login-input input::placeholder {
    color: #8093a8;
}

.sm-password-toggle {
    width: 54px;
    height: 100%;

    flex: 0 0 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #a9bed4;
    background: transparent;

    border: 0;

    cursor: pointer;

    font-size: 20px;
}

.sm-password-toggle:hover {
    color: #ffffff;
}

.sm-login-error {
    margin: -9px 0 18px;
    padding: 11px 13px;

    color: #fecaca;
    background: rgba(220, 38, 38, 0.10);

    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: 9px;

    font-size: 13px;
}

.sm-login-options {
    margin: -2px 0 27px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    font-size: 14px;
}

.sm-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #d5dfeb;

    cursor: pointer;
}

.sm-remember input {
    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: #168bff;

    cursor: pointer;
}

.sm-forgot-password {
    color: #18a0fb;

    cursor: default;
}

.sm-login-submit {
    width: 100%;
    height: 60px;

    padding: 0 24px;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #078cff,
            #168bff
        );

    border: 0;
    border-radius: 12px;

    box-shadow:
        0 10px 28px rgba(0, 117, 255, 0.18);

    cursor: pointer;

    font-size: 17px;
    font-weight: 700;

    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        box-shadow 0.15s ease;
}

.sm-login-submit:hover {
    filter: brightness(1.08);

    box-shadow:
        0 13px 32px rgba(0, 117, 255, 0.25);
}

.sm-login-submit:active {
    transform: translateY(1px);
}

.sm-login-footer {
    margin-top: 37px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    color: #9eafc4;

    text-align: center;

    font-size: 13px;
}

.sm-footer-line {
    width: 55px;
    height: 3px;

    margin: 10px 0 7px;

    display: block;

    background: #00a6ff;

    border-radius: 999px;

    box-shadow:
        0 0 15px rgba(0, 166, 255, 0.4);
}

.sm-footer-tagline {
    color: #8fa1b7;
}


@media (max-width: 680px) {

    .sm-login-page {
        padding: 24px 16px;
        align-items: flex-start;
    }

    .sm-login-wrapper {
        margin: auto 0;
    }

    .sm-login-card {
        padding: 35px 24px 36px;
    }

    .sm-login-logo {
        width: min(100%, 280px);
    }

    .sm-login-heading h1 {
        font-size: 29px;
    }

    .sm-login-heading p {
        font-size: 15px;
    }

    .sm-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

}


@media (max-height: 780px) and (min-width: 681px) {

    .sm-login-page {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .sm-login-card {
        padding-top: 32px;
        padding-bottom: 34px;
    }

    .sm-login-brand {
        margin-bottom: 25px;
    }

    .sm-login-heading {
        margin-bottom: 24px;
    }

    .sm-login-input {
        height: 54px;
        margin-bottom: 18px;
    }

    .sm-login-submit {
        height: 54px;
    }

    .sm-login-footer {
        margin-top: 20px;
    }

}

/* ============================================================
   LOGIN V2 - AJUSTES FINAIS APROVADOS
   ============================================================ */

.sm-login-logo {
    filter:
        brightness(1.55)
        contrast(1.08)
        saturate(1.15);

    width: min(100%, 350px);
}

.sm-login-heading {
    text-align: center;
}

.sm-login-heading h1,
.sm-login-heading p {
    text-align: center;
}


/* Login - logo dark definitiva */
.sm-login-logo {
    filter: none;
}


/* ============================================================
   SAMPAIO MANAGER - USUARIO AUTENTICADO
   ============================================================ */

.logout-form {
    margin: 3px 0 0;
}

.logout-button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: rgba(255, 255, 255, 0.58);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition:
        color 0.18s ease,
        opacity 0.18s ease;
}

.logout-button:hover {
    color: #ffffff;
}

.logout-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
    border-radius: 3px;
}


/* ============================================================
   SAMPAIO MANAGER - LOGOUT FINAL
   ============================================================ */

.sidebar-footer .logout-form {
    margin: 4px 0 0;
    line-height: 1;
}

.sidebar-footer .logout-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.58);
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition:
        color 0.18s ease,
        opacity 0.18s ease;
}

.sidebar-footer .logout-button::before {
    content: "↪";
    display: inline-block;
    font-size: 12px;
    transform: rotate(180deg);
}

.sidebar-footer .logout-button:hover {
    background: transparent;
    color: #ffffff;
}

.sidebar-footer .logout-button:active {
    background: transparent;
    opacity: 0.75;
}

.sidebar-footer .logout-button:focus-visible {
    background: transparent;
    outline: 1px solid rgba(255, 255, 255, 0.45);
    outline-offset: 3px;
    border-radius: 2px;
}


/* ============================================================
   SAMPAIO MANAGER - USUÁRIOS
   ============================================================ */

.user-table-name strong {
    color: var(--text-primary, #0f172a);
    font-weight: 700;
}

.user-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.user-status-active {
    color: #15803d;
    background: #dcfce7;
}

.user-status-inactive {
    color: #64748b;
    background: #e2e8f0;
}


/* ============================================================
   SAMPAIO MANAGER - COMPANY SWITCHER
   ============================================================ */

.company-switcher {
    position: relative;

    margin: 18px 6px 0;
}

.company-switcher-label {
    display: block;

    margin: 0 8px 7px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.company-switcher-button {
    width: 100%;

    min-height: 46px;

    padding: 9px 10px;

    display: flex;
    align-items: center;
    gap: 9px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.055);

    color: #ffffff;

    font: inherit;

    cursor: pointer;

    text-align: left;

    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.company-switcher-button:hover {
    background: rgba(255, 255, 255, 0.09);

    border-color: rgba(255, 255, 255, 0.14);
}

.company-switcher-icon {
    flex: 0 0 auto;

    color: #60a5fa;

    font-size: 16px;
}

.company-switcher-current {
    min-width: 0;

    flex: 1;

    overflow: hidden;

    font-size: 12px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-switcher-arrow {
    flex: 0 0 auto;

    color: rgba(255, 255, 255, 0.55);

    font-size: 11px;

    transition: transform 0.18s ease;
}

.company-switcher.open .company-switcher-arrow {
    transform: rotate(180deg);
}

.company-switcher-menu {
    position: absolute;

    z-index: 100;

    top: calc(100% + 7px);
    left: 0;
    right: 0;

    padding: 6px;

    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;

    background: #0b1739;

    box-shadow:
        0 16px 35px rgba(0, 0, 0, 0.28);
}

.company-switcher-option {
    width: 100%;

    padding: 10px 9px;

    display: flex;
    align-items: center;
    gap: 7px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: rgba(255, 255, 255, 0.78);

    font: inherit;
    font-size: 12px;

    cursor: pointer;

    text-align: left;
}

.company-switcher-option:hover {
    background: rgba(255, 255, 255, 0.07);

    color: #ffffff;
}

.company-switcher-option.active {
    color: #ffffff;

    font-weight: 600;
}

.company-switcher-check {
    width: 13px;

    flex: 0 0 13px;

    color: #60a5fa;

    font-size: 11px;
}

@media (max-width: 900px) {

    .company-switcher {
        margin-left: 0;
        margin-right: 0;
    }

    .company-switcher-label,
    .company-switcher-current,
    .company-switcher-arrow {
        display: none;
    }

    .company-switcher-button {
        justify-content: center;

        padding-left: 0;
        padding-right: 0;
    }

    .company-switcher-menu {
        width: 210px;

        right: auto;
        left: 58px;

        top: 0;
    }

}

/* ============================================================
   SAMPAIO MANAGER - USER CREATE FORM
   ============================================================ */

#user-create-form {
    width: 100%;
}

#user-create-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

#user-create-form .form-group {
    min-width: 0;
}

#user-create-form .form-group label {
    display: block;
    margin-bottom: 7px;

    color: var(--text-primary, #0f172a);

    font-size: 13px;
    font-weight: 600;
}

#user-create-form input,
#user-create-form select {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    outline: none;

    background: #ffffff;
    color: var(--text-primary, #0f172a);

    font: inherit;
    font-size: 14px;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

#user-create-form select {
    cursor: pointer;
}

#user-create-form input:focus,
#user-create-form select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

#user-create-form .form-message {
    margin-top: 18px;

    padding: 11px 13px;

    border-radius: 8px;

    background: #fee2e2;
    color: #b91c1c;

    font-size: 13px;
    font-weight: 600;
}

#user-create-form .form-message[hidden] {
    display: none;
}

#user-create-form .form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 24px;
}

#user-create-form .form-actions button {
    min-height: 40px;
}

@media (max-width: 760px) {

    #user-create-form .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #user-create-form .form-actions {
        justify-content: stretch;
    }

    #user-create-form .form-actions button {
        flex: 1;
    }

}



/* ============================================================
   SAMPAIO MANAGER - USER DETAIL
   ============================================================ */

.user-detail-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-detail-message {
    margin-bottom: 18px;
}

.user-detail-panel {
    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.06);
}

.user-detail-section {
    padding: 24px;

    border-bottom: 1px solid #e2e8f0;
}

.user-detail-section:last-child {
    border-bottom: 0;
}

.user-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;

    margin-top: 18px;
}

.user-detail-item {
    min-width: 0;

    padding: 16px;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: #f8fafc;
}

.user-detail-item > span:first-child {
    display: block;

    margin-bottom: 7px;

    color: #64748b;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.user-detail-item strong {
    color: #0f172a;

    font-size: 15px;
    font-weight: 700;

    word-break: break-word;
}

.user-detail-warning {
    margin-top: 16px;

    padding: 13px 15px;

    border: 1px solid #fde68a;
    border-radius: 10px;

    background: #fffbeb;
    color: #92400e;

    font-size: 13px;
    line-height: 1.5;
}

.user-detail-warning[hidden] {
    display: none;
}

@media (max-width: 760px) {

    .user-detail-grid {
        grid-template-columns: 1fr;
    }

    .user-detail-top-actions {
        width: 100%;
    }

    .user-detail-top-actions button {
        flex: 1;
    }

}


/* ============================================================
   SAMPAIO MANAGER - USER EDIT
   ============================================================ */

#user-edit-form {
    width: 100%;
}

#user-edit-form .form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px 24px;
}

#user-edit-form .form-group {
    min-width: 0;
}

#user-edit-form .form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--text-primary, #0f172a);

    font-size: 13px;
    font-weight: 600;
}

#user-edit-form input,
#user-edit-form select {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    outline: none;

    background: #ffffff;
    color: var(--text-primary, #0f172a);

    font: inherit;
    font-size: 14px;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

#user-edit-form select {
    cursor: pointer;
}

#user-edit-form input:focus,
#user-edit-form select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

#user-edit-form input:disabled,
#user-edit-form select:disabled {
    cursor: not-allowed;

    background: #f1f5f9;
    color: #64748b;
}

#user-edit-form .form-message {
    margin-top: 18px;

    padding: 11px 13px;

    border-radius: 8px;

    background: #fee2e2;
    color: #b91c1c;

    font-size: 13px;
    font-weight: 600;
}

#user-edit-form .form-message[hidden] {
    display: none;
}

#user-edit-form .form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 24px;
}

.user-edit-password-section {
    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid #e2e8f0;
}

.user-edit-password-section .form-grid {
    margin-top: 18px;
}

.user-edit-warning {
    margin-bottom: 22px;

    padding: 13px 15px;

    border: 1px solid #fde68a;
    border-radius: 10px;

    background: #fffbeb;
    color: #92400e;

    font-size: 13px;
    line-height: 1.5;
}

.user-edit-warning[hidden] {
    display: none;
}

@media (max-width: 760px) {

    #user-edit-form .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #user-edit-form .form-actions {
        justify-content: stretch;
    }

    #user-edit-form .form-actions button {
        flex: 1;
    }

}

/* ============================================================
   USER EDIT - AJUSTE FINAL DE ESPACAMENTO
   ============================================================ */

#user-edit-page .panel {
    overflow: hidden;
}

#user-edit-page .panel-header {
    padding: 24px 26px;
}

#user-edit-page .form-section {
    padding: 0;
}

#user-edit-form {
    padding: 0;
}

#user-edit-form > .form-grid {
    padding: 24px 26px 26px;
}

#user-edit-form .user-edit-password-section {
    margin-top: 0;
    padding: 26px;

    border-top: 1px solid #e2e8f0;
}

#user-edit-form .user-edit-password-section .form-grid {
    margin-top: 20px;
}

#user-edit-form .form-actions {
    margin-top: 0;
    padding: 0 26px 24px;
}

#user-edit-form .form-message {
    margin: 20px 26px 0;
}

#user-edit-form .user-edit-warning {
    margin: 22px 26px 0;
}

@media (max-width: 760px) {

    #user-edit-page .panel-header {
        padding: 20px;
    }

    #user-edit-form > .form-grid {
        padding: 20px;
    }

    #user-edit-form .user-edit-password-section {
        padding: 20px;
    }

    #user-edit-form .form-actions {
        padding: 0 20px 20px;
    }

    #user-edit-form .form-message {
        margin-left: 20px;
        margin-right: 20px;
    }

    #user-edit-form .user-edit-warning {
        margin-left: 20px;
        margin-right: 20px;
    }

}

/* Alinhamento do campo de senha após remoção do ícone esquerdo */
.sm-login-input #password {
    padding-left: 53px;
}
