/* Event pages
 * Split from application.css to keep page-specific styles maintainable.
 */

.participant-chip input {
    display: none;
}

.participant-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.5rem 0.875rem;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 120ms ease;
}

.participant-chip input:checked + span {
    background: #3b82f6;
    color: white;
}

.participant-chip span:hover {
    background: #e2e8f0;
}

.participant-chip input:checked + span:hover {
    background: #2563eb;
}

.receipt-payer-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.receipt-payer-chip span {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: #f8fafc;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 120ms ease;
}

.receipt-payer-chip input:checked + span {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.receipt-payer-chip input:focus-visible + span {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.receipt-item-title {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
}

.expense-enter {
    animation: expense-enter 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes expense-enter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.expense-highlight {
    animation: expense-highlight 1200ms ease;
}

@keyframes expense-highlight {
    0% {
        background-color: #dbeafe;
        box-shadow: 0 0 0 2px #93c5fd;
    }

    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

.expense-remove {
    animation: expense-remove 160ms ease-in forwards;
}

@keyframes expense-remove {
    to {
        opacity: 0;
        transform: scale(0.98);
    }
}

.fab-button {
    position: fixed;
    right: max(
            22px,
            calc((100vw - 720px) / 2 + 22px)
    );
    bottom: 28px;
    z-index: 40;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    min-width: 56px;
    min-height: 56px;

    border-radius: 9999px;
    background: #3b82f6;
    color: white;

    font-size: 40px;
    line-height: 1;
    text-decoration: none;

    box-shadow: 0 14px 32px rgba(59, 130, 246, 0.35);
    transition: transform 160ms ease, background 160ms ease;
}

.fab-button:active {
    transform: scale(0.95);
}

.fab-button:hover {
    background: #2563eb;
}

.expense-card:hover {
    transform: translateY(-1px);

    box-shadow:
            0 2px 4px rgba(0,0,0,0.05),
            0 12px 28px rgba(0,0,0,0.06);
}

.expense-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.expense-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.expense-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 16px;
    background: #f8fafc;
    font-size: 22px;
}

.expense-info {
    min-width: 0;
}

.expense-meta-secondary {
    margin-top: 3px;
    font-size: 12px;
    color: #cbd5e1;
}

.expense-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.expense-chevron {
    color: #cbd5e1;
    font-size: 22px;
    line-height: 1;
}


.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
}

.status-confirmed {
    background: #dcfce7;
    color: #15803d;
}

.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;

    border-radius: 9999px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 700;
}



.empty-balance {
    background: #f8fafc;
    border-radius: 22px;
    padding: 32px 20px;
    text-align: center;
}

.empty-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);

    font-size: 24px;
}

.empty-title {
    font-weight: 700;
    color: #334155;
}

.empty-text {
    margin-top: 4px;
    font-size: 14px;
    color: #94a3b8;
}

.avatar-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.avatar-green {
    background: #dcfce7;
    color: #15803d;
}

.avatar-amber {
    background: #fef3c7;
    color: #b45309;
}

.avatar-purple {
    background: #f3e8ff;
    color: #7e22ce;
}

.avatar-pink {
    background: #fce7f3;
    color: #be185d;
}

.avatar-cyan {
    background: #cffafe;
    color: #0e7490;
}
.event-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    min-width: 0;
}

.event-header > div:first-child {
    min-width: 0;
}

.event-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-subtitle {
    margin: 6px 0 0;
    font-size: 16px;
    color: #94a3b8;
    white-space: nowrap;
}

.settings-button {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    font-size: 20px;
    text-decoration: none;
    transition:
            background 160ms ease,
            transform 120ms ease;
}

.settings-button:hover {
    background: #f1f5f9;
}

.settings-button:active {
    transform: scale(0.94);
}

.event-status-row {
    margin-bottom: 16px;
}

.event-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

.event-status-confirmed {
    background: #dcfce7;
    color: #15803d;
}

.event-status-pending {
    background: #fef3c7;
    color: #b45309;
}

.event-status-draft {
    background: #f1f5f9;
    color: #64748b;
}

.state-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;

    border-radius: 24px;
    padding: 18px;
    margin-bottom: 22px;
}

.state-banner-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.state-banner-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.state-banner-icon {
    font-size: 24px;
    line-height: 1;
}

.state-banner-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.state-banner-text {
    margin-top: 4px;
    font-size: 14px;
    color: #64748b;
}

.confirm-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0;

    z-index: 30;
}

body:has(#confirm_bar .confirm-bar) .fab-button {
    bottom: 82px;
}

.confirm-bar-inner {
    max-width: 480px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.confirm-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.confirm-text {
    margin-top: 2px;
    font-size: 12px;
    color: #94a3b8;
}

.confirm-button {
    border: 0;
    border-radius: 16px;
    background: #3b82f6;
    color: white;

    padding: 13px 22px;
    font-size: 15px;
    font-weight: 800;

    cursor: pointer;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    margin-bottom: 14px;
}

.section-title {
    margin: 0;

    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;

    color: #0f172a;
}

.section-subtitle {
    margin-top: 4px;

    font-size: 14px;
    color: #94a3b8;
}

#expenses {
    margin-top: 28px;
    padding-bottom: 96px;
}
.participants-avatar-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px 12px 10px 4px;

    -webkit-overflow-scrolling: touch;
}

