/* ============ Tab 3: 飞行报备 ============ */
#tab-plans { flex-direction:column; background:#0f172a; overflow:hidden; }
.plan-subnav {
  display:flex; flex:0 0 auto; padding:0 20px; background:#1a2332;
  border-bottom:1px solid #273244;
}
.plan-subtab {
  min-height:50px; padding:0 24px; border:0; border-bottom:2px solid transparent;
  background:transparent; color:#94a3b8; cursor:pointer;
  font-size:calc(14px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); font-weight:600;
}
.plan-subtab:hover { color:#e5e7eb; }
.plan-subtab.active { color:#f8fafc; border-bottom-color:#dc2626; }
.plan-view { display:none; flex:1; min-height:0; overflow:auto; padding:18px 20px; }
.plan-view.active { display:block; }
.plan-view-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:14px;
}
.plan-view-head h2 {
  color:#f8fafc; font-size:calc(18px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); font-weight:650;
}
.plan-view-head p {
  margin-top:5px; color:#7f8da3;
  font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-head-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.plan-import-card { width:min(920px,96vw); max-height:90vh; overflow:auto; }
.plan-import-body { padding:4px 0 2px; }
.plan-import-file {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin:14px 0; padding:18px; border:1px dashed #475569; border-radius:10px;
  background:#0b1220;
}
.plan-import-file strong { display:block; color:#e2e8f0; margin-bottom:5px; }
.plan-import-file span { display:block; color:#94a3b8; font-size:12px; word-break:break-all; }
.plan-import-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:14px; }
.plan-import-result { display:none; margin-top:18px; padding-top:16px; border-top:1px solid #334155; }
.plan-import-result.active { display:block; }
.plan-import-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.plan-import-stat { padding:12px 14px; border:1px solid #334155; border-radius:8px; background:#111827; color:#94a3b8; }
.plan-import-stat b { display:block; margin-top:4px; color:#f8fafc; font-size:24px; }
.plan-import-stat.success b { color:#34d399; }
.plan-import-stat.failed b { color:#f87171; }
.plan-import-failures { max-height:260px; overflow:auto; border:1px solid #334155; border-radius:8px; }
.plan-import-failures table { margin:0; }
.plan-import-result-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.plan-toolbar {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px;
}
.plan-toolbar input,.plan-toolbar select {
  min-width:170px; height:36px; padding:0 10px; border:1px solid #374151;
  border-radius:6px; background:#111827; color:#e5e7eb;
  font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-table-wrap { overflow:auto; border:1px solid #273449; border-radius:6px; background:#111827; }
.plan-table-wrap .data-table { min-width:1180px; border:0; border-radius:0; }
.plan-table-wrap .data-table td { vertical-align:top; line-height:1.45; white-space:normal; }
.plan-person-cell strong,.plan-sn-cell strong { display:block; color:#e5e7eb; }
.plan-person-cell span,.plan-sn-cell span,.plan-muted {
  display:block; margin-top:3px; color:#718096;
  font-size:calc(11px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-source-badge,.plan-decision-badge {
  display:inline-flex; align-items:center; min-height:24px; padding:2px 7px;
  border:1px solid #3b4a61; border-radius:5px; color:#cbd5e1; background:#172033;
  font-size:calc(11px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-source-badge.mini { border-color:#0e7490; color:#67e8f9; }
.plan-source-badge.platform { border-color:#047857; color:#6ee7b7; }
.plan-source-badge.external { border-color:#92400e; color:#fbbf24; }
.plan-source-badge.activity { border-color:#7c3aed; color:#c4b5fd; background:#251442; }
.plan-row-actions { display:flex; flex-wrap:wrap; gap:6px; min-width:138px; }
.plan-status-summary { color:#94a3b8; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.plan-status-summary b { color:#f8fafc; }

.flight-activity-layout {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(560px,46vw); gap:18px; align-items:start;
}
.flight-activity-list { min-width:0; }
.flight-activity-editor {
  padding:20px; border:1px solid #2b384c; border-radius:9px; background:#111827;
}
.flight-activity-editor h3 { margin:0 0 16px; color:#f8fafc; font-size:18px; }
.flight-activity-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.flight-activity-form-grid .full { grid-column:1/-1; }
.flight-activity-editor .form-group { margin:0; }
.flight-activity-editor label {
  display:block; margin-bottom:5px; color:#94a3b8; font-size:12px; font-weight:600;
}
.flight-activity-editor input,.flight-activity-editor select {
  width:100%; min-height:36px; padding:7px 9px; border:1px solid #374151;
  border-radius:6px; background:#1e293b; color:#e5e7eb; outline:none;
}
.flight-activity-map-shell { position:relative; height:430px; border:1px solid #374151; border-radius:8px; overflow:hidden; }
#flight-activity-map { width:100%; height:100%; background:#1a1f2e; }
.flight-activity-map-tools {
  position:absolute; z-index:5; top:10px; left:10px; display:flex; gap:6px; flex-wrap:wrap;
}
.flight-activity-geometry-summary {
  position:absolute; z-index:5; left:10px; bottom:10px; max-width:calc(100% - 20px);
  padding:5px 9px; border:1px solid rgba(139,92,246,.42); border-radius:5px;
  background:rgba(17,24,39,.88); color:#ddd6fe; font-size:11px; pointer-events:none;
}
.flight-activity-stats { display:flex; flex-wrap:wrap; gap:5px; margin-top:5px; }
.flight-activity-stat { padding:2px 6px; border-radius:4px; background:#1e293b; color:#94a3b8; font-size:11px; }

.plan-rules-layout {
  display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:16px; align-items:start;
}
.plan-rule-list { overflow:auto; border:1px solid #273449; border-radius:6px; }
.plan-rule-list .data-table { min-width:760px; border:0; border-radius:0; }
.plan-rule-editor {
  padding:16px; border:1px solid #2b384c; border-radius:6px; background:#111827;
}
.plan-rule-editor h3 {
  margin-bottom:14px; color:#e5e7eb;
  font-size:calc(15px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-rule-editor .form-group { margin-bottom:11px; }
.plan-rule-two { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.plan-rule-enabled {
  display:flex; align-items:center; gap:8px; min-height:36px; color:#cbd5e1;
  font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-rule-enabled input { width:16px; height:16px; accent-color:#dc2626; }

#plan-view-create { padding:0; overflow:hidden; }
#plan-view-create.active { display:flex; }
.plan-create-layout { display:flex; width:100%; height:100%; min-height:0; }
#tab-plans #plan-map { flex:1; min-width:0; height:100%; background:#1a1f2e; }
#tab-plans #plan-panel {
  width:440px; height:100%; flex:0 0 440px; overflow-y:auto;
  border-left:1px solid #273244; background:#111827; color:#e5e7eb;
}
.plan-panel-header {
  position:sticky; top:0; z-index:3; padding:15px 18px; background:#1a2332;
  border-bottom:2px solid #dc2626;
}
.plan-panel-header h2 {
  color:#f3f4f6; font-size:calc(17px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); font-weight:650;
}
.plan-form-area { padding:16px 18px 24px; }
.plan-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.plan-form-grid .full { grid-column:1/-1; }
.plan-form-area .form-group { min-width:0; }
.plan-form-area .form-group label {
  display:block; margin-bottom:5px; color:#9ca3af; font-weight:600;
  font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-form-area .form-group input,
.plan-form-area .form-group select,
.plan-form-area .form-group textarea {
  width:100%; min-height:36px; padding:8px 10px; border:1px solid #374151;
  border-radius:6px; background:#1e293b; color:#e5e7eb; outline:none;
  font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-form-area .form-group textarea { min-height:64px; resize:vertical; }
.plan-form-area .form-group input:focus,
.plan-form-area .form-group select:focus,
.plan-form-area .form-group textarea:focus { border-color:#dc2626; }
.plan-form-area input[type="datetime-local"] { color-scheme:dark; cursor:pointer; }
.plan-inline-input { display:flex; align-items:stretch; gap:7px; }
.plan-inline-input input { min-width:0; flex:1; }
.plan-inline-input .btn { flex:0 0 auto; padding:7px 10px; }
.plan-region-mode {
  display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-bottom:9px;
}
.plan-region-mode button {
  min-height:36px; border:1px solid #3a475b; border-radius:5px;
  background:#172033; color:#a8b3c3; cursor:pointer; font-weight:600;
}
.plan-region-mode button.active { border-color:#dc2626; background:#7f1d1d; color:#fff; }
.plan-zone-picker {
  display:none; max-height:150px; overflow:auto; padding:8px 10px;
  border:1px solid #374151; border-radius:6px; background:#0b1220;
}
.plan-zone-picker.active { display:block; }
.plan-zone-option {
  display:flex; align-items:flex-start; gap:8px; padding:7px 3px; color:#d1d5db;
  font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-zone-option input { width:15px !important; min-height:15px !important; margin-top:1px; accent-color:#dc2626; }
.plan-region-state {
  min-height:36px; padding:8px 10px; border:1px solid #334155; border-radius:6px;
  background:#0b1220; color:#93c5fd; line-height:1.45;
  font-size:calc(11px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-map-mode {
  position:absolute; z-index:5; top:64px; left:16px; max-width:360px;
  padding:8px 11px; border:1px solid #475569; border-radius:5px;
  background:rgba(15,23,42,.92); color:#dbeafe; pointer-events:none;
  font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-map-shell { position:relative; flex:1; min-width:0; height:100%; }
.plan-map-radius-label {
  padding:4px 7px; border:1px solid #dc2626; border-radius:4px;
  background:#111827; color:#fecaca; white-space:nowrap;
}

.plan-review-card { width:min(980px,96vw); }
.plan-review-grid {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px;
}
.plan-review-field {
  min-width:0; padding:10px 11px; border:1px solid #273449; border-radius:6px; background:#0b1220;
}
.plan-review-field.wide { grid-column:span 2; }
.plan-review-field.full { grid-column:1/-1; }
.plan-review-field span {
  display:block; margin-bottom:5px; color:#718096;
  font-size:calc(11px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-review-field strong {
  display:block; color:#e5e7eb; line-height:1.5; overflow-wrap:anywhere;
  font-size:calc(13px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px));
}
.plan-review-decision {
  margin-top:14px; padding-top:14px; border-top:1px solid #273449;
}
.plan-review-decision-grid { display:grid; grid-template-columns:260px 1fr; gap:10px; }
.plan-review-decision select,.plan-review-decision textarea {
  width:100%; padding:9px 10px; border:1px solid #374151; border-radius:6px;
  background:#0b1220; color:#e5e7eb; outline:none;
}
.plan-review-decision textarea { min-height:72px; resize:vertical; }
.plan-review-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:12px; }

@media(max-width:1100px) {
  .plan-rules-layout { grid-template-columns:1fr; }
  .plan-rule-editor { max-width:none; }
  .flight-activity-layout { grid-template-columns:1fr; }
  #tab-plans #plan-panel { width:390px; flex-basis:390px; }
}
@media(max-width:820px) {
  .plan-subnav { padding:0 6px; overflow-x:auto; }
  .plan-subtab { padding:0 14px; white-space:nowrap; }
  .plan-view { padding:14px 12px; }
  #plan-view-create { overflow:auto; }
  #plan-view-create.active { display:block; }
  .plan-create-layout { display:block; height:auto; }
  .plan-map-shell { height:42vh; min-height:320px; }
  #tab-plans #plan-panel { width:100%; height:auto; border-left:0; border-top:1px solid #273244; }
  .plan-review-grid { grid-template-columns:1fr; }
  .plan-review-field.wide,.plan-review-field.full { grid-column:auto; }
  .plan-review-decision-grid { grid-template-columns:1fr; }
}
@media(max-width:560px) {
  .plan-form-grid,.plan-rule-two { grid-template-columns:1fr; }
  .plan-form-grid .full { grid-column:auto; }
  .plan-view-head { display:block; }
  .plan-head-actions { justify-content:flex-start; margin-top:12px; }
  .plan-import-file { align-items:flex-start; flex-direction:column; }
  .plan-import-summary { grid-template-columns:1fr; }
}


/* Toast 提示 */
.toast {
  position: fixed; top: 20px; right: 20px; z-index: 32000;
  padding: 12px 20px; border-radius: 8px; font-size:calc(13px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); font-weight: 600;
  animation: slideIn 0.3s ease; max-width: 400px;
}
.toast-success { background: #064e3b; color: #34d399; border: 1px solid #065f46; }
.toast-error { background: #7f1d1d; color: #fca5a5; border: 1px solid #991b1b; }
.toast-info { background: #1e3a5f; color: #93c5fd; border: 1px solid #1e40af; }
@keyframes slideIn { from { transform: translateX(100%); opacity:0; } to { transform: translateX(0); opacity:1; } }

.management-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 12px; }
.management-toolbar input,.management-toolbar select { min-width:150px; padding:8px 10px; border:1px solid #374151; border-radius:6px; background:#111827; color:#e5e7eb; }
.mini-ops-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.mini-ops-head p{color:#94a3b8;margin:6px 0 0}
.mini-ops-metrics{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.mini-ops-metric{padding:16px;border:1px solid #26354b;border-radius:10px;background:linear-gradient(145deg,#111c2e,#0d1625)}
.mini-ops-metric span{display:block;color:#94a3b8;font-size:13px;margin-bottom:8px}
.mini-ops-metric strong{font-size:26px;line-height:1;color:#f8fafc}
.mini-ops-metric small{display:block;color:#64748b;margin-top:7px}
.mini-ops-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr);gap:14px;margin-bottom:16px}
.mini-ops-card{border:1px solid #26354b;border-radius:10px;background:#0d1625;padding:16px;min-width:0}
.mini-ops-card h3{margin:0 0 12px;font-size:15px;color:#e2e8f0}
.mini-ops-trend{height:210px;display:flex;align-items:center;justify-content:center}
.mini-ops-trend svg{width:100%;height:100%;overflow:visible}
.mini-ops-trend-empty{color:#64748b}
.mini-ops-table-card{margin-bottom:16px}
.mini-ops-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:12px;white-space:nowrap;background:#1e293b;color:#cbd5e1}
.mini-ops-status.matched,.mini-ops-status.backfilled,.mini-ops-status.manual_matched{background:rgba(16,185,129,.15);color:#6ee7b7}
.mini-ops-status.conflict{background:rgba(245,158,11,.16);color:#fbbf24}
.mini-ops-status.unauthorized{background:rgba(100,116,139,.22);color:#cbd5e1}
.mini-ops-status.unmatched{background:rgba(239,68,68,.13);color:#fca5a5}
.mini-ops-link-results{max-height:310px;overflow:auto;display:grid;gap:8px;margin:12px 0}
.mini-ops-link-option{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #334155;border-radius:8px;padding:10px;background:#111827}
.mini-ops-link-option:hover{border-color:#38bdf8}
.mini-ops-link-card{width:min(660px,calc(100vw - 32px))}
.mini-ops-link-card textarea{width:100%;min-height:80px;box-sizing:border-box;background:#111827;color:#e5e7eb;border:1px solid #374151;border-radius:7px;padding:10px}
@media(max-width:1100px){.mini-ops-metrics{grid-template-columns:repeat(2,minmax(150px,1fr))}.mini-ops-grid{grid-template-columns:1fr}}
@media(max-width:650px){.mini-ops-metrics{grid-template-columns:1fr}.mini-ops-head{display:block}.mini-ops-head .btn{margin-top:10px}}
.pager { display:flex; justify-content:flex-end; align-items:center; gap:9px; padding:12px 0; color:#9ca3af; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.pager button:disabled { opacity:.35; cursor:not-allowed; }
.clickable-row { cursor:pointer; }.clickable-row:hover { background:#172033; }
.detail-modal { display:none; position:fixed; inset:0; z-index:10000; background:rgba(0,0,0,.72); align-items:center; justify-content:center; padding:24px; }
.detail-modal.open { display:flex; }
.drone-detail-save-state { min-height:20px; align-self:center; color:#94a3b8; font-size:12px; line-height:1.5; }
.drone-detail-save-state.is-saving { color:#93c5fd; }
.drone-detail-save-state.is-success { color:#34d399; }
.drone-detail-save-state.is-error { color:#fca5a5; }
.detail-card { width:min(880px,96vw); max-height:90vh; overflow:auto; background:#111827; border:1px solid #374151; border-radius:12px; padding:20px; box-shadow:0 24px 70px rgba(0,0,0,.45); }
.detail-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.detail-head h3 { font-size:calc(18px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }.detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.detail-grid label { color:#9ca3af; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }.detail-grid input,.detail-grid textarea { width:100%; margin-top:5px; padding:8px; border:1px solid #374151; border-radius:6px; background:#0b1220; color:#e5e7eb; }
.detail-grid textarea { min-height:82px; resize:vertical; }.detail-grid .full { grid-column:1/-1; }
.detail-grid input[readonly] { color:#7f8da3; background:#0f172a; }
.detail-section { margin-top:18px; }.detail-section h4 { margin-bottom:9px; color:#d1d5db; }
.detail-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.detail-section-head h4 { margin:0; }
.identity-recheck-button { min-width:112px; }
.drone-detail-card { width:min(1440px,calc(100vw - 32px)); max-width:calc(100vw - 32px); max-height:94vh; }
.drone-detail-sn-line { display:flex; gap:10px; align-items:center; padding:10px 12px; margin-bottom:12px; border:1px solid #263449; border-radius:8px; background:#0b1220; color:#94a3b8; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.drone-detail-sn-line strong { color:#dbeafe; font-family:Consolas,monospace; font-size:calc(13px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); word-break:break-all; }
.drone-detail-risk-overview { margin-top:0; }
.drone-detail-risk-table-wrap { overflow:auto; max-height:360px; border:1px solid #273449; }
#drone-detail-risk-table { min-width:1240px; table-layout:fixed; border:0; border-radius:0; }
#drone-detail-risk-table th:nth-child(1) { width:13%; }
#drone-detail-risk-table th:nth-child(2) { width:19%; }
#drone-detail-risk-table th:nth-child(3) { width:14%; }
#drone-detail-risk-table th:nth-child(4) { width:8%; }
#drone-detail-risk-table th:nth-child(5) { width:17%; }
#drone-detail-risk-table th:nth-child(6) { width:21%; }
#drone-detail-risk-table th:nth-child(7) { width:8%; }
.drone-detail-risk-rule { white-space:normal !important; color:#cbd5e1; line-height:1.5; }
.drone-detail-risk-score { display:grid; gap:3px; color:#fbbf24; }
.drone-detail-risk-score strong { font-size:calc(15px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.drone-detail-risk-score small { color:#64748b; white-space:normal; font-size:calc(10px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.drone-history-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.drone-history-stat { padding:12px; border:1px solid #263449; border-radius:8px; background:#0b1220; }
.drone-history-stat span { display:block; color:#94a3b8; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); margin-bottom:5px; }
.drone-history-stat b { color:#e5f2ff; font-size:calc(18px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.drone-history-table-wrap { overflow:auto; max-height:320px; }
#drone-history-table { min-width:760px; }
#drone-history-table td { white-space:nowrap; }
#drone-table-container { overflow:auto; }
#drone-table { min-width:1480px; table-layout:fixed; }
#drone-table th:nth-child(1) { width:15%; }
#drone-table th:nth-child(2) { width:8%; }
#drone-table th:nth-child(3) { width:9%; }
#drone-table th:nth-child(4) { width:13%; }
#drone-table th:nth-child(5) { width:8%; }
#drone-table th:nth-child(6) { width:10%; }
#drone-table th:nth-child(7) { width:7%; }
#drone-table th:nth-child(8) { width:7%; }
#drone-table th:nth-child(9) { width:10%; }
#drone-table th:nth-child(10) { width:13%; }
#drone-table td:nth-child(1) { overflow-wrap:anywhere; }
#drone-table td:nth-child(2), #drone-table td:nth-child(4) { white-space:normal; line-height:1.45; }
#drone-table td:nth-child(3), #drone-table td:nth-child(5),
#drone-table td:nth-child(6), #drone-table td:nth-child(7),
#drone-table td:nth-child(8), #drone-table td:nth-child(9),
#drone-table td:nth-child(10) { white-space:nowrap; }
.approval-count-badge { display:inline-flex; min-width:18px; height:18px; padding:0 5px; align-items:center; justify-content:center; border-radius:9px; background:#dc2626; color:#fff; font-size:10px; font-weight:800; vertical-align:1px; }
.nav-item .approval-count-badge { margin-left:auto; box-shadow:0 0 0 2px #111827; }
.approval-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:14px; }
.approval-header .section-title { margin-bottom:4px; }
.approval-header p { margin:0; color:#8494aa; font-size:12px; }
.approval-status-tabs { display:flex; gap:8px; margin-bottom:14px; border-bottom:1px solid #293548; }
.approval-status-tabs button { border:0; border-bottom:2px solid transparent; background:transparent; color:#94a3b8; padding:10px 14px; cursor:pointer; font-weight:700; }
.approval-status-tabs button.active { color:#60a5fa; border-bottom-color:#3b82f6; }
.approval-status-tabs span { display:inline-flex; min-width:20px; justify-content:center; margin-left:4px; padding:1px 6px; border-radius:10px; background:#243148; color:#cbd5e1; font-size:10px; }
.approval-table-wrap { overflow:auto; }
#drone-approval-table { min-width:1120px; table-layout:fixed; }
#drone-approval-table th:nth-child(1){width:13%} #drone-approval-table th:nth-child(2){width:13%} #drone-approval-table th:nth-child(3){width:18%} #drone-approval-table th:nth-child(4){width:15%} #drone-approval-table th:nth-child(5){width:15%} #drone-approval-table th:nth-child(6){width:10%} #drone-approval-table th:nth-child(7){width:16%}
.approval-actions { display:flex; gap:7px; flex-wrap:wrap; }
.approval-review-info { display:grid; gap:3px; color:#94a3b8; font-size:11px; line-height:1.45; }
.approval-review-info strong { color:#cbd5e1; font-weight:600; }
.approval-reject-card { width:min(520px,calc(100vw - 36px)); }
.approval-reject-card textarea { width:100%; min-height:110px; resize:vertical; box-sizing:border-box; padding:10px 12px; border:1px solid #3b4a61; border-radius:7px; background:#0f172a; color:#e2e8f0; }
.approval-reject-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; }
.approval-type-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:-4px 0 14px}.approval-type-tabs button{border:1px solid #334155;border-radius:16px;background:#111827;color:#94a3b8;padding:6px 11px;cursor:pointer}.approval-type-tabs button.active{border-color:#2563eb;background:rgba(37,99,235,.18);color:#93c5fd}.approval-type-tabs span{margin-left:4px}.review-type-badge{display:inline-flex;padding:3px 7px;border-radius:10px;background:#25324a;color:#bfdbfe;font-size:10px;font-weight:700}.review-conflict-summary{white-space:normal;line-height:1.45;color:#fbbf24}
.registration-review-detail-card{width:min(980px,calc(100vw - 32px));max-height:90vh;overflow:auto}.registration-review-detail-card .detail-head{position:sticky;top:0;z-index:4;background:#111827;padding-bottom:12px}.review-detail-section{margin-top:14px;padding:15px;border:1px solid #2b394e;border-radius:9px;background:#0b1220}.review-detail-section h4{margin:0 0 11px;color:#dbeafe}.review-detail-alert{border-color:#92400e;background:rgba(120,53,15,.15)}.review-exception-item{display:flex;gap:9px;align-items:flex-start;margin:7px 0;color:#fdba74;line-height:1.5}.review-exception-item::before{content:'!';display:inline-grid;place-items:center;flex:0 0 20px;height:20px;border-radius:50%;background:#c2410c;color:white;font-weight:900;font-size:11px}.review-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.review-detail-field,.review-reference-card{padding:10px;border:1px solid #263449;border-radius:7px;background:#111827}.review-detail-field span,.review-reference-card span{display:block;color:#7f91a8;font-size:10px;margin-bottom:5px}.review-detail-field strong,.review-reference-card strong{color:#e2e8f0;overflow-wrap:anywhere}.review-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.review-reference-card p{margin:4px 0;color:#cbd5e1;font-size:11px;line-height:1.45}.review-reference-card.ok{border-color:#166534}.review-reference-card.warn{border-color:#9a3412}.review-detail-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:13px}.review-result-box{padding:10px;border-radius:7px;background:#111827;color:#cbd5e1;line-height:1.6}@media(max-width:850px){.review-detail-grid,.review-reference-grid{grid-template-columns:1fr}}
.generated-name-tag{display:inline-flex;margin:4px 0 0;padding:2px 7px;border-radius:10px;background:#9a3412;color:#ffedd5;font-size:10px;font-weight:700}.review-name-input{box-sizing:border-box;width:100%;margin-top:7px;padding:8px 9px;border:1px solid #475569;border-radius:6px;background:#0b1220;color:#f8fafc}.review-name-input:focus{border-color:#3b82f6;outline:none}
.database-name-lock{display:inline-flex;margin-top:5px;padding:2px 7px;border-radius:10px;background:#166534;color:#dcfce7;font-size:10px;font-style:normal;font-weight:700}
.approval-link-card{width:min(680px,calc(100vw - 36px))}.approval-link-card textarea{width:100%;min-height:72px;box-sizing:border-box;padding:9px;border:1px solid #3b4a61;border-radius:7px;background:#0f172a;color:#e2e8f0}.registration-review-link-results{max-height:320px;overflow:auto;margin:10px 0}.registration-review-link-results .data-table{min-width:600px}#drone-approval-table{min-width:1380px}#drone-approval-table th:nth-child(1){width:9%}#drone-approval-table th:nth-child(2){width:12%}#drone-approval-table th:nth-child(3){width:10%}#drone-approval-table th:nth-child(4){width:14%}#drone-approval-table th:nth-child(5){width:22%}#drone-approval-table th:nth-child(6){width:12%}#drone-approval-table th:nth-child(7){width:8%}#drone-approval-table th:nth-child(8){width:13%}


.drone-list-actions { display:flex; align-items:center; min-height:34px; }
.drone-list-actions .btn { justify-content:center; min-width:104px; }
@media(max-width:900px){.drone-history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.drone-history-summary{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}.detail-grid .full{grid-column:auto}}
.pilot-drone-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.pilot-drone-actions .btn { white-space:nowrap; }
.pilot-drone-relation-tabs { margin:10px 0 12px; }
.pilot-relation-proof-list { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.pilot-relation-proof-thumb { width:56px; height:42px; object-fit:cover; border:1px solid #334155; border-radius:6px; background:#0f172a; }
.pilot-relation-proof-more { color:#94a3b8; font-size:11px; }
.pilot-relation-status-note { display:block; margin-top:4px; color:#94a3b8; font-size:11px; line-height:1.4; white-space:normal; }
.review-credential-gallery { display:flex; gap:8px; flex-wrap:wrap; margin-top:7px; }
.review-credential-gallery img { width:92px; height:68px; object-fit:cover; border:1px solid #334155; border-radius:6px; background:#0f172a; }
.registration-pilot-picker { grid-column:1/-1; padding:12px; border:1px solid #263449; border-radius:8px; background:#0b1220; }
.registration-pilot-picker > label { display:block; margin-bottom:8px; color:#d1d5db; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); font-weight:600; }
.registration-pilot-selected { padding:8px 10px; border:1px solid #334155; border-radius:6px; color:#94a3b8; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.registration-pilot-selected.bound { border-color:#047857; background:rgba(6,78,59,.24); color:#6ee7b7; }
.registration-pilot-results { margin-top:9px; max-height:260px; overflow:auto; }
.registration-pilot-results .data-table { min-width:620px; }

