/* ─── Repeater: form ────────────────────────────────────────────────────────── */

.st-repeater__table-wrap {
    overflow-x: auto;
    margin-bottom: 8px;
}

.st-repeater__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.st-repeater__table th,
.st-repeater__table td {
    padding: 6px 8px;
    vertical-align: middle;
    border: 1px solid #ddd;
}

.st-repeater__table th {
    background: #f5f5f5;
    font-weight: 600;
    white-space: nowrap;
}

.st-repeater__col-actions {
    width: 36px;
    text-align: center;
    border: none !important;
    background: transparent !important;
}

.st-repeater__remove-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    color: #999;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.st-repeater__remove-row:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.st-repeater__input {
    width: 100%;
    min-width: 100px;
}

.st-repeater__add-row {
    margin-top: 6px;
    font-size: 0.85em;
}

.st-repeater__no-columns {
    color: #999;
    font-style: italic;
}

/* ─── Sum: form ─────────────────────────────────────────────────────────────── */

.st-sum__display-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 600;
    min-width: 100px;
}

.st-sum__display {
    color: #333;
}

.st-sum__suffix {
    font-size: 0.85em;
    font-weight: 400;
    color: #666;
}

/* ─── Sum: single listing display ───────────────────────────────────────────── */

.st-sum-display__suffix {
    font-size: 0.9em;
    color: #666;
    margin-left: 3px;
}

/* ─── Repeater: single listing display ──────────────────────────────────────── */

.st-repeater-display__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin-top: 4px;
}

.st-repeater-display__table th,
.st-repeater-display__table td {
    padding: 5px 8px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

.st-repeater-display__table th {
    background: #f8f8f8;
    font-weight: 600;
}

.st-repeater-display__table a {
    word-break: break-all;
}
