:root {
    --app-focus-ring: 0 0 0 0.25rem rgba(13, 110, 253, 0.22);
    --app-focus-border: rgba(13, 110, 253, 0.55);
}

html,
body {
    background-color: #f8f9fa;
    overflow-x: clip;
}

body.app-modal-scroll-lock {
    position: fixed;
    inset: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 12px;
    background: #212529;
    color: #fff;
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--app-focus-ring);
    border-color: var(--app-focus-border) !important;
}

.empty-state {
    padding: 18px;
    border-radius: 16px;
    background: #f8f9f7;
    color: #69736d;
    border: 1px dashed rgba(33, 37, 41, 0.12);
}

.app-inline-feedback {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    margin-bottom: 16px;
}

.app-inline-feedback.show {
    display: flex;
}

.app-inline-feedback[data-tone="success"] {
    background: #eefbf3;
    border-color: rgba(25, 135, 84, 0.16);
    color: #146c43;
}

.app-inline-feedback[data-tone="error"] {
    background: #fff5f5;
    border-color: rgba(220, 53, 69, 0.18);
    color: #b02a37;
}

.app-inline-feedback[data-tone="info"] {
    background: #eef4ff;
    border-color: rgba(13, 110, 253, 0.16);
    color: #0a58ca;
}

.app-toast-region {
    position: fixed;
    top: 84px;
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.app-toast {
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(33, 37, 41, 0.08);
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #212529;
    pointer-events: auto;
}

.app-toast[data-tone="success"] {
    background: #eefbf3;
    color: #146c43;
}

.app-toast[data-tone="error"] {
    background: #fff5f5;
    color: #b02a37;
}

.app-toast[data-tone="info"] {
    background: #eef4ff;
    color: #0a58ca;
}

.app-toast-title {
    font-weight: 800;
    margin-bottom: 2px;
}

.app-toast-message {
    line-height: 1.45;
}

.navbar-brand {
    font-weight: 700;
}

.navbar {
    backdrop-filter: blur(6px);
}

.content-wrap {
    padding-top: 20px;
    padding-bottom: 120px;
}

.desktop-top-actions {
    display: none;
}

.desktop-live-rates {
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    margin-right: 12px;
    flex-wrap: wrap;
}

.desktop-live-rate-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.desktop-live-rate-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
}

.desktop-live-rate-value {
    font-size: 13px;
    font-weight: 700;
}

.desktop-live-rate-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.58);
    white-space: nowrap;
}

.desktop-workspace {
    display: grid;
    gap: 20px;
}

.desktop-workspace-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, #f8fbff 0%, #eef4ff 38%, #f7f8fc 100%);
    border: 1px solid rgba(31, 41, 55, 0.08);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.06);
}

.desktop-workspace-hero-main {
    min-width: 0;
}

.desktop-workspace-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: #0a58ca;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.desktop-workspace-title {
    margin: 12px 0 8px;
    color: #172033;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.02;
    font-weight: 800;
}

.desktop-workspace-description {
    max-width: 760px;
    margin: 0;
    color: #526071;
    font-size: 15px;
    line-height: 1.55;
}

.desktop-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.desktop-workspace-meta {
    display: grid;
    align-content: space-between;
    gap: 12px;
    min-width: 220px;
    max-width: 260px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(31, 41, 55, 0.08);
}

.desktop-workspace-meta-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.desktop-workspace-meta-value {
    color: #111827;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.desktop-workspace-meta-note {
    color: #526071;
    font-size: 13px;
    line-height: 1.45;
}

.desktop-workspace-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.desktop-workspace-metric-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(31, 41, 55, 0.08);
    box-shadow: 0 0.85rem 1.75rem rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.desktop-workspace-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.desktop-workspace-metric-card.is-active {
    border-color: rgba(13, 110, 253, 0.26);
    box-shadow: 0 1rem 2rem rgba(13, 110, 253, 0.12);
}

