@import url(https://fonts.googleapis.com/css?family=Inter:100,200,300,regular,500,600,700,800,900);

/* templates/ */
.box-forms {
  background: #868686;
  color: #fff;
  min-width: 200px;
  max-width: 1000px;
}

h1.grey {
  color: #404f64;
  font-size: 72px;
}

h2.grey {
  color: #404f64;
}

h3.grey {
  color: #404f64;
}

h4.grey {
  color: #404f64;
}

p.grey {
  color: #656565;
}

.btn-forms {
  background: #0e64d1;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  padding: 8px 15px;
  border: none;
  text-decoration: none;
  margin-right: 8px;
  border-radius: 8px;
}
.btn {
  border-radius: 8px;
}

.btn-forms-cancel {
  background: #d73038;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  padding: 8px 15px;
  border: none;
  text-decoration: none;
}

.btn-forms:hover {
  background: #0a4b9e;
}

.btn-forms-disabled {
  cursor: not-allowed;
  background: #0e64d1;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  padding: 8px 15px;
  border: none;
  text-decoration: none;
  opacity: 0.6;
}

/* templates/base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: #eee;
  min-height: 100vh;
}

.container-NB {
  width: 100%;
  min-height: 100vh;
}

.main-content {
    flex: 1;           /* Garante que ocupe apenas o espaço restante */
    min-width: 0;      /* O "pulo do gato": permite que o container encolha abaixo do tamanho do conteúdo */
    width: 100%;       /* Opcional, mas ajuda a garantir a largura */
    overflow-x: auto;  /* Adiciona scroll interno nessa div se a tabela for muito larga */
}

.sidebar-NB {
  position: sticky;
  top: 0rem;
  width: 256px;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #404f64;
  padding: 12px;
  transition: all 0.3s;
  z-index: 2;
}

.sidebar-NB .head-NB {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #374456;
}

.user-img-NB {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}

.user-img-NB img {
  width: 100%;
  object-fit: cover;
}

.user-details-NB .title-NB,
.menu-NB .title-NB {
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.user-details-NB .name-NB {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: #fffafa;
}

.nav-NB {
  flex: 1;
}

.menu-NB ul li {
  position: relative;
  list-style: none;
  margin-bottom: 5px;
}

.menu-NB ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #eee;
  text-decoration: none;
  padding: 12px 8px;
  border-radius: 8px;
  transition: all 0.3s;
}

.menu-NB ul li > a:hover,
.menu-NB ul li.active > a {
  color: #404f64;
  background-color: #eee;
}

.menu-NB ul li .icon {
  font-size: 20px;
}

.menu-NB ul li .text-NB {
  flex: 1;
}

.menu-NB ul li .arrow {
  font-size: 14px;
  transition: all 0.3s;
}

/*.menu-NB .sub-menu-NB {
  display: none;
  margin-left: 38px; / * Alinha perfeitamente com o início do texto do item pai (8px padding + 20px icon + 10px gap) * /
  margin-top: 8px;   / * Cria um espaçamento claro, separando o submenu do box de destaque (highlight) do item pai * /
  padding-left: 15px;
  padding-top: 5px;
  border-left: 1.5px solid rgba(238, 238, 238, 0.25); / * Linha vertical mais sutil e moderna * /
}*/

.menu-NB .sub-menu-NB {
  display: none;
  margin-left: 28px;  /* Meio-termo: alinha a linha guia exatamente com o fim do ícone do item pai (8px padding + 20px icon) */
  margin-top: 4px;    /* Meio-termo: espaçamento vertical sutil de 4px (padrão de grid), evitando que pareça colado mas mantendo proximidade */
  padding-left: 12px;  /* Ajusta o recuo interno dos itens para não esticarem para a direita */
  padding-top: 4px;
  border-left: 1.2px solid rgba(238, 238, 238, 0.2); /* Linha de guia suave */
}

.menu-NB .sub-menu-NB li a {
  padding: 10px 8px;
  font-size: 12px;
}

.menu-NB:not(:last-child) {
  margin-bottom: 14px;
  border-bottom: 2px solid #374456;
}

.menu-NB-btn {
  position: absolute;
  right: -14px;
  top: 3.5%;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #757575;
  border: 2px solid #404f64;
  background-color: #fff;
}

.menu-NB-btn:hover i {
  color: #000;
}

