/* 3D chrome of add-source applied to edit-source + SP phụ / Data khách */
.skyland-edit-overlay.skyland-source-form-3d,
#custSpPhuModal.skyland-source-form-3d {
  background: rgba(16, 24, 28, 0.36);
  backdrop-filter: blur(10px);
}
.skyland-edit-overlay.skyland-source-form-3d .skyland-edit-panel,
#custSpPhuModal.skyland-source-form-3d .skyland-modal-content {
  width: min(720px, calc(100vw - 24px));
  max-height: 92dvh;
  border-radius: 16px;
  border: 1px solid #e7ecee;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 24, 32, 0.14), 0 2px 0 rgba(255, 255, 255, 0.7) inset;
}
.skyland-edit-overlay.skyland-source-form-3d .skyland-edit-head,
#custSpPhuModal.skyland-source-form-3d .skyland-modal-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid #eef1f2;
}
.skyland-edit-overlay.skyland-source-form-3d .skyland-edit-head b,
#custSpPhuModal.skyland-source-form-3d .skyland-modal-header h3 {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #102428;
}
.skyland-edit-overlay.skyland-source-form-3d .skyland-edit-field,
#custSpPhuModal.skyland-source-form-3d .skyland-add-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #3d4c50;
}
.skyland-edit-overlay.skyland-source-form-3d input,
.skyland-edit-overlay.skyland-source-form-3d select,
.skyland-edit-overlay.skyland-source-form-3d textarea,
#custSpPhuModal.skyland-source-form-3d .skyland-add-input,
#custSpPhuModal.skyland-source-form-3d .skyland-add-select,
#custSpPhuModal.skyland-source-form-3d textarea.skyland-add-input {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d7dfe1;
  border-radius: 11px;
  font-size: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 32, 0.06);
}
.skyland-edit-overlay.skyland-source-form-3d input:focus,
.skyland-edit-overlay.skyland-source-form-3d select:focus,
.skyland-edit-overlay.skyland-source-form-3d textarea:focus,
#custSpPhuModal.skyland-source-form-3d .skyland-add-input:focus,
#custSpPhuModal.skyland-source-form-3d .skyland-add-select:focus {
  border-color: #0d7a86;
  box-shadow: 0 0 0 3px rgba(13, 122, 134, 0.12);
  outline: none;
}
.skyland-spphu-row {
  border: 1px solid #e7ecee;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
  box-shadow: 0 12px 28px rgba(15, 43, 60, 0.08);
}
.skyland-spphu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skyland-spphu-grid > * {
  flex: 1 1 160px;
}
.skyland-spphu-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.skyland-spphu-prices[hidden],
.skyland-spphu-prices [hidden] {
  display: none !important;
}
.skyland-spphu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
#custSpPhuModal.skyland-source-form-3d .skyland-add-submit,
.skyland-edit-overlay.skyland-source-form-3d .skyland-edit-save,
#custSpPhuSaveBtn {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #0d7a86;
  color: #fff;
  font-weight: 750;
  box-shadow: 0 14px 28px rgba(13, 122, 134, 0.28);
}
.is-pf-locked,
input.is-pf-locked,
select.is-pf-locked {
  background: #f3f6f6 !important;
  color: #64748b !important;
  cursor: not-allowed;
}
#skylandAddSave.skyland-add-submit,
#skylandEditSave.skyland-add-submit,
#custSpPhuSaveBtn {
  background: #0d7a86;
  color: #fff;
}
.skyland-priority-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.skyland-priority-picks label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid #d5e3e6;
  border-radius: 999px;
  background: #fff;
  color: #17363b;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  cursor: pointer;
}
.skyland-priority-picks input {
  width: 13px;
  height: 13px;
  margin: 0;
  flex: 0 0 auto;
}
.skyland-priority-picks label:has(input:checked) {
  border-color: #0d7a86;
  background: #e7f6f8;
  color: #0b4f57;
}
#skylandAddPanel.is-project .skyland-add-priority {
  display: none !important;
}

/* ==========================================================================
   MODAL THÊM NGUỒN (THÊM NHÀ ĐẤT) - GIAO DIỆN HIỆN ĐẠI & CĂN CHỈNH GỌN GÀNG
   ========================================================================== */
#skylandAddOverlay {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#skylandAddPanel {
  width: min(720px, calc(100vw - 28px));
  max-height: 90dvh;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #f8fafc;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.skyland-add-head {
  padding: 16px 22px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.skyland-add-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skyland-add-title::before {
  content: "🏡";
  font-size: 20px;
}

