/* custom-blade.css - Extracted from Blade files */

/* --- about-us/index.blade.php --- */
.group-btn-hover {
    transition: all 0.3s ease;
    background-color: transparent;
}
.group-btn-hover:hover {
    background-color: #9e3a38 !important;
    color: #ffffff !important;
}

/* --- components/layouts/auth.blade.php (login, install serial) --- */
.auth-page {
    min-height: 100vh;
    margin: 0;
    background: #eceef2;
}

.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 16px;
}

.auth-box {
    width: 100%;
    max-width: 500px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dash-border);
}

.auth-logo {
    width: 84px;
    height: 84px;
    background-color: #9e3a38;
    -webkit-mask: url("../../images/logo/super-cashier.png") center / contain no-repeat;
    mask: url("../../images/logo/super-cashier.png") center / contain no-repeat;
}

.auth-name {
    color: #1e293b;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.auth-name span {
    color: #9e3a38;
}

.auth-card {
    padding: 36px 36px 32px;
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: var(--dash-surface);
    box-shadow: 0 12px 34px rgba(16, 24, 40, .07);
}

.auth-card label {
    display: block;
    margin-bottom: 8px;
    color: var(--dash-muted);
    font-size: 14px;
    font-weight: 600;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .form-control {
    height: 48px;
    font-size: 16px;
}

.auth-submit {
    height: 50px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
}

.auth-card .btn.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-status {
    text-align: center;
}

.auth-status-title {
    margin: 0 0 10px;
    color: var(--dash-text);
    font-size: 21px;
    font-weight: 700;
}

.auth-status-text {
    margin: 0 0 22px;
    color: var(--dash-muted);
    font-size: 15px;
    line-height: 1.8;
}

.auth-phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin-bottom: 22px;
}

.auth-phones a {
    color: #dc2626;
    font-size: 19px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.auth-phones a:hover {
    text-decoration: underline;
}

.auth-card .btn.auth-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    margin-top: 10px !important;
    font-weight: 600;
}

body.dark-mode.auth-page {
    background: var(--dash-bg);
}

body.dark-mode .auth-name {
    color: #e6edf7;
}

body.dark-mode .auth-logo {
    background-color: #e0726c;
}

body.dark-mode .auth-name span {
    color: #e0726c;
}

body.dark-mode .auth-card {
    border-color: var(--dash-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

body.dark-mode .auth-card label {
    color: var(--dash-muted) !important;
}

body.dark-mode .auth-phones a {
    color: #f87171;
}

body.dark-mode .auth-status-title {
    color: var(--dash-text) !important;
}

.auth-watermark::before,
.auth-watermark::after,
.app-watermark::before,
.app-watermark::after {
    content: "";
    position: fixed;
    z-index: 0;
    width: min(500px, 48vw);
    aspect-ratio: 1;
    background: url("../../images/logo/super-cashier.png") center / contain no-repeat;
    filter: brightness(0);
    opacity: .06;
    pointer-events: none;
}

.auth-watermark::before,
.app-watermark::before {
    top: 0;
    left: 0;
    transform: translate(-32%, -32%) rotate(-12deg);
}

.auth-watermark::after,
.app-watermark::after {
    right: 0;
    bottom: 0;
    transform: translate(32%, 32%) rotate(-12deg);
}

body.dark-mode.auth-watermark::before,
body.dark-mode.auth-watermark::after,
body.dark-mode .app-watermark::before,
body.dark-mode .app-watermark::after {
    filter: none;
    opacity: .05;
}

.auth-watermark .auth-wrap,
.hardware-showcase-container {
    position: relative;
    z-index: 1;
}

.app-watermark {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.auth-compact .auth-box {
    max-width: 380px;
}

.auth-compact .auth-brand {
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 22px;
}

.auth-compact .auth-logo {
    width: 66px;
    height: 66px;
}

.auth-compact .auth-name {
    font-size: 22px;
}

.auth-compact .auth-card {
    padding: 36px 28px 32px;
    border-radius: 14px;
}

.auth-compact .auth-card label {
    margin-bottom: 6px;
    font-size: 13px;
}

.auth-compact .auth-card .form-group {
    margin-bottom: 22px;
}

.auth-compact .auth-card .form-control {
    height: 46px;
    font-size: 15px;
}

.auth-compact .auth-submit {
    height: 48px;
    margin-top: 10px;
    font-size: 15px;
}

@media (max-width: 575px) {
    .auth-card {
        padding: 26px 20px 22px;
    }

    .auth-logo {
        width: 80px;
        height: 80px;
    }
}

.err-code {
    margin-bottom: 10px;
    color: #9e3a38;
    font-size: 64px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

body.dark-mode .err-code {
    color: #e0726c;
}

/* --- components/contact-modal.blade.php & errors/expired.blade.php --- */
/* iOS App Colors */
.ios-call { background: linear-gradient(180deg, #34C759 0%, #28A745 100%); }
.ios-wa { background: linear-gradient(180deg, #25D366 0%, #128C7E 100%); }
.ios-viber { background: linear-gradient(180deg, #836df7 0%, #665cac 100%); }
.ios-tg { background: linear-gradient(180deg, #33c4ff 0%, #0088cc 100%); }

/* Action List & Icons */
.action-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 10px 0 30px;
}
.icon-btn {
    width: 60px;
    height: 60px;
    border-radius: 14px; /* iOS App Icon Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.icon-btn img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.icon-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.icon-btn:hover img {
    transform: scale(1.05);
}

/* Centered Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.action-modal {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 25px 20px 30px;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-overlay.active .action-modal {
    transform: scale(1);
    opacity: 1;
}
.action-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.action-modal .modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #212529;
    margin: 0;
    direction: ltr;
}
.action-modal .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* System Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .action-modal { background: #242424; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
    .action-modal .modal-header { border-bottom-color: #333333; }
    .action-modal .modal-title { color: #ffffff; }
    .action-modal .close-modal { color: #a0a0a0; }
    .icon-btn { box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
}

/* Small mobile tweaks */
@media (max-width: 480px) {
    .icon-btn { width: 55px; height: 55px; border-radius: 12px; }
    .icon-btn img { width: 32px; height: 32px; }
    .action-list { gap: 15px; }
}

/* --- price-checker.blade.php --- */
body.price-checker-page {
    /* Ultra Minimalist Dark Theme */
    --bg-color: #0f1115; /* Very deep, elegant black/slate */
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --accent: #38bdf8;
    --success: #10b981;
    --error: #f43f5e;
}

body.price-checker-page * {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

body.price-checker-page {
    margin: 0;
    padding: 0;
    font-family: 'Noto Kufi Arabic', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Logo at the top */
body.price-checker-page .header-logo {
    position: absolute;
    top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 10;
}

body.price-checker-page .header-logo img {
    height: 60px;
    object-fit: contain;
    opacity: 0.9;
}

/* No glass box, just a clean wrapper */
body.price-checker-page .container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

body.price-checker-page .state-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    animation: fadeIn 0.4s ease-out forwards;
}

body.price-checker-page .state-container.active {
    display: flex;
}

/* Idle State */
body.price-checker-page .scan-icon {
    color: var(--accent);
    margin-bottom: 2rem;
    animation: pulse 2.5s ease-in-out infinite;
}

body.price-checker-page .scan-icon svg {
    width: 100px;
    height: 100px;
}

body.price-checker-page .idle-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    line-height: 1.2;
}

body.price-checker-page .idle-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 400;
}

/* Loading State */
body.price-checker-page .loader {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255,255,255,0.05);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.price-checker-page .loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    color: var(--text-muted);
}

/* Result State */
body.price-checker-page .result-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

body.price-checker-page .product-image {
    height: 200px;
    width: 200px;
    object-fit: contain;
    border-radius: 1rem;
    background-color: white;
    padding: 10px;
    display: none;
}

body.price-checker-page .product-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
    color: var(--text-main);
    width: 100%;
    padding: 0 1rem;
}

body.price-checker-page .product-price {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--success);
    margin: 0;
}

body.price-checker-page .error-message {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--error);
    margin-top: 1.5rem;
}

/* Minimal Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* --- vendor/sn-ai/chat.blade.php --- */
body.sn-ai-chat-page *,
body.sn-ai-chat-page *::before,
body.sn-ai-chat-page *::after {
    box-sizing: border-box;
}

body.sn-ai-chat-page {
    font-family: 'Noto Sans', 'Noto Sans Arabic', system-ui, sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #0d0d0d;
}

html.dark body.sn-ai-chat-page {
    background-color: #212121;
    color: #ececec;
}

html.dark body.sn-ai-chat-page .theme-icon-light {
    display: none !important;
}

html:not(.dark) body.sn-ai-chat-page .theme-icon-dark {
    display: none !important;
}

body.sn-ai-chat-page [x-cloak] {
    display: none !important;
}

body.sn-ai-chat-page textarea {
    font-size: 15px;
}

body.sn-ai-chat-page ::-webkit-scrollbar {
    width: 5px;
}

body.sn-ai-chat-page ::-webkit-scrollbar-track {
    background: transparent;
}

body.sn-ai-chat-page ::-webkit-scrollbar-thumb {
    background: #cdcdcd;
    border-radius: 99px;
}

html.dark body.sn-ai-chat-page ::-webkit-scrollbar-thumb {
    background: #424242;
}

body.sn-ai-chat-page .sb-hide {
    transform: translateX(-100%) !important;
}

body.sn-ai-chat-page[dir="rtl"] .sb-hide {
    transform: translateX(100%) !important;
}

@media (max-width: 767.98px) {
    body.sn-ai-chat-page aside:not(.sb-show) {
        transform: translateX(-100%);
    }

    body.sn-ai-chat-page[dir="rtl"] aside:not(.sb-show) {
        transform: translateX(100%);
    }

    body.sn-ai-chat-page aside.sb-show {
        transform: translateX(0) !important;
    }
}

@media (min-width: 768px) {
    body.sn-ai-chat-page aside.sb-hide {
        transform: none !important;
        width: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        border-width: 0 !important;
        padding: 0 !important;
    }
}

body.sn-ai-chat-page .dot-0 {
    animation-delay: -0.32s;
}

body.sn-ai-chat-page .dot-1 {
    animation-delay: -0.16s;
}

body.sn-ai-chat-page .md-body p {
    margin: 0 0 0.75em;
    line-height: 1.75;
}

body.sn-ai-chat-page .md-body>p:first-child {
    margin-top: 0;
}

body.sn-ai-chat-page .md-body>p:last-child {
    margin-bottom: 0;
}

body.sn-ai-chat-page .md-body ul {
    list-style: disc;
    padding-inline-start: 1.5em;
    margin: 0.5em 0;
}

body.sn-ai-chat-page .md-body ol {
    list-style: decimal;
    padding-inline-start: 1.5em;
    margin: 0.5em 0;
}

body.sn-ai-chat-page .md-body li {
    margin: 0.25em 0;
    line-height: 1.65;
}

body.sn-ai-chat-page .md-body strong {
    font-weight: 600;
}

body.sn-ai-chat-page .md-body a {
    text-decoration: underline;
    color: #4285f4;
}

body.sn-ai-chat-page .md-body blockquote {
    border-inline-start: 3px solid #4285f4;
    padding-inline-start: 1em;
    margin: 0.75em 0;
    opacity: 0.85;
}

body.sn-ai-chat-page .md-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75em 0;
    font-size: 0.875rem;
}

body.sn-ai-chat-page .md-body th,
body.sn-ai-chat-page .md-body td {
    border: 1px solid #e5e5e5;
    padding: 0.5rem 0.8rem;
    text-align: start;
}

body.sn-ai-chat-page .md-body th {
    font-weight: 600;
    background: #f4f4f4;
}

html.dark body.sn-ai-chat-page .md-body th,
html.dark body.sn-ai-chat-page .md-body td {
    border-color: #424242;
}

html.dark body.sn-ai-chat-page .md-body th {
    background: #2f2f2f;
}

html.dark body.sn-ai-chat-page .md-body blockquote {
    border-color: #7cacf8;
}

body.sn-ai-chat-page .md-body code:not(.cb code) {
    font-family: ui-monospace, monospace;
    font-size: 0.85em;
    padding: 0.15em 0.35em;
    border-radius: 6px;
    background: #f4f4f4;
    color: #0d0d0d;
}

html.dark body.sn-ai-chat-page .md-body code:not(.cb code) {
    background: #2f2f2f;
    color: #ececec;
}

body.sn-ai-chat-page .cw {
    border-radius: 12px;
    overflow: hidden;
    margin: 0.75em 0;
    border: 1px solid #30363d;
    background: #0d1117;
}

body.sn-ai-chat-page .ch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.85rem;
    font-size: 0.7rem;
    font-family: ui-monospace, monospace;
    color: #8b949e;
    background: #161b22;
    border-bottom: 1px solid #21262d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.sn-ai-chat-page .cb {
    padding: 0.75rem 1rem;
    overflow-x: auto;
    font-size: 0.8125rem;
    font-family: ui-monospace, monospace;
    line-height: 1.65;
    color: #e6edf3;
}

body.sn-ai-chat-page .cb pre {
    margin: 0;
    background: transparent;
}

body.sn-ai-chat-page .cb code {
    font-family: inherit;
    background: transparent;
    padding: 0;
}
/* Custom App Navbar and Dropdown Styles */
.custom-dropdown-menu {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border: none;
    border-radius: 4px;
    overflow: hidden;
    position: absolute;
}
.custom-dropdown-menu .dropdown-item:active,
.custom-dropdown-menu .dropdown-item:focus {
    background-color: #f5f6fa;
    color: inherit;
}

.dropdown-menu-lang { min-width: 160px; }
.dropdown-menu-user { min-width: 220px; }

.img-fit-cover { object-fit: cover; }

.lang-dropdown-text {
    font-size: 14px;
    color: #364a63;
    font-weight: 500;
}

.dropdown-divider-custom { border-top-color: #e5e9f2; }

.user-avatar-sm {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.user-avatar-placeholder-sm {
    width: 30px;
    height: 30px;
    background-color: #6576ff;
    color: white;
}
.user-avatar-icon-sm { font-size: 15px; }

.lh-11 { line-height: 1.1; }
.lh-12 { line-height: 1.2; }

.user-role-text {
    font-size: 10px;
    color: #9aa8f9;
    font-weight: 600;
}

.user-name-text { font-size: 12px; }
.dropdown-chevron-sm { font-size: 9px; }

.user-dropdown-header {
    background-color: #f5f6fa;
    border-bottom: 1px solid #e5e9f2;
}

.user-avatar-lg {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.user-avatar-placeholder-lg {
    width: 40px;
    height: 40px;
    background-color: #6576ff;
    color: white;
}
.user-avatar-icon-lg { font-size: 20px; }

.user-dropdown-name {
    font-size: 14px;
    font-weight: 700;
    color: #364a63;
}

.user-dropdown-username {
    font-size: 12px;
    color: #8094ae;
}

.dropdown-menu-icon {
    font-size: 18px;
    color: #526484;
}

.dropdown-menu-text {
    font-size: 13px;
    color: #526484;
    font-weight: 600;
}

/* Extracted Inline Styles */
.auto-style-1 { z-index: 10; margin-top: 3rem; }
.auto-style-2 { border: 2px solid #9e3a38; border-radius: 30px; color: #9e3a38; padding: 10px 20px; font-weight: 700; text-decoration: none; overflow: hidden; }
.auto-style-3 { font-size: 24px; font-weight: bold; }
.auto-style-4 { width:100%; border:0; margin-top: 20px; }
.auto-style-5 { width: 50%; vertical-align: top; border:0; }
.auto-style-6 { width: 95%; }
.auto-style-7 { width: 100%; }
.auto-style-8 { float: left; }
.auto-style-9 { font-size: 20px; }
.auto-style-10 { font-size: 20px; font-weight: 900; color: #10b981 !important; }
.auto-style-11 { color:green; font-weight:bold; }
.auto-style-12 { border-radius: 8px; }
.auto-style-13 { height: 45px; }
.auto-style-14 { white-space: pre-line; }
.auto-style-15 { width: 100%; height: auto; }
.auto-style-16 { width:100%; display:block; }
.auto-style-17 { text-align: center; margin-bottom: 20px; }
.auto-style-18 { max-width: 100%; }
.auto-style-19 { display: flex; justify-content: space-between; align-items: center; }
.auto-style-20 { text-align: right; color: white; }
.auto-style-21 { margin: 5px 0; font-size: 1.5em; font-weight: bold; color: white; }
.auto-style-22 { margin: 5px 0; color: white; white-space: pre-line; }
.auto-style-23 { margin: 5px 0; color: white; }
.auto-style-24 { text-align: left; }
.auto-style-25 { border-radius: 50%; width: 100px; height: 100px; object-fit: cover; }
.auto-style-26 { height: 60px; font-size: 2rem; border: 1px solid #ddd; background-color: #f8f9fa; cursor: pointer; transition: background-color 0.2s; padding: 0 15px; max-width: 320px; border-radius: 6px; }
.auto-style-27 { user-select: none; }
.auto-style-28 { border: none; background: transparent; box-shadow: none; padding-left: 0; padding-right: 0; max-width: 100px; font-size: 2rem; height: 60px; }
.auto-style-29 { margin-top: 40px; }
.auto-style-30 { gap: 80px; margin-top: 50px; }
.auto-style-31 { max-width: 90px; }
.auto-style-32 { font-size: 14px; }
.auto-style-35 { margin-top: 10px; }
.auto-style-37 { cursor: pointer; }
.auto-style-38 { display: none; }
.auto-style-39 { background-color: #f4f4f4; margin: 0 !important; padding: 0 !important; }
.auto-style-40 { padding: 0px 10px 0px 10px; }
.auto-style-41 { max-width: 600px; }
.auto-style-42 { padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #111111; font-family: 'Lato', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; letter-spacing: 4px; line-height: 48px; }
.auto-style-43 { font-size: 48px; font-weight: 400; margin: 2; }
.auto-style-44 { padding: 20px 30px 40px 30px; color: #666666; font-family: 'Lato', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px; }
.auto-style-45 { margin: 0; }
.auto-style-46 { padding: 20px 30px 60px 30px; }
.auto-style-47 { border-radius: 3px; }
.auto-style-48 { font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #9e3a38; display: inline-block; }
.auto-style-49 { padding: 0px 30px 40px 30px; border-radius: 0px 0px 4px 4px; color: #666666; font-family: 'Lato', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px; }
.auto-style-50 { width: 45%; }
.auto-style-51 { width: 15%; }
.auto-style-52 { width: 20%; }
.auto-style-53 { display: flex; justify-content: center; padding: 4px 0; }
.auto-style-54 { color: var(--error); }
.auto-style-55 { display: inline; }
.auto-style-56 { border: none; cursor: pointer; }
.auto-style-57 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.auto-style-58 { color: white; font-weight: bold; }
.auto-style-59 { color: white; }
.auto-style-60 { min-width: 130px; }
.auto-style-61 { white-space: nowrap; min-width: 110px; }
.auto-style-62 { cursor:pointer; }
.auto-style-63 { opacity:.6; margin-inline-end: 5px; }
.auto-style-64 { cursor: grab; }

/* Fast Sale POS Grid */
.pos-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr));
    grid-auto-rows: max-content;
    align-content: start;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.pos-products-grid > .pos-no-info {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
    max-width: 100%;
    padding: 8px 24px;
}

/* Fast Sale Split Container */
#pos-split-container {
    flex-wrap: nowrap !important;
}

#pos-left-panel, #pos-right-panel {
    min-width: 0;
}

.pos-gutter {
    width: 12px;
    flex: 0 0 12px;
    max-width: 12px;
    min-width: 12px;
    background-color: transparent;
    cursor: col-resize;
    z-index: 10;
    transition: background-color 0.2s;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.pos-gutter::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 5px;
    width: 2px;
    background-color: #dee2e6;
    border-radius: 1px;
    transition: background-color 0.2s;
}

.pos-gutter:hover, .pos-gutter.resizing {
    background-color: var(--pos-total-bg-color, #007bff);
}

.pos-gutter:hover::after, .pos-gutter.resizing::after {
    background-color: #fff;
}

/* Sortable JS overrides */
.pos-products-grid > div, .pos-products-grid > div *,
#sortable-categories > button, #sortable-categories > button * { 
    -webkit-touch-callout: none !important; 
    -webkit-user-select: none !important; 
    -moz-user-select: none !important; 
    -ms-user-select: none !important; 
    user-select: none !important; 
}
.sortable-ghost { opacity: 0.4; background-color: rgba(0,0,0,0.05); border: 2px dashed #ccc; border-radius: 8px; }
.sortable-chosen, .sortable-chosen * { cursor: move !important; }
.sortable-drag { cursor: move !important; opacity: 0.8; transform: scale(1.02); z-index: 9999 !important; }

/* POS Fast Sale Cards */
.pos-card-wrapper {
    cursor: pointer;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}
.pos-card-wrapper-flex {
    display: flex;
    flex-direction: column;
}
.pos-card-img-bg {
    background-color: #f8f9fa;
}
.pos-card-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    padding: 5px;
}
.pos-img-cover {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.pos-img-contain {
    width: 100%;
    aspect-ratio: 1;
    max-height: 100px;
    object-fit: contain;
    padding: 5px;
}
.pos-card-body-flex {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pos-card-title {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}
.pos-card-title-sm {
    font-size: 12px;
}
.pos-card-footer {
    background-color: #fafafa;
    font-size: 12px;
    font-weight: bold;
}

/* Dashboard Sortable Styles */
#sortable-dashboard > div, #sortable-dashboard > div *, #sortable-reports > div, #sortable-reports > div * { -webkit-touch-callout: none !important; -webkit-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; user-select: none !important; }
.sortable-drag { z-index: 9999 !important; }
.sortable-drag * { cursor: move !important; }

/* Store Filters */
.filter-radio-label {
    font-size: 0.85rem;
    white-space: nowrap;
}

/* POS product discount tag (price rules) */
.pos-discount-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    color: #fff;
    background: linear-gradient(135deg, #ff5f6d, #ff2d55);
    box-shadow: 0 1px 4px rgba(255, 45, 85, 0.35);
    white-space: nowrap;
}

.pos-discount-tag i {
    font-size: 10px;
}

.pos-discount-tag span {
    font-weight: 400;
    opacity: 0.9;
}

.pos-old-total {
    display: block;
    font-size: 11px;
    line-height: 12px;
    color: #9aa0a6;
    text-decoration: line-through;
}

/* Price change, discount and offer pages */
.price-fieldset {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0 12px 6px;
    margin-bottom: 12px;
}

.price-fieldset legend {
    width: auto;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 8px;
    margin-bottom: 0;
}

.price-table thead th {
    background: #f5f6fa;
    vertical-align: middle;
    white-space: nowrap;
}

.price-table tfoot td {
    background: #fafbfc;
}

.price-table td small {
    display: block;
    margin-top: 2px;
}

/* --- components/ui/expire-plan.blade.php: hosting plan expiry banner --- */
.expire-warning-banner {
    background: linear-gradient(135deg, #fff8f8 0%, #ffeef0 100%);
    border: 1px solid #ffd6dc !important;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    padding: 1.25rem 1.5rem !important;
}

.expire-warning-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #ff8a9b, #dc3545);
}

.expire-warning-banner .banner-text {
    flex: 1;
    font-size: 0.9rem;
    color: #6b6b6b;
    line-height: 1.8;
    margin-bottom: 0;
    font-weight: 600;
    text-align: center;
}

.expire-warning-banner .expire-phones {
    display: block;
    white-space: nowrap;
}

.expire-warning-banner .date-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    line-height: 1;
    vertical-align: middle;
    text-align: center;
    font-variant-numeric: tabular-nums;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    background: #ffe1e6;
    color: #dc3545;
    margin: 0 2px;
}

.expire-warning-banner .expire-phone {
    color: #dc3545;
    font-weight: 700;
    text-decoration: none;
}

.expire-warning-banner .expire-phone:hover {
    text-decoration: underline;
}

.expire-warning-banner .phone-separator {
    color: #b0b0b0;
    margin: 0 2px;
}

.backup-warning-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    background: linear-gradient(135deg, #fff8f8 0%, #ffeef0 100%);
    border: 1px solid #ffd6dc !important;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    padding: 0.9rem 1.5rem !important;
}

.backup-warning-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #ff8a9b, #dc3545);
}

.backup-warning-banner .banner-text {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    color: #6b6b6b;
    line-height: 1.8;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.backup-warning-banner .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@keyframes pulseKeyframe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.75; }
}

.animate-pulse {
    animation: pulseKeyframe 2s ease-in-out infinite;
}

/* --- scripts/custom/balance.blade.php: first balance item with 0 total / 0 price --- */
/* !important: the table, striped/hover and form-control themes all use it */
#product_body_result tr.balance-row-zero,
#product_body_result tr.balance-row-zero td {
    background-color: #dc3545 !important;
    color: #fff !important;
}

/* product name link, serial badge and remove icon stay readable on the red row */
#product_body_result tr.balance-row-zero a,
#product_body_result tr.balance-row-zero .material-icons {
    color: #fff !important;
}

#product_body_result input.balance-input-zero,
#product_body_result input.balance-input-zero:focus {
    border: 1px solid #b02a37 !important;
    background-color: #dc3545 !important;
    color: #fff !important;
    font-weight: bold;
}

/* a 0 price inside a red row: white border so it doesn't melt into the row */
#product_body_result tr.balance-row-zero input.balance-input-zero {
    border: 2px solid #fff !important;
}

/* --- store/balance create & edit: save button next to the note input --- */
.note-with-button {
    gap: 0.5rem;
}

/* --- store/balance create & edit: "more than 10 products" warning under the search --- */
.items-count-warning {
    margin: 0.35rem 0;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    background-color: #fff3cd;
    color: #856404;
}

.pcs {
    --pcs-text: var(--dash-text);
    --pcs-muted: var(--dash-muted);
    padding-bottom: 96px;
    color: var(--dash-text);
    font-family: var(--dash-font);
}

.pcs-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pcs-tab:focus,
.pcs-state:focus {
    outline: none;
}

.pcs-tab:focus-visible,
.pcs-state:focus-visible {
    outline: 2px solid var(--dash-accent);
    outline-offset: 2px;
}

.pcs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
    padding: 6px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-surface);
}

.pcs-tab {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding-inline: 14px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--dash-text);
    font-family: var(--dash-font);
    font-size: var(--dash-text-body);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}

.pcs-tab:hover {
    background: var(--dash-hover);
}

.pcs-tab.active {
    background: #eef4ff;
    color: #2563eb;
    font-weight: 700;
}

.pcs-panel {
    display: none;
}

.pcs-panel.active {
    display: block;
}

.pcs-card {
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.pcs-card-head {
    margin-bottom: 16px;
}

.pcs-card-head h6 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--dash-text) !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.pcs-card-head h6::before {
    content: "";
    flex: none;
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: #2563eb;
}

.pcs-label {
    margin-bottom: 6px;
    color: var(--dash-muted);
    font-size: 13px;
    font-weight: 600;
}

.pcs-off {
    display: none !important;
}

.ui-drop-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ui-drop-title {
    color: var(--dash-text);
    font-size: var(--dash-text-small);
    font-weight: 600;
}

.ui-drop {
    position: relative;
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    margin: 0;
    overflow: hidden;
    border: 1px dashed var(--dash-border-strong);
    border-radius: var(--dash-radius-card);
    background: var(--dash-hover);
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
}

.ui-drop-wide {
    width: 100%;
    height: 140px;
}

.ui-drop:hover,
.ui-drop.is-dragging {
    border-color: var(--dash-accent);
    background: var(--dash-press);
}

.ui-drop:focus-within {
    outline: 2px solid var(--dash-accent);
    outline-offset: 2px;
}

.ui-drop input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ui-drop img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
}

.ui-drop-wide img {
    padding: 0;
    object-fit: cover;
}

.ui-drop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    color: var(--dash-muted);
    font-size: var(--dash-text-small);
    text-align: center;
}

.ui-drop-empty i {
    font-size: var(--dash-icon-size);
}

.ui-drop.has-image .ui-drop-empty {
    display: none;
}

.ui-drop-change {
    position: absolute;
    bottom: 8px;
    inset-inline-end: 8px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-control);
    background: var(--dash-surface);
    color: var(--dash-text);
    font-size: var(--dash-text-small);
    opacity: 0;
    transition: opacity .12s ease;
}

.ui-drop.has-image:hover .ui-drop-change,
.ui-drop.has-image:focus-within .ui-drop-change {
    opacity: 1;
}

.ui-drop-remove {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 0;
    border-radius: var(--dash-radius-control);
    background: none;
    color: var(--dash-danger);
    font-size: var(--dash-text-small);
    font-weight: 600;
    cursor: pointer;
}

.ui-drop-remove[hidden] {
    display: none;
}

.ui-drop-remove:hover {
    background: rgba(207, 34, 46, .08);
}

.ui-drop-remove:focus-visible {
    outline: 2px solid var(--dash-accent);
    outline-offset: 2px;
}

.pcs-switches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.ui-switch-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ui-switch-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-hover);
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
}

