/* Sem Atrasos Portal - frontend */
.sap-portal {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
}

.sap-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.sap-card {
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.sap-login-card {
    max-width: 520px;
    margin: 60px auto;
}

.sap-form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
}

.sap-form input,
.sap-form select,
.sap-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    margin-top: 6px;
}

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

.sap-button,
.sap-portal input[type="submit"] {
    display: inline-block;
    background: #0f5e7a;
    color: #ffffff !important;
    border: 0;
    border-radius: 9px;
    padding: 11px 18px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.sap-link {
    color: #0f5e7a;
    font-weight: 700;
}

.sap-help,
.sap-muted {
    color: #667085;
    font-size: 0.95rem;
}

.sap-notice {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.sap-notice-success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.sap-notice-error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.sap-notice-info {
    background: #eff8ff;
    color: #175cd3;
    border: 1px solid #b2ddff;
}

.sap-table-wrap {
    overflow-x: auto;
}

.sap-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    overflow: hidden;
}

.sap-table th,
.sap-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e6e8ec;
    text-align: left;
    vertical-align: top;
}

.sap-table th {
    background: #f8fafc;
    font-weight: 700;
}

.sap-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: #eef2f6;
}

.sap-status-recebido { background: #eff8ff; }
.sap-status-em_analise { background: #fef7c3; }
.sap-status-pendente { background: #fff1f3; }
.sap-status-rejeitado { background: #fef3f2; }
.sap-status-processado { background: #ecfdf3; }

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

    .sap-header {
        flex-direction: column;
    }
}
