/* بخش اینکوئری — لیست، جزئیات، نقشه */
.inq-detail { display: flex; flex-direction: column; gap: 1rem; }
.inq-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; border-bottom: 1px solid var(--border-color, #e5e7eb); padding-bottom: 8px; }
.inq-tab { padding: 6px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; font-size: 13px; }
.inq-tab.active { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; font-weight: 600; }
.inq-panel { display: none; }
.inq-panel.active { display: block; }
.inq-block { margin-bottom: 1rem; }
.inq-block h3 { font-size: 15px; margin: 0 0 8px; color: #334155; }
.inq-status-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #f1f5f9; }
.inq-status-badge.approved { background: #dcfce7; color: #166534; }
.inq-status-badge.pending { background: #fef9c3; color: #854d0e; }
.inq-status-badge.rejected { background: #fee2e2; color: #991b1b; }
.inq-approval-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.inq-timeline { list-style: none; padding: 0; margin: 0; }
.inq-timeline li { padding: 8px 0; border-bottom: 1px dashed #e2e8f0; font-size: 13px; }
.inq-timeline .inq-tl-at { color: #64748b; font-size: 12px; }
.inq-comment { padding: 8px; background: #f8fafc; border-radius: 8px; margin-bottom: 8px; }
.inq-comment-meta { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.inq-stakeholder-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.inq-stakeholder-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }
.inq-agent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.inq-agent-row .inq-stakeholder-actions { margin-right: auto; }
.inq-acl-summary { font-size: 12px; color: #475569; line-height: 1.6; margin-top: 4px; }
.inq-acl-tag { display: inline-block; padding: 1px 6px; margin: 2px 2px 0 0; border-radius: 4px; background: #f1f5f9; font-size: 11px; }
.inq-acl-tag.on { background: #dbeafe; color: #1e40af; }
.inq-vin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.inq-acl-grid { display: grid; grid-template-columns: 140px repeat(4, 1fr); gap: 4px; font-size: 12px; align-items: center; }
.inq-acl-grid label { display: flex; align-items: center; gap: 4px; }
.inq-map-wrap .ops-route-map { min-height: 280px; border-radius: 8px; border: 1px solid #e2e8f0; }
.inq-route-passed { display: inline-flex; align-items: center; justify-content: center; }
.inq-route-passed input { width: 18px; height: 18px; cursor: pointer; }
.inq-route-passed-done { color: #16a34a; font-size: 11px; white-space: nowrap; }
.ops-route-marker-passed-wrap { background: transparent; border: none; }
.ops-route-marker-passed {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #16a34a;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #16a34a;
}
.inq-route-eta { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.inq-route-eta input[data-rp-eta-date] { width: 7.5rem; font-size: 12px; direction: ltr; }
.inq-route-eta input[data-rp-eta-time] { width: 5.5rem; font-size: 12px; direction: ltr; }
.inq-route-eta-readonly { font-size: 12px; white-space: nowrap; }
.inq-col-map-bilingual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 4px;
}
.inq-col-map-bilingual .form-group { margin: 0; }
.inq-col-map-bilingual .form-group label { font-size: 12px; }
.inq-col-lang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.inq-col-lang-bar > span {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}
.inq-col-map[data-col-lang="fa"] .inq-col-lang-en,
.inq-col-map[data-col-lang="en"] .inq-col-lang-fa {
  display: none !important;
}
.sc-col-lang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.sc-col-lang-bar > span {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}
#specialCargoEditor[data-col-lang="fa"] .sc-col-lang-en,
#specialCargoEditor[data-col-lang="en"] .sc-col-lang-fa {
  display: none !important;
}
.inq-auto-import .inq-auto-col-toolbar,
.inq-auto-import .inq-auto-checklist-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.inq-auto-import .inq-auto-checklist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 6px;
}
.inq-auto-import .inq-auto-checklist-head h4 { margin: 0; }
.inq-auto-import .inq-auto-checklist-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}
.inq-auto-import .auto-pay-table-wrap.inq-auto-checklist-table-wrap {
  max-height: min(48vh, 460px);
  margin-top: 0;
}
.inq-auto-import .auto-inq-row-check,
.inq-auto-import #autoInqCheckAll {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.inq-auto-import .data-table th.col-check,
.inq-auto-import .data-table td.col-check {
  width: 36px;
  text-align: center;
}
.inq-auto-import .payment-auto-import-result:not([hidden]) {
  display: block;
}
.inq-row-ceo-pending { background: #fffbeb !important; }
.inq-row-ceo-flagged { background: #fefce8 !important; }
.inq-ceo-badge { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #fde68a; color: #92400e; }
.inq-ceo-badge.urgent { background: #fbbf24; color: #78350f; animation: inq-ceo-pulse 2s ease-in-out infinite; }
.inq-ceo-check-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; margin: 10px 0; }
.inq-ceo-check-row input { margin-top: 4px; }
.inq-ceo-meta { font-size: 12px; color: #64748b; margin-top: 4px; }
@keyframes inq-ceo-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }
