body { 
    font-family: 'Inter', sans-serif; 
}

.hidden { 
    display: none; 
}

.modal-enter { 
    animation: fadeIn 0.3s ease-out; 
}

.modal-exit { 
    animation: fadeOut 0.3s ease-in; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

.status-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.nav-link-active {
    border-bottom-width: 2px;
    border-color: #6366f1; /* indigo-500 */
    color: #1f2937; /* gray-800 */
    font-weight: 600;
}

.nav-link-inactive {
     border-bottom-width: 2px;
     border-color: transparent;
     color: #6b7280; /* gray-500 */
}

.th-style, .td-style {
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
}

/* Estilo para o dropdown de patrimônio */
details summary {
    cursor: pointer;
    list-style: none; /* Remove a seta padrão */
}

details summary::-webkit-details-marker {
    display: none; /* Remove a seta no Chrome/Safari */
}

details summary::after {
    content: ' ▸'; /* Seta personalizada */
    display: inline-block;
    transition: transform 0.2s;
}

details[open] summary::after {
    transform: rotate(90deg);
}

.activity-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left-width: 4px;
    border-left-color: #4f46e5;
    padding: 1rem;
    border-radius: 0.5rem;
}
.activity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.activity-card-body {
    font-size: 0.875rem;
    color: #4b5563;
}

body { 
    font-family: 'Inter', sans-serif; 
}

.hidden { 
    display: none; 
}

.modal-enter { 
    animation: fadeIn 0.3s ease-out; 
}

.modal-exit { 
    animation: fadeOut 0.3s ease-in; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

.status-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.nav-link-active {
    border-bottom-width: 2px;
    border-color: #6366f1; /* indigo-500 */
    color: #1f2937; /* gray-800 */
    font-weight: 600;
}

.nav-link-inactive {
     border-bottom-width: 2px;
     border-color: transparent;
     color: #6b7280; /* gray-500 */
}

.th-style, .td-style {
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
}

/* Estilo para o dropdown de patrimônio */
details summary {
    cursor: pointer;
    list-style: none; /* Remove a seta padrão */
}

details summary::-webkit-details-marker {
    display: none; /* Remove a seta no Chrome/Safari */
}

details summary::after {
    content: ' ▸'; /* Seta personalizada */
    display: inline-block;
    transition: transform 0.2s;
}

details[open] summary::after {
    transform: rotate(90deg);
}

.activity-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left-width: 4px;
    border-left-color: #4f46e5;
    padding: 1rem;
    border-radius: 0.5rem;
}
.activity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.activity-card-body {
    font-size: 0.875rem;
    color: #4b5563;
}

/* Estilos para o menu mobile (Hambúrguer) */
.mobile-menu-open {
    animation: slideIn 0.3s forwards;
    display: block; /* Garante que é visível quando aberto */
}

.mobile-menu-close {
    animation: slideOut 0.3s forwards;
}

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

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

/* ... (Seus estilos existentes) ... */

/* Estilos para o menu mobile (Hambúrguer) */
.mobile-menu-open {
    animation: slideIn 0.3s forwards;
    display: block; /* Garante que é visível quando aberto */
}

.mobile-menu-close {
    animation: slideOut 0.3s forwards;
}

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

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

/* Esconder elementos móveis no desktop e mostrar o select padrão */
@media (min-width: 768px) { /* Para telas maiores que 768px (desktop) */
    .mobile-only {
        display: none !important;
    }
    .desktop-only {
        display: block !important;
    }
    /* Garantir que o modal de seleção de patrimônio mobile esteja oculto no desktop */
    #patrimonio-select-modal {
        display: none !important;
    }
}

/* Esconder o select padrão no mobile e mostrar elementos móveis */
@media (max-width: 767px) { /* Para telas menores que 767px (mobile e tablet) */
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    /* Ajustes para o modal de seleção de patrimônio mobile */
    #patrimonio-select-modal .modal-enter {
        width: 95% !important; /* Ajusta a largura para telas menores */
        max-height: 90vh; /* Limita a altura para caber na tela */
    }
}

