/* =========================
   🌐 GLOBAL THEME VARIABLES
========================= */
:root {
    /* Background */
    --bg-main: #0F172A;
    /* Text */
    --text-primary: #E2E8F0;
    --text-heading: #F8FAFC;
    --text-muted: #94A3B8;
    /* Accent */
    --color-accent: #38BDF8;
    --color-accent-hover: #7DD3FC;
    /* Status colors */
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
}

/* =========================
   🌍 GLOBAL BASE STYLES
========================= */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* =========================
   📝 TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5 {
    color: var(--text-heading);
}

p {
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted);
}

h1:focus {
    outline: none;
}

/* =========================
   🔗 LINKS
========================= */
a, .btn-link {
    color: var(--color-accent);
    text-decoration: none;
}

    a:hover {
        color: var(--color-accent-hover);
    }

/* =========================
   🔘 BUTTONS (Bootstrap override)
========================= */
.btn-primary {
    color: #07111f;
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #0F172A, 0 0 0 0.25rem var(--color-accent);
}

/* =========================
   📦 LAYOUT FIXES
========================= */
.page,
main,
.content {
    background: transparent !important;
}

.content {
    padding-top: 1.1rem;
}

/* =========================
   ✅ VALIDATION
========================= */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--color-success);
}

.invalid {
    outline: 1px solid var(--color-error);
}

.validation-message {
    color: var(--color-error);
}

/* =========================
   ⚠️ BLAZOR ERROR UI
========================= */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* =========================
   🧩 FORM FIXES
========================= */
.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--text-muted);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================
   🎯 APP-SPECIFIC STATUS CLASSES
   (Safe — does NOT override Bootstrap)
========================= */
.app-text-success {
    color: var(--color-success) !important;
}

.app-text-warning {
    color: var(--color-warning) !important;
}

.app-text-error {
    color: var(--color-error) !important;
}

.app-bg-success {
    background-color: rgba(34, 197, 94, 0.15) !important;
}

.app-bg-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
}

.app-bg-error {
    background-color: rgba(239, 68, 68, 0.15) !important;
}

/* =========================
   🚦 STATUS SHORTCUTS (your use-case)
========================= */
.status-good {
    color: var(--color-success);
}

.status-bad {
    color: var(--color-error);
}



.admin-only-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient( 135deg, rgba(255,186,58,.20), rgba(255,186,58,.34), rgba(255,186,58,.20) );
    border: 1px solid rgba(255,186,58,.45);
    color: #FFE7A8;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 18px rgba(255,186,58,.16), inset 0 1px 0 rgba(255,255,255,.08);
}

    .admin-only-banner::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 50%;
        height: 100%;
        background: linear-gradient( 120deg, transparent, rgba(255,255,255,.35), transparent );
        transform: skewX(-20deg);
        animation: adminShine 4s linear infinite;
    }

.admin-only-icon {
    position: relative;
    z-index: 1;
    font-size: 20px;
    color: #FFBA3A;
    filter: drop-shadow(0 0 8px rgba(255,186,58,.65));
}

.admin-only-title {
    position: relative;
    z-index: 1;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

@keyframes adminShine {
    0% {
        left: -120%;
    }

    100% {
        left: 150%;
    }
}

.shaw-panel-menu > ul > li > div > a,
.shaw-panel-menu > ul > li > div > a:link,
.shaw-panel-menu > ul > li > div > a:visited,
.shaw-panel-menu > ul > li > div > a span,
.shaw-panel-menu > ul > li > div > a .rz-navigation-item-text,
.shaw-panel-menu > ul > li > div > a .rz-panel-menu-item-text {
    color: #EAFBEA !important;
    opacity: 1 !important;
}

/* ShawTech Radzen Panel Menu - GLOBAL app.css */

.shaw-panel-menu,
.shaw-panel-menu ul,
.shaw-panel-menu li,
.shaw-panel-menu .rz-panel-menu,
.shaw-panel-menu .rz-navigation-item,
.shaw-panel-menu .rz-navigation-item-wrapper {
    background: transparent !important;
    border: none !important;
}

.shaw-panel-menu {
    width: 100%;
}

    .shaw-panel-menu .rz-navigation-item {
        margin-bottom: 0.35rem;
    }

    .shaw-panel-menu .rz-navigation-item-link {
        display: flex !important;
        align-items: center !important;
        min-height: 3.25rem;
        padding: 0.85rem 1rem !important;
        border-radius: 0.8rem !important;
        border: 1px solid transparent !important;
        background: transparent !important;
        color: #EAFBEA !important;
        text-decoration: none !important;
    }

        .shaw-panel-menu .rz-navigation-item-link *,
        .shaw-panel-menu .rz-navigation-item-text {
            color: #EAFBEA !important;
            opacity: 1 !important;
        }

        .shaw-panel-menu .rz-navigation-item-link:hover {
            background: rgba(255, 255, 255, 0.075) !important;
            transform: translateX(4px);
        }

            .shaw-panel-menu .rz-navigation-item-link:hover,
            .shaw-panel-menu .rz-navigation-item-link:hover * {
                color: #FFFFFF !important;
            }

        .shaw-panel-menu .rz-navigation-item-active > .rz-navigation-item-wrapper > .rz-navigation-item-link,
        .shaw-panel-menu .rz-navigation-item-link.rz-state-active {
            background: linear-gradient( 135deg, rgba(68, 174, 255, 0.30), rgba(68, 174, 255, 0.10) ) !important;
            border: 1px solid rgba(68, 174, 255, 0.38) !important;
            box-shadow: 0 0 18px rgba(68, 174, 255, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.10);
        }

    .shaw-panel-menu .rz-navigation-item-icon,
    .shaw-panel-menu .rz-icon {
        color: #BFD7EA !important;
    }

    .shaw-panel-menu .rz-navigation-item-link:hover .rz-navigation-item-icon,
    .shaw-panel-menu .rz-navigation-item-link:hover .rz-icon,
    .shaw-panel-menu .rz-navigation-item-link.rz-state-active .rz-navigation-item-icon {
        color: #44AEFF !important;
    }

    .shaw-panel-menu .rz-navigation-item-icon-children {
        color: #7EC9FF !important;
    }

    /* Child menu container */
    .shaw-panel-menu .rz-navigation-menu {
        background: transparent !important;
        padding-left: 0.85rem !important;
        margin-top: 0.35rem;
        margin-bottom: 0.65rem;
        border-left: 1px solid rgba(68, 174, 255, 0.16) !important;
    }

        /* Child menu buttons */
        .shaw-panel-menu .rz-navigation-menu .rz-navigation-item-link {
            min-height: 2.7rem;
            padding: 0.72rem 0.95rem !important;
            margin-bottom: 0.3rem;
            border-radius: 0.75rem !important;
            background: linear-gradient( 135deg, rgba(68, 174, 255, 0.14), rgba(68, 174, 255, 0.055) ) !important;
            border: 1px solid rgba(68, 174, 255, 0.14) !important;
        }

            .shaw-panel-menu .rz-navigation-menu .rz-navigation-item-link *,
            .shaw-panel-menu .rz-navigation-menu .rz-navigation-item-text {
                color: #D9F2FF !important;
            }

            .shaw-panel-menu .rz-navigation-menu .rz-navigation-item-link:hover {
                background: linear-gradient( 135deg, rgba(68, 174, 255, 0.24), rgba(68, 174, 255, 0.10) ) !important;
                border-color: rgba(68, 174, 255, 0.26) !important;
            }


    /* Speed up RadzenPanelMenu expand/collapse */
    .shaw-panel-menu .rz-navigation-menu {
        transition: max-height 0.16s ease-out, opacity 0.14s ease-out, transform 0.14s ease-out !important;
        transform-origin: top;
    }

    /* Smooth opening look */
    .shaw-panel-menu .rz-navigation-item-expanded > .rz-navigation-menu {
        opacity: 1;
        transform: translateY(0);
    }

    /* Collapsed feel */
    .shaw-panel-menu .rz-navigation-menu:not(:has(.rz-navigation-item-link)) {
        opacity: 0;
        transform: translateY(-4px);
    }


/* RADZEN DROPDOWN POPUP - GLOBAL app.css */

.rz-dropdown-panel,
.rz-popup,
.rz-overlaypanel {
    background: rgba(15, 23, 42, 0.98) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.55) !important;
}

