:root {
    --mud-palette-primary: #38BBEB !important;
    --mud-palette-action-disabled: rgba(0, 0, 0, 0.4) !important;
    --mud-palette-action-disabled-background: rgba(0,0,0,0.11764705882352941) !important;
    --primary-color: #0c293d;
    --secondary-color: #38BBEB;
    --nav-text-color: rgba(255, 255, 255, 0.9);
    --nav-text-hover: white;
    --nav-bg-hover: rgba(255, 255, 255, 0.1);
    --mud-appbar-height: 70px;
    --text-primary: #333333;
    --text-secondary: #666666;
    --bg-light: #f8fafc;
    --bg-dark: #081d2c;
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Remove appbar height padding for all pages in the NotAuthorized layout (no appbar present) */
.mud-main-content.no-appbar {
    padding-top: 0 !important;
}

.mud-layout {
    --mud-appbar-height: 70px;
}

@media (max-width: 599px) {
    .mud-main-content {
        padding-top: var(--mud-appbar-height) !important;
    }

    .mud-appbar .mud-toolbar-appbar {
        height: var(--mud-appbar-height) !important;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

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

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ===== GLOBAL STYLES ===== */

/* Page background styling */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--primary-color);
    /*background: linear-gradient(135deg, #0c293d 0%, #1a4f6b 100%);*/
}

    .page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="4"/></g></svg>');
        pointer-events: none;
        z-index: 0;
    }

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

.sidebar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== COMMON PAGE STYLING ===== */

/* General page container styling */
.page-container {
    padding: 12px;
    background: linear-gradient(135deg, #e1e8ed 0%, #d4dde4 100%);
    min-height: calc(100vh - var(--mud-appbar-height));
    position: relative;
}

/* Internal support pages use a denser layout so mobile width is not wasted. */
.internal-page-container {
    padding: 10px 12px 16px 12px;
    min-height: calc(100vh - var(--mud-appbar-height));
    background: #fff;
}

.internal-page-caption {
    margin: 0 2px;
}

.internal-dashboard-card,
.internal-search-panel,
.internal-master-card {
    border-radius: 6px;
}

.internal-dashboard-card {
    padding: 14px 16px;
}

.internal-search-panel {
    padding: 10px;
}

.internal-search-row {
    min-width: 0;
}

.internal-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.internal-master-card {
    padding: 0;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    overflow: hidden;
}

.internal-card-title-wrap {
    flex: 1;
    min-width: 0;
}

.internal-card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.internal-card-subtitle {
    display: block;
    line-height: 1.35;
}

.internal-card-primary-chip {
    flex-shrink: 0;
}

.internal-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.internal-card-status-row {
    margin-top: 12px;
}

.internal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
}

.internal-master-detail-grid {
    margin-top: 14px;
    gap: 12px 16px;
}

.internal-detail-cell {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.internal-detail-cell span {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
}

.internal-detail-cell strong {
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.35;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.internal-card-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.internal-card-flags:empty {
    display: none;
}

.internal-card-actions {
    border-top: 1px solid var(--mud-palette-lines-default);
    padding-top: 8px !important;
}

.internal-card-actions .mud-button {
    min-width: 0;
}

.internal-desktop-table .mud-table-cell {
    vertical-align: middle;
}

@media (max-width: 600px) {
    .internal-page-container {
        padding: 6px 8px 12px 8px;
    }

    .internal-page-container .mud-grid {
        margin: -4px;
    }

    .internal-page-container .mud-grid > .mud-grid-item {
        padding: 4px !important;
    }

    .internal-dashboard-card {
        padding: 12px;
    }

    .internal-search-panel {
        padding: 8px;
    }

    .internal-search-row .mud-input-control {
        min-width: 0;
    }
}

    .page-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="4"/></g></svg>');
        pointer-events: none;
    }

/* Common page header styling */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    background: #fff;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.page-title {
    margin: 0;
    color: #666;
    font-weight: 600;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* ===== BUTTON STYLING ===== */

/* Common button styling */
.mud-button-filled-primary {
    background: linear-gradient(135deg, rgba(12, 41, 61, 0.95) 0%, rgba(26, 79, 107, 0.95) 100%) !important;
    ;
    box-shadow: 0 4px 15px rgba(12, 41, 61, 0.3) !important;
    transition: all 0.3s ease !important;
}

    .mud-button-filled-primary:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(12, 41, 61, 0.4) !important;
        background: linear-gradient(135deg, #081e2b 0%, #061823 100%) !important;
    }

.mud-button-filled-primary:disabled {
    background: rgba(12, 41, 61, 0.35) !important;
    box-shadow: none !important;
    transform: none !important;
}

.mud-button-filled-success {
    background: #ef571b !important;
    box-shadow: 0 4px 15px rgba(239, 87, 27, 0.3) !important;
    transition: all 0.3s ease !important;
}

    .mud-button-filled-success:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(239, 87, 27, 0.4) !important;
        background: #d14617 !important;
    }

