.custom-blockui-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.custom-blockui-overlay {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    height: 100% !important;
    width: 100% !important;
    transform: translate(-50%, -50%);
    z-index: 10000 !important;
}

/* Toast más ancho */
.toast-container {
    width: 400px !important;
}

.toast {
    max-width: 400px;
    width: 100%;
}

/* Asegurar que el toast se ubique a la derecha */
.toast-top-right {
    top: 12px;
    right: 12px;
}

/* Mejorar la visibilidad del texto en los toasts */
#toast-container > div {
    opacity: 1;
    padding: 15px 15px 15px 50px;
}

/* Animación de puntos para el indicador de polling */
.dots-loading {
    display: inline-flex;
    align-items: center;
    height: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    background-color: #3E97FF;
    display: inline-block;
    opacity: 0.6;
}

.dot1 {
    animation: dot-flashing 1s infinite alternate 0s;
}

.dot2 {
    animation: dot-flashing 1s infinite alternate 0.3s;
}

.dot3 {
    animation: dot-flashing 1s infinite alternate 0.6s;
}

@keyframes dot-flashing {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación del checkmark */
.checkmark {
    display: block;
}
.checkmark__circle {
    stroke-dasharray: 380;
    stroke-dashoffset: 380;
    animation: circle-draw 0.6s ease-in-out forwards; /* Reducido de 1s a 0.8s */
}
.checkmark__check {
    stroke-dasharray: 110;
    stroke-dashoffset: 110;
    animation: check-draw 0.6s ease-in-out forwards 0.4s; /* Reducido de 1s a 0.8s y el delay de 0.5s a 0.4s */
}

@keyframes circle-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes check-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.crossmark {
    display: block;
}
.crossmark__circle {
    stroke-dasharray: 380;
    stroke-dashoffset: 380;
    animation: circle-draw 0.6s ease-in-out forwards;
}
.crossmark__cross {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: cross-draw 0.6s ease-in-out forwards 0.3s;
}

@keyframes cross-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Estilos para reducir la altura de las filas */
#index_points_of_sale_datatable tbody tr {
    height: 50px;
    /* Altura fija para las filas */
}

#index_points_of_sale_datatable td {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    vertical-align: middle;
}

/* Estilos para las imágenes de QR */
.qr-code-thumbnail {
    width: 50px;
    height: 50px;
    transition: transform 0.2s;
    cursor: pointer;
}

.qr-code-thumbnail:hover {
    transform: scale(1.1);
}

/* Icono QR cuando no hay imagen */
.qr-icon-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: start;
    /* background-color: #f8f9fa; */
}

/* Estilos para el modal QR con fondo PDF */
.qr-preview-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
    /* padding-top: 10px; */
}

/* .template-bg {
    height: 520px !important;
} */

.qr-overlay {
    position: absolute;
    left: 36%;
    top: 39.5%;
    width: 28.5%;
    height: auto;
    z-index: 10;
}

.qr-modal-name {
    position: absolute;
    top: 66.5%;
    /* left: 40%; */
}

/* Totem Shifter */
body.totem-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: #1a1f2b;
    background: #f4f5f7;
}

.totem-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 4vw 2rem;
    /* max-width: 1500px; */
    min-height: 100vh;
    box-sizing: border-box;
}

.totem-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.totem-logo {
    max-height: 120px;
}

.totem-logo img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

.totem-title {
    font-size: clamp(2.8rem, 5vw, 3.2rem);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--totem-primary-color);
    background: #fff;
    padding: 1rem 3rem;
    border-radius: 24px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.totem-separator {
    display: none;
}

.totem-main {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    flex: 1;
    min-height: 0;
}

.totem-column {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.totem-column:first-of-type {
    border-right: none;
}

.column-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #000;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    justify-items: center;
    align-items: start;
    column-gap: 1.5rem;
    row-gap: 1rem;
    width: 100%;
    flex: 0 0 auto;
}

.order-pill {
    min-width: 140px;
    padding: 0 1.75rem;
    border-radius: 18px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    text-align: center;
    background: transparent;
    border: 3px solid rgba(var(--totem-primary-rgb), 0.9);
    color: #000;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s;
}

.order-pill.ready {
    background: var(--totem-primary-color);
    color: #fff;
    border-color: var(--totem-primary-color);
}

.empty-state {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    text-align: center;
    opacity: 0.7;
    padding: 2rem 1rem;
}

@media (max-width: 720px) {
    .totem-main {
        flex-direction: column;
        gap: 2rem;
    }

    .totem-column {
        min-height: 45vh;
        padding: 1.5rem 0;
    }

    .totem-column:first-of-type,
    .totem-column:last-of-type {
        border: none;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Shifter device status */
.shifter-status-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', Arial, sans-serif;
    background: #f4f5f7;
}

.shifter-status-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem 3rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    max-width: 520px;
    text-align: center;
}

.shifter-status-card h1 {
    margin: 0 0 1rem;
    font-size: 2rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: #1a1f2b;
}

.shifter-status-card p {
    margin: 0;
    font-size: 1.2rem;
    color: #3f4254;
}

.shifter-status-card .code {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #7e8299;
}
