/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

/* Menu Superior */
.menu-topo {
    background: #004080;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.menu-links a, .logout-button {
    margin-right: 15px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.menu-links a i, .logout-button i {
    margin-right: 5px;
}

.dashboard-container {
    padding: 30px;
}

.dashboard-container {
    padding: 30px;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.card {
    flex: 1;
    min-width: 200px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 48px;
    margin-bottom: 15px;
}

.card-blue {
    border-top: 5px solid #007bff;
}

.card-green {
    border-top: 5px solid #28a745;
}

.card-yellow {
    border-top: 5px solid #ffc107;
}


.card-red {
    border-top: 5px solid  #dc3545;
}

.card-purple {
   border-top: 5px solid #6f42c1;
}

.card-orange {
   border-top: 5px solid #fd7e14;
}

.card h2 {
    margin: 10px 0;
    font-size: 32px;
    color: #333;
}

.card p {
    color: #666;
    font-size: 16px;
}

/* Responsivo */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
    }
}

.dashboard-actions {
    margin-top: 40px;
}

.actions-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.action-button {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s, border-color 0.3s;
}

.action-button:hover {
    background-color: #e2e6ea;
    border-color: #ced4da;
}


/* Botões */
.button, .logout-button {
    background: #007BFF;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.button:hover, .logout-button:hover {
    background: #0056b3;
}

/* Containers */
.container {
    padding: 20px;
}


/* Login Container */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    margin: 20px;
    text-align: center;
}

/* Navbar Principal */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #004080;
    padding: 10px 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    margin-right: 15px;
}