.ui-switch-card:hover {
    border-color: var(--dash-border-strong);
}

.ui-switch-card:has(.ui-switch-input:checked) {
    border-color: color-mix(in srgb, #2563eb 35%, var(--dash-surface));
    background: color-mix(in srgb, #2563eb 5%, var(--dash-surface));
}

.ui-switch-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ui-switch-label {
    font-size: var(--dash-text-body);
    font-weight: 600;
    line-height: 1.4;
}

.ui-switch-hint {
    color: var(--dash-muted);
    font-size: var(--dash-text-small);
    line-height: 1.4;
}

.ui-switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ui-switch {
    position: relative;
    flex: none;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: var(--dash-border-strong);
    transition: background-color .15s ease;
}

.ui-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    inset-inline-start: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s ease;
}

.ui-switch-input:checked ~ .ui-switch {
    background: var(--dash-accent);
}

.ui-switch-input:checked ~ .ui-switch::after {
    transform: translateX(16px);
}

[dir="rtl"] .ui-switch-input:checked ~ .ui-switch::after {
    transform: translateX(-16px);
}

.ui-switch-input:focus-visible ~ .ui-switch {
    outline: 2px solid var(--dash-accent);
    outline-offset: 2px;
}

.ui-switch-input:disabled ~ .ui-switch {
    opacity: .5;
}

.pcs-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pcs-preview {
    position: sticky;
    top: 64px;
}

.pcs-states {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-hover);
}

.pcs-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    height: 32px;
    padding-inline: 6px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dash-muted);
    font-family: var(--dash-font);
    font-size: var(--dash-text-small);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}

.pcs-state span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcs-state:hover {
    color: var(--dash-text);
}

.pcs-state.active {
    background: var(--dash-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
    color: #2563eb;
}

.pcs-device-wrap {
    display: flex;
    justify-content: center;
    padding: 14px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-hover);
}

.pcs-device {
    position: relative;
    overflow: hidden;
    border-radius: var(--dash-radius-control);
    background: #0b0f19;
    box-shadow: 0 0 0 1px var(--dash-border-strong);
    transition: width .2s ease, height .2s ease;
}

.pcs-device iframe {
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    transform-origin: 0 0;
    pointer-events: none;
}

.pcs-savebar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    z-index: 1040;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 32px);
    padding: 8px;
    padding-inline-start: 16px;
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-card);
    background: var(--dash-surface);
    color: var(--dash-text);
    transform: translate(-50%, calc(100% + 32px));
    transition: transform .2s ease;
}

.pcs-savebar.show {
    transform: translate(-50%, 0);
}

.pcs-savebar-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-end: 8px;
    font-size: var(--dash-text-body);
    font-weight: 600;
}

.pcs-savebar-text i {
    color: var(--dash-muted);
    font-size: var(--dash-icon-size);
}

@keyframes pcs-nudge {
    50% {
        opacity: 0.45;
    }
}

@media (max-width: 991px) {
    .pcs-preview {
        position: static;
        margin-top: 8px;
    }

    .pcs-head-actions {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .pcs-card,
    .pcs-preview {
        padding: 12px;
    }

    

    .pcs-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .pcs-savebar {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: none;
        border-width: 1px 0 0;
        border-radius: 0;
        transform: translateY(100%);
    }

    .pcs-savebar.show {
        transform: none;
    }

    .pcs-savebar-text {
        flex: 1 1 100%;
        margin: 0;
        font-size: var(--dash-text-small);
    }

    .pcs-state span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pcs-savebar,
.pcs-device,
.ui-switch,
.ui-switch::after {
        transition: none;
        animation: none;
    }
}

table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:before,
table.dataTable thead .sorting_desc_disabled:after {
    display: none !important;
}

.navbar .navbar-nav .nav-item {
    position: relative;
    margin: 0 4px;
}

.navbar .navbar-nav .nav-link {
    padding: 8px 10px !important;
    color: rgba(255, 255, 255, .85) !important;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .15s ease;
}

.navbar .navbar-nav .nav-item.hover-enable:not(.dropdown)::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 2px;
    left: 10px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform: scaleX(0);
    transition: transform .2s ease;
}

.navbar .hover-enable:not(.nav-active):hover {
    background-color: transparent !important;
}

.navbar .hover-enable:not(.nav-active):hover a,
.navbar .hover-enable:not(.nav-active):hover span,
.navbar .nav-active .nav-link {
    color: #fff !important;
}

.navbar .navbar-nav .nav-item.hover-enable:not(.dropdown):hover::after,
.navbar .navbar-nav .nav-item.hover-enable.nav-active:not(.dropdown)::after {
    transform: scaleX(1);
}

.navbar .nav-active {
    border-top: 0 !important;
}

.navbar .navbar-nav .nav-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-drawer-overlay {
    display: none;
}