.menu-NB-btn i {
  transition: all 0.3s;
}

.sidebar-NB.active {
  width: 75px;
}

.sidebar-NB.active .menu-NB-btn i {
  transform: rotate(180deg);
}

.sidebar-NB.active .user-details-NB {
  display: none;
}

.sidebar-NB.active .menu-NB .title-NB {
  text-align: center;
}

.sidebar-NB.active .menu-NB ul li .arrow {
  display: none;
}

.sidebar-NB.active .menu-NB > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-NB.active .menu-NB > ul > li > a .text-NB {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
  border-radius: 4px;
  color: #fff;
  background-color: #000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.sidebar-NB.active .menu-NB > ul > li > a .text-NB::after {
  content: "";
  position: absolute;
  left: -5px;
  top: 20%;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background-color: #000;
  transform: rotate(45deg);
  z-index: -1;
}

.sidebar-NB.active .menu-NB > ul > li > a:hover .text-NB {
  left: 50px;
  opacity: 1;
  visibility: visible;
}

.sidebar-NB.active .menu-NB .sub-menu-NB {
  position: absolute;
  top: 0;
  left: 20px;
  width: 200px;
  border-radius: 20px;
  padding: 5px 10px;
  border: 2px solid #404f64;
  background-color: #4f627c;
  box-shadow: 0px 10px 8px rgba(0, 0, 0, 0.1);
}

footer {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: #404f64;
  color: white;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  height: 20px;
  width: 100%;
  border-top: 2px solid #eeeeee;
}

.cp-text {
  color: #ffffff;
  text-shadow: 0 1px rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.menu-separator {
  border-top: 2px solid #374456;
  margin: 10px 0px;
}

/* templates/index */
.carousel-inner {
  height: 25em;
}

/* Margem para o Welcome */
h2.grey {
    margin-top: 20px;
    margin-left: 20px;
    margin-bottom: 10px;
}

/* Margem para o título WMS */
.d-flex.justify-content-center {
    margin-bottom: 20px;
}

/* Container dos painéis lado a lado */
.panels-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Estilos compartilhados entre os painéis */
.notices-board,
.guide-card {
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.notices-board:hover,
.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Mural de Avisos - com degradê */
.notices-board {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.notices-board:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Card do Guia - fundo sólido */
.guide-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e0e0e0;
}

.guide-card:hover {
    border-color: #007bff;
}

/* Cabeçalho dos painéis */
.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    flex-shrink: 0;
}

.notices-board .panel-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.guide-card .panel-header {
    border-bottom: 2px solid #e0e0e0;
}

/* Ícones dos painéis */
.panel-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notices-icon {
    background: rgba(255, 255, 255, 0.2);
}

.guide-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.panel-icon svg {
    width: 28px;
    height: 28px;
}

.notices-icon svg {
    fill: white;
}

.guide-icon svg {
    fill: white;
}

/* Títulos dos painéis */
.panel-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.notices-board .panel-title {
    color: white;
}

.guide-card .panel-title {
    color: #333;
}

/* Conteúdo dos painéis */
.notices-content,
.guide-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Item de aviso individual */
.notice-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.notice-date svg {
    width: 16px;
    height: 16px;
    fill: #007bff;
}

.notice-subject {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.notice-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Descrição do guia */
.guide-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: auto;
    padding-bottom: 20px;
}

/* Botões de ação padronizados */
.panel-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    margin-top: auto;
    flex-shrink: 0;
}

.panel-action-btn:hover {
    background: #0056b3;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.panel-action-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.panel-action-btn:hover svg {
    transform: translateY(2px);
}

/* Responsividade */
@media (max-width: 992px) {
    .panels-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .notices-board,
    .guide-card {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .panels-container {
        padding: 0 10px;
    }

    .notices-board,
    .guide-card {
        padding: 20px;
    }

    .panel-title {
        font-size: 18px;
    }

    .notice-subject {
        font-size: 16px;
    }

    h2.grey {
        margin-left: 15px;
    }
}

/* templates/inventory */
td-table {
  background-color: #000;
  color: #323333;
}

/* Card do Download - Discreto e funcional */
.download-inventory-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.download-inventory-card:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.download-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.download-icon {
    font-size: 24px;
    color: #28a745;
}

.download-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.download-description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.download-inventory-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: #28a745;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 2px solid #28a745;
    cursor: pointer;
}

