/* ===============================================================================
   BORA CRM - ESTILOS PERSONALIZADOS
   Arquivo criado para customizações visuais do sistema
   Última atualização: 27/10/2025
   =============================================================================== */

/* ================= ÍCONES PERSONALIZADOS DO SIDEBAR (MENU LATERAL) ================= */

/* Esconde o ícone FontAwesome quando uma imagem personalizada está sendo usada */
.sidebar ul.nav li a .menu-icon.custom-menu-icon {
    display: none !important;
}

/* Estilos para imagens de ícones personalizados no SIDEBAR */
.sidebar ul.nav li a .menu-icon-img {
    width: 26px !important;                    /* Largura da imagem */
    height: 26px !important;                   /* Altura da imagem */
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 10px !important;             /* Espaçamento entre ícone e texto */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    object-fit: contain !important;            /* Mantém proporção da imagem */
}

/* Estilos para ícones personalizados em SUBMENUS */
.sidebar ul.nav li .nav-second-level li a .menu-icon-img {
    width: 32px !important;                    /* Tamanho maior para submenus */
    height: 32px !important;
    margin-right: 8px !important;
}

/* Estilos para ícones personalizados no MENU DE DEFINIÇÕES */
/*#setup-menu li a .menu-icon-img {
/*    width: 35px !important;                    /* Tamanho maior para menu de definições */
/*    height: 35px !important;
/*    margin-right: 10px !important;
/*}

/* Efeitos HOVER para ícones personalizados */
.sidebar ul.nav li a:hover .menu-icon-img,
.sidebar ul.nav li.active a .menu-icon-img {
    transform: scale(1.2) !important;          /* Aumenta ligeiramente no hover */
    transition: transform 0.2s ease !important;
}

/* Responsividade - Telas MÉDIAS (≤768px) */
@media (max-width: 768px) {
    .sidebar ul.nav li a .menu-icon-img {
        width: 30px !important;
        height: 30px !important;
        margin-right: 8px !important;
    }
}

/* Responsividade - Telas PEQUENAS (≤480px) */
@media (max-width: 480px) {
    .sidebar ul.nav li a .menu-icon-img {
        width: 28px !important;
        height: 28px !important;
        margin-right: 6px !important;
    }
}

/* PERSONALIZAÇÃO: Linha pontilhada para separar grupos de menus no sidebar (arquivo aside.php) */
.sidebar-divider {
    border: none;
    border-top: 1px dashed #bdbdbd;
    margin: 8px 0;
    height: 0;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.7;
}

/* PERSONALIZAÇÃO: Separador de seção no sidebar com linha pontilhada e texto pequeno (arquivo aside.php) */
.sidebar-section-separator {
    display: flex;
    align-items: center;
    width: 90%;
    margin: 10px auto;
    color: #888;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}
.sidebar-section-separator::before,
.sidebar-section-separator::after {
    content: '';
    flex: 1;
    border-top: 1px dashed #bdbdbd;
    margin: 0 8px;
    opacity: 0.7;
}
.sidebar-section-separator span {
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #888;
}

/* ================= FIM DOS ESTILOS PARA ÍCONES PERSONALIZADOS DO SIDEBAR ================= */

/* ===== PERSONALIZAÇÕES DO NAVBAR ===== */
/* 
 * PERSONALIZAÇÃO: Estilos CSS para ícones personalizados do navbar
 * - Substituição de ícones SVG/FontAwesome por imagens PNG
 * - Tamanho consistente: 20px desktop, 18px mobile
 * - Efeitos de hover com escala e brilho
 * - Responsividade para diferentes telas
 */

/* PERSONALIZAÇÃO: Ícones personalizados do navbar - TRECHO APENAS ALINHA OS ÍCONES FUNCIONANDO E TESTADO POR ADEYCSON */
.navbar-nav .icon img {
    vertical-align: middle !important;
    display: inline-block !important;
    object-fit: contain;
    transition: all 0.2s ease;
}

/* PERSONALIZAÇÃO: Hover effect para ícones do navbar */
.navbar-nav .icon a:hover img {
    transform: scale(1.5); /* aumenta o tamanho do ícone/imagem ao passar o mouse por cima */
    filter: brightness(1.1); /* aplica um brilho no ícone/imagem ao passar o mouse por cima */
}

/* PERSONALIZAÇÃO: Ícone de quick create (mais) - Tamanho e alinhamento padrão */
.icon-mais-navbar {
    width: 28px !important;      /* Largura do ícone 'mais.png' - reduzido 20% (35px → 28px) */
    height: 28px !important;     /* Altura do ícone 'mais.png' - reduzido 20% (35px → 28px) */
    object-fit: contain;
    vertical-align: middle !important; /* Alinha verticalmente com os outros ícones */
    display: inline-block !important;
    /* Não usar margin-left, margin-right ou margin negativa */
    transition: all 0.2s ease;
}
@media (max-width: 991px) {
    .icon-mais-navbar {
        width: 22px !important;      /* Mobile - reduzido 20% (28px → 22px) */
        height: 22px !important;
    }
}

/* PERSONALIZAÇÃO: Alinhamento vertical do ícone 'mais.png' (Quick Create) no navbar */
.navbar-nav .icon > a[data-toggle="dropdown"] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 57px; /* igual ao padrão do navbar */
    padding: 0 !important;
}

/* PERSONALIZAÇÃO: Ajuste para todos os ícones PNG do navbar (exceto o ícone 'mais.png')
 *
 * Para alterar o TAMANHO dos ícones do navbar, ajuste os valores de width e height abaixo:
 * Exemplo: width: 24px; height: 24px;
 */
.navbar-icon-png {
    width: 26px !important;   /* <-- Ajuste aqui a largura dos ícones do navbar */
    height: 26px !important;  /* <-- Ajuste aqui a altura dos ícones do navbar */
    object-fit: contain;
    vertical-align: middle !important;
    display: inline-block !important;
    transition: all 0.2s ease;
}
@media (max-width: 991px) {
    .navbar-icon-png {
        width: 20px !important;   /* <-- Ajuste aqui a largura dos ícones do navbar em telas menores */
        height: 20px !important;  /* <-- Ajuste aqui a altura dos ícones do navbar em telas menores */
    }
}

/* PERSONALIZAÇÃO: Espaçamento igual entre ícones do navbar
 *
 * Para alterar o ESPAÇAMENTO HORIZONTAL entre os ícones do navbar, ajuste o valor de margin-right abaixo:
 * Exemplo: margin-right: 15px;
 */
.navbar-nav .icon {
    margin-right: 15px !important;  /* <-- Ajuste aqui o espaçamento horizontal entre todos os ícones do navbar */
}
.navbar-nav .icon:last-child {
    margin-right: 0 !important;    /* <-- O último ícone não recebe espaçamento à direita */
}
@media (max-width: 991px) {
    .navbar-nav .icon {
        margin-right: 10px !important;
    }
    .navbar-nav .icon:last-child {
        margin-right: 0 !important;
    }
}
@media (max-width: 480px) {
    .navbar-nav .icon {
        margin-right: 8px !important;
    }
    .navbar-nav .icon:last-child {
        margin-right: 0 !important;
    }
}