@media (max-width: 991px) {
    body.nav-drawer-open {
        overflow: hidden;
    }

    .nav-drawer-overlay {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: block;
        background: rgba(17, 24, 39, .35);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.nav-drawer-open .nav-drawer-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.dark-mode .nav-drawer-overlay {
        background: rgba(0, 0, 0, .6);
    }

    .navbar .nav-drawer.navbar-collapse {
        position: fixed;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        z-index: 2;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: 270px;
        max-width: 85%;
        height: 100% !important;
        overflow-y: auto;
        background: var(--dash-surface);
        box-shadow: 0 0 40px rgba(15, 23, 42, .22);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s ease;
    }

    [dir="ltr"] .navbar .nav-drawer.navbar-collapse {
        transform: translateX(-100%);
    }

    body.nav-drawer-open .navbar .nav-drawer.navbar-collapse {
        transform: none;
        visibility: visible;
    }

    .nav-drawer-head {
        display: flex;
        flex: none;
        align-items: center;
        gap: 10px;
        min-height: 60px;
        padding: 0 16px;
        background: #9e3a38;
        color: #fff;
        font-size: 16px;
        font-weight: 700;
    }

    .navbar .nav-drawer .navbar-nav {
        direction: inherit !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 2px;
        margin: 0 !important;
        padding: 10px 6px;
    }

    .navbar .nav-drawer .navbar-nav:not(:has(> .nav-item:not(.d-none))) {
        padding: 0;
    }

    .navbar .nav-drawer .navbar-nav:has(> .nav-item:not(.d-none)) + .navbar-nav:has(> .nav-item:not(.d-none)) {
        align-self: stretch;
        border-top: 1px solid var(--dash-border);
    }

    .navbar .nav-drawer .navbar-nav .nav-item {
        margin: 0;
    }

    .navbar .nav-drawer .navbar-nav .nav-link {
        position: relative;
        display: inline-block;
        padding: 10px !important;
        font-size: 15px;
        text-align: start !important;
        white-space: normal;
    }

    .navbar .nav-drawer .navbar-nav .nav-item .nav-link,
    .navbar .nav-drawer .navbar-nav .nav-item .nav-link span {
        color: var(--dash-muted) !important;
    }

    .navbar .nav-drawer .navbar-nav .nav-item:hover .nav-link,
    .navbar .nav-drawer .navbar-nav .nav-item:hover .nav-link span,
    .navbar .nav-drawer .navbar-nav .nav-item.nav-active .nav-link,
    .navbar .nav-drawer .navbar-nav .nav-item.nav-active .nav-link span {
        color: var(--dash-text) !important;
    }

    .navbar .nav-drawer .navbar-nav .nav-item.hover-enable:not(.dropdown)::after {
        right: 10px;
        bottom: 4px;
        left: 10px;
        background: var(--dash-text);
    }

    body:not(.dark-mode) .navbar .nav-drawer .navbar-nav:has(> .nav-item:not(.d-none)) + .navbar-nav:has(> .nav-item:not(.d-none)) {
        border-top-color: #eef0f3;
    }

    body:not(.dark-mode) .navbar .nav-drawer .navbar-nav .nav-item .nav-link,
    body:not(.dark-mode) .navbar .nav-drawer .navbar-nav .nav-item .nav-link span {
        color: #374151 !important;
    }

    body:not(.dark-mode) .navbar .nav-drawer .navbar-nav .nav-item:hover .nav-link,
    body:not(.dark-mode) .navbar .nav-drawer .navbar-nav .nav-item:hover .nav-link span {
        color: #111827 !important;
    }

    body:not(.dark-mode) .navbar .nav-drawer .navbar-nav .nav-item.nav-active .nav-link,
    body:not(.dark-mode) .navbar .nav-drawer .navbar-nav .nav-item.nav-active .nav-link span {
        color: #9e3a38 !important;
    }

    body:not(.dark-mode) .navbar .nav-drawer .navbar-nav .nav-item.hover-enable:not(.dropdown)::after {
        background: #9e3a38;
    }
}

.pos-header {
    min-height: 52px;
}

.pos-header #split-button {
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.pos-header #split-button a {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color .15s ease, color .15s ease;
}

.pos-header #split-button .active-btn,
.pos-header #split-button .active-btn:hover {
    background-color: #fff !important;
    color: #282c34 !important;
}

.pos-header #split-button .inactive-btn {
    color: rgba(255, 255, 255, .85);
}

.pos-header #split-button .inactive-btn:hover {
    background-color: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
}

.pos-header .navbar-left .nav-item {
    margin: 0 4px;
}

.pos-header .navbar-left .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    transition: background-color .15s ease, transform .1s ease;
}

.pos-header .navbar-left .btn i {
    font-size: 15px;
    opacity: .9;
}

.pos-header .navbar-left .btn:active {
    transform: translateY(1px);
}

.pos-header .navbar-left .btn:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 2px;
}

@media (min-width: 992px) {
    .pos-header ~ .container-fluid.mt-70 {
        margin-top: 56px !important;
    }

    .pos-header ~ .container-fluid .pos-category {
        height: calc(100vh - 126px);
    }

    .pos-header ~ .container-fluid .pos-product-card {
        height: calc(100vh - 176px);
    }
}

.btn {
    --btn-color: #1f2937;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.btn.btn-primary,
.btn.btn-outline-primary {
    --btn-color: #2563eb;
}

.btn.btn-success {
    --btn-color: #16a34a;
}

.btn.btn-danger,
.btn.btn-outline-danger {
    --btn-color: #dc2626;
}

.btn.btn-warning {
    --btn-color: #d97706;
}

.btn.btn-info {
    --btn-color: #0891b2;
}

.btn.btn-secondary,
.btn.btn-outline-secondary {
    --btn-color: #64748b;
}

.btn.btn-light {
    --btn-color: #475569;
}

body.dark-mode .btn.btn-dark,
body.dark-mode .btn.btn-light {
    --btn-color: #cbd5e1;
}

body.dark-mode .btn.btn-primary,
body.dark-mode .btn.btn-outline-primary {
    --btn-color: #60a5fa;
}

body.dark-mode .btn.btn-success {
    --btn-color: #4ade80;
}

body.dark-mode .btn.btn-danger,
body.dark-mode .btn.btn-outline-danger {
    --btn-color: #f87171;
}

body.dark-mode .btn.btn-warning {
    --btn-color: #fbbf24;
}

body.dark-mode .btn.btn-info {
    --btn-color: #22d3ee;
}

body.dark-mode .btn.btn-secondary,
body.dark-mode .btn.btn-outline-secondary {
    --btn-color: #94a3b8;
}

.btn:is(.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-secondary, .btn-dark, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-danger):not(.number-spinner-btn):not(.category-btn) {
    border: 1px solid var(--dash-border);
    border-radius: 10px !important;
    background-color: var(--dash-surface);
    color: var(--btn-color);
}

.btn:is(.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-secondary, .btn-dark, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-danger):not(.number-spinner-btn):not(.category-btn):hover {
    border-color: var(--btn-color);
    background-color: color-mix(in srgb, var(--btn-color) 7%, var(--dash-surface));
    color: var(--btn-color);
    transform: translateY(-1px);
}

.btn:is(.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-secondary, .btn-dark, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-danger):not(.number-spinner-btn):not(.category-btn):not(:disabled):active {
    border-color: var(--btn-color);
    background-color: color-mix(in srgb, var(--btn-color) 12%, var(--dash-surface));
    color: var(--btn-color);
    transform: none;
}

.btn:focus-visible {
    outline: 2px solid var(--btn-color) !important;
    outline-offset: 2px;
}

.btn:disabled,
.btn.disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
}

