/* =========================================================================
   CENTRAL DE EXPEDIÇÃO - POINT TELECOM PREMIUM
   Arquivo: frontend/css/expedicao.css
   ========================================================================= */

/* -------------------------------------------------------------------------
   Header Escuro Premium
   ------------------------------------------------------------------------- */
.expedition-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 28px 32px;
    border-radius: 20px;
    border-bottom: 3px solid var(--point-orange, #fd7e14);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.expedition-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(253, 126, 20, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.expedition-header .icon-squarcle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--point-orange, #fd7e14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(253, 126, 20, 0.4);
    flex-shrink: 0;
}
.expedition-header h4 {
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0;
    font-size: 1.35rem;
}
.expedition-header small {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.expedition-header .btn-refresh {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}
.expedition-header .btn-refresh:hover {
    background: var(--point-orange, #fd7e14);
    border-color: var(--point-orange, #fd7e14);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(253, 126, 20, 0.4);
    color: #fff;
}

/* -------------------------------------------------------------------------
   Tabs Premium
   ------------------------------------------------------------------------- */
.expedition-tabs {
    background: #ffffff;
    border-radius: 18px;
    padding: 8px;
    display: flex;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.expedition-tabs .nav-item {
    flex: 1;
    min-width: 200px;
}
.expedition-tabs .nav-link {
    width: 100%;
    border-radius: 12px;
    font-weight: 800;
    padding: 14px 20px;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #64748b;
    background: transparent;
    border: none;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.expedition-tabs .nav-link i {
    font-size: 1rem;
}
.expedition-tabs .nav-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.expedition-tabs .nav-link.active {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}
/* Força texto branco em TUDO dentro da aba ativa (span, i, etc) */
.expedition-tabs .nav-link.active,
.expedition-tabs .nav-link.active * {
    color: #ffffff !important;
}
.expedition-tabs .nav-link.active i {
    color: var(--point-orange, #fd7e14) !important;
}

.expedition-tabs .badge-counter {
    position: absolute;
    top: 6px;
    right: 10px;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff !important;
    border-radius: 50px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    animation: pulse-badge 2s infinite;
    z-index: 10;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
.expedition-tabs .nav-link.active .badge-counter {
    background: var(--point-orange, #fd7e14) !important;
    color: #fff !important;
}

/* -------------------------------------------------------------------------
   Container dos grids
   ------------------------------------------------------------------------- */
#reqGridContainer,
#requisicoes-pendentes-grid {
    min-height: 200px;
}

/* -------------------------------------------------------------------------
   Estado Vazio Premium
   ------------------------------------------------------------------------- */
.expedition-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.expedition-empty i {
    font-size: 3.5rem;
    opacity: 0.25;
    margin-bottom: 16px;
    color: var(--point-orange, #fd7e14);
}
.expedition-empty h5 {
    font-weight: 800;
    color: #475569;
    margin-bottom: 6px;
}
.expedition-empty p {
    font-size: 0.85rem;
    margin: 0;
}


/* =========================================================================
   CARDS DE REQUISIÇÃO (Central de Expedição)
   ========================================================================= */

/* Card base com hover premium */
.card-hover-modern {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-left-width 0.3s ease;
    background: #ffffff;
    will-change: transform;
}
.card-hover-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14) !important;
    border-left-width: 7px !important;
}

/* Badge de ID (#1234) — fonte mono */
.card-hover-modern .badge.bg-dark {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    padding: 5px 10px;
}

/* Badges de status (Aguardando, Caixa Aberta, Já na Rota) */
.card-hover-modern .badge {
    font-weight: 800;
    font-size: 0.7rem;
    padding: 6px 12px;
    letter-spacing: 0.3px;
    border-radius: 50px !important;
}

/* Botões do card */
.card-hover-modern .btn {
    border-radius: 12px !important;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}
.card-hover-modern .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Painéis internos (o que foi pedido / dentro da caixa) */
.card-hover-modern .rounded-3 {
    border-radius: 12px !important;
}

/* Div "POR / PARA" */
.card-hover-modern .bg-light.rounded-3 {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* Labels "POR" e "PARA" */
.card-hover-modern small.text-muted.fw-bold {
    letter-spacing: 0.5px;
}