/* PERSONALIZAÇÃO: Redução do padding interno dos links dos ícones */
.navbar-nav .icon a {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

/* Garante alinhamento e posicionamento correto do ícone de notificações no navbar */

.navbar-nav .notifications-icon .navbar-icon-png {
    margin: 0 !important;
    vertical-align: middle !important;
    display: inline-block !important;
    /* Ajuste fino, aumente se necessário */
    margin-top: 2px;
}

@media (min-width: 992px) {
    .navbar-nav .notifications-icon .navbar-icon-png {
        margin-top: 10px !important; /* ajuste até alinhar visualmente */
    }
}

/* PERSONALIZAÇÃO: Ajuste para ícone de quick create (removido seletor antigo que afetava configurações) */
/* Removido: .navbar-nav .icon a[data-toggle="dropdown"] { ... } */

/* Removido: .navbar-icon-img e .menu-icon-img pois não são mais utilizados para navbar/sidebar */

/* ================= FIM DO ESPAÇAMENTO ENTRE ÍCONES DO NAVBAR ================= */

/* ===== FIM DAS PERSONALIZAÇÕES DO NAVBAR ===== */

/* ================= PERSONALIZAÇÃO DO PROFILE NA SIDEBAR ================= */

/* Remove a borda do botão de profile e faz ocupar toda a largura da sidebar */
.sidebar-user-profile {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 80px !important;
    padding: 0 !important;                      /* Remove padding lateral */
    width: 100% !important;                     /* Container ocupa 100% */
}

.sidebar-user-profile .dropdown-toggle.profile {
    border: none !important;                    /* Remove a borda */
    border-radius: 0 !important;                /* Remove bordas arredondadas */
    margin: 0 !important;                       /* Remove margens */
    padding: 12px 15px !important;              /* Padding interno consistente */
    box-shadow: none !important;                /* Remove sombra */
    width: 100% !important;                     /* Ocupa 100% da largura */
    background: #f3f4f6 !important;             /* Cor de fundo suave (cinza claro) */
    opacity: 1 !important;                      /* Remove transparência */
}

/* Ajusta o hover para manter consistente sem borda */
.sidebar-user-profile .dropdown-toggle.profile:hover,
.sidebar-user-profile .dropdown-toggle.profile:focus {
    border: none !important;
    box-shadow: none !important;
    background: #e5e7eb !important;             /* Cor um pouco mais escura no hover */
    opacity: 1 !important;
}

/* ================= FIM DA PERSONALIZAÇÃO DO PROFILE NA SIDEBAR ================= */

/* PERSONALIZAÇÃO White Label: Tamanho do logotipo da tela de RODAPÉ login (uma tecnologia...) */
.login-logo {
    height: 22px;         /* Altura do logotipo na tela de login (menor) */
    width: auto;          /* Largura automática para não distorcer a imagem */
    max-width: 110px;      /* Largura máxima permitida para o logotipo de login */
    object-fit: contain;  /* Garante que a imagem fique inteira e sem cortes */
}

@media (max-width: 768px) {
    .login-logo {
        height: 16px;         /* Altura do logotipo na tela de login em telas pequenas */
        max-width: 60px;      /* Largura máxima do logotipo em telas pequenas */
    }
}

/* PERSONALIZAÇÃO: Branding no rodapé do sidebar */
.sidebar-branding {
    text-align: center;
    margin: 32px 0 12px 0;
    padding: 0 8px;
    font-size: 13px;
    color: #6b7280;
    opacity: 0.85;
}
.sidebar-branding img {
    display: block;
    margin: 4px auto 0 auto;
    max-width: 110px;
    height: auto;
}
@media (max-width: 991px) {
    .sidebar-branding {
        font-size: 11px;
        margin: 18px 0 8px 0;
    }
    .sidebar-branding img {
        max-width: 80px;
    }
}

.authentication-form-wrapper {
    margin-bottom: 56px;
}
@media (max-width: 600px) {
    .authentication-form-wrapper {
        margin-bottom: 32px;
    }
}

/* ============================================ */
/* ESTILIZAÇÕES DOS ÍCONES DO RODAPÉ DO CARD KANBAN */
/* ============================================ */

/* Container do rodapé com os ícones */
.lead-placa-chip-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.lead-placa-chip-footer .placa-mercosul {
    margin: 0;
}

/* ============================================ */
/* ÍCONE DO TIPO DE VEÍCULO */
/* ============================================ */
.veiculo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 10px;
    cursor: help;
}

.veiculo-icon:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Cores específicas por tipo de veículo */
.veiculo-icon .fa-car {
    color: #007bff; /* Azul para carro */
}

.veiculo-icon .fa-motorcycle {
    color: #dc3545; /* Vermelho para moto */
}

.veiculo-icon .fa-truck {
    color: #6f42c1; /* Roxo para caminhão */
}

/* Placeholder para veículo não definido */
.veiculo-placeholder {
    opacity: 0.4;
}

.veiculo-placeholder .fa-car {
    color: #6c757d; /* Cinza para placeholder */
}

/* ============================================ */
/* ÍCONE LÂMPADA */
/* ============================================ */
.lampada-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 10px;
    cursor: help;
}

.lampada-icon:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.lampada-icon .fa-lightbulb {
    color: #ffc107; /* Amarelo para lâmpada */
}

/* ============================================ */
/* ÍCONE WHATSAPP */
/* ============================================ */
.whatsapp-visual-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* WhatsApp ativo (com link) */
.whatsapp-visual-icon.whatsapp-active {
    cursor: pointer;
}

