﻿@import url("open-iconic/font/css/open-iconic-bootstrap.min.css");
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --primary-700: #2859a4;
    --primary-600: #336ac1;
    --primary-500: #3b82f6;
    --primary-400: #60a5fa;
    --surface: #ffffff;
    --surface-muted: #f6f9ff;
    --border: #e2e8f0;
    --text: #262626;
    --text-muted: #6b7280;
    --shadow-sm: 0 1px 3px rgba(2, 8, 23, 0.08);
    --shadow-md: 0 6px 16px rgba(2, 8, 23, 0.1);
}

html,
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
}

.warehouse-theme {
    background: #fff;
    color: var(--text);
}

    .warehouse-theme .card {
        border: none;
        /*        border-radius: 14px;*/
        box-shadow: var(--shadow-md);
        background: var(--surface);
    }

    .warehouse-theme .card-header {
        border-bottom: none;
        /* background: linear-gradient(135deg, var(--primary-600), var(--primary-700)); */
        color: #fff;
        font-weight: 600;
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
    }

    .warehouse-theme .card-body {
        background: var(--surface);
    }

    .warehouse-theme table {
        background: var(--surface);
        border-radius: 10px;
        overflow: hidden;
    }

        .warehouse-theme table thead {
            background: linear-gradient(135deg, var(--surface-muted), #eef4ff) !important;
            color: var(--primary-700);
        }

        .warehouse-theme table tbody tr {
            transition: background 0.2s ease;
        }

            .warehouse-theme table tbody tr:hover {
                background: #f5f8ff;
            }

    .warehouse-theme .form-control,
    .warehouse-theme .form-select,
    .warehouse-theme textarea,
    .warehouse-theme input:not([type="checkbox"]):not([type="radio"]) {
        border-color: var(--border);
        border-radius: 8px;
        padding: 0.6rem 0.7rem;
        box-shadow: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .warehouse-theme .form-control:focus,
        .warehouse-theme .form-select:focus,
        .warehouse-theme textarea:focus,
        .warehouse-theme input:focus {
            border-color: var(--primary-500);
            box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.2);
        }

    .warehouse-theme .btn-primary {
        background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
        border: none;
        color: #fff;
        box-shadow: var(--shadow-sm);
        transition: all 0.2s ease;
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
        border-radius: 5px;
    }

        .warehouse-theme .btn-primary:hover {
            background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

    .warehouse-theme .btn-secondary,
    .warehouse-theme .btn-outline-secondary {
        background: #6c7387;
        border: none;
        color: #fff;
        box-shadow: var(--shadow-sm);
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
        border-radius: 5px;
    }

        .warehouse-theme .btn-secondary:hover {
            color: #fff !important;
        }

        .warehouse-theme .btn-secondary:hover,
        .warehouse-theme .btn-outline-secondary:hover {
            background: #555b70;
            transform: translateY(-1px);
        }

    .warehouse-theme .modal-content {
        border-radius: 16px;
        border: none;
        box-shadow: var(--shadow-md);
    }

    .warehouse-theme .modal-header {
        background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
        color: #fff;
        border-bottom: none;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }

    .warehouse-theme .modal-footer {
        border-top: 1px solid var(--border);
    }

    .warehouse-theme .nav-tabs .nav-link {
        border: none;
        color: var(--text-muted);
        font-weight: 600;
        padding: 8px 14px;
    }

        .warehouse-theme .nav-tabs .nav-link.active {
            color: var(--primary-700);
            border-bottom: 2px solid var(--primary-700);
        }

    .warehouse-theme .input-group-text {
        background: var(--surface-muted);
        border-color: var(--border);
        font-weight: 600;
        color: var(--text);
    }

    .warehouse-theme .pagination .page-link {
        border-radius: 8px;
        color: var(--text);
    }

    .warehouse-theme .pagination .page-item.active .page-link {
        background: var(--primary-600);
        border-color: var(--primary-600);
        color: #fff;
    }

table th {
    vertical-align: middle;
    text-align: center;
    font-weight: 600 !important;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
}

table thead {
    background-color: #e5f1fe !important;
}

table td {
    vertical-align: middle !important;
}

label {
    font-weight: 600;
}

h1:focus {
    outline: none;
}

input[type="number"] {
    text-align: right;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type="checkbox"]) {
    outline: unset !important;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column,
    .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

.sidebar {
    position: static !important;
    font-size: 16px;
    height: unset !important;
}

    .sidebar .menu-group,
    .sidebar .menu-group .nav-item {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }

    .sidebar .menu-group-title,
    .sidebar span.nav-link {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        cursor: pointer;
    }

        .sidebar .menu-group-title:hover,
        .sidebar span.nav-link:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
        }

    .sidebar .menu-group-title {
        justify-content: space-between;
    }

hr {
    background: #fff;
}

.small-box {
    position: relative;
}

    .small-box > .inner {
        padding: 10px;
    }

    .small-box h3 {
        font-size: 2.2rem;
        font-weight: 700;
        margin: 0 0 10px;
        padding: 0;
        white-space: nowrap;
    }

    .small-box p {
        font-size: 1rem;
    }

    .small-box .icon {
        color: rgba(0, 0, 0, 0.15);
        z-index: 0;
    }

        .small-box .icon > span {
            font-size: 70px;
            position: absolute;
            right: 15px;
            top: 15px;
            transition: -webkit-transform 0.3s linear;
            transition: transform 0.3s linear;
            transition: transform 0.3s linear, -webkit-transform 0.3s linear;
        }

    .small-box .small-box-footer {
        background-color: rgba(0, 0, 0, 0.1);
        color: rgba(255, 255, 255, 0.8);
        display: block;
        padding: 3px 0;
        position: relative;
        text-align: center;
        text-decoration: none;
        z-index: 10;
    }

    .small-box a.button {
        display: block;
        width: 100%;
        height: 100%;
        text-align: center;
        vertical-align: middle;
    }

        .small-box a.button i {
            font-size: 75px;
            margin: 15px;
            color: #000;
        }

.modalconfig {
    position: absolute;
}

.modal {
    z-index: 9999999 !important;
}

    .modal button.close {
        border: none;
        background: none;
    }

.configsetup {
    margin: 10px 0px;
}

.card-header {
    display: flex;
    justify-content: space-between;
}

.card-title {
    margin: 0px;
    font-size: 1rem;
}

.tags label {
    float: left;
}

.tags .tag {
    float: left;
    margin-left: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    background: #e0e0e0;
    padding: 5px;
}

.tags img {
    width: 10px;
}

.order-create-section hr {
    margin: 0px;
    background: #ccc;
}

.auto-list-group {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: #fff;
    top: 22px;
    list-style-type: none;
    padding: 0px;
}

.auto-list-group-item {
    cursor: pointer;
    padding: 3px;
    color: #000;
}

    .auto-list-group-item:hover {
        background-color: #f0f0f0;
    }

.order-create-section .auto-list-group {
    left: 85px;
}

.product-section .auto-list-group {
    left: 68px;
}

.ql-align .ql-picker-label {
    padding-top: 0px !important;
}

.ql-formats .btn-img {
    padding-top: 0px !important;
}

.ql-formats .btn-code {
    width: 24px !important;
    border: 1px solid !important;
    padding: 0px !important;
    font-size: 12px;
    height: 18px !important;
    margin-top: 3px;
    font-weight: 600;
}

.submenu-open {
    padding-left: 25px;
}

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

.input-group-text:has(> input.form-check-input) {
    padding-left: 25px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: unset !important;
}

.table > :not(:last-child) > :last-child > * {
    border-bottom-color: snow !important;
}

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

    .card-header .card-title {
        font-size: 1rem;
    }
/*.table-hover tbody tr:hover {color: #212529;background-color: #FCE0A6!important}*/
.form-check-input {
    position: unset !important;
}

.categoriesproduct .item {
    height: 100%;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
    align-items: center;
    height: 100%;
    display: grid;
    cursor: pointer;
    color: #fff;
}

    .categoriesproduct .item i {
        font-size: 36px;
    }

    .categoriesproduct .item .producttext {
    }

.categoriesproduct-item {
    height: calc(100vh - 110px) !important;
    padding-left: 8px;
    padding-right: 8px;
}

.nav-sidebar > .nav-item > .nav-link {
    background-color: rgba(255, 255, 255, 0.1);
}

.container-fluid {
    width: 100%;
    padding-right: 7.5px;
    padding-left: 7.5px;
    margin-right: auto;
    margin-left: auto;
}

.container-fluid-height {
    height: calc(100vh - 30px) !important;
}

.card {
    margin-bottom: 0 !important;
}

.card-body.p-0 .table tbody > tr > td:first-of-type,
.card-body.p-0 .table tbody > tr > th:first-of-type,
.card-body.p-0 .table tfoot > tr > td:first-of-type,
.card-body.p-0 .table tfoot > tr > th:first-of-type,
.card-body.p-0 .table thead > tr > td:first-of-type,
.card-body.p-0 .table thead > tr > th:first-of-type {
    padding-left: 0.3rem !important;
}

.card-body.p-0 .table tbody > tr > td:last-of-type,
.card-body.p-0 .table tbody > tr > th:last-of-type,
.card-body.p-0 .table tfoot > tr > td:last-of-type,
.card-body.p-0 .table tfoot > tr > th:last-of-type,
.card-body.p-0 .table thead > tr > td:last-of-type,
.card-body.p-0 .table thead > tr > th:last-of-type {
    padding-right: 0.3rem !important;
}

.content-wrapper > .content {
    padding-left: 10px !important;
    padding-left: 10px !important;
    margin: auto !important;
    width: 100%;
    max-width: 100%;
}

.main-header {
    padding: 12px 10px !important;
    margin: auto !important;
    border-bottom: unset !important;
    width: 100%;
    max-width: 100%;
}

.navbar-secondary > .navbar-secondary__scroll {
    padding: 0px 10px !important;
    margin: auto !important;
    width: 100%;
    max-width: 100%;
}

.card-header {
    border-bottom: unset !important;
}

[class*="bg-"].disabled {
    opacity: 0.65;
}

.container-fluid table td {
    font-weight: 400 !important;
}

.bg-olive-active .area-name {
    font-weight: 600 !important;
}

.bg-no-olive {
    background-color: #fff;
    border-left: 2px solid transparent !important;
}

.bg-olive-active .area-name {
    font-weight: 600 !important;
    color: #000000 !important; /* Màu tên khu vực khi active */
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 150px;
    width: 100%;
    background: #fff;
    color: #000;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    padding: 8px 4px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

    .product-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

.product-card-img {
    height: 50%;
    object-fit: contain;
    margin-bottom: 4px;
    background: transparent;
    border-radius: 4px;
    mix-blend-mode: multiply;
}

.product-card-price {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
    margin-top: 2px;
}

.product-card-title {
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    font-weight: 600;
}

.btn-circle {
    width: 60px;
    height: 60px;
    padding: 10px;
    border-radius: 50%;
    font-size: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    transition: all 0.3s ease;
}

    .btn-circle:hover {
    }

.icon-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    background-color: white;
    transition: all 0.3s ease;
}

.icon-sm {
    width: 1.7rem;
    height: 1.7rem;
    line-height: 1.7rem;
}

.button-minus:hover,
.button-plus:hover {
    cursor: pointer;
}

.quantity-field {
    width: 30px !important;
    font-size: 14px;
    background: transparent;
}

    .quantity-field::-webkit-outer-spin-button,
    .quantity-field::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .quantity-field[type="number"] {
        -moz-appearance: textfield;
    }

/* Summary box custom style */
.summary-box {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.08);
    padding: 1rem;
}

    .summary-box .total {
        font-weight: 700;
        font-size: 1.3rem;
        text-align: right;
    }

    .summary-box .tax-label {
        font-weight: 600;
    }