.desktop-workspace-metric-card.is-warning {
    background: linear-gradient(180deg, #fffaf1 0%, #fff4dc 100%);
    border-color: rgba(255, 193, 7, 0.24);
}

.desktop-workspace-metric-card.is-danger {
    background: linear-gradient(180deg, #fff7f7 0%, #ffe9e9 100%);
    border-color: rgba(220, 53, 69, 0.20);
}

.desktop-workspace-metric-card.is-info {
    background: linear-gradient(180deg, #f5f9ff 0%, #eaf2ff 100%);
    border-color: rgba(13, 110, 253, 0.18);
}

.desktop-workspace-metric-label {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.desktop-workspace-metric-value {
    color: #111827;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
}

.desktop-workspace-metric-note {
    color: #526071;
    font-size: 13px;
    line-height: 1.4;
}

.desktop-workspace-panel {
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(31, 41, 55, 0.08);
    box-shadow: 0 0.95rem 2rem rgba(15, 23, 42, 0.05);
}

.desktop-workspace-panel-body {
    padding: 20px 22px;
}

.desktop-workspace-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.desktop-workspace-panel-kicker {
    margin-bottom: 6px;
    color: #0a58ca;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.desktop-workspace-panel-title {
    margin: 0;
    color: #172033;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
}

.desktop-workspace-panel-note {
    margin-top: 6px;
    color: #667085;
    font-size: 14px;
    line-height: 1.45;
}

.desktop-workspace-results {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.desktop-workspace-table-wrap {
    border-top: 1px solid #eef2f7;
}

.desktop-workspace-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 12px;
    white-space: nowrap;
}

.desktop-workspace-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.desktop-workspace-table tbody tr:hover {
    background: #fbfdff;
}

.desktop-workspace-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 20px;
}

.desktop-workspace-form-panel {
    overflow: hidden;
}

.desktop-workspace-form-sidebar {
    display: grid;
    gap: 16px;
    align-content: start;
}

.desktop-workspace-side-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(31, 41, 55, 0.08);
    box-shadow: 0 0.85rem 1.75rem rgba(15, 23, 42, 0.05);
}

.desktop-workspace-side-title {
    margin: 0 0 6px;
    color: #172033;
    font-size: 18px;
    font-weight: 800;
}

.desktop-workspace-side-note {
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.desktop-workspace-side-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.desktop-workspace-side-item {
    display: grid;
    gap: 4px;
}

.desktop-workspace-side-label {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.desktop-workspace-side-value {
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.desktop-workspace-side-helper {
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .desktop-workspace-form-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .desktop-workspace,
    .desktop-workspace-hero,
    .desktop-workspace-metrics,
    .desktop-workspace-panel,
    .desktop-workspace-panel-body,
    .desktop-workspace-panel-head,
    .desktop-workspace-results,
    .desktop-workspace-form-sidebar {
        display: none;
    }
}

.navbar-search {
    width: 100%;
    max-width: 380px;
    position: relative;
}

.navbar-search input {
    min-width: 240px;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1050;
    display: none;
    max-height: 420px;
    overflow-y: auto;
}

.search-suggestions.show {
    display: block;
}

.search-suggestion-item {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #212529;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.15s ease;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background-color: #f8f9fa;
}

.search-suggestion-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 2px;
}

.search-suggestion-article {
    font-weight: 700;
    color: #0d6efd;
    line-height: 1.2;
}

.search-suggestion-category {
    font-size: 12px;
    color: #6c757d;
    text-align: right;
    line-height: 1.2;
}

.search-suggestion-name {
    font-size: 14px;
    color: #212529;
    margin-bottom: 6px;
    word-break: break-word;
    line-height: 1.3;
}

.search-suggestion-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.search-suggestion-stock {
    font-weight: 600;
}

.search-suggestion-stock.in-stock {
    color: #198754;
}

.search-suggestion-stock.low-stock {
    color: #fd7e14;
}

.search-suggestion-stock.out-stock {
    color: #dc3545;
}

.search-suggestion-price {
    font-weight: 700;
    color: #212529;
    white-space: nowrap;
}

.search-empty {
    padding: 12px;
    font-size: 14px;
    color: #6c757d;
}

.offcanvas {
    --bs-offcanvas-width: min(92vw, 420px);
    width: var(--bs-offcanvas-width);
    max-width: 100vw;
}

.pos-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
    z-index: 1060;
    display: none;
    max-height: 360px;
    overflow-y: auto;
}

.pos-suggestions.show {
    display: block;
}

.pos-suggestion-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    transition: background-color 0.15s ease;
    background: #fff;
}

.pos-suggestion-item:last-child {
    border-bottom: none;
}

.pos-suggestion-item:hover,
.pos-suggestion-item.active {
    background-color: #f8f9fa;
}

.pos-suggestion-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.pos-suggestion-article {
    font-weight: 700;
    color: #0d6efd;
}

.pos-suggestion-category {
    font-size: 12px;
    color: #6c757d;
    text-align: right;
}

.pos-suggestion-name {
    font-size: 14px;
    margin-top: 2px;
    color: #212529;
}

.pos-suggestion-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    font-size: 13px;
    color: #495057;
}

.selected-product-box {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #f8f9fa;
    padding: 12px 14px;
}

@media (max-width: 991.98px) {
    .app-mobile-workspace {
        display: grid;
        gap: 12px;
    }

    .app-mobile-workspace-hero,
    .app-mobile-workspace-section,
    .app-mobile-workspace-item {
        border-radius: 20px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.08);
    }

    .app-mobile-workspace-hero {
        background:
            radial-gradient(circle at top right, rgba(13, 110, 253, 0.12), transparent 46%),
            linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }

    .app-mobile-workspace-hero .card-body,
    .app-mobile-workspace-section .card-body {
        padding: 16px;
    }

    .app-mobile-workspace-topline {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .app-mobile-workspace-eyebrow {
        margin-bottom: 8px;
        font-size: 0.74rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #6b7280;
    }

    .app-mobile-workspace-title {
        margin: 0;
        font-size: 1.18rem;
        line-height: 1.2;
        color: #111827;
    }

    .app-mobile-workspace-note {
        margin-top: 8px;
        font-size: 0.92rem;
        line-height: 1.45;
        color: #6b7280;
    }

    .app-mobile-workspace-chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .app-mobile-workspace-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 32px;
        padding: 6px 10px;
        border-radius: 999px;
        background: #eef3f8;
        color: #334155;
        font-size: 0.82rem;
        font-weight: 600;
    }

    .app-mobile-workspace-chip.is-success {
        background: #e9f7ee;
        color: #1e6b33;
    }

    .app-mobile-workspace-chip.is-danger {
        background: #fbe9ea;
        color: #9f1c2a;
    }

    .app-mobile-workspace-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .app-mobile-workspace-metric {
        display: grid;
        gap: 4px;
        padding: 12px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid rgba(226, 232, 240, 0.92);
    }

    .app-mobile-workspace-metric.is-danger {
        background: #fff6f7;
        border-color: rgba(220, 53, 69, 0.18);
    }

    .app-mobile-workspace-metric-label {
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.25;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6b7280;
    }

    .app-mobile-workspace-metric-value {
        font-size: 1.45rem;
        line-height: 1;
        font-weight: 800;
        color: #111827;
    }

    .app-mobile-workspace-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .app-mobile-workspace-nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 14px;
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #111827;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 700;
        text-align: center;
    }

    .app-mobile-workspace-section {
        background: #fff;
    }

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

    .app-mobile-workspace-section-copy {
        font-size: 0.9rem;
        line-height: 1.45;
        color: #6b7280;
    }

    .app-mobile-workspace-list {
        display: grid;
        gap: 12px;
    }

    .app-mobile-workspace-item {
        padding: 14px;
        background: #fff;
    }

    .app-mobile-workspace-item-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .app-mobile-workspace-item-title {
        margin: 0;
        font-size: 1rem;
        line-height: 1.3;
        font-weight: 700;
        color: #111827;
    }

    .app-mobile-workspace-item-subtitle {
        margin-top: 4px;
        font-size: 0.83rem;
        line-height: 1.35;
        color: #6b7280;
    }

    .app-mobile-workspace-meta {
        display: grid;
        gap: 8px;
    }

    .app-mobile-workspace-meta-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .app-mobile-workspace-meta-label {
        font-size: 0.82rem;
        line-height: 1.35;
        color: #6b7280;
    }

    .app-mobile-workspace-meta-value {
        min-width: 0;
        text-align: right;
        font-size: 0.9rem;
        line-height: 1.4;
        color: #111827;
    }

    .app-mobile-workspace-meta-value.is-stack {
        display: grid;
        gap: 2px;
    }

    .app-mobile-workspace-callout {
        padding: 12px;
        border-radius: 14px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .app-mobile-workspace-callout.is-warning {
        background: #fff8e8;
        border-color: rgba(255, 193, 7, 0.26);
    }

    .app-mobile-workspace-callout.is-danger {
        background: #fff5f5;
        border-color: rgba(220, 53, 69, 0.18);
    }

    .app-mobile-workspace-actions {
        display: grid;
        gap: 8px;
    }

    .app-mobile-workspace-savebar {
        position: sticky;
        bottom: calc(76px + env(safe-area-inset-bottom));
        z-index: 5;
        padding-top: 8px;
    }

    .app-mobile-workspace-savebar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
        border: 1px solid rgba(17, 24, 39, 0.08);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
    }

    .app-mobile-workspace-savebar-inner .btn {
        width: 100%;
    }

    .app-mobile-workspace-savebar-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: #111827;
    }

    .app-mobile-workspace-savebar-note {
        margin-top: 2px;
        font-size: 0.8rem;
        line-height: 1.35;
        color: #6b7280;
    }

    .app-mobile-workspace-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .navbar-search {
        max-width: 100%;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .navbar-search input {
        min-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .app-mobile-workspace-metrics,
    .app-mobile-workspace-nav {
        grid-template-columns: 1fr;
    }

    .app-mobile-workspace-meta-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .app-mobile-workspace-meta-value {
        text-align: left;
    }
}

.desktop-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 14px;
    transition: 0.15s ease;
    white-space: nowrap;
}