.circle-btn-sm {
    --btn-color: #2563eb;
    width: 36px;
    height: 36px;
    margin-inline-start: 4px;
    border: 1px solid var(--dash-border);
    border-radius: 50%;
    background-color: var(--dash-surface) !important;
    color: var(--btn-color) !important;
    font-size: 15px;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

body.dark-mode .circle-btn-sm {
    --btn-color: #60a5fa;
}

.circle-btn-sm:hover {
    border-color: var(--btn-color);
    background-color: color-mix(in srgb, var(--btn-color) 7%, var(--dash-surface)) !important;
    transform: translateY(-1px);
}

.circle-btn-sm:active {
    transform: none;
}

.circle-btn-sm:focus-visible {
    outline: 2px solid var(--btn-color);
    outline-offset: 2px;
}

body:not(.dark-mode) .btn:is(.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-secondary, .btn-dark, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-danger):not(.number-spinner-btn):not(.category-btn),
body:not(.dark-mode) .circle-btn-sm {
    border-color: color-mix(in srgb, var(--btn-color) 30%, #fff);
    background-color: color-mix(in srgb, var(--btn-color) 12%, #fff) !important;
    color: var(--btn-color) !important;
}

body:not(.dark-mode) .btn:is(.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-secondary, .btn-dark, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-danger):not(.number-spinner-btn):not(.category-btn):hover,
body:not(.dark-mode) .circle-btn-sm:hover {
    border-color: var(--btn-color);
    background-color: var(--btn-color) !important;
    color: #fff !important;
}

body:not(.dark-mode) .btn:is(.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-secondary, .btn-dark, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-danger):not(.number-spinner-btn):not(.category-btn):not(:disabled):active,
body:not(.dark-mode) .circle-btn-sm:active {
    border-color: color-mix(in srgb, var(--btn-color) 85%, #000);
    background-color: color-mix(in srgb, var(--btn-color) 85%, #000) !important;
    color: #fff !important;
}

body.dark-mode .btn:is(.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-secondary, .btn-dark, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-danger):not(.number-spinner-btn):not(.category-btn),
body.dark-mode .circle-btn-sm {
    border-color: color-mix(in srgb, var(--btn-color) 30%, var(--dash-surface));
    background-color: color-mix(in srgb, var(--btn-color) 14%, var(--dash-surface)) !important;
    color: var(--btn-color) !important;
}

body.dark-mode .btn:is(.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-secondary, .btn-dark, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-danger):not(.number-spinner-btn):not(.category-btn):hover,
body.dark-mode .circle-btn-sm:hover {
    border-color: var(--btn-color);
    background-color: color-mix(in srgb, var(--btn-color) 24%, var(--dash-surface)) !important;
}

body.dark-mode .btn:is(.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-secondary, .btn-dark, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-danger):not(.number-spinner-btn):not(.category-btn):not(:disabled):active,
body.dark-mode .circle-btn-sm:active {
    border-color: var(--btn-color);
    background-color: color-mix(in srgb, var(--btn-color) 32%, var(--dash-surface)) !important;
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid #e1e4ea;
    background-color: #f4f6f9 !important;
    color: #1f2328;
    font-weight: 500;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.form-control:not(.number-spinner-input, .form-main-search, .form-main-select),
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: 10px !important;
}

[dir="rtl"] .form-main-search {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

[dir="rtl"] .form-main-select {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

[dir="ltr"] .form-main-search {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

[dir="ltr"] .form-main-select {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.form-control::placeholder {
    color: #8a919c;
}

.form-control:hover:not(:focus),
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--multiple:hover {
    border-color: #b8bec8 !important;
    box-shadow: none !important;
}

textarea:focus,
input:not(.product_item_total_class, .search-pos):focus,
select:not(.search-pos):focus,
input[type]:not(.product_item_total_class, .search-pos):focus,
.uneditable-input:focus,
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15) !important;
    outline: 0 none !important;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection {
    background-color: #fff !important;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #eceef2 !important;
    color: #6b7280;
}

body.dark-mode .form-control,
body.dark-mode .select2-container--default .select2-selection--single,
body.dark-mode .select2-container--default .select2-selection--multiple {
    border-color: #2f3a48 !important;
    background-color: #1a2330 !important;
}

body.dark-mode .form-control:hover:not(:focus),
body.dark-mode .select2-container--default .select2-selection--single:hover,
body.dark-mode .select2-container--default .select2-selection--multiple:hover {
    border-color: #44505f !important;
}

body.dark-mode textarea:focus,
body.dark-mode input:not(.product_item_total_class, .search-pos):focus,
body.dark-mode select:not(.search-pos):focus,
body.dark-mode input[type]:not(.product_item_total_class, .search-pos):focus,
body.dark-mode .uneditable-input:focus,
body.dark-mode .select2-container--default.select2-container--focus .select2-selection,
body.dark-mode .select2-container--default.select2-container--open .select2-selection {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .2) !important;
}

body.dark-mode .form-control:focus,
body.dark-mode .select2-container--default.select2-container--focus .select2-selection,
body.dark-mode .select2-container--default.select2-container--open .select2-selection {
    background-color: #111a26 !important;
}

body.dark-mode .form-control:disabled,
body.dark-mode .form-control[readonly] {
    background-color: #151d28 !important;
}

select.form-control:not([multiple]):not([size]),
.select2-container--default .select2-selection--single {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 14px 14px;
    cursor: pointer;
}

select.form-control:not([multiple]):not([size]) {
    font-weight: 600;
}

select.form-control {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

select.form-control.form-main-select.wi-250 {
    width: 155px !important;
}

[dir="rtl"] select.form-control:not([multiple]):not([size]),
[dir="rtl"] .select2-container--default .select2-selection--single {
    padding-left: 36px !important;
    background-position: left 12px center;
}

[dir="ltr"] select.form-control:not([multiple]):not([size]),
[dir="ltr"] .select2-container--default .select2-selection--single {
    padding-right: 36px !important;
    background-position: right 12px center;
}

select.form-control::-ms-expand {
    display: none;
}

.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
}

[dir="rtl"] .select2-container--default .select2-selection--single {
    padding-right: 12px;
}

[dir="ltr"] .select2-container--default .select2-selection--single {
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    flex: 1;
    min-width: 0;
    padding: 0 !important;
    line-height: 38px !important;
    color: #1f2328;
    font-weight: 600;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #8a919c;
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    display: grid;
    order: 2;
    float: none !important;
    place-items: center;
    width: 22px;
    height: 22px;
    margin: 0 6px !important;
    padding: 0;
    border-radius: 50%;
    color: #9aa1ab;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 1;
    transition: background-color .15s ease, color .15s ease;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

select.form-control:not([multiple]):not([size]):hover,
.select2-container--default .select2-selection--single:hover {
    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='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

select.form-control:not([multiple]):not([size]):focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    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='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

body.dark-mode select.form-control:not([multiple]):not([size]),
body.dark-mode .select2-container--default .select2-selection--single {
    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='%2397a3b1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

body.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e3e8ee !important;
}

body.dark-mode .select2-container--default .select2-selection--single .select2-selection__clear {
    color: #7c8796;
}

body.dark-mode .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    background-color: rgba(248, 113, 113, .15);
    color: #f87171;
}

body.dark-mode select.form-control:not([multiple]):not([size]):hover,
body.dark-mode .select2-container--default .select2-selection--single:hover {
    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='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

body.dark-mode select.form-control:not([multiple]):not([size]):focus,
body.dark-mode .select2-container--default.select2-container--focus .select2-selection--single,
body.dark-mode .select2-container--default.select2-container--open .select2-selection--single {
    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='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

body.dark-mode select.form-control option {
    background-color: #151d28;
    color: #e3e8ee;
}

.select2-dropdown {
    overflow: hidden;
    margin-top: 6px !important;
    border: 1px solid #dcdfe5 !important;
    border-radius: 10px !important;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12) !important;
}

.select2-container--default .select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #2563eb !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted),
.select2-container--default .select2-results__option--selected:not(.select2-results__option--highlighted) {
    background-color: #eef3fe;
    color: #1d4ed8;
    font-weight: 600;
}

.select2-search--dropdown {
    padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 6px 10px;
    border: 1px solid #dcdfe5 !important;
    border-radius: 8px !important;
    background-color: #f4f6f9;
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #2563eb !important;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

body.dark-mode .select2-dropdown {
    border-color: #2f3a48 !important;
    background-color: #151d28 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45) !important;
}

body.dark-mode .select2-container--default .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted),
body.dark-mode .select2-container--default .select2-results__option--selected:not(.select2-results__option--highlighted) {
    background-color: #1e2b3d !important;
    color: #93c5fd;
}

body.dark-mode .select2-container--default .select2-results__option--highlighted[aria-selected],
body.dark-mode .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #2563eb !important;
}

body.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field {
    border-color: #2f3a48 !important;
    background-color: #1a2330 !important;
}

@supports (appearance: base-select) {
    select.form-control:not([multiple]):not([size]),
    select.form-control:not([multiple]):not([size])::picker(select) {
        appearance: base-select;
    }

    select.form-control:not([multiple]):not([size]) {
        display: flex;
        align-items: center;
    }

    select.form-control:not([multiple]):not([size])::picker-icon {
        display: none;
    }

    select.form-control:not([multiple]):not([size])::picker(select) {
        position-area: block-end span-inline-end;
        position-try-fallbacks: none;
        max-block-size: calc(100% - 12px);
        overflow-y: auto;
        margin-block: 6px;
        padding: 6px;
        border: 1px solid #dcdfe5;
        border-radius: 10px;
        background-color: #fff;
        box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
    }

    select.form-control:not([multiple]):not([size]) option {
        padding: 8px 12px;
        border-radius: 6px;
        color: #1f2328;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }

    select.form-control:not([multiple]):not([size]) option::checkmark {
        display: none;
    }

    select.form-control:not([multiple]):not([size]) option:checked {
        background-color: #eef3fe;
        color: #1d4ed8;
        font-weight: 600;
    }

    select.form-control:not([multiple]):not([size]) option:hover,
    select.form-control:not([multiple]):not([size]) option:focus-visible {
        background-color: #2563eb;
        color: #fff;
        outline: none;
    }

    body.dark-mode select.form-control:not([multiple]):not([size])::picker(select) {
        border-color: #2f3a48;
        background-color: #151d28;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
    }

    body.dark-mode select.form-control:not([multiple]):not([size]) option {
        background-color: transparent;
        color: #e3e8ee;
    }

    body.dark-mode select.form-control:not([multiple]):not([size]) option:checked {
        background-color: #1e2b3d;
        color: #93c5fd;
    }

    body.dark-mode select.form-control:not([multiple]):not([size]) option:hover,
    body.dark-mode select.form-control:not([multiple]):not([size]) option:focus-visible {
        background-color: #2563eb;
        color: #fff;
    }
}

.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, .45) !important;
}

.swal2-popup.swal2-modal {
    padding: 24px 24px 20px !important;
    border: 1px solid #e5e7eb;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(16, 24, 40, .25) !important;
}

.swal2-popup .swal2-icon {
    margin: 8px auto 0 !important;
    transform: scale(.8);
}

.swal2-popup .swal2-title {
    padding: 8px 0 0 !important;
    color: #111827;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.5;
}

.swal2-popup .swal2-html-container,
.swal2-popup .swal2-content {
    margin: 8px 0 0 !important;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.swal2-popup .swal2-actions {
    gap: 8px;
    margin-top: 20px !important;
}

.swal2-popup .swal2-actions button.swal2-styled {
    --swal-color: #2563eb;
    min-width: 110px !important;
    height: 40px;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: background-color .15s ease, transform .1s ease;
}

.swal2-popup .swal2-actions button.swal2-cancel,
.swal2-popup .swal2-actions button.swal2-deny {
    --swal-color: #64748b;
}

.swal2-popup .swal2-actions button.swal2-styled[style*="221, 51, 51"] {
    --swal-color: #dc2626;
}

.swal2-popup .swal2-actions button.swal2-styled[style*="48, 133, 214"],
.swal2-popup .swal2-actions button.swal2-styled[style*="0, 123, 255"] {
    --swal-color: #2563eb;
}

.swal2-popup .swal2-actions button.swal2-styled[style*="40, 167, 69"] {
    --swal-color: #16a34a;
}

.swal2-popup .swal2-actions button.swal2-styled[style*="108, 117, 125"] {
    --swal-color: #64748b;
}

.swal2-popup .swal2-actions button.swal2-styled[style*="24, 28, 50"] {
    --swal-color: #1f2937;
}

.swal2-popup .swal2-actions button.swal2-confirm {
    background-color: var(--swal-color) !important;
    color: #fff !important;
}

.swal2-popup .swal2-actions button.swal2-confirm:hover {
    background-color: color-mix(in srgb, var(--swal-color) 85%, #000) !important;
    background-image: none !important;
}

.swal2-popup .swal2-actions button.swal2-cancel,
.swal2-popup .swal2-actions button.swal2-deny {
    background-color: color-mix(in srgb, var(--swal-color) 12%, #fff) !important;
    color: var(--swal-color) !important;
}

.swal2-popup .swal2-actions button.swal2-cancel:hover,
.swal2-popup .swal2-actions button.swal2-deny:hover {
    background-color: color-mix(in srgb, var(--swal-color) 20%, #fff) !important;
    background-image: none !important;
}

.swal2-popup .swal2-actions button.swal2-styled:active {
    transform: translateY(1px);
}

.swal2-popup .swal2-actions button.swal2-styled:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--swal-color) 30%, transparent) !important;
}

.swal2-popup .swal2-input,
.swal2-popup .swal2-textarea,
.swal2-popup .swal2-select {
    border: 1px solid #dcdfe5;
    border-radius: 10px;
    background-color: #f4f6f9;
    box-shadow: none;
}

.swal2-popup .swal2-input:focus,
.swal2-popup .swal2-textarea:focus {
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

body.dark-mode .swal2-popup.swal2-modal {
    border-color: #2f3a48 !important;
    background-color: #151d28 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6) !important;
}

body.dark-mode .swal2-popup .swal2-title {
    color: #e5e7eb !important;
}

body.dark-mode .swal2-popup .swal2-html-container,
body.dark-mode .swal2-popup .swal2-content {
    color: #9ca3af !important;
}

body.dark-mode .swal2-popup .swal2-actions button.swal2-cancel,
body.dark-mode .swal2-popup .swal2-actions button.swal2-deny {
    background-color: color-mix(in srgb, var(--swal-color) 18%, #151d28) !important;
    color: color-mix(in srgb, var(--swal-color) 55%, #fff) !important;
}

body.dark-mode .swal2-popup .swal2-actions button.swal2-cancel:hover,
body.dark-mode .swal2-popup .swal2-actions button.swal2-deny:hover {
    background-color: color-mix(in srgb, var(--swal-color) 28%, #151d28) !important;
}

.modal-backdrop.show {
    background-color: #0f172a;
    opacity: .45;
}

.modal.fade .modal-dialog {
    transform: translateY(16px) scale(.98);
    transition: transform .2s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-content {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px !important;
    background-color: #fff;
    box-shadow: 0 20px 50px rgba(16, 24, 40, .25);
}

.modal-header {
    align-items: center;
    padding: 14px 20px !important;
    border-bottom: 1px solid #eef0f3;
    background-color: #fff;
}

.modal-title {
    color: #111827;
    font-size: 17px;
    font-weight: 700;
}

.modal-header .close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50%;
    color: #6b7280;
    font-size: 22px;
    font-weight: 400;
    text-shadow: none;
    opacity: 1;
    transition: background-color .15s ease, color .15s ease;
}

.modal-header .close:hover {
    background-color: #f1f3f6;
    color: #111827;
}

.modal-footer {
    gap: 8px;
    padding: 12px 20px !important;
    border-top: 1px solid #eef0f3;
    background-color: #f8f9fb;
}

.modal-footer > * {
    margin: 0;
}

body.dark-mode .modal-content {
    border-color: #2f3a48 !important;
    background-color: #151d28 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}

body.dark-mode .modal-header {
    border-color: #2a3441 !important;
    background-color: #151d28 !important;
}

body.dark-mode .modal-footer {
    border-color: #2a3441 !important;
    background-color: #121a24 !important;
}

body.dark-mode .modal-title {
    color: #e5e7eb !important;
}

body.dark-mode .modal-header .close {
    color: #9ca3af;
}

body.dark-mode .modal-header .close:hover {
    background-color: #1e2834;
    color: #e5e7eb;
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
        transition: none;
    }
}

.modal .list-columns {
    overflow: hidden;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
}

.modal .list-columns .list-group-item {
    border-color: #eef0f3;
}

body.dark-mode .modal .list-columns {
    border-color: #2a3441 !important;
}

body.dark-mode .modal .list-group-item {
    border-color: #2a3441 !important;
    background-color: transparent;
}

body.dark-mode .border-bottom {
    border-bottom-color: #2a3441 !important;
}

body.dark-mode .border-top {
    border-top-color: #2a3441 !important;
}

body.dark-mode hr {
    border-top-color: #2a3441;
}

.pagination {
    flex-wrap: wrap;
    gap: 4px;
}

.pagination .page-item .page-link {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    margin: 0 !important;
    padding: 0 12px;
    border: 1px solid #e1e4ea;
    border-radius: 10px !important;
    background-color: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.pagination .page-item .page-link:hover {
    border-color: #cfd5de;
    background-color: #f1f5f9;
    color: #111827;
}

.pagination .page-item.active .page-link {
    border-color: #2563eb;
    background-color: #2563eb;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    border-color: #eceef2;
    background-color: transparent;
    color: #a0a7b2;
}

.pagination .page-item .page-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

body.dark-mode .pagination .page-item .page-link {
    border-color: #2f3a48 !important;
    background-color: #151d28 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .pagination .page-item .page-link:hover {
    border-color: #44505f !important;
    background-color: #1e2834 !important;
    color: #fff !important;
}

body.dark-mode .pagination .page-item.active .page-link {
    border-color: #2563eb !important;
    background-color: #2563eb !important;
    color: #fff !important;
}

body.dark-mode .pagination .page-item.disabled .page-link {
    border-color: #222b37 !important;
    background-color: transparent !important;
    color: #5b6675 !important;
}

table.table-bordered,
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #dbe3f0 !important;
    border-radius: 12px;
}

table.table-bordered > thead > tr > th,
table.table-bordered > tbody > tr > td,
table.table-bordered > tfoot > tr > th,
table.table-bordered > tfoot > tr > td,
table.dataTable > thead > tr > th,
table.dataTable > tbody > tr > td,
table.dataTable > tfoot > tr > th,
table.dataTable > tfoot > tr > td {
    border: 0 !important;
    border-bottom: 1px solid #e8edf5 !important;
    vertical-align: middle;
}

table.table-bordered > tbody > tr:last-child > td,
table.dataTable > tbody > tr:last-child > td,
table.table-bordered > tfoot > tr:last-child > *,
table.dataTable > tfoot > tr:last-child > * {
    border-bottom: 0 !important;
}

table.table-bordered > thead > tr > th,
table.dataTable > thead > tr > th,
div.dataTables_wrapper table.dataTable thead th {
    border-bottom: 2px solid #e5e7eb !important;
    background-color: #fff !important;
    color: #6b7280 !important;
    font-weight: 700 !important;
}

div.dataTables_wrapper table.dataTable thead th {
    padding: 10px 8px !important;
}

table.dataTable > thead > tr > th,
table.dataTable > thead > tr > th.sorting,
table.dataTable > thead > tr > th.sorting_asc,
table.dataTable > thead > tr > th.sorting_desc,
table.dataTable > thead > tr > th.sorting_asc_disabled,
table.dataTable > thead > tr > th.sorting_desc_disabled,
table.dataTable > thead > tr > th.sorting_disabled {
    position: sticky !important;
    top: var(--app-navbar-h, 0px) !important;
    z-index: 3;
    box-shadow: 0 1px 0 #e5e7eb;
}

body.dark-mode table.dataTable > thead > tr > th {
    box-shadow: 0 1px 0 #2a3441;
}

.modal table.dataTable > thead > tr > th {
    top: 0 !important;
}

div.dataTables_wrapper table.dataTable tbody td {
    padding: 7px 10px !important;
}

table.table-bordered > thead > tr:first-child > th:first-child,
table.dataTable > thead > tr:first-child > th:first-child {
    border-start-start-radius: 11px;
}

table.table-bordered > thead > tr:first-child > th:last-child,
table.dataTable > thead > tr:first-child > th:last-child {
    border-start-end-radius: 11px;
}

table.table-bordered > tbody:last-child > tr:last-child > td:first-child,
table.dataTable > tbody:last-child > tr:last-child > td:first-child,
table.table-bordered > tfoot > tr:last-child > *:first-child,
table.dataTable > tfoot > tr:last-child > *:first-child {
    border-end-start-radius: 11px;
}

table.table-bordered > tbody:last-child > tr:last-child > td:last-child,
table.dataTable > tbody:last-child > tr:last-child > td:last-child,
table.table-bordered > tfoot > tr:last-child > *:last-child,
table.dataTable > tfoot > tr:last-child > *:last-child {
    border-end-end-radius: 11px;
}

table.table-bordered > tbody > tr:hover > td,
table.dataTable > tbody > tr:hover > td {
    background-color: #eef4ff !important;
}

table.dataTable > tbody > tr:hover {
    background-color: transparent !important;
}

table.table-bordered td,
table.dataTable td,
table.table-bordered tfoot th {
    font-variant-numeric: tabular-nums;
}

table.table-bordered > tfoot > tr > *,
table.dataTable > tfoot > tr > * {
    background-color: #f4f7fd;
    font-weight: 700;
}

.dataTables_processing {
    padding: 6px 16px !important;
    border-radius: 8px !important;
    background: #2563eb !important;
    color: #fff !important;
}

body.dark-mode table.table-bordered,
body.dark-mode table.dataTable {
    border-color: #2a3441 !important;
}

body.dark-mode table.table-bordered > * > tr > *,
body.dark-mode table.dataTable > * > tr > * {
    border-bottom-color: #222c38 !important;
}

body.dark-mode table.table-bordered > tbody > tr > td,
body.dark-mode table.dataTable > tbody > tr > td {
    color: #c3cedb !important;
}

body.dark-mode table.table-bordered > thead > tr > th,
body.dark-mode table.dataTable > thead > tr > th,
body.dark-mode div.dataTables_wrapper table.dataTable thead th {
    border-bottom: 2px solid #2a3441 !important;
    background-color: #151d28 !important;
    color: #9ca3af !important;
}

body.dark-mode table.table-bordered > tbody > tr:hover > td,
body.dark-mode table.dataTable > tbody > tr:hover > td {
    background-color: #1c2838 !important;
}

body.dark-mode table.table-bordered > tfoot > tr > *,
body.dark-mode table.dataTable > tfoot > tr > * {
    background-color: #131b26;
}

body.table-lines table.table-bordered > * > tr > *,
body.table-lines table.dataTable > * > tr > * {
    border-bottom: 1px solid #d5deeb !important;
    border-inline-end: 1px solid #d5deeb !important;
}

body.table-lines table.table-bordered > * > tr > *:last-child,
body.table-lines table.dataTable > * > tr > *:last-child {
    border-inline-end: 0 !important;
}

body.table-lines table.table-bordered > tbody > tr:last-child > td,
body.table-lines table.dataTable > tbody > tr:last-child > td,
body.table-lines table.table-bordered > tfoot > tr:last-child > *,
body.table-lines table.dataTable > tfoot > tr:last-child > * {
    border-bottom: 0 !important;
}

body.table-lines table.table-bordered > tbody + tfoot > tr:first-child > *,
body.table-lines table.dataTable > tbody + tfoot > tr:first-child > * {
    border-top: 1px solid #d5deeb !important;
}

body.dark-mode.table-lines table.table-bordered > * > tr > *,
body.dark-mode.table-lines table.dataTable > * > tr > * {
    border-color: #2a3441 !important;
}

body.table-lines table.table-bordered > thead > tr > th,
body.table-lines table.dataTable > thead > tr > th {
    border-bottom: 1px solid #c9d3e2 !important;
    background-color: #f8fafc !important;
}

body.dark-mode.table-lines table.table-bordered > thead > tr > th,
body.dark-mode.table-lines table.dataTable > thead > tr > th {
    border-bottom: 1px solid #334155 !important;
    background-color: #151d28 !important;
}

table.table > tbody > tr.table-success,
table.table > tbody > tr.table-danger,
table.table > tbody > tr.table-warning,
table.table > tbody > tr.table-info,
table.table > tbody > tr.table-primary {
    background-color: transparent !important;
}

table.table > tbody > tr.table-success > td,
table.table > tbody > tr > td.table-success {
    background-color: #ecfdf3 !important;
    color: #166534 !important;
}

table.table > tbody > tr.table-danger > td,
table.table > tbody > tr > td.table-danger {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
}

table.table > tbody > tr.table-warning > td,
table.table > tbody > tr > td.table-warning {
    background-color: #fffbeb !important;
    color: #92400e !important;
}

table.table > tbody > tr.table-info > td,
table.table > tbody > tr > td.table-info,
table.table > tbody > tr.table-primary > td,
table.table > tbody > tr > td.table-primary {
    background-color: #eff6ff !important;
    color: #1e40af !important;
}

body.dark-mode table.table > tbody > tr.table-success > td,
body.dark-mode table.table > tbody > tr > td.table-success {
    background-color: rgba(34, 197, 94, .14) !important;
    color: #86efac !important;
}

body.dark-mode table.table > tbody > tr.table-danger > td,
body.dark-mode table.table > tbody > tr > td.table-danger {
    background-color: rgba(239, 68, 68, .14) !important;
    color: #fca5a5 !important;
}

body.dark-mode table.table > tbody > tr.table-warning > td,
body.dark-mode table.table > tbody > tr > td.table-warning {
    background-color: rgba(245, 158, 11, .14) !important;
    color: #fcd34d !important;
}

body.dark-mode table.table > tbody > tr.table-info > td,
body.dark-mode table.table > tbody > tr > td.table-info,
body.dark-mode table.table > tbody > tr.table-primary > td,
body.dark-mode table.table > tbody > tr > td.table-primary {
    background-color: rgba(59, 130, 246, .14) !important;
    color: #93c5fd !important;
}

.list-group:has(.list-group-item.justify-content-between) {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #fff;
}

.list-group .list-group-item.justify-content-between {
    padding: 10px 16px !important;
    border: 0;
    border-bottom: 1px solid #eef0f3;
    border-radius: 0 !important;
    background-color: transparent;
    color: #6b7280;
    font-weight: 500;
    transition: background-color .12s ease;
}

.list-group .list-group-item.justify-content-between:last-child {
    border-bottom: 0;
}

.list-group .list-group-item.justify-content-between:hover {
    background-color: #f8fafc;
}

.list-group .list-group-item.justify-content-between > :last-child {
    color: #111827;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

body.dark-mode .list-group:has(.list-group-item.justify-content-between) {
    border-color: #2a3441;
    background-color: #151d28;
}

body.dark-mode .list-group .list-group-item.justify-content-between {
    border-color: #222c38 !important;
    background-color: transparent !important;
    color: #8b97a7 !important;
}

body.dark-mode .list-group .list-group-item.justify-content-between:hover {
    background-color: #1a2330 !important;
}

body.dark-mode .list-group .list-group-item.justify-content-between > :last-child {
    color: #e5e7eb;
}

input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"] {
    font-variant-numeric: tabular-nums;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    width: 18px;
    height: 18px;
    padding: 5px;
    border-radius: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
    cursor: pointer;
    opacity: 1;
    transition: background-color .15s ease;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="month"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    background-color: #e8eefc;
}

input[type="date"]:focus::-webkit-calendar-picker-indicator,
input[type="datetime-local"]:focus::-webkit-calendar-picker-indicator,
input[type="month"]:focus::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="datetime-local"]::-webkit-datetime-edit-text,
input[type="month"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-text {
    padding: 0 1px;
    color: #9aa1ab;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
input[type="month"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input::-webkit-datetime-edit-year-field:focus,
input::-webkit-datetime-edit-month-field:focus,
input::-webkit-datetime-edit-day-field:focus,
input::-webkit-datetime-edit-hour-field:focus,
input::-webkit-datetime-edit-minute-field:focus,
input::-webkit-datetime-edit-second-field:focus,
input::-webkit-datetime-edit-ampm-field:focus {
    border-radius: 4px;
    background-color: #2563eb;
    color: #fff;
}

body.dark-mode input[type="date"],
body.dark-mode input[type="datetime-local"],
body.dark-mode input[type="month"],
body.dark-mode input[type="time"] {
    color-scheme: dark;
}

body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator,
body.dark-mode input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body.dark-mode input[type="month"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397a3b1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

body.dark-mode input[type="time"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397a3b1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator:hover,
body.dark-mode input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
body.dark-mode input[type="month"]::-webkit-calendar-picker-indicator:hover,
body.dark-mode input[type="time"]::-webkit-calendar-picker-indicator:hover {
    background-color: #1e2b3d;
}

body.dark-mode input[type="date"]:focus::-webkit-calendar-picker-indicator,
body.dark-mode input[type="datetime-local"]:focus::-webkit-calendar-picker-indicator,
body.dark-mode input[type="month"]:focus::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

body.dark-mode input[type="date"]::-webkit-datetime-edit-text,
body.dark-mode input[type="datetime-local"]::-webkit-datetime-edit-text,
body.dark-mode input[type="month"]::-webkit-datetime-edit-text,
body.dark-mode input[type="time"]::-webkit-datetime-edit-text {
    color: #6b7684;
}

.list-group:has(> .card) {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background-color: transparent;
}

.list-group > .card {
    overflow: hidden;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background-color: #fff;
    box-shadow: none !important;
}

.list-group > .card > .card-body {
    padding: 0 !important;
}

.list-group > .card > .card-body .list-group {
    overflow: visible;
    margin: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
}

.list-group > .card > .card-body .list-group-item.justify-content-between {
    position: static !important;
    padding: 12px 16px !important;
    border: 0 !important;
    border-top: 1px solid #eef0f3 !important;
    border-radius: 0 !important;
}

.list-group > .card > .card-body > .list-group-item:first-child,
.list-group > .card > .card-body > .list-group:first-child > .list-group-item:first-child {
    border-top: 0 !important;
}

.list-group > .card > .card-body .list-group-item:has(> h5) {
    background-color: #f8f9fb;
}

.list-group > .card > .card-body .list-group-item > h5 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.list-group > .card > .card-body .list-group-item .badge {
    padding: 0;
    background: none;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

body.dark-mode .list-group > .card {
    border-color: #2a3441 !important;
    background-color: #151d28 !important;
}

body.dark-mode .list-group > .card > .card-body .list-group-item.justify-content-between {
    border-top-color: #222c38 !important;
}

body.dark-mode .list-group > .card > .card-body .list-group-item:has(> h5) {
    background-color: #1a2330 !important;
}

body.dark-mode .list-group > .card > .card-body .list-group-item > h5,
body.dark-mode .list-group > .card > .card-body .list-group-item .badge {
    color: #e5e7eb !important;
}

#baqy_modal_create .calculator {
    border: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

#baqy_modal_create .calculator-keys {
    grid-gap: 8px;
}

#baqy_modal_create .calculator-container .calculator-keys.col-4 {
    gap: 8px;
}

#baqy_modal_create .number-btn {
    --btn-color: #475569;
}

#baqy_modal_create .calculator-container .col-4 .number-btn,
#baqy_modal_create #create_with_print {
    --btn-color: #2563eb;
}

#baqy_modal_create .calculator-section > .calculator-keys:first-child .number-btn,
#baqy_modal_create #create_without_print {
    --btn-color: #16a34a;
}

#baqy_modal_create .all-clear {
    --btn-color: #64748b;
}

#baqy_modal_create .btn-backspace {
    --btn-color: #d97706;
}

#baqy_modal_create #close {
    --btn-color: #dc2626;
}

body.dark-mode #baqy_modal_create .number-btn {
    --btn-color: #cbd5e1;
}

body.dark-mode #baqy_modal_create .calculator-container .col-4 .number-btn,
body.dark-mode #baqy_modal_create #create_with_print {
    --btn-color: #60a5fa;
}

body.dark-mode #baqy_modal_create .calculator-section > .calculator-keys:first-child .number-btn,
body.dark-mode #baqy_modal_create #create_without_print {
    --btn-color: #4ade80;
}

body.dark-mode #baqy_modal_create .all-clear {
    --btn-color: #94a3b8;
}

body.dark-mode #baqy_modal_create .btn-backspace {
    --btn-color: #fbbf24;
}

body.dark-mode #baqy_modal_create #close {
    --btn-color: #f87171;
}

#baqy_modal_create button.btn {
    height: 60px;
    border: 1px solid color-mix(in srgb, var(--btn-color) 30%, #fff) !important;
    border-radius: 10px !important;
    background-color: color-mix(in srgb, var(--btn-color) 12%, #fff) !important;
    color: var(--btn-color) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

#baqy_modal_create button.btn:hover {
    border-color: var(--btn-color) !important;
    background-color: var(--btn-color) !important;
    color: #fff !important;
}

#baqy_modal_create button.btn:active {
    border-color: color-mix(in srgb, var(--btn-color) 85%, #000) !important;
    background-color: color-mix(in srgb, var(--btn-color) 85%, #000) !important;
    color: #fff !important;
    transform: translateY(1px);
}

#baqy_modal_create #close,
#baqy_modal_create #create_without_print,
#baqy_modal_create #create_with_print {
    font-size: 17px !important;
}

body.dark-mode #baqy_modal_create button.btn {
    border-color: var(--dash-border) !important;
    background-color: var(--dash-surface) !important;
    color: var(--btn-color) !important;
}

body.dark-mode #baqy_modal_create button.btn:hover {
    border-color: var(--btn-color) !important;
    background-color: color-mix(in srgb, var(--btn-color) 12%, var(--dash-surface)) !important;
    color: var(--btn-color) !important;
}

body.dark-mode #baqy_modal_create button.btn:active {
    background-color: color-mix(in srgb, var(--btn-color) 20%, var(--dash-surface)) !important;
}

#baqy_modal_create .badge-count {
    top: 6px;
    left: 8px;
    width: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #16a34a;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
}

