/* ESTILO VISUAL GERAL */
:root {
    --primary: #ff9800;
    --dark: #121212;
    --card-bg: #1e1e1e;
    --text: #ffffff;
    --danger: #ff5252;
    --success: #4caf50;
    --info: #2196f3;
    --whatsapp: #25D366;
    --gold: #FFD700;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark);
    color: var(--text);
    margin: 0;
    padding: 20px;
    padding-bottom: 90px;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
}

/* --- TRAVAMENTO DE ROLAGEM (CORRIGIDO) --- */
body.no-scroll {
    overflow: hidden !important;
    /* position: fixed;  <-- REMOVIDO PARA EVITAR QUE A TELA PULE PARA O TOPO AO ABRIR MODAL */
    width: 100%;
    height: 100%;
}

/* --- TELA DE LOGIN E ANIMAÇÃO --- */
.music-theme-bg {
    background: radial-gradient(circle at center, #2a2a2a 0%, #000000 100%);
    overflow: hidden;
    transition: opacity 0.5s ease-out;
}
.floating-icons {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1; will-change: transform; 
}
.floating-icons span {
    position: absolute; bottom: -120px; color: rgba(255, 255, 255, 0.15);
    font-size: 40px; animation: floatUp 15s linear infinite;
    text-shadow: 0 0 10px rgba(255,215,0, 0.3); will-change: transform, opacity;
}
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-110vh) rotate(360deg) scale(1.2); opacity: 0; }
}

.floating-icons span:nth-child(1) { left: 5%; animation-duration: 12s; animation-delay: 0s; }
.floating-icons span:nth-child(2) { left: 15%; animation-duration: 15s; animation-delay: 2s; }
.floating-icons span:nth-child(3) { left: 25%; animation-duration: 13s; animation-delay: 1s; }
.floating-icons span:nth-child(4) { left: 35%; animation-duration: 16s; animation-delay: 3s; }
.floating-icons span:nth-child(5) { left: 45%; animation-duration: 14s; animation-delay: 0s; }
.floating-icons span:nth-child(6) { left: 55%; animation-duration: 17s; animation-delay: 2s; }
.floating-icons span:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 4s; }
.floating-icons span:nth-child(8) { left: 75%; animation-duration: 15s; animation-delay: 1s; }
.floating-icons span:nth-child(9) { left: 85%; animation-duration: 12s; animation-delay: 3s; }
.floating-icons span:nth-child(10) { left: 95%; animation-duration: 16s; animation-delay: 0s; }

/* Container do Login */
.login-box-content {
    position: relative; z-index: 10;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: space-between; 
    height: 85vh; 
    margin-top: 5vh;
}

.silver-gold-text {
    background: linear-gradient(to right, #C0C0C0 0%, #E5E4E2 20%, #FFD700 50%, #B8860B 80%, #C0C0C0 100%);
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6); animation: shine 5s linear infinite;
    text-align: center;
}
@keyframes shine { to { background-position: 200% center; } }

.login-title {
    margin-bottom: 5px; font-weight: 900; font-style: italic; font-size: 3.5em; letter-spacing: 2px;
}

.login-subtitle-styled { 
    font-size: 1.3em; 
    font-weight: bold;
    letter-spacing: 1px; 
    text-transform: uppercase; 
    margin-top: 10px;
}

.login-header-area {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex-grow: 1; 
}

.login-footer-area {
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    margin-bottom: 20px;
}

.login-btn {
    background: rgba(255, 255, 255, 0.08); 
    color: #aaa; 
    border: 1px solid #333; 
    padding: 8px 18px; 
    border-radius: 30px; 
    font-size: 0.8em; 
    font-weight: normal; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    transition: all 0.3s ease;
}
.login-btn:active { background: rgba(255,255,255,0.2); }

.login-btn img {
    width: 16px;
    opacity: 0.6; 
}

.login-safe-text { font-size:0.7em; color:rgba(255,255,255,0.3); }

