:is(.table-responsive, .merchant-table-scroll, .overflow-x-auto) {
    overflow-x: auto;
    scrollbar-color: #5b6573 #e4e7eb;
    scrollbar-width: auto;
}

/* Start without a scrollbar; table-scroll.js enables it only after measuring
   the table. This also applies to newly rendered Livewire tables. */
:is(.table-responsive, .merchant-table-scroll, .overflow-x-auto:has(table)) {
    overflow-x: hidden !important;
}

:is(.table-responsive, .merchant-table-scroll) {
    min-width: 0;
    max-width: 100%;
}

.table.type-service-table {
    margin: 0 0 8px;
    margin-inline-end: 0;
}

:is(.table-responsive, .merchant-table-scroll, .overflow-x-auto)::-webkit-scrollbar:horizontal {
    height: 12px;
}

:is(.table-responsive, .merchant-table-scroll, .overflow-x-auto)::-webkit-scrollbar-track:horizontal {
    background: #e4e7eb;
    border-radius: 6px;
}

:is(.table-responsive, .merchant-table-scroll, .overflow-x-auto)::-webkit-scrollbar-thumb:horizontal {
    background-color: #5b6573;
    border: 2px solid #e4e7eb;
    border-radius: 6px;
}

:is(.table-responsive, .merchant-table-scroll, .overflow-x-auto)::-webkit-scrollbar-thumb:horizontal:hover {
    background-color: #424b55;
}

/* ── Sidebar logo: cap height and align to the right (RTL: flex-start) ── */
.app-sidebar .main-sidebar-header {
    justify-content: flex-start !important;
}
.app-sidebar .main-sidebar-header .header-logo .desktop-logo,
.app-sidebar .main-sidebar-header .header-logo .desktop-dark {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}