#baqy_modal_create #currency_form > div {
    height: 60px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background-color: #f4f6f9 !important;
    color: #374151;
    font-size: 18px !important;
    font-weight: 600;
}

#baqy_modal_create #currency_form #currency_input,
#baqy_modal_create #currency_form #currency_input:focus,
#baqy_modal_create #currency_form #currency_input:hover {
    border: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    font-size: 20px !important;
    font-weight: 700;
}

body.dark-mode #baqy_modal_create #currency_form > div {
    border-color: #2f3a48 !important;
    background-color: #1a2330 !important;
    color: #cbd5e1 !important;
}

#baqy_modal_create .inputs-section {
    padding: 16px;
    border: 0;
    border-radius: 14px;
    background-color: #f8f9fb;
}

#baqy_modal_create .inputs-section > .row.total-invoice {
    margin: 0 0 12px !important;
    padding: 14px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px !important;
    background-color: #fff !important;
    color: #111827 !important;
    box-shadow: none !important;
}

#baqy_modal_create .inputs-section > .row.total-invoice.bg-success {
    border-color: #bbf7d0;
    background-color: #ecfdf3 !important;
    color: #166534 !important;
}

#baqy_modal_create .inputs-section > .row.total-invoice.bg-secondary {
    border-color: #c9d8f5;
    background-color: #eef3fe !important;
    color: #1d4ed8 !important;
}

#baqy_modal_create .numeric-huge {
    margin-bottom: 0 !important;
    color: inherit !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

#baqy_modal_create .numeric-huge-text {
    color: #6b7280;
    font-size: 15px !important;
    font-weight: 600;
}

#baqy_modal_create .inputs-section > .calculator-keys:last-child {
    gap: 12px !important;
    margin-top: 16px !important;
    padding: 0;
}

body.dark-mode #baqy_modal_create .calculator.card {
    background-color: transparent !important;
}

body.dark-mode #baqy_modal_create .inputs-section {
    background-color: #121a24 !important;
}

body.dark-mode #baqy_modal_create .inputs-section > .row.total-invoice {
    border-color: #2a3441;
    background-color: #151d28 !important;
    color: #f1f5f9 !important;
}

body.dark-mode #baqy_modal_create .inputs-section > .row.total-invoice.bg-success {
    border-color: rgba(34, 197, 94, .3);
    background-color: rgba(34, 197, 94, .12) !important;
    color: #86efac !important;
}

body.dark-mode #baqy_modal_create .inputs-section > .row.total-invoice.bg-secondary {
    border-color: #2c4470;
    background-color: rgba(59, 130, 246, .14) !important;
    color: #93c5fd !important;
}

body.dark-mode #baqy_modal_create .numeric-huge-text {
    color: #9ca3af !important;
}

body.dark-mode table.table > tbody > tr > td.bg-inventory-warning,
body.dark-mode table.table > tbody > tr > td.bg-warning {
    color: #111827 !important;
}

body.dark-mode table.table > tbody > tr > td.bg-inventory-danger,
body.dark-mode table.table > tbody > tr > td.bg-danger {
    color: #fff !important;
}

.input-inline-label {
    position: relative;
}

.input-inline-label .form-control {
    padding-inline-start: 110px;
    text-align: end;
}

.input-inline-label .input-inline-label-text {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 13px;
    pointer-events: none;
    white-space: nowrap;
}

body.dark-mode .input-inline-label .input-inline-label-text {
    color: #8b97a7;
}

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

.input-inline-label input[type="number"]::-webkit-inner-spin-button,
.input-inline-label input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-spinner-wrap {
    flex-wrap: nowrap;
    overflow: hidden;
    border: 1px solid #e1e4ea;
    border-radius: 10px;
    background-color: #f4f6f9;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.number-spinner-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.number-spinner-wrap .number-spinner-btn {
    --btn-color: #16a34a;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--btn-color) !important;
    transition: background-color .15s ease, color .15s ease;
}

.number-spinner-wrap .number-spinner-btn.number-minus {
    --btn-color: #dc2626;
}

.number-spinner-wrap .number-spinner-btn:hover:not(:disabled) {
    background-color: color-mix(in srgb, var(--btn-color) 12%, #fff) !important;
    color: var(--btn-color) !important;
}

.number-spinner-wrap .number-spinner-btn:disabled {
    opacity: .45;
}

.number-spinner-wrap .number-spinner-input {
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-inline: 1px solid #e1e4ea !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.number-spinner-wrap input.number-spinner-input[type]:focus,
body.dark-mode .number-spinner-wrap input.number-spinner-input[type]:focus {
    border: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.product_table .product-name a {
    color: #1d4ed8;
    font-weight: 600;
}

.product_table a.text-danger .pos-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border-radius: 50%;
    color: #dc2626;
    font-size: 20px !important;
    transition: background-color .15s ease;
}

.product_table a.text-danger:hover .pos-close {
    background-color: #fef2f2;
}

body.dark-mode .number-spinner-wrap {
    border-color: #2f3a48;
    background-color: #1a2330;
}

body.dark-mode .number-spinner-wrap:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .2);
}

body.dark-mode .number-spinner-wrap .number-spinner-btn {
    --btn-color: #4ade80;
    background-color: color-mix(in srgb, var(--btn-color) 12%, #151d28) !important;
}

body.dark-mode .number-spinner-wrap .number-spinner-btn.number-minus {
    --btn-color: #f87171;
}

body.dark-mode .number-spinner-wrap .number-spinner-btn:hover:not(:disabled) {
    background-color: color-mix(in srgb, var(--btn-color) 28%, #151d28) !important;
    color: var(--btn-color) !important;
}

body.dark-mode .number-spinner-wrap .number-spinner-input {
    background-color: transparent !important;
    border-inline-color: #2f3a48 !important;
    color: #e3e8ee !important;
}

body.dark-mode .product_table .product-name a {
    color: #93c5fd;
}

body.dark-mode .product_table a.text-danger .pos-close {
    color: #f87171;
}

body.dark-mode .product_table a.text-danger:hover .pos-close {
    background-color: rgba(239, 68, 68, .14);
}

#product_body_result tr.focused-row {
    background-color: #eff6ff !important;
}

#product_body_result tr.focused-row > td:first-child {
    box-shadow: inset -3px 0 0 #2563eb;
}

[dir="ltr"] #product_body_result tr.focused-row > td:first-child {
    box-shadow: inset 3px 0 0 #2563eb;
}

#product_body_result tr.bg-stock,
#product_body_result tr.focused-row.bg-stock {
    background-color: #fef2f2 !important;
}

#product_body_result tr.bg-stock > td:first-child {
    box-shadow: inset -3px 0 0 #dc2626;
}

[dir="ltr"] #product_body_result tr.bg-stock > td:first-child {
    box-shadow: inset 3px 0 0 #dc2626;
}

#product_body_result tr.bg-stock td,
#product_body_result tr.bg-stock td a,
#product_body_result tr.bg-stock .product_item_total_class {
    color: #b91c1c !important;
}

body.dark-mode #product_body_result tr.focused-row {
    background-color: rgba(96, 165, 250, .1) !important;
}

body.dark-mode #product_body_result tr.focused-row > td:first-child {
    box-shadow: inset -3px 0 0 #60a5fa;
}

[dir="ltr"] body.dark-mode #product_body_result tr.focused-row > td:first-child {
    box-shadow: inset 3px 0 0 #60a5fa;
}

body.dark-mode .table tbody tr.bg-stock,
body.dark-mode #product_body_result tr.bg-stock,
body.dark-mode #product_body_result tr.focused-row.bg-stock {
    background-color: rgba(248, 113, 113, .12) !important;
}

body.dark-mode #product_body_result tr.bg-stock > td:first-child {
    box-shadow: inset -3px 0 0 #f87171;
}

[dir="ltr"] body.dark-mode #product_body_result tr.bg-stock > td:first-child {
    box-shadow: inset 3px 0 0 #f87171;
}

body.dark-mode .table tbody tr.bg-stock td,
body.dark-mode .table tbody tr.bg-stock td a,
body.dark-mode .table tbody tr.bg-stock .material-icons,
body.dark-mode .table tbody tr.bg-stock .product_item_total_class,
body.dark-mode #product_body_result tr.bg-stock td,
body.dark-mode #product_body_result tr.bg-stock td a,
body.dark-mode #product_body_result tr.bg-stock .product_item_total_class {
    color: #fca5a5 !important;
}

#product_body_result tr.row-flash > td {
    animation: pos-row-flash 1.8s ease-out;
}

@keyframes pos-row-flash {
    0%,
    35% {
        background-color: rgba(37, 99, 235, .16);
    }

    100% {
        background-color: transparent;
    }
}

body.dark-mode #product_body_result tr.row-flash > td {
    animation-name: pos-row-flash-dark;
}

@keyframes pos-row-flash-dark {
    0%,
    35% {
        background-color: rgba(96, 165, 250, .2);
    }

    100% {
        background-color: transparent;
    }
}

.buy-ai-missing {
    --ai-miss-accent: #d97706;
    --ai-miss-title: #b45309;
    --ai-miss-danger: #dc2626;
    margin: 8px 0;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--ai-miss-accent) 28%, var(--dash-border));
    border-inline-start: 4px solid var(--ai-miss-accent);
    border-radius: 10px;
    background-color: color-mix(in srgb, var(--ai-miss-accent) 6%, var(--dash-surface));
    color: var(--dash-text);
}

body.dark-mode .buy-ai-missing {
    --ai-miss-accent: #fbbf24;
    --ai-miss-title: #fcd34d;
    --ai-miss-danger: #f87171;
    background-color: color-mix(in srgb, var(--ai-miss-accent) 6%, var(--dash-surface));
}

.buy-ai-missing-title {
    color: var(--ai-miss-title);
    font-size: 15px;
    font-weight: 700;
}

.buy-ai-missing-hint {
    margin: 2px 0 10px;
    color: var(--dash-muted);
    font-size: 12px;
}

.buy-ai-missing-table {
    width: 100%;
    border-collapse: collapse;
}

.buy-ai-missing-table td {
    padding: 7px 8px;
    border-top: 1px solid color-mix(in srgb, var(--ai-miss-accent) 18%, var(--dash-border));
    vertical-align: middle;
}

.buy-ai-missing-name {
    width: 100%;
    color: var(--dash-text);
    font-weight: 600;
}

.buy-ai-missing-meta {
    color: var(--dash-muted);
    white-space: nowrap;
}

.buy-ai-missing-actions {
    text-align: end;
    white-space: nowrap;
}

.buy-ai-missing-actions .btn {
    padding: 3px 12px;
}

.buy-ai-missing-remove {
    width: 30px;
    height: 30px;
    margin-inline-start: 4px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background-color: transparent;
    color: var(--ai-miss-danger);
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.buy-ai-missing-remove:hover {
    border-color: color-mix(in srgb, var(--ai-miss-danger) 30%, transparent);
    background-color: color-mix(in srgb, var(--ai-miss-danger) 12%, transparent);
}

.buy-ai-missing-remove:focus-visible {
    outline: 2px solid var(--ai-miss-danger);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .buy-ai-missing-table,
    .buy-ai-missing-table tbody {
        display: block;
    }

    .buy-ai-missing-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 12px;
        padding: 8px 0;
        border-top: 1px solid color-mix(in srgb, var(--ai-miss-accent) 18%, var(--dash-border));
    }

    .buy-ai-missing-table td {
        padding: 0;
        border-top: 0;
    }

    .buy-ai-missing-name {
        flex-basis: 100%;
    }

    .buy-ai-missing-meta:empty {
        display: none;
    }

    .buy-ai-missing-actions {
        margin-inline-start: auto;
    }
}

.buy-ai-line {
    --ai-line-accent: #2563eb;
    margin-bottom: 8px;
    padding: 6px 10px;
    border: 1px solid color-mix(in srgb, var(--ai-line-accent) 25%, var(--dash-border));
    border-inline-start: 4px solid var(--ai-line-accent);
    border-radius: 10px;
    background-color: color-mix(in srgb, var(--ai-line-accent) 7%, var(--dash-surface));
    color: var(--dash-text);
    font-size: 13px;
}

body.dark-mode .buy-ai-line {
    --ai-line-accent: #60a5fa;
}

.buy-ai-line b {
    color: var(--ai-line-accent);
}

.pos-totals-panel {
    border-top: 1px solid #e6e9ef;
    background: #fff;
}

.pos-stats-row {
    gap: 8px;
    padding: 10px 10px 4px;
}

