.brand-link {
    text-align: center;
}

.app-avatar {
    width: 34px;
    height: 34px;
    object-fit: cover;
}

.nav-link.disabled {
    opacity: 0.55;
    cursor: default;
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.dashboard-subtitle {
    color: #6c757d;
    margin-bottom: 0;
}

.login-page {
    background: #f4f6f9;
}

.login-box .card {
    border-radius: 0.75rem;
}

.login-logo {
    font-weight: 700;
}

.login-logo span {
    color: #007bff;
}

.user-table-photo {
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.user-photo-preview-wrap {
    width: 100%;
    min-height: 120px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-photo-preview {
    width: 110px;
    height: 110px;
    object-fit: cover;
}

.driver-top-nav {
    min-height: 56px;
}

.driver-top-avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
    margin-right: 8px;
}

.driver-user-name {
    display: inline-block;
    flex: 0 0 auto;
    min-width: 56px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.driver-logout-btn {
    padding: 0.25rem 0.5rem;
}

.driver-menu-strip {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 56px;
    z-index: 1030;
}

.driver-menu-list {
    gap: 8px;
    padding: 0.5rem 0;
}

.driver-menu-list .nav-link {
    border-radius: 0.4rem;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    padding: 0.6rem 0.5rem;
}

.driver-menu-list .nav-link.active {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.layout-top-nav .content-wrapper {
    margin-left: 0;
}

@media (max-width: 576px) {
    .driver-top-nav .navbar-brand {
        font-size: 0.92rem;
    }

    .driver-user-name {
        display: inline-block;
        flex: 0 0 auto;
        min-width: 56px;
        max-width: 90px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .driver-menu-list .nav-link {
        font-size: 0.95rem;
        padding: 0.7rem 0.4rem;
    }
}

.driver-form-container {
    max-width: 680px;
}

.driver-input-card {
    border-radius: 0.6rem;
}

.driver-input-card .form-control-lg {
    font-size: 0.92rem;
}

@media (max-width: 576px) {
    .driver-form-container {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .driver-input-card .card-body {
        padding: 1rem;
    }

    #driverShipmentSubmitButton {
        min-height: 46px;
        font-size: 0.92rem;
    }
}

:root {
    --roti-red: #b64633;
    --roti-red-dark: #9f3626;
    --roti-beige: #f5ead8;
    --roti-bread: #e2c79c;
    --roti-green-soft: #7a915f;
}

.driver-top-nav {
    background-color: var(--roti-red) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.driver-brand-title {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff !important;
}

.driver-menu-strip {
    background: var(--roti-beige);
    border-bottom: 1px solid #e5d6bd;
}

.driver-menu-list .nav-link {
    border: 1px solid #d9c6a5;
    background: #fff;
    color: #5b4631;
}

.driver-menu-list .nav-link.active {
    background-color: var(--roti-red);
    border-color: var(--roti-red-dark);
    color: #fff;
}

.driver-menu-list .nav-link.driver-refresh-link {
    background-color: #3f8a44;
    border-color: #35753a;
    color: #fff;
}

.driver-menu-list .nav-link.driver-refresh-link:hover,
.driver-menu-list .nav-link.driver-refresh-link:focus {
    background-color: #35753a;
    border-color: #2f6834;
    color: #fff;
}

.driver-submit-btn {
    background-color: var(--roti-red);
    border-color: var(--roti-red-dark);
    color: #fff;
    font-weight: 700;
}

.driver-submit-btn:hover,
.driver-submit-btn:focus {
    background-color: var(--roti-red-dark);
    border-color: var(--roti-red-dark);
    color: #fff;
}

.driver-title {
    text-transform: uppercase;
    font-weight: 800;
    color: #533b25;
}

.driver-input-card {
    border-top: 3px solid var(--roti-bread);
}

.driver-input-card .form-control:focus {
    border-color: var(--roti-red);
    box-shadow: 0 0 0 0.12rem rgba(182, 70, 51, 0.18);
}

.driver-toggle-group {
    margin-top: 0.25rem;
}

.driver-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0.95rem 1rem;
    border: 1px solid #e4d7ca;
    border-radius: 1rem;
    background: #fff9f4;
}


.ui-datepicker {
    font-size: 0.95rem;
    z-index: 9999 !important;
}

.driver-input-card #driverShipmentSubmitButton {
    background-color: var(--roti-red) !important;
    border: 1px solid var(--roti-red-dark) !important;
    color: #fff !important;
}

.driver-input-card #driverShipmentSubmitButton:hover,
.driver-input-card #driverShipmentSubmitButton:focus,
.driver-input-card #driverShipmentSubmitButton:active {
    background-color: var(--roti-red-dark) !important;
    border-color: var(--roti-red-dark) !important;
    color: #fff !important;
}

.driver-input-card #driverShipmentSubmitButton:disabled {
    background-color: #c86d5e !important;
    border-color: #c86d5e !important;
    color: #fff !important;
    opacity: 1;
}

:root {
    --driver-header-bg: #343a40;
    --driver-header-bg-hover: #2d3238;
}

.driver-top-nav {
    background-color: var(--driver-header-bg) !important;
}

.driver-input-card #driverShipmentSubmitButton,
.driver-input-card #driverShipmentSubmitButton.btn,
.driver-input-card .driver-submit-btn {
    background-color: var(--driver-header-bg) !important;
    border: 1px solid var(--driver-header-bg-hover) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.driver-input-card #driverShipmentSubmitButton:hover,
.driver-input-card #driverShipmentSubmitButton:focus,
.driver-input-card #driverShipmentSubmitButton:active,
.driver-input-card .driver-submit-btn:hover,
.driver-input-card .driver-submit-btn:focus,
.driver-input-card .driver-submit-btn:active {
    background-color: var(--driver-header-bg-hover) !important;
    border-color: var(--driver-header-bg-hover) !important;
    color: #ffffff !important;
}

.driver-input-card #driverShipmentSubmitButton:disabled,
.driver-input-card .driver-submit-btn:disabled {
    background-color: #61666c !important;
    border-color: #61666c !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

@media (max-width: 576px) {
    .driver-toggle-card {
        padding: 0.9rem;
        gap: 8px;
    }
}

.driver-report-card .form-control {
    font-size: 0.92rem;
}

.driver-report-table th,
.driver-report-table td {
    vertical-align: middle;
}

.driver-report-table th {
    white-space: nowrap;
    font-size: 0.92rem;
}

.driver-report-table td {
    font-size: 0.94rem;
}

.driver-approval-icon {
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 0.35rem;
}

@media (max-width: 576px) {
    .driver-report-card .card-body {
        padding: 0.9rem;
    }

    .driver-report-table th,
    .driver-report-table td {
        padding: 0.5rem 0.4rem;
    }

    .driver-report-table td {
        font-size: 0.9rem;
    }
}

.driver-detail-btn {
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 0.35rem;
}

.driver-detail-table th {
    width: 44%;
    white-space: nowrap;
    color: #495057;
}

.driver-detail-table td {
    color: #212529;
}

.driver-detail-status {
    font-size: 0.82rem;
}

@media (max-width: 576px) {
    .driver-detail-table th,
    .driver-detail-table td {
        font-size: 0.88rem;
    }
}

.driver-customer-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #2f4f6f;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-align: left;
    white-space: normal;
}

.driver-customer-link:hover,
.driver-customer-link:focus {
    color: #1f3449;
    text-decoration: underline;
}

.driver-customer-link-talangan {
    color: #b64633;
}

.driver-customer-link-talangan:hover,
.driver-customer-link-talangan:focus {
    color: #922f21;
}

.driver-report-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.driver-summary-box {
    border: 1px solid #e1e1e1;
    border-radius: 0.45rem;
    background: #fdfdfd;
    padding: 0.6rem 0.7rem;
}

.driver-summary-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.driver-summary-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #2f2f2f;
}

.driver-customer-link {
    padding: 0.1rem 0.05rem;
    min-height: 30px;
    border: 0;
    background: transparent;
    color: #2f4f6f;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-align: left;
    white-space: normal;
}

.driver-customer-link-talangan {
    color: #b64633;
}

.driver-customer-link-talangan:hover,
.driver-customer-link-talangan:focus {
    color: #922f21;
}

@media (max-width: 576px) {
    .driver-report-summary {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .driver-summary-card {
        min-height: 78px;
        padding: 0.58rem 0.72rem;
    }

    .driver-summary-card-value {
        font-size: 1rem;
    }
}

.app-brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.app-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 34px;
}

.app-brand-text {
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.app-brand-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding-left: 12px;
    padding-right: 12px;
}

.app-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 34px;
}

.app-brand-text {
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.92rem;
    line-height: 1;
}

.main-sidebar .user-panel {
    display: flex !important;
}

.delivery-report-summary {
    margin-left: -8px;
    margin-right: -8px;
}

.delivery-report-summary > [class*='col-'] {
    padding-left: 8px;
    padding-right: 8px;
}

.delivery-summary-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 144px;
    padding: 1rem 1.05rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    color: #ffffff;
}

.delivery-summary-card::after {
    content: '';
    position: absolute;
    right: -26px;
    bottom: -32px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.delivery-summary-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 82px;
}

.delivery-summary-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
}

.delivery-summary-label {
    margin: 0 0 0.28rem;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.delivery-summary-value {
    margin: 0;
    font-size: 1.78rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #ffffff;
    word-break: break-word;
}

.delivery-summary-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    align-self: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.delivery-summary-icon i {
    font-size: 1.15rem;
}

.delivery-summary-card-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.delivery-summary-card-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.delivery-summary-card-success {
    background: linear-gradient(135deg, #1f9d55 0%, #15803d 100%);
}

.delivery-summary-card-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

@media (max-width: 767.98px) {
    .delivery-report-summary {
        margin-left: -6px;
        margin-right: -6px;
    }

    .delivery-report-summary > [class*='col-'] {
        padding-left: 6px;
        padding-right: 6px;
    }

    .delivery-summary-card {
        min-height: 136px;
        padding: 0.95rem 0.95rem;
        gap: 10px;
    }

    .delivery-summary-value {
        font-size: 1.5rem;
    }
}


.delivery-page .content-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
}

.delivery-card {
    border-radius: 0.55rem;
    border-top: 3px solid #b64633;
    box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.06);
}

.delivery-card-header {
    background: #fffaf6;
    border-bottom: 1px solid #ecd8c6;
}

.delivery-card .card-title {
    font-weight: 700;
    color: #463323;
}

.delivery-filter-wrap .form-control,
.delivery-filter-wrap .btn {
    min-height: 31px;
}

