/* =====================================================================
   Wallet Credit Request — Frontend Styles
   ===================================================================== */

/* Debit Banner */
.wcr-debit-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: #b91c1c;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.wcr-debit-banner__text strong {
    font-weight: 700;
}

.wcr-debit-banner__btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.wcr-debit-banner__btn:hover {
    background: #fff;
    color: #b91c1c;
    text-decoration: none;
}

/* Tab Container */
.wcr-tab-container {
    padding: 0;
}

/* Sections */
.wcr-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.wcr-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #111827;
}

.wcr-section-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px 0;
}

/* Tables */
.wcr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wcr-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #e5e7eb;
}

.wcr-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}

.wcr-table .wcr-col-status {
    white-space: nowrap;
    width: 1%;
}

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

.wcr-table tbody tr:hover td {
    background: #f9fafb;
}

/* Status Badges */
.wcr-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.wcr-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.wcr-badge--approved {
    background: #d1fae5;
    color: #065f46;
}

.wcr-badge--denied {
    background: #fee2e2;
    color: #991b1b;
}

.wcr-badge--unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.wcr-badge--partial {
    background: #fef3c7;
    color: #92400e;
}

.wcr-badge--settled {
    background: #d1fae5;
    color: #065f46;
}

/* Form */
.wcr-form {
    max-width: 480px;
}

.wcr-form__field {
    margin-bottom: 18px;
}

.wcr-form__field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.wcr-form__field .required {
    color: #ef4444;
}

.wcr-form__input,
.wcr-form__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.wcr-form__input:focus,
.wcr-form__textarea:focus {
    outline: none;
    border-color: #1d3557;
    box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.1);
}

.wcr-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.wcr-form__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.wcr-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s;
}

.wcr-btn:hover {
    opacity: 0.88;
    text-decoration: none;
}

.wcr-btn--submit {
    background: #1d3557;
    color: #fff;
}

.wcr-btn--settle {
    background: #1d3557;
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
}

/* Notes expand/collapse */
.wcr-notes-toggle {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #1d3557;
    cursor: pointer;
    text-decoration: underline;
}

.wcr-no-notes {
    color: #9ca3af;
}

/* Notice */
.wcr-notice {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.wcr-notice--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Empty state */
.wcr-empty {
    text-align: center;
    color: #6b7280;
    padding: 24px;
    font-size: 14px;
}