/* Bootstrap tooltip warning style override */

/* end tooltip */
.modal-header .modal-title {
    font-size: 14pt !important;
    /* font-weight: unset !important; */
}

.input-group label.input-group-text {
    font-weight: unset !important;
}

/* Custom Scrollbar - Small and Teal */
/* For Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #adb5bd; /* teal */
    border-radius: 8px;
}

::-webkit-scrollbar-track {
    background: #e0f7fa;
    border-radius: 8px;
}
/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #adb5bd #e0f7fa;
}

/* .form-label{
    font-weight: unset !important;
} */
.form-group label,
label.form-check-label {
    /* font-weight: unset !important; */
}

/* Click effect with light teal background */
.click-effect {
    transition: background-color 0.2s ease;
}

    .click-effect:active {
    }

/* Hover effect with light teal background */
.hover-effect {
    transition: background-color 0.2s ease;
}

    .hover-effect:hover {
    }

/* Common interactive elements with click effect */
.btn-click:active,
.card-click:active,
.product-card-click:active,
.small-box-click:active,
.nav-link-click:active {
    background-color: rgba(32, 201, 151, 0.2) !important;
}

/* Common interactive elements with hover effect */
.btn-hover:hover,
.card-hover:hover,
.product-card-hover:hover,
.small-box-hover:hover,
.nav-link-hover:hover {
}

