/* Trung tâm điều hành — việc cần làm, đổi/hoàn, khách hỏi, chốt ngày, chứng từ */
.ops-owner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.ops-owner-grid > .metric-card,
.ops-owner-grid > button.metric-card {
  width: 100%;
  text-align: left;
}
.ops-owner-grid > .metric-card.alert-active {
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.ops-chip-side {
  border-style: dashed !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
}
.ops-inbox-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  align-items: center;
}
.ops-filter-buttons {
  flex: 1 1 680px;
  min-width: 0;
  gap: 8px;
}
.ops-inbox-filters > .dash-flight-search {
  flex: 0 1 300px;
  width: min(300px, 100%);
  min-width: 220px;
  margin-left: auto;
}
@media (max-width: 760px) {
  .ops-inbox-filters > .dash-flight-search {
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
  }
}
.ops-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}
.ops-task {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.ops-task.urgency-danger { border-color: #fecaca; background: #fff7f7; }
.ops-task.urgency-warn { border-color: #fde68a; background: #fffbeb; }
.ops-task.urgency-hot { border-color: #fdba74; background: #fff7ed; }
.ops-task-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ops-task-main b { font-size: 14px; }
.ops-task-main small { color: #6b7280; font-size: 12px; }
.ops-task-kind {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
}
.ops-task-kind.tone-danger { color: #b91c1c; }
.ops-task-kind.tone-warn { color: #b45309; }
.ops-task-kind.tone-info { color: #1d4ed8; }
.ops-task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.ops-task-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ops-act {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.ops-act.done { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.ops-act.snooze { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
.ops-act.note { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.ops-act.danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.ops-act-assign {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
}
.ops-act-assign select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 11px;
}
.ops-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e5e7eb;
  color: #374151;
}
.ops-status.st-received, .ops-status.st-new { background: #dbeafe; color: #1e40af; }
.ops-status.st-sent, .ops-status.st-quoted { background: #e0e7ff; color: #3730a3; }
.ops-status.st-waiting, .ops-status.st-considering { background: #fef3c7; color: #92400e; }
.ops-status.st-unbooked { background: #f3e8ff; color: #6b21a8; }
.ops-status.st-refunded_airline, .ops-status.st-held { background: #ffedd5; color: #9a3412; }
.ops-status.st-paid_customer, .ops-status.st-issued { background: #d1fae5; color: #065f46; }
.ops-status.st-done { background: #bbf7d0; color: #14532d; }
.ops-status.st-lost { background: #fecaca; color: #7f1d1d; }
.ops-eod-list { list-style: none; margin: 0; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.ops-eod-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 10px;
  font-size: 13px;
}
.ops-eod-list b { font-size: 13px; }
.ops-eod-list span { color: #6b7280; white-space: nowrap; }
.ops-profile {
  margin: 0 18px 8px;
  padding: 12px 14px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #f8fafc;
}
.ops-profile-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 12px;
  color: #4b5563;
}
.ops-profile-kpis b { display: block; font-size: 14px; color: #111827; }
.ops-credit-warn {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}
.ops-routes, .ops-pref { margin: 8px 0 0; font-size: 12px; color: #4b5563; }
.ops-profile-edit { margin-top: 10px; font-size: 13px; }
.ops-profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.ops-profile-form label { font-size: 11px; font-weight: 700; color: #4b5563; }
.ops-profile-form input, .ops-profile-form select, .ops-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
}
.ops-profile-form .full-width, .ops-form .full-width { grid-column: 1 / -1; }
.ops-docs {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.ops-docs-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.ops-docs-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ops-docs-add input { display: none; }
.ops-docs-hint { color: #6b7280; font-weight: 600; }
.ops-docs-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  margin: 8px 0;
  border: 1.5px dashed #93c5fd;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  cursor: text;
  outline: none;
}
.ops-docs-drop:focus, .ops-docs-drop.drag-over { border-color: #2563eb; background: #dbeafe; }
.ops-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.ops-doc-card { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.ops-doc-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: zoom-in;
}
.ops-doc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ops-doc-file { display: grid; place-items: center; height: 100%; font-size: 28px; }
.ops-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #0f172acc;
  display: grid;
  place-items: center;
  padding: 24px;
}
.ops-lightbox-card {
  max-width: min(960px, 96vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ops-lightbox-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
}
.ops-lightbox-card header button {
  border: 0;
  background: #f3f4f6;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}
.ops-lightbox-card img, .ops-lightbox-card iframe {
  max-width: 96vw;
  max-height: 80vh;
  display: block;
}
.ops-docs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ops-docs-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.ops-doc-kind {
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 700;
}
.ops-refund-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.ops-refund-steps span {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
}
.ops-refund-steps span.on { background: #dbeafe; color: #1e40af; font-weight: 700; }
.walkin-ck-field {
  border: 1px solid #fdba74;
  background: #fff7ed;
  border-radius: 10px;
  padding: 10px 12px;
}
.walkin-ck-field select {
  margin-top: 6px;
  font-weight: 700;
}
.walkin-ck-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.walkin-ck-tag.yes { background: #dcfce7; color: #166534; }
.walkin-ck-tag.no { background: #ffedd5; color: #9a3412; }
.ops-row-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ops-row-acts .danger { color: #b91c1c; border-color: #fecaca; }
.ops-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}
.lead-booking-box,
.ops-booking-box {
  margin: 0 0 12px;
}
.lead-booking-box textarea,
.ops-booking-box textarea {
  width: 100%;
  min-height: 96px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}
.ops-form-wide { width: min(760px, 96vw) !important; }
.ops-modal { z-index: 80; }
.ops-modal .ops-modal-card {
  display: flex !important;
  flex-direction: column;
  max-height: min(92vh, 920px);
  overflow: hidden;
}
.ops-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 22px 8px;
  min-height: 0;
}
.ops-modal-foot {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  box-shadow: 0 -8px 18px #19233b12;
}
.ops-modal-foot .modal-actions-spacer { flex: 1 1 auto; }
.ops-modal .ops-form,
.ops-modal .ops-form input,
.ops-modal .ops-form select,
.ops-modal .ops-form textarea,
.ops-modal .ops-form button {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.ops-hist { margin: 10px 0; font-size: 12px; }
.ops-hist ul { margin: 6px 0 0; padding-left: 18px; color: #4b5563; }
.ops-audit-table .ops-diff { font-size: 11px; color: #4b5563; }
.ops-audit-table .ops-diff span { margin: 0 6px; color: #9ca3af; }
.ops-audit-table tr.ops-del { background: #fff7f7; }
.ops-hold-settings {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}
.dash-empty.compact { padding: 8px 0; }
@media (max-width: 1100px) {
  .ops-owner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ops-owner-grid, .ops-profile-form { grid-template-columns: 1fr; }
  .ops-task { flex-direction: column; }
  .ops-task-side { align-items: stretch; }
  .app-sidebar nav button { padding: 8px 10px; }
}