.desktop-nav-pill:hover,
.desktop-nav-pill.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
}

.desktop-nav-pill.accent {
    background: rgba(13, 110, 253, 0.18);
    color: #d8e8ff;
}

.desktop-nav-pill.accent.active,
.desktop-nav-pill.accent:hover {
    background: rgba(13, 110, 253, 0.28);
    color: #fff;
}

.desktop-nav-pill.exit-link {
    color: #ffb6b6;
}

.desktop-top-actions {
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.desktop-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    transition: 0.15s ease;
    white-space: nowrap;
}

.desktop-top-link:hover,
.desktop-top-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
}

.desktop-top-link.accent {
    background: rgba(13, 110, 253, 0.18);
    color: #d8e8ff;
}

.desktop-top-link.accent:hover,
.desktop-top-link.accent.active {
    background: rgba(13, 110, 253, 0.28);
    color: #fff;
}

.desktop-top-link.exit-link {
    color: #ffb6b6;
}

.mobile-live-rates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mobile-live-rate-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.9);
}

.mobile-live-rate-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.66);
}

.mobile-live-rate-value {
    font-size: 13px;
    font-weight: 700;
}

.mobile-live-rate-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.58);
}

.app-shell {
    display: block;
}

.desktop-sidebar {
    display: none;
}

