.app-default-font,
body,
body *:not(i):not(.ki-outline):not(.ki-duotone):not(.fas):not(.far):not(.fal):not(.fab) {
    font-family: math;
}

.header #kt_header_nav .text-white {
    color: #f5f8fa !important;
}

.premium-header {
    background: linear-gradient(90deg, #1a1f3c 0%, #1b2042 45%, #191f3d 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-context-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 240px;
}

.header-context-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(221, 231, 255, 0.75);
    margin-bottom: 3px;
}

.header-business-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.38rem 0.9rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    color: #117a55 !important;
    background: #eafff5 !important;
    border: 1px solid #7bd6b0 !important;
    border-radius: 0.72rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0.01);
}

.header-search-shell {
    width: min(520px, 100%);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.65rem 1rem;
}

.header-topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 0.7rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.header-topbar-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.module-page-header {
    padding: 0.25rem 0 0.15rem;
}

.module-page-header .btn.btn-sm {
    min-height: 36px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.button.erp-action-btn {
    position: relative;
    overflow: hidden;
    height: 3rem;
    padding: 0 1.4rem;
    border-radius: 1.5rem;
    background: #3d3a4e;
    background-size: 400%;
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.erp-action-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    border-radius: inherit;
    background: linear-gradient(82.3deg, rgba(150, 93, 233, 1) 10.8%, rgba(99, 88, 238, 1) 94.3%);
    transition: all 0.475s;
}

.button.erp-action-btn:hover::before,
.button.erp-action-btn:focus-visible::before {
    transform: scaleX(1);
}

.button.erp-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(61, 58, 78, 0.24);
}

.button.erp-action-btn .button-content {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    white-space: nowrap;
}

.button.erp-action-btn .button-content i {
    color: inherit;
}

.button.erp-action-btn.button-sm {
    height: 2.55rem;
    padding: 0 1.15rem;
    border-radius: 1.3rem;
    font-size: 1.2rem;
}

.button.erp-secondary-btn {
    position: relative;
    overflow: hidden;
    height: 3rem;
    padding: 0 1.4rem;
    border-radius: 1.5rem;
    background: #f8fafc;
    color: #7c86a3;
    border: 1px solid #e5eaf3;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button.erp-secondary-btn:hover,
.button.erp-secondary-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.18);
    border-color: #d6deeb;
    color: #5f6b8a;
}

.button.erp-secondary-btn .button-content {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    white-space: nowrap;
}

.button.erp-secondary-btn .button-content i {
    color: inherit;
}

.button.erp-secondary-btn.button-sm {
    height: 2.55rem;
    padding: 0 1.15rem;
    border-radius: 1.3rem;
    font-size: 0.95rem;
}

.button.erp-action-btn .button-shortcut {
    font-size: 0.72rem;
    line-height: 1;
    padding: 0.32rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.erp-table-dropdown {
    min-width: 12rem;
    width: auto;
    z-index: 2000 !important;
    border: 1px solid #e4e6ef;
    border-radius: 0.85rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.erp-table-dropdown .dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.92rem;
}

#purchaseGridTable .form-control {
    min-width: 110px;
}

#purchaseGridTable .js-purchase-total {
    background: #f8f9fb;
    font-weight: 700;
}

#purchaseGridTable tfoot .purchase-grid-total-row td {
    background: #f8fbff;
    border-top: 2px solid #d9e8f7;
    font-weight: 700;
    color: #17212f;
    white-space: nowrap;
}

#purchaseGridTable tfoot .purchase-grid-total-row td:first-child {
    color: #5b6b86;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.76rem;
}

.excel-grid-page .excel-grid-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.excel-grid-page .excel-grid-table tbody td {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    vertical-align: middle;
}

.excel-grid-page .excel-grid-table .form-control,
.excel-grid-page .excel-grid-table .form-select {
    min-height: 36px;
    border-radius: 0.8rem;
}

.excel-grid-page .excel-grid-table .form-control.form-control-transparent {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.excel-grid-page .excel-grid-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.03);
}

#customerMappingGridTable tbody tr.customer-mapping-price-diff-row td {
    background: rgba(255, 193, 7, 0.12);
}

#customerMappingGridTable tbody tr.customer-mapping-price-diff-row:hover td {
    background: rgba(255, 193, 7, 0.18);
}

#customerMappingGridTable th:nth-child(1),
#customerMappingGridTable td:nth-child(1) {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
}

#customerMappingGridTable th:nth-child(2),
#customerMappingGridTable td:nth-child(2) {
    min-width: 140px;
    max-width: 140px;
    width: 140px;
}

#customerMappingGridTable .js-map-product {
    min-width: 140px;
    max-width: 140px;
    width: 100%;
}

#customerMappingGridTable .js-map-product,
#customerMappingGridTable .form-control.form-control-transparent {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.excel-grid-page .card.card-flush {
    border: 1px solid #eef2f7;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.saas-table-shell,
.saas-table-shell .card-body,
.saas-table-shell .table,
.saas-table-shell td,
.saas-table-shell th {
    overflow: visible;
}

.saas-table-shell .table-responsive {
    overflow: visible;
    position: static;
}

.saas-table-shell {
    border: 1px solid #edf2f7;
    border-radius: 1.35rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.saas-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fcfdff 0%, #f9fbff 100%);
}

.saas-table-toolbar .card-title {
    min-width: 0;
    flex: 0 1 auto;
}

.saas-table-toolbar .card-toolbar {
    flex: 1 1 auto;
    min-width: 0;
}

.saas-table-toolbar .card-title .fs-6 {
    font-size: 1rem !important;
    letter-spacing: -0.01em;
}

.saas-table-toolbar .card-title .fs-8 {
    max-width: 360px;
    line-height: 1.45;
}

.saas-toolbar-controls {
    min-width: 0;
    flex-wrap: nowrap !important;
    justify-content: flex-end;
}

.saas-toolbar-search {
    flex: 1 1 250px;
    min-width: 220px;
    max-width: 320px;
}

.saas-toolbar-control {
    min-height: 44px;
    height: 44px;
    border-radius: 0.95rem;
    border: 1px solid #e6ecf5;
    background: #fbfcfe;
    color: #344054;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.saas-toolbar-control:hover {
    border-color: #d4deeb;
    background: #ffffff;
}

.saas-toolbar-control:focus,
.saas-toolbar-control:focus-visible {
    border-color: #3699ff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(54, 153, 255, 0.12);
}

.saas-toolbar-search .ki-magnifier {
    color: #94a3b8 !important;
}

.saas-toolbar-search .form-control {
    padding-left: 2.9rem !important;
}

.saas-toolbar-select {
    width: 160px;
    min-width: 150px;
    padding-right: 2.5rem;
}

.saas-toolbar-select-wrap {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
}

.saas-toolbar-select-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8b9bb4;
    pointer-events: none;
    z-index: 2;
}

.saas-toolbar-sort-select {
    width: 46px;
    min-width: 46px;
    padding-left: 0;
    padding-right: 0;
    color: transparent !important;
    font-size: 0 !important;
    text-indent: -9999px;
    cursor: pointer;
}

