:root {
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 92px;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
    min-width: var(--sidebar-collapsed-width);
    overflow-x: hidden;
}

.bg-auth {
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.18), transparent 30%),
        linear-gradient(135deg, #f2f7ff 0%, #e9f0f8 100%);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.25s ease, min-width 0.25s ease, padding 0.25s ease;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.app-main-shell {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1rem;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.sidebar-logo {
    width: 100%;
    max-width: 210px;
    height: auto;
    display: block;
}

.sidebar-brand-copy {
    line-height: 1.2;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(129, 140, 248, 0.42) rgba(15, 23, 42, 0.08);
}

.sidebar-menu::-webkit-scrollbar {
    width: 10px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.58) 0%, rgba(59, 130, 246, 0.42) 100%);
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.08);
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.72) 0%, rgba(96, 165, 250, 0.56) 100%);
}

.product-help-root .form-text {
    display: none;
}

.product-help-root.product-help-visible .form-text {
    display: block;
}

.product-help-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.sidebar-link,
.sidebar-group-toggle,
.sidebar-sublink {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 0;
    background: transparent;
    color: rgba(226, 232, 240, 0.88);
    text-decoration: none;
    padding: 0.92rem 1rem;
    border-radius: 1rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-link:hover,
.sidebar-group-toggle:hover,
.sidebar-sublink:hover {
    background: rgba(148, 163, 184, 0.14);
    color: #ffffff;
}

.sidebar-link.active,
.sidebar-sublink.active,
.sidebar-group.is-open > .sidebar-group-toggle {
    background: rgba(79, 70, 229, 0.28);
    color: #c4b5fd;
}

.sidebar-link-icon {
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.4rem;
}

.sidebar-link-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sidebar-link-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sidebar-group-toggle {
    cursor: pointer;
    text-align: left;
}

.sidebar-group-caret {
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
    margin-right: 0.2rem;
}

.sidebar-group.is-open > .sidebar-group-toggle .sidebar-group-caret {
    transform: rotate(225deg);
}

.sidebar-submenu {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding-left: 0.9rem;
}

.sidebar-group.is-open > .sidebar-submenu {
    display: flex;
}

.sidebar-sublink {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.sidebar-sublink .sidebar-link-icon {
    opacity: 0.92;
}

.sidebar-footer {
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: transparent;
    padding-bottom: 0.25rem;
}

.sidebar-logout {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 1rem;
    text-align: center;
    padding-left: 2.9rem;
    padding-right: 1rem;
}

.sidebar-logout .sidebar-link-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-mobile-toggle {
    white-space: nowrap;
}

.sidebar-toggle {
    position: fixed;
    top: 7rem;
    left: calc(var(--sidebar-width) - 17px);
    z-index: 1050;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #5b7cfa 0%, #4f46e5 100%);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
    transition: left 0.25s ease, top 0.25s ease, transform 0.2s ease, background 0.2s ease;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #6b88fb 0%, #5b4ff0 100%);
    transform: translateY(-1px);
}

.sidebar-toggle:focus-visible {
    outline: 3px solid rgba(191, 219, 254, 0.95);
    outline-offset: 3px;
}

.sidebar-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 400;
    margin-left: 0;
}

.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.pos-product-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, #ffffff 100%);
    padding: 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pos-product-card:hover:not([aria-disabled="true"]) {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.pos-product-card[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

.pos-product-card-top,
.pos-product-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.pos-product-card-top {
    margin-bottom: 0.8rem;
    align-items: flex-start;
    min-height: 5.2rem;
}

.pos-product-card-bottom {
    align-items: center;
    font-size: 0.86rem;
    color: #64748b;
    margin-top: auto;
}

.pos-product-card-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.pos-product-card-sku {
    align-self: flex-start;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2563eb;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.pos-product-card-sku:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.pos-product-card-sku:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.32);
    outline-offset: 3px;
    border-radius: 0.35rem;
}

.pos-product-card-name {
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    min-height: 3.8rem;
}

.pos-product-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.pos-product-card-price {
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.pos-product-card-thumb {
    width: 56px;
    height: 56px;
    border-radius: 0.8rem;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #f8fafc;
}

.pos-product-card-thumb-placeholder {
    border: 1px dashed rgba(148, 163, 184, 0.38);
    background: rgba(248, 250, 252, 0.94);
}

.pos-product-card-thumb-hidden {
    visibility: hidden;
}

.pos-product-modal-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, #ffffff 100%);
    overflow: hidden;
}

.pos-product-modal-image {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
}

.pos-product-modal-placeholder {
    font-size: 0.95rem;
    color: #64748b;
    text-align: center;
    padding: 1rem;
}

.pos-product-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pos-product-modal-description {
    min-height: 4.5rem;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    background: rgba(248, 250, 252, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #334155;
    line-height: 1.45;
    white-space: pre-wrap;
}

.pos-sale-totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, #ffffff 100%);
}

.pos-sale-grand-total {
    padding-top: 0.6rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 1.04rem;
}

.pos-cart-qty {
    max-width: 84px;
    margin: 0 auto;
}

.pos-cart-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.pos-cart-step {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.pos-cart-step-value {
    min-width: 1.8rem;
    text-align: center;
    font-weight: 600;
    color: #0f172a;
}

.pos-cart-price-col,
.pos-cart-subtotal-col {
    white-space: nowrap;
    width: 1%;
}

.pos-cart-price-cell,
.pos-cart-subtotal-cell {
    white-space: nowrap;
}

.pos-sale-sidebar {
    display: flex;
    flex-direction: column;
}

@media (max-width: 767.98px) {
    .pos-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .pos-sale-sidebar {
        position: sticky;
        top: 1rem;
    }
}

.pos-setup-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.pos-setup-card-highlight {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 249, 255, 0.98) 100%);
}

.pos-check-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    background: rgba(248, 250, 252, 0.82);
    height: 100%;
}