/* Ensure text remains readable during interactions */
.click-effect:active,
.btn-click:active,
.card-click:active,
.product-card-click:active,
.small-box-click:active,
.nav-link-click:active,
.hover-effect:hover,
.btn-hover:hover,
.card-hover:hover,
.product-card-hover:hover,
.small-box-hover:hover,
.nav-link-hover:hover {
    color: inherit !important;
}

#app {
    height: 100vh;
}

.content-wrapper {
    /*    height: 100vh !important;*/
    background-color: #fff !important;
}

    .content-wrapper > .content {
        padding: 14px 0.5rem !important;
    }

input::placeholder {
    color: gray;
    font-style: italic;
    opacity: 0.7; /* độ mờ */
    font-size: 12px;
    font-weight: normal !important;
}

.form-select:focus {
    box-shadow: none !important;
}

/* CSS riêng cho trang ProductCreateNew.razor */
.product-create-tabs .nav-tabs {
    /* border-bottom: 1px solid #dee2e6 !important; */
    margin: 0 !important;
    padding: 0 !important;
}

.product-create-tabs .nav-item {
    margin-bottom: -1px;
}

.product-create-tabs .nav-link {
    border: none !important;
    border-radius: 0.25rem !important;
    color: #6c757d;
    position: relative;
    padding: 8px 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 5px;
}

    .product-create-tabs .nav-link.active {
        color: #fff !important;
        background-color: #007bff !important;
        /* border-bottom: 3px solid #007bff !important; */
    }

    .product-create-tabs .nav-link:hover:not(.active) {
        color: #007bff;
        background-color: rgba(0, 123, 255, 0.05);
    }

    .product-create-tabs .nav-link i {
        margin-right: 5px;
    }

