﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
.form-group{
    color:gray;
}
.ubuntu-light {
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.ubuntu-regular {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.ubuntu-medium {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.ubuntu-bold {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.ubuntu-light-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.ubuntu-regular-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.ubuntu-medium-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.ubuntu-bold-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: italic;
}


.navbar-light .navbar-nav .nav-link {
     color: #f0f0f0;
}

/* Tom de cinza mais claro */
.text-almost-white {
    color: #f0f0f0;
     text-shadow: 0 0 5px #f0f0f0; /* Adiciona uma sombra cinza */
}
.nav-item a {
    /* Adicione outros estilos desejados, como cor, tamanho, etc. */
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;

}
a.nav-link {
    color: #fff;
  
}


.nav-link:hover {
    color: #76777A;
    text-shadow: 0 0 5px #f0f0f0; /* Adiciona uma sombra cinza */
}

.nav-link.active {
    color: #a5a5a5;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #1861ac;
  background-color: #1b6ec2;
  border-color: #1861ac;
}
.vertical-line {
    border-left: 1px solid #ccc; /* Cor e largura da linha */
    height: 50px; /* Altura da linha - ajuste conforme necessário */
    margin: 0 10px; /* Espaçamento entre elementos - ajuste conforme necessário */
}
/* Sticky footer styles
-------------------------------------------------- */
html {
    height: 100%;
    min-height: 100%;
}

* {
/*    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;*/
}

body {
    background-color: #F7F7F7;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-family: "Kanit", sans-serif;
}

footer {
    margin-top: auto;
}

a {
    text-decoration: none;
}


.container-main {
    width: 100%;
    height: 100%;
    background: #222f3e;
    display: flex;
    background-color: white;
    /*    background-image: radial-gradient(to center, #fff, #fff, #fff);
    background-image: radial-gradient(ellipse farthest-corner at 45px 45px, #fff 0%, #fff 50%, rgba(5,5,5,1) 95%);*/
}

.container-login {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.login-parent {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #303030;
    background-image: url("../images/bg-login_1.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 350px;
    background: rgba(163, 157, 157, 0.541);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(13.5px);
    -webkit-backdrop-filter: blur(14.5px);
    border: 10px solid rgba(163, 157, 157, 0.1);
}

.content-container {
    background-color: #ffff;
    border-radius: 0.5rem;
    border: 10px #ffff solid;
    margin: 5px;
}




.form-login {

    flex-direction: column;
    align-items: center;
    padding: 40px;
    position: relative;
}


#logo {
/*    width: 211px;
    height: 94px;
    margin: 20px;*/

}



.welcome {
    font-size: 48px;
    color: #384158;
    margin-bottom: 16px;
    font-weight: bold;
}

/*
.input-form-Generic {
    width: 200px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #c8d6e5;
    font-size: 16px;
    padding: 0 16px;
    color: #a5a5a5;
}*/

.forgot-password {
    width: 100%;
    color: #76777A;
    text-decoration:underline;
}



.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
    /* Margin bottom by footer height */
   
}

footer {
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    background-color: gray;
    left: 0;
}


/*input,
select,
file,
textarea{
    max-width: 400px;
}*/


header.mainPrincipal {
 
/*    line-height:60px;
    justify-content: center;
    align-items: center;*/
    
}

body {
    visibility: hidden;
   
    
}


/* LOADING (identidade AG) */
.fundoEscuro {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(2px);
    z-index: 99998;
}

.progresso {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.30);
    padding: 1.75rem 2.5rem;
    z-index: 99999;
}

.progresso__spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(192, 24, 42, 0.15);
    border-top-color: #c0182a;
    animation: progresso-girar 0.8s linear infinite;
}

.progresso__texto {
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #374151;
}

@keyframes progresso-girar {
    to { transform: rotate(360deg); }
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.custom-toggler.navbar-toggler {
    border-color: #fff;
}  
/* Alerta de erro (vc:Summary) — mesmo visual do login.css */
.validation-alert {
    background: #fdf1f2;
    border: 1px solid rgba(192, 24, 42, 0.25);
    border-left: 4px solid #c0182a;
    border-radius: 10px;
    color: #842029;
    font-size: 0.9rem;
    padding: 0.85rem 2.4rem 0.85rem 1rem;
    margin-bottom: 1.25rem;
    gap: 0.6rem;
}

.validation-alert__icon {
    color: #c0182a;
    font-size: 1.05rem;
    margin-top: 2px;
}

.validation-alert__body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.validation-alert__body li + li { margin-top: 0.25rem; }

.validation-alert .btn-close {
    font-size: 0.7rem;
    padding: 0.9rem;
}

/* ===== Navbar AGPalete — identidade nova (igual ao login) ===== */
.navbar-ag {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(17, 24, 39, 0.06);
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.navbar-ag .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.navbar-ag__name {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #2b2b2b;
    line-height: 1;
}

.navbar-ag .nav-link {
    color: #374151;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    text-shadow: none;
}

.navbar-ag .nav-link:hover,
.navbar-ag .nav-link:focus {
    color: #c0182a;
    background: rgba(192, 24, 42, 0.06);
    text-shadow: none;
}

.navbar-ag .nav-link.active {
    color: #c0182a;
    font-weight: 600;
}

.navbar-ag .nav-link.disabled {
    color: #9ca3af;
}

.navbar-ag .dropdown-menu {
    border: 1px solid #eef0f2;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14);
    padding: 0.4rem 0;
    overflow: hidden;
}

.navbar-ag .dropdown-item {
    color: #374151;
    padding: 0.55rem 1.15rem;
}

.navbar-ag .dropdown-item:hover,
.navbar-ag .dropdown-item:focus {
    background: rgba(192, 24, 42, 0.08);
    color: #c0182a;
}

.navbar-ag .dropdown-divider {
    margin: 0.2rem 0;
    border-color: #eef0f2;
}

.navbar-ag .navbar-toggler {
    border: 0;
    color: #374151;
}

/* Botão do usuário (canto direito) */
.btn-user {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(192, 24, 42, 0.10);
    color: #c0182a;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-user:hover,
.btn-user:focus,
.btn-user[aria-expanded="true"] {
    background: #c0182a;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(192, 24, 42, 0.2);
}

/* Ícone do toggler (hambúrguer) escuro p/ fundo branco */
.navbar-ag .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(55,65,81,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* ===== Footer AGPalete — identidade nova ===== */
.footer-ag {
    background: linear-gradient(150deg, #c0182a 0%, #8f0f1d 55%, #6f0b16 100%);
    color: #fff;
    margin-top: 3rem;
}

.footer-ag__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem 0 1.75rem;
}

.footer-ag__logo-chip {
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    margin-bottom: 0.9rem;
}

.footer-ag__logo-chip img { height: 34px; display: block; }

.footer-ag__tagline {
    margin: 0 0 0.9rem;
    opacity: 0.92;
}

.footer-ag__social { display: flex; gap: 0.5rem; }

.footer-ag__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.footer-ag__social a:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }

.footer-ag__name {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.3rem;
}

.footer-ag__muted {
    margin: 0 0 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

.footer-ag__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 575px) {
    .footer-ag__top { flex-direction: column; gap: 1.25rem; }
}

/* ===== Home — cards de atalho ===== */
.home-hero { padding: 2.5rem 1rem 3rem; }

.home-hero__header { text-align: center; margin-bottom: 2rem; }

.home-hero__title {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #2b2b2b;
    margin: 0;
}

.home-hero__subtitle {
    color: #6b7280;
    margin: 0.35rem 0 0;
}

.home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
    padding: 1.75rem 1.25rem;
    height: 100%;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(192, 24, 42, 0.14);
    border-color: rgba(192, 24, 42, 0.35);
    text-decoration: none;
}

.home-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(192, 24, 42, 0.10);
    color: #c0182a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.home-card:hover .home-card__icon {
    background: #c0182a;
    color: #fff;
}

.home-card__label {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #2b2b2b;
}

.home-card__hint {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Item ativo dos dropdowns do menu (sobrescreve o azul do Bootstrap) */
.navbar-ag .dropdown-item.active {
    background: rgba(192, 24, 42, 0.10);
    color: #c0182a;
    font-weight: 600;
}

/* ===== Selo LGPD (informativo) ===== */
.lgpd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.lgpd-badge i { font-size: 1.25rem; }

.lgpd-badge span { display: flex; flex-direction: column; line-height: 1.25; }

.lgpd-badge strong { font-size: 0.82rem; font-weight: 600; }

.lgpd-badge small { font-size: 0.72rem; opacity: 0.75; }

/* ===== Sticky footer: conteúdo cresce, footer cola no fim da janela ===== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1 0 auto;
}

.footer-ag {
    flex-shrink: 0;
}

/* ===== Componentes compartilhados da identidade AG ===== */
.page-ag { padding-bottom: 2rem; }

.page-ag__header { margin: 0.5rem 0 1.5rem; }

.page-ag__title {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-size: 1.7rem;
    color: #2b2b2b;
    margin: 0;
}

.page-ag__title i { color: #c0182a; font-size: 1.4rem; }

.page-ag__subtitle { color: #6b7280; margin: 0.25rem 0 0; }

.card-ag {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
    padding: 1.25rem 1.5rem;
}

.card-ag--table { padding: 0; }

/* Cantos arredondados sem overflow:hidden (deixa popovers escaparem do card) */
.card-ag--table thead th:first-child { border-top-left-radius: 14px; }
.card-ag--table thead th:last-child { border-top-right-radius: 14px; }
.card-ag--table tbody tr:last-child td:first-child { border-bottom-left-radius: 14px; }
.card-ag--table tbody tr:last-child td:last-child { border-bottom-right-radius: 14px; }

/* Botões da identidade */
.btn-ag {
    background: #c0182a;
    border: 1px solid #c0182a;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}
.btn-ag:hover { background: #8f0f1d; border-color: #8f0f1d; color: #fff; }
.btn-ag:focus { box-shadow: 0 0 0 0.25rem rgba(192, 24, 42, 0.25); color: #fff; }
.btn-ag:disabled, .btn-ag.disabled { background: #c0182a; border-color: #c0182a; color: #fff; opacity: 0.65; }

.btn-outline-ag {
    background: #fff;
    border: 1px solid #c0182a;
    color: #c0182a;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-outline-ag:hover { background: #c0182a; color: #fff; }

/* Barra de pesquisa */
.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.search-bar__field { flex: 2 1 260px; }

.search-bar .input-group-text { background: #fff; color: #c0182a; }

/* Tabela */
.card-ag--table thead th {
    background: #f8f9fa;
    color: #374151;
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.9rem 1rem;
    border-bottom: 2px solid #eef0f2;
}

.card-ag--table tbody td { padding: 0.75rem 1rem; color: #374151; }

.card-ag--table tbody tr:hover { background: rgba(192, 24, 42, 0.03); }

.badge-perfil {
    display: inline-block;
    background: rgba(192, 24, 42, 0.08);
    color: #c0182a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

/* Botões de ação da tabela */
.btn-acao {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.btn-acao:hover { border-color: #c0182a; color: #c0182a; background: rgba(192, 24, 42, 0.05); }

.btn-acao--danger:hover { border-color: #dc3545; color: #dc3545; background: rgba(220, 53, 69, 0.06); }

/* Resultado vazio */
.empty-result {
    text-align: center;
    color: #9ca3af;
    padding: 3rem 1rem;
}

.empty-result i { font-size: 2rem; margin-bottom: 0.75rem; display: block; }

.empty-result p { margin: 0; font-size: 1rem; }

/* Filtros da barra de pesquisa */
.search-bar__filter { flex: 1 1 160px; min-width: 150px; max-width: 240px; }

.search-bar__actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    padding-bottom: 1px;
    margin-left: auto;
}

.search-bar .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.search-bar__actions .btn { white-space: nowrap; }

.result-count {
    color: #6b7280;
    font-size: 0.88rem;
    margin: 0 0 0.6rem 0.25rem;
}

/* Badge "+N" para listas longas (ex.: empresas do usuário) */
.badge-mais {
    display: inline-block;
    background: #eef0f2;
    color: #374151;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    margin-left: 0.4rem;
    cursor: help;
    white-space: nowrap;
}

.badge-mais:hover { background: rgba(192, 24, 42, 0.10); color: #c0182a; }

/* Popover "+N" (lista completa ao clique — sem dependência do Popper) */
.lista-mais { position: relative; display: inline-block; }

.lista-mais__toggle { border: 0; }

.lista-mais__popover {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    min-width: 240px;
    max-width: 320px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
    padding: 0.75rem 0.9rem;
    text-align: left;
    font-size: 0.85rem;
    color: #374151;
    white-space: normal;
}

.lista-mais.show .lista-mais__popover { display: block; }

.lista-mais__popover strong {
    display: block;
    font-family: "Kanit", sans-serif;
    font-size: 0.82rem;
    color: #c0182a;
    margin-bottom: 0.4rem;
}

.lista-mais__popover ul { list-style: none; margin: 0; padding: 0; }

.lista-mais__popover li { padding: 0.22rem 0; border-bottom: 1px solid #f3f4f6; }

.lista-mais__popover li:last-child { border-bottom: 0; }

/* Aviso LGPD (modais de exclusão/anonimização) */
.aviso-lgpd {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    text-align: left;
    background: #fdf6ec;
    border: 1px solid rgba(180, 120, 0, 0.25);
    border-left: 4px solid #d9a406;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    color: #6b5523;
}

.aviso-lgpd i { color: #d9a406; margin-top: 2px; }

/* ===== Picker de empresas (substituto do select multiple) ===== */
.picker-empresas {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.picker-empresas__topo {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.6rem;
    border-bottom: 1px solid #eef0f2;
    background: #f8f9fa;
    flex-wrap: wrap;
}

.picker-empresas__busca { flex: 1 1 220px; }

.picker-empresas__busca .input-group-text { background: #fff; color: #9ca3af; }

.picker-empresas__acoes { display: flex; gap: 0.35rem; }

.picker-empresas__lista {
    max-height: 220px;
    overflow-y: auto;
    padding: 0.35rem 0;
}

.picker-empresas__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.9rem;
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
}

.picker-empresas__item:hover { background: rgba(192, 24, 42, 0.04); }

.picker-empresas__item input { margin: 0; flex-shrink: 0; cursor: pointer; }

.picker-empresas__item input:checked + span { color: #c0182a; font-weight: 600; }

.picker-empresas__item .form-check-input:checked {
    background-color: #c0182a;
    border-color: #c0182a;
}

.picker-empresas__rodape {
    padding: 0.45rem 0.9rem;
    border-top: 1px solid #eef0f2;
    background: #f8f9fa;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ===== Modais no padrão da identidade ===== */
.modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.25);
}

.modal-header { border-bottom: 1px solid #eef0f2; padding: 1.1rem 1.5rem; }

.modal-title {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #2b2b2b;
}

.modal-title i { color: #c0182a; font-size: 1.05rem; }

.modal-body { padding: 1.25rem 1.5rem; }

.modal-footer { border-top: 1px solid #eef0f2; padding: 0.9rem 1.5rem; }

.modal .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.modal .form-label i { color: #c0182a; }

.modal .input-group-text { background: #fff; color: #c0182a; width: 42px; justify-content: center; }

/* Foco vermelho AG em campos (substitui o azul padrão do Bootstrap) */
.modal .form-control:focus,
.modal .form-select:focus,
.card-ag .form-control:focus,
.card-ag .form-select:focus {
    border-color: #c0182a;
    box-shadow: 0 0 0 0.2rem rgba(192, 24, 42, 0.12);
}

/* Mensagens de validação dos modais (CPF, e-mail, senha) */
.feedback-validacao {
    font-size: 0.82rem;
    margin-top: 0.25rem;
    display: block;
}

.feedback-validacao--ok { color: #198754; }

.feedback-validacao--erro { color: #c0182a; }

/* Chip do usuário (modal de atualizar senha) */
.usuario-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8f9fa;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-weight: 600;
    color: #374151;
}

.usuario-chip i { color: #c0182a; font-size: 1.2rem; }

/* ===== Combo pesquisável (combo-ag) — select com busca, sem dependências ===== */
.combo-ag { position: relative; }

.combo-ag__toggle {
    width: 100%;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #fff;
}

.combo-ag.show .combo-ag__toggle {
    border-color: #c0182a;
    box-shadow: 0 0 0 0.2rem rgba(192, 24, 42, 0.12);
}

.combo-ag__panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 260px;
    z-index: 1060;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
    overflow: hidden;
}

.combo-ag.show .combo-ag__panel { display: block; }

.combo-ag__busca {
    padding: 0.5rem;
    border-bottom: 1px solid #eef0f2;
    background: #f8f9fa;
}

.combo-ag__busca .input-group-text { background: #fff; color: #9ca3af; }

.combo-ag__lista {
    max-height: 240px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.combo-ag__opcao {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.45rem 0.9rem;
    font-size: 0.88rem;
    color: #374151;
    cursor: pointer;
}

.combo-ag__opcao:hover { background: rgba(192, 24, 42, 0.06); color: #c0182a; }

.combo-ag__opcao.ativa {
    background: rgba(192, 24, 42, 0.08);
    color: #c0182a;
    font-weight: 600;
}

/* ===== Mobile: filtros em coluna cheia + tabela vira cards ===== */
@media (max-width: 768px) {

    /* Barra de pesquisa: tudo 100% */
    .search-bar__field,
    .search-bar__filter {
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
    }

    .search-bar__actions {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar__actions .btn { width: 100%; }

    /* Tabela vira lista de cards (usa o data-label das células) */
    .card-ag--table {
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .card-ag--table table,
    .card-ag--table tbody {
        display: block;
        width: 100%;
    }

    .card-ag--table thead { display: none; }

    .card-ag--table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #eef0f2;
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
        margin-bottom: 0.9rem;
        padding: 0.4rem 0;
    }

    .card-ag--table tbody tr:hover { background: #fff; }

    .card-ag--table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        border: 0 !important;
        padding: 0.45rem 1rem;
        text-align: right;
        white-space: normal !important;
    }

    .card-ag--table tbody td[data-label]::before {
        content: attr(data-label);
        font-family: "Kanit", sans-serif;
        font-weight: 600;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        color: #9ca3af;
        text-align: left;
        flex-shrink: 0;
    }

    /* Linha de ações: separada e alinhada à direita */
    .card-ag--table tbody td:last-child:not([data-label]) {
        justify-content: flex-end;
        border-top: 1px solid #f3f4f6 !important;
        margin-top: 0.3rem;
        padding-top: 0.6rem;
    }

    /* Modais e botões dos modais */
    .modal-footer .btn { flex: 1 1 auto; }
}

/* Seções dentro de modais (ex.: Endereço) */
.modal-divisor {
    margin: 1.25rem 0 0.75rem;
    border-color: #eef0f2;
    opacity: 1;
}

.modal-secao {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    margin: 0 0 0.75rem;
}

.modal-secao i { color: #c0182a; }

/* Divisor entre seções de um card (ex.: busca + filtros) */
.card-ag__divisor {
    margin: 1.1rem -1.5rem;
    border: 0;
    border-top: 1px solid #eef0f2;
    opacity: 1;
}

/* Cabeçalho de página com ação à direita */
.page-ag__header--com-acao {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-ag__header--com-acao .btn { white-space: nowrap; }

/* Número do registro no título da página */
.page-ag__numero {
    color: #c0182a;
    font-weight: 600;
}

/* Badge de status maior (cabeçalho de telas de registro) */
.badge-perfil--grande {
    font-size: 0.95rem;
    padding: 0.45rem 1rem;
    align-self: center;
}

/* Item de nota fiscal (linhas dinâmicas do movimento de entrada) */
.nota-fiscal-item {
    position: relative;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    padding: 0.9rem 2.5rem 0.9rem 1rem;
    margin-bottom: 0.75rem;
    background: #fafbfc;
}

.nota-fiscal-item .close-field {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.nota-fiscal-item .close-field:hover {
    background: rgba(192, 24, 42, 0.10);
    color: #c0182a;
}

.nota-fiscal-item .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

/* ===== Select2 no padrão da identidade AG ===== */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 0.75rem;
    color: #212529;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #c0182a;
    box-shadow: 0 0 0 0.2rem rgba(192, 24, 42, 0.12);
}

.select2-dropdown {
    border: 1px solid #eef0f2;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
    overflow: hidden;
}

.select2-search--dropdown {
    padding: 0.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eef0f2;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    outline: none;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #c0182a;
    box-shadow: 0 0 0 0.2rem rgba(192, 24, 42, 0.12);
}

.select2-results__option {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    color: #374151;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background: rgba(192, 24, 42, 0.08);
    color: #c0182a;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
    background: rgba(192, 24, 42, 0.12);
    color: #c0182a;
    font-weight: 600;
}

/* Mobile: TODO input/coluna de formulário ocupa a largura inteira */
@media (max-width: 768px) {
    .card-ag .row > [class*="col-"],
    .modal .row > [class*="col-"],
    .nota-fiscal-item .row > [class*="col-"] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* Variante verde (finalizado / sucesso) */
.badge-perfil--ok {
    background: rgba(25, 135, 84, 0.10);
    color: #198754;
}

.btn-verde {
    background: #198754;
    border: 1px solid #198754;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}
.btn-verde:hover { background: #157347; border-color: #157347; color: #fff; }
.btn-verde:focus { box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25); color: #fff; }