.whatsapp-visual-icon.whatsapp-active:hover {
    background: #25D366;
    border-color: #25D366;
    transform: scale(1.1);
}

.whatsapp-visual-icon.whatsapp-active:hover .fa-whatsapp {
    color: #fff !important;
}

.whatsapp-visual-icon.whatsapp-active .fa-whatsapp {
    color: #25D366; /* Verde WhatsApp */
}

/* WhatsApp desabilitado (sem link) */
.whatsapp-visual-icon.whatsapp-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.whatsapp-visual-icon.whatsapp-disabled:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.whatsapp-visual-icon.whatsapp-disabled .fa-whatsapp {
    color: #6c757d; /* Cinza quando desabilitado */
}

/* ============================================ */
/* ÍCONE CIFRÃO */
/* ============================================ */
.cifrao-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 10px;
    cursor: help;
}

.cifrao-icon:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.cifrao-icon .fa-dollar-sign {
    color: #17a2b8; /* Azul ciano para cifrão */
}

/* ============================================ */
/* ÍCONE IMÓVEL (CASA) */
/* ============================================ */
.imovel-visual-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Imóvel ativo (com link) */
.imovel-visual-icon.imovel-active {
    cursor: pointer;
}

.imovel-visual-icon.imovel-active:hover {
    background: #007bff;
    border-color: #007bff;
    transform: scale(1.1);
}

.imovel-visual-icon.imovel-active:hover .fa-home {
    color: #fff !important;
}

.imovel-visual-icon.imovel-active .fa-home {
    color: #007bff; /* Azul para imóvel */
}

/* Imóvel desabilitado (sem link) */
.imovel-visual-icon.imovel-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.imovel-visual-icon.imovel-disabled:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.imovel-visual-icon.imovel-disabled .fa-home {
    color: #6c757d; /* Cinza quando desabilitado */
}

/* ============================================ */
/* PLACA MERCOSUL */
/* ============================================ 
.placa-mercosul {
    display: inline-block;
    width: 50px;
    height: 20px;
    background: white;
    border: 1px solid #333;
    border-radius: 3px;
    position: relative;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-size: 8px;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8px; /* Espaço para a faixa azul 
}

/* Faixa azul superior da placa 
.placa-mercosul::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #003194;
}

/* Placeholder da placa quando não há placa 
.placa-placeholder {
    opacity: 0.5;
    color: #6c757d !important;
}

/* Ocultado: Placa Mercosul por solicitação do cliente
.placa-mercosul,
.placa-placeholder {
    display: none !important;
}
*/

/* ===============================================================================
   ESPAÇO PARA OUTRAS CUSTOMIZAÇÕES CSS
   =============================================================================== */

/* ===============================================================================
   WIDGET DE PROGRESSO DO PROJETO
   Estilos para o widget de progresso na visualização de projetos
   =============================================================================== */

/* Animação de entrada do widget */
.progress-widget-modern {
    animation: slideInDown 0.5s ease-out forwards;
}

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

/* Barra de progresso com padrão listrado diagonal */
.progress-bar-striped {
    background-color: #10b981 !important; /* Verde base */
    background-image: repeating-linear-gradient(
        45deg,
        #10b981 0px,
        #10b981 8px,
        #22c55e 8px,
        #22c55e 16px
    ) !important;
    background-size: 16px 16px !important;
    position: relative;
    overflow: hidden;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
    visibility: visible !important;
}

/* Animação do padrão listrado (movimento) */
@keyframes stripeMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 16px 0;
    }
}

.progress-bar-striped::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 8px,
        rgba(255, 255, 255, 0.1) 8px,
        rgba(255, 255, 255, 0.1) 16px
    );
    background-size: 16px 16px;
    animation: stripeMove 1s linear infinite;
    pointer-events: none;
}

