body { background-color: #f8f9fa; }
.welcome-card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #0d6efd 0%, #003d99 100%);
    color: white;
    padding: 40px 20px;
    margin-top: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-action {
    border-radius: 10px;
    padding: 15px;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white !important;
}
.btn-action:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

/* Esconde o menu de cima (navbar antiga) apenas no mobile */
@media (max-width: 767px) {
    .navbar-toggler { display: none !important; } /* Remove o botão de hambúrguer */
    
    body { 
        padding-bottom: 70px; /* Dá espaço para o menu do rodapé não cobrir o conteúdo */
    }
}

/* Estilo para destacar o botão ativo */
.fixed-bottom .nav-link.active {
    color: #0d6efd !important;
    font-weight: bold;
}

.fixed-bottom .nav-link {
    color: #adb5bd;
    padding: 5px 0;
}

.tlsa-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
}

.tlsa-bottom-nav .navbar-nav {
    align-items: stretch;
}

.tlsa-bottom-nav .nav-link {
    min-height: 58px;
    padding: 6px 2px;
}

.tlsa-bottom-nav small {
    font-size: 0.62rem;
    line-height: 1.1;
}

.material-input-row .form-select {
    flex: 1 1 auto;
}

.qtd-material-input {
    flex: 0 0 96px;
    max-width: 110px;
}

.btn-add-material {
    flex: 0 0 auto;
    min-width: 48px;
}

/* Correções para o Status Dot no Mobile */
.status-dot { 
    font-size: 0.75rem; /* Um pouco menor para alinhar melhor */
}

/* Garante que os botões fiquem fáceis de tocar no celular */
@media (max-width: 767px) {
    .btn-sm {
        padding: 0.5rem 1rem; /* Botões maiores para o dedo */
        font-size: 0.9rem;
    }
    
    .btn-group > .btn {
        flex: 1 1 auto; /* Botões dividem a largura igualmente */
    }
}

/* Utilitário para o Bootstrap 5 (se você não tiver gap ativado) */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }

body { background-color: #f4f7f6; }
    .card-os { 
        border: none; 
        border-left: 6px solid #0d6efd; 
        transition: transform 0.2s;
    }
    .card-os:hover { transform: scale(1.01); }
    /* Cores das bordas baseadas na prioridade */
    .borda-alta { border-left-color: #dc3545 !important; }
    .borda-media { border-left-color: #ffc107 !important; }
    .borda-baixa { border-left-color: #198754 !important; }

    .status-dot { font-size: 0.8rem; vertical-align: middle; }

    @keyframes balancar {
        0% { transform: rotate(0); }
        15% { transform: rotate(10deg); }
        30% { transform: rotate(-10deg); }
        45% { transform: rotate(5deg); }
        60% { transform: rotate(-5deg); }
        100% { transform: rotate(0); }
    }

    /* O sino só balança se houver pedidos (classe que o PHP pode injetar) */
    .sino-alerta {
        animation: balancar 2s infinite;
        display: inline-block;
    }

    /* Botão Visualizar (Cor Nova: Petrol/Teal) */
.btn-view-os {
    background-color: #435ebe; /* Um azul mais fechado/moderno */
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(67, 94, 190, 0.2);
}

.btn-view-os:hover {
    background-color: #364b9a;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(67, 94, 190, 0.3);
}

/* Botão Concluir (Azul Vibrante com Gradiente) */
.btn-finish-os {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.btn-finalizada-os {
    background: linear-gradient(135deg, #01a10e 0%, #01be0a 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.btn-finish-os:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* Ajuste para Mobile: Botões ocupam metade da largura cada um */
@media (max-width: 767px) {
    .d-flex.gap-2 {
        width: 100%;
    }
    .btn-view-os, .btn-finish-os, .btn-finalizada-os {
        flex: 1; /* Faz os botões terem o mesmo tamanho lado a lado */
        font-size: 0.85rem;
        padding: 12px 5px; /* Mais alto para facilitar o toque */
    }
}

/* Garante que os botões não ocupem a tela toda se não houver necessidade */
.flex-md-grow-0 {
    flex-grow: 0 !important;
    width: auto !important;
}

/* No mobile eles crescem igual para facilitar o toque, mas no PC ficam pequenos */
@media (max-width: 767px) {
    .flex-grow-1 {
        flex-grow: 1 !important;
    }
}

/* Estilo Base dos Botões */
.btn-view-os, .btn-warning, .btn-finish-os, .btn-finalizada-os {
    border: none !important;
    border-radius: 12px !important; /* Bordas mais arredondadas para parecer app */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 50px !important; /* Altura fixa para todos ficarem iguais */
    transition: all 0.2s ease;
    color: white !important;
}

/* Cores específicas */
.btn-view-os { background: #4e73df !important; }
.btn-finish-os { background: #0d6efd !important; }
.btn-finalizada-os { background: #12ac0d !important; }
/* Ajuste específico para Mobile */
@media (max-width: 767px) {
    .d-flex.gap-2 {
        gap: 10px !important; /* Espaço entre os botões */
    }

    .btn-view-os, .btn-warning, .btn-finish-os, .btn-finalizada-os {
        flex: 1 !important; /* Força todos a terem a mesma largura */
        padding: 0 !important;
    }

    /* Esconde o texto "Concluir" no mobile para caber o ícone grande */
    .btn-finish-os, .btn-finalizada-os span {
        display: none;
    }

    /* Aumenta os ícones para facilitar o toque */
    .btn-view-os i, .btn-warning i, .btn-finish-os, .btn-finalizada-os i {
        font-size: 1.4rem !important;
        margin: 0 !important;
    }
}

.card-atalho {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    padding: 20px;
    border-radius: 15px;
    height: 120px; /* Altura fixa para ficarem iguais */
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-atalho:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    color: #000;
}

.card-atalho img {
    width: 50px; /* Tamanho padronizado do ícone */
    height: 50px;
    margin-bottom: 10px;
    object-fit: contain;
}

/* Cores de fundo suaves (estilo iOS/Moderno) */
.bg-info-subtle { background-color: #0dcaf0 !important; } /* Azul claro igual ao seu */
.bg-warning-subtle { background-color: #ffc107 !important; } /* Amarelo igual ao seu */

/* Botão Customizado - Totalmente independente */
.btn-custom {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important; /* Bordas iguais para todos */
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-custom:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-custom i {
    font-size: 1.1rem !important;
}

/* Cores vibrantes e sólidas */
.btn-azul { background-color: #0d6efd !important; color: white !important; }
.btn-amarelo { background-color: #ffc107 !important; color: #212529 !important; }
.btn-cinza { background-color: #6c757d !important; color: white !important; }
.btn-vermelho { background-color: #dc3545 !important; color: white !important; }

/* Ajuste Mobile */
@media (max-width: 767px) {
    .btn-custom {
        width: 34px !important;
        height: 34px !important;
    }
}

/* Estilo para Celular (Mobile) - Mantém como está para facilitar o toque */
.card-actions-custom {
    display: flex;
    gap: 8px;
    border-top: 1px dashed #eee;
    padding-top: 12px;
}

.btn-action {
    flex: 1; /* Estica no mobile */
    height: 42px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.2s;
}

/* --- AJUSTE PARA COMPUTADOR (Desktop) --- */
@media (min-width: 768px) {
    .estoque-card {
        max-width: 100%; /* Garante que o card use a largura da tela */
    }

    .btn-action {
        flex: none !important; /* Para de esticar */
        width: 45px !important; /* Largura fixa no PC */
        height: 38px !important; /* Altura um pouco menor no PC */
    }

    .card-actions-custom {
        justify-content: flex-end !important; /* Joga os botões para a direita */
        border-top: none; /* Opcional: remove a linha no PC para ficar mais limpo */
        padding-top: 0;
        margin-top: -30px; /* Sobe os botões para ficarem na mesma linha da info se quiser economizar espaço */
    }
    
    /* Se você quiser que os botões fiquem alinhados com o nome no PC: */
    .card-header-custom {
        margin-bottom: 5px;
    }
}/* Container de botões: garante separação real */
.d-flex.gap-2 {
    gap: 8px !important; /* Distância exata entre os botões */
}

/* Base do botão customizado */
.btn-estoque {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important; /* Arredondamento moderno e igual */
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-estoque i {
    font-size: 1.1rem !important;
}

.btn-estoque:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Cores vibrantes e sólidas */
.btn-azul { background-color: #0d6efd !important; color: white !important; }
.btn-amarelo { background-color: #ffc107 !important; color: #212529 !important; }
.btn-cinza { background-color: #6c757d !important; color: white !important; }
.btn-vermelho { background-color: #dc3545 !important; color: white !important; }

/* Ajuste fino para Mobile */
@media (max-width: 767px) {
    .btn-estoque {
        width: 34px !important;
        height: 34px !important;
    }
}

/* Container de cada item no Mobile */
.item-estoque-container {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Informações de texto */
.nome-material {
    font-weight: bold;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 4px;
}

.meta-dados {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-categoria {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Bloco de Qtd e Botões Lado a Lado */
.qtd-e-acoes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
    padding: 10px;
    border-radius: 10px;
}

.qtd-box {
    text-align: center;
    border-right: 1px solid #eee;
    padding-right: 15px;
}

.badge-quantidade {
    display: block;
    font-size: 1.2rem;
    padding: 6px 12px;
    border-radius: 8px;
    color: white;
}

.qtd-box small { font-size: 0.6rem; font-weight: bold; color: #999; }

/* Botões */
.botoes-acoes {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.btn-mobile {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-azul { background-color: #0d6efd; }
.btn-amarelo { background-color: #ffc107; color: #212529 !important; }
.btn-cinza { background-color: #6c757d; }

/* Esconde o cabeçalho azul da tabela original no celular */
@media (max-width: 768px) {
    table thead { display: none !important; }
    table tr { display: block; border: none; }
    table td { display: block; width: 100%; border: none; padding: 0; }
}

:root { --tlsa-blue: #0046ad; }
        body { background-color: #f8f9fa; padding-bottom: 70px; }
        .os-card { border-radius: 15px; border-left: 5px solid var(--tlsa-blue); margin-bottom: 15px; transition: 0.2s; }
        .os-card:active { background-color: #f1f1f1; }
        .status-badge { font-size: 0.7rem; float: right; }

        /* ADICIONE ISSO NO SEU <style> para facilitar o toque */
        #btn-sincronizar {
            padding: 10px 20px;
            transition: transform 0.1s;
        }
        #btn-sincronizar:active {
            transform: scale(0.9); /* Dá um efeito visual de clique */
            background-color: rgba(255,255,255,0.1);
            border-radius: 50%;
        }

/* Container do ícone para permitir posicionamento absoluto da bolinha */
.btn-notificacao {
    position: relative;
    display: inline-block;
}

/* A bolinha vermelha */
.badge-sync {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff3b30; /* Vermelho vibrante */
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: none; /* Escondido por padrão */
    align-items: center;
    justify-content: center;
    border: 2px solid #212529; /* Borda da cor do menu dark */
}

.badge-sync {
    position: absolute;
    top: 2px; /* Ajuste para subir ou descer o número */
    right: 2px;
    background-color: #ff3b30; /* Vermelho */
    color: white;
    font-size: 11px; /* Tamanho do número */
    font-weight: bold;
    border-radius: 50%;
    width: 18px; /* Tamanho do círculo */
    height: 18px;
    display: none; /* Inicia escondido */
    
    /* Isso aqui centraliza o número perfeitamente */
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    
    border: 2px solid #212529; /* Borda para destacar do fundo escuro */
}

:root { --tlsa-blue: #0046ad; --tlsa-light: #f4f7f6; }
body { background-color: var(--tlsa-light); }

/* Card de Boas-vindas/Título */
.page-header {
    background: linear-gradient(135deg, var(--tlsa-blue), #002d70);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Cards de Equipamentos */
.card-indicador {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s;
}
.card-indicador:hover { transform: translateY(-5px); }

.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(0, 70, 173, 0.1);
    color: var(--tlsa-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.btn-salvar {
    background: var(--tlsa-blue);
    border: none;
    padding: 10px;
    font-weight: 600;
    border-radius: 8px;
}

:root { --tlsa-blue: #0046ad; }
body { background-color: #f4f7f6; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

/* Cabeçalho padrão estilo relatórios */
.header-azul { 
    background: linear-gradient(135deg, var(--tlsa-blue), #002d70);
    color: white; padding: 40px 20px; border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); margin-bottom: 30px;
}

.card-custom { border: none; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.btn-salvar { background-color: var(--tlsa-blue); border: none; padding: 15px; font-weight: bold; border-radius: 12px; }
.input-group-text { background-color: #f8f9fa; border-right: none; }
.form-control { border-left: none; }

/* Responsive foundation for Cordova/WebView */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 0;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

.container,
.container-fluid,
.row > *,
.card,
.card-body,
.modal-content,
.list-group-item,
.tab-content {
    min-width: 0;
}

.card,
.alert,
.badge,
.btn,
.list-group-item,
.modal-content,
.navbar,
.table,
.form-control,
.form-select {
    overflow-wrap: anywhere;
}

.form-control,
.form-select,
.btn {
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table {
    min-width: 680px;
}

.table-responsive > .table.table-borderless {
    min-width: 560px;
}

.navbar-brand {
    max-width: min(68vw, 340px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .navbar-expand-lg .navbar-toggler {
        display: none !important;
    }

    .navbar-collapse .d-flex {
        align-items: stretch !important;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .navbar-collapse .d-flex .btn,
    .navbar-collapse .d-flex .nav-link {
        width: 100%;
    }

    .navbar-collapse .text-light {
        margin-right: 0 !important;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    }

    body.auth-page,
    body.standalone-page {
        padding-bottom: 0 !important;
    }

    .container,
    .container-fluid {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .mt-5 {
        margin-top: 1.5rem !important;
    }

    .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .welcome-card,
    .page-header,
    .header-indicadores,
    .header-azul {
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
        padding: 1.25rem !important;
    }

    .welcome-card {
        margin-top: 1rem !important;
    }

    .welcome-card .display-4,
    .header-indicadores h2,
    .page-header h2,
    .header-azul h2 {
        font-size: 1.35rem !important;
        line-height: 1.2;
    }

    .header-indicadores {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.875rem;
        max-width: 100% !important;
    }

    .header-indicadores .btn,
    .page-header .btn {
        width: 100%;
    }

    .header-icon {
        display: none;
    }

    .card-body,
    .modal-body {
        padding: 1rem !important;
    }

    .card-atalho {
        height: auto !important;
        min-height: 104px;
        padding: 14px 10px !important;
    }

    .card-atalho span {
        font-size: 0.9rem;
        line-height: 1.15;
    }

    .btn-group {
        flex-wrap: wrap;
    }

    .btn-group > .btn,
    .btn-group > .btn-check + .btn {
        min-height: 44px;
        white-space: normal;
    }

    .nav-tabs,
    .nav-pills {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-item,
    .nav-pills .nav-item {
        flex: 0 0 auto !important;
        min-width: 150px;
    }

    .nav-tabs .nav-link,
    .nav-pills .nav-link {
        min-height: 46px;
        white-space: normal;
    }

    .table thead {
        display: table-header-group !important;
    }

    .table tr {
        display: table-row !important;
        border: inherit;
    }

    .table td,
    .table th {
        display: table-cell !important;
        min-width: 112px;
        padding: 0.65rem !important;
        vertical-align: middle;
        width: auto !important;
    }

    .table td.text-end,
    .table th.text-end,
    .table td.text-center,
    .table th.text-center {
        text-align: left !important;
    }

    .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .card-body > .d-flex.justify-content-between,
    .container > .d-flex.justify-content-between {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.75rem;
    }

    .card-body > .d-flex.justify-content-between .btn,
    .container > .d-flex.justify-content-between .btn {
        width: 100%;
    }

    .btn-view-os,
    .btn-warning,
    .btn-finish-os,
    .btn-finalizada-os,
    .btn-action {
        display: inline-flex !important;
        min-width: 44px;
        white-space: normal;
    }

    .btn-finish-os,
    .btn-finalizada-os {
        flex: 1 1 120px !important;
        padding: 0.5rem !important;
    }

    .btn-finish-os span,
    .btn-finalizada-os span {
        display: inline !important;
    }

    .select2-container {
        max-width: 100% !important;
        width: 100% !important;
    }

    .qtd-material-input,
    .btn-add-material {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .login-wrapper {
        min-height: 100dvh;
        padding: 1rem;
    }

    .login-card {
        max-width: 100% !important;
        padding: 1.25rem !important;
    }

    .modal-dialog {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    .table-responsive > .table {
        min-width: 620px;
    }

    .badge,
    .report-badge {
        white-space: normal !important;
    }
}

@media (max-width: 768px) {
    .table thead {
        display: table-header-group !important;
    }

    .table tr {
        display: table-row !important;
        border: inherit;
    }

    .table td,
    .table th {
        display: table-cell !important;
        padding: 0.65rem !important;
        width: auto !important;
    }
}

/* Final mobile fixes for pages with inline CSS after the global stylesheet */
@media (max-width: 767.98px) {
    .navbar-toggler {
        display: none !important;
    }

    .container .header-indicadores.d-flex,
    .container .page-header.d-flex {
        align-items: stretch !important;
        display: grid !important;
        gap: 0.85rem;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch !important;
        overflow: hidden;
        padding: 1.35rem !important;
    }

    .header-indicadores > *,
    .page-header > * {
        max-width: 100%;
        min-width: 0;
    }

    .header-indicadores h2,
    .page-header h2 {
        font-size: 1.45rem !important;
        line-height: 1.2;
        margin-bottom: 0.4rem;
    }

    .header-indicadores p,
    .page-header p {
        font-size: 0.95rem !important;
        line-height: 1.45;
    }

    .header-indicadores .btn,
    .page-header .btn {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        justify-self: stretch;
        min-height: 44px;
        white-space: normal;
        width: 100% !important;
    }

    #estoqueTab {
        display: grid !important;
        gap: 0.5rem;
        grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
        overflow: visible;
        padding: 0.55rem !important;
    }

    #estoqueTab .nav-item {
        min-width: 0;
        width: 100% !important;
    }

    #estoqueTab .nav-link {
        min-height: 42px;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        white-space: normal;
    }

    #osTabs {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        overflow: visible !important;
        width: 100%;
    }

    #osTabs .nav-item {
        min-width: 0 !important;
        width: 100% !important;
    }

    #osTabs .nav-link {
        align-items: center;
        display: flex;
        font-size: 0.82rem;
        gap: 0.35rem;
        justify-content: center;
        line-height: 1.15;
        min-height: 52px;
        padding: 0.55rem 0.35rem !important;
        white-space: normal;
        width: 100% !important;
    }

    #osTabs .nav-link i {
        flex: 0 0 auto;
        margin-right: 0 !important;
    }

    .table-responsive .table thead {
        display: table-header-group !important;
    }

    .table-responsive .table tr {
        display: table-row !important;
        border: inherit !important;
    }

    .table-responsive .table td,
    .table-responsive .table th {
        display: table-cell !important;
        min-width: 110px;
        padding: 0.65rem !important;
        text-align: left !important;
        vertical-align: middle;
        width: auto !important;
    }

    .table-responsive .table td.text-end,
    .table-responsive .table td.text-center,
    .table-responsive .table th.text-end,
    .table-responsive .table th.text-center {
        text-align: center !important;
    }

    .tlsa-bottom-nav.navbar {
        height: 56px !important;
        max-height: 56px !important;
        min-height: 56px !important;
        overflow: hidden;
        padding: 0 !important;
        padding-bottom: 0 !important;
    }

    .tlsa-bottom-nav .navbar-nav {
        align-items: center;
        height: 56px !important;
        min-height: 56px !important;
    }

    .tlsa-bottom-nav .nav-link {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 54px;
        padding: 3px 1px !important;
    }

    .tlsa-bottom-nav .nav-link i {
        font-size: 1.18rem !important;
        line-height: 1;
        margin-bottom: 3px;
    }

    .tlsa-bottom-nav small {
        font-size: 0.58rem;
        line-height: 1;
    }
}

/* --- ESTILOS PARA BARRA DE PROGRESSO DA META --- */
.progress-track {
    width: 100%;
    height: 35px; /* Aumenta a espessura da barra */
    background-color: rgba(0, 0, 0, 0.2); /* Fundo mais escuro para o trilho */
    border-radius: 15px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.3);
    overflow: hidden;
}

.progress-bar-custom {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #fd7e14); /* Gradiente amarelo/laranja */
    transition: width 0.5s ease-in-out;
    position: relative;
}

/* Quando a meta é atingida, fica verde */
.progress-bar-custom.completed {
    background: linear-gradient(90deg, #198754, #20c997);
}

.train-icon {
    position: absolute;
    right: 0; /* Fica na ponta direita da barra de progresso */
    transform: translate(50%, -5%) scaleX(-1); /* O scaleX(-1) inverte a locomotiva para a direita */
    font-size: 34px; /* Aumenta um pouco a locomotiva para acompanhar a nova barra */
    line-height: 0.8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
}
