/* =========================
   CONFIGURAÇÃO GERAL
========================= */

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f5f7fb;
    color: #172033;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Usado junto com body class="d-flex flex-column min-vh-100" */
main {
    flex: 1 0 auto;
    margin: 0;
    padding: 0;
    background-color: #f5f7fb;
    width: 100%;
    overflow-x: hidden;
}


/* =========================
   CORES PADRÃO
========================= */

.green-text {
    color: #39FF14;
    font-weight: normal;
}

.text-success {
    color: #39FF14 !important;
}

.btn-success {
    background-color: #39FF14;
    border-color: #39FF14;
    color: #000;
    font-weight: bold;
}

.btn-success:hover {
    background-color: #2fd10f;
    border-color: #2fd10f;
    color: #000;
}


/* =========================
   HEADER / NAVBAR
========================= */

.navbar {
    background-color: #1f2529 !important;
    min-height: 70px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container,
.navbar .container-fluid {
    display: flex;
    align-items: center;
}

.navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.navbar-brand img.logo-header {
    height: 60px !important;
    width: 170px !important;
    max-height: 60px !important;
    max-width: 170px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

/* Header interno compartilhado por todo o ERP. */
.app-header-sistema {
    min-height: 82px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #dfe6f0;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(35, 48, 74, .06) !important;
}

.app-header-sistema .logo-header {
    width: 270px !important;
    height: 92px !important;
    max-width: 270px !important;
    max-height: 92px !important;
    object-fit: contain;
}

.app-header-sistema .btn-admin-header {
    border: 1px solid #1674d1 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #1674d1 !important;
}

.app-header-sistema .btn-admin-header:hover {
    background: #1674d1 !important;
    color: #fff !important;
}

/* Deve vir após as regras responsivas legadas para manter a marca legível. */
.app-header-sistema .navbar-brand img.logo-header {
    width: 270px !important;
    height: 92px !important;
    max-width: 270px !important;
    max-height: 92px !important;
}

.navbar .nav-link {
    font-size: 0.95rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    color: #fff;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #39FF14 !important;
}

#topo,
#servicos,
#empresa,
#contato {
    scroll-margin-top: 85px;
}


/* =========================
   MENU DO HEADER
========================= */

.menu-principal .nav-link {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.menu-principal .nav-link:hover,
.menu-principal .nav-link.active {
    color: #39FF14 !important;
    background-color: rgba(57, 255, 20, 0.08);
}

.header-actions {
    white-space: nowrap;
}

.btn-whatsapp-header {
    background-color: #39FF14;
    color: #000;
    font-weight: bold;
    font-size: 0.88rem;
    padding: 6px 12px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-whatsapp-header:hover {
    background-color: #2fd10f;
    color: #000;
    transform: translateY(-1px);
}

.btn-admin-header {
    border: 1px solid #39FF14;
    color: #39FF14;
    background-color: transparent;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-admin-header:hover {
    background-color: #39FF14;
    color: #000;
}

.whatsapp-header {
    color: #39FF14;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.whatsapp-header:hover {
    color: #7dff66;
}

.navbar .btn-success {
    padding: 5px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
}


/* =========================
   HEADER ANTIGO
========================= */

.top-banner {
    min-height: 80px;
    background-color: #2c2e35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    flex-wrap: wrap;
}

.top-banner img {
    height: 60px;
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-info {
    font-size: 0.9rem;
}

.login-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
}

.login-btn {
    background-color: transparent;
    border: 2px solid #39FF14;
    color: #39FF14;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #39FF14;
    color: #000;
}


/* =========================
   CARROSSEL PADRÃO
========================= */

.carousel {
    height: calc(100vh - 180px);
    min-height: 430px;
    max-height: none;
    position: relative;
    background-color: #111;
    overflow: hidden;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background-color: #111;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    padding: 12px 18px;
}

.carousel-caption h5,
.carousel-caption p {
    color: #fff;
}


/* =========================
   HOME - PÁGINA INICIAL
========================= */

.home-carousel {
    height: calc(100vh - 70px);
    min-height: 420px;
    max-height: none;
    background-color: #111;
}

.home-carousel .carousel-inner,
.home-carousel .carousel-item {
    height: 100%;
}

.home-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-carousel .carousel-caption {
    bottom: 12%;
    background: rgba(0, 0, 0, 0.65);
    border-left: 4px solid #39FF14;
    border-radius: 12px;
    padding: 18px 24px;
    max-width: 620px;
    left: 8%;
    right: auto;
    text-align: left;
}

.home-carousel .carousel-caption h1 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #39FF14;
    margin-bottom: 8px;
}

.home-carousel .carousel-caption p {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0;
}


/* =========================
   SEÇÕES DA HOME
========================= */

section { background-color: transparent; }

.home-section {
    padding: 55px 0;
    background-color: #111;
    color: #fff;
}

.home-section-dark {
    background-color: #171717;
}

.home-section h2 {
    color: #39FF14;
    font-weight: bold;
    margin-bottom: 12px;
}

.section-subtitle {
    color: #dcdcdc;
    font-size: 1rem;
}

#servicos,
#empresa,
#contato {
    padding-top: 40px;
    padding-bottom: 40px;
}


/* =========================
   CARDS DE SERVIÇOS
========================= */

.service-card {
    height: 100%;
    background: #1f2529;
    border: 1px solid rgba(57, 255, 20, 0.18);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    transition: all 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #39FF14;
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.18);
}

.service-card i {
    font-size: 2.5rem;
    color: #39FF14;
    margin-bottom: 14px;
}

.service-card h4 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-card p {
    color: #d6d6d6;
    font-size: 0.95rem;
    margin-bottom: 0;
}


/* =========================
   EMPRESA
========================= */

#empresa p {
    color: #dcdcdc;
    line-height: 1.7;
}

.empresa-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.empresa-lista span {
    color: #fff;
}

.empresa-lista i {
    color: #39FF14;
    margin-right: 8px;
}

.empresa-box {
    background: #1f2529;
    border: 1px solid rgba(57, 255, 20, 0.22);
    border-radius: 16px;
    padding: 35px;
    text-align: center;
}

.empresa-box i {
    font-size: 4rem;
    color: #39FF14;
    margin-bottom: 15px;
}

.empresa-box h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.empresa-box p {
    margin-bottom: 0;
}