.rz-dropdown-items,
.rz-dropdown-items-wrapper {
    background: rgba(15, 23, 42, 0.98) !important;
}

    .rz-dropdown-items li,
    .rz-dropdown-item {
        background: transparent !important;
        color: #DDEAFE !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        padding: 14px 18px !important;
    }

        .rz-dropdown-items li:hover,
        .rz-dropdown-item:hover {
            background: rgba(59, 130, 246, 0.22) !important;
            color: #FFFFFF !important;
        }

        .rz-dropdown-items li.rz-state-highlight,
        .rz-dropdown-item.rz-state-highlight {
            background: linear-gradient( 90deg, rgba(37, 99, 235, 0.42), rgba(14, 165, 233, 0.24) ) !important;
            color: #FFFFFF !important;
        }

        .rz-dropdown-items li.rz-state-disabled,
        .rz-dropdown-item.rz-state-disabled {
            color: rgba(221, 234, 254, 0.45) !important;
        }

/* Scrollbar */
.rz-dropdown-panel ::-webkit-scrollbar {
    width: 10px;
}

.rz-dropdown-panel ::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.45);
    border-radius: 999px;
}

.rz-dropdown-panel ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
}

/* =========================================
   GLOBAL RADZEN DROPDOWN THEME
========================================= */

.rz-dropdown {
    min-height: 40px !important;
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    border-radius: 16px !important;
    color: #E2E8F0 !important;
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.16) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

    /* Hover */
    .rz-dropdown:hover {
        border-color: rgba(96, 165, 250, 0.75) !important;
        box-shadow: 0 0 24px rgba(59, 130, 246, 0.25) !important;
    }

    /* Focus */
    .rz-dropdown.rz-state-focus {
        border-color: #60A5FA !important;
        box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18), 0 0 24px rgba(59, 130, 246, 0.25) !important;
    }

/* Selected text */
.rz-dropdown-label {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 14px !important;
    color: #E2E8F0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: normal !important;
}

/* Dropdown arrow */
.rz-dropdown-trigger {
    color: #93C5FD !important;
}

/* Popup */
.rz-dropdown-panel,
.rz-popup,
.rz-overlaypanel {
    background: rgba(15, 23, 42, 0.98) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.55) !important;
}

/* Popup content */
.rz-dropdown-items,
.rz-dropdown-items-wrapper {
    background: rgba(15, 23, 42, 0.98) !important;
}

    /* Items */
    .rz-dropdown-items li,
    .rz-dropdown-item {
        background: transparent !important;
        color: #DDEAFE !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        padding: 14px 18px !important;
    }

        /* Hover item */
        .rz-dropdown-items li:hover,
        .rz-dropdown-item:hover {
            background: rgba(59, 130, 246, 0.22) !important;
            color: #FFFFFF !important;
        }

        /* Selected item */
        .rz-dropdown-items li.rz-state-highlight,
        .rz-dropdown-item.rz-state-highlight {
            background: linear-gradient( 90deg, rgba(37, 99, 235, 0.42), rgba(14, 165, 233, 0.24) ) !important;
            color: #FFFFFF !important;
        }

        /* Disabled item */
        .rz-dropdown-items li.rz-state-disabled,
        .rz-dropdown-item.rz-state-disabled {
            color: rgba(221, 234, 254, 0.45) !important;
        }

/* Scrollbar */
.rz-dropdown-panel ::-webkit-scrollbar {
    width: 10px;
}

.rz-dropdown-panel ::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.45);
    border-radius: 999px;
}

.rz-dropdown-panel ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
}


.shaw-users-card {
    max-width: 900px;
    margin: 24px auto;
    padding: 24px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92)) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.shaw-users-header h3 {
    margin: 0;
    color: #F8FAFC;
    font-size: 1.75rem;
    font-weight: 800;
}

.shaw-users-header p {
    margin: 6px 0 20px;
    color: #94A3B8;
    font-size: 0.95rem;
}

