/* =========================
   RESET / BASE
========================= */
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    background: #eef2f3;
}

/* =========================
   LAYOUT PRINCIPAL
========================= */
.app {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 230px;
    background: #2c3e50;
    color: #fff;
    padding: 20px;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 6px;
}

.sidebar a:hover {
    background: #34495e;
}

/* =========================
   CONTEÚDO
========================= */
.content {
    flex: 1;
    background: #f4f7f8;
    padding: 40px;
}

/* =========================
   CARD PADRÃO
========================= */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto; /* CENTRALIZA */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* CARD MENOR (FORMULÁRIOS) */
.card.form-card {
    max-width: 520px;
}

/* =========================
   TÍTULOS
========================= */
.card h2 {
    margin: 0 0 25px;
    color: #1f3a5f;
    font-size: 22px;
}

/* =========================
   FORMULÁRIOS
========================= */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #1f3a5f;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 2px rgba(26,188,156,0.15);
}

/* BOTÕES */
.btn-primary {
    background: #1abc9c;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #16a085;
}

.btn-sec:hover {
    background: #16a085;
}

/* =========================
   TABELAS
========================= */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #1f3a5f;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.table tr:hover {
    background: #f1f5f9;
}

/* =========================
   STATUS
========================= */
.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status.confirmado {
    background: #d1fae5;
    color: #065f46;
}

.status.cancelado {
    background: #fee2e2;
    color: #991b1b;
}

.autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete div {
    padding: 10px;
    cursor: pointer;
}

.autocomplete div:hover {
    background: #f1f5f9;
}


.link-secundario {
    font-size: 13px;
    color: #1f3a5f;
    text-decoration: none;
}

.link-secundario:hover {
    text-decoration: underline;
}


.edit {
    display: none;
    width: 100%;
    padding: 6px;
}

.view {
    display: inline;
}

tr.editando .view {
    display: none;
}

tr.editando .edit {
    display: inline;
}

.btn-edit, .btn-save, .btn-cancel {
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-edit { background:#3498db; color:#fff; }
.btn-save { background:#2ecc71; color:#fff; }
.btn-cancel { background:#95a5a6; color:#fff; }

.msg-sucesso,
.msg-erro {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.msg-sucesso {
    color: #1abc9c;
}

.msg-erro {
    color: #e74c3c;
}

.acoes-relatorio {
    display: flex;
    gap: 12px;
    margin: 15px 0 20px;
    flex-wrap: wrap;
}

.btn-relatorio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-relatorio .icon {
    font-size: 16px;
}

/* Excel */
.btn-relatorio.excel {
    background: #1abc9c;
    color: #fff;
}

.btn-relatorio.excel:hover {
    background: #17a589;
    transform: translateY(-1px);
}

/* PDF */
.btn-relatorio.pdf {
    background: #3498db;
    color: #fff;
}

.btn-relatorio.pdf:hover {
    background: #2e86c1;
    transform: translateY(-1px);
}

.acoes-topo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Ajuste visual do botão Filtrar para combinar */
.acoes-topo .btn-primary {
    padding: 10px 18px;
}

/* Reaproveita btn-relatorio */

.btn-limpar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    background: #3498db;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-limpar:hover {
    background: #2e86c1;
    transform: translateY(-1px);
}

/* =========================
   FOOTER
========================= */
.footer-app {
    width: 100%;
    padding: 20px 10px;
    background: transparent;
}

/* 🔥 BLOCO ÚNICO CENTRALIZADO */
.footer-inner {
    display: inline-flex;        /* mantém tudo junto */
    align-items: center;
    gap: 12px;
    margin: 0 auto;              /* centraliza o bloco */
    color: #777;
    font-size: 13px;
}

/* LOGO */
.footer-logo {
    max-width: 140px;
    height: auto;
    opacity: 0.85;
}

/* TEXTO */
.footer-text {
    white-space: wrap;
}

.card.wide {
    max-width: 1400px;
}


.table{
    width: 100%;
    table-layout: auto;
}

.table td input.edit{
    width: 100%;
}

/* Colunas se adaptam automaticamente */
.table th,
.table td{
    white-space: nowrap;
}

/* Nome e endereço podem quebrar linha se necessário */
.table td:nth-child(1),
.table td:nth-child(6){
    white-space: normal;
}


.paginacao{
    margin-top:20px;
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.paginacao a{
    padding:6px 12px;
    border:1px solid #ddd;
    text-decoration:none;
    color:#333;
    border-radius:4px;
}

.paginacao a:hover{
    background:#f0f0f0;
}

.paginacao a.ativa{
    background:#1abc9c;
    color:#fff;
    border-color:#1abc9c;
    font-weight:bold;
}