.product-create-tabs .card-header {
    background-color: white;
    padding: 10px !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.product-create-tabs .tab-content {
    padding-top: 15px;
}

.product-create-tabs .card-body {
    padding: 1.25rem;
}

/* Form label styling for ProductCreateNew.razor */
.product-create-tabs .form-label,
.product-create-form .form-label {
    font-weight: 600 !important;
}

.config-form .form-check-label {
    font-weight: 400 !important;
}

.product-create-tabs .form-check-inline {
    padding-left: 0 !important;
}

/* Responsive styles for product creation page */
@media (max-width: 768px) {
    .product-create-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .product-create-tabs .table-responsive .table-sm td {
        padding: 0.3rem 0px !important;
    }
}

/* Avatar upload for ProductCreateNew.razor */
.product-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.product-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar-profile {
    border: 3px solid #adb5bd;
    padding: 3px;
}

.product-avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient( 135deg, var(--primary-600), var(--primary-700) ) !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

    .product-avatar-upload:hover {
        /*  background: #f8f9fa;*/
        transform: scale(1.1);
    }

    .product-avatar-upload i {
        color: #fff;
        font-size: 14px;
    }

/* Responsive Radio Button Layout */
.radio-group-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
    align-items: flex-start;
}

    .radio-group-responsive .form-check {
        margin-bottom: 0;
        padding-left: 1.5em !important;
        display: flex;
        align-items: center;
    }

    .radio-group-responsive .form-check-input {
        margin-top: 0;
        margin-right: 0.5rem;
    }

    .radio-group-responsive .form-check-label {
        margin-bottom: 0;
        line-height: 1.5;
        cursor: pointer;
    }

/* Desktop: Radio buttons nằm ngang */
@media (min-width: 768px) {
    .radio-group-responsive {
        flex-direction: row;
        align-items: center;
    }

        .radio-group-responsive .form-check {
            flex: 0 0 auto;
            margin-right: 15px;
        }
}

/* Mobile: Radio buttons nằm dọc */
@media (max-width: 767.98px) {
    .radio-group-responsive {
        flex-direction: column;
        gap: 8px;
    }

        .radio-group-responsive .form-check {
            width: 100%;
            margin-right: 0;
        }
}

/* Đảm bảo alignment với label chính */
.form-group .radio-group-responsive {
    padding-left: 0;
}

/* Fix cho form-check alignment */
.form-check {
    padding-left: 1.5em !important;
    margin-bottom: 0.5rem;
}

.form-check-input {
    position: absolute;
    margin-left: -1.5em;
    margin-top: 0.25em;
}

.form-check-label {
    padding-left: 0;
    margin-bottom: 0;
}

/* Checkbox và Switch alignment */
.form-check.form-switch,
.product-create-tabs .form-check.form-switch {
    padding-left: 2.5em !important;
}

.form-switch .form-check-input {
    margin-left: -2.5em;
    width: 1.5em;
    height: 1.2em;
}

/* Responsive Button Layout for Product Creation */
.product-action-buttons-desktop {
    display: grid;
    gap: 8px;
    margin-left: auto;
    width: fit-content;
}

.product-action-buttons-mobile {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 1rem;
}

    .product-action-buttons-mobile .btn {
        flex: 1;
    }

/* Desktop: Buttons aligned right with grid layout */
@media (min-width: 992px) {
    .product-action-buttons-desktop {
        display: grid;
        gap: 8px;
        margin-left: auto;
        width: fit-content;
    }
}

/* Mobile: Buttons on same row */
@media (max-width: 991.98px) {
    .product-action-buttons-mobile {
        flex-direction: row;
    }

        .product-action-buttons-mobile .btn {
            flex: 1;
            margin: 0;
        }
}

/* Navbar */
@media (max-width: 767.98px) {
    .navbar-expand {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        /* padding: 0.5rem 1rem !important; */
        background-color: #f8f9fa !important;
        border-bottom: 1px solid #dee2e6 !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    }

        .navbar-expand .navbar-nav .nav-link {
            padding-right: 1.9rem !important;
            padding-left: unset !important;
        }
}

.dt-buttons {
    display: none !important;
}

.brand-link .brand-image {
    max-height: 65px !important;
}

.avatar-container {
    width: 103px;
    height: 103px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid #ddd;
}

    .avatar-container .avatar {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        vertical-align: middle;
    }

.nav-tabs .nav-link.active {
    background-color: #fff !important;
    color: #007bff !important;
    border-color: #007bff !important;
}

.nav-tabs .nav-link {
    color: #6c757d;
}

    .nav-tabs .nav-link:hover {
        border-color: #007bff;
        color: #007bff;
    }

.modal-payment {
    max-width: 95vw;
}

@media (max-width: 768px) {
    .modal-payment {
        margin: 0.5rem;
    }

        .modal-payment .modal-body {
            /* max-height: calc(100vh - 150px); */
            overflow-y: auto;
        }

        .modal-payment .row {
            height: auto !important;
        }

        .modal-payment .payment-column {
            height: auto !important;
            min-height: 300px;
            max-height: none !important;
            overflow-y: visible !important;
            padding-right: 0 !important;
            margin-bottom: 1rem;
            border: 1px solid #dee2e6;
            border-radius: 0.25rem;
            padding: 1rem;
        }

        .modal-payment .btn img {
            width: 50px !important;
            height: 50px !important;
        }

        .modal-payment .input-group-append {
            position: static !important;
        }

            .modal-payment .input-group-append button {
                margin-left: 0.5rem;
            }
}

@media (max-width: 576px) {
    .modal-payment {
        margin: 0;
        max-width: 100vw;
        height: 100vh;
    }

        .modal-payment .modal-content {
            height: 100vh;
            border-radius: 0;
        }

        .modal-payment .modal-body {
            max-height: calc(100vh - 120px);
            overflow-y: auto;
        }

        .modal-payment .payment-column {
            padding: 1rem;
            margin: 0 0 1rem 0;
        }

        .modal-payment .form-group {
            margin-bottom: 1rem;
        }

        .modal-payment .input-group {
            flex-wrap: nowrap;
        }

        .modal-payment .input-group-append {
            display: flex;
        }
}

.hover-bg-teal:hover {
    background-color: #20c997 !important;
}

.quantity-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #6c757d;
    border-radius: 8px;
    padding: 10px;
    max-width: 250px;
    margin: 0 auto;
}