.download-inventory-btn-filtered {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #28a745;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.download-buttons-group{
  display: flex;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
}

.download-inventory-btn:hover {
    background: #218838;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.download-inventory-btn-filtered:hover {
    background: #218838;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.download-inventory-btn i {
    font-size: 14px;
}

/* Versão ainda mais discreta (opcional) */
.download-inventory-btn.subtle {
    background: #6c757d;
}

.download-inventory-btn.subtle:hover {
    background: #5a6268;
}

/* Responsivo */
@media (max-width: 768px) {
    .download-inventory-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .download-title {
        font-size: 16px;
    }
}

/* templates/login */
/* Trava scroll em todos os níveis — html, body e o próprio body.login */
html.login-page,
html.login-page body,
body.login {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
}

body.login {
  background: #0a0e1a;
  font-family: 'DM Sans', sans-serif;
  position: fixed;   /* impede qualquer reflow que cause scroll */
  inset: 0;
}

/* Fundo com malha de gradiente — fixed para não contribuir com overflow */
body.login::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 82, 204, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 168, 107, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 60% 10%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Grade de pontos sutil */
body.login::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Wrapper centralizado via position fixed — não depende do fluxo do documento */
.login-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Card principal */
.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 36px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 64px rgba(0,0,0,0.4);
  box-sizing: border-box;
}

/* Header com logo */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 100%;
  max-width: 200px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.login-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0 0 4px 0;
}

.login-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

/* Flash messages */
.box_message_login .alert {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.25);
  color: #ffc107;
  border-radius: 10px;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 20px;
}

.box_message_login .btn-close {
  filter: invert(1) opacity(0.5);
}

/* Inputs */
.login-card .form-control {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 12px 16px !important;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.login-card .form-control::placeholder {
  color: rgba(255,255,255,0.25) !important;
}

.login-card .form-control:focus {
  background: rgba(255,255,255,0.09) !important;
  border-color: rgba(0, 112, 243, 0.6) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.12) !important;
}

/* Remember me */
body.login .form-check-input {
  background-color: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

body.login .form-check-input:checked {
  background-color: #0070f3 !important;
  border-color: #0070f3 !important;
}

/* Botão de login principal */
body.login .btn-forms {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, #0052cc 0%, #0070f3 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.35);
}

body.login .btn-forms:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.5);
  background: linear-gradient(135deg, #0062f5 0%, #1a83ff 100%);
}

body.login .btn-forms:active {
  transform: translateY(0);
}

/* Divisor "ou" */
.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.divider-or span {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Botão Google */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.btn-google:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  text-decoration: none;
}

.btn-google:active {
  transform: translateY(0);
}

.btn-google svg {
  flex-shrink: 0;
}

/* Rows do form */
.login-card .row {
  margin-bottom: 0 !important;
}

.login-card .row.mb-3 {
  margin-bottom: 12px !important;
}

.login-card dl {
  margin: 0;
}

/* Ajuste label remember me */
body.login .form-check-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5) !important;
  cursor: pointer;
}

/* templates/profile */

.avatar-upload {
  position: relative;
  max-width: 205px;
  margin: 50px auto;
}