.sidebar-card {
    position: sticky;
    top: 84px;
    background: linear-gradient(180deg, #1f252c 0%, #202932 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    box-shadow: 0 1rem 2rem rgba(17, 24, 39, 0.12);
    padding: 18px 14px;
}

.sidebar-head {
    padding: 4px 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}

.sidebar-title {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.sidebar-subtitle {
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.4;
}

.sidebar-section {
    margin-bottom: 14px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 700;
    padding: 0 8px;
    margin-bottom: 8px;
}

.sidebar-link-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-group {
    margin: 0;
}

.sidebar-group[open] .sidebar-group-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-group[open] .sidebar-group-toggle .sidebar-link-note {
    color: rgba(255, 255, 255, 0.68);
}

.sidebar-group-toggle {
    list-style: none;
    cursor: pointer;
}

.sidebar-group-toggle::-webkit-details-marker {
    display: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    transition: 0.15s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link-main {
    min-width: 0;
}

.sidebar-link-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.sidebar-link-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
    line-height: 1.25;
}

.sidebar-link.active .sidebar-link-note,
.sidebar-link:hover .sidebar-link-note {
    color: rgba(255, 255, 255, 0.68);
}

.sidebar-group-caret {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1;
    transition: transform 0.16s ease, color 0.16s ease;
}

.sidebar-group[open] .sidebar-group-caret,
.sidebar-group-toggle:hover .sidebar-group-caret,
.sidebar-group-toggle.active .sidebar-group-caret {
    color: rgba(255, 255, 255, 0.92);
}

.sidebar-group[open] .sidebar-group-caret {
    transform: rotate(180deg);
}

.sidebar-submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    transition: 0.15s ease;
}

.sidebar-sublink:hover,
.sidebar-sublink.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.sidebar-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sidebar-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #dceaff;
    background: rgba(13, 110, 253, 0.16);
    border: 1px solid rgba(13, 110, 253, 0.22);
    transition: 0.15s ease;
}

