:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4fb;
    --navy: #0c2948;
    --navy-2: #123a63;
    --blue: #1f6feb;
    --text: #18212f;
    --muted: #6b7788;
    --border: #dce4ee;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(15, 35, 58, 0.10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background: var(--bg);
}

button,
input,
select {
    font: inherit;
}

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

.login-body {
    min-height: 100vh;
    background: var(--bg);
}

.login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(420px, 0.95fr);
}

.login-brand-panel {
    background:
        radial-gradient(circle at 20% 20%, rgba(62, 149, 255, 0.30), transparent 34%),
        linear-gradient(145deg, #081f37, #0f3155 58%, #164a7e);
    color: #fff;
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.login-brand h1,
.login-brand p,
.brand strong,
.brand span {
    margin: 0;
}

.login-brand h1 {
    font-size: 26px;
}

.login-brand p {
    margin-top: 4px;
    opacity: 0.74;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2b8cff, #68b2ff);
    color: white;
    font-weight: 800;
    letter-spacing: -1px;
    box-shadow: 0 8px 22px rgba(28, 121, 224, 0.35);
}

.brand-mark-large {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    font-size: 20px;
}

.login-message {
    max-width: 560px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4f8fd8;
}

.login-brand-panel .eyebrow {
    color: #8fc5ff;
}

.login-message h2 {
    margin: 0 0 18px;
    max-width: 520px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.login-message p {
    max-width: 500px;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.76);
}

.login-form-panel {
    display: grid;
    place-items: center;
    padding: 42px;
}

.login-card {
    width: min(440px, 100%);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-card-header {
    margin-bottom: 30px;
}

.login-card-header h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.03em;
}

.login-card-header p {
    margin: 8px 0 0;
    color: var(--muted);
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: #fff;
    transition: 0.2s ease;
}

.field input:focus,
.field select:focus {
    border-color: #6ea8ea;
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.10);
}

.field-error {
    display: block;
    margin-top: 7px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0 24px;
    color: var(--muted);
    cursor: pointer;
}

.primary-button,
.logout-button,
.sidebar-secondary-button {
    border: 0;
    cursor: pointer;
    font-weight: 800;
}

.primary-button {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #145ba8, #2177d5);
    box-shadow: 0 10px 22px rgba(31, 111, 235, 0.20);
}

.app-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: start;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    background: var(--navy);
    color: #fff;
}

.brand {
    padding: 0 8px 28px;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 16px;
}

.brand span {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255,255,255,.58);
}

.sidebar-nav {
    flex: 1;
}

.nav-section {
    margin: 24px 12px 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
}

.nav-link {
    min-height: 44px;
    margin-bottom: 4px;
    padding: 0 12px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 650;
    color: rgba(255,255,255,.76);
}

.nav-link.active {
    background: rgba(93, 170, 255, .16);
    color: #fff;
}

.nav-link.disabled {
    opacity: .50;
    cursor: default;
}

.nav-icon {
    width: 21px;
    text-align: center;
    font-size: 18px;
}

.sidebar-footer {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.user-summary {
    margin-bottom: 12px;
    padding: 0 8px;
}

.user-summary strong,
.user-summary span {
    display: block;
}

.user-summary strong {
    font-size: 14px;
}

.user-summary span {
    margin-top: 3px;
    font-size: 11px;
    color: rgba(255,255,255,.52);
}

.sidebar-action-form {
    margin-bottom: 8px;
}

.logout-button,
.sidebar-secondary-button {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    color: #fff;
}

.logout-button {
    background: rgba(255,255,255,.08);
}

.sidebar-secondary-button {
    background: rgba(93, 170, 255, .16);
}

.main-content {
    min-width: 0;
}

.topbar {
    min-height: 96px;
    padding: 22px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255,255,255,.88);
}

.topbar h1 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -.025em;
}

.topbar p {
    margin: 5px 0 0;
    color: var(--muted);
}

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

.context-badge {
    max-width: 340px;
    padding: 9px 13px;
    border: 1px solid #cfe0f3;
    border-radius: 999px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #285b92;
    background: #edf6ff;
}

.context-badge-unit {
    color: #275c49;
    border-color: #cce7dd;
    background: #eefaf5;
}

.page-content {
    padding: 30px 32px 48px;
}

.welcome-card {
    padding: 30px;
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(480px, 1.15fr);
    gap: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 28px rgba(15, 35, 58, .05);
}

.welcome-card h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.03em;
}

.welcome-card p {
    max-width: 540px;
    margin: 10px 0 0;
    line-height: 1.7;
    color: var(--muted);
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.context-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fafcff;
}

.context-item span,
.context-item strong {
    display: block;
}

.context-item span {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.context-item strong {
    line-height: 1.35;
}

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

.dashboard-card {
    min-height: 220px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.dashboard-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 23px;
    color: #1a67b9;
    background: var(--surface-soft);
}

.dashboard-card h3 {
    margin: 18px 0 8px;
    font-size: 17px;
}

.dashboard-card p {
    min-height: 70px;
    margin: 0;
    line-height: 1.55;
    color: var(--muted);
}

.coming-soon {
    display: inline-block;
    margin-top: 18px;
    font-size: 12px;
    font-weight: 800;
    color: #3b6f9f;
}

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

    .welcome-card {
        grid-template-columns: 1fr;
    }
}

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

    .login-brand-panel {
        min-height: 300px;
        padding: 36px 28px;
    }

    .login-message h2 {
        font-size: 38px;
    }

    .login-form-panel {
        padding: 28px 18px;
    }

    .app-body {
        display: block;
    }

    .sidebar {
        min-height: auto;
        position: static;
    }

    .sidebar-nav {
        display: none;
    }

    .topbar,
    .page-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .dashboard-grid,
    .context-grid {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| JG Patrimônio — Layout mobile / PWA global
|--------------------------------------------------------------------------
| Drawer lateral no celular, conteúdo em 100% da largura e topbar compacta.
|--------------------------------------------------------------------------
*/

.topbar-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-title {
    min-width: 0;
}

.mobile-sidebar-toggle {
    display: none;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--navy);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mobile-sidebar-backdrop {
    display: none;
}

@media (max-width: 820px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.mobile-sidebar-open {
        overflow: hidden;
    }

    .app-body {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .main-content {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .mobile-sidebar-toggle {
        display: inline-flex;
    }

    .sidebar {
        position: fixed !important;
        inset: 0 auto 0 0;
        z-index: 10020;
        width: min(82vw, 310px);
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        padding: 18px 14px;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 18px 0 48px rgba(3, 17, 31, .24);
        overflow: hidden;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar .brand {
        padding: 0 8px 18px;
    }

    .sidebar-nav {
        display: block !important;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 4px;
    }

    .sidebar-footer {
        flex: 0 0 auto;
        padding-top: 12px;
    }

    .mobile-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10010;
        display: block;
        pointer-events: none;
        opacity: 0;
        background: rgba(4, 16, 30, .48);
        transition: opacity .22s ease;
    }

    .mobile-sidebar-backdrop.is-visible {
        pointer-events: auto;
        opacity: 1;
    }

    .topbar {
        min-height: auto;
        width: 100%;
        padding: 14px 16px;
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;
        position: sticky;
        top: 0;
        z-index: 120;
        backdrop-filter: blur(12px);
    }

    .topbar-main {
        width: 100%;
    }

    .topbar-title {
        flex: 1 1 auto;
    }

    .topbar h1 {
        font-size: 20px;
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    .topbar p {
        font-size: 13px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .topbar-context {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }

    .context-badge {
        max-width: 100%;
        padding: 7px 10px;
        font-size: 11px;
    }

    .page-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 18px 14px 36px;
        overflow-x: hidden;
    }

    .page-content > * {
        max-width: 100%;
        min-width: 0;
    }

    .welcome-card {
        padding: 18px 16px;
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .dashboard-grid,
    .context-grid {
        grid-template-columns: 1fr;
    }

    table {
        max-width: none;
    }

    .table-wrapper,
    .table-responsive,
    .responsive-table,
    .overflow-x-auto {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    form,
    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }
}

@media (max-width: 430px) {
    .sidebar {
        width: min(88vw, 300px);
    }

    .topbar {
        padding: 12px 12px;
    }

    .page-content {
        padding: 14px 10px 30px;
    }

    .mobile-sidebar-toggle {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

/*
|--------------------------------------------------------------------------
| JG Patrimônio — Identidade visual inspirada no JG IPTV Manager
|--------------------------------------------------------------------------
| Versão: 1.0
| Data: 14/09/2026
|
| Camada visual. Não altera regras, rotas, permissões ou comportamento
| funcional do sistema.
|--------------------------------------------------------------------------
*/

:root {
    --bg: #dde5ee;
    --surface: #ffffff;
    --surface-soft: #f1f4f8;
    --surface-strong: #e3e9f0;

    --navy: #172033;
    --navy-2: #22324a;

    --blue: #274c85;
    --blue-strong: #3f6fb8;

    --text: #111827;
    --muted: #425166;

    --border: #9eacbd;
    --border-soft: #c0cad6;
    --border-strong: #7f90a5;

    --danger: #a61b13;

    --shadow: 0 1px 4px rgba(15, 23, 42, .12);
    --radius: 7px;
}

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

/*
|--------------------------------------------------------------------------
| Estrutura principal
|--------------------------------------------------------------------------
*/

.app-body {
    grid-template-columns: 245px minmax(0, 1fr);
    background: var(--bg);
}

.sidebar {
    width: 245px;
    padding: 16px 12px;
    background: #172033;
    box-shadow: 2px 0 8px rgba(15, 23, 42, .10);
}

.sidebar .brand {
    gap: 10px;
    padding: 0 6px 15px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.brand strong {
    font-size: 15px;
    letter-spacing: .01em;
}

.brand span {
    margin-top: 2px;
    font-size: 10.5px;
    color: rgba(255,255,255,.56);
}

.nav-section {
    margin: 15px 8px 5px;
    color: rgba(255,255,255,.38);
    font-size: 9px;
    letter-spacing: .10em;
}

.nav-link {
    min-height: 36px;
    margin-bottom: 2px;
    padding: 0 9px;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: rgba(255,255,255,.76);
    font-size: 12px;
    font-weight: 700;
}

.nav-link:hover:not(.disabled) {
    background: rgba(255,255,255,.07);
    color: #fff;
}

.nav-link.active {
    border-color: rgba(107, 157, 224, .42);
    background: #3f6fb8;
    color: #fff;
}

.nav-icon {
    width: 19px;
    min-width: 19px;
    font-size: 15px;
}

.sidebar-footer {
    padding-top: 10px;
}

.user-summary {
    margin-bottom: 8px;
    padding: 0 6px;
}

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

.user-summary span {
    margin-top: 2px;
    font-size: 9.5px;
}

.logout-button,
.sidebar-secondary-button {
    min-height: 32px;
    border-radius: 6px;
    font-size: 11px;
}

.sidebar-secondary-button {
    background: rgba(63, 111, 184, .40);
}

.logout-button {
    background: rgba(255,255,255,.07);
}

/*
|--------------------------------------------------------------------------
| Topo e contexto
|--------------------------------------------------------------------------
*/

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

.topbar {
    min-height: 64px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15,23,42,.06);
}

.topbar h1 {
    font-size: 20px;
    letter-spacing: -.015em;
}

.topbar p {
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
}

.topbar-context {
    gap: 6px;
}

.context-badge {
    max-width: 320px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--blue);
    font-size: 10.5px;
    font-weight: 700;
}

.context-badge-unit {
    border-color: #98bfae;
    background: #f0f8f4;
    color: #0f6b45;
}

.page-content {
    padding: 18px 20px 30px;
}

/*
|--------------------------------------------------------------------------
| Componentes globais do dashboard
|--------------------------------------------------------------------------
*/

.eyebrow {
    margin-bottom: 5px;
    color: var(--blue-strong);
    font-size: 9px;
    letter-spacing: .10em;
}

.welcome-card {
    padding: 12px;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    gap: 12px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.welcome-card h2 {
    font-size: 18px;
    letter-spacing: -.015em;
}

.welcome-card p {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
}

.context-grid {
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.context-item {
    padding: 8px 10px;
    border: 0;
    border-right: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    background: #fff;
}

.context-item:nth-child(even) {
    border-right: 0;
}

.context-item span {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9px;
}

.context-item strong {
    font-size: 11px;
}

.dashboard-grid {
    margin-top: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-card {
    min-height: 150px;
    padding: 12px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    box-shadow: var(--shadow);
}

.dashboard-card-icon {
    width: 31px;
    height: 31px;
    border-radius: 6px;
    color: var(--blue);
    background: var(--surface-strong);
    font-size: 17px;
}

.dashboard-card h3 {
    margin: 10px 0 4px;
    font-size: 13px;
}

.dashboard-card p {
    min-height: 48px;
    font-size: 10.5px;
    line-height: 1.4;
}

.coming-soon {
    margin-top: 8px;
    font-size: 10px;
}

/*
|--------------------------------------------------------------------------
| Login — preserva identidade, com acabamento mais sóbrio
|--------------------------------------------------------------------------
*/

.login-body {
    background: var(--bg);
}

.login-card {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15,23,42,.10);
}

.login-card .field input,
.login-card .field select {
    border-color: var(--border);
    border-radius: 6px;
}

/*
|--------------------------------------------------------------------------
| Responsividade
|--------------------------------------------------------------------------
*/

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

@media (max-width: 820px) {
    .sidebar {
        width: min(82vw, 290px);
        padding: 14px 10px;
    }

    .page-content {
        padding: 14px 10px 26px;
    }

    .topbar {
        padding: 10px 12px;
    }

    .topbar h1 {
        font-size: 18px;
    }

    .welcome-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .mobile-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        left: 10px !important;
        top: 10px !important;
        border-color: var(--border) !important;
        border-radius: 7px !important;
        color: var(--blue) !important;
        box-shadow: 0 1px 4px rgba(15,23,42,.12) !important;
        font-size: 22px !important;
    }

    .sidebar-nav-mobile .nav-link {
        min-height: 40px !important;
        border-radius: 6px !important;
    }

    .sidebar-nav-mobile .nav-link.mobile-primary {
        min-height: 42px !important;
    }

    .sidebar-nav-mobile .nav-link.mobile-primary.active {
        background: #3f6fb8 !important;
    }

    .context-badge {
        border-radius: 5px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .dashboard-card {
        min-height: 138px;
        padding: 10px;
    }

    .dashboard-card h3 {
        font-size: 12px;
    }

    .dashboard-card p {
        min-height: 0;
        font-size: 10px;
    }
}

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

/*
|--------------------------------------------------------------------------
| JG Patrimônio — Sidebar 2.0
|--------------------------------------------------------------------------
| Arquivo: C:\xampp\htdocs\jg-patrimonio\public\css\jg.css
| Versão visual: 2.0
| Data: 14/09/2026
|
| Refinamento exclusivo do menu lateral. Mantém rotas, permissões,
| estrutura Blade, menu mobile e comportamento funcional existentes.
|--------------------------------------------------------------------------
*/

.app-body {
    grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
    width: 252px;
    padding: 12px 10px 10px;
    background:
        linear-gradient(
            180deg,
            #111c2d 0%,
            #15243a 46%,
            #16253c 100%
        );
    border-right: 1px solid rgba(255,255,255,.05);
    box-shadow: 4px 0 18px rgba(15,23,42,.10);
}

/*
|--------------------------------------------------------------------------
| Marca
|--------------------------------------------------------------------------
*/

.sidebar .brand {
    min-height: 72px;
    margin: 0 0 7px;
    padding: 8px 8px;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
}

.brand-logo-atual {
    width: 48px !important;
    height: 42px !important;
    flex: 0 0 48px !important;
    padding: 4px 5px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.18) !important;
}

.sidebar .brand strong {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.sidebar .brand span {
    margin-top: 3px;
    color: #9fb0c5;
    font-size: 9.5px;
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| Navegação
|--------------------------------------------------------------------------
*/

.sidebar-nav {
    padding: 0 2px 0 0;
}

.nav-section {
    position: relative;
    margin: 13px 8px 5px;
    padding-left: 9px;
    color: #71839a;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: .11em;
}

.nav-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #5f8ed2;
    transform: translateY(-50%);
}

.nav-link {
    position: relative;
    min-height: 38px;
    margin: 1px 0;
    padding: 0 9px 0 7px;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #bac6d5;
    font-size: 11.5px;
    font-weight: 700;
    transition:
        background .12s ease,
        border-color .12s ease,
        color .12s ease,
        transform .12s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: transparent;
    transform: translateY(-50%);
}

.nav-link:hover:not(.disabled) {
    border-color: rgba(255,255,255,.06);
    background: rgba(255,255,255,.055);
    color: #ffffff;
    transform: translateX(1px);
}

.nav-link.active {
    border-color: rgba(122,166,226,.42);
    background:
        linear-gradient(
            90deg,
            rgba(63,111,184,.88),
            rgba(54,98,163,.72)
        );
    color: #ffffff;
    box-shadow:
        inset 3px 0 0 #8eb8f0,
        0 1px 4px rgba(0,0,0,.16);
}

.nav-link.active::after {
    background: #cfe2ff;
}

.nav-link.disabled {
    color: #6f7e91;
    opacity: .58;
}

.nav-icon {
    width: 27px;
    min-width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 5px;
    background: rgba(255,255,255,.035);
    color: #aebdd0;
    font-size: 14px;
    line-height: 1;
}

.nav-link:hover:not(.disabled) .nav-icon {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    color: #ffffff;
}

.nav-link.active .nav-icon {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.12);
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Rodapé / usuário
|--------------------------------------------------------------------------
*/

.sidebar-footer {
    margin-top: 7px;
    padding: 9px 6px 0;
    border-top: 1px solid rgba(255,255,255,.09);
}

.user-summary {
    margin: 0 0 8px;
    padding: 0 2px;
}

.user-summary strong {
    color: #f8fafc;
    font-size: 11.5px;
    font-weight: 800;
}

.user-summary span {
    margin-top: 2px;
    color: #8294aa;
    font-size: 9px;
    font-weight: 700;
}

.sidebar-action-form {
    margin-bottom: 5px;
}

.sidebar-secondary-button,
.logout-button {
    min-height: 32px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 800;
    transition:
        background .12s ease,
        border-color .12s ease;
}

.sidebar-secondary-button {
    background: rgba(63,111,184,.35);
}

.sidebar-secondary-button:hover {
    border-color: rgba(126,169,228,.34);
    background: rgba(63,111,184,.52);
}

.logout-button {
    background: rgba(255,255,255,.045);
    color: #cbd5e1;
}

.logout-button:hover {
    background: rgba(255,255,255,.09);
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Scrollbar da navegação
|--------------------------------------------------------------------------
*/

.sidebar-nav {
    scrollbar-color: #53677e transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #53677e;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #71869f;
}

/*
|--------------------------------------------------------------------------
| Mobile — mesma identidade visual, mantendo o drawer atual
|--------------------------------------------------------------------------
*/

@media (max-width: 820px) {
    .sidebar {
        width: min(84vw, 294px);
        padding: 10px 9px;
    }

    .sidebar .brand {
        min-height: 66px;
        margin-bottom: 6px;
    }

    .brand-logo-atual {
        width: 46px !important;
        height: 40px !important;
        flex-basis: 46px !important;
    }

    .sidebar-nav-mobile {
        padding-top: 1px;
    }

    .sidebar-nav-mobile .nav-section {
        margin-top: 10px;
    }

    .sidebar-nav-mobile .nav-link,
    .sidebar-nav-mobile .nav-link.mobile-primary {
        min-height: 40px !important;
        margin-bottom: 2px;
        border-radius: 6px !important;
    }

    .sidebar-nav-mobile .nav-icon {
        width: 28px;
        min-width: 28px;
        height: 28px;
    }

    .sidebar-mobile-more {
        margin-top: 6px;
        padding-top: 5px;
        border-top-color: rgba(255,255,255,.08);
    }

    .sidebar-mobile-more > summary {
        min-height: 36px;
        padding: 0 8px;
        color: #90a2b9;
        font-size: 10px;
    }
}

/*
|--------------------------------------------------------------------------
| JG Patrimônio — Sidebar 2.1 recolhível
|--------------------------------------------------------------------------
| Arquivo: C:\xampp\htdocs\jg-patrimonio\public\css\jg.css
| Versão visual: 2.1
| Data: 14/09/2026
|--------------------------------------------------------------------------
*/

.sidebar {
    transition:
        width .18s ease,
        padding .18s ease;
}

.app-body {
    transition: grid-template-columns .18s ease;
}

.sidebar-collapse-toggle {
    margin-left: auto;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px;
    background: rgba(255,255,255,.055);
    color: #dbe7f5;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition:
        background .12s ease,
        border-color .12s ease;
}

.sidebar-collapse-toggle:hover {
    border-color: rgba(142,184,240,.36);
    background: rgba(255,255,255,.10);
}

body.sidebar-collapsed .app-body {
    grid-template-columns: 74px minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar {
    width: 74px;
    padding-left: 7px;
    padding-right: 7px;
}

body.sidebar-collapsed .sidebar .brand {
    min-height: 62px;
    padding: 7px 5px;
    justify-content: center;
    gap: 0;
}

body.sidebar-collapsed .brand-logo-atual {
    width: 42px !important;
    height: 38px !important;
    flex: 0 0 42px !important;
}

body.sidebar-collapsed .sidebar .brand-copy {
    display: none;
}

body.sidebar-collapsed .sidebar-collapse-toggle {
    position: absolute;
    top: 67px;
    left: 50%;
    z-index: 4;
    width: 25px;
    height: 25px;
    transform: translateX(-50%);
    border-color: #43556c;
    background: #1a2b43;
    color: #dce8f5;
}

body.sidebar-collapsed .sidebar-nav {
    padding-top: 17px;
}

body.sidebar-collapsed .nav-section {
    height: 1px;
    margin: 10px 7px 7px;
    padding: 0;
    overflow: hidden;
    background: rgba(255,255,255,.09);
    color: transparent;
    font-size: 0;
}

body.sidebar-collapsed .nav-section::before {
    display: none;
}

body.sidebar-collapsed .nav-link {
    min-height: 42px;
    padding: 0;
    justify-content: center;
    gap: 0;
}

body.sidebar-collapsed .nav-link > span:last-child {
    display: none;
}

body.sidebar-collapsed .nav-icon {
    width: 31px;
    min-width: 31px;
    height: 31px;
    font-size: 15px;
}

body.sidebar-collapsed .nav-link::after {
    right: 2px;
}

body.sidebar-collapsed .sidebar-footer {
    padding: 8px 3px 0;
}

body.sidebar-collapsed .user-summary {
    display: none;
}

body.sidebar-collapsed .sidebar-action-form {
    margin-bottom: 5px;
}

body.sidebar-collapsed .sidebar-secondary-button,
body.sidebar-collapsed .logout-button {
    min-height: 34px;
    padding: 0;
    font-size: 15px;
}

body.sidebar-collapsed .sidebar-footer-action-label {
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Não recolher no mobile — o drawer continua como já homologado
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {
    .sidebar-collapse-toggle {
        display: none !important;
    }

    body.sidebar-collapsed .app-body {
        display: block;
    }

    body.sidebar-collapsed .sidebar {
        width: min(84vw, 294px);
        padding: 10px 9px;
    }

    body.sidebar-collapsed .sidebar .brand {
        min-height: 66px;
        margin-bottom: 6px;
        padding: 8px;
        justify-content: flex-start;
        gap: 10px;
    }

    body.sidebar-collapsed .brand-logo-atual {
        width: 46px !important;
        height: 40px !important;
        flex-basis: 46px !important;
    }

    body.sidebar-collapsed .sidebar .brand-copy,
    body.sidebar-collapsed .nav-link > span:last-child,
    body.sidebar-collapsed .user-summary {
        display: block;
    }

    body.sidebar-collapsed .sidebar-nav {
        padding-top: 1px;
    }

    body.sidebar-collapsed .nav-section {
        height: auto;
        margin: 10px 8px 5px;
        padding-left: 9px;
        overflow: visible;
        background: transparent;
        color: #71839a;
        font-size: 8.5px;
    }

    body.sidebar-collapsed .nav-section::before {
        display: block;
    }

    body.sidebar-collapsed .nav-link {
        min-height: 40px;
        padding: 0 9px 0 7px;
        justify-content: flex-start;
        gap: 8px;
    }

    body.sidebar-collapsed .nav-icon {
        width: 28px;
        min-width: 28px;
        height: 28px;
    }

    body.sidebar-collapsed .sidebar-secondary-button,
    body.sidebar-collapsed .logout-button {
        min-height: 32px;
        font-size: 10.5px;
    }
}

/*
|--------------------------------------------------------------------------
| JG Patrimônio — Compactação global no padrão Manager
|--------------------------------------------------------------------------
| Arquivo: C:\xampp\htdocs\jg-patrimonio\public\css\jg.css
| Versão visual: 2.2
| Data: 14/09/2026
|--------------------------------------------------------------------------
*/

.topbar {
    min-height: 58px;
    padding: 9px 16px;
}

.topbar h1 {
    font-size: 18px;
}

.topbar p {
    margin-top: 2px;
    font-size: 10px;
}

.topbar-context {
    gap: 5px;
}

.context-badge {
    max-width: 300px;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 9.5px;
}

.page-content {
    padding: 13px 16px 24px;
}

/*
|--------------------------------------------------------------------------
| Dashboard ainda mais compacto
|--------------------------------------------------------------------------
*/

.welcome-card {
    padding: 9px 10px;
    gap: 9px;
}

.welcome-card h2 {
    font-size: 15px;
}

.welcome-card p {
    margin-top: 3px;
    font-size: 9.5px;
    line-height: 1.35;
}

.context-item {
    padding: 6px 8px;
}

.context-item span {
    font-size: 8px;
}

.context-item strong {
    font-size: 9.5px;
}

.dashboard-grid {
    margin-top: 7px;
    gap: 6px;
}

.dashboard-card {
    min-height: 112px;
    padding: 9px;
}

.dashboard-card-icon {
    width: 26px;
    height: 26px;
    font-size: 14px;
}

.dashboard-card h3 {
    margin: 7px 0 3px;
    font-size: 11.5px;
}

.dashboard-card p {
    min-height: 34px;
    font-size: 9.25px;
    line-height: 1.32;
}

.coming-soon,
.module-status {
    margin-top: 6px !important;
    font-size: 9px !important;
}

/*
|--------------------------------------------------------------------------
| Mobile permanece confortável para toque
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {
    .topbar {
        padding: 9px 10px;
    }

    .topbar h1 {
        font-size: 17px;
    }

    .page-content {
        padding: 12px 9px 24px;
    }

    .dashboard-card {
        min-height: 118px;
        padding: 10px;
    }

    .dashboard-card h3 {
        font-size: 12px;
    }

    .dashboard-card p {
        font-size: 10px;
    }
}

/*
|--------------------------------------------------------------------------
| JG Patrimônio — Sidebar 2.3
|--------------------------------------------------------------------------
| Arquivo: C:\xampp\htdocs\jg-patrimonio\public\css\jg.css
| Data: 14/09/2026
|
| Correções:
| - conteúdo passa a ocupar o espaço liberado ao recolher a sidebar;
| - filtros e formulários acompanham automaticamente a nova largura;
| - maior contraste entre grupos de menu e respectivos subitens.
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| Correção estrutural do recolhimento
|--------------------------------------------------------------------------
| O <body> já possui a classe .app-body. Portanto a regra precisa atuar
| diretamente nele, e não procurar um .app-body descendente.
|--------------------------------------------------------------------------
*/

body.app-body.sidebar-collapsed {
    grid-template-columns: 74px minmax(0, 1fr) !important;
}

body.app-body.sidebar-collapsed > .sidebar {
    width: 74px;
}

body.app-body.sidebar-collapsed > .main-content {
    width: 100%;
    min-width: 0;
}

body.app-body.sidebar-collapsed .page-content,
body.app-body.sidebar-collapsed .topbar {
    width: 100%;
    min-width: 0;
    max-width: none;
}

/*
|--------------------------------------------------------------------------
| Formulários e grades devem aproveitar a largura disponível
|--------------------------------------------------------------------------
*/

.main-content,
.page-content,
.page-content > *,
.form-card,
.table-card,
.table-responsive,
.bens-desktop,
.bens-filter-shell {
    min-width: 0;
    max-width: 100%;
}

.bens-filter-shell,
.bens-desktop-summary,
.table-card {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Hierarquia visual dos grupos do menu
|--------------------------------------------------------------------------
*/

.sidebar-nav-desktop .nav-section {
    margin: 15px 4px 6px;
    padding: 6px 8px 5px 10px;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.055);
    background: rgba(255,255,255,.028);
    color: #8fa8c5;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: .13em;
    line-height: 1.2;
}

.sidebar-nav-desktop .nav-section::before {
    width: 4px;
    height: 4px;
    left: 2px;
    background: #79a8e7;
}

.sidebar-nav-desktop .nav-section:first-of-type {
    border-top-color: rgba(255,255,255,.08);
}

.sidebar-nav-desktop .nav-link {
    margin-left: 6px;
    width: calc(100% - 6px);
    color: #b7c5d5;
}

.sidebar-nav-desktop .nav-link .nav-icon {
    background: rgba(255,255,255,.025);
    border-color: rgba(255,255,255,.065);
    color: #91a6bf;
}

.sidebar-nav-desktop .nav-link:hover:not(.disabled) {
    background: rgba(255,255,255,.065);
    color: #ffffff;
}

.sidebar-nav-desktop .nav-link.active {
    margin-left: 2px;
    width: calc(100% - 2px);
    background:
        linear-gradient(
            90deg,
            #3f6fb8 0%,
            #365f9c 100%
        );
    border-color: rgba(140,181,235,.50);
    box-shadow:
        inset 3px 0 0 #a7cbfa,
        0 1px 4px rgba(0,0,0,.18);
    color: #ffffff;
}

.sidebar-nav-desktop .nav-link.active .nav-icon {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.18);
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Sidebar recolhida — manter separadores claros entre os grupos
|--------------------------------------------------------------------------
*/

body.app-body.sidebar-collapsed .sidebar-nav-desktop .nav-section {
    width: 38px;
    height: 1px;
    margin: 11px auto 8px;
    padding: 0;
    border: 0;
    background: #52657c;
    color: transparent;
}

body.app-body.sidebar-collapsed .sidebar-nav-desktop .nav-section::before {
    display: none;
}

body.app-body.sidebar-collapsed .sidebar-nav-desktop .nav-link {
    width: 100%;
    margin-left: 0;
}

/*
|--------------------------------------------------------------------------
| Mobile — preserva drawer; grupos também ganham contraste
|--------------------------------------------------------------------------
*/

@media (max-width:760px) {
    body.app-body.sidebar-collapsed {
        display: block;
    }

    .sidebar-nav-mobile .nav-section {
        padding: 5px 8px;
        border-top: 1px solid rgba(255,255,255,.10);
        border-bottom: 1px solid rgba(255,255,255,.045);
        background: rgba(255,255,255,.025);
        color: #8fa8c5;
        letter-spacing: .11em;
    }
}

/*
|--------------------------------------------------------------------------
| JG Patrimônio — Sidebar 2.4
|--------------------------------------------------------------------------
| Arquivo: C:\xampp\htdocs\jg-patrimonio\public\css\jg.css
| Data: 14/09/2026
|
| Ajuste fino:
| - mais contraste entre títulos de grupo e subitens;
| - item ativo sem borda externa: apenas preenchimento azul;
|--------------------------------------------------------------------------
*/

.sidebar-nav-desktop .nav-section {
    background: rgba(255,255,255,.05);
    border-top: 1px solid rgba(255,255,255,.16);
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: #a9bdd5;
}

.sidebar-nav-desktop .nav-section::before {
    background: #8fbaff;
}

.sidebar-nav-desktop .nav-link {
    color: #c5d0dd;
}

.sidebar-nav-desktop .nav-link .nav-icon {
    color: #aabbd0;
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.08);
}

.sidebar-nav-desktop .nav-link:hover:not(.disabled) {
    background: rgba(255,255,255,.075);
    color: #ffffff;
}

.sidebar-nav-desktop .nav-link.active {
    border-color: transparent !important;
    background: #3f6fb8 !important;
    box-shadow: none !important;
    color: #ffffff;
}

.sidebar-nav-desktop .nav-link.active .nav-icon {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.10);
    color: #ffffff;
}

.sidebar-nav-desktop .nav-link.active::after {
    background: #d9e8ff;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width:760px) {
    .sidebar-nav-mobile .nav-section {
        background: rgba(255,255,255,.05);
        border-top-color: rgba(255,255,255,.14);
        border-bottom-color: rgba(255,255,255,.06);
        color: #a9bdd5;
    }

    .sidebar-nav-mobile .nav-link.active {
        border-color: transparent !important;
        background: #3f6fb8 !important;
        box-shadow: none !important;
    }
}

/*
|--------------------------------------------------------------------------
| JG Patrimônio — Sidebar 2.5
|--------------------------------------------------------------------------
| Arquivo: C:\xampp\htdocs\jg-patrimonio\public\css\jg.css
| Data: 14/09/2026
|
| Ajuste:
| - títulos dos grupos em tom mais azulado para reforçar hierarquia.
|--------------------------------------------------------------------------
*/

.sidebar-nav-desktop .nav-section {
    color: #78a7e3;
}

.sidebar-nav-desktop .nav-section::before {
    background: #78a7e3;
}

@media (max-width:760px) {
    .sidebar-nav-mobile .nav-section {
        color: #78a7e3;
    }
}