.pos-stats-row > .pos-stat-chip {
    --chip-color: #2563eb;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.pos-stats-row > .pos-stat-chip:nth-child(2) {
    --chip-color: #16a34a;
}

.pos-stats-row > .pos-stat-chip:nth-child(3) {
    --chip-color: #dc2626;
}

.pos-stats-row > .pos-stat-chip:nth-child(4) {
    --chip-color: #d97706;
}

.pos-stats-row > .pos-chip-clickable:hover {
    border-color: var(--chip-color);
    background: color-mix(in srgb, var(--chip-color) 5%, #fff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-color) 12%, transparent);
    transform: none;
}

.pos-stats-row > .pos-stat-chip .pos-chip-label {
    color: #64748b;
    font-size: 11px;
    letter-spacing: 0;
}

.pos-stats-row > .pos-stat-chip .pos-chip-value {
    color: var(--chip-color);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.pos-stats-row > .pos-stat-chip:first-child .pos-chip-value {
    color: #0f172a;
}

.pos-stats-row > .pos-note-btn {
    justify-content: center;
    gap: 6px;
    border: 1px solid #e1e4ea;
    border-radius: 10px;
    background: #f4f6f9;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.pos-stats-row > .pos-note-btn:hover {
    border-color: #2563eb;
    background: color-mix(in srgb, #2563eb 8%, #fff);
    color: #2563eb;
}

.pos-total-bar {
    --total-color: var(--pos-total-bg-color, #2563eb);
    margin: 6px 10px 10px;
    padding: 10px 18px;
    border: 1px solid var(--total-color);
    border-radius: 12px;
    background: var(--total-color) !important;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--total-color) 25%, transparent);
}

.pos-total-bar .pos-total-amount {
    color: #fff;
    font-size: 30px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.pos-category .category-btn {
    border: 1px solid #e1e4ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    color: #334155 !important;
    font-weight: 600;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.pos-category .category-btn:hover {
    border-color: color-mix(in srgb, var(--pos-category-bg-color, #2563eb) 45%, #fff);
    background: color-mix(in srgb, var(--pos-category-bg-color, #2563eb) 6%, #fff);
}

.pos-category .category-btn:focus {
    box-shadow: none;
}

.pos-category .category-btn.pos-active-category {
    border: 1px solid var(--pos-category-bg-color, #2563eb) !important;
    background: var(--pos-category-bg-color, #2563eb) !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--pos-category-bg-color, #2563eb) 25%, transparent) !important;
    color: #fff !important;
    font-weight: 700;
}

.product-card-pos .card.pos-card-wrapper {
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.product-card-pos .card.pos-card-wrapper:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    transform: translateY(-2px);
}

.product-card-pos .pos-card-img-bg {
    background-color: #f4f6f9;
}

.product-card-pos img {
    border-radius: 0;
}

.product-card-pos .pos-card-title {
    color: #1e293b;
    font-weight: 600;
}

.product-card-pos .pos-card-footer {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 4px;
    padding: 6px 4px !important;
    border-top: 1px solid #eef0f4 !important;
    background-color: transparent;
}

.product-card-pos .pos-card-footer > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 1 auto;
    min-width: 0;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.product-card-pos .pos-card-footer > span > i {
    margin: 0 !important;
    font-size: 10px;
}

.product-card-pos .pos-card-footer > .text-success {
    background: color-mix(in srgb, #16a34a 10%, #fff);
}

.product-card-pos .pos-card-footer > .text-primary {
    background: color-mix(in srgb, #2563eb 10%, #fff);
}

body.dark-mode .pos-totals-panel {
    border-color: #2f3a48 !important;
    background-color: transparent !important;
}

body.dark-mode .pos-stats-row > .pos-stat-chip {
    --chip-color: #60a5fa;
    border: 1px solid #2f3a48 !important;
    background: var(--dash-surface) !important;
}

body.dark-mode .pos-stats-row > .pos-stat-chip:nth-child(2) {
    --chip-color: #4ade80;
}

body.dark-mode .pos-stats-row > .pos-stat-chip:nth-child(3) {
    --chip-color: #f87171;
}

body.dark-mode .pos-stats-row > .pos-stat-chip:nth-child(4) {
    --chip-color: #fbbf24;
}

body.dark-mode .pos-stats-row > .pos-chip-clickable:hover {
    border-color: var(--chip-color) !important;
    background: color-mix(in srgb, var(--chip-color) 8%, var(--dash-surface)) !important;
    box-shadow: none;
}

body.dark-mode .pos-stats-row > .pos-stat-chip .pos-chip-label {
    color: #8b98a9 !important;
}

body.dark-mode .pos-stats-row > .pos-stat-chip .pos-chip-value {
    color: var(--chip-color) !important;
}

body.dark-mode .pos-stats-row > .pos-note-btn {
    border-color: #2f3a48;
    background: #1a2330;
    color: #94a3b8;
}

body.dark-mode .pos-stats-row > .pos-note-btn:hover {
    border-color: #60a5fa;
    background: color-mix(in srgb, #60a5fa 8%, #1a2330);
    color: #60a5fa;
}

body.dark-mode .pos-total-bar {
    border: 1px solid color-mix(in srgb, var(--total-color) 45%, #2f3a48) !important;
    background: color-mix(in srgb, var(--total-color) 10%, var(--dash-surface)) !important;
    box-shadow: none !important;
}

body.dark-mode .pos-total-bar .pos-total-amount {
    color: color-mix(in srgb, var(--total-color) 55%, #fff) !important;
}

body.dark-mode .pos-category .category-btn {
    border-color: #2f3a48 !important;
    background: var(--dash-surface) !important;
    box-shadow: none !important;
    color: #cbd5e1 !important;
}

body.dark-mode .pos-category .category-btn:hover {
    border-color: color-mix(in srgb, var(--pos-category-bg-color, #2563eb) 60%, #2f3a48) !important;
    background: color-mix(in srgb, var(--pos-category-bg-color, #2563eb) 8%, var(--dash-surface)) !important;
}

body.dark-mode .pos-category .category-btn.pos-active-category {
    box-shadow: none !important;
    border-color: color-mix(in srgb, var(--pos-category-bg-color, #2563eb) 70%, #fff) !important;
    background: color-mix(in srgb, var(--pos-category-bg-color, #2563eb) 20%, var(--dash-surface)) !important;
    color: color-mix(in srgb, var(--pos-category-bg-color, #2563eb) 45%, #fff) !important;
}

body.dark-mode .product-card-pos .card.pos-card-wrapper {
    border-color: #2f3a48 !important;
    background: var(--dash-surface) !important;
    box-shadow: none;
}

body.dark-mode .product-card-pos .card.pos-card-wrapper:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .15);
}

body.dark-mode .product-card-pos .pos-card-img-bg {
    background-color: #1a2330;
}

body.dark-mode .product-card-pos .pos-card-title {
    color: #e2e8f0 !important;
}

body.dark-mode .product-card-pos .pos-card-footer {
    border-color: #2f3a48 !important;
}

body.dark-mode .product-card-pos .pos-card-footer > .text-success {
    background: rgba(74, 222, 128, .12);
    color: #4ade80 !important;
}

body.dark-mode .product-card-pos .pos-card-footer > .text-primary {
    background: rgba(96, 165, 250, .12);
    color: #60a5fa !important;
}

body:not(.dark-mode) .product_table #product_body_result > tr {
    background-color: transparent;
}

body:not(.dark-mode) .product_table #product_body_result > tr > td {
    border-top: 1px solid #eef0f4;
}

body:not(.dark-mode) .product_table.table-hover #product_body_result > tr:hover {
    background-color: #f8fafc;
}

#pos-right-panel {
    container: pos-cart / inline-size;
}

#pos-right-panel .product_table .number-spinner-wrap .number-spinner-input {
    min-width: 42px;
}

#pos-right-panel .product_table input[name="price[]"] {
    min-width: 72px;
}

@container pos-cart (max-width: 640px) {
    #pos-right-panel .product_table,
    #pos-right-panel .product_table > thead,
    #pos-right-panel .product_table > tbody {
        display: block;
        width: 100%;
    }

    #pos-right-panel .product_table > thead > tr,
    #pos-right-panel .product_table > tbody > tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        padding: 6px 8px;
    }

    #pos-right-panel .product_table > thead > tr {
        padding-top: 8px;
        padding-bottom: 4px;
        border-bottom: 1px solid rgba(148, 163, 184, .3);
    }

    #pos-right-panel .product_table > tbody > tr {
        border-top: 1px solid rgba(148, 163, 184, .2);
        border-inline-start: 3px solid transparent;
    }

    #pos-right-panel .product_table > tbody > tr:first-child {
        border-top: 0;
    }

    #pos-right-panel .product_table > thead > tr > th,
    #pos-right-panel .product_table > tbody > tr > td {
        flex: 1 1 0;
        width: auto !important;
        min-width: 60px !important;
        padding: 0 !important;
        border: 0 !important;
        white-space: normal !important;
        box-shadow: none !important;
    }

    #pos-right-panel .product_table > thead > tr > th.product_unit,
    #pos-right-panel .product_table > thead > tr > th.product_unit + th,
    #pos-right-panel .product_table > tbody > tr > td.product_unit,
    #pos-right-panel .product_table > tbody > tr > td.product_unit + td {
        flex-grow: 1.35;
    }

    #pos-right-panel .product_table > thead > tr > th:first-child {
        display: none;
    }

    #pos-right-panel .product_table > thead > tr > th {
        font-size: 12px;
        font-weight: 600;
    }

    #pos-right-panel .product_table > tbody > tr > td.product-name {
        order: -2;
        flex: 1 1 calc(100% - 44px);
        min-width: 0 !important;
        text-align: start;
        line-height: 1.35;
    }

    #pos-right-panel .product_table > tbody > tr > td:has(.pos-close) {
        order: -1;
        flex: 0 0 32px;
        min-width: 0 !important;
    }

    #pos-right-panel .product_table > tbody > tr > td:has(> input[type="hidden"]):not(:has(:not(input[type="hidden"]))) {
        display: none;
    }

    #pos-right-panel .product_table .form-control,
    #pos-right-panel .product_table .product_item_total_class {
        width: 100% !important;
        min-width: 0 !important;
    }

    #pos-right-panel .product_table .number-spinner-wrap {
        width: 100% !important;
        min-width: 0 !important;
    }

    #pos-right-panel .product_table .number-spinner-wrap .number-spinner-btn {
        flex: 0 0 30px;
        width: 30px;
        padding: 0 !important;
    }

    #pos-right-panel .product_table .number-spinner-wrap .number-spinner-input {
        flex: 1 1 auto;
        width: 1% !important;
        min-width: 0 !important;
        padding-inline: 2px !important;
    }

    #pos-right-panel .product_table .product_item_total_class {
        font-weight: 700;
    }

    #pos-right-panel #product_body_result > tr.focused-row {
        border-inline-start-color: #2563eb;
    }

    #pos-right-panel #product_body_result > tr.bg-stock {
        border-inline-start-color: #dc2626;
    }

    body.dark-mode #pos-right-panel #product_body_result > tr.focused-row {
        border-inline-start-color: #60a5fa;
    }

    body.dark-mode #pos-right-panel #product_body_result > tr.bg-stock {
        border-inline-start-color: #f87171;
    }
}

@container pos-cart (max-width: 600px) {
    #pos-right-panel .card-header > .row {
        row-gap: 6px;
    }

    #pos-right-panel .card-header > .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 !important;
    }

    #pos-right-panel .card-header > .row > .sale_date {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@container pos-cart (max-width: 460px) {
    #pos-right-panel .product_table > thead > tr,
    #pos-right-panel .product_table > tbody > tr {
        gap: 4px;
        padding-inline: 4px;
    }

    #pos-right-panel .product_table .number-spinner-wrap .number-spinner-btn {
        flex-basis: 24px;
        width: 24px;
    }

    #pos-right-panel .product_table input[name="price[]"] {
        padding-inline: 2px !important;
    }

    #pos-right-panel .pos-stats-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #pos-right-panel .pos-stats-row > .pos-stat-chip {
        padding: 6px 8px;
    }

    #pos-right-panel .pos-stats-row > .pos-stat-chip .pos-chip-value {
        font-size: 15px;
    }

    #pos-right-panel .pos-total-bar .pos-total-amount {
        font-size: 26px;
    }
}

.item-cards-wrap {
    container: item-cards / inline-size;
}

.item-cards-wrap.item-cards-compact {
    container-name: item-cards-compact;
}

.item-cards-wrap .product_table .unit_text .form-control {
    min-width: 76px;
}

.item-cards-wrap .product_table > tbody > tr {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 14px;
}

.item-cards-wrap .product_table > tbody > tr::before,
.item-cards-wrap .product_table > tbody > tr::after {
    content: '';
    display: none;
    flex-basis: 100%;
}

.item-cards-wrap .product_table > tbody > tr::before {
    order: 1;
}

.item-cards-wrap .product_table > tbody > tr::after {
    order: 3;
}

.item-cards-wrap .product_table > tbody > tr > td,
.item-cards-wrap .product_table > tbody > tr > th {
    order: 4;
    flex: 1 1 150px;
}

.item-cards-wrap .product_table > tbody > tr > .iteration,
.item-cards-wrap .product_table > tbody > tr > td.item-name,
.item-cards-wrap .product_table > tbody > tr > td:has(.pos-close) {
    order: 0;
    flex: 0 0 auto;
    align-self: center;
}

.item-cards-wrap .product_table > tbody > tr > td.item-name {
    flex: 1 1 0;
}

.item-cards-wrap .product_table > tbody > tr > td.item-meta {
    order: 2;
    flex: 0 0 auto;
}

.item-cards-wrap .product_table > tbody > tr > td[data-label]::before {
    content: attr(data-label);
    display: none;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.item-cards-wrap .product_table > tbody > tr > td.item-meta::before {
    margin-inline-end: 6px;
}

body.dark-mode .item-cards-wrap .product_table > tbody > tr > td[data-label]::before {
    color: #94a3b8;
}

@container item-cards (max-width: 1200px) {
    .item-cards-wrap .product_table,
    .item-cards-wrap .product_table > tbody {
        display: block;
        width: 100%;
        border: 0 !important;
    }

    .item-cards-wrap .product_table > thead {
        display: none;
    }

    .item-cards-wrap .product_table > tbody > tr {
        display: flex;
        margin-bottom: 10px;
        padding: 10px 12px 12px;
        border: 1px solid rgba(148, 163, 184, .35);
        border-radius: 10px;
    }

    .item-cards-wrap .product_table > tbody > tr::before,
    .item-cards-wrap .product_table > tbody > tr::after,
    .item-cards-wrap .product_table > tbody > tr > td[data-label]::before {
        display: block;
    }

    .item-cards-wrap .product_table > tbody > tr > td.item-meta::before {
        display: inline;
    }

    .item-cards-wrap .product_table > tbody > tr > td,
    .item-cards-wrap .product_table > tbody > tr > th {
        width: auto !important;
        min-width: 0 !important;
        max-width: 360px;
        margin-top: 6px;
        padding: 0 !important;
        border: 0 !important;
        white-space: normal !important;
        text-align: start;
    }

    .item-cards-wrap .product_table > tbody > tr > .iteration,
    .item-cards-wrap .product_table > tbody > tr > td.item-name,
    .item-cards-wrap .product_table > tbody > tr > td.item-meta,
    .item-cards-wrap .product_table > tbody > tr > td:has(.pos-close) {
        max-width: none;
        margin-top: 0;
    }

    .item-cards-wrap .product_table > tbody > tr > .iteration {
        color: #64748b;
    }

    .item-cards-wrap .product_table > tbody > tr > td.item-name {
        font-size: 15px;
        font-weight: 700;
    }

    .item-cards-wrap .product_table > tbody > tr > td.item-meta {
        font-size: 13px;
    }

    .item-cards-wrap .product_table td td {
        width: auto !important;
        min-width: 0 !important;
    }

    .item-cards-wrap .product_table .unit_text:first-child:not(:last-child) {
        width: 1% !important;
        white-space: nowrap !important;
    }

    .item-cards-wrap .product_table .form-control,
    .item-cards-wrap .product_table .product_item_total_class {
        width: 100% !important;
        min-width: 0 !important;
    }

    .item-cards-wrap .product_table .product_item_total_class {
        padding: 0;
        font-size: 16px;
        font-weight: 700;
        text-align: start !important;
    }

    body .item-cards-wrap table.product_table > tbody > tr:hover > td {
        background-color: transparent !important;
    }

    .item-cards-wrap .product_table > tbody > tr:hover {
        background-color: #f8fafc;
    }

    body.dark-mode .item-cards-wrap .product_table > tbody > tr:hover {
        background-color: #1c2838;
    }
}

@container item-cards-compact (max-width: 760px) {
    .item-cards-wrap .product_table,
    .item-cards-wrap .product_table > tbody {
        display: block;
        width: 100%;
        border: 0 !important;
    }

    .item-cards-wrap .product_table > thead {
        display: none;
    }

    .item-cards-wrap .product_table > tbody > tr {
        display: flex;
        margin-bottom: 10px;
        padding: 10px 12px 12px;
        border: 1px solid rgba(148, 163, 184, .35);
        border-radius: 10px;
    }

    .item-cards-wrap .product_table > tbody > tr::before,
    .item-cards-wrap .product_table > tbody > tr::after,
    .item-cards-wrap .product_table > tbody > tr > td[data-label]::before {
        display: block;
    }

    .item-cards-wrap .product_table > tbody > tr > td.item-meta::before {
        display: inline;
    }

    .item-cards-wrap .product_table > tbody > tr > td,
    .item-cards-wrap .product_table > tbody > tr > th {
        width: auto !important;
        min-width: 0 !important;
        max-width: 360px;
        margin-top: 6px;
        padding: 0 !important;
        border: 0 !important;
        white-space: normal !important;
        text-align: start;
    }

    .item-cards-wrap .product_table > tbody > tr > .iteration,
    .item-cards-wrap .product_table > tbody > tr > td.item-name,
    .item-cards-wrap .product_table > tbody > tr > td.item-meta,
    .item-cards-wrap .product_table > tbody > tr > td:has(.pos-close) {
        max-width: none;
        margin-top: 0;
    }

    .item-cards-wrap .product_table > tbody > tr > .iteration {
        color: #64748b;
    }

    .item-cards-wrap .product_table > tbody > tr > td.item-name {
        font-size: 15px;
        font-weight: 700;
    }

    .item-cards-wrap .product_table > tbody > tr > td.item-meta {
        font-size: 13px;
    }

    .item-cards-wrap .product_table td td {
        width: auto !important;
        min-width: 0 !important;
    }

    .item-cards-wrap .product_table .unit_text:first-child:not(:last-child) {
        width: 1% !important;
        white-space: nowrap !important;
    }

    .item-cards-wrap .product_table .form-control,
    .item-cards-wrap .product_table .product_item_total_class {
        width: 100% !important;
        min-width: 0 !important;
    }

    .item-cards-wrap .product_table .product_item_total_class {
        padding: 0;
        font-size: 16px;
        font-weight: 700;
        text-align: start !important;
    }

    body .item-cards-wrap table.product_table > tbody > tr:hover > td {
        background-color: transparent !important;
    }

    .item-cards-wrap .product_table > tbody > tr:hover {
        background-color: #f8fafc;
    }

    body.dark-mode .item-cards-wrap .product_table > tbody > tr:hover {
        background-color: #1c2838;
    }
}

.label-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 576px) {
    .label-actions .btn {
        flex: 1 1 auto;
    }
}