/* =========================
   CONTATO
========================= */

.contato-section {
    background-color: #111;
}

.contact-card {
    background: #1f2529;
    border: 1px solid rgba(57, 255, 20, 0.22);
    border-radius: 16px;
    padding: 30px;
}

.contact-title {
    color: #39FF14;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-item i {
    font-size: 2rem;
    color: #39FF14;
}

.contact-item strong {
    display: block;
    color: #fff;
    margin-bottom: 3px;
}

.contact-item a,
.contact-item span {
    color: #dcdcdc;
    text-decoration: none;
}

.contact-item a:hover {
    color: #39FF14;
}

.contact-actions {
    text-align: center;
    margin-top: 25px;
}


/* =========================
   FORMULÁRIO DE CONTATO
========================= */

.contact-form-card {
    background: #1f2529;
    border: 1px solid rgba(57, 255, 20, 0.22);
    border-radius: 16px;
    padding: 30px;
}

.contact-form-card .form-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form-card .form-control {
    background-color: #111;
    border: 1px solid #3a3a3a;
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
}

.contact-form-card .form-control::placeholder {
    color: #888;
}

.contact-form-card .form-control:focus {
    background-color: #111;
    color: #fff;
    border-color: #39FF14;
    box-shadow: 0 0 0 0.2rem rgba(57, 255, 20, 0.15);
}

.contact-form-card textarea {
    resize: none;
}


/* =========================
   FOOTER
========================= */

footer {
    flex-shrink: 0;
    margin: 0;
    z-index: 10;
    position: relative;
    text-align: center;
}

.footer-site {
    background-color: #2c2e35 !important;
    font-size: 0.85rem;
}

.footer-conteudo { display:flex; align-items:center; justify-content:center; gap:16px; min-height:52px; color:#dce3ec; }
.footer-social { margin:0 !important; }
.footer-suporte { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border:1px solid rgba(57,255,20,.30); border-radius:7px; color:#75ff5d !important; font-size:12px; font-weight:700; text-decoration:none; }
.footer-suporte:hover { border-color:#39ff14; background:rgba(57,255,20,.08); color:#a0ff90 !important; text-decoration:none; }
.footer-versao { color:#94a0b3; font-size:11px; }
@media (max-width:620px) { .footer-conteudo { flex-wrap:wrap; gap:7px 12px; padding:9px 14px; }.footer-versao { width:100%; text-align:center; } }

.footer-social a {
    font-size: 1rem;
    color: #39FF14;
    text-decoration: none;
}

.footer-social a:hover {
    color: #7dff66;
}

.top-banner-footer {
    min-height: 70px;
    background-color: #2c2e35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    flex-wrap: wrap;
}

footer a {
    color: #39FF14;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.footer-icons i {
    margin-right: 5px;
}


/* =========================
   BOTÃO FLUTUANTE WHATSAPP
========================= */

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    background-color: #39FF14;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 2rem;
    z-index: 1200;
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.45);
    transition: all 0.25s ease;
}

.whatsapp-float:hover {
    background-color: #2fd10f;
    color: #000;
    transform: scale(1.08);
}


/* =========================
   TABELA DA ORDEM DE SERVIÇO
========================= */

#produtos-servicos-table tbody tr.empty-row {
    display: none;
}

/* =========================
   FORMULÁRIOS PADRÃO DO SISTEMA
   Clientes / Usuários / Peças / Serviços
========================= */

.page-form,
.usuario-page,
.cliente-page {
    padding: 30px 0 50px;
}

.form-card,
.usuario-card,
.cliente-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dcdcdc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    color: #222;
}

.form-card-header,
.usuario-card-header,
.cliente-card-header {
    background: linear-gradient(135deg, #198754, #39ff14);
    color: #000;
    padding: 22px 28px;
}

.form-card-header h2,
.usuario-card-header h2,
.cliente-card-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
}

.form-card-header p,
.usuario-card-header p,
.cliente-card-header p {
    margin: 6px 0 0;
    font-size: 0.95rem;
    color: #0b2f18;
}

.form-card-body,
.usuario-card-body,
.cliente-card-body {
    padding: 28px;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #198754;
    margin-bottom: 18px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 8px;
}

