/* Import da fonte Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos do botão de filtro */
.filter-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Seção de Filtros Expostos */
.exposed-filters-section {
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.filters-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

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

/* Cliente Filter Styles */
.cliente-filter-container {
    position: relative;
}

.cliente-select-field {
    position: relative;
    width: 100%;
}

.cliente-select-display {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    min-height: 44px;
}

.cliente-select-display:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.cliente-select-display.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.cliente-select-text {
    font-size: 14px;
    color: #495057;
    flex: 1;
}

.cliente-select-text.has-selection {
    color: #007bff;
    font-weight: 500;
}

.cliente-select-arrow {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.cliente-select-arrow.rotated {
    transform: rotate(180deg);
}

.cliente-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cliente-dropdown-content {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.cliente-search-container {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
}

.cliente-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.cliente-search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.cliente-options-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.cliente-option {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #495057;
}

.cliente-option:hover {
    background-color: #f8f9fa;
}

.cliente-option.selected {
    background-color: #e3f2fd;
    color: #007bff;
    font-weight: 500;
}

.cliente-option.selected:hover {
    background-color: #bbdefb;
}

.cliente-option-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cliente-option.selected .cliente-option-checkbox {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.cliente-option-checkbox i {
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cliente-option.selected .cliente-option-checkbox i {
    opacity: 1;
}

/* Colaborador Filter Styles */
.colaborador-filter-container {
    position: relative;
}

.colaborador-select-field {
    position: relative;
    width: 100%;
}

.colaborador-select-display {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    min-height: 44px;
}

.colaborador-select-display:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.colaborador-select-display.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.colaborador-select-text {
    font-size: 14px;
    color: #495057;
    flex: 1;
}

.colaborador-select-text.has-selection {
    color: #007bff;
    font-weight: 500;
}

.colaborador-select-arrow {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.colaborador-select-arrow.rotated {
    transform: rotate(180deg);
}

.colaborador-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.colaborador-dropdown-content {
    padding: 8px 0;
}

.colaborador-search-container {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
}

.colaborador-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.colaborador-search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.colaborador-options-container {
    max-height: 200px;
    overflow-y: auto;
}

.colaborador-option {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #495057;
}

.colaborador-option:hover {
    background-color: #f8f9fa;
}

.colaborador-option.selected {
    background-color: #e3f2fd;
    color: #007bff;
    font-weight: 500;
}

.colaborador-option.selected:hover {
    background-color: #bbdefb;
}

.colaborador-option-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.colaborador-option.selected .colaborador-option-checkbox {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.colaborador-option-checkbox i {
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.colaborador-option.selected .colaborador-option-checkbox i {
    opacity: 1;
}

.cliente-filter-container .cliente-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.cliente-filter-container .cliente-option:hover {
    background-color: #f8f9fa;
}

.cliente-filter-container .cliente-option.selected {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.cliente-filter-container .cliente-option.selected:hover {
    background-color: #bbdefb;
}

.selected-clientes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

/* Período Filter Styles */
.periodo-filter-container {
    position: relative;
}

.periodo-select-field {
    position: relative;
    width: 100%;
}

.periodo-select-display {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    min-height: 44px;
}

.periodo-select-display:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.periodo-select-display.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.periodo-select-text {
    font-size: 14px;
    color: #495057;
    flex: 1;
}

.periodo-select-text.has-selection {
    color: #007bff;
    font-weight: 500;
}

/* Validação: destacar seletor de período quando obrigatório */
.periodo-select-text.validation-required,
.periodo-trigger.validation-required {
    color: #d93025;
    font-weight: 600;
}

.periodo-select-arrow {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.periodo-select-arrow.rotated {
    transform: rotate(180deg);
}

.periodo-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    min-width: 280px;
}

.periodo-dropdown-content {
    padding: 0;
}

/* Estilos do calendário do date range picker */
.periodo-calendar-container {
    margin-top: 12px;
}

.periodo-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.periodo-calendar-month-year {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-transform: capitalize;
}

.periodo-calendar-nav {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.periodo-calendar-nav:hover {
    background: #f3f4f6;
    color: #374151;
}

.periodo-calendar-nav i {
    font-size: 12px;
}

.periodo-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.periodo-calendar-weekdays > div {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 0;
}

.periodo-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.periodo-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}

.periodo-calendar-day:hover:not(.empty):not(.selected) {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.periodo-calendar-day.empty {
    cursor: default;
    pointer-events: none;
}

.periodo-calendar-day.selected {
    background: #2563eb;
    color: white;
    font-weight: 600;
    border-color: #2563eb;
}

.periodo-calendar-day.start-date {
    background: #1e40af;
    color: white;
    font-weight: 600;
    border-color: #1e40af;
}

.periodo-calendar-day.end-date {
    background: #1e40af;
    color: white;
    font-weight: 600;
    border-color: #1e40af;
}

.periodo-calendar-day.in-range {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 500;
    border-color: #bfdbfe;
}

.periodo-calendar-day.in-range:hover {
    background: #bfdbfe;
}
.month-selector-container {
    display: none;
}
.month-selector-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.month-selector-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 150px;
}

.month-selector-input:hover {
    border-color: #007bff;
}

.month-selector-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.selected-dates-display {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.selected-date-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.date-value {
    font-size: 14px;
    color: #495057;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Filter Actions */
.exposed-filters-section .filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    margin-top: 0;
}

.exposed-filters-section .apply-filters-btn, 
.exposed-filters-section .clear-filters-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exposed-filters-section .apply-filters-btn {
    background: #0e3b6f;
    color: white;
    border: 1px solid #0e3b6f;
}

.exposed-filters-section .apply-filters-btn:hover {
    background: #144577;
    border-color: #144577;
}

.exposed-filters-section .clear-filters-btn {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.exposed-filters-section .clear-filters-btn:hover {
    background: #545b62;
    border-color: #545b62;
}

.filter-button {
    position: relative;
    justify-content: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-center;
    font-weight: 400;
    transition: all 0.2s ease-out;
    border-radius: 6px;
    outline: none;
    border: 1px solid transparent;
    color: #374151;
    background-color: transparent;
    font-size: 12px;
    padding: 4px 10px;
    height: 26px;
    min-width: fit-content;
}

.filter-button:hover {
    background-color: #f3f4f6;
}

.filter-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

.filter-button[aria-expanded="true"] {
    background-color: #f3f4f6;
    outline: 2px solid #3b82f6;
}

.filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.filter-icon svg {
    width: 14px;
    height: 14px;
}

.filter-text {
    white-space: nowrap;
    overflow-y: auto;
    text-overflow: ellipsis;
    font-size: 12px;
    color: #374151;
}

/* Minimal AND/OR select inside period card */
.andor-select {
    display: none !important;
}
.andor-select:focus {
    outline: none;
    border-color: #cbd5e1;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}
.andor-separator { display: none !important; }

/* Estilos do mini modal de filtros */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 600px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.close-modal-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.filter-modal-body {
    padding: 20px;
}

.add-filter-section {
    margin-bottom: 16px;
}

.add-filter-btn {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 12px 16px;
    width: 100%;
    cursor: pointer;
    color: #475569;
    font-size: 14px;
    transition: all 0.2s ease;
}

.add-filter-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.filter-options {
    margin-top: 16px;
}

.filter-option {
    margin-bottom: 16px;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.status-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
}

.status-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.status-checkbox-item label {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    flex: 1;
}

.filter-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

/* Estilos para múltiplos filtros */
.multiple-filters-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
}

.filter-type-select {
    min-width: 120px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.filter-options-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-status-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 200px;
}

.filter-status-checkboxes .status-checkbox-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.filter-status-checkboxes input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.filter-periodo-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.filter-periodo-dates .date-display {
    padding: 4px 8px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
}

.remove-filter-btn {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    color: #dc2626;
    font-size: 12px;
    transition: all 0.2s ease;
}

.remove-filter-btn:hover {
    background: #fecaca;
    border-color: #f87171;
}

.add-filter-btn {
    background: #f0f9ff;
    border: 1px dashed #0ea5e9;
    border-radius: 6px;
    padding: 12px 16px;
    width: 100%;
    cursor: pointer;
    color: #0369a1;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.add-filter-btn:hover {
    background: #e0f2fe;
    border-color: #0284c7;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.clear-filters-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    color: #374151;
    font-size: 13px;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #e5e7eb;
}

.apply-filters-btn {
    background: #0e3b6f;
    border: 1px solid #0e3b6f;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    color: white;
    font-size: 13px;
    transition: all 0.2s ease;
}

.apply-filters-btn:hover {
    background: #144577;
    border-color: #144577;
}

/* Estado desabilitado: segue visível porém com aparência atenuada */
.apply-filters-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #0e3b6f;
    border-color: #0e3b6f;
}

.apply-filter-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-filter-btn:hover {
    background: #2563eb;
}

.apply-filter-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Estilos para seleção de tipo de filtro */
.filter-type-selection {
    margin-top: 16px;
}

.filter-type-option {
    margin-bottom: 16px;
}

.filter-type-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-type-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-type-select:hover {
    border-color: #9ca3af;
}

/* Estilos para o filtro de período */
.periodo-filter {
    margin-top: 16px;
}

/* Estilos para o filtro de clientes */
.cliente-filter {
    margin-top: 16px;
}

.cliente-search-container {
    position: relative;
    margin-bottom: 12px;
}

.cliente-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background-color: white;
    transition: all 0.2s ease;
}

.cliente-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cliente-search-input::placeholder {
    color: #9ca3af;
}

.cliente-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.cliente-dropdown.show {
    display: block;
}

.cliente-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.cliente-dropdown-item:hover {
    background-color: #f9fafb;
}

.cliente-dropdown-item:last-child {
    border-bottom: none;
}

.cliente-dropdown-item.no-results {
    color: #9ca3af;
    font-style: italic;
    cursor: default;
}

.cliente-dropdown-item.no-results:hover {
    background-color: transparent;
}

.selected-clientes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-height: 24px;
}

.selected-cliente-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 4px 8px;
    font-size: 12px;
    color: #1e40af;
    transition: all 0.2s ease;
}

.selected-cliente-tag:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

/* Tags de cliente na lista de tarefas desajustadas */
.cliente-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.cliente-tag-orange {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
    border: 1px solid #fd7e14;
    font-size: 12px;
    font-weight: 600;
}

.remove-cliente-tag {
    background: none;
    border: none;
    color: #1e40af;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
}

.remove-cliente-tag:hover {
    color: #dc2626;
}

.cliente-filter-empty {
    color: #9ca3af;
    font-size: 12px;
    font-style: italic;
    padding: 4px 0;
}

/* Container do calendário customizado */
.periodo-calendar-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background-color: #fafafa;
}

/* Display das datas selecionadas */
.selected-dates-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    max-width: 280px;
    margin: 0 auto 16px auto;
}

.selected-date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.selected-date-item .date-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
}

.selected-date-item .date-value {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    padding: 4px 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
}

.selected-date-item .date-value.selected {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* Calendário customizado */
.custom-calendar {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    margin: 0 auto;
}

/* Cabeçalho do calendário */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.calendar-month-year {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Dias da semana */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 6px;
}

.calendar-weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    padding: 6px 2px;
    text-transform: uppercase;
}

/* Grade dos dias */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #374151;
    background-color: transparent;
    min-height: 28px;
}

.calendar-day:hover {
    background-color: #f3f4f6;
}

.calendar-day.other-month {
    color: #d1d5db;
}

.calendar-day.today {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.calendar-day.selected {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
}

.calendar-day.start-date {
    background-color: #1e40af;
    color: white;
    font-weight: 600;
    border-radius: 6px;
}

.calendar-day.end-date {
    background-color: #1e40af;
    color: white;
    font-weight: 600;
    border-radius: 6px;
}

.calendar-day.in-range {
    background-color: #bfdbfe;
    color: #1e40af;
    font-weight: 500;
}

.calendar-day.selected-start {
    background-color: #1e40af;
    color: white;
    font-weight: 600;
    box-shadow: 0 0 0 2px #1e40af;
}

.calendar-day.selected-end {
    background-color: #1e40af;
    color: white;
    font-weight: 600;
    box-shadow: 0 0 0 2px #1e40af;
}

.calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    background-color: transparent;
}

/* Estilos para o botão de grupo */
.grupo-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    border: 1px solid var(--gray-300);
    text-align: left;
    transition: all 0.2s ease;
}

.grupo-button:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.grupo-button i {
    color: var(--gray-400);
    transition: transform 0.2s ease;
}

.grupo-button.active i {
    transform: rotate(180deg);
}

/* ===== FILTRO DE PERÍODO MODERNO ===== */
.modern-periodo-filter {
    position: relative;
    width: 100%;
}

.periodo-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
    min-height: 42px;
}

.periodo-trigger:hover {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.periodo-trigger.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.periodo-text {
    font-weight: 500;
    color: #374151;
}

.periodo-icon {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.periodo-trigger.active .periodo-icon {
    transform: rotate(180deg);
}

/* Card do Calendário */
.periodo-calendar-card {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 20px;
    min-width: 320px;
    max-width: 360px;
    animation: calendarSlideIn 0.2s ease-out;
}

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

/* Cabeçalho do Calendário */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.calendar-nav:hover {
    background: #f3f4f6;
    color: #374151;
}

.calendar-nav:active {
    background: #e5e7eb;
}

.calendar-month-year {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    text-align: center;
    flex: 1;
    letter-spacing: -0.025em;
}

/* Dias da Semana */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
    padding: 0 2px;
}

.weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    padding: 8px 0;
    text-transform: lowercase;
}

/* Grade de Dias */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    background: transparent;
    min-height: 36px;
    position: relative;
}

