@font-face {
    font-family: 'Fredoka';
    src: url('../fonts/Fredoka-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900; /* Esto le dice al navegador que este archivo cubre todos los grosores */
    font-style: normal;
    font-display: swap;
}

/* HTML: <div class="loader"></div> */
.loaderContainer {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background-color: #111A20;
}

.loader {
    width: 35px;
    height: 80px;
    position: relative;
}

    .loader:after {
        content: "";
        position: absolute;
        inset: 0;
        padding: 3px 5px;
        border-top: 1px solid #d0d0d0;
        border-bottom: 4px solid #d0d0d0;
        background: linear-gradient(#612329 0 0) bottom no-repeat content-box, #e4e0d7;
        mix-blend-mode: lighten;
        animation: l1 1.5s infinite linear;
    }

    .loader:before {
        content: "";
        position: absolute;
        inset: -18px calc(50% - 2px) 8px;
        background: #eb6b3e;
        transform-origin: bottom;
        transform: rotate(8deg);
    }

@keyframes l1 {
    0% {
        background-size: 100% 100%
    }

    100% {
        background-size: 100% 5%
    }
}

.mud-table-cell-custom-group {
    font-weight: bold;
}

.mud-table-cell-custom-group-footer {
    padding-bottom: 50px;
    text-align: right;
}


.custom-table {
    --mud-table-background: #f0f0f0;
    --mud-table-header-background: #4a90e2;
    --mud-table-header-color: #ffffff;
    --mud-table-row-hover-background: #e0e0e0;
    --mud-table-row-selected-background: #d0d0d0;
}

    .custom-table th {
        background-color: var(--mud-table-header-background) !important;
        color: var(--mud-table-header-color) !important;
    }

    .custom-table tr:hover {
        background-color: var(--mud-table-row-hover-background) !important;
    }

    .custom-table tr.mud-table-row-selected {
        background-color: var(--mud-table-row-selected-background) !important;
    }

.custom-blurry-dialog {
    backdrop-filter: blur(10px);
}

.custom-select-mud, .custom-input-mud {
    background-color: #2c2c30;
    color: #ffffff;
    border: 1px solid #444448;
    border-radius: 4px;
    padding: 4px 8px;
    width: 100%;
}

    .custom-select-mud:focus, .custom-input-mud:focus {
        border-color: #594ae2;
        outline: none;
    }

/* Borde superior por estado de urgencia en tarjetas de cocina */
.kitchen-order-card--ok {
    border-top: 4px solid var(--mud-palette-success, #4caf50);
}

.kitchen-order-card--warning {
    border-top: 4px solid var(--mud-palette-warning, #ffb300);
}

.kitchen-order-card--urgent {
    border-top: 4px solid var(--mud-palette-error, #f44336);
    animation: cardPulse 2s infinite ease-in-out;
}

/* Animación sutil de alerta para órdenes retrasadas */
.animation-pulse {
    animation: cardPulse 2s infinite ease-in-out;
}

@keyframes cardPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

/* Forzar que los textos sobre botones de color de éxito/alerta se lean en blanco */
.white-text {
    color: #ffffff !important;
}

/* Reducir ligeramente fuentes secundarias en pantallas compactas */
.action-btn-text {
    font-size: 0.85rem !important;
}

/* ── Tarjetas del catálogo de reportes: todas iguales ── */
.report-card {
    display: flex;
    flex-direction: column;
    width: 100%; /* simetría de ancho: llena el MudItem */
    height: 100%; /* simetría de alto: llena el MudItem (que sí tiene altura de fila) */
}

.report-card-content {
    flex-grow: 1; /* el contenido empuja el footer para abajo */
}

/* Reserva fijo de 2 líneas para títulos de 1 o 2 líneas */
.report-card-title {
    min-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Recorta descripciones largas a 3 líneas → misma altura en todas */
.report-card-desc {
    min-height: 3.9em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

:root,
[data-theme="dark"] {
    --custom-highlight-bg: #2E5B80; /*1E4968*/
    --custom-highlight-text: #E0F2FE;
}

[data-theme="light"] {
    --custom-highlight-bg: #D1F0F0;
    --custom-highlight-text: #293D4A;
}

/* Filas resaltadas */
tr.row-highlighted,
tr.row-highlighted > td.mud-table-cell {
    background-color: var(--custom-highlight-bg) !important;
    color: var(--custom-highlight-text) !important;
}

/* Filas borradas*/
tr.row-deleted,
tr.row-deleted > td.mud-table-cell {
    opacity: 0.75;
    background-color: var(--mud-palette-error) !important;
    color: var(--custom-highlight-text) !important;
    font-weight: bold;
}