.avatar-upload .avatar-edit {
  position: absolute;
  right: 12px;
  z-index: 1;
  top: 10px;
}
.avatar-upload .avatar-edit input {
  display: none;
}
.avatar-upload .avatar-edit input + label {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-bottom: 0;
  border-radius: 100%;
  background: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-weight: normal;
  transition: all 0.2s ease-in-out;
}
.avatar-upload .avatar-edit input + label:hover {
  background: #f1f1f1;
  border-color: #d6d6d6;
}
.avatar-upload .avatar-edit input + label:after {
  content: "\f040";
  font-family: "FontAwesome";
  color: #757575;
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  margin: auto;
}
.avatar-upload .avatar-preview {
  width: 192px;
  height: 192px;
  position: relative;
  border-radius: 100%;
  border: 6px solid #f8f8f8;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}
.avatar-upload .avatar-preview > div {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* templates/sample */
.box_top_sample {
  background: #404f64;
  height: 33px;
  color: #fff;
  min-width: 360px;
}

.box_body_sample {
  background: #868686;
  color: #fff;
  min-width: 360px;
  min-height: 120px;
}

.box_top_icon_sample {
  background: #656565;
}

h3.box_top {
  margin-left: 15px;
  vertical-align: middle;
}

p.bold_sample {
  margin-left: 35px;
}

p.small-size {
  color: #404f64;
  font-size: 18px;
}

.tablink {
  margin-top: 15px;
  background: transparent;
  color: #242424;
  border: none;
  cursor: pointer;
  margin-right: 15px;
}

.tablink:hover {
  color: blue;
}

.info-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  margin-left: 35px;
}

.info-row strong {
  min-width: 170px;
  padding-right: 20px;
  font-weight: 600;
}

/* templates/sample_add */

/* templates/signup */

.unit {
  font-weight: bold;
  padding: 0px 12px 0px 12px;
}

.select-unit {
  font-weight: bold;
  padding: 0px 12px 0px 12px;
}

/* templates/help */
p.faq-subtitle {
  color: #656565;
  text-transform: uppercase;
  font-size: 0.825em;
  font-weight: 700;
  margin-top: 13px;
  margin-left: 13px;
}

/* template/inventory.html */
.inline-label-select {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.inline-select-select {
  display: inline-block;
  width: auto; /* evita que ocupe 100% */
  vertical-align: middle;
}

/* template/team.html */
.form-switch .form-check-input {
  width: 3em;
  height: 1.5em;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745;
}

.form-check-input:not(:checked) {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* Pinta todas as células do corpo da tabela do Grid.js */
.gridjs-table .gridjs-tbody tr:has(td[data-status="free"]) td {
  background-color: #BFD3EF !important;
}
.gridjs-table .gridjs-tbody tr:has(td[data-status="busy"]) td {
  background-color: #FFF6D0 !important;
}

/* Cortina preta ao clicar nos filtros de tabela e coluna */
.offcanvas-backdrop.show{
  opacity: 0.3 !important;
  background-color: #000;
}

.offcanvas.offcanvas-end{
  width: 475px !important;
}

.gridjs-td{
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Ajustes de legibilidade para colunas de Data e Serial no Grid.js sem sobreposição */
.gridjs-td[data-column-id="date"],
.gridjs-th[data-column-id="date"] {
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.gridjs-td[data-column-id="serial_number"],
.gridjs-th[data-column-id="serial_number"] {
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Espaçamento e layout fixo para a tabela de logs (inventory/log) */
.log-modern-table-area .gridjs-table {
  table-layout: fixed !important;
  width: 100% !important;
}

.log-modern-table-area .gridjs-th,
.log-modern-table-area .gridjs-td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
  vertical-align: middle !important;
  padding: 10px 12px !important;
  line-height: 1.4 !important;
}

.log-modern-table-area .gridjs-th[data-column-id="serial_number"],
.log-modern-table-area .gridjs-td[data-column-id="serial_number"] {
  width: 12% !important;
}

.log-modern-table-area .gridjs-th[data-column-id="product_name"],
.log-modern-table-area .gridjs-td[data-column-id="product_name"] {
  width: 14% !important;
}

.log-modern-table-area .gridjs-th[data-column-id="last_update_activity"],
.log-modern-table-area .gridjs-td[data-column-id="last_update_activity"] {
  width: 8% !important;
}

.log-modern-table-area .gridjs-th[data-column-id="team_name"],
.log-modern-table-area .gridjs-td[data-column-id="team_name"] {
  width: 10% !important;
}

.log-modern-table-area .gridjs-th[data-column-id="birth_location"],
.log-modern-table-area .gridjs-td[data-column-id="birth_location"] {
  width: 10% !important;
  text-align: center !important;
}

.log-modern-table-area .gridjs-th[data-column-id="date"],
.log-modern-table-area .gridjs-td[data-column-id="date"] {
  width: 16% !important;
}

.log-modern-table-area .gridjs-th[data-column-id="core_id"],
.log-modern-table-area .gridjs-td[data-column-id="core_id"] {
  width: 10% !important;
}

.log-modern-table-area .gridjs-th[data-column-id="action"],
.log-modern-table-area .gridjs-td[data-column-id="action"] {
  width: 10% !important;
}

.log-modern-table-area .gridjs-th[data-column-id="owner_core_id"],
.log-modern-table-area .gridjs-td[data-column-id="owner_core_id"] {
  width: 10% !important;
}

/* Estrutura do zero para a tabela de Manage Team Members (profile/team) */
.team-modern-table-area .gridjs-table {
  table-layout: fixed !important;
  width: 100% !important;
}

.team-modern-table-area .gridjs-th,
.team-modern-table-area .gridjs-td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
  vertical-align: middle !important;
  padding: 12px 14px !important;
}

.team-modern-table-area .gridjs-th[data-column-id="core_id"],
.team-modern-table-area .gridjs-td[data-column-id="core_id"] {
  width: 15% !important;
  max-width: 15% !important;
}

.team-modern-table-area .gridjs-th[data-column-id="name"],
.team-modern-table-area .gridjs-td[data-column-id="name"] {
  width: 23% !important;
}

.team-modern-table-area .gridjs-th[data-column-id="email"],
.team-modern-table-area .gridjs-td[data-column-id="email"] {
  width: 25% !important;
}

.team-modern-table-area .gridjs-th[data-column-id="role"],
.team-modern-table-area .gridjs-td[data-column-id="role"] {
  width: 10% !important;
}

.team-modern-table-area .gridjs-th[data-column-id="status"],
.team-modern-table-area .gridjs-td[data-column-id="status"] {
  width: 9% !important;
  text-align: center !important;
}

.team-modern-table-area .gridjs-th:last-child,
.team-modern-table-area .gridjs-td:last-child {
  width: 18% !important;
  overflow: visible !important;
}

/* Garante que as 4 colunas do histórico de atividades da amostra tenham sempre exatamente o mesmo tamanho (25%) */
#historylogs .gridjs-table {
  table-layout: fixed !important;
  width: 100% !important;
}

#historylogs .gridjs-th,
#historylogs .gridjs-td {
  width: 25% !important;
  max-width: 25% !important;
  min-width: 25% !important;
  text-align: left !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

/* --- Device Info Tab Styles --- */
#device_info_tab .custom-info-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}

#device_info_tab .custom-info-table thead th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 15px 20px;
    border-bottom: 2px solid #dee2e6;
}

#device_info_tab .custom-info-table tbody td {
    padding: 12px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f1f1;
}

#device_info_tab .custom-info-table tbody tr:hover {
    background-color: #fcfcfc;
}

