/* ═══════════════════════════════════════════════════════
   Техника — страница управления техникой
   ═══════════════════════════════════════════════════════ */

/* ─── View switching ──────────────────────────────────── */
.eq-view { display: none; }
.eq-view.active { display: block; }

/* ─── Page nav (Техніка / Історія) ───────────────────── */
.eq-page-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.eq-page-nav-btn {
  padding: 8px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color .15s, border-color .15s;
}
.eq-page-nav-btn:hover    { color: var(--text); }
.eq-page-nav-btn.active   { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }

/* ─── History toolbar ─────────────────────────────────── */
.eq-history-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.eq-hist-mode-wrap {
  display: flex;
  gap: 0;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.eq-hist-mode-btn {
  padding: 6px 16px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.eq-hist-mode-btn.active {
  background: var(--green);
  color: #fff;
}

/* ─── Category grid ───────────────────────────────────── */
.eq-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.eq-cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow);
  user-select: none;
}
.eq-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  border-color: var(--green);
}
.eq-cat-card:active { transform: translateY(-2px); }

.eq-cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 14px;
  margin-bottom: 4px;
}
.eq-cat-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   3D CSS MODELS
   ═══════════════════════════════════════════════════════ */

.eq-model {
  position: relative;
  width: 160px;
  height: 108px;
  transform: perspective(500px) rotateY(-6deg) rotateX(3deg);
  filter: drop-shadow(2px 6px 12px rgba(0,0,0,.18));
}

