:root {
    --border-radius: 30px;
    --wpd-color: #0c2a6d;
    --wpd-secondary-color: #e54304;
    --wpd-text-menu-color: #fff;
    --wpd-table-odd: #e8f3f4;
    --wpd-table-even: #fff;
    --wpd-header-color: #e4f3ff;
    --wpd-top-bar-color: #ffcc6c;
    --wpd-body-font-size: 0.9rem;
    --wpd-body-font-family: "Roboto", sans-serif;
    --wpd-body-font-weight: 400;
    --wpd-body-bg: #fffaf8;
    --border-radius-selected-menu: 0 30px 30px 0;

    /* Additional variables for comprehensive theming */
    --wpd-danger-color: #fd0000;
    --wpd-danger-border: #f00;
    --wpd-text-color: #646464;
    --wpd-input-bg: #e8f3f4;
    --wpd-placeholder-color: rgb(109, 109, 109);
    --wpd-card-shadow: 0px 1px 4px rgba(0, 0, 0, 0.16);
    --wpd-card-header-border: solid rgba(19, 19, 19, 0.4);
    --wpd-primary-gradient: linear-gradient(
        135deg,
        var(--wpd-color) 0%,
        #6fcf97 100%
    );
    --wpd-secondary-gradient: linear-gradient(135deg, #ee7926 0%, #ffcc6c 100%);
    --wpd-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --wpd-success-color: #28a745;
    --wpd-info-color: #17a2b8;
    --wpd-warning-color: #ffc107;
    --wpd-light-bg: #f8f9fa;
    --wpd-dark-text: #343a40;
    --wpd-muted-text: #6c757d;
    --wpd-border-color: #e9ecef;
    --wpd-modal-overlay: rgba(0, 0, 0, 0.5);
    --wpd-overlay-light: rgba(255, 255, 255, 0.8);
    --wpd-overlay-dark: rgba(0, 0, 0, 0.1);

    --nndi-blue: #1a2b6b;
    --nndi-blue-mid: #2563eb;
    --nndi-orange: #f97316;
    --nndi-green: #16a34a;
    --nndi-red: #dc2626;
    --nndi-yellow: #facc15;
    --nndi-bg: #f0f4ff;
    --nndi-card: #ffffff;
    --nndi-border: #e2e8f0;
    --nndi-text: #1e293b;
    --nndi-muted: #64748b;
    --nndi-radius: 14px;
    --nndi-shadow: 0 2px 16px rgba(26, 43, 107, 0.08);
    --nndi-shadow-hv: 0 8px 32px rgba(26, 43, 107, 0.16);

    --nnri-blue: #1a2b6b;
    --nnri-mid: #2563eb;
    --nnri-orange: #f97316;
    --nnri-green: #16a34a;
    --nnri-red: #dc2626;
    --nnri-bg: #f0f4ff;
    --nnri-card: #ffffff;
    --nnri-border: #e2e8f0;
    --nnri-text: #1e293b;
    --nnri-muted: #64748b;
    --nnri-radius: 14px;
    --nnri-shadow: 0 2px 16px rgba(26, 43, 107, 0.08);
    --nnri-shadow-h: 0 8px 32px rgba(26, 43, 107, 0.16);

    --uv-ink: #0f172a;
    --uv-dim: #64748b;
    --uv-ghost: #94a3b8;
    --uv-line: #f1f5f9;
    --uv-bg: #f8fafc;
    --uv-white: #ffffff;
    --uv-blue: #1e40af;
    --uv-sky: #0ea5e9;
    --uv-emerald: #059669;
    --uv-amber: #d97706;
    --uv-rose: #e11d48;
    --uv-radius: 6px;

    --dmv-ink: #0f172a;
    --dmv-dim: #64748b;
    --dmv-ghost: #94a3b8;
    --dmv-line: #f1f5f9;
    --dmv-bg: #f8fafc;
    --dmv-white: #ffffff;
    --dmv-blue: #1e40af;
    --dmv-sky: #0ea5e9;
    --dmv-emerald: #059669;
    --dmv-amber: #d97706;
    --dmv-rose: #e11d48;
    --dmv-radius: 6px;

    --dmlv-ink: #0f172a;
    --dmlv-dim: #64748b;
    --dmlv-ghost: #94a3b8;
    --dmlv-line: #f1f5f9;
    --dmlv-bg: #f8fafc;
    --dmlv-white: #ffffff;
    --dmlv-blue: #1e40af;
    --dmlv-sky: #0ea5e9;
    --dmlv-emerald: #059669;
    --dmlv-amber: #d97706;
    --dmlv-rose: #e11d48;
    --dmlv-radius: 6px;

    --bmv-ink: #0f172a;
    --bmv-dim: #64748b;
    --bmv-ghost: #94a3b8;
    --bmv-line: #f1f5f9;
    --bmv-bg: #f8fafc;
    --bmv-white: #ffffff;
    --bmv-blue: #1e40af;
    --bmv-sky: #0ea5e9;
    --bmv-emerald: #059669;
    --bmv-amber: #d97706;
    --bmv-rose: #e11d48;
    --bmv-radius: 6px;

    --dpv-ink: #0f172a;
    --dpv-dim: #64748b;
    --dpv-ghost: #94a3b8;
    --dpv-line: #f1f5f9;
    --dpv-bg: #f8fafc;
    --dpv-white: #ffffff;
    --dpv-blue: #1e40af;
    --dpv-sky: #0ea5e9;
    --dpv-emerald: #059669;
    --dpv-amber: #d97706;
    --dpv-rose: #e11d48;
    --dpv-radius: 8px;

    --ov-ink: #0f172a;
    --ov-dim: #64748b;
    --ov-ghost: #94a3b8;
    --ov-line: #f1f5f9;
    --ov-bg: #f8fafc;
    --ov-white: #ffffff;
    --ov-blue: #1e40af;
    --ov-sky: #0ea5e9;
    --ov-emerald: #059669;
    --ov-amber: #d97706;
    --ov-rose: #e11d48;
    --ov-radius: 6px;
}

body {
    font-family: var(--wpd-body-font-family);
    font-size: var(--wpd-body-font-size);
    font-weight: var(--wpd-body-font-weight);
    background: var(--wpd-body-bg) !important;
    color: var(--wpd-text-color) !important;
}

.navbar-custom {
    background-color: var(--wpd-table-even) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loginbg {
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    background: url("../img/login-image.png") no-repeat center center;
    background-size: cover;
}

@media (max-width: 991.98px) {
    .loginbg {
        background: url("../img/login-mob.png") no-repeat center center;
        background-size: cover;
    }

    .long-width {
        width: 100% !important;
        max-width: 100% !important;
    }

    .login-content {
        margin: 0 auto;
        width: 90% !important;
        padding: 2rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .loginbg {
        background: url("../img/login-image.png") no-repeat center center;
        background-size: cover;
    }

    .login-content {
        padding: 2.5rem !important;
    }
}

@media (min-width: 992px) {
    .loginbg {
        background: url("../img/login-image.png") no-repeat center center;
        background-size: 100% 100%;
    }

    /* Ensure proper column layout */
    .loginbg > div:first-child {
        min-height: 100vh;
    }
}

.card-shadow {
    box-shadow: var(--wpd-card-shadow);
    border-radius: 10px !important;
}

.card-header {
    border-radius: 10px 10px 0px 0px !important;
    background-color: var(--wpd-table-even);
    border-bottom: var(--wpd-card-header-border);
}

.left-side-menu {
    background: var(--wpd-color) !important;
    box-shadow: none !important;
}

.login-body {
    background: #cddffb !important;
}

.login_card {
    background-color: #ffffffeb !important;
}

.login-img {
    z-index: 100000;
    position: relative;
}

.submit_btn {
    float: right;
}

.page-title-main.page {
    padding: 0 0px;
}

.menu_icon {
    color: #323a46 !important;
    margin-top: 2% !important;
}

#sidebar-menu .menuitem-active .active {
    background: var(--wpd-secondary-color) !important;
    border-left: 10px solid var(--wpd-text-menu-color);
    font-weight: bold;
    color: var(--wpd-text-menu-color) !important;
    border-radius: var(--border-radius-selected-menu);
}

#sidebar-menu .menuitem-active {
    border-radius: 20px;
}

.pro-user-name i {
    margin-left: 10px !important;
}

.page-title-main.page {
    color: #000 !important;
}

.btn-primary {
    background-color: var(--wpd-color) !important;
    border-color: var(--wpd-color) !important;
}

#sidebar-menu > ul > li > a {
    color: var(--wpd-text-menu-color) !important;
    font-family: var(--wpd-body-font-family) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
}

.btn-danger {
    background-color: var(--wpd-danger-color) !important;
    border-color: var(--wpd-danger-border) !important;
}

.sign-in-container {
    overflow-y: clip;
    height: 100vh;
}

.search_btn {
    border-radius: 0px 5px 5px 0px !important;
    padding: 0.42rem 0.9rem !important;
}

.search_input {
    border-radius: 5px 0px 0px 5px !important;
}

.search_align {
    margin-right: 10px;
    border-radius: 0px 5px 5px 0px !important;
    padding: 0.42rem 0.9rem !important;
}

.short-description-show {
    display: -webkit-box;
    max-width: 200px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.title-short-description-show {
    display: -webkit-box;
    max-width: 400px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-title {
    font-family: var(--wpd-body-font-family) !important;
    font-weight: 500 !important;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--wpd-body-font-family) !important;
}

.col-form-label {
    font-weight: 500 !important;
}

.form-control {
    font-weight: 500 !important;
}

a[href^="tel:"],
a[href^="mailto:"],
a,
a:hover {
    color: var(--wpd-text-color);
}

.dropdown.user-card.drop-down-custom {
    right: 45px;
    top: 15px;
}

.dropdown.chat.drop-down-custom {
    top: 10px;
}

.dropdown.drop-down-custom {
    font-size: 20px;
    z-index: 1000000 !important;
}

.drop-down-custom i {
    color: #98a6ad;
}

table td {
    vertical-align: middle;
}

.image-circle {
    height: 40px;
    width: 40px;
}

.text-hide {
    width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-check.check {
    padding-left: 2.643em !important;
}

.dropify-wrapper .dropify-message span.file-icon p {
    font-size: 15px;
    color: #ccc;
}

.dt-button {
    color: var(--wpd-text-menu-color) !important;
    background: var(--wpd-color) !important;
    border-color: var(--wpd-color) !important;
    margin-bottom: 8px !important;
}

.toggle-switch-margin {
    margin-left: 1.5em !important;
    margin-top: -32px;
}
.border-radius,
.form-select-sm,
.form-control,
.form-select,
div.bulk-select-container,
.btn-theme-second-success,
.btn-primary,
#datatableSearch,
.btn-theme-success,
.btn-sm.dropdown-toggle,
.swal2-popup .swal2-confirm,
.swal2-styled.swal2-cancel {
    border-radius: var(--border-radius) !important;
}

.border-radius,
.form-select-sm,
.form-control,
.form-select,
div.bulk-select-container,
.btn-theme-second-success,
.btn-primary,
#datatableSearch,
.btn-theme-success,
.btn-sm.dropdown-toggle,
.swal2-popup .swal2-confirm,
.swal2-styled.swal2-cancel {
    border-radius: var(--border-radius) !important;
}

.input-group .form-control#location-search,
.form-control#passwordField,
#reportrange span,
.filter-logic-toggle .btn:first-child,
.saved-filters-dropdown,
.login-content #emailaddress,
.login-content #password {
    border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
}

.input-group .btn-outline-secondary,
.input-group .btn-primary,
#reportrange #date-range {
    border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
}