.delivery-table thead th {
    background: #f8f3ed;
    color: #4d3a2a;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}

.delivery-table td {
    vertical-align: middle;
}

.delivery-badge {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35em 0.55em;
    border-radius: 999px;
}

.delivery-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.45rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delivery-modal .modal-header {
    background: #fffaf6;
    border-bottom: 1px solid #ecd8c6;
}

.delivery-modal .modal-title {
    font-weight: 700;
    color: #463323;
}

.delivery-modal .modal-body .table th {
    width: 210px;
    color: #4b5563;
}

.delivery-modal .modal-body .table td {
    color: #1f2937;
}


.delivery-status-icon {
    font-size: 1.08rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.delivery-report-table-admin td,
.delivery-report-table-admin th {
    vertical-align: middle;
}

.delivery-report-table-admin td {
    font-size: 0.94rem;
}

.delivery-customer-name {
    display: inline-block;
    line-height: 1.22;
    word-break: break-word;
}

.delivery-customer-normal {
    color: #212529;
    font-weight: 500;
}

.delivery-customer-talangan {
    color: #b64633;
    font-weight: 700;
}

.delivery-talangan-amount {
    display: inline-block;
    font-weight: 700;
}

.delivery-talangan-neutral {
    color: #6c757d;
}

.delivery-talangan-received {
    color: #1f6b37;
}

.delivery-talangan-pending {
    color: #922f21;
}

.delivery-pill {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.42em 0.7em;
    border-radius: 999px;
}

.delivery-pill-success {
    background: #e9f7ee;
    color: #1f6b37;
    border: 1px solid #bfe2cb;
}

.delivery-pill-danger {
    background: #fff1ef;
    color: #922f21;
    border: 1px solid #efc2ba;
}

.delivery-pill-neutral {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d8dde3;
}

@media (max-width: 767.98px) {
    .delivery-report-table-admin td,
    .delivery-report-table-admin th {
        font-size: 0.88rem;
        padding: 0.5rem 0.45rem;
    }

    .delivery-pill {
        font-size: 0.72rem;
        padding: 0.38em 0.6em;
    }
}
.delivery-detail-readonly {
    min-height: 38px;
    padding: 0.375rem 0;
    margin-bottom: 0;
}
.delivery-report-table-admin th[style*="width: 140px"],
.delivery-report-table-admin td.text-right {
    white-space: nowrap;
}

.delivery-report-table-admin td.text-right {
    padding-right: 0.7rem;
}

.delivery-report-table-admin .delivery-talangan-amount {
    min-width: 88px;
    text-align: right;
}

.delivery-report-data-card {
    border-radius: 0.8rem;
    border: 1px solid #ead9cb;
    border-top: 3px solid #b64633;
    box-shadow: 0 12px 30px rgba(84, 51, 28, 0.06);
    overflow: hidden;
}

.delivery-report-data-header {
    padding: 1rem 1.2rem 0.95rem;
    background: linear-gradient(180deg, #fffdfb 0%, #fff7f0 100%);
}

.delivery-report-heading {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.delivery-report-subtitle {
    color: #8b6b55;
    font-size: 0.83rem;
}

.delivery-report-data-body {
    padding: 1rem 1.2rem 1.2rem;
}

.delivery-report-table-wrap {
    border: 1px solid #eadfd6;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #ffffff;
}

.delivery-report-table-admin {
    margin-bottom: 0;
}

.delivery-report-table-admin td,
.delivery-report-table-admin th {
    vertical-align: middle;
    border-color: #eee4db;
}

.delivery-report-table-admin thead th {
    background: #fbf5ee;
    color: #6c4d37;
    font-size: 0.79rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.88rem 0.78rem;
    white-space: nowrap;
    border-bottom-width: 1px;
}

.delivery-report-table-admin tbody td {
    padding: 0.95rem 0.78rem;
    font-size: 0.94rem;
    background: #ffffff;
}

.delivery-report-table-admin tbody tr {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.delivery-report-table-admin tbody tr:hover td {
    background: #fffaf5;
}

.delivery-date-text {
    display: inline-block;
    font-weight: 600;
    color: #4b5563;
    letter-spacing: 0.01em;
}

.delivery-driver-name {
    display: inline-block;
    font-weight: 700;
    color: #2f3f53;
}

.delivery-customer-name {
    display: inline-block;
    line-height: 1.4;
    word-break: break-word;
}

.delivery-customer-normal {
    color: #273444;
    font-weight: 600;
}

.delivery-customer-talangan {
    color: #a53f2d;
    font-weight: 700;
}

.delivery-address-text {
    display: inline-block;
    color: #5f6670;
    line-height: 1.48;
    word-break: break-word;
}

.delivery-talangan-amount {
    display: inline-block;
    font-weight: 800;
}

.delivery-talangan-neutral {
    color: #667085;
}

.delivery-talangan-received {
    color: #1f6b37;
}

.delivery-talangan-pending {
    color: #922f21;
}

.delivery-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.42em 0.78em;
    border-radius: 999px;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.delivery-pill-success {
    background: #e9f7ee;
    color: #1f6b37;
    border-color: #bfe2cb;
}

.delivery-pill-warning {
    background: #fff5df;
    color: #a05a00;
    border-color: #f5d28f;
}

.delivery-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.7rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.delivery-action-btn-info {
    background: #eef6ff;
    border: 1px solid #cfe0f6;
    color: #2b6cb0;
}

.delivery-action-btn-info:hover,
.delivery-action-btn-info:focus {
    background: #dfeefe;
    color: #1d4f91;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .delivery-report-data-header,
    .delivery-report-data-body {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .delivery-report-table-admin td,
    .delivery-report-table-admin th {
        font-size: 0.88rem;
    }

    .delivery-report-table-admin thead th,
    .delivery-report-table-admin tbody td {
        padding: 0.72rem 0.6rem;
    }

    .delivery-pill {
        font-size: 0.71rem;
        padding: 0.38em 0.66em;
    }
}
.purchase-module-page .content-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1f2937;
}

.purchase-module-page .content-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.purchase-module-page .content-header .breadcrumb-item,
.purchase-module-page .content-header .breadcrumb-item a {
    color: #6b7280;
    font-size: 0.9rem;
}

.purchase-module-page .content-header .breadcrumb-item.active {
    color: #374151;
    font-weight: 600;
}

.purchase-module-page .card {
    border: 1px solid #e7ebf1;
    border-radius: 0.95rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.purchase-module-page .purchase-card-header,
.purchase-module-page .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e8edf4;
    padding: 0.95rem 1.15rem;
}

.purchase-module-page .purchase-card-body,
.purchase-module-page .card-body {
    padding: 1.1rem 1.15rem;
}

.purchase-module-page .card-title {
    font-weight: 700;
    color: #1f2937;
}

.purchase-module-page label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.45rem;
}

.purchase-module-page .form-control,
.purchase-module-page .custom-select,
.purchase-module-page select.form-control {
    border-radius: 0.7rem;
    border-color: #d7dee7;
    min-height: 38px;
}

.purchase-module-page .form-control:focus,
.purchase-module-page .custom-select:focus,
.purchase-module-page select.form-control:focus {
    border-color: #7aa7ff;
    box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.12);
}

.purchase-module-page .purchase-toolbar-btn {
    border-radius: 0.7rem;
    font-weight: 600;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.purchase-module-page .small-box.purchase-kpi-box {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.purchase-module-page .small-box.purchase-kpi-box .inner {
    padding: 1rem 1.1rem 0.8rem;
}

.purchase-module-page .small-box.purchase-kpi-box h3 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.purchase-module-page .small-box.purchase-kpi-box p {
    font-size: 0.93rem;
    font-weight: 600;
}

.purchase-module-page .purchase-kpi-row {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.purchase-module-page .table.purchase-table,
.purchase-module-page .table {
    margin-bottom: 0;
}

.purchase-module-page .table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom-width: 1px;
    border-color: #e5eaf0;
    padding: 0.82rem 0.75rem;
    vertical-align: middle;
}

.purchase-module-page .table tbody td,
.purchase-module-page .table tfoot th,
.purchase-module-page .table tfoot td {
    border-color: #e9edf3;
    padding: 0.88rem 0.75rem;
    vertical-align: middle;
}

.purchase-module-page .table-hover tbody tr:hover {
    background-color: #fbfdff;
}

.purchase-module-page .table .text-right {
    white-space: nowrap;
}

.purchase-module-page .nav-pills .nav-link {
    border-radius: 0.7rem;
    color: #475569;
    font-weight: 600;
}

.purchase-module-page .nav-pills .nav-link.active {
    background: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.purchase-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 0.42em 0.8em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.purchase-status-badge-posted {
    background: #eaf7ef;
    color: #1f6b37;
    border-color: #c6e7d1;
}

.purchase-status-badge-draft {
    background: #fff6e6;
    color: #9a5b00;
    border-color: #f2d49c;
}

.purchase-status-badge-danger {
    background: #fff1ef;
    color: #a53b2c;
    border-color: #efc4bc;
}

.purchase-status-badge-neutral {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #d8dde3;
}

.purchase-action-btn {
    border-radius: 0.7rem;
    font-weight: 600;
}

.purchase-action-btn-info,
.purchase-module-page .btn-outline-info.purchase-action-btn-info,
.purchase-module-page .btn-info.purchase-action-btn-info {
    background: #eef6ff;
    border-color: #cfe0f6;
    color: #2b6cb0;
}

.purchase-action-btn-primary,
.purchase-module-page .btn-outline-primary.purchase-action-btn-primary {
    background: #eef3ff;
    border-color: #cbd9ff;
    color: #3159c9;
}

.purchase-action-btn-success,
.purchase-module-page .btn-outline-success.purchase-action-btn-success {
    background: #edf8f1;
    border-color: #c7e7d1;
    color: #1f6b37;
}

.purchase-action-btn-muted,
.purchase-module-page .btn-outline-secondary.purchase-action-btn-muted {
    background: #f4f5f7;
    border-color: #d9dee5;
    color: #6b7280;
}

.purchase-action-btn-danger,
.purchase-module-page .btn-outline-danger.purchase-action-btn-danger {
    background: #fff3f1;
    border-color: #f2c9c1;
    color: #b24738;
}

.purchase-module-page .text-muted {
    color: #6b7280 !important;
}

.purchase-module-page .table td.text-center.text-muted,
.purchase-module-page .table td[colspan] {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

@media (max-width: 767.98px) {
    .purchase-module-page .content-header h1 {
        font-size: 1.55rem;
    }

    .purchase-module-page .purchase-card-header,
    .purchase-module-page .card-header,
    .purchase-module-page .purchase-card-body,
    .purchase-module-page .card-body {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .purchase-module-page .small-box.purchase-kpi-box h3 {
        font-size: 1.45rem;
    }

    .purchase-module-page .table thead th,
    .purchase-module-page .table tbody td,
    .purchase-module-page .table tfoot th,
    .purchase-module-page .table tfoot td {
        padding: 0.7rem 0.6rem;
    }
}
.delivery-page .content-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1f2937;
}

.delivery-page .content-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.delivery-page .content-header .breadcrumb-item,
.delivery-page .content-header .breadcrumb-item a {
    color: #6b7280;
    font-size: 0.9rem;
}

.delivery-page .content-header .breadcrumb-item.active {
    color: #374151;
    font-weight: 600;
}

.delivery-page .card,
.delivery-page .delivery-card,
.delivery-page .delivery-report-data-card,
.delivery-page .delivery-table-card {
    border: 1px solid #e7ebf1;
    border-radius: 0.95rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.delivery-page .delivery-card-header,
.delivery-page .card-header,
.delivery-page .delivery-report-data-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e8edf4;
    padding: 0.95rem 1.15rem;
}

.delivery-page .delivery-card-body,
.delivery-page .card-body,
.delivery-page .delivery-report-data-body {
    padding: 1.1rem 1.15rem;
}

.delivery-page .card-title {
    font-weight: 700;
    color: #1f2937;
}

.delivery-page label,
.delivery-modal label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.45rem;
}

.delivery-page .form-control,
.delivery-page .custom-select,
.delivery-page select.form-control,
.delivery-modal .form-control,
.delivery-modal select.form-control,
.delivery-modal textarea.form-control {
    border-radius: 0.7rem;
    border-color: #d7dee7;
    min-height: 38px;
}

.delivery-page .form-control:focus,
.delivery-page .custom-select:focus,
.delivery-page select.form-control:focus,
.delivery-modal .form-control:focus,
.delivery-modal textarea.form-control:focus {
    border-color: #7aa7ff;
    box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.12);
}

.delivery-page .delivery-filter-wrap {
    gap: 0.55rem;
}

.delivery-page .delivery-filter-input {
    border-radius: 0.7rem;
}

.delivery-toolbar-btn,
.delivery-page .btn.delivery-toolbar-btn,
.delivery-modal .btn.delivery-toolbar-btn {
    border-radius: 0.7rem;
    font-weight: 600;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.delivery-page .delivery-report-summary {
    margin-top: 0.25rem;
}

.delivery-page .delivery-summary-card {
    min-height: 144px;
    border-radius: 1rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.delivery-page .delivery-summary-copy {
    min-height: 82px;
}

.delivery-page .delivery-summary-label {
    margin: 0 0 0.3rem;
    font-size: 0.94rem;
    font-weight: 600;
}

.delivery-page .delivery-summary-value {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.08;
}

.delivery-page .delivery-report-subtitle {
    color: #6b7280;
    font-size: 0.88rem;
}

.delivery-page .table,
.delivery-page .delivery-report-table-admin {
    margin-bottom: 0;
}

.delivery-page .table thead th,
.delivery-page .delivery-report-table-admin thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom-width: 1px;
    border-color: #e5eaf0;
    padding: 0.82rem 0.75rem;
    vertical-align: middle;
}

.delivery-page .table tbody td,
.delivery-page .table tfoot th,
.delivery-page .table tfoot td,
.delivery-page .delivery-report-table-admin tbody td {
    border-color: #e9edf3;
    padding: 0.88rem 0.75rem;
    vertical-align: middle;
}

.delivery-page .table-hover tbody tr:hover,
.delivery-page .delivery-report-table-admin tbody tr:hover td {
    background-color: #fbfdff;
}

.delivery-page .table .text-right,
.delivery-page .delivery-report-table-admin td.text-right {
    white-space: nowrap;
}

.delivery-page .text-muted,
.delivery-modal .text-muted {
    color: #6b7280 !important;
}

.delivery-page .table td.text-center.text-muted,
.delivery-page .table td[colspan],
.delivery-page .delivery-report-table-admin td.text-center.text-muted,
.delivery-page .delivery-report-table-admin td[colspan] {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

.delivery-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 0.42em 0.8em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: none;
}

.delivery-pill-success {
    background: #eaf7ef;
    color: #1f6b37;
    border-color: #c6e7d1;
}

.delivery-pill-warning {
    background: #fff6e6;
    color: #9a5b00;
    border-color: #f2d49c;
}

.delivery-pill-danger {
    background: #fff1ef;
    color: #a53b2c;
    border-color: #efc4bc;
}

.delivery-pill-neutral {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #d8dde3;
}

.delivery-action-btn {
    border-radius: 0.7rem;
    font-weight: 600;
}

.delivery-action-btn-info,
.delivery-page .btn-outline-info.delivery-action-btn-info,
.delivery-page .btn-info.delivery-action-btn-info {
    background: #eef6ff;
    border-color: #cfe0f6;
    color: #2b6cb0;
}

.delivery-action-btn-primary,
.delivery-page .btn-outline-primary.delivery-action-btn-primary {
    background: #eef3ff;
    border-color: #cbd9ff;
    color: #3159c9;
}

.delivery-action-btn-success,
.delivery-page .btn-primary.delivery-action-btn-success,
.delivery-page .btn-outline-success.delivery-action-btn-success {
    background: #edf8f1;
    border-color: #c7e7d1;
    color: #1f6b37;
}

.delivery-action-btn-muted,
.delivery-page .btn-outline-secondary.delivery-action-btn-muted {
    background: #f4f5f7;
    border-color: #d9dee5;
    color: #6b7280;
}

.delivery-modal .modal-content {
    border: 1px solid #e7ebf1;
    border-radius: 0.95rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.delivery-modal .modal-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e8edf4;
    padding: 0.95rem 1.15rem;
}

.delivery-modal .modal-title {
    font-weight: 700;
    color: #1f2937;
}

.delivery-modal .modal-body {
    padding: 1.1rem 1.15rem;
}

.delivery-modal .modal-footer {
    border-top: 1px solid #e8edf4;
    padding: 0.9rem 1.15rem;
}

@media (max-width: 767.98px) {
    .delivery-page .content-header h1 {
        font-size: 1.55rem;
    }

    .delivery-page .delivery-card-header,
    .delivery-page .card-header,
    .delivery-page .delivery-card-body,
    .delivery-page .card-body,
    .delivery-page .delivery-report-data-header,
    .delivery-page .delivery-report-data-body,
    .delivery-modal .modal-header,
    .delivery-modal .modal-body,
    .delivery-modal .modal-footer {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .delivery-page .delivery-summary-card {
        min-height: 136px;
    }

    .delivery-page .delivery-summary-value {
        font-size: 1.45rem;
    }

    .delivery-page .table thead th,
    .delivery-page .table tbody td,
    .delivery-page .table tfoot th,
    .delivery-page .table tfoot td,
    .delivery-page .delivery-report-table-admin thead th,
    .delivery-page .delivery-report-table-admin tbody td {
        padding: 0.7rem 0.6rem;
    }
}

.delivery-page .small-box.delivery-kpi-box {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.delivery-page .small-box.delivery-kpi-box .inner {
    padding: 1rem 1.1rem 0.8rem;
}

.delivery-page .small-box.delivery-kpi-box h3 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.delivery-page .small-box.delivery-kpi-box p {
    font-size: 0.93rem;
    font-weight: 600;
}

.delivery-page .delivery-kpi-row {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.moka-reconciliation-page .moka-reconciliation-summary-row {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.moka-reconciliation-page .moka-reconciliation-summary-row > [class*='col-'] {
    margin-bottom: 1rem;
}

.moka-reconciliation-page .moka-reconciliation-kpi-box {
    min-height: 136px;
}

.moka-reconciliation-page .moka-reconciliation-kpi-box .inner {
    min-height: 136px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.moka-reconciliation-page .moka-reconciliation-kpi-box p {
    max-width: calc(100% - 3.5rem);
    min-height: 2.7rem;
    margin-bottom: 0;
    line-height: 1.35;
}

.moka-reconciliation-page .moka-reconciliation-kpi-box .icon {
    right: 0.9rem;
    top: 0.7rem;
    font-size: 4rem;
}

@media (max-width: 767.98px) {
    .moka-reconciliation-page .moka-reconciliation-summary-row {
        margin-top: 0.85rem;
    }

    .moka-reconciliation-page .moka-reconciliation-kpi-box,
    .moka-reconciliation-page .moka-reconciliation-kpi-box .inner {
        min-height: 124px;
    }

    .moka-reconciliation-page .moka-reconciliation-kpi-box p {
        max-width: calc(100% - 2.8rem);
        min-height: 2.45rem;
        font-size: 0.88rem;
    }

    .moka-reconciliation-page .moka-reconciliation-kpi-box .icon {
        right: 0.75rem;
        top: 0.85rem;
        font-size: 3.2rem;
    }
}

@media (max-width: 767.98px) {
    .delivery-page .small-box.delivery-kpi-box h3 {
        font-size: 1.45rem;
    }
}

.purchase-module-page .purchase-supplier-modal-dialog {
    max-width: 900px;
}

.purchase-module-page .purchase-supplier-modal .modal-content {
    border: 1px solid #e7ebf1;
    border-radius: 0.95rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.purchase-module-page .purchase-supplier-modal .modal-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e8edf4;
    padding: 0.95rem 1.15rem;
}

.purchase-module-page .purchase-supplier-modal .modal-body {
    padding: 1rem 1.15rem 1.15rem;
}

.purchase-module-page .purchase-supplier-table-wrap {
    width: 100%;
}

.purchase-module-page .purchase-supplier-table-wrap .dataTables_wrapper {
    width: 100%;
}

.purchase-module-page #purchaseSupplierTable {
    width: 100% !important;
    table-layout: auto;
}

.purchase-module-page #purchaseSupplierTable thead th:nth-child(1),
.purchase-module-page #purchaseSupplierTable tbody td:nth-child(1) {
    width: 56px;
}

.purchase-module-page #purchaseSupplierTable thead th:nth-child(2),
.purchase-module-page #purchaseSupplierTable tbody td:nth-child(2) {
    width: 150px;
}

.purchase-module-page #purchaseSupplierTable thead th:nth-child(4),
.purchase-module-page #purchaseSupplierTable tbody td:nth-child(4) {
    width: 110px;
}

.purchase-module-page #purchaseSupplierTable thead th:nth-child(3),
.purchase-module-page #purchaseSupplierTable tbody td:nth-child(3) {
    width: auto;
}

.purchase-module-page #purchaseSupplierTable td:nth-child(3) .btn-link {
    white-space: normal;
    width: 100%;
}

.purchase-module-page .purchase-supplier-name-column {
    width: auto;
}

@media (max-width: 767.98px) {
    .purchase-module-page .purchase-supplier-modal-dialog {
        max-width: none;
        margin: 0.5rem;
    }

    .purchase-module-page .purchase-supplier-modal .modal-header,
    .purchase-module-page .purchase-supplier-modal .modal-body {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}
.purchase-module-page .purchase-item-product-group {
    min-width: 250px;
}

.purchase-module-page .purchase-item-product-group .js-product-display {
    background: #ffffff;
    cursor: pointer;
}

.purchase-module-page .purchase-item-product-group .btn {
    white-space: nowrap;
}

.purchase-module-page .purchase-product-modal-dialog {
    max-width: 1040px;
}

.purchase-module-page .purchase-product-modal .modal-content {
    border: 1px solid #e7ebf1;
    border-radius: 0.95rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.purchase-module-page .purchase-product-modal .modal-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e8edf4;
    padding: 0.95rem 1.15rem;
}

.purchase-module-page .purchase-product-modal .modal-body {
    padding: 1rem 1.15rem 1.15rem;
}

.purchase-module-page .purchase-product-table-wrap,
.purchase-module-page .purchase-product-table-wrap .dataTables_wrapper {
    width: 100%;
}

.purchase-module-page #purchaseProductTable {
    width: 100% !important;
    table-layout: auto;
}

.purchase-module-page #purchaseProductTable thead th:nth-child(1),
.purchase-module-page #purchaseProductTable tbody td:nth-child(1) {
    width: 56px;
}

.purchase-module-page #purchaseProductTable thead th:nth-child(2),
.purchase-module-page #purchaseProductTable tbody td:nth-child(2) {
    width: 140px;
}

.purchase-module-page #purchaseProductTable thead th:nth-child(4),
.purchase-module-page #purchaseProductTable tbody td:nth-child(4) {
    width: 170px;
}

.purchase-module-page #purchaseProductTable thead th:nth-child(5),
.purchase-module-page #purchaseProductTable tbody td:nth-child(5) {
    width: 96px;
}

.purchase-module-page #purchaseProductTable thead th:nth-child(6),
.purchase-module-page #purchaseProductTable tbody td:nth-child(6) {
    width: 120px;
}