.btn-quantity {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #6c757d;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .btn-quantity:hover {
        background-color: #f8f9fa;
        color: #495057;
    }

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    background-color: transparent;
    color: #fff;
}

    .quantity-input:focus {
        outline: none;
        box-shadow: none;
        border: none;
    }

.btn-remove {
    color: #dc3545;
}

    .btn-remove:hover {
        background-color: #f8f9fa;
        color: #dc3545;
    }

.btn-add {
    color: #198754;
}

    .btn-add:hover {
        background-color: #f8f9fa;
        color: #198754;
    }

.blazored-toast-container {
    z-index: 9999999999 !important;
}

/* CSS cho khung chọn file trong tab Signage */
.image-upload-box {
    width: 200px;
    height: 170px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

    .image-upload-box:hover {
        border-color: #007bff;
        background-color: #e3f2fd;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15);
    }

    .image-upload-box:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
    }

    .image-upload-box i {
        color: #6c757d;
        transition: color 0.3s ease;
    }

    .image-upload-box:hover i {
        color: #007bff;
    }

    .image-upload-box span {
        color: #6c757d;
        font-size: 0.875rem;
        transition: color 0.3s ease;
    }

    .image-upload-box:hover span {
        color: #007bff;
    }

/* Animation cho việc thêm ảnh mới */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-preview {
    animation: slideIn 0.3s ease-out;
}