.form-card .form-label,
.usuario-card .form-label,
.cliente-card .form-label {
    color: #222 !important;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-card .form-control,
.form-card .form-select,
.usuario-card .form-control,
.usuario-card .form-select,
.cliente-card .form-control,
.cliente-card .form-select {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #cfcfcf !important;
    color: #222;
    background: #fff;
}

.form-card .form-control:focus,
.form-card .form-select:focus,
.usuario-card .form-control:focus,
.usuario-card .form-select:focus,
.cliente-card .form-control:focus,
.cliente-card .form-select:focus {
    border-color: #39ff14 !important;
    box-shadow: 0 0 0 0.18rem rgba(57, 255, 20, 0.18);
}

.form-card .form-text,
.usuario-card .form-text,
.cliente-card .form-text {
    color: #666;
    font-size: 0.85rem;
}

.required-mark {
    color: #dc3545;
    font-weight: bold;
}

.btn-form-save,
.btn-salvar-usuario,
.btn-salvar-cliente {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
}

.btn-form-save:hover,
.btn-salvar-usuario:hover,
.btn-salvar-cliente:hover {
    background-color: #157347;
    border-color: #157347;
    color: #fff;
}

.btn-form-back,
.btn-voltar-usuario,
.btn-voltar-cliente {
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
}

.form-preview-box,
.habilitacao-preview {
    display: inline-block;
    border: 1px solid #198754;
    border-radius: 10px;
    padding: 8px;
    background: #f8f9fa;
    margin-bottom: 10px;
}

.form-preview-box img,
.habilitacao-preview img {
    max-width: 180px;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Corrige telas antigas que ainda usam bg-white, border-success e text-success */
.form-card .text-success,
.usuario-card .text-success,
.cliente-card .text-success,
.form-container .text-success {
    color: #198754 !important;
}

.form-card.bg-white,
.form-container.bg-white,
.usuario-card.bg-white,
.cliente-card.bg-white {
    color: #222;
}

/* Melhora formulários antigos que ainda usam .form-container */
.form-container {
    color: #222;
}

.form-container .form-label {
    color: #222 !important;
    font-weight: 600;
}

.form-container .form-control,
.form-container .form-select {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #cfcfcf !important;
    color: #222;
    background: #fff;
}

.form-container .form-control:focus,
.form-container .form-select:focus {
    border-color: #39ff14 !important;
    box-shadow: 0 0 0 0.18rem rgba(57, 255, 20, 0.18);
}

@media (max-width: 768px) {
    .page-form,
    .usuario-page,
    .cliente-page {
        padding: 18px 0 30px;
    }

    .form-card-header,
    .usuario-card-header,
    .cliente-card-header {
        padding: 18px;
    }

    .form-card-header h2,
    .usuario-card-header h2,
    .cliente-card-header h2 {
        font-size: 1.5rem;
    }

    .form-card-body,
    .usuario-card-body,
    .cliente-card-body {
        padding: 18px;
    }
}

/* =========================
   APR INDEX
========================= */

.apr-mobile-rapido {
    display: none;
}

.lista-aprs-mobile {
    display: none;
}

.apr-card-mobile {
    border: 1px solid rgba(57, 255, 20, 0.45);
    border-radius: 10px;
    padding: 12px;
    background: #111;
}

.apr-card-titulo {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}

.apr-card-info {
    font-size: 14px;
    line-height: 1.5;
}


/* =========================
   ASSINATURA DIGITAL APR
========================= */

.assinatura-box {
    background: #ffffff !important;
    border: 1px solid #198754;
    border-radius: 8px;
    padding: 6px;
    width: 100%;
    overflow: hidden;
}

.assinatura-box canvas {
    display: block;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 5px;
    cursor: crosshair;
    touch-action: none;
}

.assinatura-box-menor {
    min-height: 145px;
}

.assinatura-box-menor canvas,
.assinatura-equipe-canvas {
    height: 130px !important;
}

#assinaturaCanvas {
    height: 220px !important;
}


/* =========================
   RESPONSIVIDADE GERAL
========================= */

@media (max-width: 991px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    main {
        width: 100%;
        overflow-x: hidden;
    }

    .navbar {
        min-height: auto !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .navbar-collapse {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .navbar-brand img.logo-header {
        height: 48px !important;
        width: 145px !important;
        max-height: 48px !important;
        max-width: 145px !important;
    }

    .menu-principal {
        width: 100%;
        text-align: center;
        gap: 4px;
    }

    .menu-principal .nav-link {
        padding: 10px;
        border-bottom: 1px solid rgba(57, 255, 20, 0.15);
        border-radius: 0;
    }

    .header-actions,
    .header-actions-interno {
        width: 100%;
        display: flex !important;
        flex-direction: column;
        gap: 8px !important;
        margin-top: 10px;
    }

    .header-actions a,
    .header-actions-interno a,
    .btn-whatsapp-header,
    .btn-admin-header {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .d-flex {
        flex-wrap: wrap;
    }

    .btn {
        white-space: normal;
        min-height: 40px;
        font-size: 14px;
    }

    .botoes-mobile,
    .acoes-mobile,
    .btn-group-mobile {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px;
        width: 100%;
    }

    .botoes-mobile .btn,
    .botoes-mobile a,
    .botoes-mobile button,
    .acoes-mobile .btn,
    .btn-group-mobile .btn {
        width: 100%;
        margin: 0;
    }

    .card {
        max-width: 100%;
    }

    .card-body {
        padding: 12px;
    }

    .card-header {
        font-size: 14px;
        padding: 9px 10px;
    }

    h1 {
        font-size: 1.55rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .form-control,
    .form-select,
    .btn {
        font-size: 15px;
    }

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

    table {
        font-size: 13px;
    }

    .text-end {
        text-align: left !important;
    }

    .acoes-tabela {
        display: flex;
        flex-direction: column;
        gap: 6px;
        text-align: left !important;
    }

    .acoes-tabela .btn {
        width: 100%;
    }

    .carousel {
        height: 360px;
        max-height: 360px;
    }

    .home-carousel,
    .home-carousel .carousel-item,
    .home-carousel .carousel-item img {
        height: 420px;
        min-height: 380px;
    }

    .home-carousel .carousel-item img {
        object-fit: cover;
    }

    .home-carousel .carousel-caption,
    .home-caption {
        right: 8%;
        left: 8%;
        bottom: 35px;
        max-width: 90%;
        padding: 14px;
        background: rgba(0, 0, 0, 0.55);
        border-radius: 12px;
    }

    .home-carousel .carousel-caption h1,
    .home-caption h1 {
        font-size: 1.6rem;
        line-height: 1.15;
    }

    .home-carousel .carousel-caption p,
    .home-caption p {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .home-section {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .service-card,
    .empresa-box,
    .contact-card,
    .contact-form-card {
        height: auto;
    }

    .contact-item {
        align-items: flex-start;
    }

    .apr-index-page {
        max-width: 100%;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .apr-topo {
        align-items: stretch !important;
    }

    .apr-titulo {
        width: 100%;
    }

    .apr-titulo h3 {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    .apr-titulo p {
        font-size: 14px;
    }

    .btn-nova-apr {
        width: 100%;
        margin-top: 6px;
    }

    .apr-filtro-card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .apr-filtro-card .card-body {
        padding: 10px !important;
    }

    .apr-filtro-card .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .apr-filtro-card .row > * {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .lista-aprs-desktop {
        display: none !important;
    }

    .lista-aprs-mobile {
        display: block;
        font-size: 14px;
        line-height: 1.35;
    }

    .apr-mobile-rapido {
        display: block;
    }

    .form-control,
    .form-select {
        width: 100%;
        max-width: 100%;
    }
}


/* =========================
   RESPONSIVIDADE CELULAR
========================= */

@media (max-width: 576px) {

    .top-banner {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 20px;
    }

    .top-right {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .navbar-brand img.logo-header {
        height: 42px !important;
        width: 130px !important;
        max-height: 42px !important;
        max-width: 130px !important;
    }

    .container.py-4 {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    .carousel {
        height: 280px;
        min-height: 260px;
        max-height: 300px;
    }

    .carousel-caption {
        padding: 8px 12px;
    }

    .carousel-caption h5 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }

    .home-carousel,
    .home-carousel .carousel-item,
    .home-carousel .carousel-item img {
        height: 360px;
        min-height: 320px;
    }

    .home-carousel .carousel-caption,
    .home-caption {
        bottom: 28px;
        padding: 12px;
    }

    .home-carousel .carousel-caption h1,
    .home-caption h1 {
        font-size: 1.25rem;
    }

    .home-carousel .carousel-caption p,
    .home-caption p {
        font-size: 0.85rem;
    }

    .carousel-indicators {
        margin-bottom: 8px;
    }

    .home-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 18px;
    }

    .service-card i {
        font-size: 2rem;
    }

    .empresa-box {
        padding: 25px 20px;
    }

    .empresa-lista span {
        display: block;
        margin-bottom: 8px;
    }

    .contact-card,
    .contact-form-card {
        padding: 22px 18px;
    }

    .contact-title {
        font-size: 1.1rem;
    }

    .contact-actions .btn,
    .contact-form-card .btn {
        width: 100%;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.75rem;
    }

    .card {
        border-radius: 10px;
    }

    .row.g-3,
    .row.g-4 {
        --bs-gutter-y: 0.75rem;
    }

    .btn {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .apr-index-page {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .apr-titulo h3 {
        font-size: 1.05rem;
    }

    .apr-titulo p,
    .apr-card-info,
    .lista-aprs-mobile {
        font-size: 13px;
    }

    .alert {
        padding: 10px;
        font-size: 13px;
    }

    #assinaturaCanvas {
        height: 180px !important;
    }

    .assinatura-box-menor canvas,
    .assinatura-equipe-canvas {
        height: 130px !important;
    }
}


/* =========================
   IMPRESSÃO
========================= */

@media print {
    #produtos-servicos-table tbody tr.empty-row {
        display: table-row !important;
    }

    body {
        background: none !important;
        color: black !important;
    }

    .btn,
    .no-print,
    .navbar,
    footer,
    .whatsapp-float {
        display: none !important;
    }
}

/* =========================
   ORDEM DE SERVIÇO - DADOS DO CLIENTE
========================= */

.cliente-dados-box {
    background: #f8f9fa;
    border: 1px solid #dcdcdc;
    border-left: 5px solid #198754;
    border-radius: 12px;
    padding: 12px 14px;
    color: #222;
    overflow: hidden;
}

.cliente-dados-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.cliente-dados-topo h5 {
    color: #198754;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.cliente-dados-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px 24px;
    font-size: 0.86rem;
    line-height: 1.25;
}

.cliente-dado-item span {
    display: block;
    color: #000;
    font-weight: 700;
    margin-bottom: 2px;
}

.cliente-dado-item strong {
    display: block;
    color: #111;
    font-weight: 500;
    word-break: break-word;
}

.cliente-dado-endereco {
    grid-column: span 1;
}

@media (max-width: 768px) {
    .cliente-dados-topo {
        align-items: flex-start;
        flex-direction: column;
    }

    .cliente-dados-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 0.82rem;
    }

    .cliente-dados-box {
        padding: 10px;
    }
}

/* =========================
   ORDEM DE SERVIÇO - CREATE / EDIT
========================= */

.autocomplete-box {
    position: absolute;
    z-index: 9999;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #198754;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    max-height: 260px;
    overflow-y: auto;
}

.autocomplete-item {
    width: 100%;
    display: block;
    text-align: left;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #eeeeee;
    padding: 9px 12px;
    cursor: pointer;
    color: #222;
}

.autocomplete-item:hover {
    background: #eaffea;
}

.autocomplete-item strong {
    display: block;
    color: #111;
    font-size: 0.95rem;
}

.autocomplete-item small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 2px;
}

.autocomplete-empty {
    padding: 10px 12px;
    color: #666;
    background: #fff;
}

.assinatura-manual-box {
    background: #f8f9fa;
    border: 1px dashed #999;
    border-radius: 12px;
    padding: 18px;
    min-height: 130px;
}

.assinatura-linha {
    height: 70px;
    border-bottom: 2px solid #222;
    margin: 10px auto 0;
    max-width: 320px;
}

#produtosTabela th,
#produtosTabela td {
    vertical-align: middle;
}

#produtosTabela .form-control {
    min-width: 90px;
}

@media (max-width: 768px) {
    #produtosTabela {
        min-width: 900px;
    }

    .autocomplete-box {
        max-height: 220px;
    }
}

/* =========================
   ORDEM DE SERVIÇO - DADOS DO CLIENTE
========================= */

.cliente-dados-box {
    background: #f8f9fa;
    border: 1px solid #dcdcdc;
    border-left: 5px solid #198754;
    border-radius: 12px;
    padding: 12px 14px;
    color: #222;
    overflow: hidden;
}

.cliente-dados-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.cliente-dados-topo h5 {
    color: #198754;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.cliente-dados-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px 24px;
    font-size: 0.86rem;
    line-height: 1.25;
}

.cliente-dado-item span {
    display: block;
    color: #000;
    font-weight: 700;
    margin-bottom: 2px;
}

.cliente-dado-item strong {
    display: block;
    color: #111;
    font-weight: 500;
    word-break: break-word;
}

.cliente-dado-endereco {
    grid-column: span 1;
}

@media (max-width: 768px) {
    .cliente-dados-topo {
        align-items: flex-start;
        flex-direction: column;
    }

    .cliente-dados-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 0.82rem;
    }

    .cliente-dados-box {
        padding: 10px;
    }
}

/* =========================
   BOTÕES DE AÇÃO - TODAS AS TABELAS INDEX
   Clientes / Usuários / Peças / Serviços / OS / APR
========================= */

.acoes-tabela {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.acoes-tabela .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    min-width: 72px;
    height: 32px;
    padding: 0 10px;

    border-radius: 8px;
    border: none;

    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;
    transition: 0.18s ease;
}

.acoes-tabela .btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
    filter: brightness(0.95);
}

.acoes-tabela .btn-success {
    background-color: #198754;
    color: #ffffff;
}

.acoes-tabela .btn-warning {
    background-color: #ffc107;
    color: #111111;
}

.acoes-tabela .btn-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.acoes-tabela .btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.acoes-tabela .btn-primary {
    background-color: #0d6efd;
    color: #ffffff;
}

.acoes-tabela .btn-outline-light,
.acoes-tabela .btn-outline-success {
    background-color: #f8f9fa;
    color: #198754;
    border: 1px solid #198754;
}

.acoes-tabela .btn:disabled,
.acoes-tabela .btn.disabled {
    background-color: #adb5bd;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
}

/* Ícones dentro dos botões */
.acoes-tabela .btn i {
    font-size: 0.9rem;
}

/* Evita coluna de ações muito apertada */
.table th:last-child,
.table td:last-child {
    white-space: nowrap;
}

/* Mobile: botões ficam um embaixo do outro apenas em tela pequena */
@media (max-width: 768px) {
    .acoes-tabela {
        flex-direction: column;
        align-items: stretch;
    }

    .acoes-tabela .btn {
        width: 100%;
        min-width: 90px;
    }

    .table th:last-child,
    .table td:last-child {
        white-space: normal;
    }
}
/* =========================
   INDEX ORDEM DE SERVIÇO
========================= */

.os-index-table td {
    vertical-align: middle;
}

.os-index-table .os-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    border-radius: 8px;
    background: #e9f8ee;
    color: #198754;
    font-weight: 800;
}

.os-cliente-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.25;
}

.os-cliente-info strong {
    color: #111;
    font-size: 0.95rem;
}

.os-cliente-info span {
    color: #444;
    font-size: 0.84rem;
}

.os-cliente-info i {
    color: #198754;
    margin-right: 4px;
}

/* =========================================================
   PADRÃO GLOBAL - BOTÕES DE AÇÃO DAS TABELAS
   Usado em Clientes / Usuários / Peças / Serviços / OS / APR
========================================================= */

td .acoes-tabela,
.acoes-tabela {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    width: 100%;
}

.acoes-tabela .btn,
.acoes-tabela a.btn,
.acoes-tabela button.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;

    min-width: 76px !important;
    height: 34px !important;
    padding: 0 10px !important;

    border-radius: 8px !important;
    border: none !important;

    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
    text-decoration: none !important;

    margin: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: 0.18s ease !important;
}

