* {
    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);
    }
}

/* ===== SELECT COM BUSCA INTEGRADA (TAREFAS) ===== */
.task-search-select {
    position: relative;
}

.task-search-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    transition: border-color 0.3s;
    color: #3F3F41;
}

.task-search-select__trigger:focus {
    outline: none;
    border-color: #FFD500;
}

.task-search-select--open .task-search-select__trigger {
    border-bottom-color: transparent;
    border-radius: 8px 8px 0 0;
}

.task-search-select--disabled .task-search-select__trigger {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #aaa;
}

.task-search-select__arrow {
    font-size: 11px;
    color: #999;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.task-search-select--open .task-search-select__arrow {
    transform: rotate(180deg);
}

.task-search-select__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 2px solid #FFD500;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.task-search-select__input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    background: #FFFDF0;
}

.task-search-select__options {
    max-height: 220px;
    overflow-y: auto;
}

.task-search-select__option {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: background 0.15s;
}

.task-search-select__option:last-child {
    border-bottom: none;
}

.task-search-select__option:hover {
    background: #FFF9E6;
}

.task-search-select__option--selected {
    background: #FFF3CD;
    font-weight: 600;
}

.task-search-select__empty {
    padding: 14px;
    color: #999;
    text-align: center;
    font-size: 14px;
}

/* ===== 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: #e8e8e8 !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;
}

/* Relatório Detalhado */
.relatorio-detalhado-table td {
    white-space: nowrap;
}

.relatorio-detalhado-table .col-text {
    white-space: normal;
    min-width: 140px;
    max-width: 240px;
}

.relatorio-detalhado-table .row-alt td {
    background: #f9f9f9;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-finalizado {
    background: #d4edda;
    color: #155724;
}

.status-andamento {
    background: #cce5ff;
    color: #004085;
}

.status-pausado {
    background: #fff3cd;
    color: #856404;
}

/* ===== 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;
}

/* ========================================
   RELATORIOS - LAYOUT HORIZONTAL
   ======================================== */

/* Container principal */
.relatorios-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px;
}

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

.filtros-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #3F3F41;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Layout horizontal dos filtros */
.filtros-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-end;
}

.filtro-item {
    flex: 1 1 auto;
    min-width: 150px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filtro-item label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.filtro-item select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #3F3F41;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 42px;
}

.filtro-item select:focus {
    outline: none;
    border-color: #FFD500;
    box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.15);
}

.filtro-item select:hover {
    border-color: #FFD500;
}

/* Acoes dos filtros */
.filtros-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

/* Botoes */
.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 ease;
}

.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;
    opacity: 0.6;
}

.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 ease;
}

.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;
    opacity: 0.6;
}

.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 ease;
}

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

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

.relatorio-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #3F3F41;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Scroll da tabela */
.relatorio-scroll {
    overflow-x: auto;
    margin: -10px -15px;
    padding: 10px 15px;
}

/* Tabela */
.relatorio-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.relatorio-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
}

.relatorio-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #3F3F41;
    border-bottom: 2px solid #FFD500;
    white-space: nowrap;
}

.relatorio-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    color: #3F3F41;
}

.relatorio-table tbody tr:hover {
    background: #f8f9fa;
}

/* Coluna sticky */
.col-sticky {
    position: sticky;
    left: 0;
    background: white;
    z-index: 5;
    box-shadow: 2px 0 4px rgba(0,0,0,0.05);
}

.relatorio-table thead .col-sticky {
    background: #f8f9fa;
    z-index: 11;
}

/* Mensagem sem dados */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

/* Responsivo tablets */
@media (max-width: 1024px) {
    .filtros-horizontal {
        gap: 12px;
    }

    .filtro-item {
        flex: 1 1 calc(33.333% - 12px);
        min-width: 140px;
        max-width: none;
    }
}