.single-items {
    container: single-items / inline-size;
}

.single-items .single-items-table > tbody > tr > td[data-label]::before {
    content: attr(data-label);
    display: none;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

body.dark-mode .single-items .single-items-table > tbody > tr > td[data-label]::before {
    color: #94a3b8;
}

@container single-items (max-width: 760px) {
    .single-items .single-items-table,
    .single-items .single-items-table > tbody {
        display: block;
        width: 100%;
        border: 0 !important;
    }

    .single-items .single-items-table > thead {
        display: none;
    }

    .single-items .single-items-table > tbody > tr {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px 14px;
        margin-bottom: 10px;
        padding: 10px 12px 12px;
        border: 1px solid rgba(148, 163, 184, .35);
        border-radius: 10px;
    }

    .single-items .single-items-table > tbody > tr::after {
        content: '';
        order: 1;
        flex-basis: 100%;
        height: 0;
        margin-top: -8px;
    }

    .single-items .single-items-table > tbody > tr > td {
        order: 3;
        flex: 1 1 120px;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        white-space: normal !important;
        text-align: start !important;
    }

    .single-items .single-items-table > tbody > tr > td:empty {
        display: none;
    }

    .single-items .single-items-table > tbody > tr > td.iteration {
        order: 0;
        flex: 0 0 auto;
        color: #64748b;
        font-weight: 700;
    }

    .single-items .single-items-table > tbody > tr > td.item-name {
        order: 0;
        flex: 1 1 0;
        font-size: 15px;
        font-weight: 700;
    }

    .single-items .single-items-table > tbody > tr > td.item-meta {
        order: 2;
        flex: 1 1 100%;
        font-size: 13px;
    }

    .single-items .single-items-table > tbody > tr > td[data-label]::before {
        display: block;
    }

    .single-items .single-items-table > tbody > tr > td.item-meta::before {
        display: inline;
        margin-inline-end: 6px;
    }

    body .single-items table.single-items-table > tbody > tr:hover > td,
    body .single-items table.single-items-table > tbody > tr.table-success > td {
        background-color: transparent !important;
    }

    body .single-items table.single-items-table > tbody > tr.table-success {
        border-color: #bbf7d0;
        background-color: #ecfdf3 !important;
    }

    body.dark-mode .single-items table.single-items-table > tbody > tr.table-success {
        border-color: rgba(34, 197, 94, .3);
        background-color: rgba(34, 197, 94, .14) !important;
    }

    .single-items .single-items-table > tbody > tr:not(.table-success):hover {
        background-color: #f8fafc;
    }

    body.dark-mode .single-items .single-items-table > tbody > tr:not(.table-success):hover {
        background-color: #1c2838;
    }
}

/* Excel import progress (SweetAlert) */
.excel-progress {
    margin-top: 6px;
    text-align: start;
}

.excel-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.excel-progress-phase {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.excel-progress-percent {
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.excel-progress-track {
    position: relative;
    height: 10px;
    overflow: hidden;
    background-color: #eef1f5;
    border-radius: 10px;
}

.excel-progress-bar {
    width: 0;
    height: 100%;
    background-color: #2563eb;
    border-radius: 10px;
    transition: width .25s ease;
}

.excel-progress-track.is-indeterminate .excel-progress-bar {
    position: absolute;
    width: 35%;
    animation: excel-progress-slide 1.1s ease-in-out infinite;
}

@keyframes excel-progress-slide {
    from {
        inset-inline-start: -35%;
    }

    to {
        inset-inline-start: 100%;
    }
}

.excel-progress-count {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    direction: ltr;
}

.excel-progress-summary {
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: start;
}

.excel-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
}

.excel-progress-row + .excel-progress-row {
    border-top: 1px solid #eef0f4;
}

.excel-progress-row span {
    color: #6b7280;
}

.excel-progress-row b {
    color: #16a34a;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.excel-progress-row.is-skipped b {
    color: #d97706;
}

.role-page {
    padding: 0 4px 24px;
}

.role-head {
    position: sticky;
    top: 64px;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-surface);
    box-shadow: 0 2px 8px rgba(16, 24, 40, .06);
}

.role-name {
    flex: 1;
    min-width: 0;
}

.role-name label {
    display: block;
    margin-bottom: 6px;
    color: var(--dash-muted);
    font-size: 13px;
    font-weight: 600;
}

.role-save {
    min-width: 150px;
    height: 40px;
}

.role-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-surface);
}

.role-search {
    position: relative;
    flex: 1;
    max-width: 420px;
}

.stg-search > i,
.role-search > i {
    position: absolute;
    top: 50%;
    inset-inline-start: 16px;
    z-index: 1;
    color: #8a919c;
    font-size: 15px;
    transform: translateY(-50%);
    transition: color .15s ease;
    pointer-events: none;
}

.stg-topbar .stg-search input.form-control,
.role-toolbar .role-search input.form-control {
    height: 42px;
    padding-block: 0;
    padding-inline: 44px 16px;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background-color: #f1f3f6 !important;
    color: var(--dash-text);
    font-size: 14px;
    font-weight: 500;
    box-shadow: none !important;
}

.stg-topbar .stg-search input.form-control::placeholder,
.role-toolbar .role-search input.form-control::placeholder {
    color: #8a919c;
    font-weight: 400;
}

.stg-topbar .stg-search input.form-control:hover:not(:focus),
.role-toolbar .role-search input.form-control:hover:not(:focus) {
    border-color: #dfe3e9 !important;
    background-color: #eceff3 !important;
}

.stg-topbar .stg-search input.form-control:focus,
.role-toolbar .role-search input.form-control:focus {
    border-color: #2563eb !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important;
}

.stg-search:focus-within > i,
.role-search:focus-within > i {
    color: #2563eb;
}

.stg-topbar .stg-search input.form-control::-webkit-search-cancel-button,
.role-toolbar .role-search input.form-control::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c4c9d0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 2.5l5 5m0-5l-5 5' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat;
    cursor: pointer;
}

.stg-topbar .stg-search input.form-control::-webkit-search-cancel-button:hover,
.role-toolbar .role-search input.form-control::-webkit-search-cancel-button:hover {
    background-color: #8a919c;
}

body.dark-mode .stg-search > i,
body.dark-mode .role-search > i {
    color: #7d8a9a;
}

body.dark-mode .stg-topbar .stg-search input.form-control,
body.dark-mode .role-toolbar .role-search input.form-control {
    border-color: transparent !important;
    background-color: #1a2330 !important;
}

body.dark-mode .stg-topbar .stg-search input.form-control:hover:not(:focus),
body.dark-mode .role-toolbar .role-search input.form-control:hover:not(:focus) {
    border-color: #2f3a48 !important;
    background-color: #1d2734 !important;
}

body.dark-mode .stg-topbar .stg-search input.form-control:focus,
body.dark-mode .role-toolbar .role-search input.form-control:focus {
    border-color: #60a5fa !important;
    background-color: #111a26 !important;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, .15) !important;
}

body.dark-mode .stg-search:focus-within > i,
body.dark-mode .role-search:focus-within > i {
    color: #60a5fa;
}

body.dark-mode .stg-topbar .stg-search input.form-control::-webkit-search-cancel-button,
body.dark-mode .role-toolbar .role-search input.form-control::-webkit-search-cancel-button {
    background-color: #44505f;
}

body.dark-mode .stg-topbar .stg-search input.form-control::-webkit-search-cancel-button:hover,
body.dark-mode .role-toolbar .role-search input.form-control::-webkit-search-cancel-button:hover {
    background-color: #7d8a9a;
}

.role-total {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--dash-hover);
    color: var(--dash-muted);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.role-perms .role-toolbar .role-all {
    margin-inline-start: auto !important;
}

.role-total,
.role-count {
    direction: ltr;
    unicode-bidi: isolate;
}

.role-perms .card.product-card {
    height: auto;
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.role-perms .card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 16px 18px 12px;
}

.role-perms .card-title > label,
.role-perms .card > label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--dash-text);
    font-size: 15px;
    font-weight: 700;
}

.role-perms .card-title > label::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: #2563eb;
}

.role-perms .card > label {
    padding: 14px 18px 10px !important;
    color: var(--dash-muted);
    font-size: 14px;
}

.role-perms .card > hr {
    margin: 0 18px !important;
    border-color: var(--dash-border);
}

.role-count {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--dash-hover);
    color: var(--dash-muted);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.role-count.is-some {
    background: color-mix(in srgb, #2563eb 10%, var(--dash-surface));
    color: #2563eb;
}

.role-count.is-full {
    background: color-mix(in srgb, #16a34a 12%, var(--dash-surface));
    color: #15803d;
}

.role-perms .card-body.row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 4px 18px 18px;
}

.role-perms .card:not(:has(.card-title)) .card-body.row {
    padding-top: 18px;
}

.role-perms .custom-control {
    flex: none;
    width: auto;
    max-width: none;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.role-perms .custom-control-label {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    margin: 0 !important;
    padding: 10px 14px;
    padding-inline-start: 44px;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-hover);
    color: var(--dash-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
}

.role-perms .custom-control-label:hover {
    border-color: var(--dash-border-strong);
}

.role-perms .custom-control-label::before,
.role-perms .custom-control-label::after {
    top: 50% !important;
    width: 18px !important;
    height: 18px !important;
    transform: translateY(-50%);
}

.role-perms .custom-control-label::before {
    border: 1.5px solid var(--dash-border-strong);
    border-radius: 5px !important;
    background: var(--dash-surface);
}

[dir="rtl"] .role-perms .custom-control-label::before,
[dir="rtl"] .role-perms .custom-control-label::after {
    right: 14px !important;
    left: auto !important;
}

[dir="ltr"] .role-perms .custom-control-label::before,
[dir="ltr"] .role-perms .custom-control-label::after {
    right: auto !important;
    left: 14px !important;
}

.role-perms .custom-control-input:checked ~ .custom-control-label {
    border-color: color-mix(in srgb, #2563eb 35%, var(--dash-surface));
    background: color-mix(in srgb, #2563eb 6%, var(--dash-surface));
}

.role-perms .custom-control-input:checked ~ .custom-control-label::before {
    border-color: #2563eb !important;
    background-color: #2563eb !important;
}

.role-perms .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.role-perms .custom-control:has(.subgroup-select-all) .custom-control-label,
.role-perms .role-all .custom-control-label {
    border-style: dashed;
    background: transparent;
    color: #2563eb !important;
}

.role-perms .role-miss {
    display: none !important;
}

body.dark-mode .role-perms .card-title > label {
    color: var(--dash-text) !important;
}

body.dark-mode .role-perms .card > label,
body.dark-mode .role-name label {
    color: var(--dash-muted) !important;
}

body.dark-mode .role-perms .card-title > label::before {
    background: #60a5fa;
}

body.dark-mode .role-perms .custom-control-input:checked ~ .custom-control-label {
    border-color: color-mix(in srgb, #60a5fa 40%, var(--dash-surface));
    background: color-mix(in srgb, #60a5fa 9%, var(--dash-surface));
}

body.dark-mode .role-perms .custom-control-input:checked ~ .custom-control-label::before {
    border-color: #3b82f6 !important;
    background-color: #3b82f6 !important;
}

body.dark-mode .role-perms .custom-control:has(.subgroup-select-all) .custom-control-label,
body.dark-mode .role-perms .role-all .custom-control-label {
    color: #60a5fa !important;
}

body.dark-mode .role-count.is-some {
    background: rgba(96, 165, 250, .14);
    color: #60a5fa;
}

body.dark-mode .role-count.is-full {
    background: rgba(74, 222, 128, .14);
    color: #4ade80;
}

@media (max-width: 575px) {
    .role-head {
        position: static;
        flex-wrap: wrap;
    }

    .role-save {
        width: 100%;
    }

    .role-search {
        max-width: none;
    }
}

.bg-header > #split-button {
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
}

.bg-header > #split-button .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 16px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, .85) !important;
}

.bg-header > #split-button .btn:hover {
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
}

.bg-header > #split-button .btn-primary,
.bg-header > #split-button .btn-primary:hover {
    background: #fff !important;
    color: #282c34 !important;
}

body.dark-mode .bg-header > #split-button {
    border-color: var(--dash-border);
    background: rgba(255, 255, 255, .03);
}

body.dark-mode .bg-header > #split-button .btn-primary,
body.dark-mode .bg-header > #split-button .btn-primary:hover {
    background: rgba(96, 165, 250, .18) !important;
    color: #93c5fd !important;
}

body.dark-mode .mobile-card {
    border-color: var(--dash-border);
    background: var(--dash-surface);
    box-shadow: none;
}