.paginate_button.page-item.next .page-link {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.paginate_button.page-item.previous .page-link {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}
.btn.btn-sm.btn-outline-danger.remove-rule-btn {
    padding-left: 10px;
    width: 30px;
}

.swal2-popup {
    border-radius: 25px !important;
}

.swal2-modal .swal2-confirm {
    background-color: var(--wpd-color) !important;
    padding: 7px 20px 7px 20px;
}

.swal2-styled.swal2-cancel {
    background-color: var(--wpd-secondary-color) !important;
    padding: 7px 20px 7px 20px;
}

.theme-menu-color {
    background-color: var(--wpd-color);
    color: var(--wpd-text-menu-color);
}

.logo-box,
.navbar-custom .logo-dark {
    background: var(--wpd-color) !important;
}

@media (max-width: 991px) {
    .navbar-custom .logo-dark {
        background: var(--wpd-color) !important;
    }
}

.user-name {
    border-radius: 10px;
    margin-top: 10px;
    padding: 8px !important;
    line-height: 34px !important;
}

.login-text {
    color: var(--wpd-secondary-color) !important;
    margin-top: 70px !important;
    font-size: 40px;
}

.login-button {
    background-color: var(--wpd-secondary-color) !important;
    margin-top: 48px;
}

.login-form {
    height: 50px;
}

.login-label {
    color: var(--wpd-secondary-color);
}

.menu-text {
    color: var(--wpd-text-menu-color);
    margin-left: 10px;
}

/* Custom card backgrounds remain as they reference images */
.dash-card1 {
    background-image: url("../img/dash-card1.png");
}
.dash-card2 {
    background-image: url("../img/dash-card2.png");
}
.dash-card3 {
    background-image: url("../img/dash-card3.png");
}
.dash-card4 {
    background-image: url("../img/dash-card4.png");
}
.dash-card5 {
    background-image: url("../img/dash-card5.png");
}
.dash-card6 {
    background-image: url("../img/dash-card6.png");
}
.dash-card7 {
    background-image: url("../img/dash-card7.png");
}
.order-card1 {
    background-image: url("../img/order-card1.png");
}
.order-card2 {
    background-image: url("../img/order-card2.png");
}
.order-card3 {
    background-image: url("../img/order-card3.png");
}
.order-card4 {
    background-image: url("../img/order-card4.png");
}
.user-card1 {
    background-image: url("../img/user-card1.png");
}
.user-card2 {
    background-image: url("../img/user-card2.png");
}
.user-card3 {
    background-image: url("../img/user-card3.png");
}
.user-card4 {
    background-image: url("../img/user-card4.png");
}
.delivery-man-leave-card1 {
    background-image: url("../img/delivery-man-leave-card1.png");
}
.delivery-man-leave-card2 {
    background-image: url("../img/delivery-man-leave-card2.png");
}
.delivery-man-leave-card3 {
    background-image: url("../img/delivery-man-leave-card3.png");
}
.delivery-man-leave-card4 {
    background-image: url("../img/delivery-man-leave-card4.png");
}

.bottle-missing-card1 {
    background-image: url("../img/bottle-missing-card1.png");
}
.bottle-missing-card2 {
    background-image: url("../img/bottle-missing-card2.png");
}
.bottle-missing-card3 {
    background-image: url("../img/bottle-missing-card3.png");
}
.bottle-missing-card4 {
    background-image: url("../img/bottle-missing-card4.png");
}
.user-report-card1 {
    background-image: url("../img/user-report-card1.png");
}
.user-report-card2 {
    background-image: url("../img/user-report-card2.png");
}
.user-report-card3 {
    background-image: url("../img/user-report-card3.png");
}
.user-report-card4 {
    background-image: url("../img/user-report-card4.png");
}
.order-report-card1 {
    background-image: url("../img/order-report-card1.png");
}
.order-report-card2 {
    background-image: url("../img/order-report-card2.png");
}
.order-report-card3 {
    background-image: url("../img/order-report-card3.png");
}
.order-report-card4 {
    background-image: url("../img/order-report-card4.png");
}
.juice-report-card1 {
    background-image: url("../img/juice-report-card1.png");
}
.juice-report-card2 {
    background-image: url("../img/juice-report-card2.png");
}
.juice-report-card3 {
    background-image: url("../img/juice-report-card3.png");
}
.juice-report-card4 {
    background-image: url("../img/juice-report-card4.png");
}
.delivery-report-card1 {
    background-image: url("../img/delivery-report-card1.png");
}
.delivery-report-card2 {
    background-image: url("../img/delivery-report-card2.png");
}
.delivery-report-card3 {
    background-image: url("../img/delivery-report-card3.png");
}
.delivery-report-card4 {
    background-image: url("../img/delivery-report-card4.png");
}
.juice-over-card1 {
    background-image: url("../img/juice-over-card1.png");
}
.juice-over-card2 {
    background-image: url("../img/juice-over-card2.png");
}
.juice-over-card3 {
    background-image: url("../img/juice-over-card3.png");
}
.juice-over-card4 {
    background-image: url("../img/juice-over-card4.png");
}

/* Common card styles */
.dash-card1,
.dash-card2,
.dash-card3,
.dash-card4,
.dash-card5,
.dash-card6,
.dash-card7,
.order-card1,
.order-card2,
.order-card3,
.order-card4,
.user-card1,
.user-card2,
.user-card3,
.user-card4,
.delivery-man-leave-card1,
.delivery-man-leave-card2,
.delivery-man-leave-card3,
.delivery-man-leave-card4,
.bottle-missing-card1,
.bottle-missing-card2,
.bottle-missing-card3,
.bottle-missing-card4,
.order-report-card1,
.order-report-card2,
.order-report-card3,
.order-report-card4,
.user-report-card1,
.user-report-card2,
.user-report-card3,
.user-report-card4,
.juice-report-card1,
.juice-report-card2,
.juice-report-card3,
.juice-report-card4,
.delivery-report-card1,
.delivery-report-card2,
.delivery-report-card3,
.delivery-report-card4,
.delivery-man-card1,
.delivery-man-card2 {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 10px;
    height: 170px;
}
.juice-over-card1,
.juice-over-card2,
.juice-over-card3,
.juice-over-card4 {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 10px;
}
.product-index-card1,
.product-index-card2,
.product-index-card3,
.product-index-card4 {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 10px;
    height: 120px;
}

.border-radius-table {
    border-radius: 10px;
}

.login-btn,
.add-btn,
.green-btn {
    background: var(--wpd-color);
    border-radius: var(--border-radius);
}
.green-btn {
    background: var(--wpd-success-color);
    border-radius: var(--border-radius);
}
.red-btn {
    background: var(--wpd-danger-color);
    border-radius: var(--border-radius);
}

#importProductsModal .modal-footer button {
    border-radius: var(--border-radius) !important;
}

.login-input {
    border-radius: 10px 0px 0px 10px !important;
}

.login-input-image {
    border-radius: 0px 10px 10px 0px !important;
}

.text-color {
    color: var(--wpd-color);
}

.logo span.logo-lg {
    display: block;
}

@media (min-width: 992px) {
    .logo-lg {
        margin-top: 70px;
    }

    #sidebar-menu {
        margin-top: 50px;
    }

    .logo.logo-dark {
        width: 260px;
    }
}

.button-color {
    background-color: var(--wpd-color) !important;
}

.dash-card-image {
    margin-left: -0.5rem !important;
}

.input-form.image {
    padding: 0.01rem 0.9rem;
}

.input-form {
    border-radius: var(--border-radius);
    background: var(--wpd-input-bg);
}

.input-text-form {
    height: 150px;
    border-radius: 10px;
    background: var(--wpd-input-bg);
}

.form-control[readonly] {
    background: var(--wpd-input-bg);
}

.input-form::placeholder,
.input-text-form::placeholder {
    color: var(--wpd-placeholder-color);
}

.table-theme {
    background: var(--wpd-color) !important;
}

.inr-input {
    border-radius: 10px 0px 0px 10px;
    background: var(--wpd-input-bg);
}

.save-btn {
    background: #2e2d70;
    border-radius: 10px;
    width: 100px;
}

.table-border .col-sm-12 {
    overflow: auto;
    border-radius: 15px;
    border: 1px solid var(--wpd-table-even);
    margin-top: 15px;
}

table.dataTable {
    margin-top: 0px !important;
}

.table-border-radius {
    border-radius: 15px;
}

.form-control::file-selector-button {
    padding: 0.85rem 0.9rem !important;
}

.card-header-padding {
    padding: 0px !important;
}

.qus-ans-img {
    height: 108px;
    width: 100px;
}

.user-purchased {
    background: #f3f3f3;
    border-radius: 15px;
}

.text-area-background,
.question-form {
    border-radius: 10px;
    background: rgba(19, 19, 19, 0.2);
}

.card-header-plan {
    border-radius: 10px 10px 10px 10px !important;
    background-color: var(--wpd-table-even);
}

.ck .ck-content {
    height: 200px;
}

.dropify-wrapper {
    height: 240px !important;
}

@media (min-width: 576px) {
    .edit-qus {
        max-width: 980px;
    }
}

.password-position-relative,
.change-position-relative {
    position: relative;
}

.course-image {
    height: 10rem;
    width: 17rem;
}