/* Responsivo mobile */
@media (max-width: 768px) {
    .relatorios-container {
        padding: 20px 15px;
    }

    .filtros-card {
        padding: 20px;
    }

    .filtros-horizontal {
        flex-direction: column;
        gap: 15px;
    }

    .filtro-item {
        width: 100%;
        min-width: auto;
        max-width: none;
    }

    .filtros-actions {
        flex-direction: column;
    }

    .filtros-actions button {
        width: 100%;
    }
}


/* ADICIONAR NO FINAL DO style.css */

/* Ajuste do grid de filtros para ficar em linha */
.filtros-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* Responsivo tablets - 3 colunas */
@media (max-width: 1200px) {
    .filtros-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsivo mobile - 2 colunas */
@media (max-width: 768px) {
    .filtros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Responsivo mobile pequeno - 1 coluna */
@media (max-width: 480px) {
    .filtros-grid {
        grid-template-columns: 1fr;
    }
}

/* Melhorar labels */
.filtros-card .form-group label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Filtro de periodo unificado */
.filtro-periodo {
    grid-column: span 1;
}

/* Date Tree Picker */
.date-tree-picker {
    position: relative;
}

.date-tree-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #3F3F41;
    transition: border-color 0.2s;
    text-align: left;
}

.date-tree-trigger:hover {
    border-color: #FFD500;
}

.date-tree-caret {
    font-size: 10px;
    color: #999;
    margin-left: 8px;
    flex-shrink: 0;
}

.date-tree-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 200;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
}

.dt-node-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    cursor: pointer;
    transition: background 0.12s;
    user-select: none;
}

.dt-node-header:hover {
    background: #f5f5f5;
}

.dt-arrow {
    font-size: 9px;
    color: #aaa;
    width: 12px;
    flex-shrink: 0;
}

.dt-label {
    font-size: 13px;
    color: #3F3F41;
    flex: 1;
}

.dt-label.active {
    color: #E59230;
    font-weight: 600;
}

.dt-ano > .dt-node-header > .dt-label {
    font-weight: 700;
    font-size: 14px;
}

.dt-mes > .dt-node-header {
    padding-left: 20px;
}

.dt-dia > .dt-node-header {
    padding: 3px 12px 3px 36px;
}

.dt-dia .dt-label {
    font-size: 12px;
    color: #666;
}

.dt-checkbox {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #E59230;
}

.dt-children {
    display: none;
}

/* Container de relatorios */
.relatorios-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== MEU DASHBOARD (PESSOAL) ===== */

/* Barra de Progresso Mensal */
.progress-card {
    background: var(--bg-card, white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--shadow-md, rgba(0, 0, 0, 0.08));
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #3F3F41);
    margin: 0;
}