.pos-check-card ul {
    padding-left: 1.15rem;
    color: #475569;
}

.pos-metric-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.pos-metric-line:last-child {
    border-bottom: 0;
}

.import-card {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, #ffffff 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    padding: 1.25rem;
    height: 100%;
}

.import-stat {
    height: 100%;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(79, 70, 229, 0.12) 100%);
    border: 1px solid rgba(191, 219, 254, 0.9);
    padding: 1rem 1.1rem;
}

.import-stat-label {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.import-stat strong {
    font-size: 1.45rem;
    color: #0f172a;
}

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

.login-logo {
    width: min(100%, 320px);
    height: auto;
}

.app-footer {
    border-top: 1px solid #e9eef5;
    background: rgba(255, 255, 255, 0.9);
}

body.sidebar-collapsed .sidebar {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

body.sidebar-collapsed .sidebar-brand-copy,
body.sidebar-collapsed .sidebar-user,
body.sidebar-collapsed .sidebar-link-text,
body.sidebar-collapsed .sidebar-group-caret {
    display: none !important;
}

body.sidebar-collapsed .sidebar-brand {
    padding-bottom: 0.75rem;
}

body.sidebar-collapsed .sidebar-logo {
    max-width: 48px;
}

body.sidebar-collapsed .sidebar-link,
body.sidebar-collapsed .sidebar-group-toggle,
body.sidebar-collapsed .sidebar-sublink,
body.sidebar-collapsed .sidebar-logout {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

body.sidebar-collapsed .sidebar-submenu {
    display: none !important;
    padding-left: 0;
}

body.sidebar-collapsed .sidebar-group {
    gap: 0;
}

body.sidebar-collapsed .sidebar-footer form {
    display: flex;
    justify-content: center;
}

body.sidebar-collapsed .sidebar-logout {
    width: 3.2rem;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    border-color: rgba(148, 163, 184, 0.35);
}

body.sidebar-collapsed .sidebar-logout .sidebar-link-icon {
    position: static;
    transform: none;
}

.stat-card {
    border-radius: 1rem;
}

.card {
    border-radius: 1rem;
}

.dashboard-stat-card {
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.12), transparent 35%),
        #ffffff;
}

.dashboard-stat-card-primary {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-stat-card-warning {
    background:
        radial-gradient(circle at top right, rgba(248, 113, 113, 0.14), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

.dashboard-highlight-card {
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.12), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.dashboard-mini-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid #e9eef5;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid #e7edf5;
    border-radius: 0.95rem;
    background: #fbfdff;
}

.dashboard-chart-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-chart-item {
    display: grid;
    grid-template-columns: minmax(150px, 1.4fr) minmax(140px, 2fr) auto;
    gap: 0.9rem;
    align-items: center;
}

.dashboard-chart-label {
    min-width: 0;
}

.dashboard-chart-bar-wrap {
    position: relative;
    height: 0.8rem;
    border-radius: 999px;
    background: #e8eef8;
    overflow: hidden;
}

.dashboard-chart-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa 0%, #4f46e5 100%);
}

.dashboard-chart-value {
    min-width: 2rem;
    text-align: right;
    font-weight: 600;
    color: #1e293b;
}

.dashboard-chart-stack-item {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e7edf5;
    border-radius: 0.95rem;
    background: #fbfdff;
}

.dashboard-chart-stack-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-stacked-bar {
    display: flex;
    width: 100%;
    height: 0.95rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e8eef8;
}

.dashboard-stacked-segment {
    display: block;
    height: 100%;
}

.dashboard-stacked-segment.available {
    background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%);
}

.dashboard-stacked-segment.reserved {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
}

.dashboard-stacked-segment.consignment {
    background: linear-gradient(90deg, #34d399 0%, #14b8a6 100%);
}

.dashboard-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    color: #64748b;
    font-size: 0.88rem;
}

.dashboard-legend-dot {
    width: 0.7rem;
    height: 0.7rem;
    display: inline-block;
    border-radius: 999px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.dashboard-legend-dot.available {
    background: #2563eb;
}

.dashboard-legend-dot.reserved {
    background: #f97316;
}

.dashboard-legend-dot.consignment {
    background: #14b8a6;
}

.dashboard-quick-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border: 1px solid #dbe7f4;
    border-radius: 1rem;
    text-decoration: none;
    color: #1e293b;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 34%),
        #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-quick-link:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 30px rgba(148, 163, 184, 0.18);
    color: #0f172a;
}

.dashboard-quick-link span {
    color: #64748b;
    font-size: 0.92rem;
}

.audit-action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.audit-action-success {
    background: #e8f7ee;
    color: #0f7a3d;
}

.audit-action-warning {
    background: #fff3df;
    color: #a16207;
}

.audit-action-danger {
    background: #ffe8e8;
    color: #b42318;
}

.audit-action-neutral {
    background: #eef2f7;
    color: #334155;
}

@media (max-width: 767.98px) {
    .dashboard-list-item,
    .dashboard-chart-stack-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-chart-item {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-value {
        text-align: left;
    }
}

.product-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid #dbe2ea;
}

.placeholder-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f6fa;
    color: #6c757d;
    font-size: 0.75rem;
}