.saas-toolbar-sort-select option:first-child {
    display: none;
}

.saas-toolbar-sort-select option {
    color: #344054 !important;
    font-size: 0.95rem !important;
    text-indent: 0;
}

.saas-toolbar-filter-btn {
    flex: 0 0 46px;
    min-width: 46px;
    width: 46px;
    height: 44px;
    padding: 0;
    border-radius: 0.95rem;
    background: #eef6ff;
    color: #1590ff;
    border-color: #d7e8fb;
}

.saas-toolbar-filter-btn .button-content {
    gap: 0;
}

.saas-toolbar-filter-label {
    display: none;
}

.saas-toolbar-filter-btn:hover,
.saas-toolbar-filter-btn:focus-visible {
    color: #0d7ee2;
    border-color: #bfdcf8;
    box-shadow: 0 12px 28px rgba(21, 144, 255, 0.14);
}

.saas-table-shell .card-body {
    padding-top: 0 !important;
}

.saas-table-shell .table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
}

.saas-table-shell .table tbody tr {
    transition: background-color 0.18s ease;
}

.saas-table-shell .table tbody tr:hover {
    background: rgba(54, 153, 255, 0.04);
}

/* Table-entry inputs only: keep global form controls unchanged */
.table td .form-control,
.table td .form-select,
.table td input.form-control,
.table td select.form-select {
    padding: 0 !important;
}

/* Hide number input arrows only inside table cells */
.table td input[type="number"]::-webkit-outer-spin-button,
.table td input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.table td input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

@media (max-width: 991.98px) {
    .header-tablet-and-mobile-fixed.toolbar-tablet-and-mobile-fixed .wrapper {
        padding-top: 5px !important;
    }

    .header-business-date {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .saas-table-toolbar {
        align-items: stretch;
    }

    .saas-table-toolbar,
    .saas-table-toolbar .card-toolbar,
    .saas-toolbar-controls {
        width: 100%;
    }

    .saas-toolbar-search {
        max-width: none;
    }

    .saas-toolbar-controls {
        align-items: center;
        gap: 0.75rem !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.1rem;
    }

    .saas-toolbar-search {
        flex: 1 1 42%;
        min-width: 170px;
    }

    .saas-toolbar-select {
        flex: 0 0 132px;
        min-width: 132px;
        width: 132px;
    }

    .saas-toolbar-select-wrap {
        flex: 0 0 46px;
        width: 46px;
        min-width: 46px;
    }

    .saas-table-shell .table-responsive {
        overflow-x: auto;
        overflow-y: hidden;
    }
}

@media (max-width: 767.98px) {
    #customerProductMappingPage .table-responsive {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    #customerMappingGridTable {
        min-width: 760px;
    }

    #customerMappingGridTable th:nth-child(1),
    #customerMappingGridTable td:nth-child(1) {
        width: 34px;
        min-width: 34px;
        max-width: 34px;
    }

    #customerMappingGridTable th,
    #customerMappingGridTable td {
        white-space: nowrap;
    }

    #customerMappingGridTable th:nth-child(2),
    #customerMappingGridTable td:nth-child(2) {
        min-width: 120px;
        max-width: 120px;
        width: 120px;
    }

    #customerMappingGridTable .js-map-product {
        min-width: 120px;
        max-width: 120px;
    }
}

.header-user-chip {
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.35rem 0.65rem 0.35rem 0.4rem;
}

#kt_toolbar {
    margin-top: -8px;
}

.card .card-header {
    min-height: 64px;
}

#kt_customer_drawer .card-body {
    max-height: calc(100vh - 150px);
}

.aside-dark .menu .menu-link.active {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
}

.premium-aside {
    background: linear-gradient(180deg, #1d1d3b 0%, #1c1b39 52%, #252248 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

#stockOverviewPage .stock-kpi-card,
#stockOverviewPage .stock-health-card,
#stockOverviewPage .stock-toolbar-card,
#stockOverviewPage .stock-table-card {
    border: 1px solid #edf2f7;
    border-radius: 1.35rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

#stockOverviewPage .stock-kpi-card .card-body {
    padding: 1.25rem 1.2rem;
}

#stockOverviewPage .stock-kpi-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

#stockOverviewPage .stock-kpi-label {
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

#stockOverviewPage .stock-kpi-value {
    color: #111827;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

#stockOverviewPage .stock-health-legend {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

#stockOverviewPage .stock-health-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 0.45rem;
}

#stockOverviewPage .stock-top-trends {
    min-width: min(100%, 520px);
}

#stockOverviewPage .stock-mini-chart-card {
    height: 100%;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid #e6edf7;
    background: #fbfdff;
    color: #3699ff;
}

#stockOverviewPage .stock-filter-search {
    width: min(320px, 100%);
}

#stockOverviewPage .stock-filter-search .form-control,
#stockOverviewPage .stock-table-card .form-select {
    min-height: 44px;
    border-radius: 0.95rem;
    border: 1px solid #e5ecf6;
    background: #fbfcfe;
}

#stockOverviewPage .stock-table-shell {
    border: 1px solid #edf2f7;
    border-radius: 1.15rem;
    overflow: auto;
    max-height: 640px;
}

#stockOverviewPage #stockOverviewTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fbff;
    box-shadow: inset 0 -1px 0 #edf2f7;
}

#stockOverviewPage #stockOverviewTable tbody tr:hover {
    background: rgba(54, 153, 255, 0.03);
}

#stockOverviewPage .stock-empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    border: 1px dashed #d9e4f2;
    border-radius: 1.2rem;
    background: #fbfdff;
}

#stockOverviewPage .stock-empty-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.2rem;
    background: #eef6ff;
    color: #3699ff;
}

@media (max-width: 991.98px) {
    #stockOverviewPage .stock-top-trends {
        min-width: 100%;
    }
}

#routeStoreMappingPage .route-mapping-control-card,
#routeStoreMappingPage .route-mapping-card {
    border: 1px solid #edf2f7;
    border-radius: 1.35rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

#routeStoreMappingPage .route-mapping-control-card .card-body {
    background: linear-gradient(180deg, #fdfefe 0%, #f8fbff 100%);
}

#routeStoreMappingPage .route-mapping-route-select,
#routeStoreMappingPage .route-mapping-search-wrap .form-control {
    min-height: 46px;
    border-radius: 1rem;
    border: 1px solid #e4ecf6;
    background: #fbfcfe;
}

#routeStoreMappingPage .route-mapping-hints {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

#routeStoreMappingPage .route-mapping-card .card-header {
    min-height: auto;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
}

#routeStoreMappingPage .route-mapping-mini-btn {
    min-width: 116px;
}

#routeStoreMappingPage .route-mapping-remove-btn {
    color: #dc6803;
    background: #fff7ed;
    border-color: #fed7aa;
}

#routeStoreMappingPage .route-mapping-remove-btn:hover,
#routeStoreMappingPage .route-mapping-remove-btn:focus-visible {
    color: #b45309;
    border-color: #fdba74;
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.12);
}

#routeStoreMappingPage .route-store-panel {
    min-height: 560px;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 0.1rem;
}