.change-password-toggle {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
}

.is-invalid ~ .change-password-toggle,
.was-validated :invalid ~ .change-password-toggle {
    position: absolute;
    right: 10px;
    top: 54%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Style for alert boxes */
.custom-alert {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #fcfcfc;
    color: #0c0c0c;
    padding: 26px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    width: 300px;
}

.close-alert {
    margin-top: 15px;
    background-color: var(--wpd-danger-color);
    border: none;
    color: var(--wpd-text-menu-color);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.close-alert:hover {
    background-color: #b71c1c;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--wpd-color) !important;
}

.nav-link:focus,
.nav-link:hover,
.head-title {
    color: var(--wpd-color);
}

#DataTables_Table_6,
#DataTables_Table_5,
#DataTables_Table_4,
#DataTables_Table_3,
#DataTables_Table_2,
#DataTables_Table_1,
#DataTables_Table_0,
#purchases-table,
#all-table,
#approved-table,
#pending-table,
#rejected-table,
#deactive-table,
#shops-table,
#change-requests-table,
#shopless-users-table,
#users-table,
#notificationsTable,
#update_requests-table {
    width: 100% !important;
}

.course-view-top-filter {
    cursor: pointer;
    padding: 10px 10px;
    border: 1px solid #a3defd;
}

.copy-course-link {
    padding: 5px;
    border: 1px solid #a3defd;
    border-radius: 10px;
    cursor: pointer;
}

.card-header {
    border-bottom: 1px solid rgba(185, 189, 189, 0.4);
}

.total-revenue-card {
    height: 150px;
    border-radius: 10px;
}

.dash-card-total {
    margin-top: -27px;
}

@media (min-width: 1200px) {
    .card-min-height {
        height: 230px;
    }
}

.booking-card,
.payment-card,
.profile-card,
.document-card,
.trip-card,
.delivery-profile-card {
    background-color: var(--wpd-table-even);
    border-radius: 10px;
    box-shadow: var(--wpd-box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.route,
.vehicle-number {
    color: var(--wpd-color);
    font-size: 1.1rem;
    font-weight: bold;
}

.location i {
    color: var(--wpd-muted-text);
    margin-right: 5px;
}

.booking-status {
    color: var(--wpd-info-color);
    font-weight: bold;
}

.feedback-buttons {
    background-color: var(--wpd-info-color);
    color: var(--wpd-text-menu-color);
}

.star-rating {
    color: var(--wpd-warning-color);
    font-size: 24px;
}

.review-text {
    background-color: #e9f9ff;
    border-radius: 5px;
    padding: 10px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.payment-row,
.order-view-order-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--wpd-border-color);
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-label,
.order-view-order-detail-label,
.order-detail-label {
    font-weight: 500;
    color: var(--wpd-muted-text);
}

.payment-amount,
.order-view-order-detail-value,
.order-view-detail-value {
    font-weight: 600;
    color: var(--wpd-dark-text);
}

.feedback-buttons {
    background: var(--wpd-color) !important;
    border-radius: 20px !important;
    height: 60px;
    color: var(--wpd-text-menu-color) !important;
}

.is-invalid {
    color: var(--wpd-danger-color) !important;
}

.is-valid {
    background-image: none !important;
}

.active-status {
    color: var(--wpd-success-color);
    font-weight: bold;
}

.document-verified {
    background-color: var(--wpd-info-color);
    color: var(--wpd-text-menu-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.document-image {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.trip-details,
.order-view-order-summary-card,
.shop-view-info-card {
    background-color: var(--wpd-light-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.month-selector {
    background-color: var(--wpd-light-bg);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active {
    background-color: var(--wpd-color) !important;
    border-radius: var(--border-radius) !important;
    color: var(--wpd-text-menu-color) !important;
}

.nav-tabs {
    background-color: var(--wpd-table-even) !important;
    border-radius: 20px !important;
}

.dash-card-container {
    flex: 1 0 19%;
    margin-bottom: 15px;
}

@media (max-width: 1200px) {
    .dash-card-container {
        flex: 0 0 48%;
    }
}

@media (max-width: 768px) {
    .dash-card-container {
        flex: 0 0 100%;
    }
}

table.dataTable.table-striped > tbody > tr.odd {
    background: var(--wpd-table-odd);
}

table.dataTable.table-striped > tbody > tr.even {
    background: var(--wpd-table-even);
}

.dash-card1 h5,
.dash-card3 h5,
.dash-card4 h5,
.dash-card5 h5,
.dash-card6 h5,
.dash-card7 h5,
.dash-card2 h5 {
    margin-top: 5.25rem !important;
}

@media (min-width: 1200px) {
    .long-width {
        width: 36.667% !important;
    }
}

.delivery-profile-header {
    background: var(--wpd-primary-gradient);
    color: var(--wpd-text-menu-color);
    border-radius: 8px 8px 0 0;
}

.delivery-document-card,
.delivery-man-view-delivery-document-card {
    border-left: 4px solid var(--wpd-color);
    transition: all 0.3s ease;
}

.delivery-document-card:hover,
.delivery-man-view-delivery-document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.delivery-status-badge,
.shop-view-status-badge,
.payout-index-status-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}

.delivery-document-image,
.delivery-man-view-delivery-document-image {
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.delivery-document-image:hover,
.delivery-man-view-delivery-document-image:hover {
    transform: scale(1.05);
}

.order-view-order-detail-card,
.user-view-profile-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: none;
}

.order-view-user-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.order-view-product-img,
.order-view-product-img-sm {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.order-view-section-title,
.shop-view-card-title,
.payout-index-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

.order-view-summary-card {
    border-radius: 8px;
    border: 1px solid var(--wpd-border-color);
    background-color: var(--wpd-light-bg);
}

.order-view-status-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-check-input:checked {
    background-color: var(--wpd-color) !important;
    border-color: var(--wpd-color) !important;
}
.custom-header-color,
.modal-header {
    background-color: var(--wpd-color) !important;
    color: var(--wpd-text-menu-color) !important;
}

.btn-close {
    background-color: var(--wpd-table-even);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.modal-header {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-title {
    color: var(--wpd-text-menu-color) !important;
}

.paginate_button.page-item.active a {
    background: var(--wpd-color) !important;
    border-color: var(--wpd-color) !important;
}

.filter-popup {
    font-family: var(--wpd-body-font-family);
    position: absolute;
    z-index: 1050;
    background: var(--wpd-table-even);
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 1200px;
    max-width: 95vw;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    animation: fadeIn 0.2s ease-out;
}

.filter-popup,
.filter-popup-footer {
    box-shadow:
        rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
        rgba(60, 64, 67, 0.15) 0px 2px 6px 2px !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-popup-content {
    overflow-y: hidden;
}

.filter-popup-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--wpd-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--wpd-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.filter-popup-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--wpd-text-menu-color);
}

.filter-popup-header .close,
#importProductsModal .btn-close {
    border: none;
    font-size: 20px;
    color: var(--wpd-muted-text) !important;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.filter-popup-header .close:hover {
    opacity: 1;
    color: #333;
}

.filter-popup-body {
    padding: 16px;
    overflow-y: scroll;
    max-height: 60vh;
}

.filter-popup-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    background-color: var(--wpd-light-bg);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    width: 100%;
    position: fixed;
}

.filter-rules-container {
    margin-bottom: 16px;
}

.filter-rule {
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--wpd-border-color);
    border-radius: 4px;
    background-color: var(--wpd-table-even);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-rule:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-rule .row {
    align-items: center;
}

.rule-connector {
    display: inline-block;
    width: 36px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--wpd-muted-text);
    text-transform: uppercase;
    padding: 6px;
    background-color: var(--wpd-light-bg);
    border-radius: 3px;
}

.filter-rule .form-control-sm {
    height: 32px;
    font-size: 13px;
    border-radius: 12px;
    border: 1px solid #ced4da;
}

.filter-rule select.form-control-sm {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 24px;
    border-radius: 12px;
}

.filter-popup .btn {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.filter-popup .btn i {
    margin-right: 6px;
    font-size: 12px;
}

.filter-popup .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: var(--border-radius);
}

.btn-outline-primary {
    color: var(--wpd-color);
    border-color: var(--wpd-color);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--wpd-color);
    color: var(--wpd-text-menu-color);
}

.btn-theme-success:hover,
.btn-theme-success.active {
    background-color: var(--wpd-color);
    color: var(--wpd-text-menu-color);
}

.btn-outline-secondary {
    color: var(--wpd-muted-text);
    border-color: var(--wpd-muted-text);
}

.btn-outline-secondary:hover {
    background-color: var(--wpd-muted-text);
    color: var(--wpd-text-menu-color);
}

.btn-outline-green-color {
    color: var(--wpd-color);
    background-color: transparent;
    border: 1px solid var(--wpd-color);
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.btn-outline-green-color:hover {
    color: #fff;
    background-color: var(--wpd-color);
    border-color: var(--wpd-color);
}

.btn-outline-danger {
    color: var(--wpd-danger-color);
    border-color: var(--wpd-danger-color);
}

.btn-outline-danger:hover {
    background-color: var(--wpd-danger-color);
    color: var(--wpd-text-menu-color);
}

.btn-primary:hover {
    background-color: var(--wpd-secondary-color);
    border-color: var(--wpd-secondary-color);
}

.remove-rule-btn {
    padding: 4px 6px;
    border-radius: 50%;
}

.filter-logic-toggle {
    border-radius: 4px;
    overflow: hidden;
}

.filter-logic-toggle .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 0;
}

.filter-logic-toggle .btn:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.ui-datepicker {
    font-family: var(--wpd-body-font-family);
    background: var(--wpd-table-even);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.ui-datepicker-header {
    background: var(--wpd-light-bg);
    border: none;
    border-radius: 3px;
}

.ui-datepicker-title {
    font-weight: 600;
}

.ui-datepicker-calendar th {
    font-weight: 500;
    color: var(--wpd-muted-text);
}

.ui-datepicker-calendar td a {
    text-align: center;
    padding: 4px;
    border-radius: 3px;
}

.ui-datepicker-calendar td a.ui-state-active {
    background: var(--wpd-color);
    color: var(--wpd-text-menu-color);
}

.select2-container--default .select2-selection--multiple {
    min-height: 32px;
    border: 1px solid #ced4da;
    border-radius: 3px;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #e37201;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    padding: 2px 8px;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    margin-right: 4px;
    color: var(--wpd-text-menu-color);
}

.filter-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 10px;
    padding: 3px 5px;
    background-color: var(--wpd-danger-color);
    color: var(--wpd-text-menu-color);
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

@media (max-width: 768px) {
    .filter-popup {
        width: 90vw;
    }

    .filter-rule .col {
        margin-bottom: 8px;
    }

    .filter-rule .col-auto {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .filter-popup {
        width: 95vw;
        left: 50%;
        top: 10px;
        transform: translateX(-50%);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        padding: 8px;
    }

    .filter-popup-header,
    .filter-popup-footer,
    .filter-popup-body {
        padding: 10px !important;
    }

    .filter-popup-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .filter-popup-header h5 {
        font-size: 1rem;
    }

    .filter-popup-header .close {
        align-self: flex-end;
        font-size: 1.4rem;
    }

    .filter-popup-body .d-flex,
    .filter-popup-footer {
        flex-direction: column;
        gap: 10px;
    }

    .filter-popup-footer .btn {
        width: 100%;
    }

    .filter-logic-toggle {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .filter-logic-toggle .btn {
        flex: 1;
    }

    .add-rule-btn {
        width: 100%;
    }

    .save-filter-btn,
    .apply-filter-btn,
    .clear-filters-btn {
        width: 100%;
    }

    .filter-popup-content {
        max-height: 80vh;
        overflow-y: auto;
    }

    .filter-popup-footer .btn {
        margin-bottom: 6px;
        width: 100%;
    }

    .filter-popup-header .close {
        align-self: flex-end;
    }
}

.flatpickr-confirm {
    background-color: var(--wpd-color);
    color: var(--wpd-text-menu-color);
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-top: 8px;
}

.flatpickr-confirm:hover {
    background-color: var(--wpd-secondary-color);
}

.flatpickr-confirm:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3);
}

.flatpickr-confirm svg {
    display: none;
}

.form-control,
.form-select,
.form-select-sm {
    border-radius: var(--border-radius);
}

.input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n + 3),
.input-group:not(.has-validation)
    > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group
    > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(
        .valid-feedback
    ):not(.invalid-tooltip):not(.invalid-feedback) {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.btn.btn-sm.btn-outline-secondary.edit-saved-filter-btn {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

div.dataTables_wrapper div.dataTables_filter {
    margin-right: 1rem;
}

.page-item:first-child .page-link {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.page-item:last-child .page-link {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

select[name="DataTables_Table_0_length"].form-select.form-select-sm {
    border-radius: var(--border-radius);
}

.modal-content {
    border-radius: 17px;
}

.input-group.small-bar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: end;
    float: inline-end;
}

.dashboard-index-chart-container,
.user-view-chart-container,
.delivery-man-view-chart-container,
.shop-view-chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}
.shop-view-chart-container {
    height: 475px !important;
}

.nndi-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
@media (max-width: 1400px) {
    .nndi-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .nndi-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .nndi-stats-grid {
        grid-template-columns: 1fr;
    }
}

.nndi-stat-card {
    border-radius: var(--nndi-radius);
    padding: 20px 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 110px;
    transition: transform 0.2s;
}
.nndi-stat-card:hover {
    transform: translateY(-3px);
    color: #fff;
}

/* decorative circle behind icon */
.nndi-stat-card::after {
    content: "";
    position: absolute;
    right: -14px;
    top: -14px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

/* icon — top-right absolute */
.nndi-stat-icon {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 1.8rem;
    opacity: 0.35;
    line-height: 1;
}

/* value + label stacked on left/bottom */
.nndi-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}
.nndi-stat-label {
    font-size: 0.78rem;
    opacity: 0.92;
    font-weight: 600;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
}

.nndi-sc1 {
    background: linear-gradient(135deg, #1a2b6b, #2563eb);
}
.nndi-sc2 {
    background: linear-gradient(135deg, #f97316, #fb923c);
}
.nndi-sc3 {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}
.nndi-sc4 {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}
.nndi-sc5 {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
}
.nndi-sc6 {
    background: linear-gradient(135deg, #dc2626, #f87171);
}

.nndi-metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
@media (max-width: 1200px) {
    .nndi-metric-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .nndi-metric-row {
        grid-template-columns: 1fr;
    }
}

.nndi-metric-card {
    background: #dee8ff;
    border-radius: var(--nndi-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.nndi-metric-card.nndi-mc-orange {
    background: #fee0cc;
}
.nndi-metric-card.nndi-mc-green {
    background: #bcffd5;
}
.nndi-metric-card.nndi-mc-red {
    background: #ffc0c0;
}

.nndi-metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}
.nndi-metric-icon.nndi-blue {
    background: var(--nndi-blue-mid);
}
.nndi-metric-icon.nndi-orange {
    background: var(--nndi-orange);
}
.nndi-metric-icon.nndi-green {
    background: var(--nndi-green);
}
.nndi-metric-icon.nndi-red {
    background: var(--nndi-red);
}
.nndi-metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nndi-text);
}
.nndi-metric-label {
    font-size: 0.78rem;
    color: var(--nndi-muted);
    font-weight: 500;
}

.nndi-chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.nndi-chart-row.nndi-t3 {
    grid-template-columns: 2fr 1fr;
}
.nndi-chart-row.nndi-r3 {
    grid-template-columns: 2fr 1fr 1fr;
}
.nndi-chart-row.nndi-full {
    grid-template-columns: 1fr;
}

@media (max-width: 1200px) {
    .nndi-chart-row.nndi-r3 {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 900px) {
    .nndi-chart-row,
    .nndi-chart-row.nndi-t3,
    .nndi-chart-row.nndi-r3 {
        grid-template-columns: 1fr;
    }
}

.nndi-card {
    background: var(--nndi-card);
    border-radius: var(--nndi-radius);
    padding: 22px;
}
.nndi-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nndi-blue);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nndi-card-title .nndi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nndi-orange);
}
.nndi-chart-wrap {
    position: relative;
    height: 240px;
}
.nndi-chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 240px;
    color: var(--nndi-muted);
}

.nndi-bottle-stat-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.nndi-bottle-badge {
    flex: 1;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-weight: 700;
}
.nndi-bottle-badge.nndi-pending {
    background: #fef3c7;
    color: #92400e;
}
.nndi-bottle-badge.nndi-returned {
    background: #dcfce7;
    color: #166534;
}
.nndi-bottle-badge .nndi-badge-val {
    font-size: 1.4rem;
    display: block;
}
.nndi-bottle-badge .nndi-badge-lbl {
    font-size: 0.7rem;
}

.nndi-today-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.nndi-today-cell {
    background: var(--nndi-bg);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.nndi-tc-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--nndi-blue);
}
.nndi-tc-lbl {
    font-size: 0.7rem;
    color: var(--nndi-muted);
}

.nndi-activity-list {
    max-height: 190px;
    overflow-y: auto;
}
.nndi-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--nndi-border);
}
.nndi-activity-item:last-child {
    border-bottom: none;
}
.nndi-activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}
.nndi-ai-primary {
    background: var(--nndi-blue-mid);
}
.nndi-ai-success {
    background: var(--nndi-green);
}
.nndi-ai-warning {
    background: #d97706;
}
.nndi-ai-info {
    background: #0891b2;
}

.nndi-activity-body {
    flex: 1;
    min-width: 0;
}
.nndi-activity-body h6 {
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nndi-activity-body p {
    font-size: 0.73rem;
    color: var(--nndi-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nndi-activity-time {
    font-size: 0.68rem;
    color: var(--nndi-muted);
    white-space: nowrap;
}

.nndi-delivery-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.nndi-d-pill {
    flex: 1;
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    font-weight: 700;
    min-width: 70px;
}
.nndi-d-pill.nndi-delivered {
    background: #dcfce7;
    color: #166534;
}
.nndi-d-pill.nndi-pending {
    background: #fef3c7;
    color: #92400e;
}
.nndi-d-pill.nndi-skipped {
    background: #fee2e2;
    color: #991b1b;
}
.nndi-pill-val {
    font-size: 1.3rem;
    display: block;
}
.nndi-pill-lbl {
    font-size: 0.7rem;
}

.nndi-tab-nav {
    border-bottom: 2px solid var(--nndi-border);
    margin-bottom: 16px;
}
.nndi-tab-nav .nav-link {
    color: var(--nndi-muted);
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    padding: 10px 16px;
    background: transparent;
}
.nndi-tab-nav .nav-link.active {
    color: var(--nndi-blue);
    border-bottom: 3px solid var(--nndi-orange);
    background: transparent;
}
.nndi-tab-nav .nav-link:hover {
    color: var(--nndi-blue);
}

#nndi-orders-table thead th,
#nndi-users-table thead th,
#nndi-bottles-table thead th {
    background: var(--nndi-blue);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.nndi-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--nndi-radius);
    z-index: 10;
}
.nndi-loading i {
    color: var(--nndi-blue-mid);
    font-size: 1.5rem;
}

.nndi-bottle-filter {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.nndi-bottle-filter select {
    border: 1.5px solid var(--nndi-border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--nndi-text);
}
.nndi-bottle-filter select:focus {
    outline: none;
    border-color: var(--nndi-blue-mid);
}
.nnri-date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid var(--nnri-blue);
    border-radius: 30px;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: 600;
    color: var(--nnri-blue);
    min-width: 200px;
    justify-content: center;
    transition: box-shadow 0.2s;
    font-size: 0.85rem;
}

.nnri-date-picker:hover {
    box-shadow: var(--nnri-shadow-h);
}

.nnri-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 2px solid var(--nnri-blue);
    border-radius: 30px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--nnri-blue);
    transition: all 0.2s;
    white-space: nowrap;
}

.nnri-filter-btn:hover,
.nnri-filter-btn.nnri-active {
    background: var(--nnri-blue);
    color: #fff;
}

.nnri-filter-count {
    background: var(--nnri-orange);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nnri-tabs {
    border-bottom: 2px solid var(--nnri-border);
    margin-bottom: 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nnri-tabs::-webkit-scrollbar {
    display: none;
}

.nnri-tabs .nav-link {
    color: var(--nnri-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    padding: 10px 16px;
    border-radius: 0;
    white-space: nowrap;
}

.nnri-tabs .nav-link.active {
    color: var(--nnri-blue);
    border-bottom: 3px solid var(--nnri-orange);
    background: transparent;
}

.nnri-tabs .nav-link i {
    margin-right: 6px;
}

.nnri-filter-panel {
    background: var(--nnri-card);
    border-radius: var(--nnri-radius);
    box-shadow: var(--nnri-shadow);
    margin-bottom: 20px;
    border: 1px solid var(--nnri-border);
    overflow: hidden;
    display: none;
}

.nnri-filter-panel.nnri-open {
    display: block;
}

.nnri-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--nnri-border);
    background: linear-gradient(135deg, #f8faff, #eef2ff);
    flex-wrap: wrap;
    gap: 10px;
}

.nnri-filter-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--nnri-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nnri-filter-panel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nnri-filter-body {
    padding: 16px 20px;
}

.nnri-logic-toggle {
    display: inline-flex;
    background: var(--nnri-bg);
    border: 1px solid var(--nnri-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.nnri-logic-toggle button {
    padding: 5px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--nnri-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.nnri-logic-toggle button.nnri-logic-active {
    background: var(--nnri-blue);
    color: #fff;
}

.nnri-filter-rules {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nnri-filter-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--nnri-bg);
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid var(--nnri-border);
}

.nnri-logic-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--nnri-blue);
    background: #dbeafe;
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
    min-width: 42px;
    text-align: center;
}

.nnri-filter-rule select,
.nnri-filter-rule input[type="text"],
.nnri-filter-rule input[type="number"],
.nnri-filter-rule input[type="date"] {
    border: 1.5px solid var(--nnri-border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.83rem;
    color: var(--nnri-text);
    background: #fff;
    flex: 1;
    min-width: 90px;
    max-width: 180px;
}

.nnri-filter-rule select:focus,
.nnri-filter-rule input:focus {
    outline: none;
    border-color: var(--nnri-mid);
}

.nnri-rule-remove {
    border: none;
    background: transparent;
    color: var(--nnri-red);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
    opacity: 0.7;
    flex-shrink: 0;
}

.nnri-rule-remove:hover {
    opacity: 1;
}

.nnri-between-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 2;
    min-width: 180px;
}

.nnri-between-wrap span {
    font-size: 0.78rem;
    color: var(--nnri-muted);
    white-space: nowrap;
}

.nnri-add-rule-btn {
    border: 1.5px dashed var(--nnri-border);
    background: transparent;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--nnri-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    width: 100%;
}

.nnri-add-rule-btn:hover {
    border-color: var(--nnri-mid);
    color: var(--nnri-mid);
    background: #f0f7ff;
}

.nnri-filter-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--nnri-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.nnri-saved-filters-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.nnri-saved-filters-row label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--nnri-muted);
    white-space: nowrap;
}

.nnri-saved-chip {
    border: 1.5px solid var(--nnri-border);
    background: #fff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    color: var(--nnri-blue);
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nnri-saved-chip:hover {
    border-color: var(--nnri-mid);
    background: #f0f7ff;
}

.nnri-chip-del {
    color: var(--nnri-red);
    font-size: 0.75rem;
    opacity: 0.7;
}

.nnri-chip-del:hover {
    opacity: 1;
}

.nnri-no-saved {
    font-size: 0.78rem;
    color: var(--nnri-muted);
    font-style: italic;
}

.nnri-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.nnri-active-filters label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--nnri-muted);
}

.nnri-filter-pill {
    background: #dbeafe;
    color: var(--nnri-blue);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.nnri-filter-pill button {
    border: none;
    background: transparent;
    color: var(--nnri-red);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    line-height: 1;
}

.nnri-report-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.nnri-rcard {
    border-radius: var(--nnri-radius);
    padding: 18px 16px;
    transition: transform 0.2s;
}

.nnri-rcard:hover {
    transform: translateY(-3px);
}

.nnri-rcard.nnri-c-primary {
    border-color: var(--nnri-blue);
}
.nnri-rcard.nnri-c-success {
    border-color: var(--nnri-green);
}
.nnri-rcard.nnri-c-warning {
    border-color: #d97706;
}
.nnri-rcard.nnri-c-danger {
    border-color: var(--nnri-red);
}
.nnri-rcard.nnri-c-info {
    border-color: #0891b2;
}
.nnri-rcard.nnri-c-secondary {
    border-color: var(--nnri-muted);
}

.nnri-rcard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.nnri-rcard-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nnri-rcard-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.nnri-rcard-icon.nnri-c-primary {
    background: var(--nnri-blue);
}
.nnri-rcard-icon.nnri-c-success {
    background: var(--nnri-green);
}
.nnri-rcard-icon.nnri-c-warning {
    background: #d97706;
}
.nnri-rcard-icon.nnri-c-danger {
    background: var(--nnri-red);
}
.nnri-rcard-icon.nnri-c-info {
    background: #0891b2;
}
.nnri-rcard-icon.nnri-c-secondary {
    background: var(--nnri-muted);
}

.nnri-rcard-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    word-break: break-all;
}

.nnri-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.nnri-chart-grid.nnri-full {
    grid-template-columns: 1fr;
}

.nnri-card {
    background: var(--nnri-card);
    border-radius: var(--nnri-radius);
}

.nnri-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--nnri-border);
    flex-wrap: wrap;
    gap: 8px;
}

