/* Shared ShortCoded palette across native Blade screens and third-party controls. */
:root, .dark-theme, html.check-theme {
    --base-clr: #0A7D80 !important;
    --primary-clr: #0A7D80 !important;
    --primary-rgb: 10, 125, 128;
    --body-bg: #F6F9FA;
    --section-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --title-clr: #0B1F33;
    --body-clr: #34495E;
    --dark-clr: #0B1F33;
    --light-clr: #F6F9FA;
    --border-clr: #D8E2E8;
    --secondary-clr: #EAF7F7;
}
body, .header-wrapper, .user-panel-sidebar, .dashboard-card, .auth-content, .btn-primary { background-image: none !important; }
body { color: #34495E; background: #F6F9FA; font-family: Arial, Tahoma, sans-serif; }
input, select, textarea, .select2-container { color: #0B1F33 !important; }
input::placeholder, textarea::placeholder { color: #5C6875 !important; opacity: 1; }
.user-panel-sidebar, .sidebar, .sidebar-header, .sidebar-menu { background-color: #0B1F33 !important; }
.user-panel-sidebar a, .sidebar a { color: #FFFFFF !important; }
.user-panel-sidebar a:hover, .user-panel-sidebar .active > a { background-color: #0A7D80 !important; }
.header-top-wrapper, .header-wrapper, .auth-content, .dashboard-item, .card, .white-theme { background-color: #FFFFFF !important; }
.btn-primary, .badge-primary { background-color: #0A7D80 !important; border-color: #0A7D80 !important; color: #FFFFFF !important; }
.btn-primary:hover, .btn-primary:focus { background-color: #08676A !important; color: #FFFFFF !important; }
.form-control, .form-select, .select2-selection { background-color: #FFFFFF !important; border-color: #D8E2E8 !important; }
.auth-content img { max-width: 240px; max-height: 90px; object-fit: contain; }
.language > a { color: #0B1F33; font-weight: 600; }
table { color: #34495E !important; }
thead th { background-color: #EAF7F7 !important; color: #0B1F33 !important; }
/* Native document rows carry text-white; their cells use the owned pale tint. */
.product-view-table .table thead tr.head > th,
.product-view-table .table thead tr.head > th .text-white {
    color: #0B1F33 !important;
}
.product-view-table .table thead th { white-space: normal; }
/* Native sale rows must not squeeze a price down to its last few digits. */
.product-view-table .table tbody td:first-child {
    min-inline-size: 14rem;
    overflow-wrap: anywhere;
}
.product-view-table input[id^="quantity_"],
.product-view-table input[id^="unit_price_"] {
    min-inline-size: calc(14ch + 1.5rem);
    direction: ltr;
    unicode-bidi: isolate;
}
.product-view-table .totalUnitCost {
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
}
/* Keep the native rich-text dropdown glyph and caret inside a usable control. */
.note-editor .note-toolbar .note-btn.dropdown-toggle { min-width: 42px; }
@media (max-width: 991px) {
    /* Document totals also live in thead; retain them in the existing table rail. */
    .product-view-table .table thead { display: table-header-group; }
    .product-view-table .table tbody tr { display: table-row; padding: 0; }
    .product-view-table .table tbody tr td { display: table-cell; padding: 12px 14px; }
    .product-view-table .table tbody tr td::before { content: none; }
}
.header-right-icons { gap: 12px; }
.header-right-icons .mx-3 { margin-inline: 0 !important; }
.toggle-mode, .login-toggle-mode, .cog-btn { display: none !important; }
.main-loader .loader::before { background-image: none !important; }
@media (max-width: 767px) {
    .header-right-icons { flex-wrap: wrap; gap: 8px; }
    .auth-content { padding: 24px 16px; }
    .table-responsive { max-width: 100%; overflow-x: auto; }
}

/* Supplied navy lettering stays readable on the solid sidebar. */
.user-panel-sidebar .author img { background-color: #FFFFFF; border-radius: 8px; padding: 7px; height: auto; max-height: 64px; object-fit: contain; }

.nav-toggle, .sidebar-close { border: 0; background: transparent; padding: 0; }
.dataTables_empty img { max-width: 144px; height: auto; }

/* Native POS headings also inherit a text-white utility from their row. */
#pos_main thead th { color: #0B1F33 !important; }

/* Apex uses left-based SVG coordinates; inherited RTL reverses its title anchor. */
.apexcharts-title-text { direction: ltr; }

/* Keep the native dashboard tables inside their cards in either direction. */
.dashboard .table-responsive.dashboard-table-rail,
.business-dashboard .table-responsive,
.branch-dashboard .table-responsive {
    max-width: 100%;
    overflow-x: auto !important;
}

/* Preserve Select2's native visually-hidden source controls despite theme widths. */
.select2-hidden-accessible {
    width: 1px !important;
    height: 1px !important;
    position: absolute !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* The native body is a flex column; keep its footer within that body width. */
.user-panel-body > .user-panel-footer.user-panel {
    position: static;
    width: 100% !important;
}

/* Keep complete monetary values visible in the native narrow dashboard cards. */
.business-dashboard .dashboard-card .card-body .title,
.branch-dashboard .dashboard-card .card-body .title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    direction: ltr;
    unicode-bidi: isolate;
    line-height: 1.2;
    white-space: normal;
    font-variant-numeric: tabular-nums;
}
.business-dashboard .dashboard-card .card-body .title > span,
.branch-dashboard .dashboard-card .card-body .title > span {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.business-dashboard .dashboard-card .card-header .info,
.branch-dashboard .dashboard-card .card-header .info {
    overflow-wrap: anywhere;
}

@media (max-width: 575px) {
    .business-dashboard .card > .card-header .d-flex,
    .branch-dashboard .card > .card-header .d-flex {
        flex-wrap: wrap;
        gap: 8px;
        min-width: 0;
        max-width: 100%;
    }
    .business-dashboard .card > .card-header .ml-10,
    .branch-dashboard .card > .card-header .ml-10 {
        margin-left: 0;
    }
    .business-dashboard .apexcharts-title-text,
    .branch-dashboard .apexcharts-title-text {
        font-size: 13px !important;
    }
}

/* One readable native workspace shell; direction stays driven by the active language. */
:root {
    --commerce-font: Arial, Tahoma, sans-serif;
    --commerce-radius: 12px;
    --commerce-muted: #607286;
}
body { font-family: var(--commerce-font); font-size: 14px; line-height: 1.65; }
html[lang="ar"] { --commerce-font: "ShortCoded Arabic", Tahoma, Arial, sans-serif; }
html[lang="ar"] body { font-size: 15px; line-height: 1.8; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { color: #0B1F33; line-height: 1.45; font-weight: 600; }
.btn, .badge, .dashboard-card, .breadcrumb-area { text-transform: none; }
.btn { border-radius: 8px; min-height: 40px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.btn-sm { min-height: 34px; padding: 6px 12px; }
.btn-outline-primary { color: #0A7D80; border-color: #0A7D80; }
.btn-outline-primary:hover, .btn-outline-primary:focus { color: #fff; background: #0A7D80; }
.btn:disabled { opacity: .65; cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid #89CFD0 !important; outline-offset: 3px;
}
.form-control, .form--control, .form-select, .select2-container .select2-selection--single {
    min-height: 44px; border-radius: 8px; font-size: 14px;
}
.form-group, .input-group { margin-bottom: 16px; }
label { color: #233D52; font-weight: 600; margin-bottom: 6px; }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="url"], html[dir="rtl"] input[type="tel"] {
    direction: ltr; text-align: left;
}
.user-panel-body { min-width: 0; }
.user-panel-wrapper, .header-wrapper, .header-right-icons { min-width: 0; }
.user-panel-sidebar { height: 100vh; height: 100dvh; }
.user-panel-wrapper { padding: 24px; }
.header-top-wrapper { border-bottom: 1px solid #DCE6EC; }
.header-wrapper { gap: 12px; }
.breadcrumb-area { padding-block: 18px; }
.breadcrumb-area .title { font-size: 22px; }
.breadcrumb { margin-bottom: 0; }
.user-panel-sidebar .author { padding: 20px 18px; }
.user-panel-sidebar .nav-menu { padding: 12px 10px; }
.user-panel-sidebar .nav-menu li > a { border-radius: 8px; margin-block: 3px; padding-block: 10px; font-size: 14px; line-height: 1.6; }
.user-panel-sidebar .nav-menu li.open > a, .user-panel-sidebar .nav-menu li.active > a {
    color: #fff; background: #12384C !important;
}
.user-panel-sidebar .nav-menu li > a:hover { background: #16475B !important; }
html[dir="rtl"] .nav-menu .fa-angles-right, html[dir="rtl"] .nav-menu .fa-angle-right { transform: rotate(180deg); }
.card, .dashboard--widget, .dashboard-card {
    border: 1px solid #DCE6EC; border-radius: var(--commerce-radius); box-shadow: 0 3px 12px rgba(11,31,51,.035);
}
.card-header { background: #fff; border-bottom-color: #E4EDF1; padding: 16px; }
.card-body { padding: 18px; }
.dashboard-card .card-header { padding: 14px 12px; }
.dashboard-card .card-body { padding: 16px 12px; }
.dashboard-card .card-header .info { color: #536B7D; font-size: 13px; line-height: 1.6; }
.dashboard-card .card-body .title { font-size: 24px; margin-bottom: 0; font-variant-numeric: tabular-nums; }
.dashboard-count .dashboard-card { height: 100%; }
.dashboard-count .dashboard-card .card-header { min-height: 88px; }
.dashboard-count .dashboard-card .card-header i { color: #0A7D80; }
.business-dashboard .dashboard-card .card-body .title,
.branch-dashboard .dashboard-card .card-body .title { font-size: 22px; }
table.table th, table.table td { padding: 12px 14px; vertical-align: middle; }
table.table th { font-weight: 600; font-size: 13px; white-space: nowrap; }
table.table td { font-size: 14px; }
.table .badge { border-radius: 6px; padding: 6px 9px; font-weight: 500; }
.dataTables_wrapper .export-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_length { margin: 0 !important; }
.dataTables_wrapper .dataTables_filter input { border: 1px solid #CCDCE4; border-radius: 8px; min-height: 40px; margin-inline: 6px 0; }
.dataTables_wrapper .dataTables_info { color: var(--commerce-muted); font-size: 13px; }
.commerce-table-empty, .dataTables_empty { color: var(--commerce-muted); padding: 32px 16px !important; }
.commerce-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.commerce-section-heading h2 { font-size: 22px; margin: 4px 0 6px; }
.commerce-section-heading p { color: var(--commerce-muted); margin: 0; max-width: 680px; font-size: 14px; }
.commerce-eyebrow { color: #0A7D80; font-size: 12px; font-weight: 600; }
.commerce-workspaces { padding: 24px; border: 1px solid #DCE6EC; background: #fff; border-radius: var(--commerce-radius); }
.commerce-workspace-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; margin-top: 20px; }
.commerce-workspace-card { border: 1px solid #DCE6EC; border-radius: 10px; padding: 18px; background: #F9FCFD; }
.commerce-workspace-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.commerce-workspace-identity > div { min-width: 0; flex: 1; }
.commerce-workspace-identity img { object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; flex-shrink: 0; }
.commerce-workspace-identity h3 { font-size: 16px; margin: 0 0 4px; overflow-wrap: anywhere; }
.commerce-workspace-identity p { font-size: 12px; color: var(--commerce-muted); margin: 0; overflow-wrap: anywhere; }
.commerce-entry-form { margin: 0; }
.commerce-workspace-card .commerce-entry-form .btn { width: 100%; }
.commerce-entry-unavailable small { display: block; font-size: 12px; color: #786A49; max-width: 300px; margin-top: 6px; line-height: 1.6; }
.commerce-business-actions { display: flex; align-items: center; gap: 8px; }
.commerce-business-actions .commerce-entry-form .btn { white-space: nowrap; }
.commerce-empty-state { grid-column: 1 / -1; text-align: center; padding: 24px; }
.commerce-empty-state > i { font-size: 28px; color: #0A7D80; margin-bottom: 12px; }
.commerce-empty-state h3 { font-size: 18px; }
.commerce-empty-state p { color: var(--commerce-muted); }
.commerce-session-banner { margin: 14px 24px 0; padding: 14px 18px; color: #0B4F52; background: #EAF7F7; border: 1px solid #BBDDDD; border-radius: 10px; font-size: 14px; }
.commerce-session-banner i { margin-inline-end: 8px; }
.modal-content { border-radius: 12px; border: 1px solid #DCE6EC; box-shadow: 0 16px 48px rgba(11,31,51,.15); }
.modal-header { padding: 18px 20px; gap: 12px; }
.modal-title { font-size: 19px; }
.modal-close { border: 0; background: #F1F6F8; border-radius: 6px; min-width: 34px; min-height: 34px; margin-inline-start: auto; color: #34495E; }
.modal-body { padding: 20px; }
@media (max-width: 767px) {
    .user-panel-wrapper { padding: 16px; }
    .commerce-workspaces { padding: 18px; }
    .commerce-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .commerce-section-heading h2 { font-size: 20px; }
    .commerce-session-banner { margin: 12px 16px 0; padding: 12px; }
    .commerce-workspace-identity { flex-wrap: wrap; }
    .commerce-workspace-identity > div { flex-basis: calc(100% - 60px); }
    .commerce-workspace-identity > .badge { margin-inline-start: 60px; }
    .header-wrapper { padding-inline: 16px; }
    .header-right-icons .user .name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .breadcrumb-area .title { font-size: 20px; }
}

@font-face {
    font-family: "ShortCoded Arabic";
    src: url("../fonts/cairo/Cairo.ttf") format("truetype");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-inline: 12px 28px; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
html[lang="ar"] .apexcharts-text, html[lang="ar"] .apexcharts-tooltip { font-family: "ShortCoded Arabic", Tahoma, Arial, sans-serif !important; }

/* Native dashboard decoration carries no business meaning. */
.dashboard-card::before { content: none !important; background: none !important; }
.dashboard-card:hover { background-color: #fff !important; }
.dashboard-card:hover * { background-color: transparent !important; color: inherit !important; }
.dashboard-card .card-body .title, .dashboard-card:hover .card-body .title { color: #0B1F33 !important; }
.dashboard-card:hover .card-header .info { color: #536B7D !important; }
.dashboard-card .card-header i, .dashboard-card:hover .card-header i { color: #0A7D80 !important; }
.commerce-period-help { margin: 16px 0; padding: 12px 16px; border-inline-start: 3px solid #0A7D80; background: #EAF7F7; color: #34576B; border-radius: 8px; font-size: 13px; line-height: 1.8; }

html[dir='rtl'] .commerce-company-create .commerce-back .fa-arrow-left { transform: scaleX(-1); }

/* Workspace controls: keep headings, tools and row actions distinct. */
:root, .dark-theme, html.check-theme {
    --base-clr: #087f83 !important; --primary-clr: #087f83 !important;
    --primary-rgb: 8,127,131; --title-clr: #0b2033; --dark-clr: #0b2033;
    --body-bg: #f5f8fa; --body-clr: #102a43; --border-clr: #d8e5eb;
}
body { background: #f5f8fa; color: #102a43; }
/* The supplied solid/regular font binaries are FA5; include its matching CSS.
   Retain native FA6-style prefix compatibility for existing template classes. */
.fa-solid { font-family: 'Font Awesome 5 Free'; font-weight: 900; font-style: normal; }
.fa-regular { font-family: 'Font Awesome 5 Free'; font-weight: 400; font-style: normal; }
.fa-angles-right::before { content: '\f101'; }
.fa-angles-left::before { content: '\f100'; }
.fa-pen-to-square::before { content: '\f044'; }
.fa-alert::before { content: '\f071'; }
/* Exact native FA6/legacy names projected onto glyphs in the bundled FA5 fonts. */
.fa-cart-shopping::before { content: '\f07a'; }
.fa-circle-up::before { content: '\f35b'; }
.fa-truck-fast::before { content: '\f48b'; }
.fa-money-check-dollar::before { content: '\f53d'; }
.fa-diagram-project::before { content: '\f542'; }
.fa-money-bill-1::before { content: '\f3d1'; }
.fa-xmark::before, .fa-close::before { content: '\f00d'; }
.fa-ellipsis::before { content: '\f141'; }
.fa-ellipsis-vertical::before { content: '\f142'; }
.fa-right-from-bracket::before { content: '\f2f5'; }
.fa-list-check::before { content: '\f0ae'; }
.fa-hand-holding-dollar::before { content: '\f4c0'; }
.fa-circle-check::before { content: '\f058'; }
.fa-circle-dollar-to-slot::before { content: '\f4b9'; }
.fa-tick::before { content: '\f00c'; }
.fa-trash-o::before { content: '\f2ed'; }
.fa-pencil-square-o::before { content: '\f044'; }
.fa-times-circle-o::before { content: '\f057'; }
.btn.btn-primary, .btn.btn-primary:active, .btn.btn-primary:focus,
.btn.btn-primary:not(:disabled):not(.disabled):active {
    background: #087f83 !important; border-color: #087f83 !important; color: #fff !important;
}
.btn.btn-primary:hover, .btn.btn-primary:focus-visible {
    background: #06696d !important; border-color: #06696d !important; color: #fff !important;
}
.btn, .btn.btn-primary, .btn.btn-danger, .btn.btn-success,
.btn-sm.btn-primary, .btn-sm.btn-danger, .btn-sm.btn-success {
    min-height: 42px; height: auto; padding: 9px 14px !important;
    line-height: 1.5 !important; border-radius: 8px;
}
.dashboard--widget > .nav-pills, .dashboard--widget > .commerce-section-heading {
    padding: 20px; margin: 0 !important; gap: 16px; flex-wrap: wrap;
    align-items: center; border-bottom: 1px solid #d8e5eb;
}
.dashboard--widget > .nav-pills > .d-flex { flex-wrap: wrap; gap: 4px; }
.dashboard--widget .tab-content.pt-5 { padding-top: 20px !important; }
.commerce-data-table { min-width: 0; }
.commerce-data-table > .row { margin: 0 !important; }
.commerce-data-table .export-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
    gap: 12px; width: 100%; padding: 16px 20px; margin: 0 !important;
    background: #fff; border-bottom: 1px solid #d8e5eb;
}
.commerce-data-table .dataTables_length label, .commerce-data-table .dataTables_filter label {
    display: flex; align-items: center; gap: 8px; margin: 0; color: #526879; font-weight: 500;
}
.commerce-data-table .dataTables_length select { min-height: 42px; border: 1px solid #d8e5eb; border-radius: 8px; padding: 6px 10px; }
.commerce-data-table .dataTables_filter { margin-inline-start: auto !important; }
.commerce-data-table .dataTables_filter input { min-height: 42px; width: min(260px, 100%); margin: 0; }
.commerce-data-table .dt-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.commerce-data-table .dt-buttons .dt-button, .dt-button-collection .dt-button {
    min-height: 42px; padding: 9px 12px; margin: 0; border: 1px solid #d8e5eb;
    border-radius: 8px; background: #fff; color: #102a43; font: inherit; line-height: 1.5;
}
.commerce-data-table .dt-buttons .dt-button:hover, .dt-button-collection .dt-button:hover {
    color: #06696d; border-color: #087f83; background: #eaf6f6;
}
.commerce-table-scroll { max-width: 100%; overflow-x: auto; }
.commerce-data-table .dataTables_info, .commerce-data-table .dataTables_paginate { padding: 16px 20px; }
.commerce-action-trigger, table .dropdown-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 8px 12px; border: 1px solid #d8e5eb;
    border-radius: 8px; color: #102a43; background: #fff; white-space: nowrap;
}
.commerce-business-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dropdown-menu .dropdown-item { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 14px; line-height: 1.5; }
.dropdown-menu .dropdown-item i { width: 18px; flex: 0 0 18px; text-align: center; }
.dropdown-menu form.delete-form { display: block !important; width: 100%; }
.dropdown-menu .delete-form .dropdown-item { color: #b42332; }
.user-panel-sidebar, .sidebar { background-color: #0b2033 !important; }
.form-group { margin-bottom: 22px; }
.form-control, .form--control, .form-select { border-color: #d8e5eb !important; padding: 10px 12px; }
textarea.form-control, textarea.form--control { min-height: 110px; }
@media (max-width: 767px) {
    .commerce-data-table .export-row { padding: 14px; }
    .commerce-data-table .dataTables_filter { flex-basis: 100%; margin-inline-start: 0 !important; }
    .commerce-data-table .dataTables_filter label, .commerce-data-table .dataTables_filter input { width: 100%; }
    .commerce-data-table .dataTables_info, .commerce-data-table .dataTables_paginate { padding: 12px 14px; }
}
/* The inherited DataTables DOM places its table in a Bootstrap flex row. */
.commerce-data-table, .commerce-table-container { width: 100%; min-width: 0; max-width: 100%; }
.commerce-data-table .commerce-table-scroll {
    display: block; width: 100%; min-width: 0; max-width: 100%; flex: 0 0 100%;
    overflow-x: auto !important; overflow-y: auto; isolation: isolate;
}
.commerce-table-scroll .commerce-name-cell { min-width: 180px; line-height: 1.65; }
.commerce-table-scroll .commerce-owner-cell { min-width: 220px; line-height: 1.65; }
.commerce-table-scroll .commerce-actions-cell {
    position: sticky; inset-inline-end: 0; z-index: 2; min-width: 145px;
    background: #fff; border-inline-start: 1px solid #d8e5eb;
}
.commerce-table-scroll thead .commerce-actions-cell { background: #eaf7f7; z-index: 3; }
.commerce-data-table .dt-buttons button.dt-button { background-image: none !important; box-shadow: none !important; border: 1px solid #d8e5eb !important; border-radius: 8px !important; }
.commerce-table-scroll table .dropdown .dropdown-toggle {
    padding: 8px 12px !important; border-radius: 8px !important;
    border-color: #d8e5eb !important;
}
.commerce-action-trigger::after {
    display: inline-block !important; content: ''; margin-inline-start: 2px;
    border-top: 5px solid currentColor; border-inline: 4px solid transparent;
}
/* Native list tables share logical alignment and one contained scroll rail. */
.commerce-data-table table.table,
.commerce-native-table > table.table { text-align: start !important; }
.commerce-data-table table.table :is(th, td):not(.dataTables_empty, .text-center, .text-end, .text-right, .dt-center, .dt-right, .dt-head-center, .dt-head-right, .dt-body-center, .dt-body-right, [dir="ltr"]),
.commerce-native-table > table.table :is(th, td):not(.dataTables_empty, .text-center, .text-end, .text-right, .dt-center, .dt-right, .dt-head-center, .dt-head-right, .dt-body-center, .dt-body-right, [dir="ltr"]) {
    text-align: start !important;
}
.commerce-data-table table.table th,
.commerce-native-table > table.table th { white-space: normal; }
.commerce-native-table.table-responsive {
    max-width: 100%; overflow-x: auto !important; padding-bottom: 0 !important;
}
.commerce-native-table > table.table { min-inline-size: 42rem; }
.commerce-native-table > table.table > tbody > tr > td:last-child { min-inline-size: 9rem; }
.commerce-native-table > table.table .dropdown-toggle,
.commerce-data-table .commerce-action-trigger {
    min-height: 42px; min-width: 42px; padding: 8px 12px !important;
    border-radius: 8px !important; border-color: #d8e5eb !important;
}
.commerce-data-table .dataTables_length,
.commerce-data-table .dataTables_filter,
.commerce-data-table .dataTables_info,
.commerce-data-table .dataTables_paginate { float: none !important; text-align: start; }
.commerce-data-table .dataTables_length { margin-inline: 0; }
.commerce-data-table > .row > .dataTables_info {
    flex: 1 1 12rem; width: auto; margin: 0; padding: 12px 16px; align-self: center;
}
.commerce-data-table > .row > .dataTables_paginate {
    flex: 0 1 auto; width: auto; max-width: 100%; margin: 0; padding: 12px 16px;
}
.commerce-data-table .dataTables_paginate .pagination { margin: 0; }
.commerce-data-table .dataTables_length label,
.commerce-data-table .dataTables_filter label { padding-inline: 0; }
.commerce-data-table .dt-buttons.btn-group > .btn {
    margin-inline: 0; border-radius: 8px !important;
}
.commerce-data-table .dataTables_paginate .paginate_button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; min-width: 42px; height: auto;
    line-height: 1.5; padding: 8px 12px !important; margin: 3px !important;
    border-radius: 8px !important;
}
.commerce-empty-result { max-width: 240px; margin-inline: auto; padding: 12px; }
.commerce-empty-result img { width: 96px; max-width: 100%; height: 72px; margin: 0; object-fit: contain; }
.commerce-empty-result p { margin: 12px 0 0; }
.commerce-data-table .dataTables_empty { padding: 20px 16px !important; }
@media (max-width: 991px) {
    .commerce-native-table.table-responsive { max-height: none; }
    .commerce-native-table > table.table thead { display: table-header-group; }
    .commerce-native-table > table.table tbody tr { display: table-row; padding: 0; }
    .commerce-native-table > table.table tbody tr td { display: table-cell; padding: 12px 14px; }
    .commerce-native-table > table.table tbody tr td::before { content: none; }
    .commerce-empty-result { position: sticky; inset-inline-start: 0; margin-inline: 0; max-width: calc(100vw - 6rem); }
}
.commerce-data-table .dt-buttons.btn-group {
    display: flex !important; float: none; padding: 0; margin: 0;
}
.dt-button-collection button.dt-button.buttons-columnVisibility {
    background: #fff !important; color: #102a43; border: 1px solid #d8e5eb !important;
}
.dt-button-collection button.dt-button.buttons-columnVisibility.active {
    background: #eaf6f6 !important; color: #06696d; border-color: #087f83 !important;
}

/* Native Popper owns row-menu placement and flips above low viewport rows. */
.commerce-row-menu { max-height: calc(100dvh - 16px); overflow-y: auto !important; overscroll-behavior: contain; }
.commerce-product-empty { position: sticky; inset-inline-start: 0; width: 220px; max-width: calc(100vw - 100px); box-sizing: border-box; padding: 20px 12px; }
.commerce-product-empty img { width: 112px; max-width: 100%; margin-bottom: 12px; }
.commerce-product-empty p { margin: 0; overflow-wrap: anywhere; }

/* Native joined fields include legacy wrappers around their unit/add-on control. */
input.form-control, input.form--control, select.form-control, select.form--control, select.form-select,
input.form-control.form--control, select.form-control.form--control {
    height: 42px !important; min-height: 42px; padding-block: 9px; font-size: 14px; line-height: 1.5;
}
.input-group { align-items: stretch; }
.input-group > .input-group-prepend, .input-group > .input-group-append { display: flex; margin: 0; flex: 0 0 auto; }
.input-group .input-group-text { height: 42px !important; min-height: 42px; padding-block: 9px; font-size: 14px; line-height: 1.5; }
.input-group > :is(.form-control,.form--control,.form-select,.input-group-text,.btn),
.input-group > :is(.input-group-prepend,.input-group-append) > :is(.form-control,.form--control,.form-select,.input-group-text,.btn) { border-radius: 0 !important; }
.input-group > :first-child,
.input-group > :is(.input-group-prepend,.input-group-append):first-child > :first-child { border-start-start-radius: 8px !important; border-end-start-radius: 8px !important; }
.input-group > :last-child,
.input-group > :is(.input-group-prepend,.input-group-append):last-child > :last-child { border-start-end-radius: 8px !important; border-end-end-radius: 8px !important; }
.input-group > :not(:first-child) { margin-left: 0; margin-right: 0; margin-inline-start: -1px; }
.btn-group:not(.dt-buttons) > .btn { border-radius: 0 !important; }
.btn-group:not(.dt-buttons) > .btn:first-child { border-start-start-radius: 8px !important; border-end-start-radius: 8px !important; }
.btn-group:not(.dt-buttons) > .btn:last-child,
.btn-group:not(.dt-buttons) > .btn:has(+ .dropdown-menu) { border-start-end-radius: 8px !important; border-end-end-radius: 8px !important; }
.btn-group:not(.dt-buttons) > .btn:not(:first-child) { margin-left: 0; margin-right: 0; margin-inline-start: -1px; }
.nav-tabs .nav-link { min-height: 42px; padding: 9px 14px; font-size: 14px; line-height: 1.5; }
.pagination .page-item .page-link { display: inline-flex; align-items: center; justify-content: center; height: 42px; min-width: 42px; padding: 8px; border-radius: 8px !important; }

/* Native account disclosure: touch, keyboard and RTL/LTR share the same control. */
.header-wrapper .header-right-icons .commerce-account > .commerce-account-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 42px; min-height: 42px; padding: 8px;
    border: 1px solid #d8e5eb; border-radius: 8px;
    background: #fff; color: #0b1f33; font: inherit; line-height: 1.4; cursor: pointer;
}
.header-wrapper .header-right-icons .commerce-account-toggle img {
    width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
}
.header-wrapper .header-right-icons .commerce-account-toggle .name {
    max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header-wrapper .header-right-icons .commerce-account-toggle:hover {
    border-color: #0a7d80; color: #0a7d80;
}
.header-wrapper .header-right-icons .commerce-account-toggle:focus-visible {
    outline: 2px solid #0a7d80; outline-offset: 2px;
}
.header-wrapper .header-right-icons .commerce-account > .commerce-account-menu {
    left: auto; right: auto; inset-inline-end: 0;
    min-width: 200px; max-width: calc(100vw - 32px); padding: 8px;
    border: 1px solid #d8e5eb; border-radius: 8px; background: #fff;
    box-shadow: 0 8px 24px rgb(11 31 51 / 14%); z-index: 100;
}
.header-wrapper .header-right-icons .commerce-account[data-commerce-account-ready] > .commerce-account-menu:not([hidden]),
.header-wrapper .header-right-icons .commerce-account:not([data-commerce-account-ready]):focus-within > .commerce-account-menu {
    display: block;
}
.header-wrapper .header-right-icons .commerce-account > .commerce-account-menu[hidden] { display: none !important; }
.header-wrapper .header-right-icons .commerce-account-menu li a {
    min-height: 42px; gap: 10px; padding: 8px; border-radius: 6px;
}
.header-wrapper .header-right-icons .commerce-account-menu li a span { width: auto; padding-inline: 0; }
.header-wrapper .header-right-icons .commerce-account-menu li a:hover,
.header-wrapper .header-right-icons .commerce-account-menu li a:focus-visible {
    background: #eaf7f7; color: #0a7d80;
}
@media (max-width: 575px) {
    .header-wrapper .header-right-icons .commerce-account-toggle .name { display: none; }
}


/* Center only page-size values, reserving equal space for the caret in either direction. */
/* Native custom.css uses important physical padding and a background reset on this control. */
.commerce-data-table .dataTables_length select {
  min-inline-size: 4.5rem; padding-inline: 1.25rem !important; text-align: center; text-align-last: center;
  -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right .375rem center !important; background-size: .75rem .75rem !important;
}
:is(.commerce-data-table .dataTables_length select):dir(rtl) { background-position: left .375rem center !important; }

@media (forced-colors: active) {
  .commerce-data-table .dataTables_length select { -webkit-appearance: auto !important; appearance: auto !important; background-image: none !important; }
}
