/* ── Estimate top bar ────────────────────────────────────────────────────────── */
.estimate-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.estimate-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.estimate-topbar-title {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}
.estimate-topbar-edit {
  background: none;
  border: 1.5px solid var(--border2);
  border-radius: 7px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
}
.estimate-topbar-edit:hover { border-color: var(--dark); color: var(--dark); }
.estimate-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.estimate-topbar-new,
.estimate-topbar-copy {
  background: none;
  border: 1.5px solid var(--border2);
  border-radius: 7px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
}
.estimate-topbar-new:hover,
.estimate-topbar-copy:hover { border-color: var(--dark); color: var(--dark); }
.estimate-topbar-save {
  background: none;
  border: 1.5px solid var(--border2);
  border-radius: 7px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  padding: 5px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.estimate-topbar-save:hover { border-color: #FFA320; color: #FFA320; }

/* ── Estimate main layout ────────────────────────────────────────────────────── */
#page-new.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.estimate-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 20px;
  flex: 1;
  min-height: 0;
}
.estimate-picker-col  { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; }
.estimate-preview-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
