*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Shared: location state select ── */
.loc-state-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #1f2937;
  transition: border-color .2s;
}
.loc-state-select:focus { border-color: #f53203; outline: none; box-shadow: 0 0 0 3px rgba(245,50,3,.12); }

/* inv-field state selects inside modals */
.inv-field .loc-state-select {
  height: 40px;
  font-size: 13px;
  border-radius: 6px;
  padding: 0 10px;
}

/* lv-field state select (lead edit panel) */
.lv-field .loc-state-select {
  height: 40px;
  font-size: 13px;
  padding: 0 10px;
  border-radius: 8px;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  background: #f7f8fa;
  overflow-x: hidden;
}

body.app-shell {
  padding-top: 60px;
}

body.page-dashboard {
  background: #f7f8fa;
}

.crm-app {
  display: flex;
  min-height: calc(100vh - 60px);
}

main.content {
  flex: 1;
  min-width: 0;
  margin-left: 250px;
  padding: 24px;
  min-height: calc(100vh - 60px);
  transition: margin-left 0.25s ease, padding 0.25s ease;
}

.dashboard-wrapper {
  padding: 0;
}

.form-box {
  max-width: 760px;
  background: #ffffff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.form-box h1 {
  margin-top: 0;
}

.form-box h3 {
  margin: 20px 0 10px;
  font-size: 14px;
  color: #334155;
}

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.form-box textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  border: none;
  background: #f53203;
  color: #fff;
}

.btn-primary:hover {
  background: #dc2d03;
}

.btn-secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
}

.btn-secondary:hover {
  border-color: #0f8ad1;
  background: #fff5f2;
  color: #1f2937;
}

#sidebarOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 900;
}

#sidebarOverlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  body.app-shell {
    padding-top: 60px;
  }

  main.content {
    margin-left: 0;
    padding: 16px;
  }
}
