:root {
    color-scheme: light;
    --bg: #f3f7fb;
    --panel: #ffffff;
    --ink: #13233a;
    --muted: #687589;
    --line: #dce5ef;
    --soft: #eef5fb;
    --teal: #0f8f8a;
    --teal-dark: #0b6c78;
    --amber: #c47a1d;
    --rose: #c2415d;
    --blue: #2563eb;
    --blue-deep: #0b2f6b;
    --blue-soft: #e7f0ff;
    --shadow: 0 18px 42px rgba(19, 35, 58, .10);
    --shadow-soft: 0 10px 25px rgba(19, 35, 58, .07);
    --radius: 8px;
    --control-radius: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 24% 8%, rgba(37, 99, 235, .12), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #eef4f8 100%);
    color: var(--ink);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .24), transparent 34%),
        radial-gradient(circle at 80% 80%, rgba(15, 143, 138, .18), transparent 32%),
        var(--bg);
}

.login-panel {
    width: min(420px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.login-panel h1,
.topbar h2,
.record-dialog h3 {
    margin: 0;
    letter-spacing: 0;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.login-form,
.dialog-fields {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
    padding: 12px 14px;
    background: #fff;
    color: var(--ink);
    outline: none;
}

textarea {
    min-height: 88px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.table-button,
.danger-button {
    border: 0;
    border-radius: var(--control-radius);
    min-height: 42px;
    padding: 0 16px;
    font-weight: 800;
}

.primary-button {
    background: linear-gradient(135deg, var(--blue), var(--teal-dark));
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .18);
}

.primary-button:hover {
    filter: brightness(.96);
}

.secondary-button {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.ghost-button {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
}

.danger-button {
    background: rgba(190, 62, 85, .12);
    color: var(--rose);
}

.form-message {
    margin: 0;
    min-height: 20px;
    color: var(--rose);
    font-weight: 700;
}

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

.sidebar {
    background:
        linear-gradient(160deg, rgba(10, 32, 81, .94), rgba(24, 84, 199, .94) 54%, rgba(9, 107, 145, .94)),
        var(--blue-deep);
    border-right: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    color: #fff;
    box-shadow: 20px 0 45px rgba(11, 47, 107, .18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .94);
    color: var(--blue-deep);
    box-shadow: 0 12px 24px rgba(5, 20, 48, .18);
    font-weight: 900;
}

.brand strong {
    color: #fff;
}

.brand small {
    display: block;
    color: rgba(255, 255, 255, .72);
    margin-top: 2px;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav button,
.nav a {
    min-height: 42px;
    border: 0;
    border-radius: var(--control-radius);
    padding: 0 14px;
    background: transparent;
    color: rgba(255, 255, 255, .76);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    text-decoration: none;
}

.nav button.active,
.nav button:hover,
.nav a.active,
.nav a:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 22px rgba(5, 20, 48, .10);
}

.nav-count {
    min-width: 26px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--blue-deep);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: 12px;
}

.workspace {
    min-width: 0;
}

.topbar {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(220, 229, 239, .74);
    background: rgba(248, 251, 255, .86);
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(10px);
}

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

.icon-button {
    width: 42px;
    height: 42px;
    display: none;
    place-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 9px;
}

.icon-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--blue-deep);
}

.content {
    padding: 28px;
    display: grid;
    gap: 22px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.kpi-card,
.panel,
.table-wrap,
.import-drop {
    background: #fff;
    border: 1px solid rgba(220, 229, 239, .86);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.kpi-card {
    padding: 18px;
    min-height: 124px;
    display: grid;
    align-content: space-between;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
}

.kpi-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--teal), #52b788);
}

.kpi-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--amber), #f4b942);
}

.kpi-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--rose), var(--blue));
}

.kpi-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.kpi-card strong {
    font-size: 29px;
    letter-spacing: 0;
}

.kpi-card small {
    color: var(--muted);
}

.panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 18px;
}

.panel {
    padding: 20px;
    min-width: 0;
}

