.alinhaDireita { 
    text-align: right !important; 
}

.alinhaCentro {
    text-align: center !important;
}

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

.distanciaTopo {
    margin-top: 20px;
}

/* Fonte global */
html, body, body * {
  font-family: "Open Sans", Arial, sans-serif;
  /* font-weight: 400; */
}

/* Layout geral do conteúdo */
.main-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  color: #003f5c;
  box-sizing: border-box;
}

/* Títulos */
h2, h3 {
  margin-bottom: 15px;
  color: #003f5c;
  border-bottom: 2px solid #007272;
  padding-bottom: 5px;
}

/* Formulário */
.form-section {
  background-color: #e9f2f5;
  padding: 30px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 6px;
}

/* Formulário em coluna (geral) */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Formulário de pesquisa específico - lado a lado */
.formPesquisa {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 15px !important;
  flex-wrap: wrap;
}

.formPesquisa label {
  margin-bottom: 0 !important;
  white-space: nowrap;
}

.formPesquisa select {
  width: auto !important;
  min-width: 150px;
  margin-bottom: 0 !important;
}

.formPesquisa button {
  margin-bottom: 0 !important;
}

/* Grupo de campo */
.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Campos de entrada */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #7eb6c2;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
  background-color: white;
}

/* Textarea */
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Botões */
button {
  background-color: #007272;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s, transform 0.1s;
}

button:hover {
  background-color: #009999;
  transform: scale(1.03);
}

/* Botão desabilitado */
button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.8;
  transform: none;
}

/* Tabela */
.table-container {
  margin-top: 30px;
  background-color: #e9f2f5;
  padding: 20px;
  border-radius: 6px;
  box-sizing: border-box;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-container th {
  background-color: #007272;
  color: white;
  padding: 12px;
  text-align: left;
}

.table-container td {
  padding: 10px;
  border-bottom: 1px solid #aacfd6;
  color: #003f5c;
}

/* Ações (lápis e lixeira) */
.table-container td.acoes {
  text-align: center;
}

.table-container td.acoes a {
  margin: 0 5px;
  display: inline-block;
}

.table-container td.acoes img {
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.table-container td.acoes img:hover {
  transform: scale(1.2);
}

/* Responsividade simples */
@media (max-width: 600px) {
  .main-content {
    padding: 10px;
  }
}

.form-control {
    margin-bottom: 5px;
}

/* ===== BOOTSTRAP 3.4.1 COMPATIBLE STYLES ===== */

/* Container */
.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1170px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

/* Container Fluid */
.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Navbar Base */
.navbar {
    position: relative;
    min-height: 50px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Navbar Default Theme */
.navbar-default {
    background-color: #f8f8f8;
    border-color: #e7e7e7;
}

/* Navbar Header */
.navbar-header {
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    align-items: center;
    min-height: 50px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .navbar-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }
}

/* Navbar Brand */
.navbar-brand {
    float: left;
    height: 50px;
    padding: 15px 15px;
    font-size: 18px;
    line-height: 20px;
    text-decoration: none;
    color: #777;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: #5e5e5e;
    text-decoration: none;
}

.navbar-brand img {
    height: auto;
    max-height: 40px;
    width: auto;
    margin-right: 10px;
}

/* Navbar Text */
.navbar-text {
    margin-top: 15px;
    margin-bottom: 15px;
    color: #777;
    font-size: 14px;
    line-height: 1.42857143;
    margin-left: 15px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .navbar-text {
        margin-top: 10px;
        margin-bottom: 10px;
        margin-left: 0;
        font-size: 12px;
    }
}

/* Clear floats */
.navbar:before,
.navbar:after,
.container:before,
.container:after,
.container-fluid:before,
.container-fluid:after {
    display: table;
    content: " ";
}

.navbar:after,
.container:after,
.container-fluid:after {
    clear: both;
}

/* ===== TABLE BOOTSTRAP 3.4.1 STYLES ===== */

/* Base table */
.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    background-color: transparent;
    border-collapse: collapse;
    border-spacing: 0;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

.table > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
    background-color: #f5f5f5;
}

.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
    border-top: 0;
}

.table > tbody + tbody {
    border-top: 2px solid #ddd;
}

.table .table {
    background-color: #fff;
}

/* Table caption */
.table > caption {
    padding-top: 8px;
    padding-bottom: 8px;
    color: #777;
    text-align: left;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Table striped */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #fff;
}

/* Table hover effect */
.table-hover > tbody > tr:hover {
    background-color: #f5f5f5;
}

/* ===== GENERIC TFOOT TOTAL STYLES ===== */
table tfoot tr.subtotal td {
  font-weight: bold;
  background: #f2f2f2;
}
table tfoot tr.total-geral td {
  background: #e0e0e0;
  border-top: 2px solid #999;
  font-weight: bold;
}

/* Responsive table wrapper */
.table-responsive {
    min-height: 0.01%;
    overflow-x: auto;
}

.tdDestacada {
  background: #e0e0e0;
  border: 1px solid #999;
  border-top: 2px solid #999;
  font-weight: bold;
}

.Export {
  display: none;
}

.dt-export-buttons {
  margin: 10px 0;
}

@media screen and (max-width: 767px) {
    .table-responsive {
        width: 100%;
        margin-bottom: 15px;
        overflow-y: hidden;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        border: 1px solid #ddd;
    }
    
    .table-responsive > .table {
        margin-bottom: 0;
    }
    
    .table-responsive > .table > thead > tr > th,
    .table-responsive > .table > tbody > tr > th,
    .table-responsive > .table > tfoot > tr > th,
    .table-responsive > .table > thead > tr > td,
    .table-responsive > .table > tbody > tr > td,
    .table-responsive > .table > tfoot > tr > td {
        white-space: nowrap;
    }
}

/* ===== FOOTER BOOTSTRAP 3.4.1 STYLES ===== */

/* Footer base */
footer {
    position: relative;
    min-height: 50px;
    margin-top: 20px;
    padding: 15px 0;
    background-color: #f8f8f8;
    border-top: 1px solid #e7e7e7;
    color: #777;
    font-size: 14px;
    line-height: 1.42857143;
    box-sizing: border-box;
}

footer p {
    margin: 0;
    padding: 0 15px;
    text-align: center;
    line-height: 20px;
}

/* Footer com tema escuro */
.footer-dark {
    background-color: #222;
    border-top: 1px solid #080808;
    color: #9d9d9d;
}

.footer-dark p {
    color: #9d9d9d;
}

/* Footer fixo no rodapé */
.footer-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Footer com container */
footer .container,
footer .container-fluid {
    padding-top: 0;
    padding-bottom: 0;
}

/* Footer links */
footer a {
    color: #337ab7;
    text-decoration: none;
}

footer a:hover,
footer a:focus {
    color: #23527c;
    text-decoration: underline;
}

/* Footer responsivo */
@media (max-width: 767px) {
    footer {
        padding: 10px 0;
        font-size: 12px;
    }
    
    footer p {
        padding: 0 10px;
        line-height: 16px;
    }
}

/* Footer clearfix */
footer:before,
footer:after {
    display: table;
    content: " ";
}

footer:after {
    clear: both;
}

.explicarodape {
  padding-top: 5px;
}