.sidebar-quick-link:hover {
    color: #fff;
    background: rgba(13, 110, 253, 0.26);
}

.sidebar-quick-link.secondary {
    color: #ffe1e1;
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.2);
}

.sidebar-quick-link.secondary:hover {
    background: rgba(220, 53, 69, 0.22);
    color: #fff;
}

.desktop-nav-dropdown .dropdown-toggle::after {
    margin-left: 6px;
}

.desktop-nav-dropdown .dropdown-menu {
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid rgba(33, 37, 41, 0.08);
    box-shadow: 0 1rem 2rem rgba(17, 24, 39, 0.12);
    padding: 8px;
    min-width: 220px;
}

.desktop-nav-dropdown .dropdown-item {
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
}

.desktop-nav-dropdown .dropdown-item.active,
.desktop-nav-dropdown .dropdown-item:active {
    background: #eef4ff;
    color: #0a58ca;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    vertical-align: middle;
}

.nav-badge.nav-badge-cart {
    background: #0d6efd;
}

.mobile-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.mobile-drawer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.mobile-drawer-toggle-icon {
    font-size: 18px;
    line-height: 1;
}

.mobile-header-context {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 4px;
}

.mobile-header-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.15s ease;
}

.mobile-header-action:hover,
.mobile-header-action.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-header-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.mobile-header-action-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.mobile-nav-drawer {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overscroll-behavior: contain;
}

.mobile-nav-drawer-header {
    align-items: flex-start;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-nav-drawer-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 800;
    margin-bottom: 6px;
}

.mobile-nav-drawer-header .offcanvas-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    color: #111827;
}

.mobile-nav-drawer-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 18px calc(24px + env(safe-area-inset-bottom));
}

body.mobile-drawer-open {
    position: fixed;
    inset: 0;
    width: 100%;
    overflow: hidden;
}

body.mobile-drawer-open .mobile-tabbar {
    display: none;
}

.mobile-drawer-search {
    position: relative;
}

.mobile-drawer-search .form-control {
    min-height: 50px;
    border-radius: 16px;
    padding-left: 14px;
    padding-right: 14px;
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: none;
}

.mobile-drawer-search .search-suggestions {
    top: calc(100% + 8px);
    z-index: 1090;
}

.mobile-drawer-rates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(31, 41, 55, 0.92));
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.12);
}

.mobile-drawer-rate-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 13px;
}

.mobile-drawer-rate-chip span {
    font-weight: 700;
    color: rgba(248, 250, 252, 0.68);
}

.mobile-drawer-rate-chip strong {
    font-weight: 800;
}

.mobile-drawer-rates-note {
    width: 100%;
    font-size: 12px;
    color: rgba(248, 250, 252, 0.68);
}

.mobile-drawer-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    border-bottom: 0;
}

.mobile-drawer-tabs .nav-item {
    flex: 1 1 0;
}

.mobile-drawer-tabs .nav-link {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    background: #edf2f7;
    text-align: center;
    white-space: nowrap;
}

.mobile-drawer-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #111827, #1f2937);
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.14);
}

.mobile-drawer-tab-content {
    flex: 1 1 auto;
    min-height: 0;
}

.mobile-drawer-section {
    margin-top: 18px;
}

.mobile-drawer-section:first-child {
    margin-top: 0;
}

.mobile-drawer-section-title {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 800;
}

.mobile-drawer-link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-drawer-primary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-drawer-primary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.05);
    color: #111827;
    text-decoration: none;
    transition: 0.15s ease;
}