/* OUTROS ESTILOS */
.full-screen-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--dark); z-index: 3000; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; padding: 20px; box-sizing: border-box;
    overflow-y: auto; 
}
.role-btn {
    background: var(--card-bg); border: 1px solid var(--primary); color: white;
    padding: 20px; width: 80%; margin: 10px 0; border-radius: 12px;
    font-size: 1.2em; cursor: pointer; text-transform: uppercase; font-weight: bold;
}

#app-container { display: none; }

/* --- PULL TO REFRESH INDICATOR --- */
#pull-indicator {
    position: fixed;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.2s ease-out;
}
.pull-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 152, 0, 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none; 
}
.pull-arrow {
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s;
}
.rotate-arrow { transform: rotate(180deg); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* CABEÇALHO */
.app-header { text-align: center; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 1px solid #333; position: relative; }
.header-top-bar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; }

.user-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 0.8em; color: #aaa; }
.user-row { display: flex; align-items: center; gap: 8px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--primary); }

#user-role-badge { 
    background:#222; padding: 2px 8px; border-radius:4px; font-size: 0.85em; font-weight: bold; 
    color:var(--primary); border:1px solid #444; letter-spacing: 0.5px; cursor: default; margin-top: 2px;
}
.admin-clickable:active { transform: scale(0.95); opacity: 0.8; }

.header-right-actions { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.btn-row { display: flex; gap: 8px; align-items: center; }

.btn-logout { 
    background: transparent; border: 1px solid #444; color: #aaa; 
    font-size: 0.75em; padding: 4px 10px; border-radius: 4px; cursor: pointer; 
}

.btn-assinar { 
    background: rgba(255, 215, 0, 0.15); 
    border: 1px solid #B8860B; 
    color: #FFD700; 
    font-weight: bold; 
    font-size: 0.7em; 
    padding: 4px 8px; 
    border-radius: 4px; 
    cursor: pointer; 
    display: none; 
    text-transform: uppercase;
}

.vip-badge {
    color: var(--primary); 
    font-size: 0.75em; 
    font-weight: bold;
    margin-top: 2px;
    letter-spacing: 1px;
    margin-right: 28px; 
    display: none;
    border: 1px solid var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 152, 0, 0.1);
}

.menu-btn {
    background: transparent; border: none; color: #fff; 
    font-size: 1.5em; cursor: pointer; padding: 0 5px; 
    line-height: 1; display: flex; align-items: center;
}
.menu-btn:active { opacity: 0.7; }

.dropdown-menu {
    position: absolute; top: 35px; right: 0;
    background: #222; border: 1px solid #444;
    border-radius: 8px; padding: 10px;
    display: none; flex-direction: column; gap: 8px;
    min-width: 140px; box-shadow: 0 5px 15px rgba(0,0,0,0.7);
    z-index: 2500;
}