.acoes-tabela .btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
    text-decoration: none !important;
}

.acoes-tabela .btn i {
    font-size: 0.9rem !important;
    line-height: 1 !important;
}

/* Cores padronizadas */
.acoes-tabela .btn-success {
    background-color: #198754 !important;
    color: #ffffff !important;
}

.acoes-tabela .btn-warning {
    background-color: #ffc107 !important;
    color: #111111 !important;
}

.acoes-tabela .btn-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.acoes-tabela .btn-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

.acoes-tabela .btn-primary {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

.acoes-tabela .btn:disabled,
.acoes-tabela .btn.disabled {
    background-color: #adb5bd !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.75 !important;
    transform: none !important;
}

/* Coluna de ações */
.table th:last-child,
.table td:last-child {
    white-space: nowrap;
}

/* Evita que a coluna fique esmagada */
.table th.col-acoes,
.table td.col-acoes {
    width: 270px;
    min-width: 270px;
}

/* Mobile: aí sim os botões podem ficar um embaixo do outro */
@media (max-width: 768px) {
    td .acoes-tabela,
    .acoes-tabela {
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
    }

    .acoes-tabela .btn,
    .acoes-tabela a.btn,
    .acoes-tabela button.btn {
        width: 100% !important;
        min-width: 90px !important;
    }

    .table th:last-child,
    .table td:last-child {
        white-space: normal;
    }

    .table th.col-acoes,
    .table td.col-acoes {
        min-width: 120px;
        width: 120px;
    }
}

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

.dashboard-page {
    background-color: #111;
    min-height: calc(100vh - 140px);
    padding-top: 35px;
    padding-bottom: 45px;
}

.dashboard-topo {
    background: #1f2529;
    border: 1px solid rgba(57, 255, 20, 0.35);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 28px;
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.12);
}