.panel-header,
.table-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.panel h3,
.table-header h3 {
    margin: 0;
    font-size: 18px;
}

.status-list {
    display: grid;
    gap: 10px;
}

.status-row {
    display: grid;
    grid-template-columns: 108px 1fr 52px;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.bar-track {
    height: 12px;
    border-radius: 999px;
    background: var(--blue-soft);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--teal));
}

.bar-fill.sold {
    background: var(--blue);
}

.bar-fill.repair {
    background: var(--amber);
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(40px, 1fr));
    align-items: end;
    gap: 12px;
    min-height: 230px;
    padding: 12px 4px 0;
}

.chart-col {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 8px;
    min-height: 220px;
}

.chart-stack {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 5px;
    height: 185px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(231, 240, 255, .42), transparent);
    border-radius: var(--radius) var(--radius) 0 0;
}

.chart-stack i {
    display: block;
    width: 18px;
    min-height: 3px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--blue), #5aa5ff);
}

.chart-stack i:last-child {
    background: linear-gradient(180deg, var(--amber), #f4b942);
}

.chart-col span {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.table-wrap {
    overflow: hidden;
}

.table-header {
    padding: 16px 18px 0;
}

.table-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.table-tools input {
    width: min(280px, 60vw);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    background: #f7fafe;
}

.data-table tbody tr:hover {
    background: #f7fafe;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.badge.sold,
.badge.cancelada,
.badge.despesa {
    background: rgba(190, 62, 85, .12);
    color: var(--rose);
}

.badge.repair,
.badge.orcamento {
    background: rgba(183, 121, 31, .14);
    color: var(--amber);
}

.badge.receita,
.badge.concluida {
    background: rgba(15, 143, 138, .12);
    color: var(--teal);
}

.row-actions {
    display: flex;
    gap: 8px;
}

.table-button {
    min-height: 32px;
    padding: 0 12px;
    background: var(--blue-soft);
    color: var(--blue-deep);
}

.empty-state {
    padding: 34px;
    text-align: center;
    color: var(--muted);
}

.import-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 18px;
}

.import-drop {
    padding: 20px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 800;
}

.toast {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 20;
    max-width: min(420px, calc(100vw - 36px));
    border-radius: var(--radius);
    background: var(--blue-deep);
    color: #fff;
    padding: 13px 15px;
    box-shadow: var(--shadow);
    font-weight: 800;
}

.record-dialog {
    width: min(760px, calc(100vw - 26px));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow);
}

.record-dialog::backdrop {
    background: rgba(9, 22, 44, .48);
}

.record-dialog form {
    margin: 0;
}

.record-dialog header,
.record-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.record-dialog footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    justify-content: flex-end;
}

.dialog-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
    max-height: min(66vh, 720px);
    overflow: auto;
}

.dialog-fields label.full {
    grid-column: 1 / -1;
}

.icon-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    background: var(--blue-soft);
    font-size: 22px;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.icon-close:hover,
.icon-close:focus-visible {
    background: #dbeafe;
    transform: translateY(-1px);
}

.icon-close .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

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

    .panel-grid,
    .import-grid {
        grid-template-columns: 1fr;
    }
}

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

    .sidebar {
        position: fixed;
        z-index: 15;
        inset: 0 auto 0 0;
        width: min(306px, 88vw);
        transform: translateX(-104%);
        transition: transform .18s ease;
        box-shadow: var(--shadow);
    }

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

    .icon-button {
        display: grid;
    }

    .topbar {
        padding: 14px;
        align-items: flex-start;
    }

    .top-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .content {
        padding: 14px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .dialog-fields {
        grid-template-columns: 1fr;
    }
}

/* Requested refinements */
.brand {
    padding: 0;
}

.brand strong,
.brand small,
.nav a,
.nav-link-main span:last-child {
    font-weight: 500;
}

.nav a {
    min-height: 35px;
    border-radius: 0;
    padding: 0 18px;
    color: #b6c1d1;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav a.active,
.nav a:hover {
    border-radius: 8px;
}

.nav-count,
.top-search {
    display: none;
}

.ghost-button {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.icon-only {
    width: 42px;
    min-width: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-only .material-symbols-outlined,
.icon-export .material-symbols-outlined,
.icon-table-button .material-symbols-outlined {
    margin: 0;
}

.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.kpi-card {
    min-width: 0;
    padding: 22px 24px;
}

.kpi-card strong {
    max-width: 100%;
    font-size: clamp(21px, 2.1vw, 29px);
    overflow-wrap: anywhere;
    line-height: 1.16;
}

.metric-delta {
    max-width: 76px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.table-tools {
    align-items: center;
}

.filter-input {
    width: auto;
    min-width: 145px;
}

.icon-export {
    width: 42px;
    min-width: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.export-menu {
    position: relative;
}

.export-menu summary {
    list-style: none;
}

.export-menu summary::-webkit-details-marker {
    display: none;
}

.export-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 10;
    min-width: 190px;
    border-radius: 14px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    gap: 6px;
}

.export-popover strong,
.export-popover a {
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
}

.export-popover a {
    color: var(--ink);
    background: #f8fafc;
}

.export-popover a[aria-disabled="true"] {
    opacity: .45;
    pointer-events: none;
}

.table-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 16px;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

.table-scroll-top > div {
    height: 1px;
}

.table-pagination {
    min-height: 62px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #526177;
    border-top: 1px solid var(--line);
    background: #fff;
}

.table-pagination label,
.pagination-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.table-pagination select {
    min-height: 36px;
    width: auto;
    padding: 6px 28px 6px 10px;
}

.pagination-actions strong {
    min-width: 48px;
    text-align: center;
    color: var(--ink);
}

.icon-table-button {
    width: 34px;
    min-width: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-table-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.product-cell img,
.logo-thumb {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    background: #0f172a;
}

.inventory-controls {
    align-items: center;
}

.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.category-toolbar select {
    width: auto;
    min-width: 190px;
}

.category-toolbar input {
    width: 190px;
}

.template-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.template-link .material-symbols-outlined {
    margin: 0;
}

select[multiple] {
    min-height: 112px;
}

.brand-mark,
.user-avatar {
    cursor: pointer;
}

@media (max-width: 1120px) {
    .kpi-card {
        min-height: 168px;
    }
}

@media (max-width: 620px) {
    .table-pagination,
    .category-toolbar,
    .inventory-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .category-toolbar select,
    .category-toolbar input {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .topbar {
        display: grid;
        grid-template-columns: 42px 1fr;
    }

    .top-actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .top-actions button {
        flex: 1;
    }

    .table-header {
        align-items: stretch;
        flex-direction: column;
    }

    .table-tools input,
    .table-tools a {
        width: 100%;
    }
}

/* Stitch-inspired premium interface */
:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f1f5f9;
    --blue: #2563eb;
    --blue-deep: #020617;
    --teal: #059669;
    --amber: #d97706;
    --rose: #b91c1c;
    --shadow: 0 18px 44px rgba(15, 23, 42, .10);
    --shadow-soft: 0 8px 22px rgba(15, 23, 42, .06);
    --radius: 16px;
    --control-radius: 10px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--bg);
    color: var(--ink);
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    display: inline-flex;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

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

.sidebar {
    width: 280px;
    background: var(--blue-deep);
    color: #fff;
    padding: 22px 18px;
    border-right: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 18px 0 42px rgba(15, 23, 42, .12);
}

.brand {
    padding: 12px 14px 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    align-items: center;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    box-shadow: none;
}

.brand strong {
    color: #fff;
    font-family: Manrope, Inter, sans-serif;
    font-size: 24px;
    line-height: 1;
}

.brand small {
    color: #cbd5e1;
    text-transform: none;
}

.nav {
    gap: 7px;
}

.nav a {
    min-height: 52px;
    border-radius: 10px;
    padding: 0 18px;
    color: #b6c1d1;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav a:hover {
    background: rgba(15, 23, 42, .78);
    color: #fff;
}

.nav a.active {
    background: var(--blue);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 28px rgba(37, 99, 235, .24);
}

.nav-link-main {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.nav-link-main span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-count {
    min-width: 26px;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
}

.nav a.active .nav-count {
    background: rgba(255, 255, 255, .22);
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 12px;
}

.user-card {
    min-height: 70px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(148, 163, 184, .20);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}

.user-card strong {
    display: block;
    color: #fff;
    font-size: 14px;
}

.user-card small {
    color: #94a3b8;
}

.ghost-button {
    min-height: 44px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, .22);
    color: #cbd5e1;
}

.workspace {
    min-width: 0;
}

.topbar {
    min-height: 78px;
    padding: 14px 40px;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid #edf2f7;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
    backdrop-filter: blur(14px);
}

.top-title {
    min-width: 150px;
}

.top-title .eyebrow {
    display: none;
}

.top-title h2 {
    font-family: Manrope, Inter, sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.top-search {
    width: min(340px, 34vw);
    height: 44px;
    border-radius: 999px;
    background: var(--soft);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    color: #7b8aa0;
    font-weight: 500;
}

.top-search input {
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    min-height: 0;
    color: var(--ink);
}

.top-search input:focus {
    box-shadow: none;
}

.primary-button,
.secondary-button,
.table-button,
.danger-button {
    border-radius: 10px;
}

.primary-button {
    background: var(--blue);
    box-shadow: 0 12px 22px rgba(37, 99, 235, .24);
}

.secondary-button {
    background: var(--soft);
    border: 0;
    box-shadow: none;
    color: #334155;
}

.primary-button .material-symbols-outlined,
.secondary-button .material-symbols-outlined {
    font-size: 18px;
    margin-right: 8px;
}

.content {
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 40px;
    gap: 30px;
}

.page-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.page-intro h3 {
    margin: 8px 0 0;
    font-family: Manrope, Inter, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #111827;
}

.page-intro small {
    display: block;
    margin-top: 10px;
    color: #64748b;
    font-size: 16px;
}

.page-kicker {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 500;
}

.import-heading h3 {
    font-size: 44px;
    font-weight: 800;
}

.segmented-control {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px;
    display: flex;
    gap: 4px;
}

.segmented-control button {
    border: 0;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 8px;
    background: transparent;
    color: #526177;
    font-weight: 700;
}

.segmented-control button.active {
    background: var(--blue);
    color: #fff;
}

.kpi-grid {
    gap: 28px;
}

.kpi-card,
.summary-card,
.panel,
.table-wrap,
.import-drop {
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.kpi-card {
    min-height: 180px;
    padding: 28px 30px;
    border-left: 4px solid var(--blue);
}

.kpi-card::before {
    display: none;
}

.kpi-card:nth-child(2) {
    border-left-color: var(--blue);
}

.kpi-card:nth-child(3) {
    border-left-color: #475569;
}

.kpi-card:nth-child(4) {
    border-left-color: #cbd5e1;
}

.kpi-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--blue);
}

.metric-delta {
    border-radius: 6px;
    padding: 6px 10px;
    background: #ecfdf5;
    color: var(--teal) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.kpi-card > span:not(.metric-icon) {
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.kpi-card strong {
    font-family: Inter, sans-serif;
    font-size: 29px;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.panel-grid {
    gap: 28px;
}

.panel {
    padding: 30px;
}

.panel h3,
.table-header h3 {
    font-family: Manrope, Inter, sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.inventory-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.inventory-summary .summary-card {
    min-height: 96px;
    padding: 18px 22px;
    border-left: 4px solid var(--blue);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    overflow: hidden;
}

.inventory-summary .summary-card:nth-child(2),
.inventory-summary .summary-card:nth-child(3) {
    border-left-color: #64748b;
}

.inventory-summary .summary-card span:first-child {
    display: block;
    color: #526177;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    line-height: 1.18;
}

.inventory-summary .summary-card strong {
    display: block;
    margin-top: 10px;
    font-size: 21px;
    font-weight: 500;
}

.inventory-summary .summary-card small {
    display: inline-flex;
    margin-top: 12px;
    color: var(--blue);
    font-weight: 800;
}

.inventory-summary .summary-card .title-note {
    display: block;
    margin: 2px 0 0;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.inventory-summary .summary-card .value-unit {
    display: inline;
    margin: 0 0 0 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.inventory-summary .summary-icon {
    color: #eef2f7;
    font-size: 58px;
}

.inventory-groups {
    display: grid;
    gap: 18px;
}

.inventory-group-card {
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.inventory-group-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    text-align: left;
    cursor: pointer;
}

.inventory-group-toggle strong {
    display: block;
    font-size: 18px;
    font-family: Manrope, Inter, sans-serif;
    color: var(--ink);
}

.inventory-group-toggle small {
    color: #64748b;
    display: block;
    margin-top: 4px;
}

.inventory-group-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.inventory-group-preview span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #526177;
    font-size: 12px;
    font-weight: 700;
}

.inventory-group-body {
    padding: 0 18px 18px;
}

.inventory-group-body .table-wrap {
    border: 0;
    box-shadow: none;
    border-radius: 14px;
}

.inventory-group-body .table-scroll-top {
    height: 12px;
}

.inventory-group-body .data-table {
    font-size: 14px;
}

.inventory-group-body .data-table th,
.inventory-group-body .data-table td {
    padding: 14px 18px;
}

.inventory-group-body .product-cell {
    min-width: 170px;
    gap: 10px;
}

.inventory-group-body .product-cell strong {
    max-width: 200px;
}

.inventory-group-body .table-button,
.inventory-group-body .danger-button {
    width: 34px;
    height: 34px;
}

.inventory-group-body .row-actions {
    justify-content: flex-end;
}

@media (max-width: 1120px) {
    .inventory-group-body .table-wrap {
        overflow: hidden;
    }
}

@media (max-width: 760px) {
    .inventory-group-toggle {
        grid-template-columns: 1fr auto;
    }

    .inventory-group-toggle .material-symbols-outlined {
        grid-column: 2;
        grid-row: 1;
    }

    .inventory-group-preview {
        margin-right: 10px;
    }
}

.chart-stack {
    background: linear-gradient(180deg, #f8fafc, transparent);
}

.chart-stack i {
    width: 20px;
    background: var(--blue);
}

.chart-stack i:last-child {
    background: #93c5fd;
}

.bar-track {
    height: 8px;
    background: #edf2f7;
}

.bar-fill {
    background: var(--blue);
}

.bar-fill.sold {
    background: #475569;
}

.bar-fill.repair {
    background: var(--rose);
}

.table-wrap {
    overflow: hidden;
}

.table-header {
    padding: 28px 32px 18px;
    margin: 0;
}

.table-tools input {
    min-height: 44px;
    border-radius: 999px;
    background: var(--soft);
    border: 0;
}

.data-table {
    font-size: 15px;
}

.data-table th {
    background: #f8fafc;
    color: #526177;
    font-size: 12px;
    letter-spacing: .08em;
}

.data-table th,
.data-table td {
    padding: 18px 32px;
}

.data-table tbody tr:hover {
    background: #f8fbff;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 210px;
}

.device-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #93c5fd;
    font-size: 22px;
}

.product-cell strong {
    max-width: 260px;
    color: var(--ink);
    line-height: 1.35;
}

.badge {
    min-height: 25px;
    border-radius: 6px;
    background: #dbeafe;
    color: var(--blue);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.badge.sold,
.badge.cancelada,
.badge.despesa {
    background: #e2e8f0;
    color: #475569;
}

.badge.repair,
.badge.orcamento {
    background: #fee2e2;
    color: var(--rose);
}

.badge.receita,
.badge.concluida {
    background: #dcfce7;
    color: var(--teal);
}

.table-button,
.danger-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.table-button {
    background: #eef4ff;
    color: var(--blue);
}

.danger-button {
    background: #fef2f2;
    color: var(--rose);
}

.import-grid {
    grid-template-columns: minmax(0, 2fr) minmax(320px, .95fr);
    gap: 32px;
    align-items: start;
}

.import-drop {
    min-height: 410px;
    border: 2px dashed #dbe3ef;
    border-left: 4px dashed var(--blue);
    padding: 54px 44px;
    text-align: center;
    justify-items: center;
    align-content: center;
}

.import-drop input[type="file"] {
    max-width: 420px;
    border-radius: 14px;
    background: #f8fafc;
}

.import-drop h3 {
    margin: 8px 0 0;
    font-size: 25px;
}

.import-drop p {
    max-width: 520px;
    color: #526177;
    font-size: 16px;
    line-height: 1.55;
}

.upload-hero {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--blue);
    display: grid;
    place-items: center;
}

.upload-hero .material-symbols-outlined {
    font-size: 42px;
}

.mapped-panel {
    display: grid;
    gap: 20px;
}

.mapped-sheet {
    display: grid;
    gap: 10px;
}

.chip {
    background: #fff;
    border: 1px solid #dbe3ef;
    color: #1e293b;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .04);
}

.tip-card {
    margin-top: 10px;
    border-radius: 14px;
    padding: 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tip-card p {
    margin: 0;
    line-height: 1.55;
}

.record-dialog {
    border-radius: 18px;
}

.record-dialog header,
.record-dialog footer {
    padding: 20px 24px;
}

.dialog-fields {
    padding: 24px;
}

.muted {
    color: #94a3b8;
}

@media (max-width: 1120px) {
    .inventory-summary {
        grid-template-columns: 1fr;
    }

    .top-search {
        width: min(280px, 32vw);
    }
}

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

    .sidebar {
        width: min(306px, 88vw);
    }

    .topbar {
        grid-template-columns: 42px 1fr;
        padding: 14px;
    }

    .top-search {
        grid-column: 1 / -1;
        width: 100%;
        order: 3;
    }

    .top-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .top-actions button {
        flex: 1;
    }

    .content {
        padding: 22px 14px;
    }

    .page-intro {
        align-items: stretch;
        flex-direction: column;
    }

    .import-heading h3 {
        font-size: 34px;
    }

    .segmented-control {
        overflow-x: auto;
    }
}

/* Final requested adjustments */
.brand {
    padding: 0;
}

.sidebar .brand strong,
.sidebar .brand small,
.sidebar .nav a,
.sidebar .nav-link-main span:last-child,
.sidebar .user-card strong,
.sidebar .user-card small {
    font-weight: 400;
}

.nav a {
    min-height: 35px;
    border-radius: 12px;
    padding: 0 18px;
    color: #b6c1d1;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav a:hover,
.nav a.active {
    border-radius: 12px;
}

.nav a.active {
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .6), 0 12px 28px rgba(37, 99, 235, .24);
}

.nav-count,
.top-search {
    display: none;
}

.ghost-button {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.ghost-button:hover {
    background: #991b1b;
    color: #fff;
}

.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.kpi-card {
    min-width: 0;
    overflow: hidden;
}

.kpi-card strong {
    max-width: 100%;
    font-size: clamp(20px, 2vw, 29px);
    line-height: 1.14;
    overflow-wrap: anywhere;
}

.kpi-card small,
.summary-card small {
    overflow-wrap: anywhere;
}

.filter-panel {
    min-height: 76px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.filter-panel strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.filter-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.period-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.compact-filterbar {
    min-height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.compact-filterbar > * {
    flex: 0 0 auto;
}

.period-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.period-mode {
    min-width: 88px;
    width: 88px;
}

.period-picker {
    min-width: 132px;
    width: 132px;
}

.period-filter .period-mode {
    min-width: 88px;
    width: 88px;
}

.period-filter .period-picker {
    min-width: 132px;
    width: 132px;
}

.compact-category {
    min-width: 150px;
    width: 150px;
}

.compact-filterbar .segmented-control {
    padding: 3px;
    border-radius: 9px;
}

.compact-filterbar .segmented-control button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.compact-filterbar .filter-input,
.table-tools .period-filter .filter-input,
.sort-filter {
    min-height: 36px;
    border-radius: 10px;
    font-size: 13px;
}

.compact-filterbar .icon-only,
.compact-filterbar .icon-export,
.table-tools .icon-only,
.table-tools .icon-export {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
}

.category-create {
    gap: 6px;
}

.category-create input {
    width: 146px;
    min-height: 36px;
    border-radius: 10px;
    font-size: 13px;
}

.category-toolbar.category-create input {
    width: 146px;
}

.table-tools {
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-end;
}

.table-tools input,
.filter-input {
    min-width: 132px;
}

.table-tools #searchInput {
    min-width: 170px;
    width: 170px;
}

.table-tools .period-filter,
.table-tools .sort-filter {
    flex: 0 0 auto;
}

.table-tools .sort-filter {
    min-width: 120px;
    width: 120px;
}

.icon-only,
.icon-export,
.icon-table-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-only,
.icon-export {
    width: 42px;
    min-width: 42px;
    padding: 0;
}

.icon-table-button {
    width: 34px;
    min-width: 34px;
    padding: 0;
}

.icon-only .material-symbols-outlined,
.icon-export .material-symbols-outlined,
.icon-table-button .material-symbols-outlined {
    margin: 0;
}

.table-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 16px;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

.table-scroll-top > div {
    height: 1px;
}

.table-pagination {
    min-height: 62px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #526177;
    border-top: 1px solid var(--line);
    background: #fff;
}

.table-pagination label,
.pagination-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.table-pagination select {
    min-height: 36px;
    width: auto;
    padding: 6px 28px 6px 10px;
}

.export-menu {
    position: relative;
}

.export-menu summary {
    list-style: none;
}

.export-menu summary::-webkit-details-marker {
    display: none;
}

.export-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 10;
    min-width: 190px;
    border-radius: 14px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    gap: 6px;
}

.export-popover strong,
.export-popover a {
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
}

.export-popover a {
    color: var(--ink);
    background: #f8fafc;
}

.export-popover a[aria-disabled="true"] {
    opacity: .45;
    pointer-events: none;
}

.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.category-toolbar select {
    width: auto;
    min-width: 190px;
}

.category-toolbar input {
    width: 190px;
}

.product-cell img,
.logo-thumb {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    background: #0f172a;
}

.header-tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-dialog {
    width: min(520px, calc(100vw - 28px));
}

.category-dialog-body {
    padding: 22px;
    display: grid;
    gap: 16px;
}

.category-create-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.category-create-row .primary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
}

.category-row {
    min-height: 58px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.category-row strong,
.category-row small {
    display: block;
}

.category-row strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.category-row small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.compact-empty {
    padding: 18px;
}

.data-table {
    table-layout: fixed;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table th {
    position: relative;
    font-size: 11px;
    letter-spacing: .05em;
    user-select: none;
    white-space: nowrap;
}

.data-table td {
    font-size: 13px;
    line-height: 1.3;
}

.sortable-th {
    cursor: pointer;
}

.sortable-th:hover,
.sortable-th.active-sort {
    background: #e8eef7;
    color: #334155;
}

.th-content {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 8px);
}

.th-content > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sort-indicator {
    flex: 0 0 auto;
    width: 15px;
    font-size: 15px;
    opacity: .22;
}

.active-sort .sort-indicator {
    opacity: .95;
}

.column-resizer {
    position: absolute;
    top: 7px;
    right: -4px;
    bottom: 7px;
    z-index: 2;
    width: 9px;
    cursor: col-resize;
}

.column-resizer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 4px;
    bottom: 0;
    width: 1px;
    border-radius: 999px;
    background: #cbd5e1;
    opacity: .45;
}

.column-resizer:hover::after {
    background: var(--blue);
    opacity: 1;
}

.actions-th,
.actions-cell {
    text-align: center;
}

body.resizing-column {
    cursor: col-resize;
    user-select: none;
}

.brand-mark,
.user-avatar {
    cursor: pointer;
}

@media (max-width: 620px) {
    .filter-panel,
    .table-pagination,
    .period-toolbar,
    .category-toolbar,
    .inventory-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .period-toolbar > *,
    .period-filter,
    .period-filter > *,
    .compact-category,
    .table-tools button,
    .category-toolbar select,
    .category-toolbar input,
    .table-tools input,
    .table-tools select,
    .table-tools a {
        width: 100%;
    }
}

/* Final collapsible sidebar overrides */
.app-shell {
    transition: grid-template-columns .2s ease;
}

.sidebar {
    position: sticky;
    overflow: visible;
    transition: width .2s ease, padding .2s ease;
}

.sidebar-toggle {
    position: absolute;
    top: 50%;
    right: -17px;
    z-index: 6;
    width: 34px;
    height: 58px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 999px;
    background: #fff;
    color: var(--blue);
    display: grid;
    place-items: center;
    padding: 0;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .14);
    transform: translateY(-50%);
}

.sidebar-toggle:hover {
    color: #fff;
    background: var(--blue);
}

.sidebar-toggle .material-symbols-outlined {
    font-size: 24px;
}

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

.app-shell.sidebar-collapsed .sidebar {
    width: 78px;
    padding: 22px 10px;
    align-items: center;
}

.app-shell.sidebar-collapsed .brand {
    width: 100%;
    justify-content: center;
}

.app-shell.sidebar-collapsed .brand > div,
.app-shell.sidebar-collapsed .nav-link-main span:last-child,
.app-shell.sidebar-collapsed .user-card > div,
.app-shell.sidebar-collapsed .ghost-button {
    display: none;
}

.app-shell.sidebar-collapsed .nav {
    width: 100%;
}

.app-shell.sidebar-collapsed .nav a {
    width: 48px;
    min-height: 48px;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    border-radius: 12px;
}

.app-shell.sidebar-collapsed .nav a:hover,
.app-shell.sidebar-collapsed .nav a.active {
    border-radius: 12px;
}

.app-shell.sidebar-collapsed .nav-link-main {
    justify-content: center;
    gap: 0;
}

.app-shell.sidebar-collapsed .sidebar-footer {
    width: 100%;
    align-items: center;
}

.app-shell.sidebar-collapsed .user-card {
    width: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
    background: transparent;
    border: 0;
}

.app-shell.sidebar-collapsed .brand-mark,
.app-shell.sidebar-collapsed .user-avatar {
    width: 44px;
    height: 44px;
}

.device-placeholder {
    width: 28px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.device-placeholder i {
    width: 14px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid #94a3b8;
    background: #e2e8f0;
    display: block;
    position: relative;
}

.device-placeholder i::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 1px;
    border-radius: 999px;
    background: #94a3b8;
    transform: translateX(-50%);
}

@media (max-width: 820px) {
    .sidebar {
        position: fixed;
    }

    .sidebar-toggle {
        display: none;
    }

    .app-shell.sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .app-shell.sidebar-collapsed .sidebar {
        width: min(306px, 88vw);
        padding: 22px 18px;
        align-items: stretch;
    }

    .app-shell.sidebar-collapsed .brand > div,
    .app-shell.sidebar-collapsed .nav-link-main span:last-child,
    .app-shell.sidebar-collapsed .user-card > div,
    .app-shell.sidebar-collapsed .ghost-button {
        display: block;
    }

    .app-shell.sidebar-collapsed .nav a {
        width: auto;
        justify-content: space-between;
        padding: 0 18px;
        margin: 0;
    }

    .app-shell.sidebar-collapsed .nav-link-main {
        gap: 13px;
        justify-content: flex-start;
    }
}