.mobile-drawer-primary-link:hover,
.mobile-drawer-primary-link.active {
    color: #111827;
    border-color: rgba(13, 110, 253, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 1rem 2rem rgba(13, 110, 253, 0.08);
}

.mobile-drawer-primary-copy {
    min-width: 0;
}

.mobile-drawer-primary-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.mobile-drawer-primary-note {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
    color: #6b7280;
}

.mobile-drawer-primary-link:hover .mobile-drawer-primary-note,
.mobile-drawer-primary-link.active .mobile-drawer-primary-note {
    color: #475569;
}

.mobile-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.05);
    color: #111827;
    text-decoration: none;
    transition: 0.15s ease;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
    color: #111827;
    border-color: rgba(13, 110, 253, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 1rem 2rem rgba(13, 110, 253, 0.08);
}

.mobile-drawer-link-copy {
    min-width: 0;
}

.mobile-drawer-link-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.mobile-drawer-link-note {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
}

.mobile-drawer-link.active .mobile-drawer-link-note,
.mobile-drawer-link:hover .mobile-drawer-link-note {
    color: #475569;
}

.mobile-drawer-link-button {
    text-align: left;
}

.mobile-drawer-link-danger {
    background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
    border-color: rgba(220, 53, 69, 0.14);
    color: #b42318;
}

.mobile-drawer-link-danger .mobile-drawer-link-note {
    color: rgba(180, 35, 24, 0.72);
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 8px;
}

.mobile-nav-section {
    margin-bottom: 14px;
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.mobile-nav-section-title {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0 2px;
}

.mobile-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    transition: 0.15s ease;
}

.mobile-nav-btn:hover,
.mobile-nav-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.14);
}

.mobile-nav-btn.logout-btn {
    grid-column: 1 / -1;
    color: #ffb3b3;
}

.mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1070;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(33, 37, 41, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -0.75rem 1.5rem rgba(17, 24, 39, 0.14);
}

body.modal-open .mobile-tabbar {
    display: none;
}

.ttn-confirm-modal .modal-content {
    overflow: hidden;
}

.ttn-confirm-modal .modal-body {
    overscroll-behavior: contain;
}

@media (max-width: 991.98px) {
    .ttn-confirm-modal .modal-dialog {
        display: flex;
        margin: 0.35rem;
        min-height: calc(100dvh - 0.7rem);
        max-height: calc(100dvh - 0.7rem);
        align-items: stretch;
    }

    .ttn-confirm-modal .modal-content {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        max-height: calc(100dvh - 0.7rem);
        border-radius: 18px;
        overscroll-behavior: contain;
    }

    .ttn-confirm-modal .modal-body {
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }
}

.mobile-tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
}

.mobile-tab-link:hover,
.mobile-tab-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-tab-icon {
    font-size: 16px;
    line-height: 1;
}

.mobile-tab-link .nav-badge {
    position: absolute;
    top: 4px;
    right: 12px;
    margin-left: 0;
}

.np-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 240px;
    overflow-y: auto;
}

.np-suggestions .list-group-item {
    cursor: pointer;
    padding: 8px 12px;
}

.np-suggestions .list-group-item:hover,
.np-suggestions .list-group-item:focus {
    background: #f0f4ff;
}

@media (max-width: 991.98px) {
    .navbar > .container {
        gap: 10px;
    }

    .collapse.navbar-collapse {
        padding-top: 10px;
    }

    .navbar-search {
        max-width: 100%;
        margin-top: 10px;
        margin-bottom: 14px;
    }

    .navbar-search input {
        min-width: 100%;
    }

    .content-wrap {
        overflow-x: clip;
        padding-bottom: 170px;
    }
}

@media (min-width: 992px) {
    .navbar > .container {
        align-items: center;
        gap: 14px;
    }

    .navbar-search {
        flex: 0 1 360px;
    }

    .desktop-top-actions {
        display: flex;
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .app-shell {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 18px;
        max-width: 1680px;
        margin: 0 auto;
        padding: 18px 16px 0;
    }

    .desktop-sidebar {
        display: block;
    }

    .content-wrap {
        max-width: none;
        width: 100%;
        padding-top: 0;
        padding-bottom: 100px;
        margin: 0;
    }

    .mobile-tabbar {
        display: none;
    }

    .mobile-header-bar,
    .mobile-nav-drawer {
        display: none !important;
    }
}