.participants-avatar-row > * {
    flex: 0 0 auto;
}

.participants-avatar-row > * + * {
    margin-left: -8px;
}

.participants-avatar-row > *:last-child {
    margin-right: 12px;
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    background: rgba(15, 23, 42, 0.35);
}

.confirm-sheet {
    width: 100%;
    max-width: 480px;

    background: white;
    border-radius: 28px 28px 0 0;
    padding: 18px 20px 22px;

    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
}

.confirm-handle {
    width: 44px;
    height: 5px;

    margin: 0 auto 20px;

    border-radius: 9999px;
    background: #cbd5e1;
}

.confirm-title {
    margin: 0;

    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;

    color: #0f172a;
}

.confirm-message {
    margin: 10px 0 22px;

    font-size: 15px;
    line-height: 1.4;

    color: #64748b;
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.confirm-cancel,
.confirm-delete {
    border: 0;
    border-radius: 18px;

    padding: 15px 16px;

    font-size: 15px;
    font-weight: 800;

    cursor: pointer;
}

.confirm-cancel {
    background: #f1f5f9;
    color: #334155;
}

.confirm-delete {
    background: #ef4444;
    color: white;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.22);
}

.confirm-cancel:active,
.confirm-delete:active {
    transform: scale(0.98);
}

.event-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.claim-event-form {
    margin: 0;
}

.claim-event-button {
    height: 42px;
    border: 0;
    border-radius: 9999px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;
    color: #2563eb;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
            background 160ms ease,
            transform 120ms ease;
}

.claim-event-button:hover {
    background: #dbeafe;
}

.claim-event-button:active {
    transform: scale(0.96);
}

.account-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 20px;
    padding: 16px;

    border: 1px solid #bfdbfe;
    border-radius: 20px;

    background: #eff6ff;
}

.account-prompt-title {
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.account-prompt-text {
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.account-prompt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.account-prompt-link,
.account-prompt-button {
    min-height: 38px;
    border-radius: 9999px;
    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.account-prompt-link {
    color: #2563eb;
}

.account-prompt-button {
    background: #2563eb;
    color: white;
}

@media (max-width: 520px) {
    .account-prompt {
        align-items: stretch;
        flex-direction: column;
    }

    .account-prompt-actions {
        justify-content: flex-start;
    }
}

.share-icon-button {
    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 9999px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;
    color: #2563eb;

    font-size: 20px;
    font-weight: 700;

    cursor: pointer;

    transition:
            background 160ms ease,
            transform 120ms ease;
}

.share-icon-button:hover {
    background: #dbeafe;
}

.share-icon-button:active {
    transform: scale(0.94);
}

.fab-button-disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
}

.locked-state-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;

    margin-bottom: 24px;
    padding: 18px;

    border-radius: 24px;

    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.locked-state-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: white;

    font-size: 20px;

    flex-shrink: 0;
}

.locked-state-title {
    font-size: 15px;
    font-weight: 800;
    color: #9a3412;
}

.locked-state-text {
    margin-top: 4px;

    font-size: 14px;
    line-height: 1.4;

    color: #c2410c;
}

.settlements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-bottom: 28px;
}

.settlement-card {
    background: white;
    border-radius: 24px;
    padding: 16px;
    border: 1px solid rgba(226,232,240,0.7);
    box-shadow:
            0 1px 2px rgba(15,23,42,0.03),
            0 10px 24px rgba(15,23,42,0.05);
    max-width: 100%;
    overflow: hidden;
}