.purchase-module-page #purchaseProductTable thead th:nth-child(7),
.purchase-module-page #purchaseProductTable tbody td:nth-child(7) {
    width: 110px;
}

.purchase-module-page #purchaseProductTable td:nth-child(3) .btn-link {
    white-space: normal;
    width: 100%;
}

.purchase-module-page .purchase-product-name-column {
    width: auto;
}

@media (max-width: 767.98px) {
    .purchase-module-page .purchase-item-product-group {
        min-width: 220px;
    }

    .purchase-module-page .purchase-product-modal-dialog {
        max-width: none;
        margin: 0.5rem;
    }

    .purchase-module-page .purchase-product-modal .modal-header,
    .purchase-module-page .purchase-product-modal .modal-body {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}
.driver-payment-page .driver-payment-card {
    overflow: hidden;
}

.driver-payment-page .driver-payment-driver-picker .form-control {
    background: #ffffff;
}

.driver-payment-page .driver-payment-summary-row {
    margin-bottom: 0.35rem;
}

.driver-payment-page .driver-payment-inline-alert {
    border-radius: 0.8rem;
}

.driver-payment-page .driver-payment-preview-card {
    min-height: 86px;
    padding: 1rem 1.05rem;
    border: 1px solid #e5eaf0;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.driver-payment-page .driver-payment-preview-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.driver-payment-page .driver-payment-preview-value {
    margin-top: 0.35rem;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1f2937;
}

.driver-payment-page .driver-payment-preview-note {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.driver-payment-page .driver-payment-driver-modal .modal-dialog {
    max-width: 920px;
}

.driver-payment-page #driverPaymentDriverTable td:nth-child(2) .btn-link {
    white-space: normal;
    width: 100%;
}

@media (max-width: 767.98px) {
    .driver-payment-page .driver-payment-preview-card {
        min-height: auto;
        padding: 0.95rem;
    }

    .driver-payment-page .driver-payment-preview-value {
        font-size: 1.45rem;
    }

    .driver-payment-page .driver-payment-driver-modal .modal-dialog {
        max-width: none;
        margin: 0.5rem;
    }
}

.driver-report-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0.1rem;
}

.driver-summary-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 84px;
    padding: 0.65rem 0.8rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    color: #ffffff;
}