.skyland-add-code {
  font-size: 12.5px;
  font-weight: 650;
  color: #0d9488;
  background: #f0fdfa;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}

/* TAB CHỌN LOẠI THÊM NGUỒN: THÊM NHÀ ĐẤT / ĐIỂM DỰ ÁN / THÊM HÀNG LOẠT */
.skyland-add-kind-tabs {
  display: flex !important;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: #e2e8f0;
  margin: 0 0 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skyland-add-kind-tabs button {
  flex: 1;
  min-height: 40px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13.5px;
  font-weight: 750;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: none;
}

.skyland-add-kind-tabs button:hover {
  background: rgba(255, 255, 255, 0.65);
  color: #0f172a;
}

.skyland-add-kind-tabs button.is-on {
  background: #ffffff !important;
  color: #0d7a86 !important;
  box-shadow: 0 4px 12px rgba(13, 122, 134, 0.16), 0 1px 2px rgba(0,0,0,0.04) !important;
  transform: translateY(-1px);
}

.skyland-tab-ico {
  font-size: 15px;
  line-height: 1;
}

/* KHỐI NỘI DUNG FORM SCROLLABLE */
.skyland-add-body {
  padding: 18px 22px;
  gap: 14px;
  background: #f8fafc;
}

/* FORM LABELS & CĂN CHỈNH CÁC TRƯỜNG NHẬP */
.skyland-add-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-top: 0;
}

.skyland-add-input,
.skyland-add-select,
.skyland-add-label > .skyland-add-input,
.skyland-add-label > .skyland-add-select,
.skyland-add-label > textarea {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14.5px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin-top: 0;
}

.skyland-add-input:focus,
.skyland-add-select:focus,
.skyland-add-textarea:focus {
  border-color: #0d7a86;
  box-shadow: 0 0 0 3px rgba(13, 122, 134, 0.14);
  outline: none;
}

/* HÀNG 2 CỘT */
.skyland-add-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 580px) {
  .skyland-add-row2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* KHỐI ĐỊA CHỈ THÔNG MINH */
.skyland-add-addr {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0;
}

.skyland-add-addr-block {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.skyland-add-addr-block.is-new {
  border-left: 4px solid #0d7a86;
  background: #ffffff;
}

.skyland-add-addr-block.is-old {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  border-color: #fef3c7;
}

.skyland-add-addr-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skyland-add-addr-title::before {
  content: "📍";
  font-size: 14px;
}

.skyland-add-addr-block.is-old .skyland-add-addr-title {
  color: #b45309;
}

.skyland-add-addr-block.is-old .skyland-add-addr-title::before {
  content: "🏛️";
}

/* CHỌN NHÓM NGUỒN & TRẠNG THÁI DROPDOWN */
.skyland-add-dd-btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.skyland-add-dd-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.skyland-add-dd.open .skyland-add-dd-btn {
  border-color: #0d7a86;
  box-shadow: 0 0 0 3px rgba(13, 122, 134, 0.14);
}

.skyland-add-dd-menu {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 8px;
}

/* KHỐI MEDIA ẢNH/VIDEO */
.skyland-add-source-media {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.skyland-add-section {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 6px;
  margin-bottom: 8px;
  border-top: none;
  padding-top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skyland-add-media-row button,
.skyland-add-secondary {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.skyland-add-media-row button:hover,
.skyland-add-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

/* NỘI THẤT / PHÁP LÝ / HIỆN TRẠNG CHIPS GRID */
.skyland-add-furn-box {
  margin: 6px 0 10px;
}

.skyland-add-furn-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 750;
  color: #0f172a;
}

.skyland-add-furn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skyland-add-furn-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.skyland-add-furn-chip:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.skyland-add-furn-chip.is-on {
  background: #f0fdfa !important;
  border-color: #0d7a86 !important;
  color: #0d7a86 !important;
  font-weight: 750;
  box-shadow: 0 2px 6px rgba(13, 122, 134, 0.15);
}

/* FOOTER & NÚT LƯU NGUỒN */
.skyland-add-foot {
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.skyland-add-submit {
  min-height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d7a86 0%, #065e68 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(13, 122, 134, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skyland-add-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(13, 122, 134, 0.35);
  filter: brightness(1.05);
}

.skyland-add-submit:active:not(:disabled) {
  transform: translateY(0);
}
@media (max-width: 720px) {
  .skyland-priority-picks label {
    font-size: 11px;
    padding: 2px 7px;
  }
}

/* GỢI Ý HOA HỒNG (COMMISSION SUGGESTION) & TUYẾN ĐƯỜNG (STREET SUGGESTION) */
.skyland-fee-input-wrap,
.skyland-street-input-wrap {
  position: relative;
  width: 100%;
}

.skyland-fee-suggest-dropdown,
.skyland-street-suggest-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  z-index: 9999;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skyland-fee-suggest-dropdown[hidden],
.skyland-street-suggest-dropdown[hidden] {
  display: none !important;
}

.skyland-fee-suggest-item,
.skyland-street-suggest-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skyland-fee-suggest-item:hover,
.skyland-street-suggest-item:hover {
  background: #f0fdfa;
  color: #0d7a86;
}

.skyland-street-type {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}
#dataCustTable .cust-add-source-btn,
#dataCustTable .cust-kho-link-btn {
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid #d7dfe1;
  background: #fff;
  box-shadow: 0 8px 16px rgba(16, 24, 32, 0.06);
  font-weight: 700;
  cursor: pointer;
}