.settlement-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.settlement-people {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.settlement-flow {
    flex: 1 1 auto;
    min-width: 0;
}

.settlement-names {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    max-width: 100%;
}

.settlement-arrow {
    flex: 0 0 auto;
    color: #3b82f6;
}

.settlement-names span:not(.settlement-arrow) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settlement-caption {
    margin-top: 3px;

    font-size: 12px;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settlement-amount {
    flex-shrink: 0;
    max-width: 100%;
    white-space: nowrap;

    font-size: 20px;
    font-weight: 800;
    color: #2563eb;
}

.settlement-actions {
    margin-top: 14px;
}

.settlement-pay-button {
    width: 100%;

    border: 0;
    border-radius: 16px;

    background: #3b82f6;
    color: white;

    padding: 13px 16px;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}

.settlement-paid {
    width: 100%;

    border-radius: 16px;

    background: #dcfce7;
    color: #15803d;

    padding: 13px 16px;

    text-align: center;

    font-size: 14px;
    font-weight: 800;
}

.settlement-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.why-actions {
    margin-top: 28px;
    margin-bottom: 40px;
}

.expense-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.expense-card {
    background: white;
    border-radius: 24px;
    padding: 16px;
    border: 1px solid rgba(226,232,240,0.8);
    box-shadow:
            0 1px 2px rgba(15,23,42,0.03),
            0 10px 24px rgba(15,23,42,0.05);
    transition:
            transform 160ms ease,
            box-shadow 160ms ease;
}

.expense-card:hover {
    transform: translateY(-1px);
}

.expense-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.expense-content {
    flex: 1;
    min-width: 0;
}

.expense-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.expense-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.expense-meta {
    margin-top: 3px;
    font-size: 13px;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expense-amount {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.expense-bottom {
    margin-top: 18px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.expense-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-top: 14px;
}

.expense-participants {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.expense-paid-by {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.25;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expense-meta-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.avatar-small {
    width: 28px;
    height: 28px;
    font-size: 10px;
    border: 2px solid white;
}

.expense-participants > * + * {
    margin-left: -6px;
}

.expense-hidden-count {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid white;
    margin-left: -6px;
}

.expense-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.expense-split {
    font-size: 12px;
    font-weight: 600;

    color: #64748b;
}

.expense-shared {
    min-width: 0;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 650;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expense-presets {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    margin-top: -2px;
    margin-bottom: 4px;
}

.expense-preset {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    border: 0;
    border-radius: 9999px;

    padding: 9px 12px;

    background: #f1f5f9;
    color: #334155;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.expense-preset:active {
    transform: scale(0.96);
}

.expense-preset:hover {
    background: #e2e8f0;
}

.settlement-card-active {
    border-color: #93c5fd;
    box-shadow:
            0 0 0 3px rgba(59,130,246,0.12),
            0 10px 24px rgba(15,23,42,0.05);
}
.settlement-unpay-button {
    width: 100%;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    background: white;
    color: #64748b;

    padding: 12px 16px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
            background 160ms ease,
            border-color 160ms ease,
            color 160ms ease;
}

.settlement-unpay-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.settlement-unpay-button:active {
    transform: scale(0.98);
}

.settlement-card {
    max-width: 100%;
    overflow: hidden;
}

.settlement-main,
.expense-top-row {
    min-width: 0;
}

.settlement-names {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expense-title {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.participant-form {
    display: flex;
    flex-direction: column;

    gap: 12px;

    width: 100%;
}

.participant-form input {
    width: 100%;
    min-width: 0;
}

.participant-form button {
    width: 100%;
    flex-shrink: 0;
}

.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 1000;

    transform: translateX(-50%);

    border-radius: 9999px;
    background: #0f172a;
    color: white;

    padding: 10px 16px;

    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 12px 30px rgba(15,23,42,0.18);

    transition:
            opacity 300ms ease,
            transform 300ms ease;
}

.toast-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    /*margin-bottom: 10px;*/

    text-decoration: none;
    color: inherit;
}

.app-brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
}

.app-brand-text {
    font-size: 18px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.participant-danger-zone {
    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid #e2e8f0;
}

.participant-delete-button {
    width: 100%;

    border: none;
    border-radius: 18px;

    background: #fee2e2;
    color: #dc2626;

    padding: 14px 18px;

    font-size: 15px;
    font-weight: 800;

    cursor: pointer;

    transition:
            background 160ms ease,
            transform 160ms ease;
}

.participant-delete-button:hover {
    background: #fecaca;
}

.participant-delete-button:active {
    transform: scale(0.98);
}

.expense-submit-button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #3b82f6;
    color: white;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.expense-submit-button:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 560px) {
    .event-header {
        flex-direction: column;
        gap: 10px;
    }

    .event-title {
        font-size: 28px;
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    .event-header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .claim-event-button {
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .settings-button,
    .share-icon-button {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .settlement-main {
        align-items: flex-start;
        flex-direction: row;
        gap: 12px;
    }

    .settlement-people {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        flex: 1 1 auto;
        width: auto;
    }

    .settlement-people .avatar {
        display: none;
    }

    .settlement-flow {
        width: 100%;
    }

    .settlement-names {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        line-height: 1.18;
    }

    .settlement-names span:not(.settlement-arrow) {
        display: -webkit-box;
        overflow: hidden;
        text-overflow: clip;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .settlement-arrow {
        font-size: 0;
        line-height: 1;
    }

    .settlement-arrow::after {
        content: "↓";
        font-size: 16px;
        font-weight: 800;
    }

    .settlement-caption {
        display: none;
    }

    .settlement-caption-paid {
        display: block;
        margin-top: 5px;
        color: #15803d;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.25;
        white-space: normal;
    }

    .settlement-amount {
        flex: 0 0 auto;
        width: auto;
        font-size: 20px;
        line-height: 1.1;
        text-align: right;
    }

    .settlement-card {
        border-left: 3px solid #dbeafe;
        padding: 14px 16px;
    }

    .settlement-card-paid {
        border-left-color: #bbf7d0;
    }
}
