/* Carioca Katalog — ana sayfa görünümü */

div.dataTables_wrapper div.dataTables_filter {
    text-align: center !important;
}

.KBmap__marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--carioca-surface);
    color: var(--carioca-text);
}

/* ── Sabit üst başlık ── */
.carioca-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--carioca-surface-elevated);
    border-bottom: 1px solid var(--carioca-border);
    box-shadow: var(--carioca-shadow-sm);
}

header nav.navbar.carioca-navbar {
    background: var(--carioca-gradient) !important;
    box-shadow: none;
    padding: 0 16px;
    min-height: var(--carioca-navbar-height);
}

.carioca-navbar-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--carioca-navbar-height);
}

header nav.navbar .navbar-brand {
    color: white !important;
    margin: 0;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

header nav.navbar .navbar-brand img {
    max-height: 36px;
}

.carioca-navbar-actions {
    display: flex;
    align-items: center;
    flex-direction: row;
    position: static !important;
    margin: 0;
}

.carioca-navbar-actions .nav-link {
    font-weight: 500;
    padding: 0.4rem 0.65rem;
}

.carioca-navbar-actions .btn-outline-light {
    border-radius: var(--carioca-radius);
    padding: 6px 14px;
}

.carioca-favorites-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--carioca-danger) !important;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
}

/* Katalog / sayfa seçici çubuğu */
.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--carioca-surface-elevated);
    border-bottom: 1px solid var(--carioca-border);
    min-height: var(--carioca-toolbar-height);
}

.catalog-toolbar .catalog-select {
    flex: 1;
    min-width: 0;
    border-radius: var(--carioca-radius);
    border: 1px solid var(--carioca-border);
    padding: 7px 12px;
    font-size: 14px;
    height: 38px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-toolbar .catalog-select:focus {
    border-color: var(--carioca-primary);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.12);
    outline: none;
}

.catalog-toolbar .select2-container {
    flex: 1;
    min-width: 0;
}

.catalog-toolbar .select2-container--default .select2-selection--single {
    border-radius: var(--carioca-radius);
    border: 1px solid var(--carioca-border);
    height: 38px;
    padding: 4px 8px;
}

.catalog-toolbar .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    font-size: 14px;
    color: var(--carioca-text);
}

.catalog-toolbar .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--open .select2-dropdown {
    z-index: 1051;
    border-color: var(--carioca-border);
    border-radius: var(--carioca-radius);
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--carioca-primary) !important;
}

/* ── Sol panel ── */
#sidebar {
    position: fixed;
    left: 0;
    top: var(--carioca-header-height, 100px);
    width: var(--carioca-sidebar-width);
    height: calc(100vh - var(--carioca-header-height, 100px));
    background: var(--carioca-surface);
    z-index: 1020;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--carioca-border);
    padding: 14px 14px 20px;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6);
}

#sidebar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--carioca-gradient);
    opacity: 0.85;
    pointer-events: none;
}

#sidebarCloseBtn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    color: var(--carioca-text-muted);
    border: 1px solid var(--carioca-border);
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--carioca-radius);
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
}

#sidebarCloseBtn:hover {
    background: var(--carioca-surface);
    color: var(--carioca-danger);
    border-color: var(--carioca-danger);
}

#sidebar.collapsed {
    transform: translateX(-100%);
}

#sidebarToggleOut {
    position: fixed;
    top: calc(var(--carioca-header-height, 100px) + 8px);
    left: 0;
    z-index: 1031;
    background: var(--carioca-primary);
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 0 var(--carioca-radius) var(--carioca-radius) 0;
    transition: all 0.2s ease;
    box-shadow: var(--carioca-shadow-sm);
    font-size: 16px;
    display: none;
}

#sidebarToggleOut:hover {
    background: var(--carioca-primary-dark);
}

#sidebar:not(.collapsed) ~ #sidebarToggleOut {
    display: none !important;
}

/* Sidebar accordion */
.sidebar-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 30px;
}

.sidebar-section {
    border: 1px solid var(--carioca-border);
    border-radius: var(--carioca-radius-lg);
    overflow: hidden;
    background: var(--carioca-surface-elevated);
    box-shadow: var(--carioca-shadow-sm);
}