.btn-tool {
    background: rgba(255, 255, 255, 0.05); border: none; color: #ccc;
    font-size: 0.85em; padding: 8px 12px; border-radius: 4px; cursor: pointer;
    display: flex; align-items: center; gap: 8px; text-align: left; width: 100%;
}
.btn-tool:active { background: rgba(255,255,255,0.1); color: #fff; }

.btn-admin { color: var(--primary); font-weight: bold; display: none; }

.header-title-row { 
    display: flex; justify-content: center; align-items: center; 
    margin-top: 25px; 
}
.app-header h1 { 
    color: var(--primary); margin: 0; font-size: 2.2em; 
    text-transform: uppercase; letter-spacing: 2px; 
    font-weight: 800; font-style: italic; 
    line-height: 1;
}

.header-subtitle-row {
    position: relative;
    display: flex; justify-content: center; align-items: center; 
    margin-top: 5px; color: #666; font-size: 0.85em; font-weight: 300; 
    letter-spacing: 1px; text-transform: uppercase;
    height: 30px; 
}

.header-controls-right {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; gap: 12px;
}

.control-icon {
    cursor: pointer; font-size: 1.1em; opacity: 0.7; transition: opacity 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.control-icon:active { opacity: 1; transform: scale(1.1); }

.eye-svg { width: 18px; height: 18px; stroke: currentColor; color: #888; }

/* --- SLIDER --- */
.slider-container {
    width: 100%; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; display: flex;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-bottom: 5px;
}
.slider-container::-webkit-scrollbar { display: none; }

.dashboard-slide {
    min-width: 100%; scroll-snap-align: center; display: flex;
    gap: 10px; box-sizing: border-box; padding: 2px; align-items: stretch;
}

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.dot { width: 8px; height: 8px; background: #444; border-radius: 50%; transition: background 0.3s; }
.dot.active { background: var(--primary); }

.card-resumo {
    background: var(--card-bg); 
    padding: 6px; /* Aumentei um pouquinho o padding interno também */
    border-radius: 12px; 
    flex: 1; 
    min-width: 140px; 
    text-align: center;
    border: 1px solid #333; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    
    /* --- LINHA NOVA PARA ESTICAR --- */
    min-height: 115px; /* Ajuste esse valor se quiser maior ou menor */
}

.card-resumo h3 { margin: 0 0 5px 0; font-size: 0.75em; color: #aaa; text-transform: uppercase; }
.card-resumo p { margin: 0 0 5px 0; font-size: 1.3em; font-weight: bold; color: var(--success); }

.card-resumo-left-content { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; margin-bottom: 5px; }
.select-mes-container-bottom { width: 100%; margin-top: auto; border-top: 1px solid #333; padding-top: 5px; }

#total-pendente { color: var(--primary) !important; }
.text-semana-pago { color: var(--success) !important; } 
.text-semana-pendente { color: var(--primary) !important; }

.card-resumo .sub-info { font-size: 0.7em; color: #666; margin-top: 2px; }

.resumo-detalhe { width: 100%; border-top: 1px solid #333; margin-top: 5px; padding-top: 5px; display: flex; flex-direction: column; gap: 3px; }

.detalhe-row { 
    display: flex; justify-content: space-between; align-items: center; 
    font-size: 0.7em; color: #ccc; flex-wrap: wrap; 
}
.detalhe-valor { font-weight: bold; text-align: right; }
.detalhe-futuro { color: var(--info); }
.detalhe-passado { color: var(--danger); }
.detalhe-gastos { color: #aaa; } 

.select-mes { background: transparent; color: #888; border: none; font-size: 0.8em; text-transform: uppercase; cursor: pointer; text-align: center; width: 100%;}
.select-mes:focus { outline: none; color: #fff; }

/* --- DESTAQUE DO DIA --- */
#destaque-container { margin-bottom: 20px; }
.destaque-card {
    background: linear-gradient(135deg, #1e1e1e, #252525);
    border: 1px solid var(--gold); border-radius: 12px;
    padding: 10px; text-align: center;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}
.destaque-header {
    color: var(--gold); font-size: 0.8em; font-weight: bold; 
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.destaque-content { display: flex; flex-direction: column; gap: 5px; }
.destaque-item {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    font-size: 1.1em; color: white; padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.destaque-item:last-child { border-bottom: none; }
.destaque-hora { font-weight: bold; color: var(--primary); }
.destaque-local { font-weight: 300; }
.destaque-madrugada { opacity: 0.9; }

/* LISTA E ACORDEÃO */
.lista-shows { display: flex; flex-direction: column; gap: 15px; }

details { width: 100%; margin-bottom: 10px; }

summary {
    background: var(--dark);
    color: var(--primary);
    font-weight: bold; 
    text-transform: uppercase; 
    font-size: 0.9em;
    user-select: none;
    
    padding: 20px; 
    margin: 0 -20px; 
    border-radius: 0; 
    
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #333;
    
    position: -webkit-sticky; 
    position: sticky;
    top: -10px; 
    z-index: 1000; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
}
summary::-webkit-details-marker { display: none; }

summary:after { content: '+'; font-size: 1.2em; color: #fff; }
details[open] summary:after { content: '-'; }
details[data-state="compact"] summary:after { content: '-'; }

details[open] summary { border-bottom: 1px solid var(--primary); }

/* --- NOVO: SUMMARY COMPACTO (ORDEM DO USUÁRIO) --- */
.summary-pendente {
    padding: 8px 20px !important; /* Reduz altura vertical drasticamente */
    min-height: auto !important;
    font-size: 0.85em !important; 
    background: rgba(255, 82, 82, 0.05); /* Leve toque vermelho */
    border-bottom: 1px solid var(--danger) !important;
}

.mes-group-content {
    background: rgba(255,255,255,0.02); 
    border: 1px solid #333; 
    border-top: none;
    border-bottom-left-radius: 8px; 
    border-bottom-right-radius: 8px; 
    padding: 10px;
    display: flex; flex-direction: column; gap: 10px;
    padding-top: 15px; 
}

/* --- MODO COMPACTO --- */
.compact-view .show-card { padding: 8px 12px; border-left-width: 4px; }
.compact-view .show-local,
.compact-view .show-endereco,
.compact-view .show-obs,
.compact-view .tags-container,
.compact-view .show-previsao,
.compact-view .lineup-container,
.compact-view .card-footer-row { display: none !important; }

.compact-view .show-titulo {
    font-size: 1.1em; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.compact-view .card-header { margin-bottom: 2px; align-items: center; }
.compact-view .show-data { flex-direction: row; align-items: center; gap: 10px; font-size: 1em; }
.compact-view .show-valor { font-size: 1em; }
.compact-view .show-lucro { font-size: 0.75em; }

/* EXPANDIDO NO COMPACTO */
.compact-view .show-card.expanded-card { border-left-width: 6px; padding: 15px; }
.compact-view .show-card.expanded-card .show-local,
.compact-view .show-card.expanded-card .show-endereco,
.compact-view .show-card.expanded-card .show-obs,
.compact-view .show-card.expanded-card .show-previsao,
.compact-view .show-card.expanded-card .lineup-container,
.compact-view .show-card.expanded-card .card-footer-row { display: flex !important; }

.compact-view .show-card.expanded-card .show-obs { display: inline-block !important; }

.compact-view .show-card.expanded-card .tags-container { display: flex !important; }
.compact-view .show-card.expanded-card .show-titulo {
    font-size: 1.3em; margin: 0 0 5px 0;
    white-space: normal; overflow: visible;
}
.compact-view .show-card.expanded-card .card-header { margin-bottom: 1px; align-items: flex-start; }
.compact-view .show-card.expanded-card .show-data { flex-direction: column; align-items: flex-start; gap: 3px; font-size: 1.1em; }

/* 3D SCROLL EFFECT */
.show-card {
    background: var(--card-bg); padding: 15px; border-radius: 12px;
    border-left: 6px solid gray; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    content-visibility: auto; contain-intrinsic-size: 150px; 
    transition: transform 0.05s linear, opacity 0.05s linear; 
    transform-origin: center top; 
    will-change: transform, opacity;
    z-index: 1;
    user-select: none; 
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
.show-card:active { transform: scale(0.98); }

.border-confirmado { border-left-color: var(--success) !important; }
.border-pendente { border-left-color: var(--danger) !important; } 
.border-nao-pago { border-left-color: var(--danger) !important; }
.border-futuro { border-left-color: var(--gold) !important; }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1px; }

.show-data { 
    font-size: 0.9em; color: #ccc; font-weight: normal; 
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px; 
}
.show-hora-destaque { 
    color: #ccc; font-weight: normal; font-size: 0.9em; 
    display: flex; align-items: center; gap: 4px; 
}
.show-valores-wrapper { text-align: right; }
.show-valor { font-size: 1.1em; font-weight: bold; color: #fff; display: block; }
.show-lucro { font-size: 0.85em; color: var(--success); display: block; margin-top: 2px; }
.show-sinal { font-size: 0.85em; color: var(--success); display: block; margin-top: 2px; font-weight: bold; }

.address-link { color: var(--info); cursor: pointer; text-decoration: underline; }

/* TITULO AGORA É MAIOR E DOURADO (NOVO LAYOUT) */
.show-titulo { font-size: 1.4em; font-weight: 800; margin: 0 0 8px 0; line-height: 1.2; color: var(--gold); }

.show-local { font-size: 0.95em; color: #aaa; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }
.show-endereco { font-size: 0.85em; color: #777; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; font-style: italic;}
.show-obs { font-size: 0.8em; color: #888; background: rgba(255,255,255,0.05); padding: 5px; border-radius: 4px; margin-bottom: 10px; display: inline-block;}

.show-previsao {
    font-size: 0.8em; color: #FFD700; background: rgba(255, 215, 0, 0.1); 
    padding: 3px 8px; border-radius: 4px; margin-bottom: 8px; display: inline-flex; 
    align-items: center; gap: 5px; border: 1px solid rgba(255, 215, 0, 0.3);
}

.tags-container { 
    display: flex; 
    gap: 8px; 
    margin-top: 10px; 
    align-items: center; 
    flex-wrap: wrap;
    justify-content: flex-end; /* ALINHAMENTO À DIREITA */
}
/* REDUÇÃO DE TAMANHO DAS TAGS (PEDIDO) */
.tag-btn { padding: 4px 10px; border-radius: 6px; font-size: 0.65em; font-weight: bold; text-transform: uppercase; cursor: pointer; border: none; }
.tag-pago { background: rgba(76, 175, 80, 0.2); color: #4caf50; border: 1px solid #4caf50; }
.tag-receber { background: rgba(255, 82, 82, 0.2); color: #ff5252; border: 1px solid #ff5252; }
.tag-futuro { background: rgba(255, 215, 0, 0.2); color: #FFD700; border: 1px solid #FFD700; }
.atrasado-alert { color: var(--danger); font-weight: bold; font-size: 0.75em; text-transform: uppercase; animation: piscar 1.5s infinite; border: 1px solid var(--danger); padding: 4px 8px; border-radius: 4px; }

/* --- NOVO: TAGS DE MÚSICOS (LINEUP) --- */
.lineup-container {
    display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px;
    padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.1);
}
.musician-tag {
    background: rgba(0,0,0,0.3); border: 1px solid #444;
    color: #aaa; font-size: 0.75em; padding: 4px 8px;
    border-radius: 4px; display: flex; align-items: center; gap: 5px;
}

/* --- NOVO: RODAPÉ DO CARTÃO (BOTÃO EQUIPE + STATUS) --- */
.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.1); /* Separação visual leve */
}
.footer-left {
    flex: 1;
    text-align: left;
}
.footer-right {
    flex: 1;
    text-align: right;
}


.fab {
    position: fixed; bottom: 25px; right: 25px; background-color: var(--primary); color: #000;
    width: 65px; height: 65px; border-radius: 50%; border: none; font-size: 35px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.6); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1000;
}

/* MODAL */
.modal { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9); z-index: 2000; 
    align-items: flex-start; justify-content: center; 
    padding: 20px; box-sizing: border-box; 
    overflow-y: auto; padding-top: 50px; 
}
.modal-content { 
    background: #252525; padding: 25px; border-radius: 16px; 
    width: 100%; max-width: 500px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); border: 1px solid #333; 
    text-align: left; margin-bottom: 50px; 
}

/* --- ESTILOS FLYER (ATUALIZADO) --- */
.flyer-list-container {
    max-height: 250px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}
.flyer-check-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.flyer-check-item:last-child { border-bottom: none; }
.flyer-check-item input[type="checkbox"] {
    width: 20px; height: 20px; margin: 0;
}
.file-upload-label {
    display: block; background: #333; color: white; padding: 10px;
    text-align: center; border-radius: 8px; cursor: pointer; border: 1px dashed #666;
    margin-top: 5px; margin-bottom: 15px;
}

/* NOVOS ESTILOS PARA OPÇÕES DE FLYER E RÉGUA */
.active-bg-option { 
    border: 2px solid var(--primary) !important; /* BORDA MAIS FORTE */
    color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); /* SOMBRA MAIS INTENSA */
}

.color-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid #555;
    display: inline-block; margin-right: 10px; cursor: pointer;
    transition: transform 0.2s;
}
.color-btn:active { transform: scale(1.1); border-color: #fff; }

.instrumentos-toolbar-container {
    width: 100%; overflow-x: auto; white-space: nowrap;
    padding-bottom: 10px; margin-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}
.instrumentos-scroll { display: inline-flex; gap: 8px; }
.btn-inst {
    background: #333; color: #ccc; border: 1px solid #555;
    padding: 8px 12px; border-radius: 20px; font-size: 0.8em;
    cursor: pointer; transition: all 0.2s;
}
.btn-inst:active { background: var(--primary); color: #000; border-color: var(--primary); }

#canvas-flyer { display: block; width: 100%; height: auto; }

/* --- ACTION SHEET --- */
.action-sheet-content {
    background: #252525; 
    padding: 25px; 
    border-top-left-radius: 20px; 
    border-top-right-radius: 20px;
    width: 100%; 
    max-width: 500px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.6); 
    border-top: 1px solid var(--primary);
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.btn-acao-menu {
    width: 100%; padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333; border-radius: 10px;
    color: white; font-size: 1.1em; font-weight: bold;
    cursor: pointer; text-align: left;
    display: flex; align-items: center; gap: 15px;
}
.btn-acao-menu:active { background: rgba(255,255,255,0.1); }

label { display: block; margin-top: 8px; color: #aaa; font-size: 0.9em; }
input, select, textarea { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #444; background: #181818; color: white; font-size: 16px; box-sizing: border-box; outline: none; margin-top: 5px; }
textarea { resize: vertical; min-height: 60px; font-family: inherit;}

/* LISTA DE SUGESTÕES */
.sugestoes-lista {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #2a2a2a;
    border: 1px solid var(--primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 3000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.sugestao-item {
    padding: 12px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    color: #eee;
    font-size: 0.95em;
}
.sugestao-item:hover { background: #333; }
.sugestao-sub { font-size: 0.8em; color: #999; margin-left: 5px; font-style: italic; }

.hora-container { display: flex; gap: 10px; }
.hora-item { flex: 1; }

.financeiro-box { background: rgba(0,0,0,0.2); border: 1px solid #333; border-radius: 8px; padding: 15px; margin-top: 15px; }
.financeiro-titulo { color: var(--primary); font-size: 0.9em; text-transform: uppercase; margin-bottom: 10px; border-bottom: 1px solid #444; padding-bottom: 5px; }

.resultado-liquido { margin-top: 15px; padding: 10px; background: rgba(76, 175, 80, 0.1); border: 1px solid var(--success); border-radius: 8px; color: var(--success); font-weight: bold; font-size: 1.1em; text-align: center; }

.btn-group { display: flex; gap: 10px; margin-top: 25px; }
.btn-save { flex: 2; background: var(--primary); color: #000; font-weight: bold; border: none; padding: 15px; border-radius: 8px; cursor: pointer; font-size: 16px;}
.btn-cancel { flex: 1; background: transparent; border: 1px solid #555; color: #ccc; padding: 15px; border-radius: 8px; cursor: pointer; }

.admin-user-card { background: #333; padding: 10px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #444; }
.admin-user-info { font-size: 0.9em; }
.admin-user-role { color: var(--primary); font-size: 0.8em; text-transform: uppercase; }
.btn-block { background: var(--danger); color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8em; }
.btn-unblock { background: var(--success); color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8em; }

.alert-box { border: 2px solid var(--primary); background: #2a1f10; text-align: center;}
.alert-title { color: var(--primary); margin-top: 0; text-transform: uppercase; letter-spacing: 1px;}
.alert-info { font-size: 1.2em; margin: 10px 0; color: white; text-align: left;}

.pix-container { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pix-key-box {
    background: #fff; color: #000; padding: 15px; border-radius: 8px;
    font-weight: bold; font-size: 1.1em; margin: 10px 0; word-break: break-all; width: 90%;
}
.pix-img {
    width: 200px; height: 200px; margin: 10px auto; 
    background: #fff; border-radius: 12px; padding: 10px;
    object-fit: contain;
}
.pix-instructions { color: #ccc; font-size: 0.9em; line-height: 1.5; margin-bottom: 20px; max-width: 90%; }

.btn-zap-pagamento {
    background: var(--whatsapp); color: white; border: none; padding: 15px; 
    border-radius: 30px; font-size: 1em; font-weight: bold; 
    width: 100%; margin-bottom: 10px; cursor: pointer; display: flex; 
    align-items: center; justify-content: center; gap: 10px;
}

.area-cantor { display: none; }
.area-musico { display: none; }

#div-resultado-musico {
     margin-top: 15px; padding: 10px; background: rgba(76, 175, 80, 0.1); 
     border: 1px solid var(--success); border-radius: 8px; 
     color: var(--success); font-weight: bold; font-size: 1.1em; text-align: center;
}

.modal-gps-btn {
    display: flex; align-items: center; justify-content: center; width: 100%;
    padding: 15px; margin-bottom: 10px; border-radius: 10px;
    font-size: 1.1em; font-weight: bold; cursor: pointer; border: none;
    color: white;
}

/* --- NOVOS ESTILOS DO DASHBOARD (MANAGER) --- */
.relatorio-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px;
}
.dash-card {
    background: #333; padding: 15px; border-radius: 12px; text-align: center; border: 1px solid #444;
}
.dash-card h4 { margin: 0; font-size: 0.75em; color: #aaa; text-transform: uppercase; }
.dash-card p { margin: 5px 0 0 0; font-size: 1.2em; font-weight: bold; color: white; }
.dash-card.faturamento p { color: var(--success); }
.dash-card.pendente p { color: var(--danger); }
.dash-card.ticket p { color: var(--gold); }

.dash-chart-container {
    background: #333; padding: 15px; border-radius: 12px; border: 1px solid #444; margin-bottom: 15px;
}
.dash-chart-title { font-size: 0.8em; color: #aaa; text-transform: uppercase; margin-bottom: 10px; text-align: center; }
.dash-chart-area { display: flex; align-items: flex-end; justify-content: space-between; gap: 5px; height: 130px; }

@keyframes piscar {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}



/* --- NOVOS ESTILOS DAS ABAS (TABS) - VERSÃO FINA --- */
.tabs-container {
    display: flex;
    background: #333;
    border-radius: 25px;
    
    /* Mudei de 4px para 2px (Borda interna mais fina) */
    padding: 1px; 
    
    margin-bottom: 10px;
    position: relative;
    border: 1px solid #444;
    
    /* Define uma altura fixa bem baixinha (ex: 34px) */
    height: 30px; 
}


.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    
    /* REMOVI o padding de 10px e zerei */
    padding: 0; 
    
    /* Essas 3 linhas garantem que o texto fique bem no meio */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; 
    
    color: #888;
    
    /* Diminuí levemente a fonte para caber melhor na barra fina */
    font-size: 0.7em; 
    
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary); 
    color: #000; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.3); /* Sombra mais suave */
}

.dashboard-panel {
    display: flex;
    gap: 4px; /* Espaço entre os cartões */
    
    /* --- ALTERAÇÃO PARA AUMENTAR HORIZONTALMENTE SÓ AS JANELAS --- */
    
    /* Puxa 10px para a esquerda e 10px para a direita (invadindo a borda do site) */
    margin-left: -10px;
    margin-right: -10px;
    
    /* Compensa a largura para não quebrar o layout */
    width: calc(100% + 20px); 
    
    /* --- FIM DA ALTERAÇÃO --- */

    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