.progress-label {
    font-size: 14px;
    color: var(--text-secondary, #666);
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease, background-color 0.3s ease;
    background-color: #2196F3;
}

.progress-percent {
    font-size: 13px;
    color: var(--text-tertiary, #888);
    font-weight: 500;
}

/* Grid dos gráficos lado a lado — sobrescreve apenas o template-columns do .charts-grid */
.dp-charts-grid {
    grid-template-columns: 1fr 1fr;
}

/* Wrappers dos gráficos do dashboard pessoal */
.dp-chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 450px;
}

.dp-chart-wrapper canvas {
    width: 100% !important;
    min-height: 450px !important;
    height: 450px !important;
    max-height: 500px !important;
}

.dp-chart-wrapper-full {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.dp-chart-wrapper-full canvas {
    width: 100% !important;
    min-height: 400px !important;
    height: 400px !important;
    max-height: 450px !important;
}

/* Tabela de apontamentos */
.dp-tabela-container {
    background: var(--bg-card, white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px var(--shadow-md, rgba(0, 0, 0, 0.08));
    margin-bottom: 20px;
}

.dp-tabela-container h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #3F3F41);
    margin-bottom: 16px;
}

.dp-tabela-scroll {
    overflow-x: auto;
}

.dp-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dp-tabela th {
    background: var(--bg-hover, #f8f8f8);
    color: var(--text-secondary, #3F3F41);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid var(--border-light, #e0e0e0);
    white-space: nowrap;
}

.dp-tabela td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-light, #eee);
    color: var(--text-primary, #3F3F41);
}

.dp-tabela tr:hover td {
    background: var(--bg-hover, #f8f9fa);
}

.dp-tabela .obs-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Botão editar apontamento */
.btn-editar-apt {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.btn-editar-apt:hover {
    opacity: 1;
    background: rgba(0,0,0,0.06);
}

/* Modal Editar Apontamento */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
}
.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}
.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0 4px;
}
.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.modal-body .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.modal-body label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}
.modal-body .form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    background: #fafafa;
    color: #333;
}
.modal-body textarea.form-control {
    resize: vertical;
    min-height: 70px;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e8e8e8;
}
.btn-secondary {
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    color: #555;
    font-weight: 500;
}
.btn-secondary:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .dp-charts-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ASIDE TABS (Ponto / Assistente) ===== */
.aside-tabs-header {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    background: #f8f8f8;
    flex-shrink: 0;
}

.aside-tab-btn {
    flex: 1;
    padding: 13px 10px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    letter-spacing: 0.3px;
}

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

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

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

.aside-tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.aside-tab-content.active {
    display: flex;
}

/* ===== PAINEL DE PONTO ===== */
.ponto-relogio {
    text-align: center;
    padding: 22px 15px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.ponto-hora {
    font-size: 38px;
    font-weight: 700;
    color: #3F3F41;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    line-height: 1;
}

.ponto-data {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    text-transform: capitalize;
}

.ponto-botoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    flex-shrink: 0;
}

.btn-ponto {
    padding: 18px 8px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.btn-ponto:active {
    transform: scale(0.97);
}

.btn-ponto:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-ponto-icone {
    font-size: 24px;
    line-height: 1;
}

.btn-entrada {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

.btn-entrada:hover:not(:disabled) {
    background: linear-gradient(135deg, #43A047, #1B5E20);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-saida {
    background: linear-gradient(135deg, #EF5350, #B71C1C);
    color: white;
    box-shadow: 0 3px 8px rgba(239, 83, 80, 0.3);
}

.btn-saida:hover:not(:disabled) {
    background: linear-gradient(135deg, #E53935, #7F0000);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.4);
}

.ponto-feedback {
    display: none;
    margin: 0 16px 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s;
    flex-shrink: 0;
}

.ponto-feedback.sucesso {
    display: block;
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.ponto-feedback.erro {
    display: block;
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.ponto-historico {
    flex: 1;
    overflow-y: auto;
    padding: 4px 16px 16px;
}

.ponto-historico h4 {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.ponto-registro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 7px;
    background: #f8f8f8;
    margin-bottom: 6px;
    font-size: 13px;
}

.ponto-registro-tipo {
    font-weight: 600;
}

.ponto-registro-tipo.entrada {
    color: #2e7d32;
}

.ponto-registro-tipo.saida {
    color: #b71c1c;
}

.ponto-registro-hora {
    color: #888;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.ponto-sem-registros {
    text-align: center;
    color: #ccc;
    font-size: 13px;
    padding: 24px 0;
}

/* Dark mode - Painel de Ponto */
[data-theme="dark"] .aside-tabs-header {
    background: var(--admin-bg-hover, #2a2a2a);
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .aside-tab-btn.active {
    background: var(--admin-bg-card, #1e1e1e);
    color: #e8e8e8;
}

[data-theme="dark"] .aside-tab-btn {
    color: #888;
}

[data-theme="dark"] .ponto-relogio {
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .ponto-hora {
    color: #e8e8e8;
}

[data-theme="dark"] .ponto-registro {
    background: #2a2a2a;
}

[data-theme="dark"] .ponto-feedback.sucesso {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border-color: #388e3c;
}

[data-theme="dark"] .ponto-feedback.erro {
    background: rgba(239, 83, 80, 0.15);
    color: #ef9a9a;
    border-color: #c62828;
}
