.settle-input-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(var(--rgb-ink), 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    box-sizing: border-box;
}

.settle-sido-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.settle-head-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: var(--w-strong);
    letter-spacing: 0.01em;
    padding: 3px 9px;
    border-radius: 4px;
    color: var(--c-sky-soft);
    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.26);
    white-space: nowrap;
}
.settle-head-tag--soft {
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.22);
}

.settle-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 -4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: var(--w-heavy);
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.settle-group::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-glass);
}
.settle-group::before {
    content: "";
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: var(--c-sky);
    opacity: 0.75;
    flex: none;
}

.settle-run-main {
    font-size: 14px !important;
    font-weight: var(--w-heavy) !important;
    padding: 14px !important;
}
.settle-run-audit {
    font-size: 12px !important;
    padding: 8px 11px !important;
    opacity: 0.92;
}
.settle-run-audit:hover { opacity: 1; }

.settle-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.settle-lookup-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}
.settle-lookup-row > div > input,
.settle-lookup-row > button {
    box-sizing: border-box;
    height: 38px;
}

.settle-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 12px;
}

.settle-grid-2-equal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.settle-rates-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}




.settings-table.sticky-cols th:nth-child(1),
.settings-table.sticky-cols td:nth-child(1),
.settings-table.sticky-cols th:nth-child(2),
.settings-table.sticky-cols td:nth-child(2),
.settings-table.sticky-cols th:nth-child(3),
.settings-table.sticky-cols td:nth-child(3),
.settings-table.sticky-cols th:nth-child(4),
.settings-table.sticky-cols td:nth-child(4) {
    position: sticky;
    z-index: 2;
    background: var(--row-bg, var(--c-blue-39));
}
.settings-table.sticky-cols th:nth-child(1),
.settings-table.sticky-cols td:nth-child(1) { left: 0; }
.settings-table.sticky-cols th:nth-child(2),
.settings-table.sticky-cols td:nth-child(2) { left: var(--sticky-col1-w, 40px); }
.settings-table.sticky-cols th:nth-child(3),
.settings-table.sticky-cols td:nth-child(3) { left: var(--sticky-col2-w, 200px); }
.settings-table.sticky-cols th:nth-child(4),
.settings-table.sticky-cols td:nth-child(4) {
    left: var(--sticky-col3-w, 300px);
    box-shadow: 6px 0 8px -6px rgba(0, 0, 0, 0.55);   /* 고정/스크롤 경계 표시 */
}
.settings-table.sticky-cols th:nth-child(1),
.settings-table.sticky-cols th:nth-child(2),
.settings-table.sticky-cols th:nth-child(3),
.settings-table.sticky-cols th:nth-child(4) { z-index: 3; background: var(--c-ink-deep); }
.settings-table.sticky-cols tbody tr:hover td:nth-child(1),
.settings-table.sticky-cols tbody tr:hover td:nth-child(2),
.settings-table.sticky-cols tbody tr:hover td:nth-child(3),
.settings-table.sticky-cols tbody tr:hover td:nth-child(4) { background: var(--s-raised-2); }

.settings-table.sticky-cols thead th:nth-child(1),
.settings-table.sticky-cols thead th:nth-child(2),
.settings-table.sticky-cols thead th:nth-child(3),
.settings-table.sticky-cols thead th:nth-child(4) { z-index: 6; }