.nnri-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--nnri-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nnri-card-title .nnri-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nnri-orange);
    flex-shrink: 0;
}

.nnri-card-body {
    padding: 16px 18px;
}

.nnri-chart-wrap {
    position: relative;
    height: 280px;
}

.nnri-chart-wrap.nnri-radar-wrap {
    height: 340px;
}

.nnri-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: var(--nnri-muted);
    text-align: center;
}

.nnri-table-card {
    background: var(--nnri-card);
    border-radius: var(--nnri-radius);
    box-shadow: var(--nnri-shadow);
    overflow: hidden;
}

.nnri-btn {
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.nnri-btn-primary {
    background: var(--nnri-blue);
    color: #fff;
    border-color: var(--nnri-blue);
}

.nnri-btn-primary:hover {
    background: #0f1e55;
}

.nnri-btn-outline {
    background: transparent;
    border-color: var(--nnri-border);
    color: var(--nnri-muted);
}

.nnri-btn-outline:hover {
    border-color: var(--nnri-mid);
    color: var(--nnri-mid);
}

.nnri-btn-danger {
    background: transparent;
    border-color: var(--nnri-red);
    color: var(--nnri-red);
}

.nnri-btn-danger:hover {
    background: var(--nnri-red);
    color: #fff;
}

.nnri-btn-export {
    background: transparent;
    border: 1.5px solid var(--nnri-blue);
    color: var(--nnri-blue);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nnri-btn-export:hover {
    background: var(--nnri-blue);
    color: #fff;
}

.nnri-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--nnri-radius);
    z-index: 10;
}

