
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* Estilo base da tabela (desktop) */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
}

thead tr {
    background-color: #1f2937; /* cinza escuro */
    color: white;
}

tbody tr {
    background-color: #f3f4f6; /* cinza claro */
    transition: background 0.3s;
}

    tbody tr:hover {
        background-color: #d1d5db; /* hover */
    }

th, td {
    padding: 0.5rem 1rem;
    text-align: left;
}

/* Botões */
a {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

    a.bg-gray-800 {
        background-color: #1f2937;
    }

        a.bg-gray-800:hover {
            background-color: #111827;
        }

    a.bg-red-600 {
        background-color: #dc2626;
    }

        a.bg-red-600:hover {
            background-color: #b91c1c;
        }

    a.text-white {
        color: white;
    }

/* Media query para telas pequenas */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none; /* esconde cabeçalho */
    }

    tbody tr {
        margin-bottom: 1rem;
        background-color: #f3f4f6;
        border-radius: 0.5rem;
        padding: 1rem;
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
    }

        tbody td:last-child {
            border-bottom: none;
        }

        tbody td::before {
            content: attr(data-label);
            font-weight: bold;
            text-transform: capitalize;
        }

        tbody td[colspan] {
            flex-basis: 100%;
        }
}
