#spta-container {
    max-width: 520px;
    margin: 0 auto;
    font-family: sans-serif;
    color: #333;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */

.spta-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.spta-row .spta-label {
    margin-bottom: 12px;
}

.spta-section-title {
    font-size: 13px;
    font-weight: bold;
    color: #444;
    margin: 0 0 12px;
}

/* ── Abas ─────────────────────────────────────────────────────────────────── */

.spta-tabs {
    display: flex;
    border-bottom: 2px solid #005c2e;
    margin-bottom: 24px;
}

.spta-tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    color: #888;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}

.spta-tab-btn:hover {
    color: #005c2e;
}

.spta-tab-btn.spta-tab-active {
    color: #005c2e;
    border-bottom-color: #005c2e;
}

.spta-badge {
    display: inline-block;
    background: #005c2e;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 10px;
    padding: 1px 7px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ── Formulário ───────────────────────────────────────────────────────────── */

.spta-label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #444;
    margin-bottom: 12px;
}

.spta-input {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    margin-top: 4px;
    transition: border-color .15s;
}

.spta-input:focus {
    outline: none;
    border-color: #005c2e;
}

.spta-input-error {
    border-color: #c00 !important;
    border-width: 2px !important;
}

.spta-field-error {
    display: none;
    color: #c00;
    font-size: 12px;
    margin-top: 3px;
    font-weight: normal;
}

.spta-btn-primary {
    width: 100%;
    background: #005c2e;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background .15s;
}

.spta-btn-primary:hover {
    background: #00471f;
}

.spta-btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.spta-link {
    color: #005c2e;
    font-size: 13px;
    text-decoration: none;
}

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

/* ── Alertas ──────────────────────────────────────────────────────────────── */

.spta-alert {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 14px;
}

.spta-alert-error {
    background: #fff0f0;
    border: 1px solid #c00;
    color: #c00;
}

.spta-alert-success {
    background: #f0fff4;
    border: 1px solid #005c2e;
    color: #005c2e;
}

/* ── Cards de pedido ──────────────────────────────────────────────────────── */

.spta-order-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
}

.spta-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.spta-ticket-code {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #005c2e;
    font-family: monospace;
}

.spta-order-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 13px;
}

.spta-detail-label {
    color: #888;
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

/* ── Ações do pedido ─────────────────────────────────────────────────────── */

.spta-order-actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.spta-btn-pdf {
    background: none;
    border: 1px solid #005c2e;
    color: #005c2e;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.spta-btn-pdf:hover {
    background: #005c2e;
    color: #fff;
}

.spta-btn-pdf:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ── Badges de status ────────────────────────────────────────────────────── */

.spta-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.spta-status-paid {
    background: #e8f5e9;
    color: #005c2e;
}

.spta-status-used {
    background: #e3f2fd;
    color: #1565c0;
}

.spta-status-pending {
    background: #fff8e1;
    color: #f57f17;
}