.nnri-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.nnri-modal-backdrop.nnri-show {
    display: flex;
}

.nnri-modal {
    background: #fff;
    border-radius: var(--nnri-radius);
    padding: 24px;
    width: 360px;
    max-width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.nnri-modal h5 {
    font-weight: 800;
    color: var(--nnri-blue);
    margin-bottom: 16px;
}

.nnri-modal input {
    width: 100%;
    border: 1.5px solid var(--nnri-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.nnri-modal input:focus {
    outline: none;
    border-color: var(--nnri-mid);
}

.nnri-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

@media (min-width: 1200px) {
    .nnri-report-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 769px) {
    .nnri-report-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nnri-report-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .row.align-items-center.mb-4 .col-md-6:first-child {
        margin-bottom: 12px;
    }

    .nnri-header-actions {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .nnri-date-picker {
        min-width: unset;
        width: 100%;
        justify-content: center;
    }

    .nnri-filter-btn {
        justify-content: center;
    }

    .nnri-tabs {
        display: flex;
        overflow-x: auto;
    }

    .nnri-tabs .nav-link {
        font-size: 0.78rem;
        padding: 8px 12px;
    }

    .nnri-tabs .nav-link i {
        margin-right: 4px;
    }

    .nnri-report-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .nnri-rcard {
        padding: 14px 12px;
    }

    .nnri-rcard-value {
        font-size: 1.25rem;
    }

    .nnri-chart-grid,
    .nnri-chart-grid.nnri-full {
        grid-template-columns: 1fr;
    }

    .nnri-chart-wrap {
        height: 240px;
    }

    .nnri-chart-wrap.nnri-radar-wrap {
        height: 300px;
    }

    .nnri-filter-panel-header {
        padding: 12px 14px;
    }

    .nnri-filter-body {
        padding: 12px 14px;
    }

    .nnri-filter-rule {
        flex-direction: column;
        align-items: flex-start;
    }

    .nnri-filter-rule select,
    .nnri-filter-rule input[type="text"],
    .nnri-filter-rule input[type="number"],
    .nnri-filter-rule input[type="date"] {
        max-width: 100%;
        width: 100%;
    }

    .nnri-between-wrap {
        width: 100%;
        min-width: unset;
    }

    .nnri-filter-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .nnri-filter-footer > div {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }

    .nnri-card-header {
        padding: 12px 14px;
    }

    .nnri-card-body {
        padding: 12px 14px;
    }

    .nnri-table-card .nnri-card-body {
        padding: 0;
    }

    .dataTables_wrapper .row {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .nnri-report-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nnri-rcard-value {
        font-size: 1.1rem;
    }

    .nnri-rcard-label {
        font-size: 0.65rem;
    }

    .nnri-tabs .nav-link i {
        display: none;
    }

    .nnri-chart-wrap {
        height: 220px;
    }

    .nnri-chart-wrap.nnri-radar-wrap {
        height: 260px;
    }
}
.order-stat-card {
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.ov-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 0 14px;
    border-bottom: 2.5px solid var(--ov-ink);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.ov-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--ov-ink);
    letter-spacing: -0.5px;
    margin: 0 0 3px;
}

.ov-sub {
    font-size: 0.75rem;
    color: var(--ov-dim);
    margin: 0;
}

.ov-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 14px;
    background: var(--ov-ink);
    border-radius: var(--ov-radius);
    margin-bottom: 20px;
}

.ov-meta-r {
    font-size: 0.73rem;
    color: #94a3b8;
}

.ov-g {
    background: var(--ov-white);
    border-radius: 8px;
    padding: 18px 20px;
    height: 100%;
}

.ov-g.flat {
    background: var(--ov-bg);
}

.ov-lbl {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ov-ghost);
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ov-r {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid var(--ov-line);
}

.ov-r:last-child {
    border-bottom: none;
}

.ov-rk {
    font-size: 0.75rem;
    color: var(--ov-dim);
    font-weight: 500;
    flex: 0 0 44%;
}

.ov-rv {
    font-size: 0.82rem;
    color: var(--ov-ink);
    font-weight: 700;
    flex: 1;
}

.ov-kpi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--ov-line);
    border-radius: var(--ov-radius);
    overflow: hidden;
    margin-bottom: 10px;
}

.ov-k {
    background: var(--ov-white);
    padding: 13px 8px;
    text-align: center;
}

.ov-kn {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 3px;
}

.ov-kl {
    font-size: 0.57rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ov-dim);
}