.sidebar-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 16px;
    background: linear-gradient(180deg, #ffffff 0%, var(--carioca-surface) 100%);
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--carioca-text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-section-header[aria-expanded="true"] {
    border-bottom-color: var(--carioca-border);
    color: var(--carioca-text);
}

.sidebar-section-header:hover {
    background: #f0f3f8;
    color: var(--carioca-text);
}

.sidebar-section-header i:first-child {
    margin-right: 8px;
    color: var(--carioca-primary);
    font-size: 0.85rem;
}

.sidebar-chevron {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.sidebar-section-header[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-section-body {
    padding: 18px 16px 16px;
}

.sidebar-field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--carioca-text-muted);
    margin-bottom: 8px;
}

.sidebar-section-body .form-control {
    border-radius: var(--carioca-radius);
    border: 1px solid var(--carioca-border);
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 18px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.sidebar-section-body .form-control:focus {
    border-color: var(--carioca-primary);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
    outline: none;
}

.sidebar-section-body .btn-primary {
    background: var(--carioca-primary);
    border-color: var(--carioca-primary);
    border-radius: var(--carioca-radius);
    font-weight: 500;
    margin-bottom: 16px;
}

.sidebar-section-body .btn-primary:hover {
    background: var(--carioca-primary-dark);
    border-color: var(--carioca-primary-dark);
}

/* ── PDF alanı ── */
#pdfWrapper {
    margin-left: 0;
    transition: margin-left 0.3s ease, width 0.3s ease;
    width: 100%;
    height: calc(100vh - var(--carioca-header-height, 100px));
    position: fixed;
    top: var(--carioca-header-height, 100px);
    left: 0;
}

body:has(#sidebar:not(.collapsed)) #pdfWrapper {
    margin-left: var(--carioca-sidebar-width);
    width: calc(100% - var(--carioca-sidebar-width));
}

.sidebar-open #pdfWrapper {
    margin-left: var(--carioca-sidebar-width);
    width: calc(100% - var(--carioca-sidebar-width));
}

#pdfContainer {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background: #e8ecf1;
    /* Tarayıcı scroll anchoring'i kapatın; navigasyon sonrası layout kaymalarını
       bizim açık stabilize scroll mantığımız yönetsin (tutarlı ve çapraz tarayıcı). */
    overflow-anchor: none;
}

#pdfViewer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    background: #e8ecf1;
}

#pdfViewer canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    background: white;
    margin-bottom: 20px;
    touch-action: pan-y pinch-zoom;
}

#pdfViewer > div {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.hotspot-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.hotspot-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: var(--carioca-danger);
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    pointer-events: auto;
}

.hotspot-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ── Tablo ── */
#stockTable {
    border-radius: var(--carioca-radius);
    overflow: hidden;
    width: 100% !important;
}

#stockTable thead th {
    background: var(--carioca-surface);
    color: var(--carioca-text);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 12px;
    border-bottom: 2px solid var(--carioca-border);
    border-top: none;
}

#stockTable tbody tr {
    transition: background-color 0.15s ease;
}

#stockTable tbody tr:hover {
    background-color: var(--carioca-surface);
}

#stockTable tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--carioca-border);
    font-size: 14px;
}

.select-button {
    background: var(--carioca-primary);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: var(--carioca-radius);
    font-weight: 500;
    font-size: 13px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.select-button:hover {
    background: var(--carioca-primary-dark);
}

.btn-block {
    width: 100%;
    display: block;
}

.sidebar-section-body .btn-block {
    margin-bottom: 16px;
}

#stockTable_filter {
    display: none !important;
}

/* DataTables — sidebar içi */
#sidebar .dataTables_wrapper {
    font-size: 13px;
}

#sidebar .dataTables_info {
    color: var(--carioca-text-muted);
    font-size: 12px;
    padding-top: 10px;
}

#sidebar .dataTables_paginate {
    padding-top: 8px;
}

#sidebar .dataTables_paginate .paginate_button,
#sidebar .dataTables_paginate .page-link {
    font-size: 12px;
    padding: 4px 10px !important;
}