.dashboard-topo h2 {
    color: #39ff14;
    font-weight: bold;
    margin-bottom: 6px;
}

.dashboard-topo p {
    color: #ddd;
    margin-bottom: 0;
}

.dashboard-nivel {
    display: inline-block;
    background: #39ff14;
    color: #000;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 10px;
}

.dashboard-alertas {
    margin-bottom: 28px;
}

.dashboard-mini-card {
    background: #1f2529;
    color: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(57, 255, 20, 0.35);
    min-height: 125px;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.08);
    position: relative;
    transition: 0.2s ease;
}

.dashboard-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.35);
}

.dashboard-mini-card i {
    font-size: 1.8rem;
    color: #39ff14;
    margin-bottom: 8px;
}

.dashboard-mini-card h4 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2px;
    color: #fff;
}

.dashboard-mini-card span {
    color: #d7d7d7;
    font-size: 0.92rem;
}

.dashboard-mini-card.alerta {
    border-color: #ffc107;
}

.dashboard-mini-card.alerta i,
.dashboard-mini-card.alerta h4 {
    color: #ffc107;
}

.dashboard-mini-card.perigo {
    border-color: #dc3545;
}

.dashboard-mini-card.perigo i,
.dashboard-mini-card.perigo h4 {
    color: #dc3545;
}

.dashboard-mini-card.info {
    border-color: #0dcaf0;
}

.dashboard-mini-card.info i,
.dashboard-mini-card.info h4 {
    color: #0dcaf0;
}

.dashboard-lista-estoque {
    background: #1f2529;
    border: 1px solid rgba(255, 193, 7, 0.45);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 28px;
    color: #fff;
}

.dashboard-lista-estoque h5 {
    color: #ffc107;
    font-weight: bold;
    margin-bottom: 14px;
}

.dashboard-lista-estoque table {
    margin-bottom: 0;
}

.dashboard-card {
    background: #1f2529;
    color: #fff;
    border: 2px solid #39ff14;
    border-radius: 14px;
    min-height: 165px;
    transition: 0.2s ease;
    position: relative;
}

.dashboard-card:hover {
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.55);
    transform: translateY(-4px);
}

.dashboard-card .card-body {
    padding: 24px 18px;
}

.dashboard-card i {
    font-size: 2.2rem;
    color: #39ff14;
    margin-bottom: 10px;
}