.ov-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 8px;
}

.ov-mn {
    background: var(--ov-bg);
    border-radius: var(--ov-radius);
    padding: 9px 7px;
    text-align: center;
}

.ov-mn-n {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

.ov-mn-l {
    font-size: 0.57rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ov-dim);
}

.ov-person {
    display: flex;
    align-items: center;
    gap: 11px;
}

.ov-av {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.ov-ai {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.ov-pn {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ov-ink);
}

.ov-ps {
    font-size: 0.72rem;
    color: var(--ov-dim);
    margin-top: 1px;
}

.ov-addr {
    background: var(--ov-bg);
    border-radius: var(--ov-radius);
    padding: 10px 12px;
    font-size: 0.79rem;
    line-height: 1.55;
    margin-top: 11px;
}

.ov-juice {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.ov-jc {
    background: var(--ov-bg);
    border-radius: var(--ov-radius);
    padding: 7px 8px;
}

.ov-jd {
    font-size: 0.59rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ov-ghost);
    margin-bottom: 2px;
}

.ov-jn {
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--ov-ink);
}

.ov-do {
    display: inline-block;
    background: #fffbeb;
    color: #92400e;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 0.7rem;
    font-weight: 700;
    margin: 2px;
}

.ov-tl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 7px;
}

.ov-tc {
    background: var(--ov-bg);
    border-radius: var(--ov-radius);
    padding: 9px 11px;
    border-left: 3px solid #e2e8f0;
}

.ov-tc.d {
    border-left-color: #059669;
}

.ov-tc.p {
    border-left-color: #d97706;
}

.ov-tc.s {
    border-left-color: #94a3b8;
}

.ov-td {
    font-size: 0.79rem;
    font-weight: 700;
    color: var(--ov-ink);
    margin-bottom: 2px;
}

.ov-tm {
    font-size: 0.73rem;
    color: var(--ov-dim);
    line-height: 1.4;
}

.ov-stitle {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ov-ink);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ov-ink);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ov-fin .ov-rv {
    font-size: 0.98rem !important;
    font-weight: 900 !important;
    color: var(--ov-emerald) !important;
}

.ov-details-header {
    background-image: url("../img/header-card.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    color: white;
}

.ov-header-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ov-header-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ov-header-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.ov-header-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    line-height: 1.3;
}

.ov-header-value small {
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-left: 6px;
}

.ov-header-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ov-header-badge.success {
    background: rgba(5, 150, 105, 0.2);
    color: #34d399;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.ov-header-badge.warning {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.ov-header-badge.info {
    background: rgba(14, 165, 233, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.ov-header-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
}

@media (max-width: 768px) {
    .ov-header-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .ov-header-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ov-header-grid {
        grid-template-columns: 1fr;
    }
}
.uv-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 0 14px;
    border-bottom: 2.5px solid var(--uv-ink);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.uv-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--uv-ink);
    letter-spacing: -0.5px;
    margin: 0;
}

/* Cards */
.uv-g {
    background: var(--uv-white);
    border-radius: 8px;
    padding: 18px 20px;
}

.uv-lbl {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--uv-ghost);
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.uv-r {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid var(--uv-line);
}

.uv-r:last-child {
    border-bottom: none;
}

.uv-rk {
    font-size: 0.75rem;
    color: var(--uv-dim);
    font-weight: 500;
    flex: 0 0 50%;
}

.uv-rv {
    font-size: 0.82rem;
    color: var(--uv-ink);
    font-weight: 700;
    flex: 1;
}

.uv-profile-card {
    background-image: url("../img/header-card.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.uv-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.uv-profile-av {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.uv-profile-ai {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    background: var(--uv-blue);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.uv-profile-info {
    flex: 1;
}

.uv-profile-name {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    color: white;
}

.uv-profile-contact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.uv-profile-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.uv-profile-contact-item i {
    color: var(--uv-sky);
}

.uv-profile-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.uv-profile-stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 15px;
    text-align: center;
    min-width: 100px;
}

.uv-profile-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.uv-profile-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.uv-profile-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Combined Stats Card - KPI + Details in one row */
.uv-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.uv-kpi-card {
    flex: 2;
    min-width: 300px;
    background: var(--uv-white);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.uv-details-card {
    flex: 1;
    min-width: 250px;
    background: var(--uv-white);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.uv-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.uv-kpi-item {
    text-align: center;
    padding: 10px 5px;
    background: var(--uv-bg);
    border-radius: 8px;
}

.uv-kpi-value {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 4px;
}

.uv-kpi-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--uv-dim);
}

.uv-details-grid {
    margin-top: 10px;
}

.uv-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--uv-line);
}

.uv-detail-item:last-child {
    border-bottom: none;
}

.uv-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--uv-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uv-detail-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--uv-ink);
}

/* Address Cards - 3 per row */
.uv-address-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.uv-address-card {
    background: var(--uv-white);
    border-radius: 10px;
    border: 1px solid var(--uv-line);
    overflow: hidden;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.uv-address-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--uv-blue);
    transform: translateY(-2px);
}

.uv-address-header {
    padding: 15px 15px 10px;
    border-bottom: 1px solid var(--uv-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.uv-address-body {
    padding: 15px;
    flex: 1;
}

.uv-address-footer {
    padding: 12px 15px;
    background: var(--uv-bg);
    border-top: 1px solid var(--uv-line);
}

.uv-coords-badge {
    background: var(--uv-bg);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    color: var(--uv-dim);
    border: 1px solid var(--uv-line);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.uv-coords-badge i {
    color: var(--uv-blue);
    font-size: 0.7rem;
}

.uv-map-link {
    cursor: pointer;
    color: var(--uv-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.7rem;
}

.uv-map-link:hover {
    text-decoration: underline;
}

/* Map Container for Card */
.uv-map-card {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--uv-line);
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
}

.uv-map-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.uv-map-card-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 2;
}

.uv-map-card-overlay i {
    color: var(--uv-sky);
}

/* Contact Info in Card */
.uv-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.uv-contact-line i {
    color: var(--uv-dim);
    width: 18px;
}

.uv-address-text {
    font-size: 0.8rem;
    color: var(--uv-dim);
    line-height: 1.5;
    margin: 10px 0;
    padding: 8px 0;
    border-top: 1px dashed var(--uv-line);
    border-bottom: 1px dashed var(--uv-line);
}

.uv-address-text strong {
    color: var(--uv-ink);
}

/* Notifications */
.uv-notif {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--uv-line);
    align-items: flex-start;
}

.uv-notif:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.uv-ndot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.uv-ntitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--uv-ink);
}

.uv-nbody {
    font-size: 0.77rem;
    color: var(--uv-dim);
    margin-top: 3px;
    line-height: 1.4;
}

.uv-ntime {
    font-size: 0.7rem;
    color: var(--uv-ghost);
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 1200px) {
    .uv-address-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .uv-stats-row {
        flex-direction: column;
    }

    .uv-address-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .uv-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .uv-profile-contact {
        justify-content: center;
    }

    .uv-profile-stats {
        justify-content: center;
    }

    .uv-address-grid {
        grid-template-columns: 1fr;
    }

    .uv-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.user-stat-card {
    color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}
.user-initials {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #6c5ffc;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
}

.dmv-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 0 14px;
    border-bottom: 2.5px solid var(--dmv-ink);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.dmv-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--dmv-ink);
    letter-spacing: -0.5px;
    margin: 0;
}

.dmv-card {
    background: var(--dmv-white);
    border-radius: 8px;
    padding: 18px 20px;
    height: 100%;
    transition: all 0.2s;
}

.dmv-card-header {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--dmv-ghost);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dmv-profile-header {
    background-image: url("../img/header-card.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    color: white;
    width: 100%;
}

.dmv-profile-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dmv-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.dmv-profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    background: var(--dmv-blue);
    border: 3px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.dmv-profile-info {
    flex: 1;
}

.dmv-profile-name {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: white;
}

.dmv-profile-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dmv-profile-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.dmv-profile-contact-item i {
    color: var(--dmv-sky);
}

.dmv-profile-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.dmv-profile-stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
    min-width: 100px;
}

.dmv-profile-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.dmv-profile-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.dmv-profile-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

/* Rows for Details */
.dmv-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dmv-line);
}

.dmv-row:last-child {
    border-bottom: none;
}

.dmv-row-label {
    font-size: 0.75rem;
    color: var(--dmv-dim);
    font-weight: 600;
    flex: 0 0 40%;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dmv-row-value {
    font-size: 0.85rem;
    color: var(--dmv-ink);
    font-weight: 700;
    flex: 1;
}

/* Location Card */
.dmv-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.dmv-coord-box {
    background: var(--dmv-bg);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.dmv-coord-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dmv-dim);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.dmv-coord-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dmv-blue);
}

.dmv-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--dmv-blue);
    color: white;
    border-radius: var(--dmv-radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.dmv-map-link:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
    color: white;
}

/* KPI Grid */
.dmv-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.dmv-kpi-item {
    background: var(--dmv-bg);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
}

.dmv-kpi-value {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 4px;
}

.dmv-kpi-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dmv-dim);
}

/* Today Grid */
.dmv-today-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.dmv-today-item {
    background: var(--dmv-bg);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
}

.dmv-today-value {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 4px;
}

.dmv-today-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dmv-dim);
}

/* Table */
.dmv-table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.dmv-table {
    width: 100%;
    font-size: 0.82rem;
    border-collapse: collapse;
}

.dmv-table thead tr {
    background: var(--dmv-bg);
    border-bottom: 2px solid var(--dmv-line);
}

.dmv-table th {
    padding: 12px;
    font-weight: 700;
    color: var(--dmv-ink);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-align: left;
}

.dmv-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--dmv-line);
    vertical-align: middle;
}

.dmv-table tbody tr:hover {
    background: var(--dmv-bg);
    cursor: pointer;
}

/* Badges */
.dmv-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dmv-badge-success {
    background: var(--dmv-emerald);
    color: white;
}

