﻿.properties-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.properties-page--erp {
  background: #f1f5f9;
  color: #1e293b;
  font-family: "Pretendard", -apple-system, sans-serif;
  margin: 0 !important;
  padding: 0 !important;
  top: 0;
}

.hdr {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  margin: 0 !important;
  padding: 0 16px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo { font-weight: 800; font-size: 13px; color: #1e40af; letter-spacing: -.3px; white-space: nowrap; }
.sep { width: 1px; height: 18px; background: #e2e8f0; margin: 0 2px; }
.nav-links { display: flex; gap: 2px; }
.nav-link { font-size: 12px; color: #64748b; padding: 5px 10px; border-radius: 5px; cursor: default; white-space: nowrap; }
.nav-link:hover { background: #f1f5f9; color: #1e293b; }
.nav-link.active { background: #1e40af; color: #fff; font-weight: 600; }

.cat-chips { display: flex; gap: 3px; background: #f1f5f9; border-radius: 6px; padding: 2px; }
.cat-chip { font-size: 11px; color: #64748b; padding: 4px 10px; border-radius: 4px; cursor: pointer; white-space: nowrap; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.cat-chip:hover { color: #1e293b; background: #e2e8f0; }
.cat-chip.active { background: #fff; color: #1e40af; font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.cat-chip .cnt { font-size: 9px; opacity: .6; }

.deal-tabs { display: flex; gap: 2px; }
.deal-tab { font-size: 11px; color: #64748b; padding: 4px 10px; border-radius: 5px; cursor: pointer; white-space: nowrap; font-weight: 500; border: 1px solid transparent; }
.deal-tab:hover { background: #f8fafc; color: #1e293b; }
.deal-tab.active { border-color: #1e40af; color: #1e40af; font-weight: 700; background: #eff6ff; }

.spacer { flex: 1; }
.register-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--md-sys-shape-sm);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-primary);
  font: var(--md-sys-typescale-label-medium);
  box-shadow: var(--md-sys-elevation-0);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--md-sys-motion-short) var(--md-sys-motion-standard),
              box-shadow var(--md-sys-motion-short) var(--md-sys-motion-standard);
}
.register-btn:hover {
  background: var(--md-sys-color-surface-container-low);
  box-shadow: var(--md-sys-elevation-1);
}
.register-btn:active {
  background: var(--md-sys-color-surface-container);
  box-shadow: var(--md-sys-elevation-0);
}
.register-btn .material-symbols-outlined {
  font-size: 14px;
  line-height: 1;
}
.search-wrap { position: relative; }
.search-wrap input { width: 160px; height: 28px; border: 1px solid #e2e8f0; border-radius: 5px; padding: 0 8px 0 26px; font-size: 11px; font-family: inherit; outline: none; transition: all .15s; }
.search-wrap input:focus { border-color: #3b82f6; width: 220px; }
.search-wrap::before { content: "\2315"; position: absolute; left: 7px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 12px; }
.user-chip { font-size: 10px; color: #94a3b8; }

.sub-hdr { display: flex; align-items: center; padding: 6px 16px; flex-shrink: 0; gap: 8px; }
.crumb { font-size: 11px; color: #94a3b8; }
.crumb b { color: #1e293b; font-weight: 600; }
.crumb .s { margin: 0 5px; color: #cbd5e1; }
.count-label { margin-left: auto; font-size: 11px; color: #64748b; }
.count-label b { color: #1e40af; font-weight: 700; }
.count-label-inline { margin-left: 8px; }
.src-label { font-size: 9px; color: #94a3b8; background: #f1f5f9; padding: 2px 6px; border-radius: 3px; }

.status-chips { display: flex; gap: 2px; flex-wrap: wrap; }
.status-chip { font-size: 10px; color: #64748b; padding: 2px 7px; border-radius: 4px; cursor: pointer; font-weight: 500; border: 1px solid transparent; }
.status-chip:hover { background: #f8fafc; }
.status-chip.active { border-color: #059669; color: #059669; font-weight: 700; background: #ecfdf5; }
.sub-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.sub-sep { width: 1px; height: 20px; background: #e2e8f0; }

.grid-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
  padding: 0 16px 8px;
}
#grid {
  flex: 1;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.c-price { font-weight: 600; color: #b45309; }
.c-area { color: #0f766e; }
.c-phone { color: #1e40af; font-size: 11px; font-family: "Pretendard", monospace; }
.c-date { color: #475569; font-size: 11px; font-weight: 500; }
.c-date-miss { color: #cbd5e1; font-size: 10px; font-style: italic; }
.c-memo { color: #64748b; font-size: 10.5px; overflow: visible; text-overflow: clip; white-space: nowrap; }
.c-spec { color: #7c3aed; font-size: 10.5px; }
.c-loc { font-weight: 500; }
.c-unit { color: #6366f1; font-weight: 600; }

.bd { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 9px; font-weight: 700; }
.bd-s { background: #fef3c7; color: #92400e; }
.bd-r { background: #dbeafe; color: #1e40af; }
.bd-u { background: #f1f5f9; color: #94a3b8; }

.tabulator { border: none !important; font-family: "Pretendard", sans-serif !important; font-size: 11.5px !important; }
.tabulator .tabulator-header { background: #f8fafc !important; border-bottom: 2px solid #e2e8f0 !important; }
.tabulator .tabulator-header .tabulator-col { border-right: 1px solid #e2e8f0 !important; }
.tabulator .tabulator-header .tabulator-col-content { padding: 5px 6px !important; }
.tabulator .tabulator-col-title { font-weight: 700 !important; font-size: 10.5px !important; color: #475569 !important; }
.tabulator .tabulator-row { border-bottom: 1px solid #f1f5f9 !important; }
.tabulator .tabulator-row:hover { background: #eff6ff !important; }
.tabulator .tabulator-row .tabulator-cell { padding: 4px 6px !important; border-right: 1px solid #f1f5f9 !important; font-size: 11.5px !important; line-height: 1.3 !important; }
.tabulator .tabulator-col-title,
.tabulator .tabulator-row .tabulator-cell {
  text-overflow: clip !important;
}
.tabulator .tabulator-row.tabulator-row-even { background: #fff !important; }
.tabulator .tabulator-row.tabulator-row-odd { background: #fafbfc !important; }
.tabulator .tabulator-footer { background: #f8fafc !important; border-top: 2px solid #e2e8f0 !important; padding: 3px 6px !important; }
.tabulator .tabulator-page { font-size: 10px !important; padding: 2px 7px !important; border-radius: 3px !important; }
.tabulator .tabulator-page.active { background: #1e40af !important; color: #fff !important; }

.property-detail-expand,
.property-detail-expand .tabulator {
  border-radius: 0 !important;
}

/* Detail tabulator: bold "apple-box" grid lines */
.property-detail-expand {
  border: 2px solid #94a3b8 !important;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}
.property-detail-expand .tabulator {
  border: 2px solid #94a3b8 !important;
}
.property-detail-expand .tabulator .tabulator-header {
  border-bottom: 2px solid #94a3b8 !important;
}
.property-detail-expand .tabulator .tabulator-col {
  border-right: 2px solid #cbd5e1 !important;
}
.property-detail-expand .tabulator .tabulator-row {
  border-bottom: 2px solid #cbd5e1 !important;
}
.property-detail-expand .tabulator .tabulator-cell {
  border-right: 2px solid #e2e8f0 !important;
}