#device_info_tab .custom-info-table td.fw-bold {
    color: #6c757d !important;
}

#device_info_tab .text-break {
    word-break: break-all;
    color: #212529;
}

/* --- Modern Sample View (Inspired by Login) --- */
.sample-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sample-glass-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.sample-header-section {
    margin-bottom: 40px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sample-title-main {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.sample-badge-status {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-active { background: #e8f5e9; color: #2e7d32; }
.badge-archived { background: #fff3e0; color: #ef6c00; }

.sample-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sample-info-block {
    background: #f5f6f8; /* Meio-termo: fundo cinza ligeiramente mais escuro e definido para melhor contraste visual */
    border: 1px solid #e9ecef; /* Borda um pouco mais marcada para complementar o fundo */
    border-radius: 20px;
    padding: 25px;
}

.sample-block-title {
    font-size: 14px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sample-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.sample-detail-row:last-child { border-bottom: none; }

.sample-label { color: #666; font-weight: 500; }
.sample-value { color: #111; font-weight: 600; text-align: right; }

/* Botão More Details com Destaque */
.btn-more-details {
    background: #0070f3;
    color: white !important;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 112, 243, 0.39);
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-more-details:hover {
    background: #0061e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.23);
}

.btn-more-details i { font-size: 16px; }

/* Abas Sample - Estilo Refinado */
.sample-tabs-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
    border-bottom: 2px solid #e0e0e0;
}

.sample-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #555 !important; /* Cinza escuro, bem visível */
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none !important;
}

.sample-tab-btn:hover {
    color: #000 !important;
}

.sample-tab-btn.active {
    color: #000 !important; /* Preto absoluto ao selecionar */
    font-weight: 800 !important;
}

.sample-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px; /* Encaixa na borda do nav */
    left: 0;
    right: 0;
    height: 4px;
    background: #000;
    border-radius: 2px;
}

/* Ajuste no botão More Details para ser visível mas não agressivo */
.btn-more-details {
    background: #0e64d1; /* Azul padrão do sistema para consistência */
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(14, 100, 209, 0.2);
}

.btn-more-details:hover {
    background: #0a4b9e;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .sample-header-section { flex-direction: column; align-items: flex-start; gap: 15px; }
}

/* --- Modern Inventory Views (CPS/MAN) --- */
.inventory-modern-container {
    max-width: 100%;
    padding: 20px 30px;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.inventory-modern-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.inventory-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.inventory-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* Prioriza linha única no desktop */
}

@media (max-width: 1100px) {
    .inventory-modern-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .inventory-actions-group {
        width: 100%;
        flex-wrap: wrap; /* Só quebra em telas menores */
    }
}

/* --- Modern Action Buttons --- */
.inventory-btn-action {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.inventory-btn-primary {
    background: #000;
    color: #fff !important;
}

.inventory-btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.inventory-btn-outline {
    background: #fff;
    color: #444;
    border: 1px solid #e0e0e0;
}

.inventory-btn-outline:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .inventory-btn-action {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1 1 auto; /* Botões flexíveis no mobile */
        min-width: 80px;
    }
}

/* Garantir que o Offcanvas seja responsivo e os componentes internos não transbordem - Restrito ao Inventário */
#advancedFilters.offcanvas,
#columnDrawer.offcanvas {
    width: 475px !important;
    max-width: 100vw !important;
}

@media (max-width: 576px) {
    #advancedFilters.offcanvas,
    #columnDrawer.offcanvas {
        width: 100% !important;
    }
}

/* Estilos internos restritos aos painéis de inventário */
#advancedFilters .offcanvas-body select,
#advancedFilters .offcanvas-body .filter-multi-select,
#advancedFilters .offcanvas-body .form-control,
#columnDrawer .offcanvas-body .form-check {
    max-width: 100% !important;
    width: 100% !important;
}

#advancedFilters .offcanvas-body,
#columnDrawer .offcanvas-body {
    overflow-x: hidden;
}

/* Export Dropdown Style */
.export-dropdown .dropdown-menu {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 10px;
    margin-top: 10px !important;
}

.export-dropdown .dropdown-item {
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 500;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-dropdown .dropdown-item:hover {
    background-color: #f0f0f0;
    color: #000;
}

.export-dropdown .dropdown-item i {
    color: #0e64d1;
}

/* --- Modern Form Styles for Add/Edit (base-first) --- */
.sample-info-block form dt {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.sample-info-block form dd {
  margin-bottom: 20px;
}

.sample-info-block form dd input[type="text"],
.sample-info-block form dd select,
.sample-info-block form dd input[type="file"] {
  width: 100%;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  font-size: 14px;
  color: #111;
  transition: all 0.2s ease;
}

.sample-info-block form dd input[type="text"]:focus,
.sample-info-block form dd select:focus,
.sample-info-block form dd input[type="file"]:focus {
  border-color: #0e64d1;
  box-shadow: 0 0 0 3px rgba(14, 100, 209, 0.12);
  outline: none;
}

.form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 25px;
  margin-top: 10px;
}

.form-check-group .checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-group .checkbox-wrapper dt {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-transform: none;
  order: 2; /* Move o label para depois do input */
}

.form-check-group .checkbox-wrapper dd {
  margin-bottom: 0;
  order: 1; /* Garante que o input venha primeiro */
}

.form-check-group .checkbox-wrapper dd input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

/* Desativa ordenação visual e funcional na coluna de checkboxes de seleção do Grid.js */
#table .gridjs-thead th:first-child .gridjs-th-content {
  pointer-events: none !important;
}
#table .gridjs-thead th:first-child {
  pointer-events: auto !important;
}
#table .gridjs-thead th:first-child input[type="checkbox"] {
  pointer-events: auto !important;
}
#table .gridjs-thead th:first-child .gridjs-sort {
  display: none !important;
}

/* Garante espaço interno e visibilidade completa para a coluna de checkboxes de seleção */
#table .gridjs-table th:first-child, 
#table .gridjs-table td:first-child {
  padding: 12px 8px !important; /* Reduz de 24px para 8px nas laterais, elevando a largura útil para 49px! */
  text-align: center !important;
  min-width: 65px !important;    /* Impede a coluna de espremer abaixo do limite seguro */
  max-width: 65px !important;
}