.driver-summary-card::after {
    content: '';
    position: absolute;
    right: -18px;
    bottom: -24px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.driver-summary-card-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.driver-summary-card-label {
    margin-bottom: 0.14rem;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.22;
    color: rgba(255, 255, 255, 0.86);
}

.driver-summary-card-value {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.08;
    color: #ffffff;
    word-break: break-word;
}

.driver-summary-card-icon {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.driver-summary-card-icon i {
    font-size: 0.92rem;
}

.driver-summary-card-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.driver-summary-card-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.driver-summary-card-success {
    background: linear-gradient(135deg, #1f9d55 0%, #15803d 100%);
}

.driver-summary-card-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.driver-summary-card-paid {
    background: linear-gradient(135deg, #0f766e 0%, #0f5f73 100%);
}

.driver-summary-card-unpaid {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

@media (max-width: 576px) {
    .driver-report-summary-cards {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .driver-summary-card {
        gap: 8px;
        min-height: 70px;
        padding: 0.48rem 0.62rem;
        border-radius: 0.85rem;
    }

    .driver-summary-card::after {
        width: 62px;
        height: 62px;
        right: -16px;
        bottom: -20px;
    }

    .driver-summary-card-label {
        margin-bottom: 0.1rem;
        font-size: 0.7rem;
        line-height: 1.16;
    }

    .driver-summary-card-value {
        font-size: 0.94rem;
        line-height: 1.04;
    }

    .driver-summary-card-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .driver-summary-card-icon i {
        font-size: 0.82rem;
    }
}

.queue-device-page .main-footer {
    display: none;
}

.queue-device-page .queue-device-container {
    max-width: 540px;
}

.queue-device-page .queue-device-card {
    border-radius: 1.1rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.queue-device-page .queue-device-heading {
    text-align: center;
}

.queue-device-page .queue-device-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #0f766e;
}

.queue-device-page .queue-device-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
}

.queue-device-page .queue-device-subtitle,
.queue-device-page .queue-device-note {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}

.queue-device-page .queue-device-qr-wrap {
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.queue-device-page .queue-device-qr-image {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.queue-device-page .queue-device-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.queue-device-page .queue-device-metric {
    padding: 0.8rem 0.85rem;
    border-radius: 0.95rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.queue-device-page .queue-device-metric-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.queue-device-page .queue-device-metric-value {
    margin-top: 0.2rem;
    font-size: 1.28rem;
    font-weight: 800;
    color: #0f172a;
}

.driver-queue-page .driver-queue-card {
    overflow: hidden;
}

.driver-queue-page .driver-queue-subtitle {
    margin-bottom: 0.65rem;
    color: #64748b;
}

.driver-queue-page .driver-queue-session-note,
.driver-queue-page .driver-queue-last-ticket {
    padding: 0.7rem 0.8rem;
    border-radius: 0.9rem;
    background: #f8fafc;
    color: #334155;
    font-size: 0.92rem;
}

.driver-queue-page .driver-queue-result-card {
    margin-top: 0.8rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f766e 0%, #0f5f73 100%);
    color: #ffffff;
    text-align: center;
}

.driver-queue-page .driver-queue-result-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.driver-queue-page .driver-queue-result-number {
    margin-top: 0.15rem;
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 800;
}

.driver-queue-page .driver-queue-result-date {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.86);
}

.driver-queue-page .driver-queue-scanner-wrap {
    position: relative;
    min-height: 240px;
    border-radius: 1rem;
    overflow: hidden;
    background: #0f172a;
}

.driver-queue-page .driver-queue-video {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.driver-queue-page .driver-queue-scanner-placeholder {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
    padding: 1rem;
}

.driver-queue-page .driver-queue-manual label {
    font-weight: 700;
    color: #334155;
}

.driver-queue-page .driver-queue-login-order {
    padding: 0.8rem 0.9rem;
    border-radius: 0.95rem;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
}

.driver-queue-page .driver-queue-login-order-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.03em;
}

.driver-queue-page .driver-queue-login-order-value {
    margin-top: 0.18rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.driver-queue-page .driver-queue-empty-state {
    padding: 0.95rem 0.9rem;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #dbe4f0;
    text-align: center;
}

.driver-queue-page .driver-queue-empty-icon {
    width: 2.4rem;
    height: 2.4rem;
    margin: 0 auto 0.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    color: #64748b;
    font-size: 1rem;
}

.driver-queue-page .driver-queue-empty-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.3;
}

.driver-queue-page .driver-queue-empty-text {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.driver-queue-page .driver-queue-list-table th,
.driver-queue-page .driver-queue-list-table td {
    vertical-align: middle;
}

.driver-queue-page .driver-queue-list-table th {
    white-space: nowrap;
    font-size: 0.9rem;
}

.driver-queue-page .driver-queue-list-table td {
    font-size: 0.94rem;
}

.driver-queue-page .driver-queue-list-row-self {
    background: rgba(245, 212, 86, 0.18);
}

@media (max-width: 576px) {
    .driver-queue-page .driver-queue-login-order {
        padding: 0.72rem 0.8rem;
    }

    .driver-queue-page .driver-queue-login-order-value {
        font-size: 1.35rem;
    }

    .driver-queue-page .driver-queue-list-table th,
    .driver-queue-page .driver-queue-list-table td {
        padding: 0.5rem 0.45rem;
    }

    .driver-queue-page .driver-queue-list-table td {
        font-size: 0.9rem;
    }
    .queue-device-page .queue-device-summary-grid {
        grid-template-columns: 1fr;
    }

    .queue-device-page .queue-device-title {
        font-size: 1.22rem;
    }

    .queue-device-page .queue-device-metric-value {
        font-size: 1.12rem;
    }

    .driver-queue-page .driver-queue-result-number {
        font-size: 2rem;
    }

    .driver-queue-page .driver-queue-scanner-wrap,
    .driver-queue-page .driver-queue-video,
    .driver-queue-page .driver-queue-scanner-placeholder {
        min-height: 210px;
        height: 210px;
    }
}





.queue-device-menu-strip {
    background: var(--roti-beige);
    border-bottom: 1px solid #e5d6bd;
    position: sticky;
    top: 56px;
    z-index: 1030;
}

.queue-device-menu-strip .container-fluid {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.queue-device-reset-btn {
    border-radius: 0.4rem;
    font-weight: 700;
    box-shadow: none;
}

@media (max-width: 576px) {
    .queue-device-reset-btn {
        min-height: 44px;
    }
}

.queue-device-page .queue-device-token-toggle {
    margin-top: 1rem !important;
}

.queue-device-page .queue-device-token-panel {
    margin-top: 0.75rem;
}

.queue-device-page .queue-device-token-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #5b4631;
}

.queue-device-page .queue-device-token-panel .form-control {
    background: #ffffff;
    font-size: 0.9rem;
}

.queue-device-page .queue-device-token-panel .btn {
    white-space: nowrap;
}


.production-top-nav {
    background: #7c2d12;
    min-height: 54px;
    padding-top: 0;
    padding-bottom: 0;
}

.production-top-nav .container-fluid {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.production-top-nav .production-header-left {
    min-width: 0;
    gap: 4px;
}

.production-top-nav .driver-brand-title {
    margin-right: 0;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.02em;
}

.production-top-nav .production-mobile-menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
}

.production-top-nav .production-mobile-menu-toggle:hover,
.production-top-nav .production-mobile-menu-toggle:focus {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.14);
}

.production-top-nav .production-mobile-menu-toggle i {
    font-size: 1rem;
}

.production-mobile-local-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.18);
    z-index: 1038;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.production-mobile-local-menu-overlay[hidden],
.production-mobile-local-menu[hidden] {
    display: none !important;
}

.production-mobile-local-menu-overlay.is-open {
    opacity: 1;
}

.production-mobile-local-menu {
    position: fixed;
    top: 54px;
    left: 8px;
    width: 208px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
    z-index: 1039;
    padding: 0.42rem;
}

.production-mobile-local-menu-item {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0.62rem 0.72rem;
    border-radius: 8px;
    color: #374151;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.production-mobile-local-menu-item + .production-mobile-local-menu-item {
    margin-top: 0.28rem;
}

.production-mobile-local-menu-item:hover,
.production-mobile-local-menu-item:focus {
    text-decoration: none;
    color: #1f2937;
    background: #f8fafc;
}

.production-mobile-local-menu-item.is-active {
    background: #1f2937;
    color: #ffffff;
}

.production-top-nav .production-header-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.production-top-nav .production-header-user .driver-user-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    color: rgba(255, 255, 255, 0.92);
    margin-right: 0 !important;
}

.production-top-nav .production-header-user .driver-logout-btn {
    line-height: 1;
}

.production-menu-strip {
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
}

.production-menu-list .nav-link {
    color: #9a3412;
    font-weight: 700;
}

.production-menu-list .nav-link.active {
    background: #c2410c;
    color: #ffffff;
}

.production-mobile-page {
    background: #f7f7f7;
}

.production-mobile-container {
    max-width: 760px;
}

.production-mobile-card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.production-mobile-title {
    font-weight: 800;
    color: #7c2d12;
}

.production-mobile-submit-btn {
    min-width: 180px;
}

.production-item-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    padding: 0.9rem;
    background: #ffffff;
    margin-bottom: 0.85rem;
}

.production-item-card-readonly {
    background: #f8fafc;
}

.production-history-card {
    margin-bottom: 0.85rem;
}

.production-history-meta,
.production-detail-list {
    display: grid;
    gap: 0.75rem;
}

.production-history-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.production-history-meta div,
.production-detail-row {
    padding: 0.7rem 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.8rem;
    background: #f8fafc;
}

.production-history-meta span,
.production-detail-row span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.production-detail-row strong,
.production-history-meta strong {
    color: #111827;
}

.production-detail-row-block {
    grid-column: 1 / -1;
}

.production-status-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
}

.production-status-secondary {
    background: #e5e7eb;
    color: #374151;
}

.production-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.production-status-success {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 576px) {
    .production-history-meta {
        grid-template-columns: 1fr;
    }

    .production-mobile-submit-btn {
        min-width: 100%;
    }
}

.production-kpi-box .inner h3 {
    font-size: 1.55rem;
}

.production-admin-page .card-title {
    font-weight: 700;
}

.production-admin-page .content-header h1,
.production-mobile-page .content-header h1,
.production-mobile-page .production-mobile-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #111827;
}

.production-admin-page .content-header .breadcrumb,
.production-mobile-page .content-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.production-admin-page .content-header .breadcrumb-item,
.production-admin-page .content-header .breadcrumb-item a,
.production-mobile-page .content-header .breadcrumb-item,
.production-mobile-page .content-header .breadcrumb-item a {
    color: #6b7280;
    font-size: 0.9rem;
}

.production-admin-page .content-header .breadcrumb-item.active,
.production-mobile-page .content-header .breadcrumb-item.active {
    color: #374151;
    font-weight: 600;
}

.production-admin-page .card,
.production-mobile-page .card {
    border: 1px solid #e7ebf1;
    border-radius: 0.95rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.production-admin-page .card-header,
.production-mobile-page .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e8edf4;
    padding: 0.95rem 1.15rem;
}

.production-admin-page .card-body,
.production-mobile-page .card-body {
    padding: 1.1rem 1.15rem;
}

.production-admin-page .card-title,
.production-mobile-page .card-title,
.production-mobile-page h6,
.production-mobile-page label,
.production-admin-page label {
    font-weight: 700;
    color: #374151;
}

.production-admin-page .form-control,
.production-admin-page .custom-select,
.production-admin-page select.form-control,
.production-mobile-page .form-control,
.production-mobile-page .custom-select,
.production-mobile-page select.form-control {
    border-radius: 0.7rem;
    border-color: #d7dee7;
    min-height: 40px;
}

.production-admin-page .form-control:focus,
.production-admin-page .custom-select:focus,
.production-admin-page select.form-control:focus,
.production-mobile-page .form-control:focus,
.production-mobile-page .custom-select:focus,
.production-mobile-page select.form-control:focus {
    border-color: #7aa7ff;
    box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.12);
}

.production-admin-page .btn,
.production-mobile-page .btn,
.production-admin-page .purchase-toolbar-btn,
.production-mobile-page .purchase-toolbar-btn,
.production-admin-page .purchase-action-btn,
.production-mobile-page .purchase-action-btn {
    border-radius: 0.7rem;
    font-weight: 600;
}

.production-admin-page .table,
.production-mobile-page .table {
    margin-bottom: 0;
}

.production-admin-page .table thead th,
.production-mobile-page .table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-color: #e9edf3;
    white-space: nowrap;
}

.production-admin-page .table tbody td,
.production-admin-page .table tfoot th,
.production-admin-page .table tfoot td,
.production-mobile-page .table tbody td,
.production-mobile-page .table tfoot th,
.production-mobile-page .table tfoot td {
    border-color: #e9edf3;
    padding: 0.88rem 0.75rem;
    vertical-align: middle;
}

.production-admin-page .table-hover tbody tr:hover,
.production-mobile-page .table-hover tbody tr:hover {
    background-color: #fbfdff;
}

.production-admin-page .text-muted,
.production-mobile-page .text-muted {
    color: #6b7280 !important;
}

.production-mobile-page .production-item-card,
.production-mobile-page .production-history-card,
.production-mobile-page .production-detail-row,
.production-mobile-page .production-history-meta div {
    border: 1px solid #e9edf3;
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: none;
}

.production-mobile-page .production-item-card {
    padding: 0.9rem;
}

.production-mobile-page .production-item-card-readonly,
.production-mobile-page .production-detail-row,
.production-mobile-page .production-history-meta div {
    background: #f8fafc;
}

.production-mobile-page .production-history-card {
    margin-bottom: 1rem;
}

.production-admin-page .small-box.production-kpi-box,
.production-admin-page .small-box.purchase-kpi-box {
    border-radius: 1rem;
    overflow: hidden;
}

.production-admin-page .small-box.production-kpi-box .inner,
.production-admin-page .small-box.purchase-kpi-box .inner {
    padding: 1rem 1.1rem 0.8rem;
}

.production-admin-page .small-box.production-kpi-box h3,
.production-admin-page .small-box.purchase-kpi-box h3 {
    font-size: 1.7rem;
    font-weight: 800;
}

