/* ═══════════════════════════════════════════════════
   Procurement — Pane + Tab Bar Layout
   (mirrors admin.css structure)
   ═══════════════════════════════════════════════════ */

/* Page container */
.procurement-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

/* ── Pane container ── */
.procurement-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--bg-surface);
  border-radius: 12px;
  box-shadow: var(--header-shadow);
  overflow: hidden;
}

/* ── Pane header (title + inline tabs) ── */
.procurement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.procurement-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.procurement-header-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.procurement-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Tab bar (inline within header) ── */
.procurement-header .tab-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.procurement-header .tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px 9px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.procurement-header .tab-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  transition: background 0.15s;
}

.procurement-header .tab-btn:hover {
  color: var(--text-primary);
}

.procurement-header .tab-btn.active {
  color: var(--text-primary);
  font-weight: 600;
}

.procurement-header .tab-btn.active::after {
  background: var(--input-focus-border);
}

/* ── Pane body (tab content area) ── */
.procurement-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