.dmv-badge-danger {
    background: var(--dmv-rose);
    color: white;
}

.dmv-badge-warning {
    background: var(--dmv-amber);
    color: white;
}

.dmv-badge-info {
    background: var(--dmv-sky);
    color: white;
}

.dmv-badge-secondary {
    background: var(--dmv-dim);
    color: white;
}

.dmv-badge-primary {
    background: var(--dmv-blue);
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .dmv-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dmv-profile-content {
        flex-direction: column;
        text-align: center;
    }

    .dmv-profile-contact {
        justify-content: center;
    }

    .dmv-profile-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dmv-today-grid {
        grid-template-columns: 1fr;
    }

    .dmv-location-grid {
        grid-template-columns: 1fr;
    }
}
.delivery-man-leave-stat-card {
    color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.dmlv-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 2.5px solid var(--dmlv-ink);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--dmlv-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dmlv-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--dmlv-ink);
    letter-spacing: -0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dmlv-title-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    background: var(--dmlv-blue);
    color: white;
}

/* Cards */
.dmlv-card {
    background: var(--dmlv-white);
    border-radius: 8px;
    padding: 18px 20px;
    height: 100%;
    transition: all 0.2s;
    border: 1px solid var(--dmlv-line);
}

.dmlv-card:hover {
    border-color: var(--dmlv-blue);
}

.dmlv-card-header {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dmlv-ink);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--dmlv-line);
    padding-bottom: 10px;
}

.dmlv-card-header i {
    color: var(--dmlv-blue);
    font-size: 1rem;
}

.dmlv-action-card {
    background-image: url("../img/header-card.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.dmlv-action-header {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fbbf24;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dmlv-action-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dmlv-action-info {
    flex: 1;
    min-width: 250px;
}

.dmlv-action-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.dmlv-action-info strong {
    color: white;
    font-weight: 700;
}

.dmlv-action-form {
    flex: 2;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.dmlv-action-form .form-label {
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dmlv-action-form .form-select {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000;
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 10px;
}

.dmlv-action-form .form-select:focus {
    background: #fff;
    color: #000;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Info Rows */
.dmlv-info-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dmlv-line);
}

.dmlv-info-row:last-child {
    border-bottom: none;
}

.dmlv-info-label {
    font-size: 0.75rem;
    color: var(--dmlv-dim);
    font-weight: 600;
    flex: 0 0 44%;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dmlv-info-value {
    font-size: 0.85rem;
    color: var(--dmlv-ink);
    font-weight: 700;
    flex: 1;
}

/* Person Card */
.dmlv-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dmlv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--dmlv-line);
}

.dmlv-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.dmlv-person-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dmlv-ink);
}

.dmlv-person-meta {
    font-size: 0.75rem;
    color: var(--dmlv-dim);
    margin-top: 2px;
}

/* Table Styles */
.dmlv-table-container {
    overflow-x: auto;
    border-radius: 8px;
    margin-top: 15px;
}

.dmlv-table {
    width: 100%;
    font-size: 0.82rem;
    border-collapse: collapse;
}

.dmlv-table thead tr {
    background: var(--dmlv-bg);
    border-bottom: 2px solid var(--dmlv-line);
}

.dmlv-table th {
    padding: 12px;
    font-weight: 700;
    color: var(--dmlv-ink);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-align: left;
    white-space: nowrap;
}

.dmlv-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dmlv-badge-primary {
    background: var(--dmlv-blue);
    color: white;
}

.dmlv-badge-success {
    background: var(--dmlv-emerald);
    color: white;
}

.dmlv-badge-warning {
    background: var(--dmlv-amber);
    color: white;
}

.dmlv-badge-danger {
    background: var(--dmlv-rose);
    color: white;
}

.dmlv-badge-info {
    background: var(--dmlv-sky);
    color: white;
}

.dmlv-badge-secondary {
    background: var(--dmlv-dim);
    color: white;
}

.dmlv-badge-dark {
    background: var(--dmlv-ink);
    color: white;
}

/* Stats Grid */
.dmlv-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.dmlv-stat-item {
    background: var(--dmlv-bg);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.dmlv-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dmlv-blue);
    line-height: 1.2;
}

.dmlv-stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dmlv-dim);
    margin-top: 4px;
}

/* Section Title */
.dmlv-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--dmlv-ink);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dmlv-ink);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 991px) {
    .dmlv-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dmlv-action-content {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .dmlv-stats-grid {
        grid-template-columns: 1fr;
    }

    .dmlv-hd {
        flex-direction: column;
        align-items: flex-start;
    }
}
.bottle-missing-stat-card {
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.bmv-card {
    background: var(--bmv-white);
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    transition: all 0.2s;
    border: 1px solid var(--bmv-line);
}

.bmv-card:hover {
    border-color: var(--bmv-blue);
    transform: translateY(-2px);
}

.bmv-card-header {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bmv-ink);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--bmv-line);
    padding-bottom: 12px;
}

.bmv-card-header i {
    color: var(--bmv-blue);
    font-size: 1.1rem;
}

/* Label with line */
.bmv-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--bmv-ghost);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bmv-label::before {
    content: "";
    width: 16px;
    height: 2px;
    background: var(--bmv-blue);
    display: inline-block;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Info Rows */
.bmv-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bmv-line);
}

.bmv-row:last-child {
    border-bottom: none;
}

.bmv-row-label {
    font-size: 0.75rem;
    color: var(--bmv-dim);
    font-weight: 600;
    flex: 0 0 48%;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bmv-row-value {
    font-size: 0.85rem;
    color: var(--bmv-ink);
    font-weight: 700;
    flex: 1;
}

.bmv-people-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 5px;
}

.bmv-people-grid > *:first-child {
    grid-column: 1 / -1;
}

.bmv-people-grid > *:nth-child(2) {
    grid-column: 1 / -1;
}
.bmv-person-card {
    background: var(--bmv-bg);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--bmv-line);
    transition: all 0.2s;
}

.bmv-person-card:hover {
    border-color: var(--bmv-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bmv-person-title {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bmv-dim);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bmv-person-title i {
    color: var(--bmv-blue);
    font-size: 0.8rem;
}

.bmv-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bmv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--bmv-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bmv-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bmv-person-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bmv-ink);
    margin-bottom: 2px;
}

.bmv-person-meta {
    font-size: 0.75rem;
    color: var(--bmv-dim);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.bmv-person-meta i {
    color: var(--bmv-ghost);
    font-size: 0.7rem;
}

.bmv-person-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: var(--bmv-blue);
    text-decoration: none;
    margin-top: 6px;
}

.bmv-person-link:hover {
    text-decoration: underline;
}

/* Bottle Counters */
.bmv-bottles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--bmv-line);
    border-radius: var(--bmv-radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.bmv-bottle-item {
    background: var(--bmv-white);
    padding: 16px 8px;
    text-align: center;
    transition: all 0.2s;
}

.bmv-bottle-item:hover {
    background: var(--bmv-bg);
    transform: scale(1.02);
}

.bmv-bottle-number {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 4px;
}

.bmv-bottle-label {
    font-size: 0.57rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--bmv-dim);
}

/* Progress Bar */
.bmv-progress {
    height: 8px;
    background: var(--bmv-line);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0 4px;
}

.bmv-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bmv-progress-fill.bg-success {
    background: var(--bmv-emerald);
}

.bmv-progress-fill.bg-warning {
    background: var(--bmv-amber);
}

.bmv-progress-fill.bg-primary {
    background: var(--bmv-blue);
}

/* Section Title */
.bmv-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--bmv-ink);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bmv-ink);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Address Box */
.bmv-address {
    background: var(--bmv-bg);
    border-radius: var(--bmv-radius);
    padding: 12px 15px;
    font-size: 0.82rem;
    line-height: 1.6;
    border: 1px solid var(--bmv-line);
}

/* Badges */
.bmv-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bmv-badge-primary {
    background: var(--bmv-blue);
    color: white;
}

.bmv-badge-success {
    background: var(--bmv-emerald);
    color: white;
}

.bmv-badge-warning {
    background: var(--bmv-amber);
    color: white;
}

.bmv-badge-danger {
    background: var(--bmv-rose);
    color: white;
}

.bmv-badge-info {
    background: var(--bmv-sky);
    color: white;
}

.bmv-badge-secondary {
    background: var(--bmv-dim);
    color: white;
}

.bmv-badge-light {
    background: var(--bmv-bg);
    color: var(--bmv-ink);
    border: 1px solid var(--bmv-line);
}

/* Responsive */
@media (max-width: 991px) {
    .bmv-people-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .bmv-bottles {
        grid-template-columns: repeat(3, 1fr);
    }

    .bmv-header-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .bmv-header-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .bmv-header-title {
        font-size: 1.2rem;
    }
}
@media (max-width: 576px) {
    .bmv-header {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .bmv-header-left {
        width: 100%;
    }

    .bmv-header-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .bmv-header-title {
        font-size: 1.1rem;
    }

    .bmv-header-right {
        width: 100%;
        justify-content: stretch;
    }

    .bmv-header-right .btn {
        flex: 1;
        text-align: center;
        padding: 10px;
    }

    .bmv-card {
        padding: 16px;
        margin-bottom: 12px;
    }

    .bmv-bottles {
        gap: 2px;
    }

    .bmv-bottle-item {
        padding: 12px 4px;
    }

    .bmv-bottle-number {
        font-size: 1.5rem;
    }

    .bmv-bottle-label {
        font-size: 0.5rem;
        letter-spacing: 0.5px;
        word-break: break-word;
    }

    .bmv-people-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bmv-person-card {
        padding: 12px;
    }

    .bmv-person {
        gap: 10px;
    }

    .bmv-avatar,
    .bmv-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .bmv-person-name {
        font-size: 0.85rem;
    }

    .bmv-person-meta {
        font-size: 0.7rem;
        flex-wrap: wrap;
    }

    .bmv-row {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 0;
    }

    .bmv-row-label {
        flex: 0 0 100%;
        font-size: 0.7rem;
        margin-bottom: 2px;
    }

    .bmv-row-value {
        flex: 0 0 100%;
        font-size: 0.85rem;
        padding-left: 8px;
    }

    .bmv-section-title {
        font-size: 0.75rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .bmv-address {
        padding: 12px;
        font-size: 0.8rem;
        word-break: break-word;
    }

    #returnForm .input-group {
        flex-direction: column;
        gap: 8px;
    }

    #returnForm .input-group input {
        width: 100%;
        border-radius: var(--bmv-radius) !important;
    }

    #returnForm .input-group button {
        width: 100%;
        border-radius: var(--bmv-radius) !important;
        padding: 10px;
    }

    .bmv-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bmv-person-link,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .bmv-person-link {
        min-height: 36px;
    }

    .bmv-card-header {
        font-size: 0.65rem;
        padding-bottom: 10px;
    }

    .bmv-label {
        font-size: 0.55rem;
        margin-bottom: 8px;
    }

    .bmv-person-title a {
        width: 32px;
        height: 32px;
        min-height: 32px;
    }
}