.navbar-home {
    color: white;
    font-weight: bold;
    text-decoration: none;
    margin-right: 20px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-menu a, .dropbtn {
    color: white;
    text-decoration: none;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.navbar-logout {
    background: #dc3545;
    padding: 8px 14px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar-logout:hover {
    background: #c82333;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: #004080;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background: white;
}

.dropdown-content a:hover {
    background: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #004080;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }
}

.form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.form-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 15px;
    box-sizing: border-box;
    height: 50px; /* Para inputs e selects ficarem alinhados com botões */
}
.form-card textarea {
    height: auto; /* Textareas podem crescer naturalmente */
    resize: vertical;
    min-height: 100px;
}
.form-card label {
    font-weight: bold;
    margin-top: 10px;
    color: #004080;
}

.button-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-primary:hover {
    background: #0056b3;
}

.button-secondary {
    background: none;
    border: 2px solid #007bff;
    color: #007bff;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.button-secondary:hover {
    background: #e7f1ff;
}

.button-danger {
    background-color: #dc3545; /* vermelho Bootstrap */
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button-danger:hover {
    background-color: #c82333;
}


.actions-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.button-primary:hover {
    background: #0056b3;
}

.button-secondary {
    background: none;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.button-secondary:hover {
    background: #e7f1ff;
}

.back-button {
    margin-top: 20px;
}

.button-table.view {
    background-color: #6c757d; /* cinza */
    color: white;
    padding: 8px 10px;
    border-radius: 8px;
    margin-right: 5px;
    font-size: 14px;
    text-decoration: none;
}

.button-table.view:hover {
    background-color: #5a6268;
}

/* Tabela moderna */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
    padding-left: 10px;   /* <-- Adiciona espaçamento interno */
    padding-right: 10px;  /* <-- Espaçamento para não cortar do lado direito */
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.05);
    /*min-width: 600px; /* Garante um mínimo para scroll controlado no mobile */
}

.modern-table th, .modern-table td {
     white-space: nowrap;      /* ou use normal para quebrar palavras */
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-table th {
    background: #004080;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
}

.modern-table td {
    font-size: 14px;
    color: #333;
}
/* Espaçamento interno para não grudar nas bordas */
.dashboard-container .table-responsive {
    padding: 0 1.5rem;       /* aumenta um pouco à esquerda e à direita */
}

/* Botões dentro da tabela */
.button-table {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.button-table.edit {
    background: #17a2b8;
}

.button-table.delete {
    background: #dc3545;
}

.button-table:hover {
    opacity: 0.9;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: black;
}

.badge-danger {
    background-color: #dc3545;
    color: #fff;
}


.button-table.approve {
    background: #28a745;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.button-table.approve:hover {
    background: #218838;
}

.charts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.chart-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    width: 400px;
    max-width: 100%;
}

canvas {
    width: 100% !important;
    height: auto !important;
}

.button-table.edit {
    background-color: #0d6efd;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    margin-right: 8px;
}

.button-table.edit:hover {
    background-color: #0b5ed7;
}

.button-table.approve {
    background-color: #198754;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
}

.button-table.approve:hover {
    background-color: #157347;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    text-align: center;
    overflow: hidden;
}

.modal-header.success {
    background: #28a745;
    color: white;
    padding: 20px;
    font-size: 18px;
}

.modal-header {
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header.danger {
  background-color: #fdecea;
  color: #dc3545;
}

.modal-body {
  padding: 20px;
  text-align: center;
  font-size: 16px;
}

.modal-footer {
  padding: 16px;
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.modal-footer button {
    padding: 10px 20px;
    border: none;
    background: #004080;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.modal-footer button:hover {
    background: #003366;
}

.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.alert-box {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.alert-box.success {
    background: #d4edda;
    color: #155724;
}

.alert-box i {
    font-size: 32px;
}

.alert-box.danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-box.warning {
    background: #fff3cd;
    color: #856404;
}

.alert-box.success {
    background: #d4edda;
    color: #155724;
}

.alert-box h3 {
    margin: 0 0 10px 0;
}

.alert-box ul {
    margin: 0;
    padding-left: 20px;
}

.alert-box li {
    margin-bottom: 8px;
}

.photo-gallery a {
    position: relative;
    overflow: hidden;
    display: inline-block;
    transition: transform 0.3s;
}

.photo-gallery a:hover img {
    transform: scale(1.05);
    cursor: zoom-in;
}


.form-select {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 160px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.form-block {
    max-width: 500px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.form-input, .form-select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
.alert-success {
    background-color: #d4edda;
    padding: 10px;
    border-left: 5px solid #28a745;
    margin-bottom: 15px;
}

.alert {
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 6px;
    font-weight: bold;
}
.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}
.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 4px solid #ffc107;
}
.tree-list {
    list-style-type: none;
    padding-left: 10px;
}
.tree-list li {
    margin-bottom: 5px;
}
.tree-list a {
    text-decoration: none;
    color: #007bff;
    cursor: pointer;
}
.tree-list a:hover {
    text-decoration: underline;
}
.arquivo-existente {
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}
.arquivo-existente a {
    color: #0077cc;
    font-weight: bold;
    text-decoration: none;
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 0;
  border-radius: 8px;
  width: 80%;
  height: 80%;
  display: flex;
  flex-direction: column;
}

.modal-content iframe {
  flex: 1;
  width: 100%;
  border: none;
}

.close-button {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.button-danger-mini {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
}
.button-danger-mini:hover {
    background-color: #c82333;
}

/* Somente estiliza radios */
.subgrupo input[type="radio"] {
  transform: scale(1.1);
  accent-color: #325eb4;
}

/* Checkbox com dimensões adequadas e cor personalizada */
fieldset input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #325eb4;
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
}

fieldset > label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #003366;
  margin-bottom: 8px;
}

.clima-turno-bloco {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clima-turno {
  margin-bottom: 6px;        /* espaço entre cada bloco de turno */
  padding: 6px 8px;         /* preenchimento interno mais enxuto */
  border: 1px solid #ccc;
  border-radius: 4px;
}
.clima-turno legend {
  margin-bottom: 4px;        /* diminui espaço abaixo do título */
  font-weight: bold;
  font-size: 0.95rem;
  padding: 0 4px;            /* encaixa o texto no contorno */
}
.clima-turno label {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;        /* distância entre opções */
  margin-bottom: 2px;        /* distância vertical entre linhas */
  font-size: 0.9rem;
  cursor: pointer;
}
.clima-turno input[type="checkbox"],
.clima-turno input[type="radio"] {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: middle;
  accent-color: #325eb4;
}
.clima-turno .subgrupo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;                  /* espaço entre cada label dentro do subgrupo */
  margin-bottom: 2px;        /* espaço abaixo do grupo */
}
.clima-turno .subgrupo span {
  font-size: 0.9rem;
  margin-right: 4px;
}
@media (max-width: 600px) {
  .clima-turno {
    margin-bottom: 6px;
    padding: 6px 10px;
  }
  .clima-turno label {
    margin-right: 8px;
    margin-bottom: 3px;
    font-size: 0.85rem;
  }
  .clima-turno .subgrupo {
    gap: 6px;
    margin-bottom: 3px;
  }
}

.subgrupo {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.subgrupo span {
    font-weight: 500;
    min-width: 80px;
}

.subgrupo label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 14px;
}

.subgrupo input[type="radio"],
.subgrupo input[type="checkbox"] {
    transform: scale(1.1);
    accent-color: #325eb4;
}

/* Ícones de ordenação nos cabeçalhos */
th.sorting:after {
    content: '⇅';
    position: absolute;
    right: 8px;
}
th.sorting_asc:after {
    content: '↑';
    position: absolute;
    right: 8px;
}
th.sorting_desc:after {
    content: '↓';
    position: absolute;
    right: 8px;
}
/* Cursor e posicionamento */
table.dataTable thead th {
    cursor: pointer;
    position: relative;
}
/* Ícones de ordenação nos cabeçalhos */
th.sorting:after { content: '⇅'; position: absolute; right: 8px; }
th.sorting_asc:after { content: '↑'; position: absolute; right: 8px; }
th.sorting_desc:after { content: '↓'; position: absolute; right: 8px; }
/* Cursor e posicionamento */
table.dataTable thead th { cursor: pointer; position: relative; }
/* Estilo dos controles de paginação e busca */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    padding: .4em .6em;
    border-radius: .25em;
    border: 1px solid #ccc;
    margin-left: .5em;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: .3em .6em;
    margin: .2em;
    border: 1px solid #007bff;
    border-radius: .2em;
    color: #007bff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #007bff !important;
    color: #fff !important;
}
/* Espaçamento entre controles e cabeçalho */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { margin-bottom: 2em; }

/* Garantir que o DataTables use 100% da largura disponível */
.dashboard-container .dataTables_wrapper,
.dashboard-container .dataTables_wrapper .dataTables_scroll {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0;               /* remove margens que possam empurrar pra fora */
}
/* Ajustar o corpo da tabela com overflow-x dentro do container */
.dashboard-container .dataTables_wrapper .dataTables_scrollBody {
    overflow-x: auto;
    width: 100% !important;
}
/* Responsive sidebar nav from right for screens ≤768px */
@media (max-width: 768px) {
  #hamburger {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: none;
    border: none;
    font-size: 1.5rem;
  }
  #navbarMenu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: #fff;
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 4rem;
  }
  #navbarMenu.open {
    right: 0;
  }
  .navbar-menu .dropdown { width: 100%; }
  .navbar-menu .dropdown .dropdown-content {
    position: static;
    display: none;
    flex-direction: column;
    background: transparent;
    box-shadow: none;
  }
  .navbar-menu.open .dropdown .dropdown-content {
    display: flex;
  }
}
@media (min-width: 769px) {
  #hamburger { display: none; }
}

@media (max-width: 768px) {
  /* usa a mesma cor de fundo do menu horizontal */
  #navbarMenu {
    background-color: #004080; /* substitua por sua cor principal */
  }
}
@media (max-width: 768px) {
  /* Espaçamento à esquerda dos itens no menu vertical */
  #navbarMenu.open .dropdown-content a,
  #navbarMenu.open > a {
    padding-left: 2rem; /* ajuste o valor conforme necessário */
  }
}