.tab-strip {
    overflow-x: auto;
}

.tabs-scroll {
    display: flex;
    gap: 0.5rem;
    min-height: 2.5rem;
}

.app-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #eef3f9;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}

.app-tab.active {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.app-tab-close {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    cursor: pointer;
}

.inventory-product-select {
    min-height: 14rem;
}

.stock-value-column {
    width: 8.5rem;
    min-width: 8.5rem;
    white-space: nowrap;
}

.report-actions-row {
    justify-content: flex-start;
}

.list-filters-compact .form-label,
.list-filters-compact .form-check-label,
.list-filters-compact .form-text,
.list-filters-compact .form-control,
.list-filters-compact .form-select,
.list-filters-compact .btn {
    font-size: 0.94rem;
}

.list-filters-compact .form-text,
.list-filters-compact .form-check-label {
    line-height: 1.35;
}

.list-table-compact {
    font-size: 0.92rem;
}

.list-table-compact thead th {
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.list-table-compact th,
.list-table-compact td {
    padding: 0.72rem 0.8rem;
    vertical-align: middle;
}

.list-table-compact .small,
.list-table-compact small,
.list-table-meta {
    font-size: 0.79rem !important;
    line-height: 1.35;
}

.list-table-money,
.list-table-nowrap {
    white-space: nowrap;
}

.list-table-money {
    font-variant-numeric: tabular-nums;
}

.inventory-recent-table {
    font-size: 0.86rem;
}

.inventory-recent-table thead th {
    font-size: 0.82rem;
}

.list-table-action-col {
    white-space: nowrap;
    width: 1%;
}

.list-table-action-col .btn,
.list-table-action-col .badge {
    white-space: nowrap;
}

.list-table-product {
    font-size: 0.9rem;
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    .sidebar-mobile-toggle {
        display: inline-flex;
    }

    .report-actions-row .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 575.98px) {
    .report-actions-row .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        top: auto;
        align-self: auto;
        height: 100vh;
        z-index: 1040;
        width: min(320px, 82vw);
        min-width: min(320px, 82vw);
        min-height: 100vh;
        box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.35);
    }

    .d-flex.min-vh-100 {
        display: block !important;
    }

    body.sidebar-collapsed .sidebar {
        width: 0;
        min-width: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-shadow: none;
        border-right: 0;
    }

    .sidebar-toggle {
        display: none !important;
    }

    .sidebar-logo {
        max-width: 150px;
    }

    .guest-shell main.container {
        align-items: flex-start !important;
    }

    .sidebar-link,
    .sidebar-group-toggle,
    .sidebar-sublink {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}

@media (min-width: 992px) {
    body.sidebar-collapsed .app-main-shell {
        width: 100%;
    }
}