/* PDF yüzen araç çubuğu */
.pdf-floating-tools {
    position: fixed;
    top: calc(var(--carioca-header-height, 100px) + 12px);
    right: 16px;
    z-index: 1025;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.pdf-floating-tools .pdf-tool-btn {
    pointer-events: auto;
}

.pdf-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--carioca-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    color: var(--carioca-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--carioca-shadow-sm);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pdf-tool-btn i {
    font-size: 13px;
    width: 14px;
    text-align: center;
}

.pdf-tool-btn:hover:not(:disabled) {
    border-color: var(--carioca-primary);
    color: var(--carioca-primary);
    box-shadow: var(--carioca-shadow-md);
}

.pdf-tool-btn.is-active {
    background: var(--carioca-primary);
    border-color: var(--carioca-primary);
    color: #fff;
}

.pdf-tool-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Stok detay modalı */
.stock-modal-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stock-modal-top {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: start;
}

.stock-modal-image-wrap {
    background: var(--carioca-surface);
    border: 1px solid var(--carioca-border);
    border-radius: var(--carioca-radius-lg);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.stock-modal-image {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: var(--carioca-radius);
}

.stock-modal-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stock-modal-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stock-modal-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--carioca-text-muted);
}

.stock-modal-value {
    font-size: 0.95rem;
    color: var(--carioca-text);
    line-height: 1.4;
}

.stock-modal-code {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--carioca-primary-dark);
}

.stock-modal-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--carioca-primary);
}

.stock-modal-no-price {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--carioca-text-muted);
}

.stock-modal-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--carioca-text-muted);
    margin-bottom: 10px;
}

.stock-modal-catalogs {
    padding-top: 4px;
    border-top: 1px solid var(--carioca-border);
}

.stock-modal-catalog-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.stock-modal-catalog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--carioca-border);
    border-radius: var(--carioca-radius);
    background: var(--carioca-surface);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.stock-modal-catalog-item:hover {
    border-color: var(--carioca-primary);
    background: #f0f4ff;
}

.stock-modal-catalog-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--carioca-text);
}

.stock-modal-catalog-page {
    font-size: 0.75rem;
    color: var(--carioca-text-muted);
    white-space: nowrap;
}

.stock-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stock-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--carioca-radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.stock-modal-btn:hover {
    opacity: 0.92;
    text-decoration: none;
}

.stock-modal-btn--ghost {
    background: var(--carioca-surface-elevated);
    border-color: var(--carioca-border);
    color: var(--carioca-text);
}

.stock-modal-btn--ghost:hover {
    border-color: var(--carioca-primary);
    color: var(--carioca-primary);
}

.stock-modal-btn--primary {
    background: var(--carioca-primary);
    color: #fff;
}

.stock-modal-btn--accent {
    background: var(--carioca-accent);
    color: #fff;
}

.stock-modal-btn--whatsapp {
    background: #25d366;
    color: #fff;
}

@media (max-width: 576px) {
    .stock-modal-top {
        grid-template-columns: 1fr;
    }

    .stock-modal-image-wrap {
        min-height: 120px;
    }

    .pdf-floating-tools {
        right: 10px;
        top: calc(var(--carioca-header-height, 100px) + 8px);
    }

    .pdf-tool-btn span {
        display: none;
    }

    .pdf-tool-btn {
        padding: 10px 12px;
        border-radius: 50%;
        width: 42px;
        height: 42px;
        justify-content: center;
    }
}