#routeStoreMappingPage .route-store-list {
    gap: 0.85rem;
}

#routeStoreMappingPage .route-store-item {
    margin-bottom: 0.85rem;
    border: 1px solid #e7edf6;
    border-radius: 1rem;
    padding: 1rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#routeStoreMappingPage .route-store-item:hover {
    transform: translateY(-1px);
    border-color: #d9e7f8;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.08);
}

#routeStoreMappingPage .route-store-sequence {
    min-width: 30px;
    justify-content: center;
}

#routeStoreMappingPage .route-store-drag-handle {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: #f4f8fd;
}

#routeStoreMappingPage .route-preview-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d7e2ef;
    border-radius: 1rem;
    background: #fbfdff;
}

#routeStoreMappingPage .route-preview-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

#routeStoreMappingPage .route-preview-node {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #d9e8f7;
    white-space: nowrap;
}

#routeStoreMappingPage .route-preview-connector {
    flex: 0 0 28px;
    height: 2px;
    background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 100%);
    border-radius: 999px;
}

#routeStoreMappingPage .route-preview-card {
    border: 1px solid #e6eef8 !important;
    border-radius: 1rem;
    box-shadow: none;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

#routeStoreMappingPage .route-planner-card {
    border-radius: 1.6rem;
}

#routeStoreMappingPage .route-planner-empty {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d7e2ef;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #fcfdff 0%, #f6faff 100%);
}

#routeStoreMappingPage .route-planner-hero {
    padding: 1.1rem;
    border: 1px solid #e5eef8;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, #f9fbff 0%, #eef6ff 45%, #fefeff 100%);
}

#routeStoreMappingPage .route-planner-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

#routeStoreMappingPage .route-planner-summary-block {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(216, 228, 243, 0.95);
}

#routeStoreMappingPage .route-planner-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7a90;
}

#routeStoreMappingPage .route-planner-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #182230;
}

#routeStoreMappingPage .route-planner-panel {
    height: 100%;
    padding: 1.2rem;
    border: 1px solid #e7eef7;
    border-radius: 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

#routeStoreMappingPage .route-planner-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

#routeStoreMappingPage .route-planner-timeline {
    min-height: 520px;
}

#routeStoreMappingPage .route-timeline-stop {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    cursor: grab;
}

#routeStoreMappingPage .route-timeline-stop + .route-timeline-stop {
    margin-top: 1rem;
}

#routeStoreMappingPage .route-timeline-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#routeStoreMappingPage .route-timeline-number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #1590ff 0%, #0d7ee2 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(21, 144, 255, 0.24);
}

#routeStoreMappingPage .route-timeline-line {
    flex: 1 1 auto;
    width: 2px;
    min-height: 88px;
    margin-top: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(21, 144, 255, 0.35) 0%, rgba(148, 163, 184, 0.12) 100%);
}

#routeStoreMappingPage .route-timeline-card {
    padding: 1.15rem 1.2rem;
    border: 1px solid #e5edf7;
    border-radius: 1.2rem;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

#routeStoreMappingPage .route-stop-meta {
    display: grid;
    gap: 0.6rem;
}

#routeStoreMappingPage .route-stop-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #5e718a;
    font-size: 0.9rem;
}

#routeStoreMappingPage .route-stop-meta-item i {
    margin-top: 0.1rem;
    color: #1590ff;
}

#routeStoreMappingPage .route-stop-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

#routeStoreMappingPage .route-stop-stat {
    padding: 0.75rem 0.9rem;
    border-radius: 0.95rem;
    background: #f8fbff;
    border: 1px solid #e3ecf7;
}

#routeStoreMappingPage .route-stop-stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a8ba2;
}

#routeStoreMappingPage .route-stop-stat-value {
    display: block;
    margin-top: 0.2rem;
    font-weight: 700;
    color: #17212f;
}

#routeStoreMappingPage .route-stop-action {
    min-width: 142px;
}

#routeStoreMappingPage .route-map-stage {
    position: relative;
    min-height: 420px;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #dbe7f4;
    background: #eef4fb;
}

#routeStoreMappingPage .route-map-iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    background: #eef4fb;
}

#routeStoreMappingPage .route-map-overlay {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    pointer-events: none;
}

#routeStoreMappingPage .route-map-marker-pill {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(217, 229, 244, 0.98);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

#routeStoreMappingPage .route-preview-distance {
    font-size: 0.74rem;
    color: #6f8197;
}

@media (max-width: 1399.98px) {
    #routeStoreMappingPage .route-store-panel {
        min-height: 500px;
        max-height: 500px;
    }
}

@media (max-width: 1199.98px) {
    #routeStoreMappingPage .route-mapping-hints {
        justify-content: flex-start;
    }

    #routeStoreMappingPage .route-store-panel {
        min-height: auto;
        max-height: none;
    }

    #routeStoreMappingPage .route-planner-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    #routeStoreMappingPage .route-planner-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    #routeStoreMappingPage .route-planner-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #routeStoreMappingPage .route-map-stage,
    #routeStoreMappingPage .route-map-iframe {
        min-height: 340px;
    }
}

@media (max-width: 575.98px) {
    #routeStoreMappingPage .route-planner-summary {
        grid-template-columns: 1fr;
    }

    #routeStoreMappingPage .route-stop-stat-row {
        grid-template-columns: 1fr;
    }

    #routeStoreMappingPage .route-timeline-stop {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 0.75rem;
    }
}

.premium-aside-control {
    background: linear-gradient(180deg, #202040 0%, #1c1c3a 52%, #2a2651 100%);
}

.premium-aside .aside-logo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 0.6rem 0.2rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

.premium-aside .aside-toggle {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.premium-aside .menu .menu-section {
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #ced3ec !important;
}

.side-section-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 10px;
    padding: 0 12px 0 10px;
    background: linear-gradient(90deg, rgba(164, 176, 209, 0.16) 0%, rgba(164, 176, 209, 0.05) 100%);
    border: 1px solid rgba(164, 176, 209, 0.18);
    color: #d3dbf2 !important;
}

.side-section-pill::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 3px;
    background: #9fb1dc;
    margin-right: 8px;
}

.side-pro-link {
    border-radius: 0.95rem;
    padding-top: 0.58rem;
    padding-bottom: 0.58rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 2px;
}

.side-pro-link .menu-title {
    letter-spacing: 0.01em;
    color: #e7eaf7;
    font-weight: 600;
    font-size: 1.04rem;
}

.side-pro-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.side-pro-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: none;
    border-color: rgba(76, 226, 183, 0.24);
}

.side-pro-link:hover .side-pro-icon {
    background: rgba(255, 255, 255, 0.2);
}

.premium-aside .menu .menu-link.active {
    background: linear-gradient(90deg, rgba(76, 226, 183, 0.2) 0%, rgba(76, 226, 183, 0.09) 100%);
    box-shadow: inset 2px 0 0 #4ce2b7;
    border-color: rgba(76, 226, 183, 0.3);
}

.premium-aside-control .menu .menu-link.active {
    background: linear-gradient(90deg, rgba(76, 226, 183, 0.2) 0%, rgba(76, 226, 183, 0.09) 100%);
    box-shadow: inset 2px 0 0 #4ce2b7;
    border-color: rgba(76, 226, 183, 0.3);
}

