.saps-applications-wrap {
    max-width: 960px;
    margin: 0 auto;
}

/* Notices */
.saps-notice {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    border: 1px solid;
}

.saps-notice-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.saps-notice-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Buttons */
.saps-btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.saps-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.saps-btn-primary {
    background: #96030A;
    color: #fff;
}

.saps-btn-primary:hover {
    background: #BC0000;
    color: #fff;
}

.saps-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.saps-btn-secondary:hover {
    background: #ccc;
    color: #333;
}

.saps-btn-danger {
    background: #dc3545;
    color: #fff;
}

.saps-btn-danger:hover {
    background: #c82333;
    color: #fff;
}

/* Table */
.saps-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.saps-table th,
.saps-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.saps-table thead th {
    background: #f5f5f5;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.saps-table tbody tr:hover {
    background: #fafafa;
}

/* Status badges */
.saps-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 13px;
}

.saps-status-open {
    background: #fff3cd;
    color: #856404;
}

.saps-status-completed {
    background: #d4edda;
    color: #155724;
}

.saps-status-pending {
    color: #6c757d;
    font-style: italic;
}

/* Form */
.saps-form {
    margin-top: 16px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.saps-form-group {
    margin-bottom: 16px;
}

.saps-form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.saps-form-group input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.saps-radio-group {
    display: flex;
    gap: 20px;
}

.saps-radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Login prompt */
.saps-login-prompt {
    text-align: center;
    padding: 40px 20px;
}

.saps-login-prompt .saps-btn {
    margin: 0 8px;
}

/* Add section */
.saps-add-section {
    margin-top: 20px;
}

/* Responsive table */
.saps-table-responsive {
    overflow-x: auto;
}

@media screen and (max-width: 768px) {
    .saps-table thead {
        display: none;
    }

    .saps-table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
    }

    .saps-table tbody td {
        display: block;
        padding: 8px 12px;
        border-bottom: 1px solid #f0f0f0;
    }

    .saps-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 4px;
        color: #555;
        font-size: 12px;
        text-transform: uppercase;
    }

    .saps-table tbody td:last-child {
        border-bottom: none;
    }
}