/* ===================== VIS LOGIN DESIGN ===================== */
.vis-login-page {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.vis-login-hero {
    position: relative;
    padding: 20px 0;
    color: #f2f7ff;
    overflow: hidden;
    background: radial-gradient( 1200px at -10% 10%, rgba(255, 255, 255, 0.18), transparent 60% ), radial-gradient( 900px at 110% 20%, rgba(255, 255, 255, 0.12), transparent 55% ), linear-gradient(135deg, #0d4d96 0%, #1f70d6 100%);
    animation: heroGradientShift 12s ease-in-out infinite;
}

    .vis-login-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient( 115deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 65%, rgba(255, 255, 255, 0.08) 100% );
        opacity: 0.6;
        mix-blend-mode: screen;
        pointer-events: none;
    }

    .vis-login-hero::before {
        content: "";
        position: absolute;
        width: 1200px;
        height: 1200px;
        top: -900px;
        right: -400px;
        background: radial-gradient( circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 70% );
        animation: heroPulse 14s ease-in-out infinite;
        opacity: 0.6;
        pointer-events: none;
    }

.hero-floating-sphere,
.hero-floating-line {
    position: absolute;
    border-radius: 999px;
    opacity: 0.35;
    mix-blend-mode: screen;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.hero-floating-sphere {
    width: 180px;
    height: 180px;
    left: 12%;
    top: 30px;
    animation: heroFloatA 10s ease-in-out infinite;
}

.hero-floating-line {
    width: 260px;
    height: 70px;
    right: 15%;
    bottom: -20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
    animation: heroFloatB 11s ease-in-out infinite;
}

@keyframes heroGradientShift {
    0%, 100% {
        background-position: 0 0, 0 0, 0 0;
    }

    50% {
        background-position: 40px 30px, -40px -30px, 0 0;
    }
}

@keyframes heroPulse {
    0%, 100% {
        transform: scale(0.95) translate(0, 0);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05) translate(-20px, 20px);
        opacity: 0.75;
    }
}

@keyframes heroFloatA {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

@keyframes heroFloatB {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.35;
    }

    50% {
        transform: translateY(-15px) translateX(-20px);
        opacity: 0.55;
    }
}

.vis-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

    .vis-hero-content h1 {
        font-size: 2.8rem;
        font-weight: 700;
        margin-bottom: 12px;
        letter-spacing: 0.4px;
    }

    .vis-hero-content p {
        font-size: 1.15rem;
        opacity: 0.92;
        margin: 0;
    }

.vis-login-body {
    /* flex: 1; */
    background: #ffffff;
}

.vis-login-container {
    position: relative;
    max-width: 1180px;
    margin: 0px auto;
}

.vis-login-left {
    background: #ffffff;
    border-radius: 22px;
    padding: 36px;
    width: 100%;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.vis-login-poster {
    background: linear-gradient(150deg, #f5f9ff 0%, #ffffff 100%);
    border: 1px solid #e1e9ff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    flex: 1 1 0;
    min-height: 470px;
}

.poster-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3b82f6;
}

.visnam-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .visnam-logo img {
        height: 56px;
        object-fit: contain;
    }

.poster-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #f8fbff;
    border-radius: 12px;
    border: 1px solid #dbe7ff;
    transition: all 0.25s ease;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
}

    .menu-item:hover {
        transform: translateX(6px);
        box-shadow: 0 10px 20px rgba(30, 111, 214, 0.15);
        border-color: #3b82f6;
        background: #ffffff;
    }

.menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.18);
}

    .menu-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.company-info {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.company-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.company-subtitle {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.company-desc,
.bank-info {
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.45;
}

.bank-account {
    font-weight: 600;
}

.vis-login-footer {
    background: #ffffff;
    padding-bottom: 20px;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 36px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.6;
    /* padding-top: 24px; */
}

.footer-info {
    flex: 1;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.footer-title {
    text-transform: uppercase;
    font-weight: 700;
    color: #0d5ec3;
    margin-bottom: 6px;
}

.footer-company {
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-line {
    margin: 2px 0;
}

.footer-hotline {
    color: #f97316;
    font-weight: 700;
}

.footer-container a {
    color: #0d5ec3;
}

    .footer-container a:hover {
        text-decoration: underline;
    }

.footer-brand {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
}

.footer-logo {
    width: 204px;
    height: auto;
    object-fit: contain;
}

.footer-socials {
    display: flex;
    gap: 12px;
    font-weight: 600;
}

    .footer-socials a {
        color: #0f172a;
    }

        .footer-socials a:hover {
            color: #0d5ec3;
        }

.vis-login-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 44px;
    border: 1px solid #e5e7eb;
    flex: 0 0 420px;
    min-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

    .vis-login-form h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 30px;
        color: #1f2937;
        text-align: center;
    }

.form-field {
    margin-bottom: 20px;
}

    .form-field label {
        display: block;
        font-size: 0.95rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
    }

    .form-field .form-control {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.95rem;
        border: 1px solid #dbe0e8;
        border-radius: 8px;
        transition: all 0.25s ease;
        background: #f8fafc;
    }

        .form-field .form-control:focus {
            outline: none;
            border-color: #3b82f6;
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
        }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
}

    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

.btn-login-new {
    width: 100%;
    padding: 14px 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    margin-top: 8px;
}

    .btn-login-new:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(59, 130, 246, 0.35);
    }

    .btn-login-new:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.forgot-password-link {
    text-align: center;
    margin-top: 20px;
}

    .forgot-password-link a {
        color: #3b82f6;
        font-weight: 500;
        font-size: 0.92rem;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .forgot-password-link a:hover {
            color: #1e40af;
            text-decoration: underline;
        }

/* ===================== END VIS LOGIN DESIGN ===================== */

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

    .password-field .form-control {
        padding-right: 44px;
    }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
}

    .password-toggle:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.input-group-sm > .custom-select,
.input-group-sm > .form-control:not(textarea) {
    height: calc(1.8125rem + 8px) !important;
}

.form-control {
    height: calc(2.25rem + 4px);
}

.form-control-sm {
    height: calc(1.8125rem + 8px) !important;
}

.form-select {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    border: 1px solid #d1d5db !important;
    width: 100% !important;
}

.tw-grid-table {
    border-collapse: collapse;
}

    .tw-grid-table th,
    .tw-grid-table td {
        border: 1px solid #e5e7eb;
        padding: 0.5rem;
    }

    .tw-grid-table thead th {
        background-color: #f3f4f6;
        font-weight: 600;
    }

.form-label {
    white-space: nowrap;
}

.form-check {
    display: flex !important;
    align-items: flex-start !important;
}

    .form-check .form-check-input {
        margin-right: 0.25em !important;
    }

.bg-purple {
    background-color: #6f42c1 !important;
}

.input-group-sm > .custom-select,
.input-group-sm > .form-control:not(textarea) {
    height: calc(1.8125rem + 8px) !important;
}

/* Giới hạn độ rộng vùng nội dung theo breakpoint để tránh kéo giãn toàn màn hình */
@media (min-width: 768px) {
    .content-wrapper > .content,
    .main-header,
    .navbar-secondary > .navbar-secondary__scroll {
        max-width: 850px !important;
    }
}

@media (min-width: 1024px) {
    .content-wrapper > .content,
    .main-header,
    .navbar-secondary > .navbar-secondary__scroll {
        max-width: 1100px !important;
    }
}

@media (min-width: 1200px) {
    .content-wrapper > .content,
    .main-header,
    .navbar-secondary > .navbar-secondary__scroll {
        max-width: 1280px !important;
    }
}

@media (min-width: 1280px) {
    .content-wrapper > .content,
    .main-header,
    .navbar-secondary > .navbar-secondary__scroll {
        max-width: 1340px !important;
    }
}

@media (min-width: 1600px) {
    .content-wrapper > .content,
    .main-header,
    .navbar-secondary > .navbar-secondary__scroll {
        max-width: 1680px !important;
    }
}

.app-title {
    font-size: 26px;
    padding: 0;
    line-height: 34px;
    font-weight: 600;
    color: #333;
}

.fw-bold {
    font-weight: 700 !important;
}

/* ===================== CARD SEARCH STYLES (Tái sử dụng cho tất cả component search) ===================== */
.card-search {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

    .card-search:hover {
        box-shadow: var(--shadow-md);
    }

    .card-search .card-header {
        background: linear-gradient(180deg, var(--surface-muted), #eef4ff);
        padding: 12px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border);
        font-weight: 600;
        color: var(--primary-700);
    }

        .card-search .card-header::after {
            display: none !important;
        }

    .card-search .card-body {
        padding: 12px 16px;
    }

    .card-search .form-check-label {
        font-weight: 400 !important;
    }

    .card-search .form-label {
        font-weight: 600 !important;
    }

    .card-search .form-control,
    .card-search .form-select {
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 8px;
        font-size: 14px;
        transition: border-color 0.2s ease;
    }

        .card-search .form-control:focus,
        .card-search .form-select:focus {
            outline: none;
            border-color: var(--primary-600);
            box-shadow: 0 0 0 3px rgba(51, 106, 193, 0.1);
        }

    .card-search .form-check-input:checked {
        background-color: var(--primary-600);
        border-color: var(--primary-600);
    }

    .card-search .form-check-input:focus {
        border-color: var(--primary-600);
        box-shadow: 0 0 0 3px rgba(51, 106, 193, 0.1);
    }
/* ===================== END CARD SEARCH STYLES ===================== */

/* ===================== PAGE STYLES (Tái sử dụng cho nhiều trang) ===================== */
.container-page {
    margin: 0 auto;
    padding-top: 1rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.page-sidebar {
    background: var(--surface);
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 24px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.page-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 1200px) {
    .container-page {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
    }
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-700);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 12px;
}

.btn-page,
.btn-pill {
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
}

.btn-primary-page,
.btn-pill-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: #fff;
}

    .btn-primary-page:hover,
    .btn-pill-primary:hover {
        background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.btn-pill-secondary {
    background: var(--surface-muted);
    color: var(--text);
    border: 1px solid var(--border);
}

    .btn-pill-secondary:hover {
        background: #eef4ff;
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }

.modal-theme-brand .close {
    color: #fff;
    opacity: 0.9;
    font-size: 28px;
    font-weight: 300;
}

    .modal-theme-brand .close:hover {
        opacity: 1;
        color: #fff;
    }

.modal-theme-brand .input-group-text {
    background: linear-gradient(180deg, var(--surface-muted), #eef4ff);
    border: 1px solid var(--border);
    color: var(--primary-700);
    font-weight: 600;
}

.modal-theme-brand .form-control,
.modal-theme-brand .form-select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

    .modal-theme-brand .form-control:focus,
    .modal-theme-brand .form-select:focus {
        outline: none;
        border-color: var(--primary-600);
        box-shadow: 0 0 0 3px rgba(51, 106, 193, 0.1);
    }

.modal-theme-brand .modal-body {
    padding: 24px;
}

.modal-theme-brand .table {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0;
}

    .modal-theme-brand .table thead {
        background: linear-gradient(180deg, var(--surface-muted), #eef4ff);
    }

        .modal-theme-brand .table thead th {
            font-weight: 700;
            color: var(--primary-700);
            padding: 12px;
            border-bottom: 2px solid var(--border);
        }

    .modal-theme-brand .table tbody tr {
        transition: background 0.2s ease;
    }

        .modal-theme-brand .table tbody tr:hover {
            background: #f5f8ff;
        }

    .modal-theme-brand .table tbody td {
        padding: 12px;
        vertical-align: middle;
    }

.modal-theme-brand .alert-info {
    background: linear-gradient(180deg, var(--surface-muted), #eef4ff);
    border: 1px solid var(--primary-400);
    border-radius: 8px;
    color: var(--text);
}

.modal-theme-brand .form-check-input:checked {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

.modal-theme-brand .form-check-input:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(51, 106, 193, 0.1);
}

.modal-theme-brand .form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}

.modal-theme-brand .modal-content {
    background: var(--surface);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: none;
}

.modal-theme-brand .modal-header {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: #fff;
    border-bottom: none;
    padding: 16px 20px;
    /*    border-radius: 10px 10px 0 0;*/
}

    .modal-theme-brand .modal-header .modal-title {
        font-weight: 700;
        font-size: 18px;
        color: #fff;
    }

.modal-theme-brand .modal-footer {
    border-top: 1px solid var(--border);
    /*    background: var(--surface-muted);*/
    border-radius: 0 0 10px 10px;
}

.modal-theme-brand .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.modal-theme-brand .card-header {
    background: linear-gradient(180deg, var(--surface-muted), #eef4ff);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 10px 10px 0 0;
}

    .modal-theme-brand .card-header h6 {
        font-weight: 700;
        color: var(--primary-700);
        font-size: 14px;
        margin: 0;
    }

.modal-theme-brand .card-body {
    padding: 16px;
}

.table-container-page {
    background: var(--surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Table container cho table HTML thông thường (không dùng flex) */
.table-container-page-table {
    background: var(--surface);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-scroll-wrapper {
    max-height: 60vh;
    overflow-y: auto;
}

    .table-scroll-wrapper table {
        margin-bottom: 0;
    }

.invoice-preview-card {
    position: relative;
}

.processing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 5;
    padding: 1.5rem;
}

    .processing-overlay .spinner-border {
        width: 3rem;
        height: 3rem;
    }

.table-header-page {
    display: grid;
    grid-template-columns: 60px 120px 120px 1fr 150px 150px 140px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, var(--surface-muted), #eef4ff);
}

    .table-header-page > div {
        padding: 14px 16px;
        font-weight: 700;
        color: var(--primary-700);
        font-size: 14px;
        display: flex;
        align-items: center;
        border-bottom: 2px solid var(--border);
    }

        .table-header-page > div:first-child {
            justify-content: flex-end;
        }

        .table-header-page > div:nth-child(3),
        .table-header-page > div:nth-child(7) {
            justify-content: center;
        }

.table-body-page {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 400px;
}

    /* Custom scrollbar */
    .table-body-page::-webkit-scrollbar {
        width: 8px;
    }

    .table-body-page::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .table-body-page::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

        .table-body-page::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

.table-grid-page {
    display: grid;
    grid-template-columns: 60px 120px 120px 1fr 150px 150px 140px;
}

.table-row-page {
    display: contents;
}

    .table-row-page > div {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
        font-size: 14px;
        color: var(--text);
        transition: background 0.2s ease;
        display: flex;
        align-items: center;
    }

        .table-row-page > div:first-child {
            justify-content: flex-end;
        }

        .table-row-page > div:nth-child(3),
        .table-row-page > div:nth-child(7) {
            justify-content: center;
            gap: 8px;
        }

    .table-row-page:hover > div {
        background: #f5f8ff;
        cursor: pointer;
    }

.table-empty-page {
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    flex: 1;
}

.product-image {
    width: 52px !important;
    height: 52px !important;
    object-fit: cover;
    border-radius: 8px;
    /*    border: 1px solid var(--border);*/
    display: block;
    margin: 0 auto;
}

.badge-page {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-hang-hoa {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: #fff;
}

.badge-dich-vu {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.badge-thanh-pham {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.badge-ban-thanh-pham {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
}

.badge-nguyen-vat-lieu {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #fff;
}

.badge-cong-cu-dung-cu {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
}

/* Table styles cho trang sử dụng table HTML thông thường */
.table-page {
    margin-bottom: 0 !important;
}

    .table-page thead {
        background: linear-gradient(180deg, var(--surface-muted), #eef4ff);
    }

        .table-page thead th {
            font-weight: 700;
            color: var(--primary-700);
            padding: 12px 6px;
            border-bottom: 2px solid var(--border);
            font-size: 14px;
        }

    .table-page tbody tr {
        transition: background 0.2s ease;
    }

        .table-page tbody tr:hover {
            background: #f5f8ff;
        }

    .table-page tbody td {
        padding: 4px 6px;
        font-size: 14px;
        color: var(--text);
    }

/* Form check input styles */
.form-check-input:checked {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

.form-check-input:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(51, 106, 193, 0.1);
}

/* Badge styles */
.badge-info {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-dark {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-primary-flash {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-active {
    background-color: #22c55e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-expired {
    background-color: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Table row completed style */
.table-row-completed {
    background: #f0fdf4;
}

/* Table row total style */
.table-row-total {
    background: linear-gradient(180deg, var(--surface-muted), #eef4ff);
    font-weight: 700;
}

    .table-row-total td {
        border-bottom: 2px solid var(--border);
    }

/* Container page với flex layout */
.container-page-flex {
    margin: 0 auto;
    padding: 24px;
    padding-top: 1rem;
    display: flex;
    gap: 24px;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .container-page-flex {
        flex-direction: column;
    }

        .container-page-flex .page-sidebar {
            position: static;
        }
}

/* Card page styles */
.card-page {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

    .card-page .card-body {
        padding: 20px;
    }

.card-header-page {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: #fff;
    padding: 16px 20px;
    border-bottom: none;
}

.card-title-page {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.card-item-page {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

    .card-item-page:hover {
        background: #f5f8ff;
        border-color: var(--primary-400);
        box-shadow: var(--shadow-sm);
        transform: translateY(-2px);
    }

.list-group-item-page {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px 16px;
    background: var(--surface);
    transition: all 0.2s ease;
}

    .list-group-item-page:hover {
        background: #f5f8ff;
        border-color: var(--primary-400);
    }

.text-primary-page {
    color: var(--primary-700) !important;
    font-weight: 600;
}

/* Form select styles */
.form-select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

    .form-select:focus {
        outline: none;
        border-color: var(--primary-600);
        box-shadow: 0 0 0 3px rgba(51, 106, 193, 0.1);
    }
/* ===================== END PAGE STYLES ===================== */
.modal .btn-primary {
    background: linear-gradient( 135deg, var(--primary-600), var(--primary-700) ) !important;
}