.premium-aside .menu .menu-link.active .side-pro-icon {
    background: rgba(255, 255, 255, 0.18);
}

.premium-aside .menu .menu-link.active .menu-title {
    color: #f5f8ff;
}

.premium-aside .menu .menu-link .menu-icon i {
    color: #d2d7e9;
}

.premium-aside .menu .menu-link.active .menu-icon i,
.premium-aside .menu .menu-link:hover .menu-icon i {
    color: #ffffff;
}

body.aside-minimize .premium-aside .aside-footer,
body.aside-minimize .premium-aside .side-section-pill {
    display: none !important;
}

.js-premium-table tbody tr td {
    white-space: nowrap;
}

.table-responsive {
    overflow-x: auto;
}

.w-fit-content {
    width: fit-content;
}

.card .card-body .fs-2hx {
    letter-spacing: -0.04em;
}

.admin-header-search::placeholder {
    color: rgba(241, 246, 255, 0.75);
}

.admin-header-search:focus {
    color: #ffffff;
}

.toolbar .btn i,
.card-toolbar .btn i {
    margin-right: 0.25rem;
}

.notice {
    align-items: flex-start;
}

.table td,
.table th {
    vertical-align: middle;
}

.toast .toast-icon {
    min-width: 56px;
}

#toast-container {
    z-index: 20000;
}

#toast-container.toast-top-right {
    top: 88px;
    right: 18px;
}

#toast-container > .toast {
    width: 420px;
    max-width: calc(100vw - 24px);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(24, 32, 56, 0.18);
    padding: 16px 18px 16px 56px;
    opacity: 1;
    background-image: none !important;
    border-left: 5px solid transparent;
    color: #23314f;
}

#toast-container > .toast:hover {
    box-shadow: 0 20px 44px rgba(24, 32, 56, 0.22);
}

#toast-container > .toast:before {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "keenicons-outline";
    font-size: 1.45rem;
    line-height: 1;
}

#toast-container > .toast-success {
    background-color: #f3fbf7;
    border-left-color: #47be7d;
    color: #14532d;
}

#toast-container > .toast-success:before {
    content: "\ea1c";
    color: #47be7d;
}

#toast-container > .toast-error {
    background-color: #fff5f8;
    border-left-color: #f1416c;
    color: #881337;
}

#toast-container > .toast-error:before {
    content: "\ea02";
    color: #f1416c;
}

#toast-container > .toast-warning {
    background-color: #fff8ec;
    border-left-color: #f6b100;
    color: #7c4a03;
}

#toast-container > .toast-warning:before {
    content: "\ea0c";
    color: #f6b100;
}

#toast-container > .toast-info {
    background-color: #eef7ff;
    border-left-color: #009ef7;
    color: #0f3f6e;
}

#toast-container > .toast-info:before {
    content: "\ea08";
    color: #009ef7;
}

#toast-container > .toast .toast-title {
    font-weight: 700;
    margin-bottom: 4px;
}

#toast-container > .toast .toast-message {
    font-size: 0.98rem;
    line-height: 1.5;
}

#toast-container > .toast .toast-close-button {
    right: 10px;
    top: 8px;
    color: inherit;
    opacity: 0.7;
}

#toast-container > .toast .toast-progress {
    height: 4px;
    opacity: 0.3;
}

.card {
    box-shadow: 0 0 20px rgba(76, 87, 125, 0.05);
}

.btn-light-danger,
.btn-light-primary {
    font-weight: 600;
}

.menu .menu-link .menu-title {
    font-weight: 500;
}

@media (max-width: 991.98px) {
    #kt_toolbar .container-fluid {
        gap: 1rem;
    }

    .admin-header-search {
        display: none;
    }

    .header-context-card {
        min-width: auto;
    }

    .header-user-chip {
        padding: 0.25rem;
        border: none;
        background: transparent;
    }

    #toast-container.toast-top-right {
        top: 74px;
        right: 12px;
        left: 12px;
    }

    #toast-container > .toast {
        width: auto;
        padding-right: 44px;
    }
}

@media (min-width: 992px) {
    .no-toolbar-page.header-fixed.toolbar-fixed .wrapper {
        padding-top: 65px;
    }
}

#productsTable tbody tr {
    transition: background-color 0.2s ease;
}

#productsTable tbody tr:hover {
    background: rgba(0, 158, 247, 0.06);
}

#activeFilterChips .badge {
    font-weight: 600;
}

#productsTable .dropdown-menu .menu-link {
    cursor: pointer;
}

#productBulkBar {
    border: 1px dashed rgba(0, 158, 247, 0.35);
}

#productsTableWrapper .btn.btn-sm,
#productFilterForm .btn.btn-sm {
    min-height: 34px;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
}

.products-page-compact .card {
    box-shadow: 0 0 14px rgba(76, 87, 125, 0.04);
}

.retail-dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.retail-dashboard-loading {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    color: #5e6278;
    font-weight: 600;
}

.retail-hero-card,
.retail-section-card,
.retail-kpi-card {
    background: #ffffff;
    border: 1px solid rgba(120, 130, 150, 0.12);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(32, 47, 86, 0.06);
}

.retail-hero-card {
    padding: 28px 30px;
    background:
        radial-gradient(circle at top right, rgba(0, 158, 247, 0.1), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.retail-hero-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #009ef7;
    font-weight: 700;
}

.retail-hero-title {
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #181c32;
    font-weight: 800;
}

.retail-hero-subtitle {
    color: #5e6278;
    font-size: 1rem;
    font-weight: 500;
}

.retail-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    min-width: min(100%, 450px);
}

.retail-hero-meta-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(120, 130, 150, 0.12);
    border-radius: 18px;
    padding: 16px 18px;
}

.retail-hero-meta-label,
.retail-kpi-label,
.retail-progress-label,
.retail-mini-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7e8299;
    font-weight: 700;
}

.retail-hero-meta-value,
.retail-kpi-value,
.retail-progress-value,
.retail-mini-stat-value {
    display: block;
    margin-top: 8px;
    color: #181c32;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.retail-hero-meta-value {
    font-size: 1.25rem;
}

.retail-kpi-card {
    padding: 20px;
    min-height: 186px;
    display: flex;
    flex-direction: column;
}

.retail-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.retail-kpi-value {
    font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.retail-kpi-trend {
    margin-top: auto;
    padding-top: 14px;
    color: #5e6278;
    font-size: 0.84rem;
    font-weight: 600;
}

.retail-overview-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1.25rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(120, 130, 150, 0.14);
    background: #f8fafd;
}

.retail-overview-title {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #64748b;
}