.dashboard-card h5 {
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.dashboard-card p {
    color: #d7d7d7;
    font-size: 0.92rem;
    margin-bottom: 0;
}

.dashboard-card.sair {
    border-color: #dc3545;
}

.dashboard-card.sair i,
.dashboard-card.sair h5 {
    color: #dc3545;
}

.dashboard-card.sair:hover {
    box-shadow: 0 0 18px rgba(220, 53, 69, 0.55);
}

@media (max-width: 768px) {
    .dashboard-page {
        padding-top: 18px;
    }

    .dashboard-topo {
        padding: 16px;
        margin-bottom: 18px;
    }

    .dashboard-topo h2 {
        font-size: 1.25rem;
    }

    .dashboard-card {
        min-height: 135px;
    }

    .dashboard-card .card-body {
        padding: 18px 14px;
    }

    .dashboard-mini-card {
        min-height: 105px;
    }
}

/* =========================
   DASHBOARD - CARDS ELEGANTES
   Colar no FINAL do style.css
========================= */

.dashboard-page {
    background-color: #111 !important;
    min-height: calc(100vh - 140px);
    padding-top: 35px;
    padding-bottom: 45px;
}

.dashboard-topo {
    background: #1f2529 !important;
    border: 1px solid rgba(57, 255, 20, 0.35) !important;
    border-radius: 14px !important;
    padding: 22px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.12) !important;
}

.dashboard-topo h2 {
    color: #39ff14 !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
}

.dashboard-topo p {
    color: #ddd !important;
    margin-bottom: 8px !important;
}

.dashboard-nivel {
    display: inline-block !important;
    background: #39ff14 !important;
    color: #000 !important;
    font-weight: bold !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
}

/* ALERTA DE ESTOQUE */
.dashboard-alerta-estoque,
.dashboard-page .alert-warning {
    border-radius: 12px !important;
    border: 1px solid #ffc107 !important;
    background: #fff3cd !important;
    color: #111 !important;
    padding: 15px 18px !important;
}

/* CARDS PRINCIPAIS */
.dashboard-page .dashboard-card {
    background: #1f2529 !important;
    color: #fff !important;
    border: 2px solid #39ff14 !important;
    border-radius: 16px !important;
    min-height: 165px !important;
    transition: 0.2s ease !important;
    position: relative !important;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.10) !important;
}

.dashboard-page .dashboard-card:hover {
    box-shadow: 0 0 22px rgba(57, 255, 20, 0.55) !important;
    transform: translateY(-4px) !important;
}

.dashboard-page .dashboard-card .card-body {
    padding: 24px 18px !important;
    background: transparent !important;
}

.dashboard-page .dashboard-card i {
    font-size: 2.2rem !important;
    color: #39ff14 !important;
    margin-bottom: 12px !important;
}

.dashboard-page .dashboard-card h5 {
    font-weight: bold !important;
    color: #fff !important;
    margin-bottom: 8px !important;
    font-size: 1.2rem !important;
}

.dashboard-page .dashboard-card p {
    color: #d7d7d7 !important;
    font-size: 0.92rem !important;
    margin-bottom: 0 !important;
}

/* CARD SAIR */
.dashboard-page .dashboard-card.sair {
    border-color: #dc3545 !important;
}

.dashboard-page .dashboard-card.sair i,
.dashboard-page .dashboard-card.sair h5 {
    color: #dc3545 !important;
}

.dashboard-page .dashboard-card.sair:hover {
    box-shadow: 0 0 22px rgba(220, 53, 69, 0.55) !important;
}

/* MOBILE */
@media (max-width: 768px) {
    .dashboard-page {
        padding-top: 18px !important;
    }

    .dashboard-topo {
        padding: 16px !important;
        margin-bottom: 18px !important;
    }

    .dashboard-topo h2 {
        font-size: 1.35rem !important;
    }

    .dashboard-page .dashboard-card {
        min-height: 135px !important;
    }

    .dashboard-page .dashboard-card .card-body {
        padding: 18px 14px !important;
    }
}

/* =========================
   FINANCEIRO - CATEGORIAS
========================= */

.financeiro-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 25px 15px 45px;
}

.financeiro-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.financeiro-titulo h1 {
    margin: 0;
    color: #39ff14;
    font-size: 30px;
    font-weight: 700;
}

.financeiro-titulo p {
    margin: 6px 0 0;
    color: #bdbdbd;
}

.financeiro-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.financeiro-card {
    padding: 20px;
    border: 1px solid rgba(57, 255, 20, 0.28);
    border-radius: 14px;
    background: #1f2529;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.08);
    transition: 0.2s ease;
}

.financeiro-card:hover {
    transform: translateY(-3px);
    border-color: #39ff14;
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.22);
}

.financeiro-card span {
    display: block;
    margin-bottom: 8px;
    color: #d7d7d7;
    font-size: 14px;
}

.financeiro-card strong {
    color: #fff;
    font-size: 28px;
}

.financeiro-card.ativo strong {
    color: #39ff14;
}

.financeiro-card.inativo {
    border-color: rgba(220, 53, 69, 0.55);
}

.financeiro-card.inativo strong {
    color: #ff7b7b;
}

.financeiro-filtros {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid rgba(57, 255, 20, 0.25);
    border-radius: 14px;
    background: #1f2529;
}

.financeiro-filtros form {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 14px;
    align-items: end;
}

.campo-filtro label {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-weight: 600;
}

.campo-filtro select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #111;
    color: #fff;
}

.campo-filtro select:focus {
    border-color: #39ff14;
    outline: none;
    box-shadow: 0 0 0 0.18rem rgba(57, 255, 20, 0.15);
}

.financeiro-tabela-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(57, 255, 20, 0.25);
    border-radius: 14px;
    background: #1f2529;
}