.production-admin-page .small-box.production-kpi-box p,
.production-admin-page .small-box.purchase-kpi-box p {
    font-size: 0.93rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    body.layout-navbar-fixed.layout-top-nav .production-mobile-page.content-wrapper {
        margin-top: 52px !important;
    }

    .production-mobile-page > .content {
        padding-top: 0 !important;
    }

    .production-menu-strip {
        display: none !important;
        min-height: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    .production-top-nav {
        min-height: 52px;
    }

    .production-top-nav .container-fluid {
        min-height: 52px;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .production-top-nav .driver-brand-title {
        font-size: 0.88rem;
        letter-spacing: 0.35px;
    }

    .production-top-nav .production-mobile-menu-toggle {
        width: 36px;
        height: 36px;
        margin-right: 5px;
    }

    .production-top-nav .production-header-user {
        gap: 6px;
    }

    .production-top-nav .production-header-user .driver-user-name {
        font-size: 0.8rem;
        max-width: 86px;
        min-width: 0;
    }

    .production-top-nav .production-header-user .driver-logout-btn {
        min-height: 34px;
        padding: 0.22rem 0.52rem;
        font-size: 0.76rem;
    }

    .production-mobile-local-menu {
        top: 52px;
        width: 214px;
        padding: 0.46rem;
    }

    .production-mobile-local-menu-item {
        min-height: 46px;
        padding: 0.66rem 0.76rem;
        font-size: 0.98rem;
    }

    .production-admin-page .content-header h1,
    .production-mobile-page .content-header h1,
    .production-mobile-page .production-mobile-title {
        font-size: 1.55rem;
    }

    .production-admin-page .card-header,
    .production-admin-page .card-body,
    .production-mobile-page .card-header,
    .production-mobile-page .card-body {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}
/* Admin/backoffice radius cleanup: follow master-data shape like 'Tambah Kategori' */
body.sidebar-mini {
    --admin-radius-card: 0.45rem;
    --admin-radius-modal: 0.5rem;
    --admin-radius-btn: 0.4rem;
    --admin-radius-control: 0.4rem;
    --admin-radius-panel: 0.45rem;
}

body.sidebar-mini .content-wrapper .card,
body.sidebar-mini .content-wrapper .purchase-card,
body.sidebar-mini .content-wrapper .delivery-card,
body.sidebar-mini .content-wrapper .delivery-report-data-card,
body.sidebar-mini .content-wrapper .delivery-table-card,
body.sidebar-mini .content-wrapper .purchase-table-card,
body.sidebar-mini .content-wrapper .purchase-filter-card,
body.sidebar-mini .content-wrapper .purchase-detail-card,
body.sidebar-mini .content-wrapper .driver-payment-card,
body.sidebar-mini .content-wrapper .production-card,
body.sidebar-mini .content-wrapper .production-detail-card,
body.sidebar-mini .content-wrapper .production-summary-card,
body.sidebar-mini .content-wrapper .small-box.delivery-kpi-box,
body.sidebar-mini .content-wrapper .small-box.purchase-kpi-box {
    border-radius: var(--admin-radius-card) !important;
}

body.sidebar-mini .content-wrapper .delivery-report-table-wrap,
body.sidebar-mini .content-wrapper .purchase-product-table-wrap,
body.sidebar-mini .content-wrapper .purchase-supplier-table-wrap,
body.sidebar-mini .content-wrapper .driver-payment-preview-card,
body.sidebar-mini .content-wrapper .delivery-detail-readonly,
body.sidebar-mini .content-wrapper .purchase-detail-readonly,
body.sidebar-mini .content-wrapper .bg-light.border.rounded,
body.sidebar-mini .content-wrapper .border.rounded.bg-light,
body.sidebar-mini .content-wrapper .border.rounded {
    border-radius: var(--admin-radius-panel) !important;
}

body.sidebar-mini .content-wrapper .btn,
body.sidebar-mini .content-wrapper .purchase-toolbar-btn,
body.sidebar-mini .content-wrapper .delivery-toolbar-btn,
body.sidebar-mini .content-wrapper .purchase-action-btn,
body.sidebar-mini .content-wrapper .delivery-action-btn,
body.sidebar-mini .modal .btn,
body.sidebar-mini .modal .purchase-toolbar-btn,
body.sidebar-mini .modal .delivery-toolbar-btn,
body.sidebar-mini .modal .purchase-action-btn,
body.sidebar-mini .modal .delivery-action-btn {
    border-radius: var(--admin-radius-btn) !important;
}

body.sidebar-mini .content-wrapper .btn-group > .btn,
body.sidebar-mini .modal .btn-group > .btn {
    border-radius: var(--admin-radius-btn) !important;
}

body.sidebar-mini .content-wrapper .btn.rounded-pill,
body.sidebar-mini .modal .btn.rounded-pill {
    border-radius: var(--admin-radius-btn) !important;
}

body.sidebar-mini .content-wrapper .form-control,
body.sidebar-mini .content-wrapper .custom-select,
body.sidebar-mini .content-wrapper select.form-control,
body.sidebar-mini .content-wrapper textarea.form-control,
body.sidebar-mini .content-wrapper .input-group-text,
body.sidebar-mini .modal .form-control,
body.sidebar-mini .modal .custom-select,
body.sidebar-mini .modal select.form-control,
body.sidebar-mini .modal textarea.form-control,
body.sidebar-mini .modal .input-group-text {
    border-radius: var(--admin-radius-control) !important;
}

body.sidebar-mini .content-wrapper .input-group > .form-control:not(:last-child),
body.sidebar-mini .content-wrapper .input-group > .custom-select:not(:last-child),
body.sidebar-mini .content-wrapper .input-group > .custom-file:not(:last-child) .custom-file-label,
body.sidebar-mini .content-wrapper .input-group > .custom-file:not(:last-child) .custom-file-label::after,
body.sidebar-mini .modal .input-group > .form-control:not(:last-child),
body.sidebar-mini .modal .input-group > .custom-select:not(:last-child),
body.sidebar-mini .modal .input-group > .custom-file:not(:last-child) .custom-file-label,
body.sidebar-mini .modal .input-group > .custom-file:not(:last-child) .custom-file-label::after {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

body.sidebar-mini .content-wrapper .input-group > .form-control:not(:first-child),
body.sidebar-mini .content-wrapper .input-group > .custom-select:not(:first-child),
body.sidebar-mini .modal .input-group > .form-control:not(:first-child),
body.sidebar-mini .modal .input-group > .custom-select:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

body.sidebar-mini .content-wrapper .input-group-append .btn,
body.sidebar-mini .content-wrapper .input-group-prepend .btn,
body.sidebar-mini .modal .input-group-append .btn,
body.sidebar-mini .modal .input-group-prepend .btn {
    border-radius: var(--admin-radius-btn) !important;
}

body.sidebar-mini .modal .modal-content,
body.sidebar-mini .modal .delivery-modal .modal-content,
body.sidebar-mini .modal .purchase-product-modal .modal-content,
body.sidebar-mini .modal .purchase-supplier-modal .modal-content {
    border-radius: var(--admin-radius-modal) !important;
}

.password-toggle-field .password-toggle-button {
    min-width: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.password-toggle-field .password-toggle-button:hover,
.password-toggle-field .password-toggle-button:focus {
    color: #495057;
}

.password-toggle-field .password-toggle-button:focus {
    box-shadow: none;
}

.password-toggle-field .form-control.is-invalid {
    z-index: 2;
}

.password-toggle-field .form-control.is-invalid + .input-group-append .password-toggle-button {
    border-color: #dc3545;
}

.password-feedback {
    display: block;
}

body.sidebar-mini .content-wrapper .page-link,
body.sidebar-mini .modal .page-link,
body.sidebar-mini .content-wrapper .dataTables_paginate .paginate_button .page-link,
body.sidebar-mini .modal .dataTables_paginate .paginate_button .page-link {
    border-radius: var(--admin-radius-btn) !important;
}

body.sidebar-mini .content-wrapper .table .btn-link,
body.sidebar-mini .modal .table .btn-link {
    border-radius: var(--admin-radius-btn) !important;
}

@media (max-width: 767.98px) {
    body.sidebar-mini {
        --admin-radius-card: 0.42rem;
        --admin-radius-modal: 0.46rem;
        --admin-radius-btn: 0.38rem;
        --admin-radius-control: 0.38rem;
        --admin-radius-panel: 0.42rem;
    }
}

/* Global heading treatment: page titles, card titles, and modal titles */
.content-header h1,
.card-title,
.modal-title {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Global heading size tuning: slightly smaller and safer for 100% zoom */
.content-header h1,
.delivery-page .content-header h1,
.purchase-module-page .content-header h1,
.production-admin-page .content-header h1,
.production-mobile-page .content-header h1,
.production-mobile-page .production-mobile-title {
    font-size: clamp(1.42rem, 1.12rem + 1.02vw, 1.68rem) !important;
    line-height: 1.24 !important;
    letter-spacing: 0.03em !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.card-title,
.delivery-card .card-title,
.purchase-module-page .card-title,
.production-admin-page .card-title,
.production-mobile-page .card-title,
.modal-title,
.delivery-modal .modal-title {
    font-size: clamp(0.96rem, 0.9rem + 0.18vw, 1.08rem) !important;
    line-height: 1.28 !important;
    letter-spacing: 0.03em !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.delivery-report-heading .card-title,
.delivery-card-header .h5,
.purchase-card-header .card-title {
    font-size: clamp(1rem, 0.94rem + 0.2vw, 1.12rem) !important;
    line-height: 1.28 !important;
}

/* Keep header row compact for pages with long production labels.
   The global heading rule uses overflow-wrap:anywhere, which can split
   title/breadcrumb into extra lines and visually add top spacing. */
.production-spacing-shared .content-header h1,
.production-spacing-shared .content-header .breadcrumb {
    white-space: nowrap;
    overflow-wrap: normal;
}

@media (max-width: 767.98px) {
    .production-spacing-shared .content-header h1,
    .production-spacing-shared .content-header .breadcrumb {
        white-space: normal;
    }
}

@media (max-width: 767.98px) {
    .content-header h1,
    .delivery-page .content-header h1,
    .purchase-module-page .content-header h1,
    .production-admin-page .content-header h1,
    .production-mobile-page .content-header h1,
    .production-mobile-page .production-mobile-title {
        font-size: 1.34rem !important;
        line-height: 1.22 !important;
    }

    .card-title,
    .delivery-card .card-title,
    .purchase-module-page .card-title,
    .production-admin-page .card-title,
    .production-mobile-page .card-title,
    .modal-title,
    .delivery-modal .modal-title {
        font-size: 0.94rem !important;
        line-height: 1.26 !important;
    }
}
.sales-quick-page .sales-quick-filter-header {
    gap: 0.9rem;
}

.sales-quick-page .sales-quick-filter-heading {
    min-width: 0;
    flex: 1 1 340px;
}

.sales-quick-page .sales-quick-filter-subtitle {
    display: block;
    margin-top: 0.45rem;
    max-width: 760px;
    line-height: 1.55;
    color: #6b7280;
}

.sales-quick-page .sales-quick-filter-toolbar {
    align-self: flex-start;
}

.sales-quick-page .sales-quick-customer-picker-group .form-control {
    background-color: #ffffff;
    cursor: pointer;
}

.sales-quick-page .sales-quick-customer-picker-group .btn {
    min-width: 44px;
}

.sales-quick-page #salesQuickEditModal .modal-body {
    padding-top: 14px;
    padding-bottom: 14px;
}

.sales-quick-page #salesQuickEditModal .modal-dialog {
    width: calc(100% - 2rem);
    max-width: 1140px;
}

.sales-quick-page #salesQuickEditModal .trx-section {
    margin-bottom: 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.sales-quick-page #salesQuickEditModal .quick-edit-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.sales-quick-page #salesQuickEditModal .quick-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 20px;
    align-items: start;
}

.sales-quick-page #salesQuickEditModal .quick-edit-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.sales-quick-page #salesQuickEditModal .quick-edit-top .field-group,
.sales-quick-page #salesQuickEditModal .quick-edit-col .field-group {
    padding: 12px 16px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.sales-quick-page #salesQuickEditModal .trx-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 12px;
    align-items: center;
}

.sales-quick-page #salesQuickEditModal .trx-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sales-quick-page #salesQuickEditModal .trx-status select {
    min-width: 160px;
    height: 38px;
}

.sales-quick-page #salesQuickEditModal .trx-status .form-check {
    margin: 0;
}

.sales-quick-page #salesQuickEditModal .trx-section label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

.sales-quick-page #salesQuickEditModal .trx-section input,
.sales-quick-page #salesQuickEditModal .trx-section select {
    height: 38px;
    font-size: 14px;
}

.sales-quick-page #salesQuickEditModal .quick-edit-top input,
.sales-quick-page #salesQuickEditModal .quick-edit-top select,
.sales-quick-page #salesQuickEditModal .quick-edit-grid input,
.sales-quick-page #salesQuickEditModal .quick-edit-grid select {
    height: 40px;
    font-size: 14px;
}

.sales-quick-page #salesQuickEditModal .quick-edit-grid textarea {
    min-height: 78px;
    resize: vertical;
    font-size: 14px;
}

.sales-quick-page #salesQuickEditModal .quick-edit-top label,
.sales-quick-page #salesQuickEditModal .quick-edit-grid label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

.sales-quick-page #salesQuickEditModal .field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sales-quick-page #salesQuickEditModal .customer-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.sales-quick-page #salesQuickEditModal .customer-group input {
    flex: 1 1 auto;
    min-width: 0;
}

.sales-quick-page #salesQuickEditModal .customer-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.sales-quick-page #salesQuickEditModal .toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.sales-quick-page #salesQuickEditModal .status-toggle-group {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
}

.sales-quick-page #salesQuickEditModal .toggle-item {
    display: flex;
    align-items: center;
    min-width: 0;
}

.sales-quick-page #salesQuickEditModal .quick-edit-top .invalid-feedback,
.sales-quick-page #salesQuickEditModal .quick-edit-grid .invalid-feedback {
    font-size: 12px;
}

.sales-quick-page #salesQuickEditModal .status-toggle-group .ra-toggle-wrap {
    margin: 0;
}

.sales-quick-page #salesQuickEditModal .status-toggle-group .ra-toggle-copy {
    padding-left: 8px;
}

.sales-quick-page #salesQuickEditModal .status-toggle-group .ra-toggle-label {
    margin-bottom: 0;
    font-size: 13px;
    color: #374151;
}

.sales-quick-page #salesQuickEditModal .trx-section .invalid-feedback {
    font-size: 12px;
}

@media (max-width: 991.98px) {
    .sales-quick-page #salesQuickEditModal .modal-dialog {
        width: auto;
        max-width: calc(100% - 1rem);
    }

    .sales-quick-page #salesQuickEditModal .trx-header {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .sales-quick-page #salesQuickEditModal .quick-edit-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .sales-quick-page #salesQuickEditModal .quick-edit-grid {
        grid-template-columns: 1fr;
    }

    .sales-quick-page #salesQuickEditModal .toggle-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .sales-quick-page #salesQuickEditModal .trx-section {
        padding: 10px 12px;
    }

    .sales-quick-page #salesQuickEditModal .toggle-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.sales-quick-page .sales-quick-customer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
    margin-top: 0.28rem;
    font-size: 0.79rem;
    color: #6b7280;
}

.sales-quick-page .sales-quick-customer-meta span {
    display: inline-flex;
    align-items: center;
}

.sales-quick-page .sales-quick-customer-modal tbody tr {
    cursor: pointer;
}

.sales-quick-page .sales-quick-customer-modal .table-hover tbody tr:hover {
    background-color: #f8fafc;
}

@media (max-width: 767.98px) {
    .sales-quick-page .sales-quick-filter-toolbar {
        width: 100%;
    }

    .sales-quick-page .sales-quick-filter-toolbar .btn {
        margin-bottom: 0.35rem;
    }

    .sales-quick-page .sales-quick-filter-subtitle {
        max-width: none;
    }

    .purchase-module-page .purchase-lookup-toolbar,
    .purchase-module-page .purchase-product-toolbar {
        align-items: stretch;
    }

    .purchase-module-page .purchase-lookup-toolbar-left,
    .purchase-module-page .purchase-product-toolbar-left {
        flex-basis: 100%;
    }

    .purchase-module-page .purchase-lookup-toolbar-right,
    .purchase-module-page .purchase-product-toolbar-right {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .purchase-module-page .purchase-product-category-filter,
    .purchase-module-page .selector-toolbar-shell-left .selector-toolbar,
    .purchase-module-page .selector-toolbar-shell-left .selector-toolbar label {
        width: 100%;
        min-width: 0;
        flex-basis: 100%;
    }
}

.selector-modal .modal-dialog,
.purchase-module-page .selector-modal .modal-dialog,
.delivery-page .selector-modal .modal-dialog,
.production-mobile-page .selector-modal .modal-dialog,
.production-admin-page .selector-modal .modal-dialog {
    max-width: 1080px;
}

.selector-modal .modal-content {
    border: 1px solid #e7ebf1;
    border-radius: 0.95rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.selector-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e8edf4;
    padding: 1rem 1.15rem 0.95rem;
}

.selector-modal .modal-title-wrap {
    min-width: 0;
}

.selector-modal .modal-title {
    margin-bottom: 0.1rem;
}

.selector-modal .modal-subtitle {
    display: block;
    color: #6b7280;
    font-size: 0.84rem;
    line-height: 1.5;
}

.selector-modal .modal-header .close {
    margin: -0.2rem -0.15rem 0 0;
    padding: 0.35rem 0.55rem;
    font-size: 1.4rem;
    line-height: 1;
    color: #64748b;
    opacity: 1;
}

.selector-modal .modal-body {
    padding: 1rem 1.15rem 1.1rem;
}

.selector-modal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #e8edf4;
    padding: 0.85rem 1.15rem;
    background: #ffffff;
}