.shaw-users-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.top-actions {
    margin-bottom: 18px;
}

.bottom-actions {
    margin-top: 14px;
}

.shaw-users-fieldset {
    margin-bottom: 18px;
    border-radius: 16px;
}

::deep .shaw-users-fieldset.rz-fieldset {
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    color: #E2E8F0 !important;
}

::deep .shaw-users-fieldset .rz-fieldset-legend {
    color: #EAF6FF !important;
    background: #0F172A !important;
    font-weight: 700;
    padding: 0 10px !important;
}

.shaw-users-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 18px 28px;
    padding: 10px 4px 4px;
}

.shaw-user-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #E2E8F0;
    font-weight: 700;
    cursor: pointer;
}

    .shaw-user-check span {
        color: #DDEAFE;
    }

::deep .shaw-user-check .rz-chkbox-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(148, 163, 184, 0.6) !important;
}

    ::deep .shaw-user-check .rz-chkbox-box.rz-state-active {
        background: linear-gradient(135deg, #38BDF8, #2563EB) !important;
        border-color: #7DD3FC !important;
        box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
    }

.shaw-btn {
    min-height: 44px;
    padding: 0 18px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: 1px solid transparent !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

::deep .shaw-btn.secondary {
    background: rgba(15, 23, 42, 0.88) !important;
    color: #DDEAFE !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

    ::deep .shaw-btn.secondary:hover {
        background: rgba(56, 189, 248, 0.16) !important;
        color: #FFFFFF !important;
    }

::deep .shaw-btn.success {
    background: rgba(34, 197, 94, 0.16) !important;
    color: #BBF7D0 !important;
    border-color: rgba(34, 197, 94, 0.38) !important;
}

::deep .shaw-btn.danger {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #FECACA !important;
    border-color: rgba(239, 68, 68, 0.38) !important;
}

::deep .shaw-btn.success-solid {
    background: linear-gradient(135deg, #22C55E, #16A34A) !important;
    color: white !important;
}

::deep .shaw-btn.danger-solid {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    color: white !important;
}

::deep .shaw-btn.rz-state-disabled,
::deep .shaw-btn:disabled {
    opacity: 0.45 !important;
    filter: grayscale(0.3);
}

.shaw-progress-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #DDEAFE;
    font-weight: 700;
}

::deep .shaw-progress {
    width: 220px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
}

.shaw-status-alert {
    margin-top: 16px;
}

@media (max-width: 700px) {
    .shaw-users-card {
        margin: 12px;
        padding: 18px !important;
    }

    .shaw-users-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
}


::deep .shaw-users-card.rz-card,
.shaw-users-card {
    max-width: 900px;
    margin: 24px auto;
    padding: 24px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92)) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    color: #E2E8F0 !important;
}

::deep .shaw-users-card h3,
.shaw-users-header h3 {
    margin: 0;
    color: #F8FAFC !important;
    font-size: 1.75rem;
    font-weight: 800;
}

::deep .shaw-users-card p,
.shaw-users-header p {
    margin: 6px 0 20px;
    color: #94A3B8 !important;
    font-size: 0.95rem;
}


/* =========================================
   GLOBAL RADZEN CARD THEME
========================================= */

.rz-card {
    background: linear-gradient( 135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92) ) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    border-radius: 22px !important;
    color: #E2E8F0 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(18px);
}

    /* Card headings */
    .rz-card h1,
    .rz-card h2,
    .rz-card h3,
    .rz-card h4,
    .rz-card h5,
    .rz-card h6 {
        color: #F8FAFC !important;
    }

    /* Card text */
    .rz-card p,
    .rz-card span,
    .rz-card div {
        color: inherit;
    }



/* =========================================
   ORDERS PAGE THEME
========================================= */

.orders-page {
    background: var(--bg-main);
    min-height: 100vh;
    width: 100%;
    color: var(--text-primary);
}

.orders-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

.center-header {
    text-align: center;
}

.orders-toolbar {
    margin: 20px 0 25px 40px;
}



.status-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.small-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.tiny-icon {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.green-background {
    background: var(--color-success) !important;
    color: white !important;
}

.gray-background {
    background: #64748B !important;
    color: white !important;
}

.clear-background {
    background: transparent !important;
    border: 1px solid rgba(148, 163, 184, 0.65);
    color: var(--text-primary) !important;
}

.spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 6px solid rgba(148, 163, 184, 0.35);
    border-top-color: var(--color-accent);
    animation: spin 0.8s linear infinite;
    margin-top: 2rem;
}