.financeiro-tabela {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.financeiro-tabela th,
.financeiro-tabela td {
    padding: 14px 12px;
    border-bottom: 1px solid #303030;
    text-align: left;
    vertical-align: middle;
}

.financeiro-tabela th {
    background: #222;
    color: #39ff14;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.financeiro-tabela td {
    color: #eee;
}

.financeiro-tabela tbody tr:hover {
    background: #202020;
}

.financeiro-tabela tbody tr:last-child td {
    border-bottom: 0;
}

.badge-financeiro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-receita,
.badge-ativo {
    background: rgba(57, 255, 20, 0.14);
    color: #39ff14;
}

.badge-despesa {
    background: rgba(255, 193, 7, 0.14);
    color: #ffd35a;
}

.badge-ambos {
    background: rgba(13, 202, 240, 0.14);
    color: #67dfff;
}

.badge-inativo {
    background: rgba(255, 77, 77, 0.14);
    color: #ff7b7b;
}

.acoes-financeiro {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.btn-financeiro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-financeiro:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    text-decoration: none;
}

.btn-verde {
    background: #39ff14;
    color: #111;
}

.btn-cinza {
    background: #353535;
    color: #fff;
}

.btn-amarelo {
    background: #ffc107;
    color: #111;
}

.btn-vermelho {
    background: #dc3545;
    color: #fff;
}

.btn-azul {
    background: #0d6efd;
    color: #fff;
}

.alerta-financeiro {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 9px;
    font-weight: 600;
}

.alerta-sucesso {
    border-left: 4px solid #39ff14;
    background: rgba(57, 255, 20, 0.10);
    color: #baffad;
}

.alerta-erro {
    border-left: 4px solid #ff4d4d;
    background: rgba(255, 77, 77, 0.10);
    color: #ffb3b3;
}

.sem-registros {
    padding: 30px;
    color: #bbb;
    text-align: center;
}

.form-inline {
    display: inline;
    margin: 0;
}

@media (max-width: 900px) {
    .financeiro-cards {
        grid-template-columns: 1fr;
    }

    .financeiro-filtros form {
        grid-template-columns: 1fr 1fr;
    }

    .financeiro-topo {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .financeiro-container {
        padding: 18px 10px 30px;
    }

    .financeiro-filtros form {
        grid-template-columns: 1fr;
    }

    .financeiro-topo .btn-financeiro {
        width: 100%;
    }

    .financeiro-titulo h1 {
        font-size: 24px;
    }

    .acoes-financeiro {
        flex-direction: column;
        align-items: stretch;
    }

    .acoes-financeiro .btn-financeiro,
    .acoes-financeiro form {
        width: 100%;
    }
}

/* =========================================================
   CONTAS A RECEBER - INDEX
========================================================= */

.contas-receber-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 18px 45px;
    background: #111;
}

.contas-receber-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.contas-receber-titulo h1,
.contas-receber-titulo h2,
.contas-receber-titulo h3 {
    margin: 0 0 6px;
    color: #39ff14;
    font-weight: 800;
}

.contas-receber-titulo p {
    margin: 0;
    color: #d0d0d0;
}

.contas-receber-acoes {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.contas-receber-acoes .btn {
    min-height: 42px;
    border-radius: 9px;
    padding: 9px 15px;
    font-weight: 700;
}

.contas-receber-resumo {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 24px;
}

.contas-receber-resumo-card {
    min-height: 138px;
    padding: 18px;
    background: #1f2529;
    border: 1px solid rgba(57, 255, 20, 0.35);
    border-radius: 14px;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.08);
    transition: 0.2s ease;
}

.contas-receber-resumo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.18);
}

.contas-receber-resumo-card i {
    display: block;
    margin-bottom: 10px;
    color: #39ff14;
    font-size: 1.9rem;
}

.contas-receber-resumo-card strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.1;
}

.contas-receber-resumo-card span {
    display: block;
    color: #d7d7d7;
    font-size: 0.9rem;
}

.contas-receber-resumo-card.info {
    border-color: #0dcaf0;
}

.contas-receber-resumo-card.info i,
.contas-receber-resumo-card.info strong {
    color: #0dcaf0;
}

.contas-receber-resumo-card.sucesso {
    border-color: #39ff14;
}

.contas-receber-resumo-card.sucesso i {
    color: #39ff14;
}

.contas-receber-resumo-card.alerta {
    border-color: #ffc107;
}

.contas-receber-resumo-card.alerta i,
.contas-receber-resumo-card.alerta strong {
    color: #ffc107;
}

.contas-receber-resumo-card.perigo {
    border-color: #dc3545;
}

.contas-receber-resumo-card.perigo i,
.contas-receber-resumo-card.perigo strong {
    color: #ff4356;
}

/* FILTROS */

.contas-receber-filtros {
    margin-bottom: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #aeb4ba;
    border-radius: 10px;
    color: #222;
}

.contas-receber-filtros-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: #1f2529;
    color: #fff;
    font-weight: 700;
}

.contas-receber-filtros-header i {
    color: #39ff14;
}

.contas-receber-filtros-body {
    padding: 18px;
}

.contas-receber-filtros-form {
    display: grid !important;
    grid-template-columns:
        minmax(260px, 2fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        auto
        auto;
    gap: 14px;
    align-items: end;
}

.contas-receber-filtro-campo {
    min-width: 0;
}

.contas-receber-filtro-campo label {
    display: block;
    margin-bottom: 6px;
    color: #222;
    font-weight: 600;
}

.contas-receber-filtro-campo .form-control,
.contas-receber-filtro-campo .form-select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfd3d7;
    border-radius: 8px;
    background: #fff;
    color: #222;
}

.contas-receber-filtro-campo .form-control:focus,
.contas-receber-filtro-campo .form-select:focus {
    border-color: #39ff14;
    box-shadow: 0 0 0 0.18rem rgba(57, 255, 20, 0.14);
}

.contas-receber-filtros-form .btn {
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 8px;
    white-space: nowrap;
}

/* TABELA */

.contas-receber-tabela-wrapper {
    overflow-x: auto;
    background: #1f2529;
    border: 1px solid rgba(57, 255, 20, 0.28);
    border-radius: 12px;
}

.contas-receber-tabela {
    width: 100%;
    min-width: 1050px;
    margin: 0;
    border-collapse: collapse;
}

.contas-receber-tabela thead th {
    padding: 13px 12px;
    background: #252b2f;
    color: #39ff14;
    border-bottom: 1px solid #394046;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    white-space: nowrap;
}

.contas-receber-tabela tbody td {
    padding: 13px 12px;
    color: #f1f1f1;
    border-bottom: 1px solid #30373b;
    vertical-align: middle;
}

.contas-receber-tabela tbody tr:hover {
    background: #23292d;
}

.contas-receber-tabela tbody tr:last-child td {
    border-bottom: 0;
}

.contas-receber-descricao {
    min-width: 220px;
}

.contas-receber-descricao strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
}

.contas-receber-descricao small {
    display: block;
    color: #aaa;
}

.contas-receber-valor {
    white-space: nowrap;
    font-weight: 700;
}