.retail-overview-point {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

.retail-overview-point strong {
    color: #0f172a;
    margin-left: 0.15rem;
}

.retail-alert-strip {
    border-radius: 0.95rem;
    border: 1px solid #f2e6bf;
    background: #fff8e6;
    padding: 0.52rem 0.9rem;
    font-size: 0.84rem;
    color: #7a5d11;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
}

.retail-kpi-unified-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

/* Keep Bootstrap rows as rows; use custom grid only on non-row wrappers (like dashboard). */
.row.retail-kpi-unified-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.row.retail-kpi-unified-grid > [class*="col-"] {
    display: flex;
}

.retail-kpi-unified-grid:not(.row) {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.retail-kpi-card.retail-kpi-compact.retail-kpi-flat {
    min-height: 80px;
    height: 80px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    border-radius: 12px;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e9edf3;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.retail-kpi-card.retail-kpi-compact.retail-kpi-flat:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(32, 47, 86, 0.09);
    border-color: rgba(120, 130, 150, 0.24);
}

.retail-kpi-card.retail-kpi-compact.retail-kpi-flat .retail-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    margin-bottom: 0;
    flex: 0 0 34px;
}

.retail-kpi-card.retail-kpi-compact .retail-kpi-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.retail-kpi-card.retail-kpi-compact .retail-kpi-value {
    margin-top: 0;
    font-size: 1.45rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #1f2740;
    font-weight: 800;
}

.retail-kpi-card.retail-kpi-compact .retail-kpi-label {
    margin-top: 0;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.01em;
    color: #5f6f89;
    font-weight: 700;
}

.retail-kpi-card.retail-kpi-compact .retail-kpi-trend {
    display: none;
}

.retail-kpi-card.retail-kpi-compact.retail-kpi-flat::after {
    content: "";
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    right: -30px;
    top: -34px;
    opacity: 0.32;
}

.retail-kpi-tone-blue {
    background: linear-gradient(100deg, #f5f9ff 0%, #eaf3ff 100%);
    border-color: #c9dcfb;
}

.retail-kpi-tone-blue::after {
    background: #cfe1ff;
}

.retail-kpi-tone-green {
    background: linear-gradient(100deg, #f3fcf7 0%, #e6f7ee 100%);
    border-color: #bde7d0;
}

.retail-kpi-tone-green::after {
    background: #c2ebd5;
}

.retail-kpi-tone-amber {
    background: linear-gradient(100deg, #fffbf3 0%, #fdf3e2 100%);
    border-color: #ecd6ae;
}

.retail-kpi-tone-amber::after {
    background: #f2dfbe;
}

.retail-kpi-tone-violet {
    background: linear-gradient(100deg, #f7f6ff 0%, #edeaff 100%);
    border-color: #d2cbf7;
}

.retail-kpi-tone-violet::after {
    background: #ddd6ff;
}

.retail-kpi-icon-ops {
    background: #edf4ff;
    color: #1f75eb;
}

.retail-kpi-icon-fin {
    background: #eaf8ef;
    color: #17884e;
}

.retail-kpi-icon-stock {
    background: #fff1df;
    color: #c06a09;
}

/* Unified KPI style for module listing pages (Products/Vendors/Stores/Routes/Drivers/Vehicles) */
.retail-kpi-unified-grid > [class*="col-"] {
    display: flex;
}

.retail-kpi-unified-grid .card.card-flush.h-100 {
    width: 100%;
    min-height: 84px;
    border-radius: 12px;
    border: 1px solid #e9edf3;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.retail-kpi-unified-grid .card.card-flush.h-100:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(32, 47, 86, 0.09);
    border-color: rgba(120, 130, 150, 0.24);
}

.retail-kpi-unified-grid .card.card-flush.h-100 .card-body {
    min-height: 84px;
    padding: 10px 12px !important;
}

.retail-kpi-unified-grid .card.card-flush.h-100 .card-body > .d-flex.align-items-center.gap-2.mb-2 {
    margin-bottom: 0.32rem !important;
}

.retail-kpi-unified-grid .symbol.symbol-35px {
    width: 34px !important;
    height: 34px !important;
}

.retail-kpi-unified-grid .symbol.symbol-35px .symbol-label {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.retail-kpi-unified-grid .card-body .text-gray-600.fw-semibold.fs-8 {
    font-size: 0.8rem !important;
    color: #5f6f89 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.retail-kpi-unified-grid .card-body .fw-bold.fs-2hx,
.retail-kpi-unified-grid .card-body .fw-bold.fs-4 {
    font-size: 2rem !important;
    line-height: 1.06 !important;
    letter-spacing: -0.02em;
    color: #1f2740 !important;
    margin-top: 0.12rem;
    margin-bottom: 0;
}

.retail-kpi-unified-grid .card-body .fs-8.mt-2 {
    margin-top: 0.2rem !important;
    color: #7a879d !important;
    font-weight: 600;
}

.retail-quick-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.retail-quick-actions-row .button.button-sm,
.retail-quick-actions-row .btn.btn-sm {
    height: 2.35rem;
    border-radius: 1.2rem;
}

.retail-revenue-metric-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.retail-revenue-chip {
    border: 1px solid #d9e2ef;
    background: #f8fafc;
    color: #60708c;
    height: 2.05rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.18s ease;
}

.retail-revenue-chip:hover {
    border-color: #bdd1ea;
    color: #3d5c88;
    background: #f2f7ff;
}

.retail-revenue-chip.active {
    border-color: #9ad4eb;
    color: #145f80;
    background: #dff4fd;
}

@media (max-width: 1399.98px) {
    .retail-kpi-unified-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    #retailDashboard .retail-kpi-unified-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    #retailDashboard .retail-kpi-card.retail-kpi-compact.retail-kpi-flat {
        min-height: 96px;
        height: auto;
        padding: 12px 13px;
        gap: 0.85rem;
    }

    #retailDashboard .retail-kpi-card.retail-kpi-compact.retail-kpi-flat .retail-kpi-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border-radius: 10px;
    }

    #retailDashboard .retail-kpi-card.retail-kpi-compact .retail-kpi-value {
        font-size: 1.6rem;
        line-height: 1.08;
    }

    #retailDashboard .retail-kpi-card.retail-kpi-compact .retail-kpi-label {
        font-size: 0.9rem;
        line-height: 1.2;
        font-weight: 700;
    }

    #retailDashboard .retail-overview-strip {
        gap: 0.45rem 0.9rem;
        padding: 0.8rem 0.95rem;
    }

    #retailDashboard .retail-overview-title {
        font-size: 0.84rem;
    }

    #retailDashboard .retail-overview-point {
        font-size: 0.92rem;
    }
}

.retail-section-card {
    padding: 24px;
    height: 100%;
}

.retail-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.retail-section-title {
    color: #181c32;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.retail-section-subtitle {
    color: #7e8299;
    font-size: 0.87rem;
    margin-top: 4px;
}

.retail-progress-panel {
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid rgba(120, 130, 150, 0.1);
    padding: 22px;
}

.retail-progress-bar {
    height: 14px;
    border-radius: 999px;
    background: rgba(80, 205, 137, 0.12);
}

.retail-progress-bar .progress-bar {
    border-radius: 999px;
}

.retail-progress-footnote {
    font-size: 0.92rem;
    font-weight: 700;
    color: #181c32;
}

.retail-mini-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.retail-mini-stat {
    padding: 18px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid rgba(120, 130, 150, 0.1);
}

.retail-mini-stat-value {
    font-size: 1.55rem;
}