@media (max-width: 375px) {
    .bmv-bottles {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .bmv-bottle-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .bmv-bottle-number {
        font-size: 1.3rem;
        margin-bottom: 0;
    }

    .bmv-bottle-label {
        font-size: 0.6rem;
    }

    .bmv-header-title {
        font-size: 1rem;
    }

    .bmv-header-sub {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    .bmv-person {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .bmv-avatar,
    .bmv-avatar-placeholder {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .bmv-people-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bmv-bottles {
        grid-template-columns: repeat(3, 1fr);
    }

    .bmv-row-label {
        flex: 0 0 40%;
    }

    .bmv-row-value {
        flex: 1;
    }
}

@media (hover: none) and (pointer: coarse) {
    .bmv-card:active,
    .bmv-person-card:active {
        opacity: 0.7;
        transition: opacity 0.1s;
    }

    .bmv-bottle-item:active {
        background: var(--bmv-bg);
    }
}

@media (max-width: 320px) {
    .bmv-card {
        padding: 12px;
    }

    .bmv-row-label {
        font-size: 0.65rem;
    }

    .bmv-row-value {
        font-size: 0.8rem;
    }

    .bmv-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

.dpv-card {
    background: var(--dpv-white);
    border-radius: 12px;
    padding: 22px 20px;
    height: 100%;
    transition: all 0.25s ease;
    border: 1px solid var(--dpv-line);
    position: relative;
}

.dpv-card:hover {
    transform: translateY(-4px);
    border-color: var(--dpv-blue);
}

.dpv-card:hover::before {
    opacity: 0;
}

.dpv-card-header {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dpv-ink);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: none;
    padding-bottom: 0;
}

.dpv-card-header i {
    color: var(--dpv-blue);
    font-size: 1.1rem;
}

.dpv-kpi-value {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -1px;
    text-align: center;
}

.dpv-kpi-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dpv-dim);
    text-align: center;
}

.dpv-kpi-trend {
    margin-top: 10px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.dpv-kpi-trend.up {
    color: var(--dpv-emerald);
}

.dpv-kpi-trend.down {
    color: var(--dpv-rose);
}

.dpv-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--dpv-line);
}

.dpv-stat-row:last-child {
    border-bottom: none;
}

.dpv-stat-label {
    font-size: 0.8rem;
    color: var(--dpv-dim);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dpv-stat-label i {
    color: var(--dpv-blue);
    width: 18px;
}

.dpv-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dpv-ink);
}

.dpv-revenue-card {
    color: #000;
}

.dpv-revenue-card .dpv-card-header {
    color: var(--dpv-ink);
    justify-content: center;
}

.dpv-revenue-card .dpv-card-header i {
    color: var(--dpv-ink);
}

.dpv-revenue-amount {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -1px;
    text-align: center;
}

.dpv-revenue-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    text-align: center;
}

.dpv-dm-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dpv-dm-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.dpv-dm-stat-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dpv-dim);
}

.dpv-dm-stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dpv-ink);
}

.dpv-dm-stat-number.active {
    color: var(--dpv-emerald);
}

.dpv-dm-stat-number.inactive {
    color: var(--dpv-ghost);
}

.dpv-dm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 5px;
}

.dpv-dm-grid-card {
    background: var(--dpv-bg);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--dpv-line);
    transition: all 0.2s;
    text-align: center;
}

.dpv-dm-grid-card:hover {
    transform: translateY(-3px);
    border-color: var(--dpv-blue);
    background: var(--dpv-white);
}

.dpv-dm-grid-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid var(--dpv-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dpv-dm-grid-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--dpv-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 12px;
    border: 3px solid var(--dpv-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dpv-dm-grid-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dpv-ink);
    margin-bottom: 4px;
}

.dpv-dm-grid-phone {
    font-size: 0.8rem;
    color: var(--dpv-dim);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.dpv-dm-grid-phone i {
    font-size: 0.7rem;
    color: var(--dpv-ghost);
}

/* ── Table Section ── */
.dpv-section-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--dpv-ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--dpv-ink);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dpv-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dpv-badge-primary {
    background: var(--dpv-blue);
    color: white;
}

.dpv-badge-success {
    background: var(--dpv-emerald);
    color: white;
}

.dpv-badge-warning {
    background: var(--dpv-amber);
    color: white;
}

.dpv-badge-danger {
    background: var(--dpv-rose);
    color: white;
}

.dpv-badge-info {
    background: var(--dpv-sky);
    color: white;
}

.dpv-badge-secondary {
    background: var(--dpv-dim);
    color: white;
}

.dpv-badge-light {
    background: var(--dpv-bg);
    color: var(--dpv-ink);
    border: 1px solid var(--dpv-line);
}

@media (max-width: 1200px) {
    .dpv-dm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .dpv-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dpv-kpi-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .dpv-dm-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dpv-revenue-amount {
        font-size: 1.8rem;
    }

    .dpv-stat-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .dpv-page-title {
        font-size: 1.2rem;
    }

    .dpv-card {
        padding: 16px;
    }

    .dpv-kpi-value {
        font-size: 1.5rem;
    }

    .dpv-dm-grid-card {
        padding: 12px;
    }

    .dpv-dm-grid-avatar,
    .dpv-dm-grid-avatar-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .dpv-dm-grid-name {
        font-size: 0.85rem;
    }

    .dpv-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

.jovd-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.jovd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.jovd-header-left h2 {
    font-weight: 800;
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    color: #1e40af;
    line-height: 1.2;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.jovd-header-left p {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 6px;
}

.jovd-datepicker {
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    background: #ffffff;
    min-width: 240px;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.jovd-datepicker:hover {
    border-color: #000;
    background: #f8fafc;
}

.jovd-section-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #000;
    margin: 30px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─────────────────── SUMMARY CARDS ─────────────────── */
.jovd-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.jovd-sum-card {
    border-radius: 20px;
    padding: 18px 16px;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.jovd-sum-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.jovd-sum-icon-right {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2.2rem;
    opacity: 0.50;
    pointer-events: none;
    color: #fff;
}

.jovd-sum-val {
    font-weight: 800;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    line-height: 1.2;
    color: #fff;
    margin-top: 6px;
}

.jovd-sum-lbl {
    font-size: 0.72rem;
    color: #fff;
    margin-top: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.jovd-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #eef2f8;
}

.jovd-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.jovd-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jovd-chart-box {
    position: relative;
    height: 240px;
}

.jovd-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* ─────────────────── JUICE TABLE ─────────────────── */
.juice-tbl-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.juice-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-family: "DM Sans", sans-serif;
}

/* thead */
.juice-tbl thead tr {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
}

.juice-tbl thead th {
    color: #fff;
    padding: 13px 14px;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.juice-tbl thead th:first-child {
    text-align: left;
}

/* tbody */
.juice-tbl tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.juice-tbl tbody tr:nth-child(even) {
    background: #f8fafc;
}

.juice-tbl tbody tr:hover {
    background: #eff6ff;
}

.juice-tbl tbody td {
    padding: 11px 14px;
    vertical-align: middle;
    text-align: center;
}

.juice-tbl tbody td:first-child {
    text-align: left;
    font-weight: 700;
    color: #1e293b;
    font-size: 0.83rem;
    white-space: nowrap;
}

.juice-tbl tfoot td {
    padding: 12px 14px;
    font-weight: 700;
    color: #000;
    text-align: center;
    font-size: 0.82rem;
}

.juice-tbl tfoot td:first-child {
    text-align: left;
}

/* pills */
.jt-pill {
    display: inline-block;
    min-width: 34px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

/* .jt-pill-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.jt-pill-grey {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.jt-pill-total {
    background: #1d4ed8;
    color: #fff;
}

.jt-pill-dayoff {
    background: #fef3c7;
    color: #b45309;
}

.jt-pill-net {
    background: #dcfce7;
    color: #15803d;
}

.jt-pill-net-zero {
    background: #fee2e2;
    color: #dc2626;
} */

.jovd-map-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #eef2f8;
}

.jovd-map-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eef2f8;
    flex-wrap: wrap;
    gap: 10px;
}

#jovd-order-map {
    height: 400px;
    width: 100%;
}

.map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.jovd-map-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #475569;
    align-items: center;
}

/* ─────────────────── DM TABLE ─────────────────── */
.jovd-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #eef2f8;
}

.jovd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.jovd-table thead th {
    background: #1e40af;
    color: #fff;
    padding: 13px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
}

.jovd-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #eef2f8;
    vertical-align: middle;
}

.jovd-table tbody tr:hover {
    background: #f8fafc;
}

/* ─────────────────── BADGES ─────────────────── */
.jovd-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.68rem;
    font-weight: 600;
}

.jovd-badge-green {
    background: #dcfce7;
    color: #16a34a;
}

.jovd-badge-orange {
    background: #ffedd5;
    color: #ea580c;
}

.jovd-badge-red {
    background: #fee2e2;
    color: #dc2626;
}

.jovd-badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.jovd-badge-yellow {
    background: #fef3c7;
    color: #d97706;
}

/* ─────────────────── MODAL ─────────────────── */
.jovd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.jovd-modal-overlay.active {
    display: flex;
}

.jovd-modal {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    overflow-y: auto;
    animation: modalIn 0.22s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.jovd-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #eef2f8;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.jovd-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jovd-modal-close:hover {
    background: #e2e8f0;
}

.jovd-modal-body {
    padding: 18px 22px;
}

.jovd-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    border-top: 1px solid #eef2f8;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: #fff;
}

.dm-dist-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .jovd-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .jovd-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jovd-two-col {
        grid-template-columns: 1fr;
    }

    #jovd-order-map {
        height: 300px;
    }
}

@media (max-width: 560px) {
    .jovd-summary-grid {
        grid-template-columns: 1fr;
    }

    .jovd-container {
        padding: 0 12px;
    }

    .jovd-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .jovd-datepicker {
        min-width: unset;
        width: 100%;
    }
}