.calendar-day:hover {
    background: #f3f4f6;
}

.calendar-day.other-month {
    color: #d1d5db;
    cursor: default;
}

.calendar-day.other-month:hover {
    background: transparent;
}

.calendar-day.today {
    color: #3b82f6;
    font-weight: 600;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
}

/* Dias Selecionados */
.calendar-day.selected-start,
.calendar-day.selected-end {
    background: #1e40af;
    color: white;
    font-weight: 600;
}

.calendar-day.selected-start:hover,
.calendar-day.selected-end:hover {
    background: #1e3a8a;
}

/* Intervalo Selecionado */
.calendar-day.in-range {
    background: #dbeafe;
    color: #1e40af;
}

.calendar-day.in-range:hover {
    background: #bfdbfe;
}

/* Estados de Seleção */
.calendar-day.selecting-start {
    background: #3b82f6;
    color: white;
}

.calendar-day.selecting-end {
    background: #3b82f6;
    color: white;
}

/* Animações */
.calendar-day {
    animation: dayFadeIn 0.3s ease-out;
}

@keyframes dayFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsividade */
@media (max-width: 480px) {
    .periodo-calendar-card {
        min-width: 280px;
        max-width: calc(100vw - 32px);
        left: 50%;
        transform: translateX(-50%);
    }
    
    .calendar-day {
        min-height: 32px;
        font-size: 12px;
    }
}

/* Estilos para o modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.25rem;
    font-weight: 600;
}

.close {
    color: var(--gray-400);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.grupos-section {
    margin-bottom: 25px;
}

.grupos-section h4 {
    margin-bottom: 15px;
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 600;
}

.grupos-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 10px;
}

.grupo-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.grupo-item:hover {
    background-color: var(--gray-50);
}

.grupo-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.grupo-item label {
    cursor: pointer;
    flex: 1;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.novo-grupo-section h4 {
    margin-bottom: 15px;
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 600;
}

.novo-grupo-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.novo-grupo-form input {
    flex: 1;
}

.btn-confirmar {
    background: linear-gradient(135deg, #0e3b6f, #144577);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-confirmar:hover {
    background: linear-gradient(135deg, #144577, #1a5085);
    transform: translateY(-1px);
}

.btn-cancelar {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-cancelar:hover {
    background: var(--gray-200);
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsividade do modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .novo-grupo-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

:root {
    /* Paleta de cores moderna e suave */
    --primary-blue: #667eea;
    --primary-green: #48bb78;
    --primary-orange: #ed8936;
    --primary-pink: #ed64a6;
    
    /* Tons neutros modernos */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Sombras modernas */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Bordas arredondadas */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Linha separatória entre seções */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
    margin: 2rem 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--gray-300);
    border-radius: 50%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f6fa;
    color: #333;
    line-height: 1.5;
    font-size: 0.875rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Header azul escuro no topo */