.table-col-toolbar { display: flex; justify-content: flex-end; margin: 10px 0 -4px; position: relative; }
.table-col-btn {
    padding: 4px 10px; font-size: 12px; font-weight: var(--w-normal); cursor: pointer;
    background: transparent; border: 1px solid var(--c-line-mid);
    color: var(--c-text-calm); border-radius: 6px;
}
.table-col-btn:hover { background: rgba(var(--rgb-overlay),0.05); }
.table-col-panel {
    position: absolute; top: 34px; right: 0; z-index: 50; width: 260px;
    background: var(--c-blue-39); border: 1px solid var(--c-line-soft); border-radius: 10px;
    padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.table-col-panel h4 { margin: 0 0 8px; font-size: 12px; color: var(--c-text-dim); font-weight: var(--w-strong); }
.table-col-panel label {
    display: flex; align-items: center; gap: 8px; padding: 5px 4px;
    font-size: 12.5px; color: var(--c-text-soft); cursor: pointer; border-radius: 5px;
}
.table-col-panel label:hover { background: rgba(var(--rgb-overlay),0.05); }
.table-col-panel label.locked { color: var(--c-text-mute); cursor: not-allowed; }
.table-col-panel .col-actions { display: flex; gap: 6px; margin-top: 10px; border-top: 1px solid var(--c-ink-2); padding-top: 10px; }
.table-col-panel .col-actions button {
    flex: 1; padding: 6px; font-size: 11px; cursor: pointer; border-radius: 5px;
    background: var(--c-ink-2); border: 1px solid var(--c-line-soft); color: var(--c-text-calm);
}
.table-col-panel .col-actions button:hover { background: var(--s-raised-3); }

.settings-table.sticky-cols td[colspan] { position: static; box-shadow: none; }

.table-container.drag-scrolling { cursor: grabbing; user-select: none; }

.table-container::-webkit-scrollbar { height: 12px; width: 12px; }
.table-container::-webkit-scrollbar-thumb {
    background: rgba(var(--rgb-overlay), 0.18); border-radius: 8px;
}
.table-container::-webkit-scrollbar-thumb:hover { background: rgba(var(--rgb-overlay), 0.35); }
.table-container::-webkit-scrollbar-track { background: rgba(var(--rgb-overlay), 0.04); }

#view-settlement input[type="text"],
#view-settlement input[type="number"],
#view-settlement select,
#view-settlement textarea { font-size: 14.5px !important; }
#view-settlement label { font-size: 13px !important; }
#view-settlement .settle-opt-tab { font-size: 12.5px !important; }
#view-settlement button { font-size: 13px !important; }
#view-settlement #settle-image-panel { font-size: 13.5px; }

#view-listing-register input,
#view-listing-register select,
#view-listing-register textarea { min-width: 0; }

#view-listing-register .settings-table { font-size: 15px; }
#view-listing-register .settings-table th { font-size: 13px; letter-spacing: 0.3px; }
#view-listing-register .settings-table td { padding: 14px 16px; }

@media (min-width: 769px) and (pointer: fine), (min-width: 1101px) {
    #view-listing-register.card, #view-crm.card { margin-left: -30px; margin-right: -30px; padding-left: 6px; padding-right: 6px; }
    div:has(> #list-reg-lead-source) { grid-column: span 2; }
}

@media (min-width: 1241px) {
    #view-listing-register #list-reg-dates-container { grid-template-columns: minmax(0, 2fr); }
    #view-listing-register #list-reg-dates-container > div:first-child { grid-column: span 2; }
}
#view-listing-register #list-reg-form-panel #list-reg-move-in-box select { padding-left: 4px !important; padding-right: 0 !important; }

#view-listing-register #list-filter-danji-group,
#view-listing-register #list-filter-sort-group,
#view-listing-register #list-prop-type-tabs-container {
    flex-wrap: wrap;
    min-width: 0;
    row-gap: 6px;
}
#view-listing-register #list-filter-danji-group > select,
#view-listing-register #list-filter-sort-group > select { min-width: 0; }



#view-settlement input,
#view-settlement select,
#view-settlement textarea { min-width: 0; }



#view-settlement .settle-summary-grid > div {
    padding: 10px 6px !important;
    min-width: 0;
}
#view-settlement .settle-summary-grid > div > div:last-child {
    white-space: nowrap;
    font-size: clamp(11.5px, 0.95vw, 14px) !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
}

#settle-mobile-summary {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: var(--lr-fab-아래띠, 0px);
    z-index: 60;
    background: rgba(var(--rgb-ink), 0.96);
    border-top: 1px solid var(--c-ink-2);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
}
#settle-mobile-summary .sms-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
#settle-mobile-summary .sms-cell { text-align: center; min-width: 0; }
#settle-mobile-summary .sms-label {
    font-size: 10.5px; color: var(--c-text-dim); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
#settle-mobile-summary .sms-value {
    font-size: 13.5px; font-weight: var(--w-heavy); color: var(--c-sky); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#settle-mobile-summary .sms-value.warn { color: var(--c-amber); }


#view-settlement .settle-live-hint {
    font-size: 11px;
    color: var(--c-sky);
    margin-top: 4px;
    min-height: 15px;
    line-height: 1.4;
}


#view-settlement input[type="checkbox"],
#view-settlement input[type="radio"] {
    margin: 0;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    accent-color: var(--c-sky);
    cursor: pointer;
}
#view-settlement label:has(> input[type="checkbox"]),
#view-settlement label:has(> input[type="radio"]) {
    gap: 8px;
    padding: 5px 2px;
    border-radius: 5px;
    line-height: 1.4;
}
#view-settlement label:has(> input[type="checkbox"]):hover {
    background: rgba(56, 189, 248, 0.07);
}

#view-settlement .settle-input-panel label[style*="display: block"] {
    margin-bottom: 8px !important;
    letter-spacing: 0.1px;
}
#view-settlement .settle-input-panel > div { row-gap: 4px; }

#view-settlement .settings-table th,
#view-settlement .settings-table td {
    padding: 11px 10px;
}
#view-settlement .settings-table td,
#view-settlement .settings-table th {
    font-variant-numeric: tabular-nums;
}
#view-settlement .settings-table td:nth-child(3),
#view-settlement .settings-table td:nth-child(6),
#view-settlement .settings-table td:nth-child(7) { text-align: right; }



#cp-title-count[data-limit-step="near"] { color: var(--c-amber); }
#cp-title-count[data-limit-step="full"] { color: var(--c-red-soft); }
#cp-title-limit-note { margin-top: 4px; font-size: 11.5px; color: var(--c-red-soft); }
#cp-title-limit-note[hidden] { display: none; }