.retail-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.retail-dashboard-table thead th {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

.retail-dashboard-table tbody tr {
    transition: background-color 0.2s ease;
}

.retail-dashboard-table tbody tr:hover {
    background: rgba(0, 158, 247, 0.04);
}

.retail-alert-list,
.retail-activity-list,
.retail-driver-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.retail-alert-item,
.retail-activity-item,
.retail-driver-item {
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(120, 130, 150, 0.12);
    background: #f8fbff;
}

.retail-alert-primary {
    background: rgba(0, 158, 247, 0.08);
}

.retail-alert-warning {
    background: rgba(255, 199, 0, 0.12);
}

.retail-alert-danger {
    background: rgba(241, 65, 108, 0.09);
}

.retail-alert-dark {
    background: rgba(24, 28, 50, 0.06);
}

.retail-alert-type,
.retail-activity-title,
.retail-driver-name {
    color: #181c32;
    font-size: 0.95rem;
    font-weight: 800;
}

.retail-alert-title,
.retail-activity-subtitle {
    color: #3f4254;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 4px;
}

.retail-alert-message,
.retail-activity-description,
.retail-driver-metrics {
    color: #5e6278;
    font-size: 0.84rem;
    margin-top: 5px;
    line-height: 1.55;
}

.retail-activity-time {
    margin-top: 8px;
    color: #7e8299;
    font-size: 0.78rem;
    font-weight: 700;
}

.retail-driver-metrics {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

@media (max-width: 1399.98px) {
    .retail-hero-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .retail-hero-card,
    .retail-section-card {
        padding: 20px;
    }

    .retail-action-grid,
    .retail-mini-stat-grid,
    .retail-hero-meta {
        grid-template-columns: 1fr;
    }

    .retail-kpi-card {
        min-height: 168px;
    }
}

.products-page-compact .card-header {
    min-height: 54px;
}

.products-page-compact .card-header,
.products-page-compact .card-body {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.products-page-compact .form-label {
    margin-bottom: 0.35rem;
}

.products-page-compact .table > :not(caption) > * > * {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.products-page-compact .pagination {
    margin-bottom: 0;
}

/* Compact sidebar spacing override for Metronic default .95rem menu-link padding */
.premium-aside .aside-menu .menu-item .menu-link {
    padding-top: 0.52rem !important;
    padding-bottom: 0.52rem !important;
}

/* ERP-style sidebar finish */
#kt_aside.premium-aside {
    background: linear-gradient(180deg, #212130 0%, #4A3E5E 100%);
}

#kt_aside.premium-aside .aside-logo {
    background: rgba(255, 255, 255, 0.03);
}

#kt_aside.premium-aside .aside-menu {
    background: transparent;
}

#kt_aside.premium-aside #kt_aside_menu .menu-link {
    border-radius: 0.65rem;
    margin: 0.12rem 0.6rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
}

#kt_aside.premium-aside #kt_aside_menu .menu-link .menu-title {
    color: #e1e3ea;
    font-weight: 500;
}

#kt_aside.premium-aside #kt_aside_menu .menu-link .menu-icon i {
    color: #9ea5b5;
}

#kt_aside.premium-aside #kt_aside_menu .menu-link.active,
#kt_aside.premium-aside #kt_aside_menu .menu-item.here > .menu-link {
    background: linear-gradient(90deg, rgba(54, 153, 255, 0.28) 0%, rgba(80, 205, 137, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#kt_aside.premium-aside #kt_aside_menu .menu-link:hover {
    background: linear-gradient(90deg, rgba(54, 153, 255, 0.18) 0%, rgba(114, 57, 234, 0.14) 100%);
    transform: none;
}

#kt_aside.premium-aside #kt_aside_menu .menu-link.active .menu-title,
#kt_aside.premium-aside #kt_aside_menu .menu-item.here > .menu-link .menu-title {
    color: #ffffff;
}

#kt_aside.premium-aside #kt_aside_menu .menu-link.active .menu-icon i,
#kt_aside.premium-aside #kt_aside_menu .menu-item.here > .menu-link .menu-icon i {
    color: #50cd89;
}

#kt_aside.premium-aside #kt_aside_menu .menu-content .menu-section.side-section-pill {
    color: #d9e4ff !important;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 800;
    min-height: 28px;
    background: linear-gradient(90deg, rgba(54, 153, 255, 0.24), rgba(54, 153, 255, 0));
    border-radius: 0.45rem;
    margin: 0.25rem 0.6rem;
    border: none;
}

#kt_aside.premium-aside #kt_aside_menu .menu-content .menu-section.side-section-pill::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    border-radius: 3px;
    background: #50cd89;
}

#kt_aside.premium-aside #kt_aside_menu_wrapper {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    max-height: none !important;
}

/* No-scroll mode: compact sidebar so bottom items stay visible */
#kt_aside.premium-aside .aside-logo {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
    margin-bottom: 0 !important;
}

#kt_aside.premium-aside .aside-logo .symbol.symbol-40px {
    width: 32px !important;
    height: 32px !important;
}

#kt_aside.premium-aside .aside-logo .fs-4 {
    font-size: 1.05rem !important;
}

#kt_aside.premium-aside .aside-logo .fs-8 {
    display: none !important;
}

#kt_aside.premium-aside #kt_aside_menu .menu-content {
    padding-top: 0.16rem !important;
    padding-bottom: 0.08rem !important;
}

#kt_aside.premium-aside #kt_aside_menu .menu-content .menu-section.side-section-pill {
    font-size: 0.56rem !important;
    min-height: 19px;
    margin: 0.08rem 0.5rem !important;
    padding: 0.1rem 0.58rem 0.1rem 0.46rem !important;
    letter-spacing: 0.06em !important;
}

#kt_aside.premium-aside #kt_aside_menu .menu-content .menu-section.side-section-pill::before {
    height: 9px;
    left: 0.3rem;
    width: 2px;
}

#kt_aside.premium-aside .aside-menu .menu-item .menu-link {
    padding-top: 0.44rem !important;
    padding-bottom: 0.44rem !important;
    margin-top: 0.08rem !important;
    margin-bottom: 0.08rem !important;
}

#kt_aside.premium-aside #kt_aside_menu .menu-link .menu-title {
    font-size: 1.3rem !important;
    line-height: 1.1 !important;
}

#kt_aside.premium-aside .side-pro-icon {
    width: 1.45rem !important;
    height: 1.45rem !important;
    min-width: 1.45rem !important;
}

#kt_aside.premium-aside #kt_aside_menu .menu-link .menu-icon {
    width: 2rem;
    min-width: 2rem;
    margin-right: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#kt_aside.premium-aside #kt_aside_menu .menu-link .menu-arrow {
    margin-left: auto;
}

