
/* =====================================
CONTENEDOR PEDIDOS
===================================== */

#contenedorPedidos{

    width:100%;

    max-width:100%;

    margin:0 auto;

    padding:10px;

    box-sizing:border-box;

}

.order-card{

    width:100%;

    max-width:320px;

    margin-bottom:16px;

    background:#fff;

    border-radius:8px;

    box-shadow:0 3px 10px rgba(0,0,0,.15);

    overflow:hidden;

}


/* =====================================
MOVIL
===================================== */

@media (max-width:768px){

    #contenedorPedidos{
        padding:8px;
    }

    .order-card{
        width:100%;
    }

}

/* =====================================
CARD PEDIDO
===================================== */
/* 
#contenedorPedidos .order-card {

    display: inline-block;

    width: 100%;

    margin: 0 0 16px;

    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;

    background: #ffffff;

    border-radius: 8px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

    overflow: hidden;

    animation: fadeIn .35s ease;

} */


/* =====================================
HEADER CARD
===================================== */

.order-header {

    background: #e6f2ea;

    padding: 10px 12px;

    display: flex;

    flex-direction: column;

    gap: 4px;

    border-bottom: 1px solid #dcdcdc;

}

.order-title {

    font-size: 16px;

    font-weight: 700;

    color: #155724;

    display: flex;

    align-items: center;

    gap: 6px;

}

.order-info {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 13px;

    color: #444;

}


/* =====================================
CRONOMETRO
===================================== */

.timer {

    background: #28a745;

    color: white;

    padding: 3px 8px;

    border-radius: 12px;

    font-size: 12px;

    font-weight: 600;

}

.timer-rojo {

    background: #dc3545;

}


/* =====================================
BODY CARD
===================================== */

.order-body {

    padding: 8px 10px;

    background: #f9f9f9;

}


/* =====================================
ITEM PEDIDO
===================================== */

.order-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 6px 4px;

    border-bottom: 1px solid #e5e5e5;

    font-size: 14px;

}

.order-item:last-child {

    border-bottom: none;

}


/* =====================================
CHECKBOX
===================================== */

.form-check-input {

    cursor: pointer;

    transform: scale(1.1);

}


/* =====================================
BOTON
===================================== */

.marcar-todos-btn {

    margin-top: 10px;

    padding: 6px 10px;

    width: 100%;

    background: linear-gradient(135deg, #28a745, #20c997);

    color: white;

    border: none;

    border-radius: 5px;

    font-weight: 600;

    cursor: pointer;

}


/* =====================================
ANIMACION
===================================== */

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

/* =========================
PARPADEO PEDIDO NUEVO
========================= */

/* =====================================
PEDIDO NUEVO (PARPADEO + MOVIMIENTO)
===================================== */

/* =====================================
PEDIDO NUEVO (ANIMACION PROFESIONAL)
===================================== */

.pedido-nuevo {

    border: 3px solid #ffc107;

    box-shadow: 0 0 15px rgba(255, 193, 7, 0.9);

    animation: pedidoGlow 1s ease-in-out infinite,
        pedidoShake 0.5s linear infinite;

}


/* efecto glow */

@keyframes pedidoGlow {

    0% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
        background: #fff;
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 1);
        background: #fff8e1;
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
        background: #fff;
    }

}


/* vibración lateral */

@keyframes pedidoShake {

    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }

}