/* Efeito hover no widget */
.progress-widget-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animação do percentual */
.progress-percent-display {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

/* Cards de métricas */
.metric-card-modern {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

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

.task-progress-bar,
.days-progress-bar {
    transition: width 0.8s ease-out;
}

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

/* Scrollbar customizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

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

/* Forçar bordas arredondadas nos widgets */
.progress-widget-modern,
.metric-card-modern {
    border-radius: 1rem !important;
    -webkit-border-radius: 1rem !important;
    -moz-border-radius: 1rem !important;
}

/* Garantir que a barra de progresso seja visível */
#progress-bar-animated.progress-bar-striped,
.task-progress-bar,
.days-progress-bar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
    min-height: 4px !important;
}

/* Responsividade para o widget */
@media (max-width: 640px) {
    .progress-widget-modern .tw-p-6 {
        padding: 1rem;
    }
    
    .progress-widget-modern .tw-text-5xl {
        font-size: 2.5rem;
    }
    
    .progress-widget-modern .tw-w-16 {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .progress-widget-modern .tw-text-3xl {
        font-size: 1.5rem;
    }
}

/* ===============================================================================
   BOTÕES DE NAVEGAÇÃO DE PROJETOS (TABS)
   Estilos para os botões de navegação compactos na visualização de projetos
   =============================================================================== */

/* Botões de navegação compactos */
.project-tabs-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Estilos para botões ativos e inativos */
.project-tabs-modern a,
.project-tabs-modern button {
    transition: all 0.2s ease;
}

.project-tabs-modern a:hover,
.project-tabs-modern button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dropdown de tabs */
.tabs-submenu-wrapper {
    position: relative;
}

.tabs-submenu-wrapper .dropdown-menu {
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.tabs-submenu-wrapper .dropdown-menu li a {
    transition: all 0.15s ease;
}

.tabs-submenu-wrapper .dropdown-menu li a:hover {
    background-color: #f3f4f6;
}

/* ===============================================================================
   BREADCRUMB DE PROJETOS
   Estilos para o breadcrumb na visualização de projetos
   =============================================================================== */

/* Breadcrumb navigation */
nav[aria-label="breadcrumb"] ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav[aria-label="breadcrumb"] ol li {
    display: flex;
    align-items: center;
}

nav[aria-label="breadcrumb"] ol li a {
    transition: color 0.2s ease;
}

nav[aria-label="breadcrumb"] ol li a:hover {
    text-decoration: none;
}

/* ===============================================================================
   CARDS DE MÉTRICAS DO DASHBOARD
   Estilos para os cards de métricas na visualização geral do projeto
   =============================================================================== */

/* Card de métricas com hover effect */
.metric-card-modern {
    cursor: pointer;
    transition: all 0.2s ease;
}

.metric-card-modern:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Barras de progresso dos cards */
.task-progress-bar,
.days-progress-bar {
    border-radius: 9999px;
}

/* ===============================================================================
   CARDS DE INFORMAÇÕES DO PROJETO
   Estilos para os cards coloridos de informações na sidebar
   =============================================================================== */

/* Cards coloridos por categoria */
.tw-bg-blue-50 {
    background-color: #eff6ff;
}

.tw-bg-neutral-50 {
    background-color: #fafafa;
}

.tw-bg-green-50 {
    background-color: #f0fdf4;
}

.tw-bg-purple-50 {
    background-color: #faf5ff;
}

.tw-bg-yellow-50 {
    background-color: #fefce8;
}

.tw-bg-indigo-50 {
    background-color: #eef2ff;
}

/* Bordas dos cards */
.tw-border-blue-100 {
    border-color: #dbeafe;
}

.tw-border-green-100 {
    border-color: #dcfce7;
}

.tw-border-neutral-200 {
    border-color: #e5e7eb;
}

/* ===============================================================================
   RESPONSIVIDADE GERAL
   Ajustes para diferentes tamanhos de tela
   =============================================================================== */

@media (max-width: 1024px) {
    .tw-grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .project-tabs-modern {
        gap: 0.375rem;
    }
    
    .project-tabs-modern a,
    .project-tabs-modern button {
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
    }
}

/* ===============================================================================
   PREMIUM DASHBOARD - DESIGN SAAS MODERNO
   Layout premium com grid system de 12 colunas, design clean e sofisticado
   =============================================================================== */

/* Container Principal */
.premium-dashboard-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Cards de Métricas Premium - Compactos (50% menor) */
.premium-metric-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.premium-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.premium-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.premium-metric-card:hover::before {
    opacity: 1;
}

.premium-card-interactive {
    cursor: pointer;
}

/* Ícones Premium - Compactos e Sutis (50% menor) */
.premium-icon-wrapper {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.premium-icon-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.premium-icon-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.premium-icon-yellow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.premium-icon-purple {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
    color: #9333ea;
}

.premium-icon-large {
    width: 28px;
    height: 28px;
    font-size: 14px;
}

/* Labels e Tipografia - Compactos (50% menor) */
.premium-label {
    font-size: 9px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin: 0;
    line-height: 1.2;
}

.premium-percent {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
    line-height: 1;
}

.premium-metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 4px 0 6px 0;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.premium-metric-suffix {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    margin-left: 2px;
}

/* Barras de Progresso Premium - Compactas (50% menor) */
.premium-progress-container {
    position: relative;
    width: 100%;
    height: 4px;
    background: #f3f4f6;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 4px;
}

.premium-progress-small {
    height: 3px;
    margin-bottom: 2px;
}

.premium-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 9999px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.premium-progress-percent {
    font-size: 9px;
    font-weight: 600;
    color: #9ca3af;
    text-align: right;
    margin-top: 1px;
}

/* Badges */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge-urgent {
    background: #fee2e2;
    color: #dc2626;
}

/* Cards Premium - Compactos (50% menor) */
.premium-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.premium-card-large {
    padding: 16px;
    overflow: visible;
}

.premium-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.premium-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.premium-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    letter-spacing: -0.1px;
}

.premium-icon-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: #f9fafb;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 16px;
}

.premium-icon-button:hover {
    background: #f3f4f6;
    color: #111827;
    transform: scale(1.05);
}

.premium-link-button {
    font-size: 14px;
    font-weight: 600;
    color: #9333ea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.premium-link-button:hover {
    color: #7e22ce;
    transform: translateX(2px);
}

.premium-arrow {
    color: #9ca3af;
    font-size: 14px;
    transition: all 0.3s ease;
}

.premium-card-interactive:hover .premium-arrow {
    color: #2563eb;
    transform: translateX(4px);
}

/* Container de Informações - Layout em 3 colunas (4 / 4 / 4) */
.premium-info-container {
    width: 100%;
    overflow: visible;
}

.premium-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    align-items: flex-start;
}

.premium-overview-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premium-overview-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 48px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-overview-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.premium-overview-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.premium-overview-icon {
    font-size: 11px;
    color: #9ca3af;
    width: 14px;
    text-align: center;
}

.premium-overview-value {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.premium-overview-value-strong {
    font-size: 14px;
    font-weight: 700;
}

.premium-overview-value-money {
    color: #059669;
    font-weight: 700;
    font-size: 14px;
}

.premium-overview-link {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.premium-overview-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.premium-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.premium-info-value-warning {
    color: #dc2626;
}

.premium-overview-card-full {
    grid-column: 1 / -1;
    padding: 10px 12px;
}

.premium-overview-description {
    font-size: 12px;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.6;
    text-align: left;
}

.premium-info-empty {
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
}

/* Responsividade */
@media (max-width: 640px) {
    .premium-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Cards de Informação Premium - Compactos (50% menor) */
.premium-info-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    width: 100%;
    min-height: 50px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.premium-info-card-full {
    grid-column: 1 / -1;
}

.premium-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.premium-info-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.premium-info-blue::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.premium-info-white {
    background: #ffffff;
    border-color: #e5e7eb;
}

.premium-info-white::before {
    background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
}

.premium-info-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

.premium-info-green::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.premium-info-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #e9d5ff;
}

.premium-info-purple::before {
    background: linear-gradient(90deg, #9333ea 0%, #7e22ce 100%);
}

.premium-info-yellow {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.premium-info-yellow::before {
    background: linear-gradient(90deg, #eab308 0%, #ca8a04 100%);
}

.premium-info-indigo {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #c7d2fe;
}

.premium-info-indigo::before {
    background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%);
}

.premium-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.premium-info-card:hover::before {
    opacity: 1;
}

.premium-info-label {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 6px;
    display: block;
    line-height: 1.3;
}

.premium-info-label-blue {
    color: #1e40af;
}

.premium-info-label-neutral {
    color: #4b5563;
}

.premium-info-label-green {
    color: #047857;
}

.premium-info-label-purple {
    color: #6b21a8;
}

.premium-info-label-yellow {
    color: #a16207;
}

.premium-info-label-indigo {
    color: #4338ca;
}

.premium-info-value {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.premium-info-value-large {
    font-size: 14px;
    font-weight: 700;
    color: #1e40af;
}

.premium-info-value-warning {
    color: #dc2626;
}

.premium-info-empty {
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

.premium-info-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.premium-info-value a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.premium-info-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.premium-info-value a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Grid de Despesas Premium - 4 Colunas (50% menor) */
.premium-expenses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

@media (max-width: 1024px) {
    .premium-expenses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .premium-expenses-grid {
        grid-template-columns: 1fr;
    }
}

.premium-expense-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.premium-expense-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    transition: opacity 0.2s ease;
}

.premium-expense-neutral::before {
    background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
}

.premium-expense-blue::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.premium-expense-green::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.premium-expense-red::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.premium-expense-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.premium-expense-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.premium-expense-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.premium-expense-icon-neutral {
    background: #f3f4f6;
    color: #6b7280;
}

.premium-expense-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.premium-expense-icon-green {
    background: #d1fae5;
    color: #059669;
}

.premium-expense-icon-red {
    background: #fee2e2;
    color: #dc2626;
}

.premium-expense-label {
    font-size: 8px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin: 0;
}

.premium-expense-value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

/* Tabela de Despesas do Projeto */
.premium-expenses-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.premium-expenses-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.premium-expenses-table thead th {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 10px;
}

.premium-expenses-table tbody td {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.premium-expenses-table tbody tr:hover td {
    background: #fafafa;
}

.premium-expenses-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.premium-expenses-link {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.premium-expenses-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.premium-expenses-meta {
    font-size: 10px;
    color: #9ca3af;
}

.premium-expenses-amount {
    font-weight: 700;
    color: #059669;
}

.premium-expenses-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 4px;
}

.premium-expenses-badge.is-billable {
    background: #e0f2fe;
    color: #0369a1;
}

.premium-expenses-badge.is-not-billable {
    background: #f3f4f6;
    color: #6b7280;
}

.premium-expenses-badge.is-billed {
    background: #dcfce7;
    color: #15803d;
}

.premium-expenses-empty {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    padding: 8px 0;
}

/* Gráficos de despesas */
.premium-chart-wrapper {
    width: 100%;
    height: 220px;
}

.premium-chart-canvas {
    width: 100% !important;
    height: 100% !important;
}

.premium-chart-filters {
    display: flex;
    gap: 6px;
    align-items: center;
}

.premium-chart-filter {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 4px 8px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.premium-chart-filter:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #f3f4f6;
}

.premium-chart-filter.is-active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.premium-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.premium-tab-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    transition: all 0.2s ease;
}

.premium-tab-button:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #111827;
}

.premium-tab-button.is-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.premium-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    padding: 0 6px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    background: #1d4ed8;
    color: #ffffff;
}

.premium-tab-badge.is-active {
    background: #ffffff;
    color: #1d4ed8;
}

.premium-tab-caret {
    font-size: 10px;
}

.premium-tab-dropdown {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    min-width: 190px;
    padding: 6px 0;
}

.premium-action-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.premium-action-button i {
    font-size: 12px;
}

.premium-action-button-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.2);
}

.premium-action-button-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

.premium-action-group {
    flex-wrap: nowrap;
}

/* Responsividade Premium - Compacta (50% menor) */
@media (max-width: 1024px) {
    .premium-metric-card {
        padding: 8px;
    }
    
    .premium-card-large {
        padding: 12px;
    }
    
    .premium-metric-value {
        font-size: 16px;
    }
    
    .premium-percent {
        font-size: 14px;
    }
    
    .premium-grid-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .premium-metric-card {
        padding: 8px;
    }
    
    .premium-card-large {
        padding: 10px;
    }
    
    .premium-card-title {
        font-size: 11px;
    }
    
    .premium-metric-value {
        font-size: 14px;
    }
    
    .premium-percent {
        font-size: 12px;
    }
    
    .premium-icon-wrapper {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .premium-label {
        font-size: 8px;
    }
    
    .premium-grid-overview {
        grid-template-columns: 1fr;
    }
}

/* Animações Premium */
@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-metric-card,
.premium-card {
    animation: premiumFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 1 !important;
    visibility: visible !important;
}

.premium-info-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}
