﻿.compact-popover {
    min-width: 320px !important;
    max-width: 600px !important;
    width: 100% !important;
    min-height: 320px !important;
    max-height: 600px !important; /* Increase this value as needed */
    height: auto !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.compact-card {
    width: 100% !important;
    max-width: 600px !important;
    min-height: 320px !important;
    max-height: 598px !important; /* Match popover */
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.regular-popover {
    min-width: 320px !important;
    max-width: 600px !important;
    width: 100% !important;
    min-height: 500px !important;
    max-height: 800px !important; /* Increase this value as needed */
    height: auto !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.regular-card {
    width: 100% !important;
    max-width: 600px !important;
    min-height: 500px !important;
    max-height: 800px !important; /* Match popover */
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.fullscreen-popover {
    width: 100vw !important;
    height: calc(100vh - 48px) !important;
    top: 48px !important;
    left: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: fixed !important;
    z-index: 1300;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
}

.fullscreen-card {
    width: 100vw !important;
    height: calc(100vh - 68px) !important;
    border-radius: 0 !important;
    margin: 10px !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKC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AyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

.mud-dialog-width-sm {
    width: 600px !important;
}

.crudButton {
    width: 150px !important;
    height: 40px;
    margin-left: 5px;
    margin-right: 5px;
}

.mud-table-toolbar {
    background-color: #FFFFFF !important;
}

.tableTitle {
    color: black;
    font-size: large !important;
}

body > div.mud-layout > div > div > div {
    overflow-x: visible !important;
}

.mud-stepper-content {
    display: flex;
    flex-direction: column;
    height: 80% !important; /* Adjust based on your header/footer height */
}

@media (max-width: 768px) {
    .mud-stepper-content {
        height: 50%; /* Adjust for smaller screens */
    }
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-outlined.mud-input-label-inputcontrol {
    line-height: 18px;
    color: #0030b5 !important;
}

/*.mud-table-cell {
    font-size: 16px !important;
}*/

.mud-popover.mud-popover-open {
    border: 2px solid #12b29e !important;
}

.bordered-card {
    border: 2px solid #12b29e; 
    border-radius: 4px !important; 
}

/* width */
::-webkit-scrollbar {
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #12b29e;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

body {
    width: 100%;
    height: calc(100% - 44px);
    margin: 0;
    overflow-x: hidden;
}

h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #e50000;
}

body > div.mud-layout {
    height: calc(100% - 44px);
}

.table-header{
    font-weight: bold !important;
}

.mud-table-root .mud-table-head .mud-table-cell {
    font-weight: bold !important;
}

/* Global smaller font for all MudBlazor data grids & tables */

.mud-data-grid,
.mud-data-grid .mud-data-grid-cell,
.mud-data-grid .mud-data-grid-header-cell,
.mud-table-root,
.mud-table-root td,
.mud-table-root th {
    font-size: 0.75rem; /* ~12px */
    line-height: 1.05rem;
}

    /* Tighten horizontal & vertical spacing */
    .mud-data-grid .mud-data-grid-cell,
    .mud-data-grid .mud-data-grid-header-cell,
    .mud-table-root td,
    .mud-table-root th {
        padding: 2px 6px;
    }

    /* Optional: slightly smaller toolbar typography inside grids */
    .mud-data-grid .mud-toolbar,
    .mud-data-grid .mud-toolbar .mud-typography {
        font-size: 0.8rem;
    }

    /* Optional: shrink inputs used inside toolbars (search boxes) */
    .mud-data-grid .mud-input-root,
    .mud-table-root .mud-input-root {
        --mud-input-padding-y: 2px;
        font-size: 0.75rem;
    }

/* If rows feel too tall, reduce min-height */
.mud-data-grid-row {
    min-height: 28px;
}

/* Ensure icon buttons inside dense grids visually align */
.mud-data-grid .mud-icon-button {
    padding: 2px;
    width: 28px;
    height: 28px;
}