/* assets/css/estilo.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #2c3e50;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 320px;
}

.login-box h1 {
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.login-box label {
    display: block;
    margin-top: 12px;
    font-size: 13px;
}

.login-box input {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-box button {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.erro {
    color: #c0392b;
    margin-bottom: 10px;
}

.sucesso {
    color: #27ae60;
    margin-bottom: 10px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c3e50;
    color: #fff;
    padding: 16px 24px;
}

.topbar nav a {
    color: #fff;
    margin-left: 16px;
    text-decoration: none;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.card {
    display: block;
    padding: 24px;
    background: #ecf0f1;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    transition: 0.2s;
}

.card:hover {
    background: #2c3e50;
    color: #fff;
}

.form-config label,
form#form-documento label {
    display: block;
    margin-top: 14px;
    font-size: 14px;
}

.form-config input,
.form-config select,
form#form-documento input,
form#form-documento textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.botoes {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.botoes button {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #2c3e50;
    color: #fff;
}

/* adicionar em assets/css/estilo.css */

.preview-logo {
    margin-top: 10px;
    text-align: center;
}

.preview-logo img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 4px;
}

.preview-logo p {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.fieldset-especial {
    margin-top: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
}

.aviso-campo {
    font-size: 12px;
    color: #777;
    margin-top: 6px;
}

/* adicionar em assets/css/estilo.css */

.busca-documentos {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.busca-documentos input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.busca-documentos button {
    padding: 10px 20px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.tabela-documentos {
    width: 100%;
    border-collapse: collapse;
}

.tabela-documentos th,
.tabela-documentos td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.tabela-documentos th {
    background: #f4f6f8;
    font-weight: bold;
}

.tabela-documentos tbody tr:hover {
    background: #fafafa;
}

.btn-reimprimir {
    padding: 6px 14px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-reimprimir:hover {
    background: #219150;
}

.paginacao-documentos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.info-paginacao {
    font-size: 12.5px;
    color: #666;
}

.botoes-paginacao {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.botoes-paginacao button {
    padding: 7px 12px;
    border: 1px solid #dfe3ea;
    background: #fff;
    border-radius: 6px;
    font-size: 12.5px;
    cursor: pointer;
}

.botoes-paginacao button:hover:not(:disabled) {
    background: #f4f6fa;
}

.botoes-paginacao button.pagina-ativa {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

.botoes-paginacao button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.badge-vencido {
    background: #fdecea;
    color: #b13030;
}