/*
|--------------------------------------------------------------------------
| MEMBER DEFAULTS PAGE
|--------------------------------------------------------------------------
*/

.member-defaults-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.defaults-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.defaults-page-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.defaults-page-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.defaults-header-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    color: #f59e0b;
    font-size: 22px;
}


/*
|--------------------------------------------------------------------------
| SUMMARY GRID
|--------------------------------------------------------------------------
*/

.defaults-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.default-summary-card {
    background: #ffffff;
    border-radius: 17px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.06);
}

.default-summary-card span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.default-summary-card h2 {
    margin: 0;
    font-size: 21px;
    color: #111827;
}

.default-summary-icon {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.default-summary-icon.outstanding {
    background: #fff7ed;
    color: #f97316;
}

.default-summary-icon.missed {
    background: #fef2f2;
    color: #dc2626;
}

.default-summary-icon.total {
    background: #eff6ff;
    color: #2563eb;
}

.default-summary-icon.cleared {
    background: #ecfdf5;
    color: #16a34a;
}


/*
|--------------------------------------------------------------------------
| HISTORY CARD
|--------------------------------------------------------------------------
*/

.defaults-history-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(15, 23, 42, 0.06);
}

.defaults-history-header {
    padding: 23px 24px;
    border-bottom: 1px solid #edf0f3;
}

.defaults-history-header h2 {
    margin: 0 0 5px;
    font-size: 19px;
    color: #1f2937;
}

.defaults-history-header p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}


/*
|--------------------------------------------------------------------------
| TABLE
|--------------------------------------------------------------------------
*/

.defaults-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.defaults-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
}

.defaults-table th {
    padding: 15px 17px;
    text-align: left;
    background: #f8fafc;
    border-bottom: 1px solid #e8ecf1;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    white-space: nowrap;
}

.defaults-table td {
    padding: 17px;
    border-bottom: 1px solid #eef1f4;
    font-size: 13px;
    color: #374151;
    vertical-align: middle;
}

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

.defaults-table tbody tr:hover {
    background: #fafbfc;
}


/*
|--------------------------------------------------------------------------
| SCHEME
|--------------------------------------------------------------------------
*/

.default-scheme {
    display: flex;
    align-items: center;
    gap: 11px;
}

.default-scheme-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #eef4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-scheme strong {
    display: block;
    margin-bottom: 3px;
    color: #1f2937;
}

.default-scheme small {
    font-size: 11px;
    color: #8b95a5;
}

.default-table-subtext {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 11px;
}

.default-reason {
    display: inline-block;
    max-width: 220px;
    line-height: 1.45;
}

.default-amount {
    color: #dc2626;
}


/*
|--------------------------------------------------------------------------
| STATUS
|--------------------------------------------------------------------------
*/

.default-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 88px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.default-status.unpaid {
    background: #fef2f2;
    color: #dc2626;
}

.default-status.paid {
    background: #ecfdf5;
    color: #15803d;
}


/*
|--------------------------------------------------------------------------
| EMPTY STATE
|--------------------------------------------------------------------------
*/

.defaults-empty-state {
    padding: 70px 20px;
    text-align: center;
}

.defaults-empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 17px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.defaults-empty-state h3 {
    margin: 0 0 6px;
    color: #1f2937;
}

.defaults-empty-state p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}