/* Estilos Premium e Organizados - Tickets Approval Popup */
#block-screen *, #block-screen *::before, #block-screen *::after { box-sizing: border-box; }

#block-screen {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 1vh 1vw;
}

.tap-container {
    width: 98%; height: 98vh; max-width: 1800px;
    background: #f1f5f9; border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 25px 60px -12px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    overflow: hidden;
    animation: tap-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tap-in {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.tap-header-main {
    background: #fff; padding: 12px 20px 10px; border-bottom: 1px solid #e2e8f0; text-align: center;
}
.tap-header-main h1 {
    font-size: 1.4rem; font-weight: 900; margin: 0; letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tap-header-main p { font-size: 0.85rem; color: #64748b; margin: 4px 0 0; font-weight: 500; }

.tap-body { 
    padding: 15px; display: flex; flex-direction: column; gap: 20px; 
    overflow-y: auto; flex: 1; min-height: 0;
}
.tap-section-wrapper { display: flex; flex-direction: column; gap: 10px; }
.tap-section-header { 
    display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 10px; 
    background: #fff; border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.tap-section-header .icon-box { font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.tap-section-header h2 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; margin: 0; letter-spacing: 0.05em; }
.tap-badge-count { margin-left: auto; background: #f1f5f9; color: #64748b; padding: 2px 10px; border-radius: 12px; font-weight: 800; font-size: 0.7rem; }

.tap-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }

/* CARD PREMIUM - RESTAURADO E MELHORADO */
.tap-card {
    flex: 0 0 340px; width: 340px; background: #fff; border-radius: 10px; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); display: flex; flex-direction: column; overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tap-card:hover { border-color: #3b82f6; }

.tap-card-header { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f1f5f9; }
.tap-ticket-id { font-weight: 800; color: #94a3b8; font-size: 0.8rem; }
.tap-pri-badge { padding: 3px 12px; border-radius: 20px; font-size: 0.65rem; font-weight: 800; color: #fff; text-transform: uppercase; }

.tap-card-body { padding: 12px 15px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tap-card-title { font-weight: 800; font-size: 1rem; color: #1e293b; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0; }

.tap-card-info { display: flex; flex-direction: column; gap: 4px; }
.tap-info-row { display: flex; align-items: baseline; gap: 8px; font-size: 0.82rem; color: #475569; }
.tap-info-row span { font-size: 0.9rem; width: 18px; text-align: center; flex-shrink: 0; }
.tap-info-row strong { color: #334155; min-width: 75px; flex-shrink: 0; }
.tap-info-row .val { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1e293b; }

.tap-task-box { background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #7c3aed; padding: 10px; border-radius: 6px; font-size: 0.78rem; color: #475569; line-height: 1.4; margin-top: 5px; }
.tap-task-box .task-lbl { font-weight: 900; font-size: 0.65rem; text-transform: uppercase; display: block; margin-bottom: 3px; }

.tap-card-footer { padding: 12px; border-top: 1px solid #f1f5f9; }
.tap-btn-card { 
    display: block; width: 100%; padding: 12px; background: linear-gradient(135deg, #2563eb, #1d4ed8); 
    color: #fff !important; text-decoration: none !important; text-align: center; 
    border-radius: 8px; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; 
    letter-spacing: 0.05em; transition: 0.2s; border: none; cursor: pointer; box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2); 
}
.tap-btn-card:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3); background: linear-gradient(135deg, #1d4ed8, #1e40af); }

.tap-footer-actions { padding: 15px; background: #fff; border-top: 1px solid #e2e8f0; text-align: center; }
.tap-btn-ver-depois { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border: none; padding: 12px 60px; border-radius: 12px; font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2); }
.tap-btn-ver-depois:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3); background: linear-gradient(135deg, #1d4ed8, #1e40af); }

/* FAB SINO */
#tap-hub-fab { position: fixed; bottom: 25px; right: 25px; width: 64px; height: 64px; background: linear-gradient(135deg, #1d4ed8, #7c3aed); color: #fff; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 28px; cursor: pointer; z-index: 99998; box-shadow: 0 10px 25px rgba(29, 78, 216, 0.4); animation: tap-pulse 2.5s infinite; transition: 0.3s; }
#tap-hub-fab:hover { transform: scale(1.1) rotate(5deg); }
.tap-fab-badge { position: absolute; top: -5px; right: -5px; background: #ef4444; color: #fff; border-radius: 12px; min-width: 24px; height: 24px; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; }
@keyframes tap-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.06); box-shadow: 0 15px 35px rgba(29, 78, 216, 0.5); } 100% { transform: scale(1); } }

@media (max-width: 768px) {
    .tap-card { flex: 0 0 100%; width: 100%; }
}