/* ==========================================================================
   Battag Bid — Finviz-style theme
   Colors sampled directly from the reference UI.
   White brand header → dark slate nav → light-blue controls → dense zebra table.
   ========================================================================== */

:root {
  /* Sampled from reference */
  --nav: #4d525f;            /* dark slate nav / active tab */
  --nav-2: #585e6c;          /* nav hover */
  --nav-text: #d4d7dd;
  --nav-muted: #9aa0ab;
  --page-bg: #f4f5f9;        /* page background */
  --surface: #ffffff;
  --band: #ebf0fd;           /* light-blue control + table-header band */
  --band-2: #e3ecfb;         /* row hover */
  --zebra: #f3f6fc;          /* alt row */

  --blue: #457df2;           /* primary blue button */
  --blue-dark: #2f6ad6;      /* hover / link text */
  --blue-soft: #e9f0fe;
  --yellow: #e6ca61;
  --purple: #6d28d9;
  --col-accent: #efeaf6;     /* highlighted (sorted) column tint */
  --col-accent-bd: #ded6e3;

  /* Lines */
  --border: #e2e6ee;
  --border-2: #d3d9e3;
  --grid: #e6e8ee;           /* table column separators */

  /* Text */
  --ink: #2a3040;
  --text: #4b5563;
  --muted: #6b7280;
  --head-text: #555a67;
  --faint: #9aa1ab;

  /* Status */
  --green: #16a34a;
  --green-soft: #e7f5ec;
  --red: #dc2626;
  --red-soft: #fdecec;

  --ring: 0 0 0 3px rgba(69, 125, 242, 0.2);
  --shadow-sm: 0 1px 2px rgba(42, 48, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(42, 48, 64, 0.12);
  --shadow-lg: 0 18px 48px rgba(42, 48, 64, 0.22);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--page-bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(69, 125, 242, 0.2);
  color: var(--ink);
}

/* ---------- Shared form controls ---------- */

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--ring);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary {
  width: 100%;
  padding: 9px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  margin-top: 4px;
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn-primary.inline {
  width: auto;
  margin-top: 0;
}

.btn-ghost {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.btn-ghost.sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-sm {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid var(--blue);
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn-sm:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-sm.ghost {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border-2);
}

.btn-sm.ghost:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--surface);
}

.btn-delete {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.btn-delete:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-soft);
}

/* ==========================================================================
   APP CHROME — brand header + dark nav
   ========================================================================== */

.appbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.appbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--nav);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Company logo in the header */
.brand-logo {
  align-self: center;
  height: 34px;
  width: auto;
  display: block;
}

/* Login card uses a larger, centered logo */
.login-card .brand-logo {
  height: 64px;
  margin: 0 auto 14px;
}

.brand-word {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
}

.brand-dot {
  color: var(--blue);
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
}

.appbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--nav);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.user-chip .uname {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Dark slate nav bar */
.mainnav {
  background: var(--nav);
}

.mainnav-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 0 16px;
}

.nav-tab {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--nav-text);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.nav-tab:hover {
  background: var(--nav-2);
  color: #fff;
}

.nav-tab.active {
  color: #fff;
  border-bottom-color: var(--blue);
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   PAGE
   ========================================================================== */

.page {
  padding: 0 0 40px;
}

.page-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Light-blue controls band */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--band);
  border: 1px solid var(--border);
  border-top: none;
  padding: 14px 18px;
  margin: 0 -24px 22px;
  padding-left: 24px;
  padding-right: 24px;
}

.search {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  font-size: 14px;
  background: #fff;
}

.search .ic {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
}

.controls-right {
  display: flex;
  gap: 10px;
}

.welcome {
  margin: 22px 0;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
}

.page-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}

.stat .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 7px;
}

.stat .value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat .value.accent {
  color: var(--blue-dark);
}

.stat .value.good {
  color: var(--green);
}

/* ---------- Charts ---------- */

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.chart-card h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.chart-body {
  position: relative;
  height: 280px;
}

.funnel {
  position: relative;
  width: 100%;
  height: 100%;
}

.funnel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.funnel-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.funnel-label {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .charts {
    grid-template-columns: 1fr;
  }
}

/* ---------- Panel + table ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  margin-bottom: 22px;
  overflow: hidden;
}

.panel h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.table-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.count-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  background: var(--col-accent);
  border: 1px solid var(--col-accent-bd);
  padding: 1px 9px;
  border-radius: 999px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table.bids {
  width: 100%;
  border-collapse: collapse;
}

table.bids thead tr {
  background: var(--band);
}

table.bids th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--head-text);
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-2);
  border-right: 1px solid var(--grid);
  white-space: nowrap;
}

table.bids th:last-child {
  border-right: none;
}

table.bids td {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--grid);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.bids td:last-child {
  border-right: none;
}

table.bids tbody tr:nth-child(even) {
  background: var(--zebra);
}

table.bids tbody tr:hover {
  background: var(--band-2);
}

/* first column = blue "ticker" links */
table.bids td:first-child {
  color: var(--blue-dark);
  font-weight: 600;
}