.top-header {
    background: linear-gradient(135deg, #0e3b6f, #144577);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100vw;
    margin-left: -60px;
}

.header-container {
    width: 100%;
    margin: 0;
    padding: 0;
    padding-left: 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    padding-left: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo-img {
    height: 2.5rem;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: white;
    letter-spacing: -0.025em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Dashboard styles removed - dashboards will be in another section */

/* Header moderno */
.header {
    margin-bottom: 3rem;
}

.main-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: left;
    letter-spacing: -0.025em;
}

/* Dashboard card styles removed - dashboards will be in another section */

/* Dashboard responsive styles removed */

@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid .form-group:nth-child(7),
    .form-grid .form-group:nth-child(8) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    
    .container {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid .form-group {
        grid-column: 1 !important;
    }
    
    .full-width {
        grid-column: 1;
    }
}

/* Mensagem de sucesso */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Conteúdo principal moderno */
.main-content {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8eaed;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.form-subtitle {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Formulário moderno */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Seções do formulário */
.form-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 32px;
    transition: none;
}

.form-section:hover {
    box-shadow: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    padding-bottom: 4px;
}

.section-separator {
    height: 1px;
    background: linear-gradient(90deg, #e0e6ed 0%, #bdc3c7 50%, #e0e6ed 100%);
    margin-bottom: 12px;
    position: relative;
}



.section-title svg {
    color: #6b7280;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.section-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

/* Responsividade para seções */
@media (max-width: 768px) {
    .form-container {
        gap: 24px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .section-fields {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Linha 1: Razão Social, Nome Fantasia, Nome Amigável */
.form-grid .form-group:nth-child(1),
.form-grid .form-group:nth-child(2),
.form-grid .form-group:nth-child(3) {
    grid-column: span 1;
}

/* Linha 2: CNPJ/CPF, Status, Grupo */
.form-grid .form-group:nth-child(4),
.form-grid .form-group:nth-child(5),
.form-grid .form-group:nth-child(6) {
    grid-column: span 1;
}

/* Linha 3: Cliente Kamino, Cliente ClickUp */
.form-grid .form-group:nth-child(7),
.form-grid .form-group:nth-child(8) {
    grid-column: span 1;
}

/* Deixar espaço vazio na terceira coluna da linha 3 */
.form-grid .form-group:nth-child(8) {
    grid-column: 2;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.375rem;
    letter-spacing: 0;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    background: white;
    transition: all 0.2s ease;
    color: #333;
    appearance: none;
    cursor: pointer;
}

/* Estilos específicos para botões modais */
.btn-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.btn-modal span {
    flex: 1;
    text-align: left;
}

.btn-modal svg {
    flex-shrink: 0;
    margin-left: 8px;
}

.form-input select,
select.form-input {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    padding-right: 50px;
}

/* Select com ícone Font Awesome */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-with-icon {
    background-image: none !important;
    padding-right: 3rem !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.select-wrapper:hover .select-icon {
    color: var(--gray-600);
}

.form-input:focus {
    outline: none;
    border-color: #28a745;
    background: white;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.form-input:hover:not(:focus) {
    border-color: var(--gray-300);
    background: white;
}

.form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgb(239 68 68 / 0.1);
}

/* Remover spinners dos inputs numéricos */
input[type="number"].form-input,
input[type="number"].form-input-small {
    -moz-appearance: textfield;
}

input[type="number"].form-input::-webkit-outer-spin-button,
input[type="number"].form-input::-webkit-inner-spin-button,
input[type="number"].form-input-small::-webkit-outer-spin-button,
input[type="number"].form-input-small::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Mensagens de erro modernas */
.error-message {
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Botões modernos */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #20C997 0%, #138496 100%);
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-1px);
}

/* Mensagem de sucesso moderna */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
}

.success-message.show {
    display: flex;
}

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

/* Dropdown pesquisável */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-input {
    padding-right: 3rem !important;
    cursor: text;
}

.dropdown-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray-400);
    transition: all 0.2s ease;
}

.searchable-select.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-blue);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-lg);
    margin: 0;
    padding: 0;
    list-style: none;
}

.searchable-select.open .dropdown-list {
    display: block;
}

.searchable-select.open .searchable-input {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgb(102 126 234 / 0.1);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.15s ease;
    font-size: 0.95rem;
    color: var(--gray-700);
}

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

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.dropdown-item.highlighted {
    background: var(--primary-blue);
    color: white;
}

.dropdown-item.no-results {
    color: var(--gray-500);
    font-style: italic;
    cursor: default;
    text-align: center;
    padding: 1rem;
}

.dropdown-item.no-results:hover {
    background: transparent;
    color: var(--gray-500);
}

/* Scrollbar personalizada para o dropdown */
.dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Botão de exclusão de grupo */
.delete-group-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin-left: 8px;
}

.delete-group-btn:hover {
    background-color: #fef2f2;
    color: #dc2626;
    transform: scale(1.1);
}

.delete-group-btn:active {
    transform: scale(0.95);
}

.delete-group-btn:focus {
    outline: 2px solid #fca5a5;
    outline-offset: 2px;
}

/* Container do item de grupo para melhor alinhamento */
.grupo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

/* Remover bullets das listas de contratos */
.contract-display-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contract-display-list li {
    list-style: none;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: var(--radius-sm);
}

/* Estilos específicos para itens de segmento e subsegmento */
.segmento-item,
.subsegmento-item {
    list-style: none;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
}

.grupo-checkbox-container {
    flex: 1;
    display: flex;
    align-items: center;
}



/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    /* Dashboard responsive styles removed */
    
    .form-card {
        padding: 25px;
        margin: 0 10px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-row:nth-child(3) {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Dashboard responsive styles removed */
    
    .form-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .form-input,
    .form-textarea {
        padding: 12px;
    }
}

/* Estilos para Modal de Clientes */
.modal-large {
    max-width: 900px;
    width: 95%;
}

.modal-small {
    max-width: 400px;
    width: 90%;
}

.clientes-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.clientes-list {
    padding: 0;
}

.cliente-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease;
}

.cliente-item:hover {
    background-color: var(--gray-50);
}

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

.cliente-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cliente-nome {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.cliente-detalhes {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.cliente-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-edit,
.btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    color: var(--primary-blue);
    border: 1px solid transparent;
}

.btn-edit:hover {
    background-color: #f0f4ff;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-delete {
    color: #ef4444;
    border: 1px solid transparent;
}

.btn-delete:hover {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* Seção de Edição */
.edit-section {
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
    margin-top: 20px;
}

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

.edit-header h4 {
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.btn-cancelar-edit {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-cancelar-edit:hover {
    background: var(--gray-200);
}

.edit-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.edit-form .form-group {
    margin-bottom: 0;
}

.edit-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Responsividade para modais */
@media (max-width: 768px) {
    .modal-large {
        width: 98%;
        margin: 2% auto;
    }
    
    .edit-form {
        grid-template-columns: 1fr;
    }
    
    .cliente-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cliente-actions {
        align-self: flex-end;
    }
}

/* Dashboard modal styles removed - dashboards will be in another section */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--gray-600);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-clients-message {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
    font-style: italic;
}

.cliente-ativo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease;
    background: white;
}

.cliente-ativo-item:hover {
    background-color: var(--gray-50);
}

.cliente-ativo-item:last-child {
    border-bottom: none;
}

.cliente-ativo-info {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 20px;
    align-items: center;
}

.cliente-ativo-nome {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.cliente-ativo-email {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.cliente-ativo-telefone {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.cliente-ativo-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Responsividade para modal de clientes ativos */
@media (max-width: 768px) {
    .cliente-ativo-info {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .cliente-ativo-item {
        padding: 12px 16px;
    }
    
    .cliente-ativo-status {
        justify-self: start;
    }
}

/* Estilos para Cards de Contratos */
.contratos-container {
    width: 100%;
}

.contratos-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.contrato-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contrato-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.contrato-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contrato-card:hover::before {
    opacity: 1;
}

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

.contrato-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contrato-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.2;
}

.contrato-card-id {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray-500);
    opacity: 0.8;
}

.contrato-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contrato-card-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contrato-card-icon:hover {
    color: #3b82f6;
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.contrato-redirect-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contrato-redirect-icon:hover {
    color: #059669;
    background: #ecfdf5;
    border-color: #a7f3d0;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.contrato-card:hover .contrato-card-icon {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.contrato-card:hover .contrato-redirect-icon {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.contrato-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contrato-info-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.7rem;
    color: var(--gray-600);
    line-height: 1.3;
    margin-bottom: 4px;
    gap: 0;
}

.contrato-info-label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.65rem;
    flex-shrink: 0;
}

.contrato-info-value {
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.no-contracts-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--gray-500);
    grid-column: 1 / -1;
}

.no-contracts-message svg {
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-contracts-message p {
    font-size: 1.1rem;
    margin: 0;
}



/* Responsividade para Cards de Contratos */
@media (max-width: 768px) {
    .contratos-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contrato-card {
        padding: 16px;
    }
    
    .contrato-card-title {
        font-size: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .detail-label {
        min-width: auto;
    }
}

/* ===== DASHBOARD STYLES ===== */

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.nav-link i {
    font-size: 0.9rem;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
}

.dashboard-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.stat-icon-blue {
    background: linear-gradient(135deg, var(--primary-blue), #8b5cf6);
}

.stat-icon-green {
    background: linear-gradient(135deg, var(--primary-green), #38a169);
}

.stat-icon-orange {
    background: linear-gradient(135deg, var(--primary-orange), #dd6b20);
}

.stat-icon-pink {
    background: linear-gradient(135deg, var(--primary-pink), #d53f8c);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.25rem 0;
    line-height: 1;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.chart-header {
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.chart-container {
    position: relative;
    height: 250px;
}

/* Table Card */
.table-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.table-container {
    overflow-x: auto;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
}

.clients-table th {
    background: var(--gray-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-200);
}

.clients-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-size: 0.9rem;
}

.clients-table tr:hover {
    background: var(--gray-50);
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-info .name {
    font-weight: 500;
    color: var(--gray-800);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-ativo {
    background: rgba(72, 187, 120, 0.1);
    color: var(--primary-green);
}

.status-inativo {
    background: rgba(237, 137, 54, 0.1);
    color: var(--primary-orange);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.btn-edit {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-blue);
}

.btn-edit:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Loading and Empty States */
.loading-cell,
.empty-cell,
.error-cell {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-state i,
.error-state i {
    font-size: 2rem;
    color: var(--gray-400);
}

.empty-state p,
.error-state p {
    color: var(--gray-600);
    margin: 0;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .clients-table {
        font-size: 0.8rem;
    }
    
    .clients-table th,
    .clients-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Client Cards Responsive */
    .clients-grid {
        gap: 1rem;
        justify-content: center;
    }
    
    .client-card {
        flex: 0 0 100%;
        min-width: 280px;
        max-width: 100%;
    }
    
    .client-card {
        padding: 1rem;
    }
    
    .client-card-header h3 {
        font-size: 1rem;
    }
    
    .client-card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .client-card-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== CLIENT CARDS STYLES ===== */

/* Clients Grid Container */
.clients-section {
    margin-top: 2rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    align-items: start;
}

/* Individual Client Card */
.client-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 200px;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #0e3b6f;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0e3b6f, #144577);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-card:hover::before {
    opacity: 1;
}

/* Client Card Header */
.client-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.client-card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0e3b6f;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    margin-right: 1rem;
}

.client-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    flex-shrink: 0;
}

.client-status.ativo {
    background: rgba(72, 187, 120, 0.1);
    color: var(--primary-green);
}

.client-status.inativo {
    background: rgba(237, 137, 54, 0.1);
    color: var(--primary-orange);
}

/* Client Card Body */
.client-card-body {
    margin-bottom: 1.5rem;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.client-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

/* Estilo especial para produtos - ícone alinhado no topo */
.client-info-item:has(.produtos-value) {
    align-items: flex-start;
}

.client-info-item i {
    width: 1rem;
    color: var(--gray-400);
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 2px; /* Pequeno ajuste para alinhamento com texto */
}

.client-info-item span {
    color: var(--gray-600);
    line-height: 1.4;
}

/* Estilo para itens clicáveis com seta */
.client-info-item[onclick],
.client-info-item.resumo-item-contratos,
.client-info-item.resumo-item-tarefas,
.client-info-item.resumo-item-produtos,
.client-info-item.resumo-item-colaboradores {
    position: relative;
}

/* Remover hover dos itens de resumo - apenas a setinha terá hover */
.client-info-item.resumo-item-contratos:hover,
.client-info-item.resumo-item-tarefas:hover,
.client-info-item.resumo-item-produtos:hover,
.client-info-item.resumo-item-colaboradores:hover {
    background-color: transparent;
}

/* Garantir que a seta apareça à direita */
.client-info-item .fa-chevron-right {
    margin-left: auto;
    flex-shrink: 0;
}

/* Expand icon */
.expand-icon {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.expand-icon i {
    transition: transform 0.2s ease;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.client-info-item .label {
    font-weight: 500;
    color: var(--gray-700);
    min-width: 80px;
}

.client-info-item .value {
    color: var(--gray-600);
}

/* Estilo especial para margem - destaque visual */
.client-info-item.margem-item {
    background: rgba(253, 126, 20, 0.1);
    border: 1px solid rgba(253, 126, 20, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.client-info-item.margem-item:hover {
    background: rgba(253, 126, 20, 0.15);
    border-color: rgba(253, 126, 20, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(253, 126, 20, 0.1);
}

.client-info-item.margem-item i {
    color: #fd7e14;
    font-weight: 600;
}

.client-info-item.margem-item .value {
    color: #fd7e14;
    font-weight: 600;
}

.client-info-item.margem-item .margin-loaded {
    color: #fd7e14;
    font-weight: 700;
}

/* Client Card Actions */
.client-card-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.client-card-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0e3b6f, #144577);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #144577, #1a5085);
    transform: translateY(-1px);
}

.hours-info {
    display: inline-flex;
    align-items: center;
    margin-left: 3px;
    color: #fd7e14;
    font-size: 9px;
}
.hours-info i {
    pointer-events: auto;
    color: #fd7e14;
}

.hours-info.invert i {
    display: none;
}
.hours-info.invert::after {
    content: 'i';
    display: inline-flex;
    width: 13px;
    height: 13px;
    border: 1px solid #9aa0a6;
    color: #6b7280;
    border-radius: 50%;
    background: #ffffff;
    font-size: 9px;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

/* ===== CLIENT FILTER HIGHLIGHT STYLES ===== */

/* Cliente destacado (selecionado no filtro) */
.client-card.client-highlighted {
    border: 2px solid #0e3b6f;
    box-shadow: 0 0 0 3px rgba(14, 59, 111, 0.1);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(14, 59, 111, 0.02), rgba(20, 69, 119, 0.02));
}

.client-card.client-highlighted::before {
    opacity: 1;
    background: linear-gradient(135deg, #0e3b6f, #144577);
    height: 6px;
}

.client-card.client-highlighted .client-card-header h3 {
    color: #0e3b6f;
    font-weight: 700;
}

/* Cliente com opacidade reduzida (não selecionado) */
.client-card.client-dimmed {
    opacity: 0.4;
    transform: scale(0.98);
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.client-card.client-dimmed:hover {
    opacity: 0.6;
    transform: scale(0.99);
}

/* Animação suave para transições */
.client-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remover estilos de hover quando dimmed */
.client-card.client-dimmed:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-200);
}

.client-card.client-dimmed:hover::before {
    opacity: 0;
}

/* Loading State */
.clients-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.clients-loading .loading-spinner {
    margin-bottom: 1rem;
}

.clients-loading p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Empty State */
.clients-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-300);
}

.clients-empty i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.clients-empty h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.clients-empty p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.clients-empty .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0e3b6f, #144577);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

.clients-empty .btn:hover {
    background: linear-gradient(135deg, #144577, #1a5085);
    transform: translateY(-1px);
}

/* Error State */
.clients-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    background: rgba(239, 68, 68, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Produto Item Styles - Minimalista */
.produto-item {
    display: block;
    background: #f8f9fa;
    color: #495057;
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.produto-item:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* Variações de cores minimalistas para produtos */
.produto-item:nth-child(1) {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.produto-item:nth-child(2) {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.produto-item:nth-child(3) {
    color: #fd7e14;
    background: rgba(253, 126, 20, 0.1);
}

.produto-item:nth-child(4) {
    color: #6f42c1;
    background: rgba(111, 66, 193, 0.1);
}

.produto-item:nth-child(5) {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.produto-item:nth-child(6) {
    color: #17a2b8;
    background: rgba(23, 162, 184, 0.1);
}

.produto-item:nth-child(7) {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
}

.produto-item:nth-child(8) {
    color: #e83e8c;
    background: rgba(232, 62, 140, 0.1);
}

/* ===== TOTAL CARDS CONTAINER STYLES ===== */
.total-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0;
    justify-content: flex-start;
    align-items: stretch;
}

/* Responsividade para os cards totais */
@media (max-width: 1200px) {
    .total-cards-container {
        gap: 12px;
    }
    
    .clients-count-card,
    .tasks-count-card,
    .estimated-hours-count-card,
    .realized-hours-count-card,
    .difference-count-card,
    .faturamento-count-card {
        min-width: 180px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .total-cards-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .clients-count-card,
    .tasks-count-card,
    .estimated-hours-count-card,
    .realized-hours-count-card,
    .difference-count-card,
    .faturamento-count-card {
        min-width: 100%;
        max-width: 100%;
    }
}

/* ===== CLIENTS COUNT CARD STYLES ===== */
.clients-count-card {
    background: rgba(253, 126, 20, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.clients-count-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.clients-count-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.clients-count-content i {
    font-size: 16px;
    color: #fd7e14;
    margin-bottom: 4px;
}

.clients-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.clients-count-text {
    color: #fd7e14;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

/* ===== TASKS COUNT CARD STYLES ===== */
.tasks-count-card {
    background: rgba(253, 126, 20, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.tasks-count-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tasks-count-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.tasks-count-content i {
    font-size: 16px;
    color: #fd7e14;
    margin-bottom: 4px;
}

.tasks-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tasks-count-text {
    color: #fd7e14;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

/* ===== ESTIMATED HOURS COUNT CARD STYLES ===== */
.estimated-hours-count-card {
    background: rgba(253, 126, 20, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.estimated-hours-count-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.estimated-hours-count-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.estimated-hours-count-content i {
    font-size: 16px;
    color: #fd7e14;
    margin-bottom: 4px;
}

.estimated-hours-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.estimated-hours-count-text {
    color: #fd7e14;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.estimated-cost-count-text {
    color: #fd7e14;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* ===== REALIZED HOURS COUNT CARD STYLES ===== */
.realized-hours-count-card {
    background: rgba(253, 126, 20, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.realized-hours-count-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.realized-hours-count-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.realized-hours-count-content i {
    font-size: 16px;
    color: #fd7e14;
    margin-bottom: 4px;
}

.realized-hours-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.realized-hours-count-text {
    color: #fd7e14;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.realized-cost-count-text {
    color: #fd7e14;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* ===== DIFFERENCE COUNT CARD STYLES ===== */
.difference-count-card {
    background: rgba(253, 126, 20, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.difference-count-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.difference-count-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.difference-count-content i {
    font-size: 16px;
    color: #fd7e14;
    margin-bottom: 4px;
}

.difference-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.difference-hours-text {
    color: #fd7e14;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.difference-cost-text {
    color: #fd7e14;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* ===== FATURAMENTO COUNT CARD STYLES ===== */
.faturamento-count-card {
    background: rgba(253, 126, 20, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.faturamento-count-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faturamento-count-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.faturamento-count-content i {
    font-size: 16px;
    color: #fd7e14;
    margin-bottom: 4px;
}

.faturamento-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faturamento-count-text {
    color: #fd7e14;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.faturamento-registros-text {
    color: #fd7e14;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.clients-error i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.clients-error h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.clients-error p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.clients-error .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.clients-error .btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Responsive Design for Client Cards */
@media (max-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .client-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .client-card {
        padding: 1rem;
        min-height: auto;
    }
}

/* ===== DASHBOARD CARDS STYLES ===== */

/* Dashboard Cards Container - ORIGINAL (para outras páginas) */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .dashboard-cards {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

.dashboard-content {
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Individual Dashboard Card - ORIGINAL (para outras páginas) */
.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #0e3b6f;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0e3b6f, var(--primary-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Dashboard Card Icon - ORIGINAL (para outras páginas) */
.dashboard-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0e3b6f, #144577);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.dashboard-card-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

/* Dashboard Card Content - ORIGINAL (para outras páginas) */
.dashboard-card-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 140px); /* Reserva espaço para ícone (60px) + gap (1.5rem) + seta (40px) + gap (1.5rem) */
    overflow: hidden;
}

.dashboard-card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-card-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

/* ===== ESTILOS ESPECÍFICOS PARA DASHBOARD CLIENTES ===== */

/* Dashboard Cards Container - ESPECÍFICO PARA DASHBOARD CLIENTES */
#dashboardCards.dashboard-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Individual Dashboard Card - ESPECÍFICO PARA DASHBOARD CLIENTES */
#dashboardCards .dashboard-card {
    background: #fff3e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    box-shadow: none;
    border: none;
    cursor: default;
    position: relative;
    overflow: visible;
}

#dashboardCards .dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
    border: none;
}

#dashboardCards .dashboard-card::before {
    display: none;
}

/* Dashboard Card Icon - ESPECÍFICO PARA DASHBOARD CLIENTES */
#dashboardCards .dashboard-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    flex-shrink: 0;
    background: #fff3e0;
}

#dashboardCards .dashboard-card-icon i {
    font-size: 24px;
    color: #ff9800;
}

/* Dashboard Card Content - ESPECÍFICO PARA DASHBOARD CLIENTES */
#dashboardCards .dashboard-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#dashboardCards .dashboard-card-content h3 {
    display: none;
}

#dashboardCards .dashboard-card-content p {
    display: none;
}

#dashboardCards .dashboard-card-label {
    font-size: 12px;
    font-weight: 500;
    color: #ff9800;
}

#dashboardCards .dashboard-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #ff9800;
}

/* Dashboard Card Arrow */
.dashboard-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
    z-index: 5;
    cursor: default;
}

.dashboard-card-arrow i {
    font-size: 1rem;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

/* Animação da seta para cards ativos (sem classe disabled) */
.dashboard-card:not(.dashboard-card-disabled):hover .dashboard-card-arrow {
    background: var(--primary-orange);
    transform: translateX(4px);
}

.dashboard-card:not(.dashboard-card-disabled):hover .dashboard-card-arrow i {
    color: white;
}

/* Seta desabilitada/apagada para cards sem ação */
.dashboard-card-disabled .dashboard-card-arrow {
    background: #f3f4f6;
    opacity: 0.5;
    cursor: default;
}

.dashboard-card-disabled .dashboard-card-arrow i {
    color: #d1d5db;
}

.dashboard-card-disabled:hover .dashboard-card-arrow {
    background: #f3f4f6;
    transform: none;
    opacity: 0.6;
}

.dashboard-card-disabled:hover .dashboard-card-arrow i {
    color: #d1d5db;
}

/* Dashboard Card Settings Button */
.dashboard-card-settings-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 4px;
}

.dashboard-card-settings-btn:hover {
    transform: none;
}

.dashboard-card-settings-btn i {
    font-size: 1rem;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.dashboard-card-settings-btn:hover i {
    color: var(--primary-orange);
}
.dashboard-card-settings-btn:focus i,
.dashboard-card-settings-btn:active i {
    color: var(--primary-orange);
}

/* Responsive Design for Dashboard Cards */
@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .dashboard-card-icon {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }
    
    .dashboard-card-icon i {
        font-size: 1.25rem;
    }
    
    .dashboard-card-content {
        min-width: 0;
        flex: 1;
    }
    
    .dashboard-card-content h3 {
        font-size: 1.125rem;
    }
    
    .dashboard-card-arrow {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .dashboard-card {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .dashboard-card-icon {
        width: 45px;
        height: 45px;
    }
    
    .dashboard-card-content h3 {
        font-size: 1rem;
    }
    
    .dashboard-card-content p {
        font-size: 0.8125rem;
    }
    
    .dashboard-card-arrow {
        width: 32px;
        height: 32px;
    }
    
    .dashboard-card-arrow i {
        font-size: 0.875rem;
    }
}

/* ===== SIDEBAR MENU STYLES ===== */

/* Sidebar Container */
.sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    height: calc(100vh - 64px);
    width: 60px;
    background: #ffffff;
    border-right: 2px solid #d1d5db;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    z-index: 999;
    overflow: hidden;
}

.sidebar:hover {
    width: 250px;
}

/* Sidebar Content */
.sidebar-content {
    padding: 20px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #ffffff;
}

/* Sidebar Items */
.sidebar-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    border-radius: 0;
    margin: 0 10px;
    border-radius: 8px;
    justify-content: flex-start;
}

/* Adjust icons position when sidebar is collapsed */
.sidebar:not(:hover) .sidebar-item {
    justify-content: flex-start;
    padding: 15px 8px;
}

.sidebar-item:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: translateX(5px);
}

.sidebar-item.active {
    background: #e5e7eb;
    color: #1f2937;
    border-left: 4px solid #0e3b6f;
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0e3b6f;
    border-radius: 0 4px 4px 0;
}

/* Sidebar Icons */
.sidebar-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Center icons when sidebar is collapsed */
.sidebar:not(:hover) .sidebar-item i {
    margin: 0;
}

/* Sidebar Text */
.sidebar-text {
    margin-left: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.sidebar:hover .sidebar-text {
    opacity: 1;
}

/* Sidebar Support Icon */
.sidebar-support-icon {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 10px;
}

.sidebar-support-icon:hover {
    background: #f3f4f6;
    color: #374151;
}

.sidebar-support-icon i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Adjust main content to account for sidebar */
body {
    margin-left: 60px;
    transition: margin-left 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 50px;
    }
    
    .sidebar:hover {
        width: 200px;
    }
    
    body {
        margin-left: 50px;
    }
    
    .top-header {
        margin-left: -50px;
    }
    
    .header-container {
        padding-left: 50px;
    }
    
    .header-left {
        padding-left: 0.75rem;
    }
    
    .header-logo-img {
        height: 2rem;
        max-width: 150px;
    }
    
    .sidebar-item {
        padding: 12px 10px;
    }
    
    .sidebar:not(:hover) .sidebar-item {
        justify-content: center;
        padding: 12px 5px;
    }
    
    .sidebar-item i {
        font-size: 1.1rem;
    }
    
    .sidebar-text {
        font-size: 0.85rem;
        margin-left: 12px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 45px;
    }
    
    .sidebar:hover {
        width: 180px;
    }
    
    body {
        margin-left: 45px;
    }
    
    .top-header {
        margin-left: -45px;
    }
    
    .header-container {
        padding-left: 45px;
    }
    
    .header-left {
        padding-left: 0.5rem;
    }
    
    .header-logo-img {
        height: 1.75rem;
        max-width: 120px;
    }
    
    .sidebar-item {
        padding: 10px 8px;
    }
    
    .sidebar:not(:hover) .sidebar-item {
        justify-content: center;
        padding: 10px 5px;
    }
    
    .sidebar-item i {
        font-size: 1rem;
    }
}

/* ===== TASK COUNT LOADED INDICATOR ===== */
.task-count-loaded {
    color: #22c55e !important;
    font-weight: 600;
}

/* ===== CONTRACT COUNT LOADED INDICATOR ===== */
.contract-count-loaded {
    color: #22c55e !important;
    font-weight: 600;
}

/* ===== ESTILOS PARA EXPANSÃO DE CONTRATOS NOS CARDS DE CLIENTES ===== */

/* Ícone de expandir */
.expand-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* ===== ESTILOS PARA ÍCONES DOS CARDS DE CLIENTES ===== */

/* Ícone genérico para cards de clientes */
.client-card-icon {
    position: absolute;
    top: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.client-card-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.client-card-icon i {
    font-size: 12px;
    color: #333;
    transition: color 0.3s ease;
}

.client-card-icon:hover i {
    color: #007bff;
}

/* Ícone específico para redirecionamento de tarefas */
.tarefa-redirect-icon {
    right: 50px; /* Posicionar à esquerda do expand-icon */
}

.tarefa-redirect-icon:hover i {
    color: #28a745; /* Verde para indicar redirecionamento */
}

.expand-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.expand-icon i {
    font-size: 12px;
    color: #333;
    transition: transform 0.3s ease;
}

.expand-icon:hover i {
    color: #007bff;
}

/* Seção expansível de contratos */
.contracts-section {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease-out;
}

.contracts-section.expanded {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 1000px;
        transform: translateY(0);
    }
}

/* Grid de contratos dentro dos cards de clientes */
.contracts-grid {
    margin-top: 8px;
    position: relative;
}

.contracts-grid .contrato-card {
    flex: 0 0 180px;
    min-width: 170px;
    max-width: 200px;
    transition: transform 0.3s ease;
}

/* Container de navegação dos contratos */
.contracts-navigation {
    position: relative;
    width: 100%;
}

.contracts-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    gap: 8px;
}

/* Setas de navegação */
.contract-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contract-nav-arrow:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.contract-nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.contract-nav-arrow.left {
    left: -16px;
}

.contract-nav-arrow.right {
    right: -16px;
}

.contract-nav-arrow i {
    font-size: 12px;
    color: #333;
}

.contract-nav-arrow:hover i {
    color: #007bff;
}

/* Loading de contratos */
.contracts-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.contracts-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ajustes para cards de contratos dentro da expansão */
.contracts-section .contrato-card {
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contracts-section .contrato-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Responsividade para seção de contratos expandida */
@media (max-width: 768px) {
    .contracts-grid .contrato-card {
        flex: 0 0 150px;
        min-width: 140px;
    }
    
    .expand-icon {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
    }
    
    .expand-icon i {
        font-size: 11px;
    }
    
    .contracts-section {
        margin-top: 10px;
        padding-top: 10px;
    }
}

/* Form Header com botão Add Clientes */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

#clientFormSection .form-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 1rem;
}

#clientFormSection .form-header-top {
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

#clientFormSection .form-title {
    margin: 0;
}

#clientFormSection .form-subtitle {
    margin: 0;
}

/* Agrupa os botões à direita para evitar espaçamento central */
.form-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-client-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0e3b6f;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.add-client-btn:hover {
    background: #144577;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(14, 59, 111, 0.3);
}

.add-client-btn i {
    font-size: 14px;
}

/* Botão de Clientes Incompletos */
.incomplete-clients-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #f39c12;
    border: 1px solid #f39c12;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.incomplete-clients-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.incomplete-clients-btn.active {
    background: #f39c12;
    color: white;
    border-color: #f39c12;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.4);
    transform: translateY(-1px);
}

.incomplete-clients-btn i {
    font-size: 14px;
}

.incomplete-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.incomplete-badge:empty {
    display: none;
}

/* ========================================
   🚀 ESTILOS DE PAGINAÇÃO
   ======================================== */

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-limit-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-limit-selector label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.pagination-limit-select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-limit-select:hover {
    border-color: #0e3b6f;
}

.pagination-limit-select:focus {
    outline: none;
    border-color: #0e3b6f;
    box-shadow: 0 0 0 3px rgba(14, 59, 111, 0.1);
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
    background: #0e3b6f;
    border-color: #0e3b6f;
    color: white;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination-current {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    padding: 0 12px;
}

.pagination-current span {
    color: #0e3b6f;
    font-weight: 600;
}

/* Responsividade da paginação */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-limit-selector,
    .pagination-info,
    .pagination-controls {
        justify-content: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
    }
}

/* ===== CONFIGURAÇÃO DE CLIENTES STYLES ===== */

.configuracao-clientes-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-top: 2rem;
}

/* Loading Message */
.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
    font-size: 1rem;
}

.loading-message i {
    margin-right: 0.5rem;
    color: var(--primary-blue);
}

/* Clientes List */
.clientes-list {
    display: grid;
    gap: 0.75rem;
}

.cliente-item {
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.cliente-item:hover {
    background: var(--gray-100);
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.cliente-nome {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-800);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #dc3545;
}

.error-content i {
    font-size: 2rem;
}

.error-content p {
    font-size: 1rem;
    margin: 0;
    color: var(--gray-700);
}

/* ===== CLIENTS LISTING SECTION STYLES ===== */

.clients-listing-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.listing-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.listing-controls-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.incomplete-description {
    margin: 1rem 0 1.5rem 0;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
}

.incomplete-description p {
    margin: 0;
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 500;
}

.search-container {
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--gray-500);
    font-size: 14px;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.add-client-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #0e3b6f;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.add-client-btn:hover {
    background: #144577;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 59, 111, 0.3);
}

.clients-list-container {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    min-height: 400px;
}

.clients-simple-list {
    display: grid;
    gap: 0.5rem;
}

.client-list-item {
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.client-list-item:hover {
    background: var(--gray-50);
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.client-list-item.status-inativo {
    opacity: 0.6;
    background: var(--gray-50);
}

.client-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    margin: 0;
    flex: 1;
}

.client-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: #10b981;
    color: white;
}

.client-list-item.status-inativo .client-status-badge {
    background: #6b7280;
    color: white;
}

.client-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.client-action-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.client-list-item.status-inativo .client-action-btn:hover {
    background: #10b981;
    border-color: #10b981;
}

.no-clients-message {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
}

.no-clients-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.no-clients-message p {
    font-size: 1rem;
    margin: 0;
}

/* Form Header Top (para o botão voltar) */
.form-header-top {
    margin-bottom: 1rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--gray-50);
    color: var(--gray-800);
    border-color: var(--gray-400);
}

/* Responsividade */
@media (max-width: 768px) {
    .listing-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: none;
    }
    
    .add-client-btn {
        justify-content: center;
    }
}

/* ===== ESTILOS PARA MODAL DE INATIVAÇÃO E BOTÃO INATIVAR ===== */

/* Botão de Inativar */
.btn-inactivate {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: auto;
}

.btn-inactivate:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-inactivate:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.3);
}

.btn-inactivate i {
    font-size: 11px;
}

/* Modal de Confirmação de Inativação */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    font-size: 20px;
    color: #ffc107;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal-body {
    padding: 20px 24px;
}

.modal-body p {
    margin: 0 0 12px;
    color: #495057;
    line-height: 1.5;
}

.modal-client-name {
    font-weight: 600;
    color: #212529;
    font-size: 16px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.modal-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    color: #856404;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
}

.modal-warning i {
    color: #ffc107;
    margin-top: 2px;
    flex-shrink: 0;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

/* Botões do Modal */
.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-confirm {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-confirm:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-confirm:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-confirm:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Estados de loading */
.btn-confirm .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .btn-cancel,
    .btn-confirm {
        width: 100%;
        justify-content: center;
    }
    
    .modal-title {
        font-size: 16px;
    }
}

/* ========================================
   🚀 ESTILOS PARA MODAL DE INATIVAÇÃO
   ======================================== */

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Modal content */
.modal-overlay .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    animation: slideIn 0.2s ease-out;
    border: 1px solid #e5e7eb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal body */
.modal-overlay .modal-body {
    padding: 24px 24px 20px 24px;
}

.modal-title-simple {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.5;
    text-align: center;
}

.modal-title-simple span {
    font-weight: 600;
    color: #111827;
}

/* Modal footer */
.modal-overlay .modal-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 0;
}

/* Botões do modal */
.btn-cancel,
.btn-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.btn-cancel {
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-cancel:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-confirm {
    background-color: #dc2626;
    color: white;
}

.btn-confirm:hover:not(:disabled) {
    background-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn-confirm:disabled {
    background-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Estilo específico para botão de ativar */
.btn-confirm.activate-btn {
    background-color: #059669;
}

.btn-confirm.activate-btn:hover:not(:disabled) {
    background-color: #047857;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

/* ========================================
   🚀 ESTILOS PARA BOTÃO DE INATIVAR
   ======================================== */

.client-action-btn.inactivate-btn {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    position: relative;
    overflow: hidden;
}

.client-action-btn.inactivate-btn:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
    transform: translateY(-1px);
}

.client-action-btn.inactivate-btn i {
    font-size: 0.875rem;
}

/* Ícone SVG (ban) com animação */
.client-action-btn.inactivate-btn .icon-ban {
    width: 14px;
    height: 14px;
    color: #dc2626;
    transition: transform 0.6s ease;
    z-index: 2;
}

/* ANIMAÇÃO — gira 360° e volta ao normal */
.client-action-btn.inactivate-btn:hover .icon-ban {
    transform: rotate(360deg);
}

/* Efeito de brilho em background */
.client-action-btn.inactivate-btn::before {
    content: "";
    width: 180%;
    height: 180%;
    background-color: rgba(220, 38, 38, 0.15);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    filter: blur(10px);
    transition: transform 0.35s ease-out;
    z-index: 1;
}

.client-action-btn.inactivate-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Botão de Ativar Cliente */
.client-action-btn.activate-btn {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.client-action-btn.activate-btn:hover {
    background-color: #dcfce7;
    border-color: #86efac;
    color: #15803d;
    transform: translateY(-1px);
}

.client-action-btn.activate-btn i {
    font-size: 0.875rem;
}

/* Botão de Editar Cliente */
.client-action-btn.edit-btn {
    background-color: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.client-action-btn.edit-btn:hover {
    background-color: #e0f2fe;
    border-color: #7dd3fc;
    color: #0284c7;
    transform: translateY(-1px);
}

.client-action-btn.edit-btn i {
    font-size: 0.875rem;
}

/* ===== ANIMAÇÃO DO BOTÃO EDITAR (CARTEIRA CLIENTES) ===== */
.client-action-btn.edit-btn.edit-anim {
    position: relative;
    overflow: hidden;
}

/* ícone */
.client-action-btn.edit-btn .edit-anim-icon {
    height: 14px;
    fill: currentColor;
    position: relative;
    z-index: 3;
    transition: all 0.2s;
    transform-origin: bottom;
}

/* movimento do lápis */
.client-action-btn.edit-btn.edit-anim:hover .edit-anim-icon {
    transform: rotate(-15deg) translateX(5px);
}

/* barra deslizante - começa na ponta do lápis */
.client-action-btn.edit-btn.edit-anim::after {
    content: "";
    width: 20px;
    height: 1.5px;
    position: absolute;
    bottom: 4px;
    left: -5px;
    background-color: currentColor;
    border-radius: 2px;
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-out, left 0.5s ease-out;
}

.client-action-btn.edit-btn.edit-anim:hover::after {
    transform: scaleX(1);
    left: 0px;
    transform-origin: right;
}

/* Container de ações dos clientes */
.client-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsividade do modal */
@media (max-width: 640px) {
    .modal-overlay .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-overlay .modal-header,
    .modal-overlay .modal-body,
    .modal-overlay .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .modal-overlay .modal-footer {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-confirm {
        width: 100%;
    }
}

/* ===== TOGGLE SWITCH MINIMALISTA PARA FILTRO DE STATUS ===== */
.status-toggle-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-option-minimal {
    font-size: 11px;
    color: var(--gray-500);
    transition: color 0.2s ease;
    user-select: none;
    cursor: pointer;
    font-weight: 500;
}

.toggle-option-minimal.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.toggle-switch-minimal {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.toggle-input-minimal {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-minimal {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e0;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.toggle-slider-minimal:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.toggle-input-minimal:checked + .toggle-slider-minimal {
    background: var(--primary-blue);
}

.toggle-input-minimal:checked + .toggle-slider-minimal:before {
    transform: translateX(16px);
}

.toggle-slider-minimal:hover {
    opacity: 0.8;
}
/* Ícone de informação minimalista ao lado de rótulos */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: #fd7e14;
  font-size: 0.9em;
  cursor: help;
}
/* TimeTrack Detalhes - Card */
.tt-card {
  position: absolute;
  z-index: 2000;
  width: 460px;
  max-width: 90vw;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 16px 20px;
  display: block;
}
.tt-card-header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.tt-card-title { font-weight:600; display:flex; align-items:center; gap:8px; color: inherit; }
.tt-card-title i { color:#4b5563; }
.tt-tarefas-loading { color:#6B7280; font-size:13px; }
.tt-tarefas-list { display:flex; flex-direction:column; gap:12px; }
.tt-redirect { background:transparent; border:none; padding:0; cursor:pointer; display:inline-flex; align-items:center; }
.tt-redirect i { color:#f59e0b; font-size:14px; }

/* Tarefa item */
.tt-tarefa-item { 
    display:flex; 
    flex-direction:column; 
    gap:10px; 
    border:1px solid #eef2f7; 
    border-radius:12px; 
    padding:12px; 
    background:#fff;
    transition: all 0.2s ease;
}

.tt-tarefa-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tt-task-header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.tt-task-title { font-weight:600; color:#144577; font-size:14px; text-decoration:none; }
.tt-task-title:hover { text-decoration:underline; }
.tt-task-dates { display:flex; align-items:center; gap:12px; color:#374151; font-size:12px; }
.tt-task-metrics { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#374151; font-size:12px; }
.tt-estimado { color:#6B7280; }
.tt-status-chip { background:#eef2ff; color:#1e3a8a; padding:2px 8px; border-radius:999px; font-size:12px; }
.tt-rastreado-row { color:#374151; }

/* Colaboradores dentro de tarefas */
.tt-colaborador-item {
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

/* Registros dentro de colaboradores */
.tt-colaborador-registros {
    display: none;
    flex-direction: column;
    gap: 6px;
}

/* Seta de expandir colaboradores */
.tt-colaborador-expand-arrow i {
    transition: transform 0.2s ease;
}

/* Seta de expandir tarefas */
.tt-rastreado-arrow i {
    transition: transform 0.2s ease;
}
.tt-rastreado { color:#6B7280; }
.tt-rastreado-arrow { background:transparent; border:none; padding:0; cursor:pointer; display:inline-flex; align-items:center; }
.tt-rastreado-arrow i { color:#1e3a8a; font-size:12px; }

/* Colaboradores */
.tt-rastreio-users { flex-direction:column; gap:6px; padding-left:8px; border-left:2px solid #E5E7EB; }
.tt-collab-block { display:flex; flex-direction:column; gap:6px; }
.tt-collab-header { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:#374151; }
.tt-collab-name { }
.tt-collab-total { color:#1e3a8a; }
.tt-bullets { margin-left:8px; }
.tt-bullet { display:flex; align-items:center; gap:8px; color:#6B7280; font-size:12px; }
.tt-empty { color:#6B7280; font-size:12px; }
.no-tarefas { color:#6B7280; }

/* ========================================
   🎨 DASHBOARD CLIENTES - ESTILOS
   ======================================== */

.filters-container {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.filters-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

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

.filter-group input[type="date"] {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-group input[type="date"]:hover {
    border-color: #007bff;
}

.filter-group input[type="date"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #e7f3ff;
    color: #0066cc;
    border-radius: 20px;
    font-size: 13px;
}

.filter-badge .remove {
    cursor: pointer;
    font-weight: bold;
    color: #0066cc;
}

.filter-badge .remove:hover {
    color: #004499;
}

.results-container {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 20px;
}

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

.results-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.results-count {
    color: #6c757d;
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.contratos-list {
    display: grid;
    gap: 16px;
}

.contrato-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    background: #f8f9fa;
    transition: all 0.2s;
}

.contrato-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.contrato-card h4 {
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
}

.contrato-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    font-size: 14px;
}

.contrato-detail {
    display: flex;
    flex-direction: column;
}

.contrato-detail label {
    font-weight: 600;
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 4px;
}

.contrato-detail span {
    color: #333;
}

.tarefas-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #dee2e6;
}

/* Grid adaptativo para cards de clientes (máximo 4 colunas) */
.clientes-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* O número de colunas será definido dinamicamente via JavaScript */
}

/* Estilos para cards de clientes no dashboard.clientes.html */

/* Responsividade - override quando necessário */
@media (max-width: 1200px) {
    .clientes-grid {
        /* Em telas menores, máximo 3 colunas */
    }
}

@media (max-width: 900px) {
    .clientes-grid {
        /* Em telas médias, máximo 2 colunas */
    }
}

@media (max-width: 600px) {
    .clientes-grid {
        /* Em telas pequenas, sempre 1 coluna */
        grid-template-columns: 1fr !important;
    }
}

.tarefas-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.tarefa-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    background: white;
}

.tarefa-card h5 {
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.tarefa-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    font-size: 13px;
}

/* ===== CARDS LATERAIS - DASHBOARD CLIENTES ===== */
/* Remover hover do item de resumo */
.resumo-item:hover {
    transform: none;
    box-shadow: none;
}

/* Estilo da setinha de resumo (igual ao produtos-arrow) */
.resumo-arrow.produtos-arrow {
    margin-left: 4px;
    color: #6b7280;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline-block;
}

/* Hover apenas na setinha - destaque azul */
.resumo-arrow.produtos-arrow:hover {
    background-color: #007bff;
    color: white;
}

/* Card lateral */
.lateral-card {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.lateral-card.open {
    right: 0;
}

.lateral-card-header {
    padding: 20px;
    border-bottom: 2px solid #dee2e6;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.lateral-card-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.lateral-card-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lateral-card-close:hover {
    background: #e9ecef;
    color: #333;
}

.lateral-card-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.lateral-card-item {
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.lateral-card-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.lateral-card-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.lateral-card-item-detail {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    font-size: 14px;
}

.lateral-card-item-detail label {
    font-weight: 600;
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 4px;
}

.lateral-card-item-detail span {
    color: #333;
}

/* Colaborador item com seta de expandir */
.colaborador-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.colaborador-item:hover {
    border-color: #9c27b0;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.1);
}

.colaborador-info {
    flex: 1;
}

.colaborador-nome {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 4px;
}

.colaborador-tempo {
    font-size: 14px;
    color: #6c757d;
}

.colaborador-expand {
    font-size: 18px;
    color: #9c27b0;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.colaborador-item.expanded .colaborador-expand {
    transform: rotate(90deg);
}

.colaborador-tarefas {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
    display: none;
}

.colaborador-item.expanded .colaborador-tarefas {
    display: block;
}

/* Tarefa dentro do colaborador */
.tarefa-colaborador-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.tarefa-colaborador-item:hover {
    border-color: #28a745;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.1);
    background: #f0f8f4;
}

.tarefa-colaborador-info {
    flex: 1;
}

.tarefa-colaborador-nome {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.tarefa-colaborador-tempo-realizado {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-top: 4px;
}

.tarefa-colaborador-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tarefa-redirect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.tarefa-redirect-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.tarefa-colaborador-expand {
    font-size: 16px;
    color: #28a745;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.tarefa-colaborador-item.expanded .tarefa-colaborador-expand {
    transform: rotate(90deg);
}

.tarefa-colaborador-registros {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    display: none;
    margin-left: 10px;
}

.tarefa-colaborador-item.expanded .tarefa-colaborador-registros {
    display: block;
}

/* Registro individual de uma tarefa */
.registro-tarefa-item {
    padding: 8px 10px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 12px;
    margin-left: 10px;
}

.registro-tarefa-tempo {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
}

.registro-tarefa-data {
    color: #6c757d;
    font-size: 11px;
    display: flex;
    align-items: center;
}

/* Estilos legados (mantidos para compatibilidade) */
.colaborador-registros {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
    display: none;
}

.colaborador-item.expanded .colaborador-registros {
    display: block;
}

.registro-tempo-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

.registro-tempo-item-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.registro-tempo-item-detail label {
    font-weight: 600;
    color: #6c757d;
    margin-right: 10px;
}

/* Overlay para fechar card lateral ao clicar fora */
.lateral-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lateral-card-overlay.show {
    display: block;
    opacity: 1;
}

/* ===== TAREFAS CARD (Hierarquia: Tarefa → Colaboradores → Registros) ===== */
.tarefa-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tarefa-item:hover {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.tarefa-item-info {
    flex: 1;
}

.tarefa-item-nome {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 4px;
}

.tarefa-item-tempo {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.tarefa-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tarefa-item-expand {
    font-size: 18px;
    color: #28a745;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.tarefa-item.expanded .tarefa-item-expand {
    transform: rotate(90deg);
}

.tarefa-item-colaboradores {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
    display: none;
    margin-left: 10px;
}

.tarefa-item.expanded .tarefa-item-colaboradores {
    display: block;
}

/* Colaborador dentro da tarefa */
.colaborador-tarefa-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.colaborador-tarefa-item:hover {
    border-color: #9c27b0;
    box-shadow: 0 2px 6px rgba(156, 39, 176, 0.1);
    background: #f3e5f5;
}

.colaborador-tarefa-info {
    flex: 1;
}

.colaborador-tarefa-nome {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.colaborador-tarefa-tempo {
    font-size: 13px;
    color: #6c757d;
}

.colaborador-tarefa-expand {
    font-size: 16px;
    color: #9c27b0;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.colaborador-tarefa-item.expanded .colaborador-tarefa-expand {
    transform: rotate(90deg);
}

.colaborador-tarefa-registros {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    display: none;
    margin-left: 10px;
}

.colaborador-tarefa-item.expanded .colaborador-tarefa-registros {
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    .lateral-card {
        width: 100vw;
        right: -100vw;
    }
    
    .lateral-card.open {
        right: 0;
    }
}

/* ===== ESTILOS PARA DETALHES DE COLABORADORES NO DASHBOARD ===== */
#dashboardMiniCard .colaborador-item {
    display: flex;
    flex-direction: row;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    border-radius: 6px;
}

#dashboardMiniCard .colaborador-item:last-child {
    border-bottom: none;
}

#dashboardMiniCard .colaborador-item:hover {
    background: rgba(0,123,255,0.05);
    padding-left: 8px;
    padding-right: 8px;
}

#dashboardMiniCard .usuario-icon {
    color: #007bff;
    margin-right: 12px;
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

#dashboardMiniCard .colaborador-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#dashboardMiniCard .colaborador-header {
    display: flex;
    align-items: center;
    width: 100%;
}

#dashboardMiniCard .colaborador-nome {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    margin-bottom: 2px;
    flex: 1;
}

#dashboardMiniCard .colaborador-tarefas-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #007bff;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}

#dashboardMiniCard .colaborador-tarefas-arrow:hover {
    background: #e3f2fd;
    transform: scale(1.1);
}

#dashboardMiniCard .colaborador-tarefas-arrow i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

#dashboardMiniCard .colaborador-realizadas-card {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
    display: inline-block;
}

#dashboardMiniCard .colaborador-realizadas-top-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

#dashboardMiniCard .colaborador-tarefas-container {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: none;
}