.assistant-view {
  height: calc(100vh - 60px);
  min-height: 680px;
  display: flex;
  flex-direction: column;
}
.assistant-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.assistant-top h1 {
  font-size: 30px;
  letter-spacing: -0.035em;
  margin: 6px 0;
}
.assistant-top > div > p:last-child {
  color: #667085;
  margin: 0;
}
.assistant-grid {
  display: grid;
  grid-template-columns: 270px minmax(480px, 1fr) 285px;
  min-height: 0;
  flex: 1;
  border: 1px solid #e5e9f0;
  border-radius: 17px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 12px #14213d0b;
}
.conversation-rail,
.context-panel {
  background: #f9fafc;
  min-height: 0;
}
.conversation-rail {
  border-right: 1px solid #e5e9f0;
}
.context-panel {
  border-left: 1px solid #e5e9f0;
}
.rail-head,
.context-head {
  height: 65px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e9f0;
}
.rail-head button {
  border: 0;
  background: #eaf1ff;
  color: #155eef;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  cursor: pointer;
}
.search.compact {
  margin: 12px;
}
.assistant-cases {
  overflow: auto;
  max-height: calc(100% - 118px);
}
.assistant-case {
  padding: 13px 15px;
  border-top: 1px solid #eaedf2;
  cursor: pointer;
}
.assistant-case:hover,
.assistant-case.active {
  background: #edf3ff;
}
.assistant-case strong,
.assistant-case span {
  display: block;
}
.assistant-case strong {
  font-size: 12px;
  margin-bottom: 4px;
}
.assistant-case span {
  font-size: 10px;
  color: #667085;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-head {
  height: 65px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 17px;
  border-bottom: 1px solid #e5e9f0;
}
.assistant-avatar {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: #eaf1ff;
  color: #155eef;
  display: grid;
  place-items: center;
}
.chat-head strong,
.chat-head span {
  display: block;
}
.chat-head > div:nth-child(2) span {
  font-size: 10px;
  color: #667085;
  margin-top: 3px;
}
.review-badge {
  margin-left: auto !important;
  background: #ecfdf3;
  color: #067647;
  padding: 5px 8px;
  border-radius: 10px;
  font-size: 9px !important;
  font-weight: 800;
}
.conversation-select {
  margin-left: auto;
  max-width: 210px;
  height: 34px;
  padding: 0 32px 0 10px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font-size: 10px;
}
.review-badge + .conversation-select { margin-left: 8px; }
.voice-control,
.microphone-button {
  border: 1px solid #dfe5ee;
  background: #fff;
  color: #475467;
  border-radius: 9px;
  cursor: pointer;
  min-height: 34px;
}
.voice-control { padding: 0 9px; font-size: 10px; white-space: nowrap; }
.voice-control[aria-pressed="true"],
.microphone-button[aria-pressed="true"] { border-color: #155eef; background: #eaf1ff; color: #155eef; }
.microphone-button { width: 40px; flex: 0 0 40px; font-size: 13px; }
.microphone-button.recording { color: #d92d20; border-color: #fda29b; background: #fff1f0; animation: microphone-pulse 1.1s infinite; }
@keyframes microphone-pulse { 50% { box-shadow: 0 0 0 5px #fda29b33; } }
.chat-messages {
  flex: 1;
  overflow: auto;
  padding: 22px;
  background: linear-gradient(#fff, #fbfcff);
}
.chat-welcome {
  text-align: center;
  max-width: 650px;
  margin: 5vh auto;
}
.assistant-orb {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #eaf1ff;
  color: #155eef;
  display: grid;
  place-items: center;
  margin: auto;
  font-size: 24px;
}
.chat-welcome h2 {
  margin: 18px 0 7px;
}
.chat-welcome > p {
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}
.prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}
.prompt-grid button {
  border: 1px solid #e1e6ef;
  background: #fff;
  padding: 12px;
  border-radius: 11px;
  text-align: left;
  font-size: 11px;
  color: #344054;
  cursor: pointer;
}
.prompt-grid button:hover {
  border-color: #9db9fa;
  background: #f7f9ff;
}
.message {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 14px;
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.message.staff {
  margin-left: auto;
  background: #155eef;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.message.assistant {
  background: #f0f3f8;
  color: #243047;
  border-bottom-left-radius: 4px;
}
.message small {
  display: block;
  opacity: 0.65;
  margin-top: 5px;
  font-size: 9px;
}
.flight-results {
  max-width: 720px;
  margin: 10px 0;
}
.flight-results-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 10px;
}
.flight-results-head div,
.flight-price {
  display: flex;
  flex-direction: column;
}
.flight-results-head span,
.flight-results-head small,
.flight-price span,
.flight-leg small,
.fare-note {
  color: #667085;
  font-size: 10px;
}
.flight-card {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px #1018280a;
}
.flight-card-head,
.flight-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
}
.flight-card-head > div:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
}
.flight-card-head span,
.flight-card-foot > span {
  color: #475467;
  font-size: 10px;
}
.flight-price { text-align: right; }
.flight-price strong { color: #101828; font-size: 17px; }
.flight-card-legs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid #edf0f4;
}
.flight-leg {
  padding: 12px 14px;
}
.flight-leg + .flight-leg { border-left: 1px solid #edf0f4; }
.flight-leg-label {
  color: #155eef;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.flight-leg-route {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 5px 0 2px;
  font-size: 14px;
}
.flight-leg-route span { color: #98a2b3; }
.flight-leg-time { color: #344054; font-size: 11px; }
.segment-list { margin-top: 10px; border-top: 1px solid #edf0f4; padding-top: 7px; }
.segment-head, .segment-row { display: grid; grid-template-columns: .7fr 1fr 1.35fr 1.35fr; gap: 7px; align-items: center; }
.segment-head { color: #98a2b3; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.segment-row { color: #475467; font-size: 9px; padding-top: 6px; }
.segment-row strong { color: #101828; }
.stopover-detail { margin-top: 8px; color: #155eef; font-size: 9px; font-weight: 700; }
.quote-editor input[readonly], .quote-editor textarea[readonly] { background: #f8fafc; color: #475467; cursor: default; }
.flight-card-foot button {
  border: 0;
  border-radius: 8px;
  background: #155eef;
  color: #fff;
  padding: 8px 11px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.flight-card-foot button:hover { background: #004eeb; }
.fare-note { margin: 8px 2px; }
.quote-itinerary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #edf0f4;
  border-radius: 10px;
  margin: 12px 0;
}
@media (max-width: 760px) {
  .flight-card-legs, .quote-itinerary { grid-template-columns: 1fr; }
  .flight-leg + .flight-leg { border-left: 0; border-top: 1px solid #edf0f4; }
}
.quote-editor { width: min(920px, calc(100vw - 30px)); max-width: 920px; max-height: 90vh; overflow: auto; }
.quote-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.quote-form-grid fieldset { border: 1px solid #e1e6ef; border-radius: 12px; padding: 13px; }
.quote-form-grid legend { color: #155eef; font-size: 10px; font-weight: 800; padding: 0 5px; text-transform: uppercase; }
.document-import { display:flex; align-items:flex-end; gap:18px; padding:14px 16px; margin:14px 0 18px; border:1px dashed #9db8e5; border-radius:12px; background:#f7faff; }
.document-import label { margin:0; min-width:280px; }
.document-import input[type="file"] { padding:9px; background:#fff; }
.quote-editor label { display: flex; flex-direction: column; gap: 5px; color: #344054; font-size: 10px; font-weight: 700; margin: 9px 0; }
.quote-editor input, .quote-editor textarea { border: 1px solid #d5dce7; border-radius: 8px; padding: 9px; font: inherit; font-weight: 400; resize: vertical; }
.quote-editor input:focus, .quote-editor textarea:focus { border-color: #5d86ef; outline: 3px solid #155eef12; }
.editor-total { display: flex; justify-content: space-between; padding: 12px 0 2px; border-top: 1px solid #e5e9f0; color: #155eef; }
.quote-editor-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 15px; }
.quote-editor-actions a { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .quote-form-grid { grid-template-columns: 1fr; } }
.chat-composer {
  border-top: 1px solid #e5e9f0;
  padding: 12px 15px;
}
.composer-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  border: 1px solid #d9e0ea;
  border-radius: 13px;
  padding: 7px;
  background: #fff;
}
.composer-row:focus-within {
  border-color: #5d86ef;
  box-shadow: 0 0 0 3px #155eef13;
}
.composer-row textarea {
  border: 0;
  outline: 0;
  resize: none;
  flex: 1;
  min-height: 34px;
  max-height: 110px;
  padding: 8px;
  font-size: 12px;
}
.attach-button,
.send-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.attach-button {
  background: #f0f2f6;
  color: #475467;
}
.attach-button input {
  display: none;
}
.send-button {
  background: #155eef;
  color: #fff;
}
.send-button:disabled {
  opacity: 0.45;
}
.composer-note {
  display: flex;
  justify-content: space-between;
  color: #98a2b3;
  font-size: 9px;
  margin-top: 7px;
}
.attachment-tray {
  padding: 7px;
  font-size: 10px;
  color: #475467;
  background: #f7f9fc;
  border-radius: 8px;
  margin-bottom: 7px;
}
.context-head span {
  font-size: 9px;
  padding: 5px 7px;
  background: #eef2f7;
  border-radius: 9px;
  color: #667085;
}
.context-empty {
  padding: 25px 18px;
  text-align: center;
  color: #98a2b3;
  font-size: 11px;
  line-height: 1.7;
}
.context-content {
  padding: 16px;
}
.context-block {
  border-bottom: 1px solid #e5e9f0;
  padding: 13px 0;
}
.context-block:first-child {
  padding-top: 0;
}
.context-block strong {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
}
.context-block p {
  font-size: 10px;
  line-height: 1.6;
  color: #667085;
  margin: 0;
}
.placeholder-view {
  min-height: 75vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.placeholder-view h1 {
  font-size: 32px;
  margin: 8px;
}
.placeholder-view > p:not(.eyebrow) {
  color: #667085;
  max-width: 520px;
  line-height: 1.7;
}
.placeholder-view button {
  margin-top: 20px;
}
@media (max-width: 1200px) {
  .assistant-grid {
    grid-template-columns: 230px 1fr;
  }
  .context-panel {
    display: none;
  }
}
@media (max-width: 850px) {
  .assistant-grid {
    grid-template-columns: 1fr;
  }
  .conversation-rail {
    display: none;
  }
  .assistant-top h1 {
    font-size: 23px;
  }
}

.invoice-view header { margin-bottom: 18px; }
.invoice-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.invoice-stats article { background: #fff; border: 1px solid #e5e9f0; border-radius: 14px; padding: 17px; }
.invoice-stats span, .invoice-stats small { display: block; color: #667085; font-size: 11px; }
.invoice-stats strong { display: block; font-size: 27px; margin: 7px 0 2px; }
.invoice-register { overflow: hidden; }
.invoice-toolbar { display: flex; gap: 10px; align-items: flex-end; padding: 13px; border-bottom: 1px solid #e5e9f0; flex-wrap:wrap; }
.invoice-search { margin: 0; width: min(430px, 50%); }
.invoice-toolbar select { padding: 9px 34px 9px 12px; border: 1px solid #e5e9f0; border-radius: 9px; background: #fff; }
.compact-filter { margin:0; color:#667085; font-size:9px; text-transform:uppercase; }
.compact-filter input { display:block; width:135px; margin-top:3px; padding:8px; }
.invoice-filters { display:flex; align-items:flex-end; gap:9px; flex-wrap:wrap; }
.table-pagination { display:flex; justify-content:flex-end; align-items:center; gap:10px; padding:11px 14px; border-top:1px solid #eef0f4; color:#667085; font-size:11px; }
.table-pagination label { display:flex; align-items:center; gap:7px; margin:0; }
.table-pagination select { padding:7px 28px 7px 9px; }
.table-pagination button { padding:7px 10px; }
.invoice-count { margin-left: auto; color: #667085; font-size: 12px; }
.invoice-table-wrap { overflow: auto; }
.invoice-table { width: 100%; border-collapse: collapse; }
.invoice-table th, .invoice-table td { padding: 14px 17px; text-align: left; border-bottom: 1px solid #eef0f4; font-size: 12px; }
.invoice-table th { background: #f8fafc; color: #667085; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.invoice-table td strong, .invoice-table td small { display: block; }
.invoice-table td small { color: #98a2b3; margin-top: 4px; }
.firm-pill { display: inline-block; background: #eef4ff; color: #175cd3; border-radius: 12px; padding: 5px 8px; font-size: 10px; font-weight: 700; }
.view-pdf { display: inline-block; color: #fff; background: #155eef; border-radius: 8px; padding: 7px 10px; text-decoration: none; font-size: 10px; font-weight: 700; }
@media (max-width: 850px) { .invoice-stats { grid-template-columns: 1fr 1fr; } .invoice-toolbar { flex-wrap: wrap; } .invoice-search { width: 100%; } }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; padding: 16px; }
.quote-card { border: 1px solid #e5e9f0; border-radius: 13px; padding: 16px; background: #fff; }
.quote-card-head { display: flex; justify-content: space-between; gap: 12px; }
.quote-card h3 { margin: 6px 0 0; font-size: 14px; }
.quote-card p { color: #667085; font-size: 12px; }
.quote-total { display: block; font-size: 23px; margin: 15px 0 5px; }
.quote-card small { color: #98a2b3; font-size: 10px; }
.quote-actions { display: flex; gap: 8px; margin-top: 16px; }
.quote-actions button { flex: 1; font-size: 10px; }
.quote-actions button:disabled { cursor: not-allowed; opacity: .65; }
.table-actions { display:flex; gap:5px; flex-wrap:wrap; min-width:190px; }
.table-actions button { padding:6px 8px; font-size:9px; white-space:nowrap; }
.table-actions button:disabled { cursor:not-allowed; opacity:.55; }
.filter-card, .interactive-card, .interactive-row { cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease; }
.filter-card:hover, .interactive-card:hover { border-color: #9db9fa !important; box-shadow: 0 7px 20px #155eef16 !important; transform: translateY(-1px); }
.filter-card:focus-visible, .interactive-card:focus-visible, .interactive-row:focus-visible { outline: 3px solid #155eef30; outline-offset: 2px; }
.selected-filter { border-color: #155eef !important; background: #f5f8ff !important; box-shadow: 0 0 0 3px #155eef14 !important; }
.interactive-row:hover { background: #f5f8ff; }
