.fas-wrap {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 16px;
}

.fas-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.fas-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.fas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fas-field {
    display: flex;
    flex-direction: column;
}

.fas-field.full {
    grid-column: 1 / -1;
}

.fas-field label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #2f2f2f;
}

.fas-field input,
.fas-field select,
.fas-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.fas-footer-brand {
    margin-top: 28px;
    text-align: center;
}

.fas-footer-brand-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

/* ÁREA SUPERIOR COM BOTÃO VOLTAR */
.fas-top-actions {
    max-width: 1100px;
    margin: 18px auto 14px auto;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 20;
}

.fas-btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fas-btn-voltar:hover {
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
    transform: translateY(-1px);
}

.fas-btn-voltar-icone {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* GARANTE ESPAÇO ANTES DO CARD */
.fas-top-actions+.fas-card,
.fas-top-actions+.fas-form-card,
.fas-top-actions+.fas-list-card {
    margin-top: 0;
}

.fas-wrap {
    padding-top: 14px;
}

.fas-footer-text {
    font-size: 14px;
    color: #6b7280;
}

.fas-footer-brand img {
    max-height: 34px;
    width: auto;
}

.fas-feedback {
    margin-top: 6px;
    font-size: 13px;
}

.fas-form-card-centralizado {
    max-width: 1100px;
    margin: 0 auto 18px auto;
}

.fas-form-card-centralizado h3 {
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 700;
    color: #2f2f2f;
}

.fas-form-acoes {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 18px;
}

.fas-card-header-acoes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fas-btn-principal,
button.fas-btn-principal,
a.fas-btn-principal {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 10px 18px !important;
    background: #16a34a !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    border: 1px solid #16a34a !important;
    font-weight: 600 !important;
    transition: 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.fas-btn-principal:hover,
button.fas-btn-principal:hover,
a.fas-btn-principal:hover {
    background: #15803d !important;
    border-color: #15803d !important;
    color: #fff !important;
}

.fas-table-listagem {
    margin: 0 auto;
}

/* =========================
   MENU ADMIN PORTAL
========================= */

.fas-admin-panel-wrap {
    width: 100%;
    margin: 24px 0 32px;
}

.fas-admin-panel-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.fas-admin-panel-header {
    padding: 18px 20px;
    background: linear-gradient(90deg, #2f2f32 0%, #17181b 100%);
    border-bottom: 1px solid #3a3a3a;
}

.fas-admin-panel-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.fas-admin-panel-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 14px;
    background: #ffffff;
}

.fas-admin-panel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    background: #000000;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    border: 1px solid #000000;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.18s ease;
}

.fas-admin-panel-btn:hover {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.fas-admin-panel-btn-label {
    display: block;
    line-height: 1.2;
}

.fas-admin-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #f7f7f7;
    border-top: 1px solid #e3e3e3;
}

.fas-admin-panel-footer-left {
    color: #666666;
    font-size: 13px;
    font-weight: 500;
}

.fas-admin-panel-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fas-footer-logo {
    display: block;
    max-height: 34px;
    width: auto;
    object-fit: contain;
}

/* Responsivo */
@media (max-width: 1100px) {
    .fas-admin-panel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .fas-grid {
        grid-template-columns: 1fr;
    }

    .fas-card-header-acoes {
        flex-direction: column;
        align-items: stretch;
    }

    .fas-form-acoes {
        justify-content: stretch;
    }

    .fas-btn-principal,
    button.fas-btn-principal,
    a.fas-btn-principal {
        width: 100% !important;
    }

    .fas-admin-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fas-admin-panel-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .fas-admin-panel-footer-right {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .fas-admin-panel-grid {
        grid-template-columns: 1fr;
    }

    .fas-admin-panel-header h2 {
        font-size: 18px;
    }

    .fas-admin-panel-btn {
        min-height: 44px;
        font-size: 14px;
    }
}