/* Estilos para os checkboxes dentro do modal de patrimônio */
.patrimonio-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.patrimonio-checkbox-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
}

.patrimonio-checkbox-item label {
    flex-grow: 1;
    cursor: pointer;
}

/* ... (Seus estilos existentes) ... */

/* Estilos para o menu mobile (Hambúrguer) */
.mobile-menu-open {
    animation: slideIn 0.3s forwards;
    display: block; /* Garante que é visível quando aberto */
}

.mobile-menu-close {
    animation: slideOut 0.3s forwards;
}

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

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

/* Esconder elementos móveis no desktop e mostrar o select padrão */
@media (min-width: 768px) { /* Para telas maiores que 768px (desktop) */
    .mobile-only {
        display: none !important;
    }
    .desktop-only {
        display: block !important;
    }
    /* Garantir que o modal de seleção de patrimônio mobile esteja oculto no desktop */
    #patrimonio-select-modal {
        display: none !important;
    }
}

/* Esconder o select padrão no mobile e mostrar elementos móveis */
@media (max-width: 767px) { /* Para telas menores que 767px (mobile e tablet) */
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    /* Ajustes para o modal de seleção de patrimônio mobile */
    #patrimonio-select-modal .modal-enter {
        width: 95% !important; /* Ajusta a largura para telas menores */
        max-height: 90vh; /* Limita a altura para caber na tela */
    }
}

/* Estilos para os checkboxes dentro do modal de patrimônio */
.patrimonio-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.patrimonio-checkbox-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
}

.patrimonio-checkbox-item label {
    flex-grow: 1;
    cursor: pointer;
}

/* Estilos para a barra de carregamento indeterminada */
.loading-bar-indeterminate {
    animation: indeterminate-progress 1s linear infinite;
    transform-origin: 0% 50%;
    width: 100%; /* Garante que a barra comece preenchendo */
}

@keyframes indeterminate-progress {
    0% {
        transform: translateX(-100%) scaleX(0);
    }
    50% {
        transform: translateX(0%) scaleX(0.7);
    }
    100% {
        transform: translateX(100%) scaleX(0);
    }
}

/* Estilos para o Tooltip de Clientes */
#client-tooltip {
  position: absolute;
  display: none;
  background-color: rgba(31, 41, 55, 0.9); /* Fundo escuro semi-transparente */
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  max-width: 280px;
  z-index: 100;
  pointer-events: none; /* Impede que o tooltip bloqueie o mouse */
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  
  /* --- REGRAS IMPORTANTES PARA A ROLAGEM --- */
  max-height: 200px; /* Altura máxima de 200 pixels */
  overflow-y: auto; /* Adiciona a barra de rolagem vertical SE necessário */
}

/* Estilos para o Modal de Atualização de Versão */
#feedback-modal.version-update .modal-enter {
    max-width: 480px; /* Um pouco maior */
    text-align: left;
    padding: 0; /* Remove o padding antigo */
}

#feedback-modal.version-update #modal-icon-container {
    display: none; /* Esconde o ícone padrão */
}

#feedback-modal.version-update #modal-title {
    padding: 1.25rem 1.5rem; /* 20px 24px */
    background-color: #f1f5f9; /* slate-100 */
    border-bottom: 1px solid #e2e8f0; /* slate-200 */
    font-size: 1.125rem; /* text-lg */
    font-weight: 700;
    color: #1e293b; /* slate-800 */
    text-align: center;
}

#feedback-modal.version-update #modal-message {
    padding: 1.5rem; /* 24px */
    font-size: 0.9rem;
    line-height: 1.6;
}

#feedback-modal.version-update #modal-message ul {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
}

#feedback-modal.version-update #modal-close-button {
    margin: 0 1.5rem 1.5rem 1.5rem; /* Adiciona margem ao botão */
    width: calc(100% - 3rem);
}