/* ── Modallar ── */
.carioca-modal .modal-content {
    border: none;
    border-radius: var(--carioca-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.carioca-modal .modal-header {
    border-bottom: 1px solid var(--carioca-border);
    padding: 18px 22px;
    background: var(--carioca-gradient);
}

.carioca-modal.carioca-modal--accent .modal-header {
    background: var(--carioca-gradient-accent);
}

.carioca-modal .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.carioca-modal .modal-header .close {
    color: white;
    opacity: 0.9;
    font-size: 26px;
    font-weight: 300;
    text-shadow: none;
}

.carioca-modal .modal-body {
    padding: 22px;
}

.carioca-modal .modal-body--scroll {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.carioca-modal .modal-body--scroll-sm {
    max-height: 70vh;
    overflow-y: auto;
}

.carioca-modal .modal-footer {
    border-top: 1px solid var(--carioca-border);
    padding: 14px 22px;
    background: var(--carioca-surface);
}

.carioca-modal .modal-footer--split {
    display: flex;
    justify-content: space-between;
}

.carioca-modal .btn-secondary {
    border-radius: var(--carioca-radius);
    padding: 9px 18px;
    font-weight: 500;
}

.carioca-modal .btn-carioca-accent {
    background: var(--carioca-gradient-accent);
    border: none;
    padding: 9px 18px;
    border-radius: var(--carioca-radius);
    font-weight: 600;
    color: white;
}

.carioca-modal .btn-carioca-accent:hover {
    opacity: 0.92;
    color: white;
}

.carioca-modal .form-group label {
    font-weight: 600;
    color: var(--carioca-text);
    font-size: 14px;
}

.carioca-modal .form-control {
    border-radius: var(--carioca-radius);
    border: 1px solid var(--carioca-border);
    padding: 9px 12px;
}

.carioca-modal .form-control:focus {
    border-color: var(--carioca-primary);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.carioca-modal .form-section-title {
    font-size: 12px;
    color: var(--carioca-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--carioca-border);
    padding-bottom: 8px;
}

.carioca-modal-wide .modal-dialog {
    max-width: 90%;
    margin: 20px auto;
}

/* Text selection (PDF) */
.textLayer {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.2;
    line-height: 1;
    user-select: text;
    -webkit-user-select: text;
}

.textLayer > span {
    color: transparent;
    position: absolute;
    white-space: pre;
    cursor: text;
    transform-origin: 0% 0%;
}

.textLayer .highlight {
    margin: -1px;
    padding: 1px;
    background-color: rgba(65, 105, 225, 0.2);
    border-radius: 4px;
}

.textLayer .highlight.selected {
    background-color: rgba(16, 185, 129, 0.2);
}

/* ── Mobil ── */
@media (max-width: 768px) {
    .catalog-toolbar {
        padding: 8px 12px;
        gap: 8px;
    }

    #sidebar {
        width: 100% !important;
        max-width: 100% !important;
        z-index: 1040;
    }

    #sidebar.collapsed {
        transform: translateX(-100%);
    }

    #sidebar:not(.collapsed) {
        transform: translateX(0);
    }

    #pdfWrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }

    body:has(#sidebar:not(.collapsed)) #pdfWrapper,
    .sidebar-open #pdfWrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }

    #pdfViewer {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 80px;
    }

    .pull-to-refresh {
        position: fixed;
        top: var(--carioca-header-height, 100px);
        left: 50%;
        transform: translateX(-50%);
        background: rgba(65, 105, 225, 0.92);
        color: white;
        padding: 10px 20px;
        border-radius: 20px;
        z-index: 1000;
        display: none !important;
        font-size: 14px;
    }

    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--carioca-surface-elevated);
        border-top: 1px solid var(--carioca-border);
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--carioca-text-muted);
        font-size: 11px;
        padding: 4px 12px;
        transition: color 0.2s;
    }

    .bottom-nav-item.active,
    .bottom-nav-item:hover {
        color: var(--carioca-primary);
    }

    .bottom-nav-item i {
        font-size: 18px;
        margin-bottom: 3px;
    }

    #stockModalDialog {
        max-width: 95% !important;
        margin: 10px auto !important;
    }

    #stockModal .modal-content {
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }

    #stockModalBody {
        max-height: calc(90vh - 140px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #teklifModal .modal-dialog {
        max-width: 95% !important;
        margin: 10px auto !important;
    }

    #teklifModal .modal-body {
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #stockModalBody img {
        max-width: 150px !important;
        max-height: 150px !important;
    }

    #pdfViewer canvas {
        cursor: pointer !important;
    }

    #pdfViewer > div[data-page-number] {
        cursor: pointer !important;
    }

    .textLayer {
        pointer-events: none;
    }

    #pdfViewer canvas {
        pointer-events: auto !important;
    }

    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.25);
        z-index: 1039;
        pointer-events: auto;
        cursor: pointer;
        animation: catalogFadeIn 0.25s ease;
    }
}

@media (min-width: 769px) {
    .stock-modal-image {
        max-width: 140px;
        max-height: 140px;
    }
}

@keyframes catalogFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