/* highlighted (value) column — Finviz's purple-tinted sorted column */
table.bids th:nth-child(5),
table.bids td:nth-child(5) {
  background: var(--col-accent);
  border-left: 1px solid var(--col-accent-bd);
  border-right: 1px solid var(--col-accent-bd);
}

/* Past-due bids */
table.bids td.days-overdue {
  color: var(--red);
  font-weight: 600;
}

table.bids .col-value {
  text-align: right;
  font-weight: 700;
  color: var(--ink);
}

table.bids .col-actions {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}

/* Project Manager + Opportunity Status: equal fixed width */
table.bids th.col-pm,
table.bids td.col-pm,
table.bids th.col-status,
table.bids td.col-status {
  width: 190px;
}

/* Status pills */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status.open {
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.status.won {
  color: var(--green);
  background: var(--green-soft);
}
.status.lost {
  color: var(--red);
  background: var(--red-soft);
}
.status.hold {
  color: var(--amber);
  background: #fdf0db;
}

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 34px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand-tag {
    display: none;
  }
  .controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search {
    max-width: none;
  }
}

/* ==========================================================================
   LOGIN
   ========================================================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 384px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.brand {
  /* login uses .brand too — center it there */
}

.login-card .brand {
  display: block;
  text-align: center;
  margin-bottom: 26px;
}

.brand-mark {
  margin-bottom: 14px;
}

.login-card .brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  font-size: 18px;
}

.brand h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
}

.brand p {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
}

.error {
  display: none;
  background: var(--red-soft);
  border: 1px solid #f6cccc;
  color: var(--red);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.error.show {
  display: block;
}

.login-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

.admin-toggle {
  display: block;
  width: 100%;
  margin-top: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}

.admin-toggle:hover {
  color: var(--blue-dark);
}

.admin-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--col-accent);
  border: 1px solid var(--col-accent-bd);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.b-toggle {
  cursor: pointer;
  transition: color 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
}

.b-toggle:hover {
  color: var(--muted);
}

.b-toggle.lit {
  color: var(--blue);
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(42, 48, 64, 0.5);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
}

.modal-wide {
  max-width: 760px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  border-radius: 4px;
  transition: color 0.12s ease, background 0.12s ease;
}

.modal-close:hover {
  color: var(--ink);
  background: var(--page-bg);
}

.opp-form {
  display: flex;
  flex-direction: column;
}

.form-section {
  border: none;
  padding: 0;
  margin: 0;
}

.form-section + .form-section {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 20px;
}

.form-section > legend {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue-dark);
  padding: 0;
  margin-bottom: 16px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.section-grid .field {
  margin-bottom: 0;
}

.section-grid .field.full {
  grid-column: 1 / -1;
}

.field .req {
  color: var(--red);
}

.hint-inline {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--faint);
}

.opp-form input,
.opp-form select,
.opp-form textarea {
  width: 100%;
  padding: 9px 11px;
}

.opp-form textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}

.input-prefix {
  position: relative;
}

.input-prefix span {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.input-prefix input {
  padding-left: 24px;
}

.checkgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 7px 11px;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.check:hover {
  border-color: var(--blue);
  color: var(--ink);
  background: var(--blue-soft);
}

.check input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
}

.cg-hint {
  font-size: 13px;
  color: var(--faint);
  padding: 6px 2px;
}

/* Searchable multi-select combobox (Local Unions) */
.multicombo {
  position: relative;
}

.mc-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 5px 8px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  cursor: text;
}

.mc-control:focus-within {
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.mc-chips {
  display: contents;
}

.mc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border: 1px solid #cfe0fb;
  border-radius: 4px;
  padding: 2px 4px 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.mc-chip-x {
  border: none;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 0 2px;
}

.mc-chip-x:hover {
  color: var(--red);
}

.mc-input {
  flex: 1;
  min-width: 90px;
  border: none !important;
  outline: none;
  box-shadow: none !important;
  padding: 3px 2px !important;
  font-size: 13px;
  background: transparent;
}

.mc-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.mc-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.mc-option:hover {
  background: var(--band-2);
}

.mc-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
}

.mc-none {
  padding: 9px 11px;
  font-size: 13px;
  color: var(--faint);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.modal-actions .btn-primary {
  width: auto;
  margin-top: 0;
  padding: 9px 20px;
}

/* ==========================================================================
   ADMIN — dropdown list manager
   ========================================================================== */

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
}

.list-card .list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.list-card .list-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  background: var(--zebra);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 7px;
  font-size: 14px;
  color: var(--text);
}

.option-row .x {
  background: transparent;
  border: none;
  color: var(--faint);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.12s ease, background 0.12s ease;
}

.option-row .x:hover {
  color: var(--red);
  background: var(--red-soft);
}

.add-option {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.add-option input {
  flex: 1;
  padding: 8px 11px;
  font-size: 14px;
}

.new-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 18px;
}

.panel .new-list {
  padding: 0;
}

.new-list .field {
  margin-bottom: 0;
  flex: 1 1 220px;
}

.panel h2 {
  padding: 14px 16px 0;
}

.panel .new-list {
  padding: 14px 16px 18px;
}

.empty-opt {
  font-size: 13px;
  color: var(--faint);
  padding: 6px 2px;
}

@media (max-width: 600px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}
