/* 配送站点编辑页 */
.ds-edit .ds-section {
    margin-bottom: 16px;
    border: 1px solid #e6e9ed;
    border-radius: 4px;
    background: #fff;
}
.ds-edit .ds-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f4;
    background: #fafbfc;
}
.ds-edit .ds-section-hd h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}
.ds-edit .ds-section-hd h4 .fa {
    margin-right: 6px;
    color: #3c8dbc;
}
.ds-edit .ds-section-bd {
    padding: 14px;
}
.ds-edit .ds-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
}
.ds-edit .ds-hint {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 12px;
}
.ds-edit .ds-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.ds-edit .ds-chip-group .checkbox-inline {
    margin: 0;
    padding-left: 20px;
}

/* 取送一致开关 */
.ds-edit .ds-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f8fafc;
}
.ds-edit .ds-switch-row .ds-switch-text strong {
    display: block;
    color: #334155;
    font-size: 13px;
}
.ds-edit .ds-switch-row .ds-switch-text span {
    color: #64748b;
    font-size: 12px;
}
.ds-edit .ds-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.ds-edit .ds-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.ds-edit .ds-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: .2s;
}
.ds-edit .ds-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}
.ds-edit .ds-switch input:checked + .ds-switch-slider {
    background: #3c8dbc;
}
.ds-edit .ds-switch input:checked + .ds-switch-slider:before {
    transform: translateX(20px);
}

/* 取送 Tab */
.ds-edit .ds-region-tabs {
    margin: 0 0 12px;
    border-bottom: 1px solid #e2e8f0;
}
.ds-edit .ds-region-tabs > li > a {
    padding: 8px 14px;
    color: #64748b;
    border: none;
    border-bottom: 2px solid transparent;
    margin-right: 4px;
}
.ds-edit .ds-region-tabs > li.active > a,
.ds-edit .ds-region-tabs > li.active > a:hover,
.ds-edit .ds-region-tabs > li.active > a:focus {
    color: #0f172a;
    background: transparent;
    border: none;
    border-bottom: 2px solid #3c8dbc;
    font-weight: 600;
}
.ds-edit .ds-region-tabs .badge {
    margin-left: 6px;
    background: #94a3b8;
}
.ds-edit .ds-region-tabs > li.active .badge {
    background: #3c8dbc;
}
.ds-edit .ds-region-tabs.is-pickup > li.active > a {
    border-bottom-color: #00A0E9;
}
.ds-edit .ds-region-tabs.is-pickup > li.active .badge {
    background: #00A0E9;
}
.ds-edit .ds-region-tabs.is-delivery > li.active > a {
    border-bottom-color: #E67E22;
}
.ds-edit .ds-region-tabs.is-delivery > li.active .badge {
    background: #E67E22;
}
.ds-edit .ds-copy-actions {
    margin-bottom: 12px;
}

/* 地图与工具 */
.ds-edit .ds-map-wrap {
    position: relative;
    border: 1px solid #dbe3ec;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f5f9;
}
.ds-edit #site-map-container {
    width: 100%;
    height: 460px;
}
.ds-edit .ds-map-tools {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    padding: 10px 12px;
    margin-top: 10px;
}
.ds-edit .ds-tool-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ds-edit .ds-tool-row:last-child {
    margin-bottom: 0;
}
.ds-edit .ds-tool-label {
    min-width: 36px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}
.ds-edit .ds-map-status {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: 12px;
}
.ds-edit .ds-map-status.is-delivery {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

/* 右侧区域列表 */
.ds-edit .ds-side-panel {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    height: 100%;
    min-height: 460px;
    display: flex;
    flex-direction: column;
}
.ds-edit .ds-side-hd {
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f4;
    background: #fafbfc;
}
.ds-edit .ds-side-hd strong {
    display: block;
    font-size: 13px;
    color: #334155;
}
.ds-edit .ds-side-hd span {
    font-size: 12px;
    color: #94a3b8;
}
.ds-edit .ds-side-bd {
    padding: 12px;
    flex: 1;
    overflow: auto;
}
.ds-edit .ds-side-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.ds-edit .ds-side-actions .btn {
    flex: 1;
}
.ds-edit #region-list {
    margin-bottom: 0;
}
.ds-edit #region-list .list-group-item {
    border-color: #eef1f4;
    padding: 8px 10px;
}
.ds-edit #region-list .list-group-item .ds-region-meta {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
}
.ds-edit .ds-empty {
    padding: 24px 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    border: 1px dashed #e2e8f0;
    border-radius: 4px;
}
.ds-edit .ds-footer-sticky {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: rgba(255,255,255,.96);
    border-top: 1px solid #e6e9ed;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, .04);
}
@media (max-width: 991px) {
    .ds-edit #site-map-container {
        height: 360px;
    }
    .ds-edit .ds-side-panel {
        margin-top: 12px;
        min-height: auto;
    }
}