.selector-datatable-wrap .selector-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.selector-datatable-wrap .selector-toolbar label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0;
    flex: 1 1 320px;
    font-weight: 600;
    color: #475569;
}

.selector-datatable-wrap .selector-search-label {
    flex: 0 0 auto;
    font-size: 0.84rem;
}

.selector-datatable-wrap .selector-search-input,
.selector-datatable-wrap .dataTables_filter input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d7dee7;
    border-radius: 0.7rem;
    padding: 0.45rem 0.75rem;
    box-shadow: none;
}

.selector-datatable-wrap .selector-search-input:focus,
.selector-datatable-wrap .dataTables_filter input:focus {
    border-color: #7aa7ff;
    box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.12);
}

.selector-reset-btn {
    min-height: 40px;
    white-space: nowrap;
}

.purchase-module-page .purchase-product-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 0.95rem;
    flex-wrap: wrap;
}

.purchase-module-page .purchase-product-toolbar-left {
    display: flex;
    align-items: flex-end;
    gap: 0.85rem;
    flex: 1 1 720px;
    min-width: 0;
    flex-wrap: wrap;
}

.purchase-module-page .purchase-product-toolbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: auto;
}

.purchase-module-page .purchase-product-category-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 0 1 320px;
    min-width: 240px;
}

.purchase-module-page .purchase-product-category-filter label {
    margin-bottom: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
}

.purchase-module-page .purchase-product-category-filter .form-control {
    min-height: 40px;
    border-radius: 0.7rem;
}

.purchase-module-page .selector-toolbar-shell-left .selector-length,
.purchase-module-page .selector-toolbar-shell-left .selector-toolbar {
    margin-bottom: 0;
}

.purchase-module-page .selector-toolbar-shell-left .selector-length {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.purchase-module-page .selector-toolbar-shell-left .selector-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 360px;
    min-width: 280px;
    flex-wrap: wrap;
}

.purchase-module-page .selector-toolbar-shell-left .selector-toolbar label {
    flex: 1 1 280px;
    min-width: 220px;
}

.purchase-module-page .selector-toolbar-shell-right .purchase-toolbar-btn,
.purchase-module-page .purchase-product-toolbar-right .purchase-toolbar-btn {
    min-height: 40px;
    white-space: nowrap;
}

.selector-datatable-wrap .dataTables_length label,
.selector-datatable-wrap .dataTables_info {
    font-size: 0.84rem;
    color: #64748b;
}

.selector-table-wrap {
    border: 1px solid #e9edf3;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #ffffff;
}

.selector-modal .table {
    margin-bottom: 0;
}

.selector-modal .table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.8rem;
    border-color: #e9edf3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.selector-modal .table tbody td {
    border-color: #e9edf3;
    padding: 0.82rem 0.75rem;
    vertical-align: middle;
    font-size: 0.92rem;
}

.selector-modal .table-hover tbody tr:hover {
    background: #fbfdff;
}

.selector-modal .btn-link {
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
}

.selector-modal .btn-link:hover,
.selector-modal .btn-link:focus {
    color: #0f172a;
    text-decoration: none;
}

.selector-modal .dataTables_empty {
    padding: 1.5rem 1rem !important;
    text-align: center;
    color: #64748b;
    background: #fffdfb;
}

.selector-modal .dataTables_processing {
    border: 1px solid #e8edf4 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
    color: #334155 !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.selector-target-group .form-control[readonly],
.selector-target-group .form-control:not([type]) {
    background: #ffffff;
}

.selector-target-group .btn {
    min-width: 44px;
}

.purchase-module-page .purchase-clear-product-btn {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 1;
}

.purchase-module-page .purchase-clear-product-btn .fas.fa-times {
    font-size: 1.05rem;
}

.purchase-module-page .purchase-clear-product-btn:hover,
.purchase-module-page .purchase-clear-product-btn:focus {
    color: #b91c1c;
    background: transparent !important;
    outline: none;
}

.purchase-module-page .purchase-clear-product-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.selector-field-helper {
    display: block;
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.45;
}

.selector-modal--customer .modal-header {
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.selector-modal--customer .modal-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111827;
}

.selector-modal--customer .modal-subtitle {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #6b7280;
}

.selector-modal--customer .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid #dbe4ef;
    border-radius: 0.55rem;
    background: #ffffff;
    color: #64748b;
    opacity: 1;
}

.selector-modal--customer .close:hover,
.selector-modal--customer .close:focus {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    outline: none;
}

.selector-modal--customer .modal-body {
    padding: 16px 20px;
}

.selector-modal--customer .selector-modal-copy {
    margin-bottom: 0.85rem !important;
    font-size: 0.83rem;
    line-height: 1.45;
    color: #6b7280 !important;
}

.selector-modal--customer .selector-datatable-wrap > .row:first-child,
.selector-modal--customer .selector-datatable-wrap > .row:last-child {
    margin-left: 0;
    margin-right: 0;
}

.selector-modal--customer .selector-datatable-wrap > .row:first-child {
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.selector-modal--customer .selector-datatable-wrap > .row:last-child {
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.8rem;
}

.selector-modal--customer .selector-length,
.selector-modal--customer .selector-toolbar,
.selector-modal--customer .selector-info,
.selector-modal--customer .selector-paginate {
    margin-bottom: 0;
}

.selector-modal--customer .selector-info {
    flex: 1 1 auto;
}

.selector-modal--customer .selector-paginate {
    margin-left: auto;
    text-align: right;
}

.selector-modal--customer .selector-length label,
.selector-modal--customer .selector-toolbar label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}

.selector-modal--customer .selector-length select,
.selector-modal--customer .selector-search-input,
.selector-modal--customer .selector-reset-btn {
    min-height: 38px;
    height: 38px;
    border-radius: 0.5rem;
}

.selector-modal--customer .selector-length select {
    min-width: 88px;
}

.selector-modal--customer .selector-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
}

.selector-modal--customer .selector-toolbar label {
    flex: 1 1 auto;
    min-width: 320px;
}

.selector-modal--customer .selector-search-label {
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.selector-modal--customer .selector-search-input {
    width: 100%;
    min-width: 320px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    border: 1px solid #d7dee7;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

.selector-modal--customer .selector-search-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.14rem rgba(37, 99, 235, 0.1);
    outline: none;
}

.selector-modal--customer .selector-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0.9rem;
    font-size: 0.84rem;
    font-weight: 600;
}

.selector-modal--customer .table thead th {
    background: #f9fafb;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.74rem;
    border-color: #e5e7eb;
    letter-spacing: 0.06em;
    padding: 0.72rem 0.75rem;
}

.selector-modal--customer .table tbody td {
    border-color: #e5e7eb;
    padding: 0.58rem 0.75rem;
    font-size: 0.9rem;
}

.selector-modal--customer .table-hover tbody tr:hover td {
    background: #f3f4f6;
}

.selector-modal--customer .dataTables_empty {
    padding: 1.3rem 1rem !important;
    background: #ffffff;
}

.selector-modal--customer .selector-customer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.selector-modal--customer .table td:nth-child(3),
.selector-modal--customer .table td:nth-child(5) {
    white-space: nowrap;
}

.selector-modal--customer .table td:nth-child(4) {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
}

.selector-modal--customer .selector-table-wrap,
.selector-modal--customer .purchase-supplier-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #ffffff;
}

.selector-modal--customer .btn.delivery-toolbar-btn,
.selector-modal--customer .btn-outline-primary.delivery-toolbar-btn {
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border-radius: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.purchase-module-page #purchaseSupplierModal.selector-modal--customer .modal-dialog {
    max-width: 900px;
}

.purchase-module-page #purchaseProductModal.selector-modal--customer .modal-dialog {
    max-width: 960px;
}

.purchase-module-page #purchasePaymentMethodModal.selector-modal--customer .modal-dialog {
    max-width: 900px;
}

.purchase-module-page #purchaseSupplierModal.selector-modal--customer .modal-content,
.purchase-module-page #purchaseProductModal.selector-modal--customer .modal-content,
.purchase-module-page #purchasePaymentMethodModal.selector-modal--customer .modal-content {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.purchase-module-page #purchaseSupplierModal.selector-modal--customer .modal-header,
.purchase-module-page #purchaseProductModal.selector-modal--customer .modal-header,
.purchase-module-page #purchasePaymentMethodModal.selector-modal--customer .modal-header {
    padding: 18px 20px 16px;
}

.purchase-module-page #purchaseSupplierModal.selector-modal--customer .modal-body,
.purchase-module-page #purchaseProductModal.selector-modal--customer .modal-body,
.purchase-module-page #purchasePaymentMethodModal.selector-modal--customer .modal-body {
    padding: 16px 20px 14px;
}

.purchase-module-page .purchase-lookup-toolbar,
.purchase-module-page #purchaseProductModal .purchase-product-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.purchase-module-page .purchase-lookup-toolbar-left,
.purchase-module-page #purchaseProductModal .purchase-product-toolbar-left {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    flex: 1 1 540px;
    min-width: 0;
    flex-wrap: wrap;
}

.purchase-module-page .purchase-lookup-toolbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: auto;
}

.purchase-module-page #purchaseProductModal .purchase-product-category-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 0 1 250px;
    min-width: 230px;
}

.purchase-module-page #purchaseProductModal .purchase-product-category-filter__label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.purchase-module-page #purchaseProductModal .purchase-product-category-filter .form-control,
.purchase-module-page #purchaseSupplierModal .selector-length select,
.purchase-module-page #purchaseSupplierModal .selector-search-input,
.purchase-module-page #purchaseSupplierModal .selector-reset-btn,
.purchase-module-page #purchasePaymentMethodModal .selector-length select,
.purchase-module-page #purchasePaymentMethodModal .selector-search-input,
.purchase-module-page #purchasePaymentMethodModal .selector-reset-btn,
.purchase-module-page #purchaseProductModal .selector-length select,
.purchase-module-page #purchaseProductModal .selector-search-input,
.purchase-module-page #purchaseProductModal .selector-reset-btn,
.purchase-module-page #purchaseProductModal .purchase-product-toolbar-right .purchase-toolbar-btn {
    min-height: 38px;
    height: 38px;
    border-radius: 0.5rem;
}

.purchase-module-page #purchaseProductModal .purchase-product-toolbar-right .purchase-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    white-space: nowrap;
}

.purchase-module-page #purchaseProductModal .selector-toolbar-shell-left .selector-length label {
    white-space: nowrap;
}

.purchase-module-page #purchaseProductModal .selector-toolbar-shell-left .selector-toolbar label {
    min-width: 260px;
}

.purchase-module-page #purchaseSupplierModal .selector-toolbar-shell-left .selector-length label,
.purchase-module-page #purchasePaymentMethodModal .selector-toolbar-shell-left .selector-length label {
    white-space: nowrap;
}

.purchase-module-page #purchaseSupplierModal .selector-toolbar-shell-left .selector-toolbar label,
.purchase-module-page #purchasePaymentMethodModal .selector-toolbar-shell-left .selector-toolbar label {
    min-width: 260px;
}

.purchase-module-page #purchaseSupplierModal .purchase-lookup-toolbar,
.purchase-module-page #purchasePaymentMethodModal .purchase-lookup-toolbar {
    margin-bottom: 0.4rem;
}

.purchase-module-page #purchaseProductModal .purchase-lookup-toolbar {
    margin-bottom: 0.4rem;
}

.purchase-module-page #purchaseSupplierModal .selector-datatable-wrap > .row:first-child,
.purchase-module-page #purchasePaymentMethodModal .selector-datatable-wrap > .row:first-child {
    display: none;
    margin-bottom: 0;
}

.purchase-module-page #purchaseProductModal .selector-datatable-wrap > .row:first-child {
    display: none;
    margin-bottom: 0;
}

.purchase-module-page #purchaseProductModal .selector-table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none;
    outline: 0;
}

.purchase-module-page #purchaseSupplierModal .selector-table-wrap,
.purchase-module-page #purchasePaymentMethodModal .selector-table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.purchase-module-page #purchaseSupplierModal .table thead th,
.purchase-module-page #purchasePaymentMethodModal .table thead th,
.purchase-module-page #purchaseProductModal .table thead th {
    font-size: 0.74rem;
    letter-spacing: 0.05em;
}

.purchase-module-page #purchaseSupplierModal .table tbody td,
.purchase-module-page #purchasePaymentMethodModal .table tbody td,
.purchase-module-page #purchaseProductModal .table tbody td {
    padding-top: 0.56rem;
    padding-bottom: 0.56rem;
    font-size: 0.89rem;
}

.purchase-module-page #purchaseSupplierModal .table tbody td:last-child,
.purchase-module-page #purchasePaymentMethodModal .table tbody td:last-child,
.purchase-module-page #purchaseProductModal .table tbody td:last-child {
    white-space: nowrap;
}

