* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ===== HEADER FIXO NO TOPO ===== */
.top-header {
    background: linear-gradient(135deg, #FFD500 0%, #E59230 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 70px;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-header h1 {
    font-size: 24px;
    color: #3F3F41;
    font-weight: 700;
}

.header-tabs {
    display: flex;
    gap: 10px;
}

.header-tab-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    border-radius: 8px;
    color: #3F3F41;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.header-tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.header-tab-btn.active {
    background: white;
    border-color: #3F3F41;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-size: 14px;
    color: #3F3F41;
    font-weight: 600;
}

.btn-logout {
    background: rgba(63, 63, 65, 0.2);
    color: #3F3F41;
    border: 1px solid rgba(63, 63, 65, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: rgba(63, 63, 65, 0.3);
}

/* ===== PÃƒÆ’Ã‚ÂGINAS ===== */
.page-content {
    display: none;
    min-height: calc(100vh - 70px);
    overflow-y: visible;
    width: 100%;
    box-sizing: border-box;
}

.page-content.active {
    display: block;
}

/* ===== CONTAINER PRINCIPAL - 2 COLUNAS ===== */
.main-container {
    display: flex;
    min-height: calc(100vh - 70px);
    gap: 20px;
    padding: 20px;
    max-width: 100vw;
    box-sizing: border-box;
}

/* ===== COLUNA ESQUERDA - CONTROLE (70%) ===== */
.control-panel {
    flex: 0 0 calc(70% - 10px);
    max-width: calc(70% - 10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: visible;
    padding-bottom: 20px;
}

/* ===== CARD DE SELEÃƒÆ’Ã¢â‚¬Â¡ÃƒÆ’Ã†â€™O DE TAREFA ===== */
.task-selection-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Sistema de Abas */
.tabs-header {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    background: #f8f8f8;
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    background: rgba(255, 213, 0, 0.1);
    color: #3F3F41;
}

.tab-btn.active {
    background: white;
    color: #3F3F41;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #FFD500 0%, #E59230 100%);
}

/* ConteÃƒÆ’Ã‚Âºdo das Abas */
.tab-content {
    display: none;
    padding: 18px;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

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

.task-selection-card h3 {
    margin-bottom: 20px;
    color: #3F3F41;
    font-size: 20px;
    border-bottom: 2px solid #FFD500;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #3F3F41;
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFD500;
}

.form-group select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Resultados da Busca */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #FFD500;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #FFF9E6;
}

.search-result-item .client-name {
    font-weight: 600;
    color: #3F3F41;
    display: block;
}

.search-result-item .client-cnpj {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Item Selecionado */
.selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #FFD500 0%, #E59230 100%);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    color: #3F3F41;
    font-weight: 600;
}

.btn-clear {
    background: rgba(63, 63, 65, 0.2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    color: #3F3F41;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn-clear:hover {
    background: rgba(63, 63, 65, 0.4);
}

/* BotÃƒÆ’Ã‚Â£o Iniciar */
.btn-start {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-start:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-start:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* BotÃƒÆ’Ã‚Â£o de Apontamento Atrasado */
.btn-late {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.btn-late:hover:not(:disabled) {
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

/* Layout de 2 colunas para data/hora */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* Input de data/hora */
input[type="datetime-local"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="datetime-local"]:focus {
    outline: none;
    border-color: #FFD500;
}

/* Responsivo para form-row */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ===== SEÃƒÆ’Ã¢â‚¬Â¡ÃƒÆ’Ã†â€™O DE TAREFAS ATIVAS (NOVO - CARDS MINIMALISTAS) ===== */
.tasks-status-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tasks-status-section h3 {
    margin-bottom: 20px;
    color: #3F3F41;
    font-size: 20px;
    border-bottom: 2px solid #FFD500;
    padding-bottom: 10px;
}

/* Grid de Cards */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    flex: 1;
}

/* Mensagem quando nÃƒÆ’Ã‚Â£o hÃƒÆ’Ã‚Â¡ tarefas */
.no-tasks-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-tasks-message p {
    margin: 10px 0;
    font-size: 16px;
}

.small-text {
    font-size: 13px;
    color: #999;
}

/* ===== CARD DE TAREFA INDIVIDUAL (MINIMALISTA) ===== */
.task-card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #FFD500;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.task-card.paused {
    border-left-color: #FFA500;
    background: #fff9f0;
}

/* CabeÃƒÆ’Ã‚Â§alho do Card */
.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.task-card-client {
    font-weight: 700;
    color: #3F3F41;
    font-size: 14px;
    line-height: 1.3;
    flex: 1;
}

.task-card-status {
    font-size: 20px;
    flex-shrink: 0;
}

/* Info da Tarefa */
.task-card-task {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Timer */
.task-card-timer {
    font-size: 18px;
    font-weight: 700;
    color: #E59230;
    font-family: 'Courier New', monospace;
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.task-card.paused .task-card-timer {
    color: #FFA500;
}

/* HorÃƒÆ’Ã‚Â¡rio de InÃƒÆ’Ã‚Â­cio */
.task-card-start {
    font-size: 11px;
    color: #999;
    text-align: center;
}

/* BotÃƒÆ’Ã‚Âµes do Card */
.task-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 5px;
}

.task-card-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.task-card-btn:hover {
    transform: translateY(-1px);
}

.task-card-btn.btn-pause {
    background: #FFA500;
    color: white;
}

.task-card-btn.btn-pause:hover {
    background: #FF8C00;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

.task-card-btn.btn-resume {
    background: #4CAF50;
    color: white;
}

.task-card-btn.btn-resume:hover {
    background: #45a049;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.task-card-btn.btn-finish {
    background: linear-gradient(135deg, #FFD500 0%, #E59230 100%);
    color: #3F3F41;
}

.task-card-btn.btn-finish:hover {
    box-shadow: 0 2px 8px rgba(255, 213, 0, 0.4);
}

/* ===== COLUNA DIREITA - CHAT (30%) ===== */
.chat-panel {
    flex: 0 0 calc(30% - 10px);
    max-width: calc(30% - 10px);
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    margin-right: 0;
}

.chat-header-small {
    background: linear-gradient(135deg, #3F3F41 0%, #373739 100%);
    color: white;
    padding: 15px 20px;
}

.chat-header-small h2 {
    font-size: 18px;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f8f8;
    max-height: calc(100vh - 300px);
}

.message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s;
}

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

.message-content {
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 90%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.user-message .message-content {
    background: linear-gradient(135deg, #FFD500 0%, #E59230 100%);
    color: #3F3F41;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

.chat-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.input-wrapper {
    display: flex;
    gap: 8px;
}

#mensagemInput {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#mensagemInput:focus {
    outline: none;
    border-color: #FFD500;
}

.btn-send {
    padding: 10px 16px;
    background: linear-gradient(135deg, #FFD500 0%, #E59230 100%);
    color: #3F3F41;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 213, 0, 0.4);
}

.typing-indicator {
    padding: 10px 20px;
    text-align: center;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFD500;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* ===== SCROLLBARS ===== */
.control-panel::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.search-results::-webkit-scrollbar {
    width: 6px;
}

.control-panel::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track,
.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.control-panel::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.control-panel::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover,
.search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }
    
    .control-panel,
    .chat-panel {
        flex: 1 1 auto;
    }
    
    .chat-panel {
        min-height: 400px;
    }
    
    .tasks-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 12px 15px;
        height: auto;
    }
    
    .top-header h1 {
        font-size: 18px;
    }
    
    .main-container {
        padding: 10px;
        gap: 10px;
    }
    
    .task-selection-card,
    .tasks-status-section {
        padding: 15px;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .task-card-actions {
        flex-direction: column;
    }
}

/* ===== PÃƒÆ’Ã‚ÂGINA DE LOGIN (mantÃƒÆ’Ã‚Â©m igual) ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #3F3F41 0%, #373739 100%);
}

.login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Estilos especÃƒÂ­ficos para form-group do login */
.login-box .form-group {
    margin-bottom: 20px;
}

.login-box .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #3F3F41;
    font-weight: 600;
    font-size: 14px;
}

.login-box .form-group input[type="text"],
.login-box .form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.login-box .form-group input[type="text"]:focus,
.login-box .form-group input[type="password"]:focus {
    outline: none;
    border-color: #FFD500;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFD500 0%, #E59230 100%);
    color: #3F3F41;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 213, 0, 0.4);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    border-left: 4px solid #c33;
}

.version-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.version-info span {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* ===== RELATÃƒÆ’Ã¢â‚¬Å“RIOS ===== */
.relatorios-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
}

.filtros-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filtros-card h3 {
    margin-bottom: 20px;
    color: #3F3F41;
    font-size: 20px;
    border-bottom: 2px solid #FFD500;
    padding-bottom: 10px;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filtros-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #FFD500 0%, #E59230 100%);
    color: #3F3F41;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 213, 0, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 12px 24px;
    background: white;
    color: #3F3F41;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: #FFD500;
    background: #FFF9E6;
}

.btn-success {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-success:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.relatorio-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.relatorio-card h3 {
    margin-bottom: 20px;
    color: #3F3F41;
    font-size: 20px;
    border-bottom: 2px solid #FFD500;
    padding-bottom: 10px;
}

.relatorio-scroll {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.relatorio-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.relatorio-table thead {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #3F3F41 0%, #373739 100%);
    z-index: 10;
}

.relatorio-table th {
    padding: 12px 8px;
    text-align: left;
    color: white;
    font-weight: 600;
    border: 1px solid #555;
    white-space: nowrap;
}

.relatorio-table td {
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.col-sticky {
    position: sticky;
    left: 0;
    background: white;
    z-index: 5;
    font-weight: 600;
    min-width: 250px;
}

.relatorio-table thead .col-sticky {
    background: linear-gradient(135deg, #3F3F41 0%, #373739 100%);
    z-index: 15;
}

.col-tarefa {
    min-width: 120px;
    text-align: center;
}

.col-total {
    background: #FFF9E6 !important;
    font-weight: 700;
    min-width: 100px;
}

.col-numero {
    text-align: center;
    font-family: 'Courier New', monospace;
    color: #666;
}

.col-numero.has-value {
    color: #3F3F41;
    font-weight: 600;
}

.row-grupo {
    background: #f8f8f8;
    font-weight: 700;
    cursor: pointer;
}

.row-grupo:hover {
    background: #f0f0f0;
}

.row-grupo .col-grupo {
    background: #f8f8f8;
}

.row-empresa {
    background: white;
    cursor: pointer;
}

.row-empresa:hover {
    background: #fafafa;
}

.row-empresa .col-empresa {
    background: white;
    padding-left: 25px;
    font-weight: 600;
}

.row-cliente {
    background: white;
}

.row-cliente .col-cliente {
    background: white;
    padding-left: 30px;
}

.row-funcionario {
    background: #fafafa;
}

.row-funcionario .col-funcionario {
    background: #fafafa;
    padding-left: 50px;
}

.expand-icon {
    display: inline-block;
    width: 20px;
    color: #FFD500;
    font-weight: bold;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.expandable {
    user-select: none;
}

/* ===== SCROLLBARS DO RELATÃƒÆ’Ã¢â‚¬Å“RIO ===== */
.relatorio-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.relatorio-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.relatorio-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.relatorio-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== RESPONSIVO RELATÃƒÆ’Ã¢â‚¬Å“RIOS ===== */
@media (max-width: 768px) {
    .filtros-grid {
        grid-template-columns: 1fr;
    }
    
    .filtros-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .relatorio-card {
        padding: 15px;
    }
    
    .col-sticky {
        min-width: 200px;
    }
    
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .header-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .header-tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
/* ===== DASHBOARD ===== */
.dashboard-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid #FFD500;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.stat-card.stat-primary {
    border-left-color: #FFD500;
}

.stat-card.stat-success {
    border-left-color: #4CAF50;
}

.stat-card.stat-danger {
    border-left-color: #f44336;
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 48px;
    font-weight: 700;
    color: #3F3F41;
    line-height: 1;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    margin-bottom: 20px;
    color: #3F3F41;
    font-size: 18px;
    border-bottom: 2px solid #FFD500;
    padding-bottom: 10px;
}

.chart-card-full {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.chart-card-full h3 {
    margin-bottom: 20px;
    color: #3F3F41;
    font-size: 18px;
    border-bottom: 2px solid #FFD500;
    padding-bottom: 10px;
}

.chart-wrapper {
    position: relative;
    height: auto;
    min-height: 300px;
}

canvas {
    max-height: 400px !important;
    height: 400px !important;
}

/* Responsivo Dashboard */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container {
        padding: 10px;
    }
    
    .stat-card .stat-value {
        font-size: 36px;
    }
}

/* Scrollbar customizada para pÃƒÂ¡gina do dashboard */
.page-content::-webkit-scrollbar {
    width: 10px;
}

.page-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.page-content::-webkit-scrollbar-thumb {
    background: #FFD500;
    border-radius: 5px;
}

.page-content::-webkit-scrollbar-thumb:hover {
    background: #E59230;
}

/* ===== BARRA DE ROLAGEM CUSTOMIZADA GLOBAL ===== */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #FFD500 #f0f0f0;
}

/* Chrome, Edge, Safari - Body */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFD500 0%, #E59230 100%);
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #E59230 0%, #FFD500 100%);
}

/* Chrome, Edge, Safari - Global */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFD500 0%, #E59230 100%);
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #E59230 0%, #FFD500 100%);
}

/* ===== GARANTIR ESPAÃ‡AMENTO NO FINAL DA PÃGINA ===== */
.main-container::after {
    content: '';
    display: block;
    height: 20px;
    width: 100%;
}

/* ===== ESTILOS PARA TEXTAREA DE OBSERVAÃ‡ÃƒO ===== */
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

textarea:focus {
    outline: none;
    border-color: #FFD500;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.1);
}

textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Contador de caracteres */
.char-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

.char-counter span {
    color: #3F3F41;
    font-weight: 600;
}

/* Quando estÃ¡ perto do limite */
textarea[maxlength]:focus + .char-counter span {
    color: #E59230;
}

/* Quando estÃ¡ no limite */
.char-counter.limit-reached span {
    color: #d32f2f;
    font-weight: 700;
}

/* Estilo alternativo para diferentes temas (se necessÃ¡rio) */
.form-group textarea {
    margin-bottom: 4px;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    textarea {
        font-size: 16px; /* Evita zoom no iOS */
        min-height: 100px;
    }
    
    .char-counter {
        font-size: 11px;
    }
}

/* Ajuste para quando o textarea estÃ¡ desabilitado */
textarea:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}