/* ── Dashboard Layout ────────────────────────────────────────────────────── */
.dashboard-body {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  background: var(--text-dark);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar__brand {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}

.sidebar__brand .brand-mark {
  color: #fff;
  font-size: 1rem;
  display: block;
}

.sidebar__brand .brand-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
  gap: 2px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.sidebar__link:hover,
.sidebar__link--active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ── Main Content ────────────────────────────────────────────────────────── */
.dashboard-main {
  flex: 1;
  padding: 40px 48px;
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Job List ────────────────────────────────────────────────────────────── */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-xs);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.job-item:hover {
  box-shadow: var(--shadow-sm);
}

.job-item__code {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.job-item__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.job-item__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.job-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge--OPEN        { background: rgba(22,163,74,0.1);   color: #16a34a; }
.status-badge--IN_PROGRESS { background: rgba(22,108,159,0.1);  color: var(--primary); }
.status-badge--COMPLETED   { background: rgba(234,179,8,0.12);  color: #b45309; }
.status-badge--SYNCED      { background: rgba(107,114,128,0.1); color: var(--text-muted); }

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 60px 0;
  font-size: 0.9rem;
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  width: 100%;
  max-width: 460px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal__header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
  transition: var(--transition);
}

.modal__close:hover {
  color: var(--text-dark);
}

/* ── Form Fields ─────────────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-dark);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea,
.field select {
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--surface);
  transition: border-color 0.18s ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
}

/* Segmented control for job type */
.segmented {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.segmented__option {
  flex: 1;
  cursor: pointer;
}

.segmented__option input {
  display: none;
}

.segmented__option span {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  transition: var(--transition);
}

.segmented__option:not(:last-child) span {
  border-right: 1.5px solid var(--light-gray);
}

.segmented__option input:checked + span {
  background: var(--primary);
  color: #fff;
}

.modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

.form-error {
  font-size: 0.82rem;
  color: #ef4444;
  margin-top: 10px;
  text-align: center;
}

.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 5px;
}
.field-hint a {
  color: var(--primary);
  text-decoration: none;
}
.field-hint a:hover { text-decoration: underline; }

/* ── Admin Auth Overlay ───────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-overlay.hidden { display: none; }

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-card__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.auth-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.auth-card__sub {
  font-size: 0.9rem;
  color: var(--medium-gray);
  margin: 0 0 24px;
}

/* ── File upload / password input ─────────────────────────────────────────── */
.field input[type="file"],
.field input[type="password"] {
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--surface);
  transition: border-color 0.18s ease;
  outline: none;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
}

.field input[type="file"]:focus,
.field input[type="password"]:focus {
  border-color: var(--primary);
}

/* ── Modal: prevent card hover effects inside modals ─────────────────────── */
.modal-backdrop .card {
  transform: none !important;
  transition: box-shadow 0.2s ease;
}
.modal-backdrop .card:hover {
  transform: none !important;
  box-shadow: var(--shadow-md);
}

/* ── Modal scrolling ──────────────────────────────────────────────────────── */
.modal {
  overflow-y: auto;
  max-height: calc(100vh - 48px);
}

/* ── Client list items: not clickable, no pointer cursor ─────────────────── */
#clientList .job-item {
  cursor: default;
}
#clientList .job-item:hover {
  transform: none;
  box-shadow: var(--shadow-xs);
}

/* ── Icon buttons on job cards ────────────────────────────────────────────── */
.btn--icon {
  background: none;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: var(--medium-gray);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn--icon:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--icon-danger:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* ── Button sizes ─────────────────────────────────────────────────────────── */
.btn--sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* ── Danger button ────────────────────────────────────────────────────────── */
.btn--danger {
  background: #ef4444;
  color: #fff;
  border: none;
}
.btn--danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* ── Modal sizes ──────────────────────────────────────────────────────────── */
.modal--wide { max-width: 720px; }
.modal--sm   { max-width: 380px; }

/* ── Sidebar logout ───────────────────────────────────────────────────────── */
.sidebar__logout {
  margin-top: auto;
  margin: auto 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: calc(100% - 24px);
}
.sidebar__logout:hover {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
}

/* ── Sidebar badge ────────────────────────────────────────────────────────── */
.sidebar__badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar__badge:empty { display: none; }
.sidebar__badge--amber { background: #b45309; }
.sidebar__badge--blue  { background: #1d6fa4; }

/* ── Filter pills ─────────────────────────────────────────────────────────── */
.filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--light-gray);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Tab panel ────────────────────────────────────────────────────────────── */
.tab-panel { animation: fadeIn 0.18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Header actions ───────────────────────────────────────────────────────── */
.header-actions { display: flex; gap: 10px; align-items: center; }

/* ── Job item actions ─────────────────────────────────────────────────────── */
.job-item__actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.job-item { cursor: pointer; }
.job-item:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* ── Toast ────────────────────────────────────────────────────────────────── */
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 320px;
}
.toast--show { opacity: 1; transform: translateY(0); }
.toast--success { background: #16a34a; }
.toast--error   { background: #ef4444; }
.toast--info    { background: var(--primary); }

/* ── Reports section desc ─────────────────────────────────────────────────── */
.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Detail modal ─────────────────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-section {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 20px;
}

.detail-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--medium-gray);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.detail-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.detail-table tr + tr td { border-top: 1px solid rgba(0,0,0,0.05); }
.detail-table td { padding: 8px 4px; vertical-align: top; }
.detail-label { color: var(--text-muted); width: 48%; font-weight: 500; }

.detail-sub-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 16px 0 8px;
}

.transducer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.85rem;
}
.transducer-name { flex: 1; font-weight: 500; }
.transducer-obs { font-size: 0.78rem; color: var(--text-muted); }

.bool-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.bool-badge--true  { background: rgba(22,163,74,0.1);  color: #16a34a; }
.bool-badge--false { background: rgba(239,68,68,0.1);  color: #ef4444; }

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 6px;
  font-size: 0.85rem;
  border: 1px solid var(--light-gray);
  color: var(--text-dark);
  transition: var(--transition);
}
.file-row:hover { border-color: var(--primary); color: var(--primary); }
.file-row__link { font-size: 0.75rem; color: var(--primary); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.media-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-gray);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--surface);
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb--pending { background: rgba(0,0,0,0.03); color: var(--medium-gray); }
.media-thumb { position: relative; }
.annotation-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #EF4444;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  line-height: 1;
}