/* Opcional: reduzir padding nas células em telas pequenas */
@media (max-width: 768px) {
    .modern-table th,
    .modern-table td {
        padding: 8px;
    }
}

/* Ajustes diretos nos botões de exportação */
.button-primary.export-button,
.button-secondary.export-button {
    padding: 0.3rem 0.5rem;        /* Altura e largura interna */
    font-size: 0.9rem;           /* Tamanho de fonte do texto */
    min-width: 100px;            /* Largura mínima */
    height: auto;                /* Ajusta altura ao conteúdo */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;                 /* Espaço entre ícone e texto */
}

.button-primary.export-button i,
.button-secondary.export-button i {
    font-size: 1.0rem;           /* Tamanho do ícone */
    line-height: 1;
}

.obras-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.obra-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5em 0;
  border-bottom: 1px solid #eee; /* se quiser separar visualmente */
}

.obra-item span {
  flex: 1;                    /* ocupa todo o espaço restante */
  font-size: 1rem;
}

.obra-item .nova-vistoria {
  flex-shrink: 0;             /* não encolhe */
  padding: .5em 1em;
  font-size: .9rem;
  white-space: nowrap;
}

/* Container padrão: abas em linha com overflow-x */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.5rem;
}
.tabs::-webkit-scrollbar { display: none; }

/* Botões de aba padrão */
.tab-button {
  flex: 0 0 auto;
  white-space: nowrap;
  background-color: #325eb4;
  color: white;
  border: none;
  border-radius: 6px 6px 0 0;
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}
.tab-button.active {
  background-color: #1d3a81;
}

/* ==== Modo responsivo: abas em coluna ==== */
@media (max-width: 600px) {
  .tabs {
    flex-direction: column;
    overflow-x: hidden;
    padding: 0;
  }
  .tab-button {
    width: 100%;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    font-size: 1rem;
  }
  /* separar visualmente */
  .tab-button + .tab-button {
    margin-top: 4px;
  }
}

.tree-list ul { display: none; margin-left: 1em; list-style-type: disc; }
.tree-list .collapsible.expanded > ul,
.tree-list .collapsible.expanded ul { display: block; }
.tree-list .toggle { cursor: pointer; user-select: none; }
.tree-list .toggle::before {
  content: '▶'; display: inline-block; width: 1em;
  transition: transform 0.2s;
}
.tree-list .collapsible.expanded .toggle::before {
  transform: rotate(90deg);
}


/* === toolbar buttons === */
/* uniformiza botão e link da toolbar */
button.toolbar-btn,
a.toolbar-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background-color: #325eb4;
  color: #fff;
  text-decoration: none;      /* remove underline do <a> */
  border: none;               /* remove borda padrão */
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 16px;
  line-height: 1;             /* alinha verticalmente o ícone */
  vertical-align: middle;
}

/* hover idêntico */
button.toolbar-btn:hover,
a.toolbar-btn:hover {
  background-color: #1d3a81;
}

/* botões de exclusão continuam vermelhos */
button.toolbar-btn.btn-excluir,
a.toolbar-btn.btn-excluir {
  background-color: #d9534f;
}
button.toolbar-btn.btn-excluir:hover,
a.toolbar-btn.btn-excluir:hover {
  background-color: #c9302c;
}

/* remove outline nos focos */
button.toolbar-btn:focus,
a.toolbar-btn:focus {
  outline: none;
}