.purchase-module-page #purchaseSupplierModal .table .js-select-purchase-supplier.delivery-toolbar-btn,
.purchase-module-page #purchasePaymentMethodModal .table .js-select-purchase-payment-method.delivery-toolbar-btn,
.purchase-module-page #purchaseProductModal .table .js-select-purchase-product.delivery-toolbar-btn {
    min-height: 32px;
    height: 32px;
    padding: 0.28rem 0.62rem;
    border-radius: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.purchase-module-page #purchasePaymentMethodModal .table td:nth-child(2) {
    white-space: normal;
}

.purchase-module-page #purchasePaymentMethodModal .table td:nth-child(4) {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    color: inherit;
}

.purchase-module-page #purchaseProductTable td:nth-child(3) .btn-link {
    font-weight: 700;
}

.selector-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0;
}

.selector-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #64748b;
    font-size: 1rem;
}

.selector-empty-state__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.selector-empty-state__subtext {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #6b7280;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__dialog {
    width: calc(100% - 32px);
    max-width: 960px;
    margin: 24px auto;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__content {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    background: #ffffff;
    max-height: calc(100vh - 48px);
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 20px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__title-wrap {
    min-width: 0;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__header .modal-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f172a;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__header .modal-subtitle {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    line-height: 1.45;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__body {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 16px 20px 12px;
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-bar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-label,
.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-input {
    height: 38px;
    border-radius: 0.5rem;
    border-color: #d7dee7;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-input--keyword {
    flex: 1 1 100%;
    min-width: 0;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select {
    min-width: 116px;
    width: 116px;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-label {
    flex: 0 0 auto;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__toolbar {
    margin-bottom: 0;
    margin-top: 0.75rem;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__toolbar-btn {
    min-height: 38px;
    padding: 0.48rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: none;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__helper {
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.83rem;
    line-height: 1.45;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-reset {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.35rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.84rem;
    font-weight: 600;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-input-wrap {
    flex: 1 1 460px;
    min-width: 320px;
    width: auto;
    margin-bottom: 0;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .search-customer-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .search-customer-wrapper .input-group-prepend {
    display: flex;
    margin-right: 0;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .search-customer-wrapper .search-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    background: #eff5ff;
    color: #2563eb;
    border: 1px solid #d6e4ff;
    border-right: 0;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .search-customer-wrapper input {
    height: 38px;
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 0 8px 8px 0;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__list {
    flex: 1 1 auto;
    max-height: 420px;
    overflow-y: auto;
    padding: 0 20px 0;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__feedback {
    margin: 0 20px 16px;
    padding: 1.1rem 1rem;
    border: 1px dashed #d7e3f4;
    border-radius: 0.75rem;
    background: #f8fbff;
    color: #475569;
    text-align: center;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__feedback--error {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b91c1c;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    gap: 0.75rem;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pagination-wrapper {
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-top: 1px solid #eef2f7;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pagination-wrapper__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__page-btn {
    min-width: 74px;
    min-height: 34px;
    border-radius: 0.45rem;
    border: 1px solid #dbe4ef;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.82rem;
    font-weight: 700;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__page-btn:disabled {
    background: #f8fafc;
    color: #9ca3af;
    cursor: not-allowed;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__list table {
    margin-bottom: 0;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__list thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f9fafb;
    border-top: 0;
    padding: 0.72rem 0.8rem;
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__list tbody td {
    padding: 0.58rem 0.8rem;
    border-top: 1px solid #eef2f7;
    vertical-align: middle;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selectable td {
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selectable:hover td {
    background: #f3f4f6;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__actions {
    width: 140px;
    min-width: 140px;
    text-align: right;
    white-space: nowrap;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__actions-col {
    width: 140px;
    min-width: 140px;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pos-transaction-actions__group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn {
    min-width: 96px;
    height: 34px;
    padding: 0 0.78rem;
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    white-space: nowrap;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn:hover,
.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn:focus {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 0 0 0.18rem rgba(59, 130, 246, 0.14);
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn--selected,
.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn--selected:disabled {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
    cursor: default;
    opacity: 1;
    box-shadow: none;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn__label {
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__primary-text {
    color: #0f172a;
    font-weight: 700;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__name-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex-wrap: wrap;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 0.68rem;
    font-weight: 700;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__address-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__phone-text {
    white-space: nowrap;
    color: #374151;
    font-weight: 500;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__empty-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #1f2937;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__empty-subtext {
    margin-top: 0.18rem;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.45;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__pagination-info {
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.4;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selected td {
    background-color: rgba(37, 99, 235, 0.11);
    border-top-color: rgba(147, 197, 253, 0.95);
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selected td:first-child {
    box-shadow: inset 4px 0 0 #2563eb;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selected .customer-pos-modal__primary-text {
    color: #1d4ed8;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pos-transaction-number-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pos-transaction-selected-indicator {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2563eb;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selected .pos-transaction-selected-indicator {
    opacity: 1;
    transform: scale(1);
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__dialog {
    width: calc(100% - 32px);
    max-width: 960px;
    margin: 24px auto;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__content {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    background: #ffffff;
    max-height: calc(100vh - 48px);
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 20px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__title-wrap {
    min-width: 0;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__header .modal-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f172a;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__header .modal-subtitle {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    line-height: 1.45;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__body {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 16px 20px 12px;
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-bar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-label,
#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-input {
    height: 38px;
    border-radius: 0.5rem;
    border-color: #d7dee7;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-input--keyword {
    flex: 1 1 100%;
    min-width: 0;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select {
    min-width: 116px;
    width: 116px;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-label {
    flex: 0 0 auto;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__toolbar {
    margin-bottom: 0;
    margin-top: 0.75rem;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__toolbar-btn {
    min-height: 38px;
    padding: 0.48rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: none;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__helper {
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.83rem;
    line-height: 1.45;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-reset {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.35rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.84rem;
    font-weight: 600;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-input-wrap {
    flex: 1 1 460px;
    min-width: 320px;
    width: auto;
    margin-bottom: 0;
}

#salesQuickCustomerModal.customer-pos-modal .search-customer-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

#salesQuickCustomerModal.customer-pos-modal .search-customer-wrapper .input-group-prepend {
    display: flex;
    margin-right: 0;
}

#salesQuickCustomerModal.customer-pos-modal .search-customer-wrapper .search-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    background: #eff5ff;
    color: #2563eb;
    border: 1px solid #d6e4ff;
    border-right: 0;
}

#salesQuickCustomerModal.customer-pos-modal .search-customer-wrapper input {
    height: 38px;
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 0 8px 8px 0;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__list {
    flex: 1 1 auto;
    max-height: 420px;
    overflow-y: auto;
    padding: 0 20px 0;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__feedback {
    margin: 0 20px 16px;
    padding: 1.1rem 1rem;
    border: 1px dashed #d7e3f4;
    border-radius: 0.75rem;
    background: #f8fbff;
    color: #475569;
    text-align: center;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__feedback--error {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b91c1c;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    gap: 0.75rem;
}

#salesQuickCustomerModal.customer-pos-modal .pagination-wrapper {
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-top: 1px solid #eef2f7;
}

#salesQuickCustomerModal.customer-pos-modal .pagination-wrapper__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__page-btn {
    min-width: 74px;
    min-height: 34px;
    border-radius: 0.45rem;
    border: 1px solid #dbe4ef;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.82rem;
    font-weight: 700;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__page-btn:disabled {
    background: #f8fafc;
    color: #9ca3af;
    cursor: not-allowed;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__list table {
    margin-bottom: 0;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__list thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f9fafb;
    border-top: 0;
    padding: 0.72rem 0.8rem;
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__list tbody td {
    padding: 0.58rem 0.8rem;
    border-top: 1px solid #eef2f7;
    vertical-align: middle;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selectable td {
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selectable:hover td {
    background: #f3f4f6;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__actions {
    width: 140px;
    min-width: 140px;
    text-align: right;
    white-space: nowrap;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__actions-col {
    width: 140px;
    min-width: 140px;
}

#salesQuickCustomerModal.customer-pos-modal .pos-transaction-actions__group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

#salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn {
    min-width: 96px;
    height: 34px;
    padding: 0 0.78rem;
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    white-space: nowrap;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

#salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn:hover,
#salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn:focus {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 0 0 0.18rem rgba(59, 130, 246, 0.14);
}

#salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn--selected,
#salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn--selected:disabled {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
    cursor: default;
    opacity: 1;
    box-shadow: none;
}

#salesQuickCustomerModal.customer-pos-modal .pos-customer-action-btn__label {
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__primary-text {
    color: #0f172a;
    font-weight: 700;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__name-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex-wrap: wrap;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 0.68rem;
    font-weight: 700;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__address-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__phone-text {
    white-space: nowrap;
    color: #374151;
    font-weight: 500;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__empty-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #1f2937;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__empty-subtext {
    margin-top: 0.18rem;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.45;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__pagination-info {
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.4;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selected td {
    background-color: rgba(37, 99, 235, 0.11);
    border-top-color: rgba(147, 197, 253, 0.95);
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selected td:first-child {
    box-shadow: inset 4px 0 0 #2563eb;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selected .customer-pos-modal__primary-text {
    color: #1d4ed8;
}

#salesQuickCustomerModal.customer-pos-modal .pos-transaction-number-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#salesQuickCustomerModal.customer-pos-modal .pos-transaction-selected-indicator {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2563eb;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__row--selected .pos-transaction-selected-indicator {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 767.98px) {
    .selector-modal .modal-dialog,
    .purchase-module-page .selector-modal .modal-dialog,
    .delivery-page .selector-modal .modal-dialog,
    .production-mobile-page .selector-modal .modal-dialog,
    .production-admin-page .selector-modal .modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem;
    }

    .selector-modal .modal-body,
    .selector-modal .modal-header,
    .selector-modal .modal-footer {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .selector-datatable-wrap .selector-toolbar {
        align-items: stretch;
    }

    .selector-datatable-wrap .selector-toolbar label {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .selector-reset-btn {
        width: 100%;
    }

    .selector-modal--customer .modal-header,
    .selector-modal--customer .modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .selector-modal--customer .selector-toolbar label,
    .selector-modal--customer .selector-toolbar,
    .selector-modal--customer .selector-length {
        width: 100%;
    }

    .selector-modal--customer .selector-toolbar label,
    .selector-modal--customer .selector-search-input {
        min-width: 0;
    }

    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
    }

    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__content {
        max-height: calc(100vh - 16px);
    }

    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__header,
    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search,
    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__list {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__feedback,
    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__pagination {
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 0;
        padding-right: 0;
    }

    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .pagination-wrapper {
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-bar {
        flex-wrap: wrap;
    }

    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select-wrap,
    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-input-wrap,
    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-reset {
        width: 100%;
    }

    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select-wrap {
        justify-content: space-between;
    }

    .sales-quick-page #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-label {
        width: 100%;
    }

    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__dialog {
        width: calc(100% - 16px);
        margin: 8px auto;
    }

    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__content {
        max-height: calc(100vh - 16px);
    }

    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__header,
    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search,
    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__list {
        padding-left: 16px;
        padding-right: 16px;
    }

    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__feedback,
    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__pagination {
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 0;
        padding-right: 0;
    }

    #salesQuickCustomerModal.customer-pos-modal .pagination-wrapper {
        padding-top: 12px;
        padding-bottom: 14px;
    }

    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-bar {
        flex-wrap: wrap;
    }

    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select-wrap,
    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-input-wrap,
    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-reset {
        width: 100%;
    }

    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select-wrap {
        justify-content: space-between;
    }

    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-label {
        width: 100%;
    }
}
.sales-quick-page .sales-quick-table-card-body {
    padding-top: 0.85rem;
    padding-bottom: 0.75rem;
}

.sales-quick-page .delivery-table-card {
    margin-bottom: 0;
}

.sales-quick-page .delivery-report-data-header {
    padding-bottom: 0.8rem;
}

.sales-quick-page .delivery-report-data-header .delivery-report-subtitle {
    margin-top: 0.3rem;
    max-width: 760px;
    line-height: 1.5;
}

.sales-quick-page {
    --sales-quick-action-width: 170px;
    --sales-quick-customer-width: 280px;
    --sales-quick-payment-method-1-width: 150px;
    --sales-quick-payment-amount-1-width: 130px;
    --sales-quick-payment-method-2-width: 150px;
    --sales-quick-payment-amount-2-width: 130px;
    --sales-quick-header-bg: #f8fafc;
    --sales-quick-sticky-cell-bg: #ffffff;
}

.sales-quick-page .sales-quick-action-group {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0;
}

.sales-quick-page .sales-quick-action-group .btn {
    min-width: 46px;
}

.sales-quick-page #salesQuickTransactionTable {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    width: max-content !important;
    min-width: 100%;
}

.sales-quick-page .sales-quick-table-scroll,
.sales-quick-page .dataTables_scrollBody {
    position: relative;
}

.sales-quick-page .dataTables_scrollHead {
    position: sticky !important;
    top: 0;
    z-index: 12;
    background: var(--sales-quick-header-bg);
    box-shadow: 0 2px 0 rgba(222, 226, 230, 0.92), 0 6px 12px rgba(15, 23, 42, 0.06);
}

.sales-quick-page #salesQuickTransactionTable thead th,
.sales-quick-page .dataTables_scrollHead table thead th {
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 8;
    background: var(--sales-quick-header-bg);
    box-shadow: 0 1px 0 rgba(222, 226, 230, 0.95);
}

.sales-quick-page #salesQuickTransactionTable th,
.sales-quick-page #salesQuickTransactionTable td,
.sales-quick-page .dataTables_scrollHead table th,
.sales-quick-page .dataTables_scrollHead table td {
    box-sizing: border-box;
}

.sales-quick-page #salesQuickTransactionTable .sqt-col,
.sales-quick-page .dataTables_scrollHead table .sqt-col {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sales-quick-page #salesQuickTransactionTable .sqt-col-action,
.sales-quick-page .dataTables_scrollHead table .sqt-col-action {
    min-width: var(--sales-quick-action-width);
    width: var(--sales-quick-action-width);
    max-width: var(--sales-quick-action-width);
}

.sales-quick-page #salesQuickTransactionTable .sqt-col-customer,
.sales-quick-page .dataTables_scrollHead table .sqt-col-customer {
    min-width: 250px;
    width: var(--sales-quick-customer-width);
    max-width: var(--sales-quick-customer-width);
    overflow: visible;
    text-overflow: clip;
}

.sales-quick-page #salesQuickTransactionTable .sqt-col-date,
.sales-quick-page .dataTables_scrollHead table .sqt-col-date {
    min-width: 110px;
    width: 110px;
}

.sales-quick-page #salesQuickTransactionTable .sqt-col-time,
.sales-quick-page .dataTables_scrollHead table .sqt-col-time {
    min-width: 86px;
    width: 86px;
}

.sales-quick-page #salesQuickTransactionTable .sqt-col-status,
.sales-quick-page .dataTables_scrollHead table .sqt-col-status {
    min-width: 108px;
    width: 108px;
}

.sales-quick-page #salesQuickTransactionTable .sqt-col-moka,
.sales-quick-page .dataTables_scrollHead table .sqt-col-moka {
    min-width: 82px;
    width: 82px;
}

.sales-quick-page #salesQuickTransactionTable .sqt-col-money,
.sales-quick-page .dataTables_scrollHead table .sqt-col-money {
    min-width: 120px;
    width: 120px;
}

.sales-quick-page #salesQuickTransactionTable .sqt-col-payment-method:nth-child(10),
.sales-quick-page .dataTables_scrollHead table .sqt-col-payment-method:nth-child(10) {
    min-width: 120px;
    width: var(--sales-quick-payment-method-1-width);
    max-width: var(--sales-quick-payment-method-1-width);
}

.sales-quick-page #salesQuickTransactionTable .sqt-col-payment-amount:nth-child(11),
.sales-quick-page .dataTables_scrollHead table .sqt-col-payment-amount:nth-child(11) {
    min-width: 120px;
    width: var(--sales-quick-payment-amount-1-width);
    max-width: var(--sales-quick-payment-amount-1-width);
}

.sales-quick-page #salesQuickTransactionTable .sqt-col-payment-method:nth-child(12),
.sales-quick-page .dataTables_scrollHead table .sqt-col-payment-method:nth-child(12) {
    min-width: 120px;
    width: var(--sales-quick-payment-method-2-width);
    max-width: var(--sales-quick-payment-method-2-width);
}

.sales-quick-page #salesQuickTransactionTable .sqt-col-payment-amount:nth-child(13),
.sales-quick-page .dataTables_scrollHead table .sqt-col-payment-amount:nth-child(13) {
    min-width: 120px;
    width: var(--sales-quick-payment-amount-2-width);
    max-width: var(--sales-quick-payment-amount-2-width);
}

.sales-quick-page .sqt-resizable-col {
    position: relative;
    padding-right: 1.05rem !important;
}

.sales-quick-page .sqt-col-resize-handle {
    position: absolute;
    top: 0.35rem;
    right: 0;
    bottom: 0.35rem;
    width: 10px;
    cursor: col-resize;
    border-right: 2px solid rgba(100, 116, 139, 0.34);
    opacity: 0;
    transition: opacity 0.16s ease, border-color 0.16s ease;
    z-index: 20;
}

.sales-quick-page .sqt-resizable-col:hover .sqt-col-resize-handle,
.sales-quick-page .sqt-col-resize-handle:focus,
.sales-quick-page.is-resizing-sqt-col .sqt-col-resize-handle {
    opacity: 1;
}

.sales-quick-page .sqt-col-resize-handle:hover,
.sales-quick-page .sqt-col-resize-handle:focus {
    border-right-color: #2563eb;
}

.sales-quick-page.is-resizing-sqt-col,
.sales-quick-page.is-resizing-sqt-col * {
    cursor: col-resize !important;
    user-select: none;
}

.sales-quick-page #salesQuickTransactionTable thead th:nth-child(1),
.sales-quick-page .dataTables_scrollHead table thead th:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 9;
    background: var(--sales-quick-sticky-cell-bg);
}

.sales-quick-page #salesQuickTransactionTable thead th:nth-child(2),
.sales-quick-page .dataTables_scrollHead table thead th:nth-child(2),
.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(2) {
    position: sticky;
    left: var(--sales-quick-action-width);
    z-index: 8;
    background: var(--sales-quick-sticky-cell-bg);
    overflow: visible;
}

.sales-quick-page #salesQuickTransactionTable thead th:nth-child(1),
.sales-quick-page #salesQuickTransactionTable thead th:nth-child(2),
.sales-quick-page .dataTables_scrollHead table thead th:nth-child(1),
.sales-quick-page .dataTables_scrollHead table thead th:nth-child(2) {
    z-index: 14;
    background: var(--sales-quick-header-bg);
}

.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(2) {
    box-shadow: 1px 0 0 rgba(222, 226, 230, 0.9), 8px 0 12px rgba(15, 23, 42, 0.04);
}

.sales-quick-page #salesQuickTransactionTable tbody tr:hover > td:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody tr:hover > td:nth-child(2) {
    background: #fffaf5;
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-moka-done > td {
    background: #c9edd1;
    border-top-color: #9fd7ad;
    border-bottom-color: #9fd7ad;
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-moka-done:hover > td {
    background: #b7e5c2;
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-moka-done > td:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody tr.row-moka-done > td:nth-child(2) {
    background: #c9edd1;
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-moka-done > td:nth-child(1) {
    box-shadow: inset 5px 0 0 #2f9e57, 1px 0 0 rgba(159, 215, 173, 0.95);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-moka-done > td:nth-child(2) {
    box-shadow: 1px 0 0 rgba(159, 215, 173, 0.95);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-moka-done:hover > td:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody tr.row-moka-done:hover > td:nth-child(2) {
    background: #b7e5c2;
}

.sales-quick-page #salesQuickTransactionTable tbody tr.sales-quick-row-saving > td {
    opacity: 0.72;
    transition: opacity 0.18s ease;
}

.sales-quick-page .sales-quick-status-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}
.sales-quick-page #salesQuickTransactionTable tbody tr.row-moka-done .badge {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-refunded > td {
    background: rgba(220, 53, 69, 0.10);
    border-top-color: rgba(220, 53, 69, 0.18);
    border-bottom-color: rgba(220, 53, 69, 0.18);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-refunded:hover > td {
    background: rgba(220, 53, 69, 0.14);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-refunded > td:nth-child(1) {
    box-shadow: inset 4px 0 0 #dc3545, 1px 0 0 rgba(220, 53, 69, 0.16);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-refunded > td:nth-child(2) {
    box-shadow: 1px 0 0 rgba(220, 53, 69, 0.16);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-refunded > td:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody tr.row-refunded > td:nth-child(2),
.sales-quick-page #salesQuickTransactionTable tbody tr.row-refunded:hover > td:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody tr.row-refunded:hover > td:nth-child(2) {
    background: rgba(220, 53, 69, 0.10);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-checked > td {
    background: rgba(13, 110, 253, 0.10);
    border-top-color: rgba(13, 110, 253, 0.18);
    border-bottom-color: rgba(13, 110, 253, 0.18);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-checked:hover > td {
    background: rgba(13, 110, 253, 0.14);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-checked > td:nth-child(1) {
    box-shadow: inset 4px 0 0 #0d6efd, 1px 0 0 rgba(13, 110, 253, 0.16);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-checked > td:nth-child(2) {
    box-shadow: 1px 0 0 rgba(13, 110, 253, 0.16);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-checked > td:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody tr.row-checked > td:nth-child(2),
.sales-quick-page #salesQuickTransactionTable tbody tr.row-checked:hover > td:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody tr.row-checked:hover > td:nth-child(2) {
    background: rgba(13, 110, 253, 0.10);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-unpaid > td {
    background: rgba(255, 193, 7, 0.16);
    border-top-color: rgba(255, 193, 7, 0.22);
    border-bottom-color: rgba(255, 193, 7, 0.22);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-unpaid:hover > td {
    background: rgba(255, 193, 7, 0.20);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-unpaid > td:nth-child(1) {
    box-shadow: inset 4px 0 0 #ffc107, 1px 0 0 rgba(255, 193, 7, 0.18);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-unpaid > td:nth-child(2) {
    box-shadow: 1px 0 0 rgba(255, 193, 7, 0.18);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-unpaid > td:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody tr.row-unpaid > td:nth-child(2),
.sales-quick-page #salesQuickTransactionTable tbody tr.row-unpaid:hover > td:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody tr.row-unpaid:hover > td:nth-child(2) {
    background: rgba(255, 193, 7, 0.16);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-old-transaction > td {
    color: rgba(33, 37, 41, 0.88);
}

.sales-quick-page #salesQuickTransactionTable tbody tr.row-old-transaction > td .btn,
.sales-quick-page #salesQuickTransactionTable tbody tr.row-old-transaction > td .badge,
.sales-quick-page #salesQuickTransactionTable tbody tr.row-old-transaction > td .ra-toggle-wrap,
.sales-quick-page #salesQuickTransactionTable tbody tr.row-old-transaction > td .ra-toggle-switch,
.sales-quick-page #salesQuickTransactionTable tbody tr.row-old-transaction > td .ra-toggle-slider {
    opacity: 1;
}

.sales-quick-page #salesQuickTransactionTable thead th:nth-child(2),
.sales-quick-page .dataTables_scrollHead table thead th:nth-child(2),
.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(2) {
    min-width: 250px;
    width: var(--sales-quick-customer-width);
    max-width: var(--sales-quick-customer-width);
}

.sales-quick-page #salesQuickTransactionTable thead th:nth-child(1),
.sales-quick-page .dataTables_scrollHead table thead th:nth-child(1),
.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(1) {
    min-width: var(--sales-quick-action-width);
    width: var(--sales-quick-action-width);
    max-width: var(--sales-quick-action-width);
}

.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(2) {
    white-space: normal;
    overflow: visible;
}

.sales-quick-page #salesQuickTransactionTable .sales-quick-customer-cell,
.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(2) {
    min-width: 250px;
    width: var(--sales-quick-customer-width);
    max-width: var(--sales-quick-customer-width);
    overflow: visible;
}

.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(2) > div.font-weight-bold {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    margin-bottom: 0.14rem;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
}

.sales-quick-page .sales-quick-customer-meta {
    gap: 0.2rem 0.55rem;
    margin-top: 0.16rem;
    line-height: 1.35;
}

.sales-quick-page .sales-quick-customer-meta span {
    display: inline-flex;
    align-items: center;
}

.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(2) .badge {
    margin-top: 0.28rem;
}

.sales-quick-page .sales-quick-action-group .btn {
    min-width: 42px;
    padding-left: 0.38rem;
    padding-right: 0.38rem;
    font-size: 0.85rem;
}
.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(1) {
    overflow: hidden;
}

.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(5),
.sales-quick-page #salesQuickTransactionTable tbody td:nth-child(6) {
    vertical-align: middle;
    text-align: center;
}

@media (max-width: 767.98px) {
    .sales-quick-page {
        --sales-quick-action-width: 132px;
        --sales-quick-customer-width: 230px;
    }

    .sales-quick-page #salesQuickTransactionTable thead th:nth-child(2),
    .sales-quick-page .dataTables_scrollHead table thead th:nth-child(2),
    .sales-quick-page #salesQuickTransactionTable tbody td:nth-child(2) {
        min-width: 220px;
        max-width: 240px;
    }

    .sales-quick-page .sales-quick-action-group .btn {
        min-width: 38px;
    }

    .sales-quick-page .sqt-col-resize-handle {
        display: none;
    }
}

/* Keep the sales quick customer lookup identical to the POS customer lookup toolbar. */
#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-bar {
    display: flex !important;
    align-items: center !important;
    gap: 0.7rem !important;
    flex-wrap: wrap !important;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-label,
#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-label {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    width: auto !important;
    white-space: nowrap !important;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select {
    width: auto !important;
    min-width: 116px !important;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-input-wrap {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 460px !important;
    min-width: 320px !important;
    width: auto !important;
    margin-bottom: 0 !important;
}

#salesQuickCustomerModal.customer-pos-modal .search-customer-wrapper {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

#salesQuickCustomerModal.customer-pos-modal .search-customer-wrapper .input-group-prepend {
    display: flex !important;
    margin-right: 0 !important;
}

#salesQuickCustomerModal.customer-pos-modal .search-customer-wrapper input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 320px !important;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-reset {
    flex: 0 0 auto !important;
    width: auto !important;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__helper {
    margin-top: 0.75rem !important;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__toolbar {
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
}

#salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__name-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
}

#salesQuickCustomerModal.customer-pos-modal .pos-transaction-actions__group {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

@media (max-width: 991.98px) {
    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select-wrap,
    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-input-wrap,
    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-reset,
    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__search-label {
        width: 100% !important;
    }

    #salesQuickCustomerModal.customer-pos-modal .customer-pos-modal__filter-select-wrap {
        justify-content: space-between !important;
    }
}