#kt_aside.premium-aside #kt_aside_menu .menu-accordion > .menu-link {
    min-height: 40px;
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub.menu-sub-accordion {
    position: relative;
    margin: 0.12rem 0 0.35rem;
    padding: 0.08rem 0 0.2rem;
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub.menu-sub-accordion::before {
    content: "";
    position: absolute;
    left: 1.55rem;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub .menu-item {
    position: relative;
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub .menu-link {
    margin-left: 0.75rem;
    margin-right: 0.45rem;
    padding-left: 3rem !important;
    min-height: 36px;
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub .menu-link::before {
    content: "";
    position: absolute;
    left: 1.55rem;
    top: 50%;
    width: 14px;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-50%);
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub .menu-link .menu-icon {
    width: 20px;
    min-width: 20px;
    margin-right: 10px;
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub .side-pro-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border-radius: 0;
    background: transparent;
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub .menu-link .menu-title {
    font-size: 1.4rem !important;
    font-weight: 500;
    color: #d9deee;
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub .menu-link.active,
#kt_aside.premium-aside #kt_aside_menu .menu-sub .menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.06);
}

/* Global compact ERP rhythm to match Product Management page across modules */
body.erp-compact .content .container-fluid,
body.erp-compact .content .container-xxl {
    padding-top: 0.65rem !important;
    padding-bottom: 0.8rem !important;
}

body.erp-compact .page-meta-shell .card-body {
    min-height: auto;
}

body.erp-compact .page-meta-shell h1 {
    font-size: 1.75rem;
    line-height: 1.15;
}

body.erp-compact .content .card {
    box-shadow: 0 0 14px rgba(76, 87, 125, 0.04);
}

body.erp-compact .content .card .card-header {
    min-height: 52px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

body.erp-compact .content .card .card-body {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

body.erp-compact .content .row.g-5,
body.erp-compact .content .row.g-xl-8 {
    --bs-gutter-y: 1rem;
}

body.erp-compact .content .table > :not(caption) > * > * {
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
}

body.erp-compact .content .btn {
    min-height: 34px;
}

body.erp-compact .content .btn.btn-sm {
    min-height: 32px;
    padding-top: 0.38rem;
    padding-bottom: 0.38rem;
    font-weight: 900;
}

body.erp-compact .js-module-filter-card .form-label {
    margin-bottom: 0.3rem;
}

body.erp-compact .js-module-filter-card .form-control,
body.erp-compact .js-module-filter-card .form-select {
    min-height: 40px;
}

@media (max-width: 991.98px) {
    body.erp-compact .page-meta-shell h1 {
        font-size: 1.45rem;
    }
}

/* Disable Metronic extra toolbar offset (header + toolbar) and keep only header offset */
@media (min-width: 992px) {
    .header-fixed.toolbar-fixed .wrapper {
        padding-top: 65px !important;
    }
}

.saas-module-page .card {
    border: 1px solid #eef1f7;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.saas-module-page .table > :not(caption) > * > * {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom-color: #eef1f7;
}

.saas-table-shell .card-header,
.saas-table-shell .card-footer {
    background: #ffffff;
}

.saas-table-toolbar .form-control,
.saas-table-toolbar .form-select,
.saas-filter-drawer .form-control,
.saas-filter-drawer .form-select {
    border-color: #e8edf5;
    background-color: #f8fafc;
}

.saas-filter-drawer {
    width: min(420px, 100vw);
}

.saas-module-page .pagination .page-link {
    border-radius: 0.65rem;
    border: 0;
    min-width: 34px;
    text-align: center;
}

.saas-module-page .pagination .page-item.active .page-link {
    background: #f1f5ff;
    color: #1b84ff;
    font-weight: 700;
}

.saas-module-page .alert {
    border: 1px dashed #d4e3ff;
    background: #f8fbff;
}

.saas-check-cell {
    width: 46px;
    text-align: center;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.saas-check-cell .form-check-input {
    float: none;
    margin: 0;
    vertical-align: middle;
}

.distribution-grid-shell {
    position: relative;
}

.distribution-grid-scroll {
    max-height: calc(100vh - 320px);
    overflow: auto;
}

#distributionGridTable thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
}

#distributionGridTable .sticky-start {
    position: sticky;
    left: 0;
    z-index: 6;
}

#distributionGridTable .distribution-store-cell {
    min-width: 220px;
    box-shadow: 8px 0 18px rgba(15, 23, 42, 0.04);
}

#distributionGridTable tfoot .distribution-grid-total-row td {
    background: #f8fbff;
    border-top: 2px solid #d9e8f7;
    white-space: nowrap;
    vertical-align: middle;
}

#distributionGridTable tfoot .distribution-grid-total-row td:first-child {
    color: #5b6b86;
    letter-spacing: 0.04em;
}

.daily-ops-grid-shell {
    position: relative;
}

.daily-ops-control-card,
.daily-ops-grid-card {
    border: 1px solid rgba(120, 130, 150, 0.12);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(32, 47, 86, 0.05);
}

.daily-ops-control-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.daily-ops-control-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.daily-ops-control-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.daily-ops-kicker {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #009ef7;
    font-weight: 800;
    margin-bottom: 8px;
}

.daily-ops-heading {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #181c32;
}

.daily-ops-subtext {
    margin-top: 4px;
    color: #7e8299;
    font-size: 0.9rem;
    max-width: 760px;
}

.daily-ops-shortcuts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.daily-ops-control-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    border: 1px solid rgba(120, 130, 150, 0.12);
}

.daily-ops-action-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 800;
    color: #009ef7;
}

.daily-ops-action-hint {
    font-size: 0.8rem;
    color: #5e6278;
    line-height: 1.35;
    margin-top: -4px;
}

.daily-ops-load-btn {
    box-shadow: 0 10px 22px rgba(0, 158, 247, 0.2);
}

.daily-ops-load-btn-pending {
    position: relative;
    box-shadow: 0 0 0 0 rgba(0, 158, 247, 0.34);
    animation: dailyOpsPulse 1.5s ease-out infinite;
}

@keyframes dailyOpsPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 158, 247, 0.34);
    }
    75% {
        box-shadow: 0 0 0 12px rgba(0, 158, 247, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 158, 247, 0);
    }
}

.daily-ops-meta-strip {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.daily-ops-kpi-strip {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

.daily-ops-meta-card {
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid rgba(120, 130, 150, 0.1);
    padding: 15px 16px;
}

.daily-ops-meta-label {
    display: block;
    color: #7e8299;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.daily-ops-meta-value {
    display: block;
    margin-top: 8px;
    color: #181c32;
    font-size: 1.2rem;
    font-weight: 800;
}

.daily-ops-mode-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.daily-ops-mode-item {
    border: 1px solid rgba(120, 130, 150, 0.14);
    border-radius: 12px;
    background: #ffffff;
    padding: 7px 10px;
}

.daily-ops-mode-label {
    display: block;
    color: #7e8299;
    font-size: 1rem;
    font-weight: 700;
}

.daily-ops-mode-value {
    display: block;
    margin-top: 2px;
    color: #181c32;
    font-size: 1.2rem;
    font-weight: 800;
}

.daily-ops-grid-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.daily-ops-toolbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid rgba(120, 130, 150, 0.12);
    color: #5e6278;
    font-size: 0.8rem;
    font-weight: 700;
}

.daily-ops-grid-scroll {
    --daily-ops-head-height: 56px;
    max-height: calc(100vh - 300px);
    overflow: auto;
    border-top: 1px solid rgba(120, 130, 150, 0.12);
}

#dailyOpsGridTable thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fcfdff;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(120, 130, 150, 0.14);
}