.mud-button-filled-success:disabled {
    background: rgba(239, 87, 27, 0.35) !important;
    box-shadow: none !important;
    transform: none !important;
}

.refresh-button {
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(239, 87, 27, 0.3);
    border: none;
    transition: all 0.3s ease;
}

    .refresh-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(239, 87, 27, 0.4);
    }

/* ===== LINK STYLING ===== */

/* Common link styling */
a {
    color: #38BBEB;
    text-decoration: none;
    transition: all 0.3s ease;
}

    a:hover {
        color: #2a8bb8;
        text-decoration: underline;
    }

    a:focus {
        outline: 2px solid rgba(56, 187, 235, 0.3);
        outline-offset: 2px;
        border-radius: 2px;
    }

/* ===== CARD STYLING ===== */

/* Common card styling */
.mud-paper {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    /*border: 1px solid rgba(255,255,255,0.8);*/
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .mud-paper:hover {
        box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }

/* ===== CHIP STYLING ===== */

/* Enhanced status colors */
.mud-chip-color-info {
    background: linear-gradient(45deg, #2c5f7a, #4a90a4) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(44, 95, 122, 0.25);
}

    .mud-chip-color-info.mud-chip-selected {
        background: linear-gradient(45deg, #1A3949, #254852) !important;
        color: #999 !important;
    }


.mud-chip-color-warning {
    background: linear-gradient(45deg, #ff8a65, #ff7043) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 138, 101, 0.25);
}

.mud-chip-color-primary {
    background: linear-gradient(45deg, #4a90a4, #2c5f7a) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.25);
}

.mud-chip-color-success {
    background: linear-gradient(45deg, #66bb6a, #4caf50) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.25);
}

.mud-chip-color-error {
    background: linear-gradient(45deg, #ef5350, #e53935) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(239, 83, 80, 0.25);
}

/* Status chip styling */
.status-chip {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== TABLE STYLING ===== */

/* Table container styling */
.table-container {
    background: linear-gradient(145deg, var(--mud-palette-background-grey), var(--mud-palette-surface));
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin-top: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(var(--mud-palette-primary-rgb), 0.12);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

    .table-container:hover {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        border-color: rgba(var(--mud-palette-primary-rgb), 0.2);
    }

/* Enhanced table styling */
.enhanced-table {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .enhanced-table .mud-table-container {
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .enhanced-table .mud-table-head {
    }

        .enhanced-table .mud-table-head .mud-table-cell {
            color: #1a365d;
            font-weight: 600;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: none;
            padding: 16px 12px;
        }

    .enhanced-table .mud-table-body .mud-table-row {
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

        .enhanced-table .mud-table-body .mud-table-row:hover {
            background: linear-gradient(135deg, rgba(12, 41, 61, 0.05), rgba(26, 79, 107, 0.05));
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

    .enhanced-table .mud-table-body .mud-table-cell {
        padding: 12px;
        font-size: 0.9rem;
        color: #2c3e50;
        vertical-align: middle;
    }

/* Search field styling */
.search-field {
    max-width: 300px;
    margin-left: auto;
}

    .search-field .mud-input-control {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 25px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

        .search-field .mud-input-control:hover,
        .search-field .mud-input-control:focus-within {
            background: white;
            box-shadow: 0 4px 15px rgba(12, 41, 61, 0.2);
            border-color: #0c293d;
        }

    .search-field .mud-input {
        padding: 8px 16px;
    }

/* Table actions styling */
.table-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.action-button {
    transition: all 0.3s ease;
    border-radius: 8px;
}

    .action-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

/* Table pager styling */
.enhanced-table .mud-table-pagination {
    background: linear-gradient(135deg, rgba(12, 41, 61, 0.05), rgba(26, 79, 107, 0.05));
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px;
}

    .enhanced-table .mud-table-pagination .mud-button {
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .enhanced-table .mud-table-pagination .mud-button:hover {
            background: #0c293d;
            color: white;
            transform: translateY(-1px);
        }

/* ===== EMPTY STATE STYLING ===== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    /* margin-top: 20px; */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.empty-icon {
    color: #bdc3c7;
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.7;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInTableRow {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* REMOVED: Automatic animations that cause high CPU usage when idle */
/* .mud-paper { animation: fadeInUp 0.5s ease-out; } */
/* .order-card { animation: fadeInUp 0.5s ease-out; } */
/* .enhanced-table .mud-table-body .mud-table-row { animation: fadeInTableRow 0.5s ease-out; } */

.order-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MAIN LAYOUT COMMON STYLES ===== */

/* Page background styling */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #0c293d 0%, #1a4f6b 100%);
}

    .page::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="4"/></g></svg>');
        pointer-events: none;
        z-index: 0;
    }

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

.sidebar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Top row styling */
.top-row {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row a, .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: white;
    }

        .top-row a:hover, .top-row .btn-link:hover {
            text-decoration: underline;
        }

        .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

/* MudAppBar styling */
.mud-appbar {
    background: linear-gradient(135deg, rgba(12, 41, 61, 0.95) 0%, rgba(26, 79, 107, 0.95) 100%) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    height: 70px !important;
    position: relative;
}

    .mud-appbar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="20" cy="20" r="2"/></g></svg>');
        pointer-events: none;
        z-index: 0;
    }

    .mud-appbar .mud-toolbar {
        min-height: 70px !important;
        position: relative;
        z-index: 1;
        column-gap: 4px;
    }

    .mud-appbar .mud-typography {
        color: white;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .mud-appbar .mud-icon-button {
        color: white;
        transition: all 0.3s ease;
        /*border-radius: 12px;*/
    }

        .mud-appbar .mud-icon-button:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: scale(1.05);
        }

/* App title container styling */
.app-title-container {
    display: flex;
    flex-direction: column;
    margin-left: 16px;
    position: relative;
}

.app-title {
    line-height: 1.1;
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.app-subtitle {
    line-height: 1;
    margin: 4px 0 0 0;
    opacity: 0.9;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-style: italic;
    letter-spacing: 0.3px;
}

/* Enhanced menu button styling */
/*.mud-appbar .mud-icon-button[aria-label*="menu"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 8px;
}

.mud-appbar .mud-icon-button[aria-label*="menu"]:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}*/

/* User menu styling */
.mud-menu .mud-button {
    color: white;
    transition: all 0.3s ease;
}

    .mud-menu .mud-button:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: rotate(90deg);
    }

.mud-menu .mud-popover {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.mud-menu .mud-list-item {
    transition: all 0.3s ease;
}

    .mud-menu .mud-list-item:hover {
        background: linear-gradient(45deg, rgba(12, 41, 61, 0.1), rgba(239, 87, 27, 0.1));
    }

/* Add a subtle glow effect */
.mud-appbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(239, 87, 27, 0.3) 25%, rgba(239, 87, 27, 0.6) 50%, rgba(239, 87, 27, 0.3) 75%, transparent 100%);
    /* REMOVED: Continuous shimmer animation that causes high CPU usage */
}

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

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

/* ===== DATAGRID STYLING ===== */

/* DataGrid container styling (same as table-container) */
.datagrid-container {
    background: linear-gradient(145deg, var(--mud-palette-background-grey), var(--mud-palette-surface));
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin-top: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(var(--mud-palette-primary-rgb), 0.12);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

    .datagrid-container:hover {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        border-color: rgba(var(--mud-palette-primary-rgb), 0.2);
    }

/* Enhanced DataGrid styling */
.enhanced-datagrid {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .enhanced-datagrid .mud-data-grid {
        border-radius: 12px;
        overflow: hidden;
    }

    /* DataGrid header styling */
    .enhanced-datagrid .mud-data-grid-header {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

        .enhanced-datagrid .mud-data-grid-header .mud-data-grid-header-cell {
            color: #1a365d;
            font-weight: 600;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: none;
            padding: 16px 12px;
            background: transparent;
        }

    /* DataGrid row styling */
    .enhanced-datagrid .mud-data-grid-row {
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

        .enhanced-datagrid .mud-data-grid-row:hover {
            background: linear-gradient(135deg, rgba(12, 41, 61, 0.05), rgba(26, 79, 107, 0.05));
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

    .enhanced-datagrid .mud-data-grid-cell {
        padding: 12px;
        font-size: 0.9rem;
        color: #2c3e50;
        vertical-align: middle;
        border-right: none;
    }

    /* DataGrid pagination styling */
    .enhanced-datagrid .mud-data-grid-pagination {
        background: linear-gradient(135deg, rgba(12, 41, 61, 0.05), rgba(26, 79, 107, 0.05));
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: 16px;
    }

        .enhanced-datagrid .mud-data-grid-pagination .mud-button {
            border-radius: 8px;
            transition: all 0.3s ease;
        }

            .enhanced-datagrid .mud-data-grid-pagination .mud-button:hover {
                background: #0c293d;
                color: white;
                transform: translateY(-1px);
            }

    /* DataGrid group headers */
    .enhanced-datagrid .mud-data-grid-group-header {
        background: linear-gradient(135deg, rgba(12, 41, 61, 0.1), rgba(26, 79, 107, 0.1));
        font-weight: 600;
        color: #1a365d;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* DataGrid edit mode styling */
    .enhanced-datagrid .mud-data-grid-cell.mud-data-grid-cell-edit {
        background: rgba(56, 187, 235, 0.05);
        border: 2px solid rgba(56, 187, 235, 0.3);
        border-radius: 4px;
    }

    .enhanced-datagrid .mud-data-grid-cell .mud-input-control {
        background: white;
        border-radius: 4px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

        .enhanced-datagrid .mud-data-grid-cell .mud-input-control:focus-within {
            border-color: #38BBEB;
            box-shadow: 0 0 0 2px rgba(56, 187, 235, 0.2);
        }

    /* DataGrid toolbar styling */
    .enhanced-datagrid .mud-data-grid-toolbar {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        padding: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* DataGrid filter styling */
    .enhanced-datagrid .mud-data-grid-filter {
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 8px;
        transition: all 0.3s ease;
    }

        .enhanced-datagrid .mud-data-grid-filter:hover,
        .enhanced-datagrid .mud-data-grid-filter:focus-within {
            border-color: #38BBEB;
            box-shadow: 0 2px 8px rgba(56, 187, 235, 0.2);
        }

    /* DataGrid sorting indicators */
    .enhanced-datagrid .mud-data-grid-header-cell .mud-sort-header-icon {
        color: #38BBEB;
        transition: all 0.3s ease;
    }

    .enhanced-datagrid .mud-data-grid-header-cell:hover .mud-sort-header-icon {
        transform: scale(1.1);
    }

    /* DataGrid selection styling */
    .enhanced-datagrid .mud-data-grid-row.mud-selected {
        background: linear-gradient(135deg, rgba(56, 187, 235, 0.1), rgba(56, 187, 235, 0.05));
        border-left: 4px solid #38BBEB;
    }

/* Responsive DataGrid */
@media (max-width: 768px) {
    .datagrid-container {
        padding: 12px;
        margin-top: 12px;
    }

    .enhanced-datagrid .mud-data-grid-cell {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .enhanced-datagrid .mud-data-grid-header-cell {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
}

/* ===== DIALOG STYLING ===== */

/* Enhanced Dialog container */
.enhanced-dialog .mud-dialog {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

/* Dialog header styling */
.dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    color: #1a365d;
}

.dialog-icon {
    color: #38BBEB;
    font-size: 1.5rem;
}

.dialog-title {
    font-weight: 600;
    color: #1a365d;
    margin: 0;
}

/* Dialog content styling */
.dialog-content {
    padding: 8px 0;
    min-height: 200px;
}

/* Dialog DataGrid container */
.dialog-datagrid-container {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(56, 187, 235, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 8px 0;
}

/* Enhanced Dialog DataGrid styling */
.enhanced-dialog-datagrid {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

    .enhanced-dialog-datagrid .mud-data-grid {
        border-radius: 8px;
        overflow: hidden;
    }

    /* Dialog DataGrid header styling */
    .enhanced-dialog-datagrid .mud-data-grid-header {
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    }

        .enhanced-dialog-datagrid .mud-data-grid-header .mud-data-grid-header-cell {
            color: #1a365d;
            font-weight: 600;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: none;
            padding: 12px 10px;
            background: transparent;
        }

    /* Dialog DataGrid row styling */
    .enhanced-dialog-datagrid .mud-data-grid-row {
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

        .enhanced-dialog-datagrid .mud-data-grid-row:hover {
            background: linear-gradient(135deg, rgba(56, 187, 235, 0.05), rgba(56, 187, 235, 0.02));
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

    .enhanced-dialog-datagrid .mud-data-grid-cell {
        padding: 10px;
        font-size: 0.85rem;
        color: #2c3e50;
        vertical-align: middle;
        border-right: none;
    }

/* Dialog form controls styling */
.dialog-autocomplete .mud-input-control,
.dialog-numeric-field .mud-input-control {
    background: #ffffff;
    border: 1px solid rgba(56, 187, 235, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

    .dialog-autocomplete .mud-input-control:hover,
    .dialog-numeric-field .mud-input-control:hover,
    .dialog-autocomplete .mud-input-control:focus-within,
    .dialog-numeric-field .mud-input-control:focus-within {
        border-color: #38BBEB;
        box-shadow: 0 0 0 2px rgba(56, 187, 235, 0.1);
        background: #ffffff;
    }

.dialog-autocomplete .mud-input,
.dialog-numeric-field .mud-input {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.mud-dialog.enhanced-dialog {
    --dialog-stable-field-height: 76px;
    --dialog-stable-helper-height: 1.35rem;
}

.mud-dialog.enhanced-dialog .qty-stepper-wrapper {
    margin-top: 0;
    margin-bottom: 0;
}

.mud-dialog.enhanced-dialog .mud-input-control-helper-container {
    min-height: var(--dialog-stable-helper-height);
    display: flex;
    align-items: flex-start;
}

.mud-dialog.enhanced-dialog .mud-input-helper-text {
    min-height: var(--dialog-stable-helper-height);
}

/* Dialog empty state styling */
.dialog-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    border: 2px dashed rgba(56, 187, 235, 0.2);
    margin: 16px 0;
}

    .dialog-empty-state .empty-icon {
        color: #cbd5e0;
        font-size: 48px;
        margin-bottom: 12px;
        opacity: 0.6;
    }

/* Dialog actions styling */
.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 4px 0;
}

.dialog-cancel-button {
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 8px 20px;
}

    .dialog-cancel-button:hover {
        background: rgba(100, 116, 139, 0.1);
        border-color: rgba(100, 116, 139, 0.5);
        transform: translateY(-1px);
    }

.dialog-save-button {
    background: linear-gradient(135deg, #38BBEB 0%, #2a8bb8 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(56, 187, 235, 0.3);
    transition: all 0.3s ease;
    padding: 8px 24px;
    font-weight: 600;
}

    .dialog-save-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(56, 187, 235, 0.4);
        background: linear-gradient(135deg, #2a8bb8 0%, #1e6a8a 100%);
    }

/* Dialog specific DataGrid edit mode styling */
.enhanced-dialog-datagrid .mud-data-grid-cell.mud-data-grid-cell-edit {
    background: rgba(56, 187, 235, 0.03);
    border: 1px solid rgba(56, 187, 235, 0.2);
    border-radius: 4px;
}

/* Dialog responsive design */
@media (max-width: 768px) {
    .mud-dialog.enhanced-dialog {
        --dialog-stable-field-height: 72px;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .mud-dialog.enhanced-dialog .mud-dialog-content {
        flex: 1;
        overflow-y: auto;
    }

    .enhanced-dialog-datagrid .mud-data-grid-cell {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .enhanced-dialog-datagrid .mud-data-grid-header-cell {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .dialog-actions {
        /*flex-direction: column;*/
        gap: 8px;
    }

    .dialog-cancel-button,
    .dialog-save-button {
        /*width: 100%;*/
        justify-content: center;
    }
}

/* Enhanced dialog mobile overrides - MUST be after base styles */
@media (max-width: 768px) {
    .mud-dialog.enhanced-dialog .mud-dialog-title {
        padding: 12px 10px;
    }

    .mud-dialog.enhanced-dialog .mud-dialog-content {
        padding: 10px 8px;
    }

    .mud-dialog.enhanced-dialog .mud-dialog-actions {
        padding: 10px 8px;
    }

    .dialog-content {
        padding: 4px 0;
    }

    .dialog-datagrid-container {
        padding: 8px;
        margin: 4px 0;
    }

    .mud-dialog-container .mud-overlay-dialog {
        backdrop-filter: none;
        background: rgba(0, 0, 0, 0.32);
        transition: none;
        animation: overlayFadeIn 0.2s ease-out;
    }

    /* Android-style bottom-to-top slide animation */
    .mud-dialog.enhanced-dialog {
        animation: dialogSlideUp 0.25s cubic-bezier(0.2, 0, 0, 1) !important;
        will-change: transform;
        contain: layout style paint;
    }
}

@keyframes dialogSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Compact DataGrid styling */
.compact-datagrid .edit-mode-cell {
    padding: 0px 8px !important;
}

.compact-datagrid .mud-input {
    margin: 0 !important;
    padding: 0 !important;
}

.compact-datagrid .mud-input-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ===== COMBO DIALOG SPECIFIC STYLING ===== */

/* Combo drop container styling */
.combo-drop-container {
    min-height: 200px;
    width: 100%;
}

/* IMPORTANT: Remove transform and animations that interfere with drag */
.combo-items-container {
    background: transparent;
    padding: 16px;
    border-radius: 8px;
    border: 2px dashed rgba(56, 187, 235, 0.2);
    min-height: 150px;
}

    .combo-items-container:hover {
        border-color: rgba(56, 187, 235, 0.4);
        background: rgba(56, 187, 235, 0.02);
    }

/* Drop zone styling */
.combo-drop-zone {
    min-height: 120px;
    width: 100%;
    position: relative;
    padding: 8px;
}

.drop-zone-hint {
    text-align: center;
    margin-bottom: 8px;
}

/* Combo item wrapper - SIMPLIFIED to not interfere with drag */
.combo-item-wrapper {
    width: 100%;
    position: relative;
}

/* Combo item card styling - REMOVED transforms that break drag */
.combo-item-card {
    border: 1px solid rgba(56, 187, 235, 0.1);
    position: relative;
    background: #ffffff;
    width: 100%;
    margin-bottom: 8px;
}

    /* REMOVED hover transforms that interfere with drag */
    .combo-item-card:hover {
        border-color: rgba(56, 187, 235, 0.3);
        box-shadow: 0 4px 20px rgba(56, 187, 235, 0.15);
    }

/* Drag handle styling */
.drag-handle {
    opacity: 0.6;
    cursor: grab;
    color: #94a3b8;
}

.combo-item-wrapper:hover .drag-handle {
    opacity: 1;
    color: #38BBEB !important;
}

/* Delete button styling */
.delete-button {
    border-radius: 50%;
    cursor: pointer;
}

    .delete-button:hover {
        background: rgba(244, 67, 54, 0.1);
    }

/* Add item section styling */
.add-item-section {
    display: flex;
    justify-content: center;
    padding: 16px 0;
    border-top: 1px solid rgba(56, 187, 235, 0.1);
}

.add-item-button {
    border-color: rgba(56, 187, 235, 0.3);
    color: #38BBEB;
    border-radius: 8px;
    padding: 8px 24px;
    font-weight: 500;
}

    .add-item-button:hover {
        background: rgba(56, 187, 235, 0.05);
        border-color: #38BBEB;
        box-shadow: 0 4px 15px rgba(56, 187, 235, 0.2);
    }

/* Enhanced form controls in combo dialog */
.combo-item-card .dialog-autocomplete .mud-input-control,
.combo-item-card .dialog-numeric-field .mud-input-control {
    border: 1px solid rgba(56, 187, 235, 0.15);
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.3s ease;
}

    .combo-item-card .dialog-autocomplete .mud-input-control:hover,
    .combo-item-card .dialog-numeric-field .mud-input-control:hover {
        border-color: rgba(56, 187, 235, 0.3);
        box-shadow: 0 2px 8px rgba(56, 187, 235, 0.1);
    }

    .combo-item-card .dialog-autocomplete .mud-input-control:focus-within,
    .combo-item-card .dialog-numeric-field .mud-input-control:focus-within {
        border-color: #38BBEB;
        box-shadow: 0 0 0 2px rgba(56, 187, 235, 0.15);
    }

/* Combo item list item styling - for MudListItem wrapper */
.combo-item-list-item {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

    .combo-item-list-item .mud-list-item-content {
        padding: 0 !important;
        width: 100%;
    }

/* Responsive design for combo dialog */
@media (max-width: 768px) {
    .combo-items-container {
        padding: 12px;
    }

    .combo-item-card .mud-grid .mud-grid-item {
        padding: 4px 6px;
    }

    .combo-item-card .mud-card-content {
        padding: 12px;
    }

    .drag-handle {
        font-size: 1rem;
    }
}


/* Global Loading Screen */
#global-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

    #global-loading .global-loading-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    #global-loading .global-loading-logo {
        font-size: 3rem;
        animation: spin 2s linear infinite;
    }

    #global-loading .global-loading-title {
        font-size: 2rem;
        font-weight: 700;
        margin: 0;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    #global-loading .global-loading-text {
        font-size: 1rem;
        opacity: 0.9;
        margin: 0;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.global-loading-hidden {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

@media (max-width: 480px) {
    .page-container {
        padding: 24px 12px;
    }

    .table-container {
        padding: 0px;
    }

    .enhanced-table {
        padding: 12px;
    }

    .enhanced-dialog .mud-dialog-title {
        padding: 10px 6px;
    }

    .enhanced-dialog .mud-dialog-content {
        padding: 8px 4px;
    }

    .enhanced-dialog .mud-dialog-actions {
        padding: 8px 6px;
    }

    .dialog-datagrid-container {
        padding: 4px;
        margin: 2px 0;
    }
}

/* ── Dialog Content Background ── */
.spd-dialog .mud-dialog-content {
    background-color: var(--mud-palette-background-grey);
    padding: 4px 8px !important;
}

/*Bottom Sheet dialog*/
/* ── Bottom-sheet select dialog ── */
.bottom-sheet-backdrop {
    background: rgba(0,0,0,0.35) !important;
}

.bottom-sheet-dialog.mud-dialog-container {
    align-items: flex-end !important;
    justify-content: center !important;
}

.bottom-sheet-dialog.mud-dialog {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    animation: bottomSheetSlideUp 0.25s ease-out;
    max-height: 65vh;
}

/* Taller bottom-sheet for dialogs with many fields */
.prepitem-dialog-mobile.bottom-sheet-dialog.mud-dialog,
.recipe-dialog-mobile.bottom-sheet-dialog.mud-dialog {
    max-height: 85vh;
}

@keyframes bottomSheetSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0.5;
    }

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

/* ── Drag handle ── */
.bottom-sheet-handle-bar {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0,0,0,0.2);
    margin: 8px auto 4px auto;
}

.bottom-sheet-title {
    text-align: center;
    padding-bottom: 4px;
    font-size: 1rem !important;
    font-weight: 600;
}

/* ── Title area ── */
.bottom-sheet-dialog .mud-dialog-title {
    padding: 4px 16px 0 16px;
}

/* ── Content area ── */
.bottom-sheet-dialog .mud-dialog-content {
    padding: 8px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

/* ===== Create Combo Menu Item Dialog (bottom-sheet on mobile) ===== */
.combo-create-dialog-mobile.mud-dialog {
    height: 85vh !important;
    max-height: 90vh !important;
}

.combo-create-dialog-mobile .mud-dialog-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
}

.combo-create-dialog-mobile .mud-dialog-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1;
}

/* Increase vertical spacing between form fields on mobile */
.combo-create-dialog-mobile .mud-dialog-content .mb-2 {
    margin-bottom: 16px !important;
}

.combo-create-dialog-mobile .mud-dialog-content .mb-3 {
    margin-bottom: 20px !important;
}

/* When MudGrid items stack vertically on mobile (xs=12), add gap between rows */
.combo-create-dialog-mobile .mud-dialog-content .mud-grid .mud-grid-item {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ===== Combo Item Search Dialog (fullscreen on mobile) ===== */
.combo-item-search-dialog .mud-dialog-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}


/*==== Place Holder Line Height In Dev Nagari*/
.mud-input-control > .mud-input-control-input-container > .mud-input-label-outlined.mud-input-label-inputcontrol {
    line-height: 1.5rem !important;
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    line-height: 1.5rem !important;
}