body.dark-mode .mobile-card.in-cart {
    border-color: #60a5fa;
    background: color-mix(in srgb, #60a5fa 7%, var(--dash-surface));
    box-shadow: 0 0 0 1px rgba(96, 165, 250, .35);
}

body.dark-mode .mobile-card-img {
    background: #1a2330;
}

body.dark-mode .mobile-card-name {
    color: var(--dash-text) !important;
}

body.dark-mode .mobile-card-price {
    color: #60a5fa;
}

body.dark-mode .mobile-card-stock {
    background: #1e2834;
    color: #97a3b1;
}

body.dark-mode .mobile-card-qty {
    background: #3b82f6;
    box-shadow: 0 0 0 2px var(--dash-surface);
}

body.dark-mode .mobile-card-actions {
    border-top-color: var(--dash-border);
}

body.dark-mode .mobile-card.in-cart .mobile-card-actions {
    border-top-color: color-mix(in srgb, #60a5fa 30%, var(--dash-surface));
    background: color-mix(in srgb, #60a5fa 12%, var(--dash-surface));
}

body.dark-mode .mobile-step-btn {
    color: #60a5fa;
}

body.dark-mode .mobile-step-btn:active {
    background: rgba(96, 165, 250, .18);
}

body.dark-mode .mobile-step-minus {
    border-inline-end-color: color-mix(in srgb, #60a5fa 30%, var(--dash-surface)) !important;
}

.serial-tag {
    display: inline-block;
    margin-top: 2px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    white-space: nowrap;
}

.serial-tag[onclick] {
    cursor: pointer;
}

.serial-tag[onclick]:hover {
    text-decoration: underline;
}

.serial-heading {
    margin: 0;
    color: var(--dash-text);
    font-size: 15px;
    font-weight: 700;
}

.serial-count {
    padding: 4px 12px;
    border: 1px solid var(--dash-border);
    border-radius: 999px;
    background: var(--dash-hover);
    color: var(--dash-muted);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.serial-count > span:last-child {
    color: var(--dash-text);
    font-weight: 700;
}

.serial-box {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    min-height: 56px;
    max-height: 220px;
    padding: 10px;
    overflow: auto;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: var(--dash-hover);
}

.serial-box-sm {
    max-height: 180px;
}

.serial-box:empty::before {
    content: attr(data-empty);
    align-self: center;
    width: 100%;
    color: var(--dash-muted);
    font-size: 13px;
    text-align: center;
}

.serial-box .btn {
    margin: 0 !important;
}

.serial-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding-inline: 6px 10px;
    border: 1px solid color-mix(in srgb, #2563eb 28%, var(--dash-surface));
    border-radius: 8px;
    background: var(--dash-surface);
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.serial-chip-x {
    display: grid;
    flex: none;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, #dc2626 10%, var(--dash-surface));
    color: #dc2626;
    font-size: 11px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.serial-chip-x:hover {
    background: #dc2626;
    color: #fff;
}

.serial-chip-x:focus {
    outline: none;
}

body.dark-mode .serial-tag {
    color: #60a5fa;
}

body.dark-mode .serial-box {
    border-color: var(--dash-border);
    background: #1a2330;
}

body.dark-mode .serial-chip {
    border-color: rgba(96, 165, 250, .35);
    background: var(--dash-surface);
    color: #93c5fd;
}

body.dark-mode .serial-chip-x {
    background: rgba(248, 113, 113, .15);
    color: #f87171;
}

body.dark-mode .serial-chip-x:hover {
    background: #dc2626;
    color: #fff;
}

#sale_installment_modal .inst-body {
    background: #f5f6f8;
}

.inst-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.inst-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.inst-stat-label {
    color: var(--dash-muted);
    font-size: 12px;
    font-weight: 600;
}

.inst-stat-value {
    color: var(--dash-text);
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.inst-stat-sub {
    color: var(--dash-muted);
    font-size: 12px;
}

.inst-blue {
    color: #2563eb !important;
}

.inst-green {
    color: #16a34a !important;
}

.inst-red {
    color: #dc2626 !important;
}

.inst-card {
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: var(--dash-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.inst-card .form-group:last-child {
    margin-bottom: 0;
}

.inst-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--dash-text);
    font-size: 15px;
    font-weight: 700;
}

.inst-card-title::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: #2563eb;
}

.inst-card-title .btn {
    margin-inline-start: auto;
}

.inst-card-help {
    margin-inline-start: auto;
    color: var(--dash-muted);
    font-size: 12px;
    font-weight: 500;
}

.inst-plan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inst-plan-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dash-text);
    font-size: 16px;
    font-weight: 700;
}

.inst-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inst-status,
.inst-pill {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.inst-pill {
    color: #b45309;
}

.inst-pill-paid,
.inst-pill-completed {
    color: #15803d;
}

.inst-pill-partial {
    color: #1d4ed8;
}

.inst-pill-late,
.inst-pill-defaulted {
    color: #b91c1c;
}

.inst-months {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inst-month {
    padding: 6px 14px;
    border: 1px solid var(--dash-border);
    border-radius: 999px;
    background: var(--dash-hover);
    color: var(--dash-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.inst-month:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.inst-month:focus {
    outline: none;
}

.inst-month.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.inst-table-wrap {
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
}

.inst-table {
    margin: 0;
}

.inst-table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--dash-border);
    background: var(--dash-hover);
    color: var(--dash-muted);
    font-size: 13px;
    font-weight: 700;
}

.inst-table td {
    border-top: 1px solid var(--dash-border);
    color: var(--dash-text);
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}

.inst-table tbody tr:first-child td {
    border-top: 0;
}

.inst-table td:first-child {
    width: 56px;
    color: var(--dash-muted);
    font-weight: 700;
}

.inst-sumbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--dash-hover);
    color: var(--dash-muted);
    font-size: 14px;
    font-weight: 600;
}

.inst-sumbar span {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.inst-match {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.inst-match.is-ok {
    background: color-mix(in srgb, #16a34a 12%, var(--dash-surface));
    color: #15803d;
}

.inst-match.is-bad {
    background: color-mix(in srgb, #dc2626 10%, var(--dash-surface));
    color: #b91c1c;
}

body.dark-mode #sale_installment_modal .inst-body {
    background: var(--dash-bg);
}

body.dark-mode .inst-blue {
    color: #60a5fa !important;
}

body.dark-mode .inst-green {
    color: #4ade80 !important;
}

body.dark-mode .inst-red {
    color: #f87171 !important;
}

body.dark-mode .inst-card-title::before {
    background: #60a5fa;
}

body.dark-mode .inst-card-title,
body.dark-mode .inst-card-title label {
    color: var(--dash-text) !important;
}

body.dark-mode .inst-status,
body.dark-mode .inst-pill-partial {
    color: #60a5fa;
}

body.dark-mode .inst-pill {
    color: #fbbf24;
}

body.dark-mode .inst-pill-paid,
body.dark-mode .inst-pill-completed {
    color: #4ade80;
}

body.dark-mode .inst-match.is-ok {
    background: rgba(74, 222, 128, .14);
    color: #4ade80;
}

body.dark-mode .inst-pill-late,
body.dark-mode .inst-pill-defaulted {
    color: #f87171;
}

body.dark-mode .inst-match.is-bad {
    background: rgba(248, 113, 113, .14);
    color: #f87171;
}

body.dark-mode .inst-month:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

body.dark-mode .inst-month.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #fff;
}

body.dark-mode .inst-table thead th {
    background: #1a2330 !important;
    color: #97a3b1 !important;
}

body.dark-mode .inst-table td {
    background: transparent !important;
    color: var(--dash-text) !important;
}

@media (max-width: 575px) {
    .inst-card-help {
        margin-inline-start: 0;
        width: 100%;
    }
}

body.dark-mode .pcs-tab.active {
    background: color-mix(in srgb, #60a5fa 12%, var(--dash-surface));
    color: #60a5fa;
}

body.dark-mode .pcs-card-head h6::before {
    background: #60a5fa;
}

body.dark-mode .ui-switch-card:has(.ui-switch-input:checked) {
    border-color: color-mix(in srgb, #60a5fa 40%, var(--dash-surface));
    background: color-mix(in srgb, #60a5fa 8%, var(--dash-surface));
}

.pcs-head-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
}

body.dark-mode .ui-switch-card,
body.dark-mode .ui-switch-card .ui-switch-label {
    color: var(--dash-text) !important;
}

body.dark-mode .ui-switch-card .ui-switch-hint {
    color: var(--dash-muted) !important;
}

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

.pcs-title {
    margin: 0;
    color: var(--dash-text);
    font-size: 19px;
    font-weight: 700;
}

.pcs-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed var(--dash-border-strong);
    border-radius: 10px;
    color: var(--dash-muted);
    text-align: center;
}

.pcs-deals {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
}

.pcs-deals td {
    padding: 8px 12px;
    border-top: 1px solid var(--dash-border);
    color: var(--dash-text);
    font-size: 14px;
    vertical-align: middle;
}

.pcs-deals tr:first-child td {
    border-top: 0;
}

.pcs-deals s {
    color: var(--dash-muted);
}

.pcs-deal-percent {
    margin-inline-start: 6px;
    color: #dc2626;
    font-weight: 700;
}

.pcs-note {
    margin: 12px 0 0;
    color: var(--dash-muted);
    font-size: 13px;
    line-height: 1.7;
}

.pcs-warning {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    line-height: 1.7;
}

.pcs-public {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.pcs-qr {
    flex: none;
    width: 148px;
    height: 148px;
    padding: 8px;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    background: #ffffff;
}

.pcs-qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pcs-public-body {
    flex: 1 1 240px;
    min-width: 0;
}

.pcs-public-body .pcs-links {
    margin-top: 10px;
}

body.dark-mode .pcs-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

body.dark-mode .pcs-state.active {
    color: #60a5fa;
}

body.dark-mode .pcs-label {
    color: var(--dash-muted) !important;
}

body.dark-mode .pcs-deal-percent {
    color: #f87171;
}

div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    position: relative !important;
}

[dir="rtl"] div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
[dir="rtl"] div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    padding-right: 38px !important;
    padding-left: 10px !important;
}

[dir="ltr"] div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
[dir="ltr"] div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    padding-right: 10px !important;
    padding-left: 38px !important;
}

div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    top: 50% !important;
    width: 22px !important;
    height: 22px !important;
    margin: -11px 0 0 !important;
    border: 1px solid rgba(37, 99, 235, .3) !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    background-color: rgba(37, 99, 235, .12) !important;
    color: #2563eb !important;
    font-family: font, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    text-align: center !important;
    text-indent: 0 !important;
    transition: background-color .15s ease, color .15s ease;
}

[dir="rtl"] div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
[dir="rtl"] div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    right: 9px !important;
    left: auto !important;
}

[dir="ltr"] div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
[dir="ltr"] div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    left: 9px !important;
    right: auto !important;
}

div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
    border-color: rgba(220, 38, 38, .3) !important;
    background-color: rgba(220, 38, 38, .12) !important;
    color: #dc2626 !important;
}

body.dark-mode div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
body.dark-mode div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    border-color: rgba(96, 165, 250, .3) !important;
    background-color: rgba(96, 165, 250, .14) !important;
    color: #60a5fa !important;
}

body.dark-mode div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
body.dark-mode div.dataTables_wrapper table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
    border-color: rgba(248, 113, 113, .3) !important;
    background-color: rgba(248, 113, 113, .14) !important;
    color: #f87171 !important;
}

div.dataTables_wrapper table.dataTable > tbody > tr.child > td.child {
    padding: 2px 14px !important;
    background-color: #f8fafc !important;
}

table.dataTable > tbody > tr.child ul.dtr-details {
    display: block;
    width: 100%;
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #e8edf5;
    white-space: normal;
}

table.dataTable > tbody > tr.child ul.dtr-details > li:first-child {
    padding-top: 9px;
}

table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
    border-bottom: 0;
}

table.dataTable > tbody > tr.child span.dtr-title {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 48%;
    color: #6b7280;
    font-weight: 600;
}

table.dataTable > tbody > tr.child span.dtr-data {
    flex: 0 1 auto;
    min-width: 0;
    color: #111827;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: end;
    overflow-wrap: anywhere;
}

body.dark-mode div.dataTables_wrapper table.dataTable > tbody > tr.child > td.child {
    background-color: #111821 !important;
}

body.dark-mode table.dataTable > tbody > tr.child ul.dtr-details > li {
    border-bottom-color: #222c38;
}

body.dark-mode table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
    border-bottom: 0;
}

body.dark-mode table.dataTable > tbody > tr.child span.dtr-title {
    color: #8b97a7;
}

body.dark-mode table.dataTable > tbody > tr.child span.dtr-data {
    color: #e5e7eb;
}

.select2-container--default .select2-results__option {
    white-space: normal;
    overflow-wrap: anywhere;
}

input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"] {
    min-width: 0;
    max-width: 100%;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value,
input[type="month"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
    min-height: 1.5em;
    text-align: start;
}

@media (max-width: 991.98px) {
    .app-main {
        overflow-x: clip;
    }

    .dropdown-menu {
        max-width: calc(100vw - 16px);
    }

    .dropdown-menu .dropdown-item {
        white-space: normal;
    }

    @supports (appearance: base-select) {
        select.form-control:not([multiple]):not([size])::picker(select) {
            position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
            max-inline-size: calc(100vw - 16px);
        }
    }
}

@media (max-width: 767.98px) {
    input[type="date"].form-control,
    input[type="datetime-local"].form-control,
    input[type="month"].form-control,
    input[type="time"].form-control {
        display: block;
        width: 100%;
        min-height: calc(1.5em + .75rem + 2px);
    }

    @supports (-webkit-touch-callout: none) {
        input[type="date"].form-control,
        input[type="datetime-local"].form-control,
        input[type="month"].form-control,
        input[type="time"].form-control {
            -webkit-appearance: none;
            appearance: none;
        }
    }

    .datatable-totals .row.g-1 > .col {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 4px;
    }

    .datatable-totals .row.g-1 > .col:last-child:nth-child(odd) {
        flex-basis: 100%;
        max-width: 100%;
    }

    .datatable-totals .row.g-1 {
        margin: -4px;
    }

    .datatable-totals .card-body .card-title {
        font-size: 13px;
    }

    body > .select2-container--open:not(.select2),
    .modal > .select2-container--open:not(.select2) {
        right: 8px !important;
        left: 8px !important;
    }

    body > .select2-container--open:not(.select2) .select2-dropdown,
    .modal > .select2-container--open:not(.select2) .select2-dropdown {
        width: auto !important;
        min-width: 0 !important;
    }

    .select2-container--default .select2-results > .select2-results__options {
        max-height: min(320px, 45vh);
    }

    .modal-footer {
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .row:has(> [class*="col-md-"] > input[type="datetime-local"]) > .col-md-2,
    .row:has(> [class*="col-md-"] > input[type="datetime-local"]) > .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 8px !important;
    }

    .row:has(> [class*="col-md-"] > input[type="datetime-local"]) > .col-md-4,
    .row:has(> [class*="col-md-"] > input[type="datetime-local"]) > .col-md-5,
    .row:has(> [class*="col-md-"] > input[type="datetime-local"]) > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .row:has(> .col-md-3 > input[type="datetime-local"]) > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px !important;
    }

    .row:has(> .col-md-3 > input[type="datetime-local"]) > .col-md-3:has(> input[type="datetime-local"]) {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) and (max-width: 1599.98px) {
    .row > .col-md-2:has(> input[type="datetime-local"]) {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 992px) and (max-width: 1599.98px) {
    .row:has(> .col-md-5):has(> .col-md-2 > input[type="datetime-local"]) > .col-md-5,
    .row:has(> .col-md-5):has(> .col-md-2 > input[type="datetime-local"]) > .col-md-3,
    .row:has(> .col-md-5):has(> .col-md-2 > input[type="datetime-local"]) > .col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 8px !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .row:has(> .col-md-5):has(> .col-md-2 > input[type="datetime-local"]) > .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.attachment-drop {
    height: 120px;
}

.attachment-picked {
    margin: 8px 0 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-card);
    background: var(--dash-surface);
}

.attachment-picked li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--dash-text);
    font-size: var(--dash-text-small);
}

.attachment-picked li + li {
    border-top: 1px solid var(--dash-border);
}

.attachment-picked li > i {
    color: var(--dash-muted);
}

.attachment-picked-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-picked-size {
    color: var(--dash-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.attachment-picked-remove {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--dash-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.attachment-picked-remove:hover {
    background: rgba(207, 34, 46, .08);
    color: var(--dash-danger);
}

.attachment-table td {
    vertical-align: middle;
}

.attachment-thumb {
    width: 48px;
    height: 48px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-card);
    object-fit: cover;
    cursor: zoom-in;
}

.attachment-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-card);
    background: var(--dash-hover);
    color: var(--dash-muted);
    font-size: 22px;
}

.attachment-icon:hover {
    border-color: var(--dash-accent);
    color: var(--dash-accent);
    text-decoration: none;
}

.attachment-icon .fa-file-pdf {
    color: #dc2626;
}

.attachment-icon .fa-file-word {
    color: #2563eb;
}

.attachment-icon .fa-file-excel {
    color: #16a34a;
}

.attachment-name {
    max-width: 280px;
    word-break: break-word;
}

.attachment-table td.attachment-name {
    min-width: 130px;
}

.multi-barcode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.multi-barcode-btn i {
    font-size: 17px;
}

.pw-field {
    position: relative;
}

.pw-field .form-control {
    padding-inline-end: 46px;
}

.pw-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 6px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dash-muted);
    font-size: 15px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .15s ease, color .15s ease;
}

.pw-toggle:hover {
    background: var(--dash-hover);
    color: var(--dash-text);
}

.pw-toggle:focus {
    outline: none;
}

.security-actions {
    padding: 4px 0 16px;
}

.security-actions .btn {
    min-width: 150px;
}

.cam-scan-trigger {
    position: absolute;
    z-index: 100;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.2s;
}

.cam-scan-modal {
    z-index: 99999;
    padding: 0 !important;
}

.cam-scan-modal .cam-scan-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
}

.cam-scan-content {
    height: 100%;
    border: none;
    border-radius: 0;
    background: #000;
    overflow: hidden;
}

.cam-scan-stage {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
    direction: ltr;
    user-select: none;
}

.cam-scan-video,
.cam-scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cam-scan-video {
    object-fit: cover;
}

.cam-scan-overlay {
    z-index: 3;
    pointer-events: none;
}

.cam-scan-frame {
    position: absolute;
    top: 46%;
    left: 50%;
    z-index: 2;
    width: min(86%, 520px);
    aspect-ratio: 16 / 9;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    pointer-events: none;
}

.cam-scan-frame.is-hit {
    border-color: #22c55e;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5), 0 0 24px rgba(34, 197, 94, 0.9);
}

.cam-scan-laser {
    position: absolute;
    top: 50%;
    right: 6%;
    left: 6%;
    height: 2px;
    border-radius: 2px;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
    animation: cam-scan-laser 1.8s ease-in-out infinite alternate;
}

.cam-scan-frame.is-hit .cam-scan-laser {
    display: none;
}

@keyframes cam-scan-laser {
    from {
        top: 14%;
    }

    to {
        top: 86%;
    }
}

.cam-scan-loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    pointer-events: none;
}

.cam-scan-top {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top));
}

.cam-scan-tools {
    display: flex;
    gap: 10px;
}

.cam-scan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.cam-scan-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.cam-scan-btn.is-on {
    background: #facc15;
    color: #000;
}

.cam-scan-bottom {
    position: absolute;
    right: 16px;
    bottom: max(28px, env(safe-area-inset-bottom));
    left: 16px;
    z-index: 4;
    text-align: center;
}

.cam-scan-hint {
    display: inline-block;
    max-width: 100%;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.cam-scan-message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.88);
    color: #fff;
    font-size: 14px;
}

@media (min-width: 769px) {
    .cam-scan-modal .cam-scan-dialog {
        max-width: 560px;
        height: auto;
        margin: 1.75rem auto;
    }

    .cam-scan-content {
        border-radius: 16px;
    }

    .cam-scan-stage {
        height: min(80vh, 680px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cam-scan-laser {
        animation: none;
    }
}

.profile-image {
    max-height: 70px;
    max-width: 90px;
    object-fit: contain;
    cursor: pointer;
}

.profile-image-box {
    gap: 6px;
}

.image-remove-link {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline !important;
    text-decoration-skip-ink: none;
    text-underline-offset: 4px;
    cursor: pointer;
}

.image-remove-link:hover,
.image-remove-link:focus {
    color: #111827;
}

body.dark-mode .image-remove-link {
    color: #9ca3af;
}

body.dark-mode .image-remove-link:hover,
body.dark-mode .image-remove-link:focus {
    color: #e5e7eb;
}

#image_modal .image-remove-link {
    color: rgba(255, 255, 255, .85);
}

#image_modal .image-remove-link:hover,
#image_modal .image-remove-link:focus {
    color: #fff;
}
