/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo */

body.login-page {
    background-image: url('/static/images/mk_5anos.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.9); /* leve transparência */
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 10%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.login-form-box {
    position: absolute;
    top: 50%;
    right: 5%; /* margem da lateral direita */
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    max-width: 280px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.login-bg {
	background: url('/static/bg-login.png') center center/cover no-repeat;
	height: 100vh;
    display: flex;
    flex-direction: column;
}

.toggle-senha {
  position: absolute;
  right: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 1.1rem;
  opacity: 0.2;                  /* 👁️ Leve transparência */
  transition: opacity 0.2s ease, transform 0.2s ease; /* Suavidade */
}

.senha-container {
  position: relative;
  display: flex;
  align-items: center;
}

.senha-container input {
  width: 100%;
  padding-right: 35px; /* espaço para o ícone */
}

.toggle-senha:hover {
  opacity: 1;                    /* Fica mais nítido ao passar o mouse */
  transform: scale(1.1);         /* Leve zoom */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    padding: 20px;
    line-height: 1.6;
}

/* Cabeçalho */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #336d83;
    padding: 10px 20px;
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

header img {
    height: 40px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 5px;
}

header nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Rodapé */
footer {
    text-align: center;
    margin-top: 40px;
    color: #888;
    font-size: 14px;
}

/* Containers */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalhos */
h1, {
    color: #00796B;
    margin-bottom: 15px;
}

h2, h3 {
    color: #00796B;
    margin-bottom: 15px;
}

/* Formulários */
form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

form[style*="inline"] {
  display: inline !important;
  background: none !important;
  border: none !important;
}

.form-linha {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

label {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 50px;
    font-weight: bold;
}

input, select, textarea {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Botões */
button, .botao {
    padding: 10px 20px;
    background-color: #336d83;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

button:hover, .botao:hover {
    background-color: #2a5b6a;
}

.btn-primario:hover,
.btn-primario:focus {
  background: #2a5b6a;
  text-decoration: none !important;  /* Garante que não sublinhe no hover */
  opacity: 0.95;
}

.btn-container {
  text-align: right;
  margin-bottom: 10px;
}

.btn-primario {
  text-decoration: none;
  background: #336d83;
  color: white;
  padding: 8px 18px;
  border-radius: 5px;
  font-size: 0.9rem;
  display: inline-block;
  transition: background 0.2s ease;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: white;
    border-radius: 6px;
    /*overflow: hidden;*/
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

th, td {
    text-align: left;
    padding: 4px 8px;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;    
    overflow: hidden;
    text-overflow: ellipsis;
}

th {
    background-color: #336d83;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Listas */
ul {
    list-style: none;
    padding: 0;
}

li {
    background-color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    white-space: nowrap;
}

/* Links */
a {
    color: #336d83;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Cartões (painel) */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 1rem;
}

.card {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    min-width: 200px;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    display: block;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.card {
    flex: 1;
    min-width: 200px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    font-size: 18px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.card a {
    display: block;
    font-weight: bold;
    color: #00796B;
}

.card-detalhes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
    text-align: left !important;
}

.card-detalhes div {
    font-size: 16px;
    line-height: 1.5;
}

/* Mensagem de erro */
.mensagem-erro {
    color: red;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Upload de arquivos */
.upload-form {
    margin-top: 15px;
}

.file-label {
    background-color: white;
    color: #1F2937;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
    font-weight: normal;
}

.file-label input[type="file"] {
    display: none;
}

.btn-enviar {
    margin-left: 10px;
}

/*Semáforos*/
.status-indicador {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
}

.centralizar-bolinha {
    justify-content: center; /* Centraliza horizontalmente */
}

.status-bolinha {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.verde {
  background-color: #4CAF50;
}

.amarelo {
  background-color: #FFC107;
}

.vermelho {
  background-color: #F44336;
}


/* Responsivo */
@media (max-width: 768px) {
    .form-linha {
        flex-direction: column;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    table, th, td {
        font-size: 14px;
    }

    .card-container {
        flex-direction: column;
    }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  width: 1000px;
  max-width: 90%;
  position: relative;
  overflow-x: auto;
}

.modal-content table {
  width: 100%;
  border-collapse: collapse;
}

.modal-content th, .modal-content td {
  padding: 8px;
  text-align: left;
  white-space: nowrap;  /* Impede quebra de linha em células */
}

/* Cabeçalho com cor ajustável */
.modal th {
    background-color: #336d83;
    color: white;
}

/* Fade-in/out */
.modal-fx {
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease-in-out;
}

.modal.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  animation: fadeUp .25s ease-out;
}

@keyframes fadeUp {
  from { transform: translateY(20px); opacity: .3; }
  to   { transform: translateY(0);   opacity: 1; }
}

/* Inputs do modal */
.input-mk {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.botao-cancelar {
  background: #888;
  padding: 8px 14px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

.botao-excluir {
  background: #b71c1c;
  padding: 8px 14px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  margin-left: 10px;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  cursor: pointer;
}

/* ================================
   MODAL EXCLUSIVO DI/DUE
================================ */
.modal-editar-di-due {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  display: none;                  /* diferente do modal global */
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.modal-editar-di-due.show {
  display: flex !important;
}

.modal-editar-di-due-content {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 0 18px rgba(0,0,0,0.25);
}

.btn-edit-icon {
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.65;
    transition: opacity .2s ease, transform .1s ease;
}

.btn-edit-icon:hover {
    opacity: 1;
    transform: scale(1.15);
    background-color: white;
}

.btn-edit-icon:active {
    transform: scale(1.05);
}

.tooltip {
  position: relative;
  display: inline-block;
}

.btn-legenda {
  background-color: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  top: 28px;
  left: 0;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip-leadtime {
  position: relative;
  display: inline-block;
}

.tooltip-btn {
  background-color: #1e5959;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 24px;
  text-align: center;
}

.tooltip-text {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 10;
  top: 30px;
  right: 0;
  min-width: 220px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-leadtime:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.usuario-info {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
  z-index: 999;
}

.busca-linha {
    display: flex;
    gap: 10px;        /* Espaço entre filtros */
    margin-bottom: 10px;
    flex-wrap: wrap;  /* Quebra linha no mobile */
}

.busca-campo {
    flex: 1;          /* Cada filtro ocupa mesmo tamanho */
    min-width: 200px; /* Não fica pequeno demais em telas menores */
}

.busca-botao {
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.filtros-avancados summary {
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  margin: 8px 0 12px;
}

.filtros-avancados summary::-webkit-details-marker { display: none; }

/* mostra "ver menos" quando aberto */
.filtros-avancados .label-menos { display: none; }
.filtros-avancados[open] .label-mais { display: none; }
.filtros-avancados[open] .label-menos { display: inline; }

/* layout padrão que você já usa */
.busca-linha { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.busca-campo { flex: 1; min-width: 200px; }
.busca-botao { display: flex; align-items: flex-end; gap: 8px; }

.grupo-bloco {
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 20px 0;
  padding: 16px;
}

.grupo-bloco legend {
  font-weight: bold;
  color: #336d83;
  padding: 0 10px;
}

.fieldset-bloco {
  background-color: #f7f9fb; /* tom claro sutil */
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.fieldset-bloco legend {
  font-weight: bold;
  color: #336d83;
  padding: 0 10px;
  font-size: 1.1em;
}

.login-container {
    position: absolute;
    right: 3%;
    width: 60vw; /* Reduzido de 50vw para 35vw */
    max-width: 310px;
    min-width: 280px;
    height: 45vh; /* Se quiser um pouco mais vertical */
    background: url('/static/login-bg.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 10px; /* opcional: para combinar com o estilo do box */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* opcional: dar leve destaque */
}

/* Posiciona o box fixamente à direita */
.login-form-box {
    position: absolute;
    top: 50%;
    right: 5%; /* margem da lateral direita */
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    max-width: 280px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}


.card-risco { border-radius:12px; padding:12px; margin:12px 0; }
.risco-baixo  { background:#eef9f1; color:#1b6c2e; }
.risco-médio  { background:#fff7e6; color:#8a5b00; }
.risco-alto   { background:#fff0f0; color:#8a1f1f; }
.card-risco .score { float:right; font-weight:600; }
.card-risco .motivos { margin:8px 0 0 0; padding-left:18px; }

  /* container que rola */
  .tabela-scroll{ position:relative;
                  height: calc(100dvh - 220px); 
                  overflow-y:auto; 
                  overflow-x: auto;
                  scrollbar-gutter: stable both-edges;
                  overscroll-behavior: contain;
  }

  /* tabela que terá colunas redimensionáveis */
  .table-resizable{ border-collapse:separate; 
                    border-spacing:0; 
                    /*table-layout:auto; */
                    table-layout: fixed;
                    width:100%; 
  }
  .table-resizable th, .table-resizable td{
                    white-space: nowrap;
                    min-width: 60px;
                    background:#fff;
                    box-sizing: border-box;
                    height: 28px;
                    line-height: 28px; 
  }

  /* cabeçalho fixo */
  .table-resizable thead th{
    position:sticky; top:0; z-index:5;
    background:#336d83; color:#fff; /* sua cor da MK */
  }

  /* primeira coluna fixa */
  .table-resizable .fixa{ position:sticky; left:0; z-index:6; background:#fff; }
  .table-resizable thead .fixa{ z-index:8; background:#336d83; color:#fff; }

  /* wrapper que corta texto com reticências quando a coluna encolhe */
  .table-resizable .cell-clip{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    line-height: 24px;
    max-width: 100%;
  }

  /* a “marquinha” de resize */
  .table-resizable .th-resizer{
    position:absolute;
    top:0; right:-4px;
    width:12px; height:100%;
    cursor:col-resize;
    user-select:none;
    z-index: 999;
    /* guia visual bem sutil; pode tirar se quiser */
    background: linear-gradient(to right, transparent 0 6px, rgba(0,0,0,.08) 6px 7px, transparent 7px);
  }

  /* evita seleção de texto enquanto arrasta */
  .is-resizing{ user-select:none; }

    #imo-popover{
  position: fixed;     /* referente à viewport */
  top: 0; left: 0;
  transform: translate(0, 0);
  width: 360px;        /* ajuste */
  max-width: 80vw;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
  padding: 14px;
  z-index: 10000;      /* acima de header/coluna fixa */
}

/* Overlay do modal (começa escondido) */
#modalMapa{
  display: none;                /* será trocado por classe no JS */
  position: fixed;
  inset: 0;                     /* top/right/bottom/left = 0 */
  background: rgba(0,0,0,.6);
  align-items: center;          /* centraliza conteúdo */
  justify-content: center;
  z-index: 20000;               /* acima do cabeçalho/coluna fixa */
}

/* Quando aberto */
#modalMapa.is-open{
  display: flex;
}

/* Caixa interna do modal */
#modalMapa .modal-box{
  background: #fff;
  width: 85%;
  height: 59%;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
}

/* Botão fechar */
#modalMapa .close-btn{
  position: absolute;
  right: 10px;
  top: 10px;
}

.form-actions { display:flex; gap:.75rem; align-items:flex-end; }
.form-actions > * { height: var(--h); display:inline-flex; align-items:center; }

/* Container do dropdown */
.dropdown-container {
  position: relative;
  display: inline-block;
}

/* Botão */
.dropdown-btn {
  background-color: #336d83;
  color: white;
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Conteúdo (escondido por padrão) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 260px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
  z-index: 1;
  padding: 10px;
}

/* Exibe o menu quando a classe "show" é adicionada */
.dropdown-content.show {
  display: block;
  white-space: nowrap;
}

th {
  user-select: none;
  transition: color 0.2s ease;
}

th:hover {
  color: #336d83;
}

th.sorted-asc::after {
  content: " ▲";
  color: #336d83;
}

th.sorted-desc::after {
  content: " ▼";
  color: #336d83;
}

.resultados-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px 15px;
    background-color: #e8f4f8;
    border-left: 4px solid #336d83;
    border-radius: 4px;
}

.resultados-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eaf3f6;
  border-left: 4px solid #336d83;
  padding: 6px 12px;
  margin-bottom: 8px;
}

th {
  user-select: none;
  transition: color 0.2s ease;
}

th:hover {
  color: #336d83;
}

th.sorted-asc::after {
  content: " ▲";
  color: #336d83;
}

th.sorted-desc::after {
  content: " ▼";
  color: #336d83;
}

tfoot tr {
  background-color: #eef3f6;
  font-weight: bold;
  color: rgba(51, 51, 51, 0.7);
  border-top: 2px solid #336d83;
}

.totais-gerais {
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  color: rgba(51, 51, 51, 0.7);
}
.totais-gerais span {
  color: rgba(51, 109, 131, 0.85);
}
.totais-gerais hr {
  border: 1px solid rgba(51, 51, 51, 0.2);
}

/* --- TOAST MK TRADING --- */
#mk-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.4s ease-out;
}

.mk-toast {
  min-width: 280px;
  max-width: 360px;
  background: #ffffff;
  color: #333;
  border-left: 6px solid #336d83;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(20px);
  animation: slideIn 0.5s forwards;
}

.mk-toast strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #336d83;
}

/* Cores específicas */
.mk-toast.success { border-left-color: #2e7d32; }
.mk-toast.error { border-left-color: #d32f2f; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Desaparecimento suave */
.mk-toast.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mk-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.mk-table th, .mk-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.mk-table th {
  background-color: #336d83;
  color: #fff;
}

.btn-mk-secondary {
  background-color: #336d83;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: bold;
}

.btn-mk-secondary:hover {
  background-color: #2a5b6a;
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
}

/* ====== Cores de fundo personalizadas ====== */
tr[style*="#e9f7ef"] td {
    background-color: #e9f7ef !important; /* verde suave - pago */
}
tr[style*="#ffebee"] td {
    background-color: #ffebee !important; /* vermelho suave - vencido */
}
tr[style*="#fff8e1"] td {
    background-color: #fff8e1 !important; /* amarelo suave - aberto */
}

/* ====== Efeito zebra alternado ====== */
.table tbody tr:nth-child(odd) td {
    border-top: 1px solid #ddd;
}
.table tbody tr:hover td {
    background-color: #f5f5f5 !important;
    transition: background-color 0.2s ease;
}

/* rodapé fixo (sticky) no fim da tabela */
table tfoot .tfoot-totais td {
  position: sticky;
  bottom: 0;                 /* gruda no fundo do scroll */
  background: #eaf3f6;       /* fundo claro */
  font-weight: 700;
  color: #1a2b34;
  border-top: 2px solid #336d83; /* MK */
  z-index: 3;                /* fica por cima das linhas */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Zona de arrastar arquivos - estilo global */
.dropzone {
  border: 2px dashed #336d83;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #336d83;
  background-color: #f8fafb;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dropzone.dragover {
  background-color: #e0f2f1;
  border-color: #00796B;
  color: #004d40;
}

/* Ícone do sino */
.noti-btn {
    position: fixed;
    top: 28px;
    right: 5px;
    background: #336d83;
    color: white;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,.2);
    z-index: 9999;
}
.noti-btn:hover {
    background: #2a5667;
}

.noti-count {
    background: red;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Popup */
.noti-popup {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,.25);
    padding: 15px;
    z-index: 9999;
}

.noti-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.noti-popup li {
    padding: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.noti-proc {
    font-weight: bold;
    color: #333;
}

.noti-campo {
    color: #b30000;
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,0,0,0.1);
}

.noti-link {
    color: #336d83;
    font-weight: bold;
    text-decoration: none;
}

.noti-link:hover {
    text-decoration: underline;
}

.toolbar form {
    display: inline-block;
    margin-right: 8px;
}

.icon-btn {
    all: unset;
    cursor: pointer;
    display: inline-block;
    padding: 4px 6px;
}

</style>