.loading-text {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



.orders-create-btn {
    background: linear-gradient(135deg, var(--color-accent), #2563EB) !important;
    color: #07111f !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    padding: 10px 18px !important;
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.22) !important;
}



/* =========================================
   SHAW GRID - GLOBAL RADZEN DATAGRID THEME
   Use on any RadzenDataGrid:
   class="shaw-grid"
========================================= */

.shaw-grid,
.shaw-grid.rz-data-grid,
.shaw-grid.rz-datatable {
    background: #172744 !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42) !important;
}

    .shaw-grid table,
    .shaw-grid .rz-grid-table,
    .shaw-grid .rz-datatable-table {
        background: #172744 !important;
        color: #DDEAFE !important;
    }

        .shaw-grid thead th,
        .shaw-grid .rz-datatable-thead th,
        .shaw-grid .rz-grid-table thead th {
            background: #111C31 !important;
            color: #EAF2FF !important;
            border-color: rgba(56, 189, 248, 0.18) !important;
            font-weight: 700 !important;
        }

    .shaw-grid .rz-column-title,
    .shaw-grid .rz-column-title-content,
    .shaw-grid th span,
    .shaw-grid th div {
        color: #EAF2FF !important;
        font-weight: 700 !important;
        opacity: 1 !important;
    }

    .shaw-grid tbody tr td,
    .shaw-grid .rz-datatable-data td,
    .shaw-grid .rz-grid-table td {
        color: #EAF2FF !important;
        font-weight: 500 !important;
        border-color: rgba(56, 189, 248, 0.18) !important;
    }

    .shaw-grid tbody tr:nth-child(odd):not(.row-all-shipped):not(.row-context-selected) td,
    .shaw-grid .rz-datatable-data tr:nth-child(odd):not(.row-all-shipped):not(.row-context-selected) td {
        background: #172744 !important;
    }

    .shaw-grid tbody tr:nth-child(even):not(.row-all-shipped):not(.row-context-selected) td,
    .shaw-grid .rz-datatable-data tr:nth-child(even):not(.row-all-shipped):not(.row-context-selected) td {
        background: #1D3157 !important;
    }

    .shaw-grid tbody tr:not(.row-all-shipped):not(.row-context-selected):hover td,
    .shaw-grid .rz-datatable-data tr:not(.row-all-shipped):not(.row-context-selected):hover td {
        background: #16233A !important;
        color: #FFFFFF !important;
    }

    .shaw-grid td *,
    .shaw-grid td span,
    .shaw-grid td div {
        color: inherit !important;
    }

    .shaw-grid .rz-paginator {
        background: #0B1220 !important;
        color: #EAF2FF !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
    }

    .shaw-grid .rz-paginator button {
        color: #EAF2FF !important;
    }

    .shaw-grid .rz-datatable-data td,
    .shaw-grid .rz-grid-table tbody td {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        overflow: visible !important;
    }

    .shaw-grid .rz-datatable-data tr,
    .shaw-grid .rz-grid-table tbody tr {
        overflow: visible !important;
    }

/* Order-only grid states */
.order-grid tbody tr.row-all-shipped td,
.order-grid .rz-grid-table tbody tr.row-all-shipped td,
.order-grid .rz-datatable-data tr.row-all-shipped td {
    background: linear-gradient(180deg, #2A1F3D, #241734) !important;
    color: #F5EDFF !important;
    border-top: 1px solid rgba(168, 85, 247, 0.32) !important;
    border-bottom: 1px solid rgba(192, 132, 252, 0.18) !important;
    border-left: 1px solid rgba(192, 132, 252, 0.18) !important;
    border-right: 1px solid rgba(192, 132, 252, 0.18) !important;
}

    .order-grid tbody tr.row-all-shipped td:first-child,
    .order-grid .rz-grid-table tbody tr.row-all-shipped td:first-child,
    .order-grid .rz-datatable-data tr.row-all-shipped td:first-child {
        box-shadow: inset 5px 0 0 #A855F7 !important;
    }

.order-grid tbody tr.row-all-shipped:hover td,
.order-grid .rz-grid-table tbody tr.row-all-shipped:hover td,
.order-grid .rz-datatable-data tr.row-all-shipped:hover td {
    background: linear-gradient(180deg, #35224D, #2C1C40) !important;
    color: #FFFFFF !important;
}

/* Order-only right-click selected row */
.order-grid tbody tr.row-context-selected:not(.row-all-shipped) td,
.order-grid tbody tr.row-context-selected:not(.row-all-shipped):hover td,
.order-grid .rz-grid-table tbody tr.row-context-selected:not(.row-all-shipped) td,
.order-grid .rz-grid-table tbody tr.row-context-selected:not(.row-all-shipped):hover td,
.order-grid .rz-datatable-data tr.row-context-selected:not(.row-all-shipped) td,
.order-grid .rz-datatable-data tr.row-context-selected:not(.row-all-shipped):hover td {
    background: linear-gradient(180deg, #5B3417, #45260F) !important;
    color: #FFF7ED !important;
    border-top: 1px solid rgba(251, 146, 60, 0.45) !important;
    border-bottom: 1px solid rgba(251, 146, 60, 0.28) !important;
}

.order-grid tbody tr.row-context-selected.row-all-shipped td,
.order-grid tbody tr.row-context-selected.row-all-shipped:hover td,
.order-grid .rz-grid-table tbody tr.row-context-selected.row-all-shipped td,
.order-grid .rz-grid-table tbody tr.row-context-selected.row-all-shipped:hover td,
.order-grid .rz-datatable-data tr.row-context-selected.row-all-shipped td,
.order-grid .rz-datatable-data tr.row-context-selected.row-all-shipped:hover td {
    background: linear-gradient(180deg, #6B3E1B, #523012) !important;
    color: #FFF7ED !important;
}

/* Reorder grid optional tweaks */
.reorder-grid table,
.reorder-grid .rz-grid-table,
.reorder-grid .rz-datatable-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.reorder-grid .rz-datatable-data tr {
    transition: transform 0.18s ease, background 0.18s ease;
}

    .reorder-grid .rz-datatable-data tr:hover {
        transform: translateY(-1px);
    }



/* =========================================
   REORDER POINTS PAGE
========================================= */

.reorder-page {
    padding: 2px;
}

.reorder-glass-card {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    background: linear-gradient(145deg, #0b1426, #101d33);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 26px;
    padding: 15px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(37, 99, 235, 0.08);
}

.reorder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

    .reorder-header h3 {
        margin: 0;
        color: #ffffff;
        font-size: 1.55rem;
        font-weight: 850;
        letter-spacing: -0.03em;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-pill {
    color: #E9D5FF;
    background: linear-gradient( 180deg, rgba(139, 92, 246, 0.34), rgba(109, 40, 217, 0.26) );
    border: 1px solid rgba(196, 181, 253, 0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 22px rgba(139, 92, 246, 0.24);
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 900;
    white-space: nowrap;
}


.clear-button {
    height: 38px;
    border-radius: 12px !important;
    font-weight: 900 !important;
}

.filter-panel {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-around;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    backdrop-filter: blur(16px);
}

.filter-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.inline-filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
}

.inline-filter-title {
    width: 86px;
    min-width: 86px;
    white-space: nowrap;
    color: #DDEAFE;
    font-weight: 850;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* Select bars */
.filter-selectbar {
    width: 100%;
}

.compact-selectbar .rz-button {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 13px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.78) !important;
    color: #DDEAFE !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
    font-weight: 850 !important;
    margin-right: 4px;
    box-shadow: none !important;
}

    .compact-selectbar .rz-state-active,
    .compact-selectbar .rz-button.rz-state-active {
        background: rgba(56, 189, 248, 0.30) !important;
        color: #FFFFFF !important;
        border: 1px solid rgba(125, 211, 252, 0.85) !important;
        box-shadow: 0 0 18px rgba(56, 189, 248, 0.22) !important;
    }

/* Reorder pills and cells */
.item-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    color: #DBEAFE;
    white-space: nowrap;
}

.item-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #38D8FF;
    box-shadow: 0 0 12px rgba(56, 216, 255, 0.95), 0 0 28px rgba(56, 216, 255, 0.45);
}

.warehouse-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #E0F2FE;
    background: rgba(14, 165, 233, 0.22);
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-radius: 999px;
    padding: 5px 13px;
    font-weight: 800;
}

.type-pill,
.count-pill,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 24px;
    min-height: 24px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
    overflow: visible;
    backdrop-filter: blur(10px);
}

.kit-pill {
    color: #DBEAFE;
    background: rgba(59, 130, 246, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.75);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.28);
}

.trim-pill {
    color: #FFEDD5;
    background: rgba(249, 115, 22, 0.30);
    border: 1px solid rgba(251, 146, 60, 0.75);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.28);
}

.reorder-pill {
    color: #FEF3C7;
    background: rgba(245, 158, 11, 0.30);
    border: 1px solid rgba(251, 191, 36, 0.75);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.22);
}