.detail-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }

/* ── Tags / labels ────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.tag--blue   { background: rgba(22,108,159,0.1);  color: var(--primary); }
.tag--green  { background: rgba(22,163,74,0.1);   color: #16a34a; }
.tag--purple { background: rgba(124,58,237,0.1);  color: #7c3aed; }
.tag--amber  { background: rgba(180,83,9,0.1);    color: #b45309; }

/* ── Required asterisk ───────────────────────────────────────────────────── */
.required { color: #ef4444; }

/* ── Disabled form controls ──────────────────────────────────────────────── */
.field select:disabled,
.field input:disabled {
  background: var(--bg);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

/* ── Stats row in client profile ─────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-box {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}
.stat-box__num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}
.stat-box__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-box--open     .stat-box__num { color: #16a34a; }
.stat-box--progress .stat-box__num { color: var(--primary); }
.stat-box--done     .stat-box__num { color: #b45309; }

/* ── Profile section header ──────────────────────────────────────────────── */
.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.profile-section-header .detail-section-title { margin-bottom: 0; }

/* ── Locations list ──────────────────────────────────────────────────────── */
.location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 6px;
}
.location-name   { font-size: 0.88rem; font-weight: 500; color: var(--text-dark); }
.location-address{ font-size: 0.78rem; color: var(--text-muted); }

/* ── Timeline (client job history) ──────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: var(--radius-sm);
  padding-left: 4px;
  padding-right: 4px;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item:hover { background: rgba(22,108,159,0.04); }

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.timeline-dot--OPEN        { background: #16a34a; }
.timeline-dot--IN_PROGRESS { background: var(--primary); }
.timeline-dot--COMPLETED   { background: #b45309; }
.timeline-dot--SYNCED      { background: var(--medium-gray); }

.timeline-content { flex: 1; min-width: 0; }
.timeline-code    { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); }
.timeline-meta    { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.timeline-footer  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.timeline-date { font-size: 0.75rem; color: var(--text-muted); }

/* ── Connection status dots ──────────────────────────────────────────────── */
.device-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
.device-dot--online  { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }
.device-dot--idle    { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.device-dot--offline { background: var(--medium-gray); }

.conn-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.conn-badge--online  { background: rgba(22,163,74,0.1);   color: #16a34a; }
.conn-badge--idle    { background: rgba(245,158,11,0.1);  color: #b45309; }
.conn-badge--offline { background: rgba(107,114,128,0.1); color: var(--text-muted); }

/* ── Sidebar badge green ─────────────────────────────────────────────────── */
.sidebar__badge--green { background: #16a34a; }

/* ── Client item: pointer + hover override ───────────────────────────────── */
#clientList .job-item {
  cursor: pointer;
}
#clientList .job-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ── Template list items ─────────────────────────────────────────────────── */
#templateList .job-item {
  cursor: default;
}
#templateList .job-item:hover {
  transform: none;
  box-shadow: var(--shadow-xs);
}

/* ── Sidebar badge purple ────────────────────────────────────────────────── */
.sidebar__badge--purple { background: #7c3aed; }

/* ── Tag extra-small variant ─────────────────────────────────────────────── */
.tag--xs { font-size: 0.68rem; padding: 1px 6px; }

/* ── Checklist template cards ────────────────────────────────────────────── */
.ct-card {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  cursor: default;
}
.ct-card:hover { transform: none; box-shadow: var(--shadow-xs); }

.ct-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ct-card__header:hover { background: rgba(22,108,159,0.04); }

.ct-card__header .job-item__left  { flex: 1; }
.ct-card__header .job-item__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ct-expand-icon {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ct-card__body {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 16px 20px;
  background: var(--bg);
}

/* ── Question rows ───────────────────────────────────────────────────────── */
.ct-questions {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  gap: 12px;
}
.question-row:last-child { border-bottom: none; }

.question-row__info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.question-label {
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-required {
  color: #ef4444;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.question-row__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Add question form ───────────────────────────────────────────────────── */
.add-question-form {
  border-top: 1px dashed var(--light-gray);
  padding-top: 14px;
}

.add-question-form__fields {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.add-question-form__fields input[type="text"] {
  flex: 1;
  min-width: 140px;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-dark);
  background: var(--surface);
  outline: none;
  transition: border-color 0.18s ease;
  box-sizing: border-box;
}
.add-question-form__fields input[type="text"]:focus { border-color: var(--primary); }

.add-question-form__fields select {
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-dark);
  background: var(--surface);
  outline: none;
  cursor: pointer;
}

.aq-mandatory-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.aq-mandatory-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--primary);
}
