:root {
  --primary-color: #084E80;
  --secondary-color: #C4E6F0;
  --success-color: #198754;
  --body-color: #f8f9fc;
  --footer-color: #000;

}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Roboto', sans-serif;
  background-color: var(--body-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
footer{
  font-family: 'Roboto', sans-serif;
  background: var(--body-color);
  margin: 0;
  padding: 0;
}

/* Botões */
.btn-outline-secondary {
  background-color: #f8f9fa !important;
  color: var(--primary-color) !important;
}

.cor-primary, .btn-link, .btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn:hover {
  background-color: var(--secondary-color) !important;
  color: #000 !important;
  border: 2px solid var(--primary-color) !important;
}
.text-footer{
  color: var(--footer-color);
}
.link-footer{
  color: var(--primary-color);
  font-weight: bolder;
}
/* Cartões */
.card {
  border-radius: 0.75rem;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

.card-body {
  display: flex;
  flex-direction: column;
}

/* Tabelas */
.table-hover tbody tr:hover {
  background-color: rgba(13,110,253,0.05);
}

.table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background-color: #f8f9fa !important;
  text-align: start;
}

.table td {
  font-size: 0.9rem;
  vertical-align: middle;
}

.table-sm th, .table-sm td {
  padding: 0.4rem 0.6rem;
  font-size: 0.875em;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0,0,0,0.02);
}

.table-responsive {
  overflow-y: auto;
  max-height: 48vh;
  display: flex;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #888; 
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

.table .table-light {
  background-color: var(--body-color) !important;
  position: sticky;
  top: -1px;
}

.anexo{
  color: var(--primary-color) !important;
  background-color: var(--body-color) !important;
}

/* Responsividade */
@media (max-width: 768px) {
  .card-header h3 {
    font-size: 1.25rem;
  }

  .table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow-x: auto;
  }

  .vw-access-button {
    width: 40px;
    height: 40px;
    bottom: 10px;
    right: 10px;
  }
  .accessibility-controls {
    position: fixed !important;
    bottom: 10px !important;
    right: 10px !important;
    top: auto !important;
    transform: none !important;
    transition: all 1s ease;
    transition-delay: 1s;
    z-index: 9999;
    }
  .btn-link{
    background-color: var(--body-color) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
  }
  .btn-link:hover{
    background-color: var(--primary-color) !important;
    color: var(--body-color) !important;
    border: 1px solid #000 !important;
  }
}


@media screen and (min-height: 1081px) {
  .card-body { max-height: 88vh !important; }
  * { font-size: 1.3rem !important; }
  .table-responsive {
    overflow-y: auto;
    max-height: 100vh !important;
    display: flex;
  }
}

@media screen and (max-height: 1080px) {
  .card-body { max-height: 80vh !important; }
  .table-responsive {
    overflow-y: auto;
    max-height: 100vh !important;
    display: flex;
  }
}

@media screen and (max-height: 768px) {
  .card-body { max-height: 70vh !important; }
}

@media screen and (max-height: 576px) {
  .card-body { height: 500px !important; }
}

/* Impressão */
@media print {
  @page { margin: 0; padding: 0; width: 100%; }
  
  table {
    table-layout: fixed;
    width: 100%;
    font-size: 10pt;
  }

  html, body {
    overflow-x: visible !important;
  }
  
  .table-responsive { max-height: none !important; overflow: visible !important; }
  .no-print { display: none; }
  .cor-primary { color: black !important; }
}

/* Modo Alto Contraste */
.high-contrast {
  --primary-color: #000;
  --secondary-color: #fff;
  --success-color: #004d40;
  --text-color: #000;
  --bg-color: #fff;
  --body-color: #000;
  --footer-color: #fff;
  --link-color: #C4E6F0;

}

.high-contrast html { background-color: var(--body-color) !important; }

.high-contrast .container-dash {
  background-color: var(--primary-color) !important;
}

.high-contrast .container-dash .title-dash * {
  color: var(--bg-color) !important;
}

.high-contrast .cor-primary, .high-contrast .btn-link, .high-contrast .btn-primary {
  background-color: var(--primary-color) !important;
  color: var(--bg-color) !important; 
  border: 2px solid var(--primary-color) !important;
}

.high-contrast .btn:hover {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
  border: 2px solid var(--primary-color) !important;
}

.high-contrast .page-header {
  color: var(--bg-color) !important;
}

.high-contrast .print-btn .btn  {
  border: 1px solid var(--bg-color) !important;
}

.high-contrast .card {
  background-color: var(--bg-color) !important;
  border: 2px solid var(--primary-color) !important;
}

.high-contrast .table, .high-contrast .table td, .high-contrast .table th {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
}

.high-contrast .table-hover tbody tr:hover {
  background-color: #f0f0f0 !important;
  color: var(--text-color) !important;
}

.high-contrast .table-light, .high-contrast .table-light tr, .high-contrast thead {
  background-color: var(--primary-color) !important;
  color: var(--secondary-color) !important;
}

.high-contrast .table thead th {
  background-color: var(--primary-color) !important;
  color: var(--secondary-color) !important;
  border-color: var(--text-color) !important;
}

.high-contrast .table thead th:first-child {
  border-top-left-radius: 5px;
}

.high-contrast .table thead th:last-child {
  border-top-right-radius: 5px;
}

.high-contrast .link-footer{
  color: var(--link-color) !important;
}
.high-contrast .card-header{
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.vw-access-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  display: flex;
  align-items: center;
  justify-content: center;
}


.libras-widget-container {
  position: relative;
  z-index: 1000;
}

.vw-access-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}


.localizacao {
  left: initial !important;
  right: 0px !important;
  top: 15% !important;
  bottom: initial !important;
  transform: translateY(calc(20% - 10px)) !important;
}