.stocklevel-pill {
    color: #D5F5B8;
    background: rgba(92, 113, 83, 0.32);
    border: 1px solid rgba(213, 245, 184, 0.65);
    box-shadow: 0 0 18px rgba(92, 113, 83, 0.22);
}

.talyngarage-pill {
    color: #EFF6FF;
    background: linear-gradient( 180deg, rgba(96, 165, 250, 0.46), rgba(59, 130, 246, 0.34) );
    border: 1px solid rgba(191, 219, 254, 0.82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 20px rgba(96, 165, 250, 0.28);
}

.garage-empty-pill {
    color: #2B3B57 !important;
    background: linear-gradient( 180deg, rgba(148, 163, 184, 0.22), rgba(100, 116, 139, 0.18) );
    border: 1px solid rgba(203, 213, 225, 0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 18px rgba(148, 163, 184, 0.10);
    backdrop-filter: blur(10px);
}


.total-pill {
    color: #0963DB;
    background: rgba(34, 197, 94, 0.30);
    border: 1px solid rgba(74, 222, 128, 0.75);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.28);
}

.danger-pill {
    color: #FEE2E2;
    background: rgba(239, 68, 68, 0.32);
    border: 1px solid rgba(248, 113, 113, 0.78);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.30);
}

.status-good {
    color: #DCFCE7;
    background: rgba(34, 197, 94, 0.25);
    border: 1px solid rgba(74, 222, 128, 0.65);
}

.status-low {
    color: #FEE2E2;
    background: rgba(239, 68, 68, 0.30);
    border: 1px solid rgba(248, 113, 113, 0.75);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.24);
}


.count-pill,
.type-pill,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 26px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
    backdrop-filter: blur(10px);
    /* NEW SHINE */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.color-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.color-swatch {
    width: 40px;
    height: 25px;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 6px 18px rgba(0,0,0,0.22);
    transition: transform 0.18s ease;
}

.reorder-grid .rz-datatable-data tr:hover .color-swatch {
    transform: scale(1.06);
}