.contas-receber-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.contas-receber-status.pendente {
    background: rgba(255, 193, 7, 0.14);
    color: #ffd24d;
}

.contas-receber-status.parcial {
    background: rgba(13, 202, 240, 0.14);
    color: #65ddf5;
}

.contas-receber-status.recebido {
    background: rgba(57, 255, 20, 0.14);
    color: #72ff58;
}

.contas-receber-status.vencido {
    background: rgba(220, 53, 69, 0.16);
    color: #ff6675;
}

.contas-receber-status.cancelado {
    background: rgba(108, 117, 125, 0.18);
    color: #c8cdd2;
}

.contas-receber-vazio {
    padding: 35px 20px !important;
    text-align: center;
    color: #bdbdbd !important;
}

/* TABLET */

@media (max-width: 1100px) {
    .contas-receber-resumo {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contas-receber-filtros-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contas-receber-filtros-form .btn {
        width: 100%;
    }
}

/* CELULAR */

@media (max-width: 700px) {
    .contas-receber-page {
        padding: 16px 10px 30px;
    }

    .contas-receber-topo {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 16px;
    }

    .contas-receber-acoes {
        width: 100%;
        justify-content: stretch;
    }

    .contas-receber-acoes .btn {
        flex: 1;
    }

    .contas-receber-resumo {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contas-receber-resumo-card {
        min-height: auto;
        padding: 15px;
    }

    .contas-receber-resumo-card strong {
        font-size: 1.45rem;
    }

    .contas-receber-filtros-body {
        padding: 13px;
    }

    .contas-receber-filtros-form {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .contas-receber-filtros-form .btn {
        width: 100%;
    }
}
/* =========================================================
   CONTAS A PAGAR
========================================================= */

.contas-receber-page {
    width: 100%;
    min-height: calc(100vh - 120px);
    padding: 28px 0 45px;
    background: #111;
    color: #fff;
}

.contas-receber-page .container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

/* TOPO */

.contas-receber-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}

.contas-receber-topo h2 {
    margin: 0 0 5px;
    color: #39ff14;
    font-weight: 700;
}

.contas-receber-topo p {
    margin: 0;
    color: #d7d7d7;
}

/* CARDS DE RESUMO */

.contas-receber-resumo {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.conta-resumo-card {
    min-height: 105px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #1b1b1b;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.conta-resumo-card:hover {
    transform: translateY(-3px);
    border-color: #39ff14;
    box-shadow: 0 10px 26px rgba(57, 255, 20, 0.12);
}

.conta-resumo-icone {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(57, 255, 20, 0.55);
    border-radius: 10px;
    background: rgba(57, 255, 20, 0.08);
    color: #39ff14;
    font-size: 21px;
}

.conta-resumo-card small {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
    font-size: 13px;
}

.conta-resumo-card strong {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

/* FILTROS */

.contas-receber-filtros {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #1b1b1b;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.contas-receber-filtros-form {
    width: 100%;
}

.contas-receber-filtros .form-label {
    margin-bottom: 6px;
    color: #eee;
    font-weight: 600;
}

.contas-receber-filtros .form-control,
.contas-receber-filtros .form-select {
    min-height: 44px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #252525;
    color: #fff;
}

.contas-receber-filtros .form-control::placeholder {
    color: #929292;
}

.contas-receber-filtros .form-control:focus,
.contas-receber-filtros .form-select:focus {
    border-color: #39ff14;
    background-color: #252525;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(57, 255, 20, 0.14);
}

.contas-receber-filtros .form-select option {
    background: #252525;
    color: #fff;
}

/* corrige ícone do input date no Chrome */

.contas-receber-filtros input[type="date"] {
    color-scheme: dark;
}

/* LISTAGEM */

.contas-receber-listagem {
    overflow: hidden;
    border: 1px solid #333;
    border-radius: 12px;
    background: #1b1b1b;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.contas-receber-listagem .table-responsive {
    margin: 0;
}

.contas-receber-table {
    width: 100%;
    margin: 0;
    color: #fff;
    background: transparent;
}

.contas-receber-table thead th {
    padding: 15px 13px;
    border-bottom: 1px solid #3d3d3d;
    background: #252525;
    color: #39ff14;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}

.contas-receber-table tbody td {
    padding: 14px 13px;
    border-color: #303030;
    background: #1b1b1b;
    color: #ededed;
    vertical-align: middle;
}

.contas-receber-table tbody tr {
    transition: background 0.2s ease;
}

.contas-receber-table tbody tr:hover td {
    background: #232323;
}

.contas-receber-table tbody tr:last-child td {
    border-bottom: 0;
}

/* estado vazio */

.contas-receber-table tbody td[colspan] {
    height: 185px;
    background: #1b1b1b;
    color: #aaa;
}

.contas-receber-table tbody td[colspan] i {
    color: #39ff14;
}

/* BOTÕES */

.contas-receber-page .btn-success {
    border-color: #39ff14;
    background: #39ff14;
    color: #111;
    font-weight: 700;
}

.contas-receber-page .btn-success:hover {
    border-color: #20d900;
    background: #20d900;
    color: #111;
}

.contas-receber-page .btn-outline-success {
    border-color: #39ff14;
    color: #39ff14;
}

.contas-receber-page .btn-outline-success:hover {
    border-color: #39ff14;
    background: #39ff14;
    color: #111;
}

.contas-receber-page .btn-outline-light {
    border-color: #888;
    color: #fff;
}

.contas-receber-page .btn-outline-light:hover {
    border-color: #fff;
    background: #fff;
    color: #111;
}

/* RESPONSIVO */

@media (max-width: 1199.98px) {
    .contas-receber-resumo {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .contas-receber-page {
        padding: 18px 0 32px;
    }

    .contas-receber-topo {
        align-items: stretch;
    }

    .contas-receber-topo > div,
    .contas-receber-topo > .d-flex {
        width: 100%;
    }

    .contas-receber-topo .btn {
        flex: 1;
    }

    .contas-receber-resumo {
        grid-template-columns: 1fr;
    }

    .conta-resumo-card {
        min-height: 88px;
    }

    .contas-receber-filtros {
        padding: 15px;
    }

    .contas-receber-filtros .btn {
        width: 100%;
    }

    .contas-receber-listagem {
        border-radius: 9px;
    }

    .contas-receber-table {
        min-width: 1050px;
    }
}