/* ─────────── TRACTOR ─────────── */
.model-tractor .m-shadow {
  position: absolute;
  bottom: 0; left: 15%;
  width: 70%; height: 8px;
  background: rgba(0,0,0,.18);
  border-radius: 50%;
  filter: blur(5px);
}
/* Rear wheel */
.model-tractor .m-wr {
  position: absolute;
  bottom: 4px; left: 8px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #4A4A4A, #181818);
  border: 3px solid #0E0E0E;
  z-index: 2;
}
.model-tractor .m-wr::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #6A6A6A, #3A3A3A);
  border: 2px solid #222;
}
.model-tractor .m-wr::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.08);
}
/* Front wheel */
.model-tractor .m-wf {
  position: absolute;
  bottom: 14px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #4A4A4A, #181818);
  border: 2px solid #0E0E0E;
  z-index: 2;
}
.model-tractor .m-wf::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #555;
}
/* Body chassis */
.model-tractor .m-body {
  position: absolute;
  bottom: 24px; left: 34px;
  width: 84px; height: 28px;
  background: linear-gradient(175deg, #5DA870 0%, #3D7A4A 55%, #2A5A36 100%);
  border-radius: 2px 6px 4px 2px;
  box-shadow: 3px 3px 0 #1E4428, inset 0 1px 3px rgba(255,255,255,.18);
  z-index: 1;
}
/* Hood */
.model-tractor .m-hood {
  position: absolute;
  bottom: 24px; right: 6px;
  width: 46px; height: 22px;
  background: linear-gradient(to bottom, #6AB87A, #4A9A58);
  border-radius: 2px 10px 8px 0;
  box-shadow: 3px 2px 0 #2A5A38;
  z-index: 2;
}
/* Cab */
.model-tractor .m-cab {
  position: absolute;
  bottom: 46px; left: 34px;
  width: 48px; height: 34px;
  background: linear-gradient(160deg, #3E6E4C, #28502E);
  border-radius: 3px 3px 0 0;
  box-shadow: 3px 3px 0 #183828;
  z-index: 1;
}
/* Window */
.model-tractor .m-window {
  position: absolute;
  bottom: 54px; left: 39px;
  width: 37px; height: 20px;
  background: linear-gradient(130deg, #C0DEFF 0%, #7AAAD0 50%, #4A7AAC 100%);
  border-radius: 2px;
  border: 1.5px solid rgba(255,255,255,.3);
  z-index: 2;
  opacity: .9;
}
/* Exhaust pipe */
.model-tractor .m-exhaust {
  position: absolute;
  bottom: 76px; left: 58px;
  width: 7px; height: 22px;
  background: linear-gradient(to right, #282828, #3A3A3A);
  border-radius: 2px 2px 0 0;
  z-index: 3;
}
.model-tractor .m-exhaust::after {
  content: '';
  position: absolute;
  top: -4px; left: -2px;
  width: 11px; height: 5px;
  background: #1E1E1E;
  border-radius: 2px;
}

/* ─────────── COMBINE ─────────── */
.model-combine .m-shadow {
  position: absolute;
  bottom: 0; left: 5%;
  width: 88%; height: 8px;
  background: rgba(0,0,0,.15);
  border-radius: 50%;
  filter: blur(5px);
}
/* Left wheel */
.model-combine .m-wl {
  position: absolute;
  bottom: 4px; left: 14px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #4A4A4A, #181818);
  border: 3px solid #0E0E0E;
  z-index: 2;
}
.model-combine .m-wl::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #555;
  border: 2px solid #222;
}
/* Right wheel */
.model-combine .m-wr2 {
  position: absolute;
  bottom: 8px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #4A4A4A, #181818);
  border: 2px solid #0E0E0E;
  z-index: 2;
}
.model-combine .m-wr2::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #555;
}
/* Grain tank */
.model-combine .m-tank {
  position: absolute;
  bottom: 50px; left: 8px;
  width: 68px; height: 30px;
  background: linear-gradient(170deg, #F4C040, #D09820 60%, #A07010);
  border-radius: 4px 4px 0 0;
  box-shadow: 3px -1px 0 #7A5010, inset 0 2px 4px rgba(255,255,255,.2);
  z-index: 1;
}
/* Main body */
.model-combine .m-body {
  position: absolute;
  bottom: 28px; left: 4px;
  width: 134px; height: 30px;
  background: linear-gradient(to bottom, #E8A828, #C08010 60%, #9A6010);
  border-radius: 2px 4px 4px 2px;
  box-shadow: 3px 3px 0 #7A4A0A, inset 0 1px 3px rgba(255,255,255,.15);
  z-index: 2;
}
/* Cab */
.model-combine .m-cab {
  position: absolute;
  bottom: 56px; right: 8px;
  width: 42px; height: 30px;
  background: linear-gradient(160deg, #DFA020, #A87010);
  border-radius: 3px 3px 0 0;
  box-shadow: 3px 3px 0 #7A4A00;
  z-index: 3;
}
.model-combine .m-cabwin {
  position: absolute;
  bottom: 66px; right: 13px;
  width: 28px; height: 16px;
  background: linear-gradient(130deg, #B0D8FF, #5A88BE);
  border-radius: 2px;
  opacity: .88;
  z-index: 4;
}
/* Header platform */
.model-combine .m-header {
  position: absolute;
  bottom: 20px; left: -2px;
  width: 152px; height: 14px;
  background: linear-gradient(to bottom, #788A3A, #506028);
  border-radius: 2px 0 0 2px;
  box-shadow: 2px 2px 0 #304018;
  z-index: 3;
}
/* Auger pipe */
.model-combine .m-auger {
  position: absolute;
  bottom: 72px; left: 70px;
  width: 8px; height: 18px;
  background: linear-gradient(to right, #9A7020, #C09030);
  border-radius: 2px 2px 0 0;
  z-index: 3;
  transform: rotate(-15deg);
}

/* ─────────── TRUCK ─────────── */
.model-truck .m-shadow {
  position: absolute;
  bottom: 0; left: 5%;
  width: 88%; height: 8px;
  background: rgba(0,0,0,.15);
  border-radius: 50%;
  filter: blur(5px);
}
/* Wheels */
.model-truck .m-w1,
.model-truck .m-w2,
.model-truck .m-w3,
.model-truck .m-w4 {
  position: absolute;
  bottom: 4px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3A3A3A, #101010);
  border: 2px solid #0A0A0A;
  z-index: 2;
}
.model-truck .m-w1 { left: 8px; }
.model-truck .m-w2 { left: 40px; }
.model-truck .m-w3 { right: 30px; }
.model-truck .m-w4 { right: 8px; }
.model-truck .m-w1::before,
.model-truck .m-w2::before,
.model-truck .m-w3::before,
.model-truck .m-w4::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #555;
}
/* Cargo bed */
.model-truck .m-cargo {
  position: absolute;
  bottom: 20px; left: 54px;
  width: 98px; height: 32px;
  background: linear-gradient(to bottom, #6A7080, #44505E);
  border-radius: 0 3px 3px 0;
  box-shadow: 3px 3px 0 #2A3040, inset 0 1px 2px rgba(255,255,255,.1);
  z-index: 1;
}
.model-truck .m-cargo-bar {
  position: absolute;
  bottom: 20px; left: 54px;
  width: 98px; height: 3px;
  background: rgba(255,255,255,.08);
  z-index: 2;
}
/* Cab */
.model-truck .m-cab {
  position: absolute;
  bottom: 20px; left: 4px;
  width: 54px; height: 40px;
  background: linear-gradient(160deg, #5A6A8A, #3A4A68);
  border-radius: 4px 2px 2px 4px;
  box-shadow: 3px 3px 0 #1A2A48;
  z-index: 2;
}
.model-truck .m-window {
  position: absolute;
  bottom: 38px; left: 8px;
  width: 38px; height: 18px;
  background: linear-gradient(130deg, #B0D0F8, #6898CC);
  border-radius: 3px 2px 0 0;
  opacity: .9;
  z-index: 3;
}
/* Bumper */
.model-truck .m-bumper {
  position: absolute;
  bottom: 20px; left: 4px;
  width: 8px; height: 8px;
  background: #88889A;
  border-radius: 1px;
  z-index: 3;
}

/* ─────────── ATTACHMENT / НАВЕСНОЕ ─────────── */
.model-attachment .m-shadow {
  position: absolute;
  bottom: 0; left: 10%;
  width: 80%; height: 6px;
  background: rgba(0,0,0,.12);
  border-radius: 50%;
  filter: blur(4px);
}
/* Hitch bar */
.model-attachment .m-hitch {
  position: absolute;
  bottom: 56px; right: 0;
  width: 30px; height: 10px;
  background: linear-gradient(to bottom, #7A8A9A, #5A6A7A);
  border-radius: 2px;
  box-shadow: 2px 2px 0 #3A4A5A;
}
/* Main frame */
.model-attachment .m-frame {
  position: absolute;
  bottom: 54px; left: 8px;
  width: 124px; height: 12px;
  background: linear-gradient(to bottom, #7A8A9A, #5A6A7A);
  border-radius: 3px;
  box-shadow: 3px 3px 0 #3A4A5A;
}
/* Vertical bars */
.model-attachment .m-bar1,
.model-attachment .m-bar2,
.model-attachment .m-bar3,
.model-attachment .m-bar4,
.model-attachment .m-bar5 {
  position: absolute;
  bottom: 22px;
  width: 6px; height: 34px;
  background: linear-gradient(to right, #6A7A8A, #4A5A6A);
  border-radius: 1px;
  z-index: 1;
}
.model-attachment .m-bar1 { left: 18px; }
.model-attachment .m-bar2 { left: 40px; }
.model-attachment .m-bar3 { left: 62px; }
.model-attachment .m-bar4 { left: 84px; }
.model-attachment .m-bar5 { left: 106px; }
/* Discs */
.model-attachment .m-disc {
  position: absolute;
  bottom: 16px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #909AA8, #4A5A68);
  border: 2px solid #3A4A58;
  box-shadow: 1px 2px 4px rgba(0,0,0,.3);
  z-index: 2;
}
.model-attachment .m-d1 { left: 14px; }
.model-attachment .m-d2 { left: 36px; }
.model-attachment .m-d3 { left: 58px; }
.model-attachment .m-d4 { left: 80px; }
.model-attachment .m-d5 { left: 102px; }
/* Bottom frame rail */
.model-attachment .m-frame-bot {
  position: absolute;
  bottom: 24px; left: 8px;
  width: 124px; height: 8px;
  background: linear-gradient(to bottom, #6A7A8A, #4A5A6A);
  border-radius: 2px;
}
/* Wheels/skids */
.model-attachment .m-skid1,
.model-attachment .m-skid2 {
  position: absolute;
  bottom: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3A3A3A, #101010);
  border: 2px solid #0A0A0A;
}
.model-attachment .m-skid1 { left: 22px; }
.model-attachment .m-skid2 { right: 22px; }

/* ─── Equipment list view ─────────────────────────────── */
.eq-list-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.eq-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.eq-back-btn:hover { background: var(--bg); color: var(--text); }

.eq-list-title {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}
.eq-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 5px;
}
.eq-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.eq-status-active  { background: #EAF2EC; color: #3D6248; }
.eq-status-active .eq-status-dot  { background: #4E7A5A; }
.eq-status-repair  { background: #FDE8E8; color: #9A3030; }
.eq-status-repair .eq-status-dot  { background: #D04040; }
.eq-status-maint   { background: #FFF5E0; color: #8A6000; }
.eq-status-maint .eq-status-dot   { background: #C89000; }
.eq-status-inactive { background: #F0F0EE; color: var(--text-muted); }
.eq-status-inactive .eq-status-dot { background: #B0B0B0; }

/* ─── Equipment detail view ───────────────────────────── */
.eq-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.eq-detail-photo {
  width: 120px; height: 90px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  overflow: hidden;
}
.eq-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.eq-detail-meta { flex: 1; }
.eq-detail-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.eq-detail-model {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.eq-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.eq-detail-tag {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
}
.eq-detail-actions { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }

.eq-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.eq-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.eq-info-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; }
.eq-info-value { font-size: 18px; font-weight: 700; color: var(--text); }
.eq-info-unit  { font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* ─── Tabs ────────────────────────────────────────────── */
.eq-tabs {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.eq-tab {
  flex: 1;
  padding: 8px 6px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}
.eq-tab:hover { background: var(--bg); color: var(--text); }
.eq-tab.active { background: var(--green); color: #fff; }

.eq-tab-panel { display: none; }
.eq-tab-panel.active { display: block; }

/* ─── Tab panel cards ─────────────────────────────────── */
.eq-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.eq-panel-title {
  font-size: 13.5px;
  font-weight: 600;
}

/* Fuel chart */
.fuel-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.fuel-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-top: 8px;
}
.fuel-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fuel-bar {
  width: 100%;
  background: var(--green);
  border-radius: 3px 3px 0 0;
  opacity: .8;
  transition: opacity .15s;
}
.fuel-bar:hover { opacity: 1; }
.fuel-bar-label { font-size: 10px; color: var(--text-muted); }
.fuel-bar-val { font-size: 10px; color: var(--green); font-weight: 600; }

/* Breakdown severity */
.sev-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.sev-low      { background: #EAF2EC; color: #3D6248; }
.sev-medium   { background: #FFF5E0; color: #8A6000; }
.sev-high     { background: #FDE8E8; color: #9A3030; }
.sev-critical { background: #F8D8D8; color: #7A1010; }
.sev-open     { background: #FDE8E8; color: #9A3030; }
.sev-progress { background: #FFF5E0; color: #8A6000; }
.sev-resolved { background: #EAF2EC; color: #3D6248; }

/* Employee assignment cards */
.eq-emp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.eq-emp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eq-emp-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.eq-emp-name  { font-size: 13px; font-weight: 500; }
.eq-emp-role  { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.eq-emp-main  { font-size: 10.5px; color: var(--green); margin-top: 2px; font-weight: 500; }

/* ─── Forms (add records) ─────────────────────────────── */
.eq-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.eq-form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.eq-form-row.cols-1 { grid-template-columns: 1fr; }
@media (max-width: 480px) {
  .eq-form-row,
  .eq-form-row.cols-3 { grid-template-columns: 1fr; }
}
.eq-field { display: flex; flex-direction: column; gap: 5px; }
.eq-field label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.eq-field input,
.eq-field select,
.eq-field textarea {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s;
}
.eq-field input:focus,
.eq-field select:focus,
.eq-field textarea:focus { border-color: var(--green); }
.eq-field textarea { resize: vertical; min-height: 70px; }

/* ─── Modal ───────────────────────────────────────────── */
.eq-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.eq-modal-backdrop.visible { opacity: 1; pointer-events: all; }
.eq-modal {
  background: var(--surface);
  border-radius: 12px;
  width: 520px;
  max-width: 95vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  transform: scale(.96);
  transition: transform .2s;
}
.eq-modal-backdrop.visible .eq-modal { transform: scale(1); }
.eq-modal-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eq-modal-title { font-size: 15px; font-weight: 600; }
.eq-modal-close {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: all .15s;
}
.eq-modal-close:hover { background: var(--bg); color: var(--text); }
.eq-modal-body { padding: 18px 20px; }
.form-section-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  padding-top: 6px;
  margin-bottom: 10px;
  border-top: 1px solid var(--border);
}
.eq-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ─── Loading / empty states ──────────────────────────── */
.eq-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 13px;
}
.eq-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}
.eq-empty-icon { font-size: 32px; margin-bottom: 10px; }
.eq-empty-text { font-size: 13px; }

/* ─── API error notice ────────────────────────────────── */
.api-notice {
  background: #FFF8E8;
  border: 1px solid #F0D080;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #7A5800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