@media (max-width: 1100px) {
    .reorder-page {
        padding: 12px;
    }

    .reorder-glass-card {
        width: 100%;
        margin: 0 auto;
    }

    .reorder-header {
        align-items: flex-start;
    }

    .header-actions {
        gap: 8px;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .inline-filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .inline-filter-title {
        width: auto;
        min-width: unset;
    }

    .reorder-header h3 {
        font-size: 1.35rem;
    }

    .shaw-grid .rz-datatable-thead th,
    .shaw-grid .rz-datatable-data td {
        padding: 8px 10px !important;
    }
}


/* =========================================
   WOO HTML GENERATOR - DIALOG THEME
========================================= */

.woo-html-dialog {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 10px 14px 18px;
    color: var(--text-primary);
}

.woo-html-toolbar {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
    align-items: center;
    color: #EAF2FF;
}

.woo-html-rows-header,
.woo-html-row-line {
    display: grid;
    grid-template-columns: 160px 90px 1fr 140px;
    gap: 0.6rem;
    align-items: center;
}

.woo-html-rows-header {
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.woo-html-row-line {
    margin-bottom: 0.45rem;
}

.woo-html-short-notes {
    margin-top: 1.5rem;
    max-width: 650px;
}

.woo-html-bottom-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.woo-html-status-message {
    font-weight: 600;
    color: #86EFAC;
}

.html-preview-wrapper {
    margin-top: 1.5rem;
    color: var(--text-primary);
}

.html-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.html-preview-rendered {
    padding: 0.85rem;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 14px;
    background: #FFFFFF;
    color: #0F172A;
    min-height: 160px;
    overflow: auto;
    margin-bottom: 1rem;
}

.html-preview-editor-block {
    margin-top: 0.5rem;
}

.html-preview-editor {
    width: 100%;
    min-height: 320px;
    resize: vertical;
    font-family: Consolas, "Cascadia Code", "Courier New", monospace;
    font-size: 0.92rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: #0B1220;
    color: #EAF2FF;
    box-sizing: border-box;
    white-space: pre;
    overflow-wrap: break-word;
}

/* Radzen dialog shell */
.rz-dialog {
    background: linear-gradient(135deg, #0F172A, #111C31) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 22px !important;
    color: var(--text-primary) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55) !important;
}

.rz-dialog-titlebar {
    background: #0B1220 !important;
    color: #FFFFFF !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
}

.rz-dialog-content {
    background: transparent !important;
    color: var(--text-primary) !important;
}

@media (min-width: 1200px) {
    .html-preview-editor {
        min-height: 620px;
    }
}

/* Force Woo HTML dialog rows to stay in columns */
.woo-html-dialog .woo-html-rows-header,
.woo-html-dialog .woo-html-row-line {
    display: grid !important;
    grid-template-columns: 200px 112px minmax(360px, 1fr) 175px !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
}

    .woo-html-dialog .woo-html-row-line > * {
        width: 100% !important;
        min-width: 0 !important;
    }

/* Keep dialog from stacking controls too early */
.woo-html-dialog {
    min-width: 900px;
}

    /* Make the notes box match the page layout */
    .woo-html-dialog .woo-html-short-notes {
        max-width: 760px !important;
    }

    /* Dialog-specific text boxes */
    .woo-html-dialog .rz-textbox,
    .woo-html-dialog textarea {
        width: 100% !important;
    }



/* GLOBAL RADZEN DARK DIALOG FORM FIXES */

.rz-dialog,
.rz-dialog-content {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

.rz-dialog-titlebar {
    background: #020817 !important;
    color: #f8fafc !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
}

.rz-dialog-title {
    color: #f8fafc !important;
}

/* Textbox / numeric / textarea */
.rz-dialog .rz-textbox,
.rz-dialog .rz-inputtext,
.rz-dialog .rz-spinner,
.rz-dialog .rz-numeric,
.rz-dialog .rz-textarea {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(147, 197, 253, 0.65) !important;
    border-radius: 12px !important;
}

/* Placeholder */
.rz-dialog input::placeholder,
.rz-dialog textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Dropdown */
.rz-dialog .rz-dropdown,
.rz-dialog .rz-dropdown-label,
.rz-dialog .rz-dropdown-trigger {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(147, 197, 253, 0.65) !important;
}

.rz-dialog .rz-dropdown {
    border-radius: 12px !important;
}

/* Form field label */
.rz-dialog .rz-form-field-label,
.rz-dialog .rz-form-field-content,
.rz-dialog .rz-floating-label {
    color: #cbd5e1 !important;
}

/* Dropdown popup */
.rz-dropdown-panel,
.rz-multiselect-panel {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

.rz-dropdown-item,
.rz-multiselect-item {
    color: #e2e8f0 !important;
}

    .rz-dropdown-item:hover,
    .rz-multiselect-item:hover,
    .rz-state-highlight {
        background: rgba(56, 189, 248, 0.25) !important;
        color: #ffffff !important;
    }

/* Numeric buttons */
.rz-dialog .rz-spinner-button {
    background: #334155 !important;
    color: #e2e8f0 !important;
    border-color: rgba(147, 197, 253, 0.35) !important;
}


/* Fix Radzen FormField labels inside dark dialogs */
.rz-dialog .rz-form-field-label {
    background: #0f172a !important;
    color: #cbd5e1 !important;
    padding: 0 6px !important;
    border-radius: 6px !important;
}

/* Remove white glow/bleed around form fields */
.rz-dialog .rz-form-field,
.rz-dialog .rz-form-field-content {
    background: transparent !important;
    border-color: rgba(147, 197, 253, 0.45) !important;
    box-shadow: none !important;
}

/* Inner input area */
.rz-dialog .rz-textbox,
.rz-dialog .rz-inputtext,
.rz-dialog .rz-dropdown,
.rz-dialog .rz-spinner,
.rz-dialog .rz-numeric,
.rz-dialog .rz-textarea {
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid rgba(147, 197, 253, 0.45) !important;
    box-shadow: none !important;
    outline: none !important;
}

    /* Focus state */
    .rz-dialog .rz-state-focused,
    .rz-dialog .rz-textbox:focus,
    .rz-dialog .rz-inputtext:focus,
    .rz-dialog .rz-dropdown:focus,
    .rz-dialog .rz-spinner:focus-within {
        border-color: rgba(56, 189, 248, 0.85) !important;
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35) !important;
    }

/* Dropdown arrow area */
.rz-dialog .rz-dropdown-trigger {
    background: transparent !important;
    border-left: none !important;
}

/* REMOVE OUTER FORM FIELD BOX */
.rz-dialog .rz-form-field {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* REMOVE INNER WRAPPER */
.rz-dialog .rz-form-field-content {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* REMOVE OVAL INNER CONTAINER */
.rz-dialog .rz-dropdown {
    background: #1e293b !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

    /* REMOVE EXTRA INNER WRAP */
    .rz-dialog .rz-dropdown .rz-dropdown-label {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

/* TEXTBOX / NUMERIC CLEANUP */
.rz-dialog .rz-textbox,
.rz-dialog .rz-inputtext,
.rz-dialog .rz-numeric-input {
    background: #1e293b !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* REMOVE SPINNER WRAPPER */
.rz-dialog .rz-spinner {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* REMOVE NUMERIC BUTTONS */
.rz-dialog .rz-spinner-button {
    display: none !important;
}

/* DROPDOWN TRIGGER */
.rz-dialog .rz-dropdown-trigger {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* LABELS */
.rz-dialog .rz-form-field-label {
    background: #0f172a !important;
    color: #cbd5e1 !important;
    padding: 0 6px !important;
    border-radius: 6px !important;
    z-index: 2;
}


.triage-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    color: #DBEAFE;
    background: rgba(59, 130, 246, 0.28);
    border: 1px solid rgba(96, 165, 250, 0.65);
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.22);
    font-weight: 900;
    white-space: nowrap;
}

.triage-label {
    color: #DBEAFE;
    font-weight: 900;
    font-size: 0.95rem;
}

/* Radzen checkbox box */
.triage-checkbox .rz-chkbox-box {
    width: 20px !important;
    height: 20px !important;
    border-radius: 6px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(147, 197, 253, 0.75) !important;
    box-shadow: none !important;
}

    /* Checked */
    .triage-checkbox .rz-chkbox-box.rz-state-active {
        background: rgba(56, 189, 248, 0.35) !important;
        border-color: rgba(125, 211, 252, 0.95) !important;
        box-shadow: 0 0 14px rgba(56, 189, 248, 0.35) !important;
    }

/* Check mark */
.triage-checkbox .rz-chkbox-icon {
    color: #FFFFFF !important;
    font-size: 16px !important;
}

/* =========================================
   HEADER PILL BUTTONS
========================================= */

.header-pill-button {
    height: 44px !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.02em;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

    .header-pill-button:hover {
        transform: translateY(-1px);
    }

/* ADD BUTTON */
.add-pill {
    color: #DCFCE7 !important;
    background: rgba(34, 197, 94, 0.24) !important;
    border: 1px solid rgba(74, 222, 128, 0.68) !important;
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.20) !important;
}

    .add-pill:hover {
        background: rgba(34, 197, 94, 0.34) !important;
        border-color: rgba(134, 239, 172, 0.88) !important;
        box-shadow: 0 0 28px rgba(34, 197, 94, 0.32) !important;
    }


    /* REFRESH BUTTON */
    .refresh-pill {
        color: #FFEDD5 !important;
        background: linear-gradient( 180deg, rgba(249, 115, 22, 0.34), rgba(194, 65, 12, 0.26) ) !important;
        border: 1px solid rgba(251, 146, 60, 0.72) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 22px rgba(249, 115, 22, 0.24) !important;
    }

    .refresh-pill:hover {
        background: linear-gradient( 180deg, rgba(251, 146, 60, 0.42), rgba(234, 88, 12, 0.32) ) !important;
        border-color: rgba(253, 186, 116, 0.92) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 30px rgba(249, 115, 22, 0.34) !important;
    }

/* Spin ONLY the icon */
.refresh-spinning .rz-button-icon-left {
    animation: refresh-spin 1s linear infinite;
}

/* Smooth spin */
@keyframes refresh-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



/* CLEAR BUTTON */
.clear-pill {
    color: #E2E8F0 !important;
    background: rgba(148, 163, 184, 0.18) !important;
    border: 1px solid rgba(203, 213, 225, 0.42) !important;
    box-shadow: 0 0 18px rgba(148, 163, 184, 0.10) !important;
}

    .clear-pill:hover {
        background: rgba(148, 163, 184, 0.28) !important;
        border-color: rgba(226, 232, 240, 0.62) !important;
    }

/* ICONS */
.header-pill-button .rz-button-icon-left {
    margin-right: 8px !important;
    font-size: 1.1rem !important;
}


/* =========================================
   INVENTORY SCAN / SHIPPING DIALOG
   Full replacement CSS
========================================= */

.inventory-dialog {
    width: 100%;
    max-width: 1120px;
    min-width: 900px;
    margin: 0 auto;
    padding: 12px 16px 18px;
    color: var(--text-primary);
}

/* =========================
   HEADER
========================= */

.inventory-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

    .inventory-dialog-header h3 {
        margin: 0;
        color: #F8FAFC;
        font-size: 1.65rem;
        font-weight: 900;
        letter-spacing: -0.02em;
    }

    .inventory-dialog-header p {
        margin: 6px 0 0;
        color: #94A3B8;
        font-size: 0.95rem;
        font-weight: 600;
    }

.inventory-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    color: #DCFCE7;
    background: rgba(34, 197, 94, 0.22);
    border: 1px solid rgba(74, 222, 128, 0.65);
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.20);
    font-weight: 900;
    white-space: nowrap;
}

    .inventory-status-pill .rz-icon {
        color: #86EFAC;
        font-size: 1.2rem;
    }

/* =========================
   QR CARD
========================= */

.inventory-qr-card {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.70));
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 35px rgba(0,0,0,0.28);
}

    .inventory-qr-card .rz-textbox,
    .inventory-qr-card .rz-inputtext {
        min-height: 48px !important;
        font-size: 1.08rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.03em;
    }

/* =========================
   EMPTY STATE
========================= */

.inventory-empty-state {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px dashed rgba(148, 163, 184, 0.38);
    color: #CBD5E1;
}

    .inventory-empty-state .rz-icon {
        font-size: 2.4rem;
        color: #38BDF8;
        filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
    }

    .inventory-empty-state strong {
        display: block;
        color: #F8FAFC;
        font-size: 1.05rem;
        font-weight: 900;
        margin-bottom: 4px;
    }

    .inventory-empty-state span {
        display: block;
        color: #94A3B8;
        font-size: 0.92rem;
        font-weight: 600;
    }

/* =========================
   SECTION TITLES
========================= */

.inventory-section-title {
    margin: 18px 0 10px;
    color: #DDEAFE;
    font-size: 0.92rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================
   READ ONLY ITEM CARDS
========================= */

.inventory-readonly-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(145px, 1fr));
    gap: 14px;
}

.inventory-info-card {
    min-height: 84px;
    padding: 15px 16px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.18), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 12px 26px rgba(0,0,0,0.20);
}

    .inventory-info-card span {
        display: block;
        color: #93C5FD;
        font-size: 0.78rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 8px;
    }

    .inventory-info-card strong {
        display: block;
        color: #F8FAFC;
        font-size: 1.18rem;
        font-weight: 900;
        line-height: 1.2;
    }

/* =========================
   FORM GRIDS
========================= */

.inventory-form-grid {
    display: grid;
    gap: 14px;
    width: 100%;
}

    .inventory-form-grid.row-3 {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
    }

    .inventory-form-grid.row-4 {
        grid-template-columns: repeat(4, minmax(165px, 1fr));
    }

.inventory-notes-row {
    width: 100%;
}

.inventory-form-field {
    width: 100%;
}

/* =========================
   RADZEN FORM CONTROL SIZING
========================= */

.inventory-dialog .rz-form-field,
.inventory-dialog .rz-form-field-content,
.inventory-dialog .rz-textbox,
.inventory-dialog .rz-inputtext,
.inventory-dialog .rz-dropdown,
.inventory-dialog .rz-spinner,
.inventory-dialog .rz-numeric,
.inventory-dialog .rz-numeric-input,
.inventory-dialog .rz-textarea,
.inventory-dialog .rz-datepicker,
.inventory-dialog .rz-calendar {
    width: 100% !important;
}

/* =========================
   RADZEN FORM FIELD CLEANUP
========================= */

.inventory-dialog .rz-form-field {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.inventory-dialog .rz-form-field-content {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.inventory-dialog .rz-form-field-label {
    background: #0f172a !important;
    color: #CBD5E1 !important;
    padding: 0 6px !important;
    border-radius: 6px !important;
    font-weight: 800 !important;
    z-index: 2;
}

/* =========================
   TEXTBOX / NUMERIC / TEXTAREA
========================= */

.inventory-dialog .rz-textbox,
.inventory-dialog .rz-inputtext,
.inventory-dialog .rz-numeric-input,
.inventory-dialog textarea,
.inventory-dialog .rz-textarea {
    background: #1e293b !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    outline: none !important;
}

.inventory-dialog .rz-textbox,
.inventory-dialog .rz-inputtext,
.inventory-dialog .rz-numeric-input {
    min-height: 42px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-weight: 700 !important;
}

.inventory-dialog textarea,
.inventory-dialog .rz-textarea {
    min-height: 130px !important;
    resize: vertical;
    padding: 12px !important;
    font-weight: 700 !important;
}

    .inventory-dialog input::placeholder,
    .inventory-dialog textarea::placeholder {
        color: #94A3B8 !important;
        opacity: 1 !important;
    }

/* =========================
   NUMERIC CLEANUP
========================= */

.inventory-dialog .rz-spinner {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.inventory-dialog .rz-spinner-button {
    display: none !important;
}

/* =========================
   DROPDOWN
========================= */

.inventory-dialog .rz-dropdown {
    min-height: 42px !important;
    background: #1e293b !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.inventory-dialog .rz-dropdown-label {
    background: transparent !important;
    color: #F8FAFC !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    padding-left: 12px !important;
}

.inventory-dialog .rz-dropdown-trigger {
    background: transparent !important;
    color: #93C5FD !important;
    border: none !important;
    box-shadow: none !important;
}

/* =========================
   DATE PICKER
========================= */

.inventory-dialog .rz-datepicker {
    min-height: 42px !important;
    background: #1e293b !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    overflow: hidden;
}

    .inventory-dialog .rz-datepicker .rz-inputtext {
        background: transparent !important;
        border: none !important;
        color: #F8FAFC !important;
        font-weight: 700 !important;
        min-height: 42px !important;
        box-shadow: none !important;
    }

    .inventory-dialog .rz-datepicker-trigger,
    .inventory-dialog .rz-datepicker .rz-button {
        background: transparent !important;
        color: #93C5FD !important;
        border: none !important;
        box-shadow: none !important;
    }

        .inventory-dialog .rz-datepicker-trigger:hover,
        .inventory-dialog .rz-datepicker .rz-button:hover {
            color: #FFFFFF !important;
            background: rgba(56, 189, 248, 0.14) !important;
        }

    /* =========================
   FOCUS STATES
========================= */

    .inventory-dialog .rz-textbox:focus,
    .inventory-dialog .rz-inputtext:focus,
    .inventory-dialog .rz-dropdown.rz-state-focus,
    .inventory-dialog .rz-datepicker:focus-within,
    .inventory-dialog .rz-spinner:focus-within,
    .inventory-dialog .rz-textarea:focus,
    .inventory-dialog textarea:focus {
        border-color: rgba(56, 189, 248, 0.90) !important;
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 0 22px rgba(56, 189, 248, 0.18) !important;
    }

/* =========================
   VALIDATION
========================= */

.inventory-dialog .rz-message {
    color: #FCA5A5 !important;
    font-weight: 800;
    margin-top: 6px;
}

.inventory-dialog .validation-message {
    color: #FCA5A5 !important;
    font-weight: 800;
}

/* =========================
   ACTION BUTTONS
========================= */

.inventory-dialog-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(56, 189, 248, 0.16);
}

    /* Uses your existing button style names, but keeps this dialog safe */
    .inventory-dialog-actions .rz-button {
        min-height: 44px !important;
        border-radius: 999px !important;
        font-weight: 900 !important;
    }

/* =========================
   RADZEN DATE PICKER POPUP / CALENDAR
   This is global because Radzen popups are rendered outside the dialog.
========================= */

.rz-datepicker-popup,
.rz-calendar-popup,
.rz-popup {
    background: #0F172A !important;
    color: #E2E8F0 !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55) !important;
}

.rz-calendar {
    background: #0F172A !important;
    color: #E2E8F0 !important;
    border-radius: 16px !important;
}

    .rz-calendar .rz-calendar-title,
    .rz-calendar .rz-calendar-header,
    .rz-calendar .rz-calendar-view,
    .rz-calendar .rz-calendar-footer {
        background: #0F172A !important;
        color: #F8FAFC !important;
    }

    .rz-calendar th,
    .rz-calendar td,
    .rz-calendar .rz-calendar-cell {
        color: #E2E8F0 !important;
    }

        .rz-calendar .rz-calendar-cell:hover {
            background: rgba(56, 189, 248, 0.18) !important;
            color: #FFFFFF !important;
        }

    .rz-calendar .rz-state-active,
    .rz-calendar .rz-state-highlight {
        background: rgba(56, 189, 248, 0.32) !important;
        color: #FFFFFF !important;
        border-radius: 10px !important;
    }

    .rz-calendar .rz-button {
        color: #DDEAFE !important;
    }

        .rz-calendar .rz-button:hover {
            background: rgba(56, 189, 248, 0.16) !important;
            color: #FFFFFF !important;
        }

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .inventory-dialog {
        min-width: unset;
        max-width: 100%;
    }

    .inventory-form-grid.row-4 {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 950px) {
    .inventory-dialog {
        min-width: unset;
        max-width: 100%;
        padding: 8px;
    }

    .inventory-dialog-header {
        flex-direction: column;
    }

    .inventory-status-pill {
        width: fit-content;
    }

    .inventory-readonly-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .inventory-form-grid.row-3,
    .inventory-form-grid.row-4 {
        grid-template-columns: 1fr;
    }

    .inventory-dialog-actions {
        justify-content: stretch;
        flex-direction: column-reverse;
    }

        .inventory-dialog-actions .rz-button {
            width: 100%;
        }
}

@media (max-width: 520px) {
    .inventory-readonly-grid {
        grid-template-columns: 1fr;
    }

    .inventory-empty-state {
        align-items: flex-start;
    }

    .inventory-dialog-header h3 {
        font-size: 1.35rem;
    }
}