#dailyOpsGridTable thead th:not(.sticky-start) {
    text-align: center;
}

#dailyOpsGridTable .sticky-start {
    position: sticky;
    left: 0;
    z-index: 6;
}

#dailyOpsGridTable .distribution-store-cell {
    min-width: 240px;
    box-shadow: 8px 0 18px rgba(15, 23, 42, 0.04);
    background: #ffffff;
}

#dailyOpsGridTable tbody td,
#dailyOpsGridTable tfoot td {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

#dailyOpsGridTable tbody tr:nth-child(even):not(.daily-ops-purchase-row) td {
    background-color: rgba(248, 251, 255, 0.55);
}

#dailyOpsGridTable tbody tr:hover td {
    background-color: rgba(0, 158, 247, 0.035);
}

.daily-ops-product-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.daily-ops-product-name {
    color: #181c32;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.daily-ops-product-meta {
    color: #7e8299;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.daily-ops-store-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.daily-ops-store-name {
    color: #181c32;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
}

.daily-ops-store-route {
    color: #7e8299;
    font-size: 0.8rem;
    font-weight: 600;
}

.daily-ops-cell-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.daily-ops-cell-input,
.daily-ops-payment-input {
    min-height: 42px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    background: #fbfcff;
    border: 1px solid rgba(120, 130, 150, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.daily-ops-cell-input {
    max-width: 130px;
}

.daily-ops-payment-input {
    max-width: 160px;
    margin-left: auto;
    color: #0f9d58;
    font-weight: 800;
}

.daily-ops-cell-input:focus,
.daily-ops-payment-input:focus {
    background: #ffffff;
    border-color: rgba(0, 158, 247, 0.38);
    box-shadow: 0 0 0 4px rgba(0, 158, 247, 0.08);
}

.daily-ops-cell-hint {
    color: #7e8299;
    font-size: 0.74rem;
    font-weight: 600;
    text-align: center;
}

.daily-ops-money,
.daily-ops-balance,
.daily-ops-total-number {
    color: #181c32;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.daily-ops-money-muted {
    color: #5e6278;
    font-weight: 700;
}

.daily-ops-balance {
    font-size: 1.02rem;
}

#dailyOpsGridTable td.daily-ops-payment-col {
    background: #eefcf4;
}

#dailyOpsGridTable tfoot .distribution-grid-total-row td {
    background: #f8fbff;
    border-top: 2px solid #d9e8f7;
    white-space: nowrap;
    vertical-align: middle;
}

#dailyOpsGridTable tfoot .daily-ops-total-distributed-row td {
    background: #eef7ff;
    border-top: 2px solid #b8daf9;
}

#dailyOpsGridTable tfoot .daily-ops-day-summary-row td {
    background: #f3fff5;
    border-top: 2px solid #b7e4c2;
}

#dailyOpsGridTable .daily-ops-purchase-row td {
    background: #fff8e8;
    border-bottom: 1px solid #f2dfb0;
    white-space: nowrap;
    vertical-align: middle;
    font-weight: 700;
    position: sticky;
    top: var(--daily-ops-head-height, 56px);
    z-index: 4;
}

#dailyOpsGridTable .daily-ops-purchase-row td.sticky-start {
    z-index: 5;
}

#dailyOpsGridTable .daily-ops-edited {
    border-color: rgba(0, 158, 247, 0.35);
    background: rgba(0, 158, 247, 0.07);
    box-shadow: inset 0 0 0 1px rgba(0, 158, 247, 0.18);
}

#dailyOpsGridTable .daily-ops-row-edited td {
    background-image: linear-gradient(0deg, rgba(0, 158, 247, 0.03), rgba(0, 158, 247, 0.03));
}

.daily-ops-reset-btn {
    min-width: 150px;
}

@media (max-width: 1199.98px) {
    .daily-ops-control-shell {
        grid-template-columns: 1fr;
    }

    .daily-ops-control-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .daily-ops-control-actions .button {
        flex: 1 1 220px;
    }

    .daily-ops-meta-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-ops-kpi-strip {
        grid-template-columns: 1fr;
    }

    .daily-ops-mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    #dailyOpsGridTable .distribution-store-cell {
        min-width: 165px;
        width: 165px;
    }

    .daily-ops-store-name {
        font-size: 0.9rem;
        line-height: 1.15;
    }

    .daily-ops-store-route {
        font-size: 0.72rem;
    }
}

@media (max-width: 767.98px) {
    .daily-ops-control-header {
        flex-direction: column;
    }

    .daily-ops-shortcuts,
    .daily-ops-grid-toolbar {
        justify-content: flex-start;
    }

    .daily-ops-meta-strip {
        grid-template-columns: 1fr;
    }

    .daily-ops-kpi-strip {
        grid-template-columns: 1fr;
    }

    .daily-ops-mode-grid {
        grid-template-columns: 1fr;
    }
}

.route-store-panel {
    min-height: 520px;
    max-height: 65vh;
    overflow: auto;
    border: 1px dashed #d8e2f0;
    border-radius: 1rem;
    background: #fbfcff;
}

.route-store-list .route-store-item {
    cursor: grab;
    border-bottom: 1px solid #eef1f7;
    background: transparent;
}

.route-store-list .route-store-item:last-child {
    border-bottom: 0;
}

.route-store-item:hover {
    background: #f7faff;
}

.route-store-sequence {
    min-width: 28px;
    justify-content: center;
}

.route-store-drag-handle {
    cursor: grab;
}

.route-preview-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.route-preview-node {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #dce6f5;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    white-space: nowrap;
}

.route-preview-badge {
    min-width: 28px;
    justify-content: center;
}

.route-preview-name {
    font-weight: 600;
    color: #1f2937;
}

.route-preview-connector {
    flex: 0 0 28px;
    height: 2px;
    background: linear-gradient(90deg, #93c5fd 0%, #bfdbfe 100%);
    border-radius: 999px;
}

.route-preview-card {
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

#kt_aside.premium-aside #kt_aside_menu .menu-accordion > .menu-link .menu-arrow {
    color: rgba(222, 230, 255, 0.72);
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub {
    padding: 0.18rem 0 0.32rem;
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub .menu-link {
    margin-left: 0.42rem;
    margin-right: 0.3rem;
    padding-left: 0.68rem;
}

#kt_aside.premium-aside #kt_aside_menu .menu-sub .menu-link .menu-icon i {
    font-size: 1.15rem !important;
}
.role-permission-page .nav-tabs .nav-link {
    font-weight: 600;
}

.role-permission-page .table > :not(caption) > * > * {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.role-permission-matrix {
    max-height: 460px;
    overflow: auto;
}

.role-permission-matrix thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.role-sticky-footer {
    position: sticky;
    bottom: 16px;
    z-index: 30;
}

.settings-compact-page .btn.btn-sm {
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    border-radius: 0.55rem;
}

.settings-compact-page .btn.btn-sm i {
    font-size: 1rem !important;
}

.form-select.form-select-solid {
    border-color: #cbcbcb !important;
}
