/* ==========================================================================
   Travel Setup — shared styles for 701-709 pages
   ========================================================================== */

.form-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-top {
  margin-bottom: 4px;
}

.page-title-text {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #1f2933);
  margin: 0;
}

.panel {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 43, 76, 0.05);
}

/* ── leftAuto (grid container) ─────────────────────────────────────────── */
.leftAuto {
  max-width: 720px;
}

/* ── leftAuto-table (ASpx label/value rows) ────────────────────────────── */
.leftAuto-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 640px;
}

.leftAuto-table td {
  padding: 8px 10px;
  vertical-align: middle;
  font-size: 13px;
}

.leftAuto-table td.lbl {
  width: 40%;
  text-align: right;
  background-color: #fcfcfc;
  color: var(--text-primary, #1f2933);
  font-weight: 600;
  border: 1px solid #eef0f3;
}

.section-title {
  font-size: 13px;
  padding: 10px 14px 8px;
  color: var(--primary, #0f2b4c);
  background: #f4f6f8;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 8px 8px 0 0;
}

.mainDataTable {
  width: 100%;
  border-collapse: collapse;
}

.mainDataTable td {
  vertical-align: middle;
  font-size: 13px;
}

.mainDataTable td.lbl-bold {
  font-weight: 700;
  color: #111827;
  text-align: right;
  background-color: #fcfcfc;
  padding: 8px 10px;
  border: 1px solid #eef0f3;
  white-space: nowrap;
}

.mainDataTable td:not(.lbl-bold) {
  background-color: #ffffff;
  border: 1px solid #eef0f3;
  padding: 6px 10px;
}

.new-label {
  color: var(--text-muted, #94a3b8);
  font-style: italic;
  font-size: 13px;
}

.form-control.account-name {
  max-width: 400px;
  text-transform: uppercase;
}

.leftAuto-table td.aspNetDisabled {
  color: var(--text-muted, #94a3b8);
  font-family: "JetBrains Mono", monospace;
  background: #f9fafb;
  border: 1px solid #eef0f3;
}

.leftAuto-table td .form-control {
  max-width: 300px;
}

.leftAuto-table.wide {
  max-width: 640px;
}

.leftAuto-table.wide td .form-control,
.leftAuto-table.wide td .form-select {
  max-width: 100%;
}

.leftAuto-table.wide textarea.form-control {
  width: 98%;
  max-width: 100%;
  min-height: 100px;
}

/* ── Booking Templates double-column form (mainData) ─────────────────── */
.mainDataTable {
  width: 100%;
  max-width: 1100px;
  border-collapse: collapse;
}

.mainDataTable td {
  padding: 7px 10px;
  vertical-align: middle;
  font-size: 13px;
}

.mainDataCaptionCell {
  width: 15%;
  padding: 7px 12px;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-primary, #1f2933);
}

.mainDataCell {
  width: 30%;
}

.mainDataCell .form-control,
.mainDataCell .form-select {
  width: 100%;
}

.mainDataSpacer {
  width: 20px;
}

.check-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-inline .form-check {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .mainDataTable,
  .mainDataTable tbody,
  .mainDataTable tr,
  .mainDataTable td {
    display: block;
    width: 100%;
  }

  .mainDataSpacer {
    display: none;
  }

  .mainDataCaptionCell {
    text-align: left;
    padding-bottom: 0;
  }
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary, #1f2933);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary, #0f2b4c);
  cursor: pointer;
}

/* ── Mis detail section title ──────────────────────────────────────────── */
.misdetail-title {
  margin-bottom: 12px;
}

.misdetail-title span {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary, #0f2b4c);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary, #0f2b4c);
}

/* ── Header with action button (Main) ──────────────────────────────────── */
.header-with-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-img {
  padding: 8px 10px;
}

.btn-img i {
  font-size: 14px;
}

.divder {
  width: 2px;
  height: 26px;
  background: #d7dbe0;
  margin: 0 2px;
}

.invoice-dropdown {
  max-width: 140px;
  height: 34px;
}

.col-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Lookup field (Supplier picker) ────────────────────────────────────── */
.lookup-field {
  display: flex;
  gap: 6px;
  max-width: 320px;
}

.lookup-field .form-control {
  flex: 1;
  min-width: 0;
}

.lookup-btn {
  width: 34px;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-primary, #1f2933);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 34px;
  transition: background 0.15s ease;
}

.lookup-btn:hover {
  background: #f3f4f6;
}

.lookup-btn.btns-red {
  border-color: #fecaca;
}

.lookup-btn.btns-red:hover {
  background: #fef2f2;
}

.lookup-field.wide {
  max-width: 100%;
}

/* ── Vertical separator ──────────────────────────────────────────────── */
.vsep {
  height: 1px;
  margin: 20px 0;
  background: var(--border, #e2e8f0);
}

/* ── Section title (detail sub-header) ──────────────────────────────── */
.section-title-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary, #0f2b4c);
  margin: 0;
}

/* ── Detail search panel grid ───────────────────────────────────────── */
.search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.search-grid .filter-actions {
  margin-top: 0;
  white-space: nowrap;
}

/* ── Switchslider checkbox ─────────────────────────────────────────────── */
.switchslider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary, #1f2933);
  cursor: pointer;
}

.btns-blue {
  padding: 8px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-family, 'Inter', sans-serif);
  color: #1d4ed8;
  background: #eff6ff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.btns-blue:hover {
  background: #dbeafe;
  text-decoration: none;
}

.btns-green {
  padding: 8px 18px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-family, 'Inter', sans-serif);
  color: #15803d;
  background: #f0fdf4;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.btns-green:hover {
  background: #dcfce7;
  text-decoration: none;
}

/* ── 2-column form grid ────────────────────────────────────────────────── */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

.row + .row {
  margin-top: 16px;
}

.col {
  min-width: 0;
}

/* ── Form controls ─────────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #1f2933);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--danger, #dc2626);
  margin-inline-start: 2px;
}

.form-control,
.form-select {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary, #1f2933);
  background: var(--surface, #ffffff);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary, #0f2b4c);
  box-shadow: 0 0 0 3px rgba(15, 43, 76, 0.08);
  outline: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-inline-end: 36px;
  cursor: pointer;
}

.input-icon {
  position: relative;
}

.input-icon .form-control {
  padding-inline-start: 38px;
}

.input-icon .input-icon-el {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #94a3b8);
  pointer-events: none;
  font-size: 15px;
}

/* ── Action panel ──────────────────────────────────────────────────────── */
.actionPanel {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #e2e8f0);
  display: flex;
  gap: 12px;
}

.butt {
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family, 'Inter', sans-serif);
  color: #ffffff;
  background: var(--primary, #0f2b4c);
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.butt:hover {
  background: var(--primary-dark, #0a1f38);
  text-decoration: none;
}

.butt i {
  margin-inline-end: 0;
}

.btns-red {
  padding: 10px 22px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family, 'Inter', sans-serif);
  color: #dc2626;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 6px;
}

.btns-red:hover {
  background: #fef2f2;
  text-decoration: none;
}

.btns-ghost {
  background: #ffffff;
  color: #374151;
}

.btns-ghost:hover {
  background: #f3f4f6;
  color: #111827;
}

/* ── Filter bar ────────────────────────────────────────────────────────── */
.filter-bar {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafbfc;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.filter-field {
  min-width: 0;
}

.filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.filter-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── List header ───────────────────────────────────────────────────────── */
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.butt-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.butt-sm i {
  margin-inline-end: 6px;
}

/* ── Audit log toggle + box ──────────────────────────────────────────── */
.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--primary, #0f2b4c);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
}

.box-text {
  background: #fcfcfc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 13px;
  color: #374151;
}

.audit-log-btn {
  margin-inline-start: 12px;
}

/* ── Child detail header + classic search panel ──────────────────────── */
.card-detail-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
  padding: 10px 14px;
  background: var(--primary, #0f2b4c);
  color: #ffffff;
  border-radius: 8px 8px 0 0;
}

.card-detail-hd .hd-title {
  color: #ffffff;
}

.title-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 8px 2px;
  border-bottom: 1px solid #e2e8f0;
}

.title-1 > span {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary, #0f2b4c);
}

.title-1 .r {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.title-1 a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 14px;
}

.search-grid .filter-field {
  min-width: 0;
}

.search-grid .filter-field.wide {
  grid-column: span 2;
}

@media (max-width: 1100px) {
  .search-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
}

.quick-entry {
  margin-bottom: 16px;
}

.search-panel {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  background: #fafbfc;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-row .filter-label {
  margin-bottom: 0;
  white-space: nowrap;
}

.search-row .select {
  max-width: 220px;
}

.search-row .search-cond {
  max-width: 110px;
}

.search-row .form-control[type="text"] {
  max-width: 280px;
}

/* ── Account Budget copy toolbar + section actions ───────────────────── */
.ticket-profile {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafbfc;
  margin-bottom: 16px;
}

.budget-copy-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  padding-bottom: 8px;
}

.budget-copy-table td {
  vertical-align: middle;
}

.budget-copy-table .lookup-field {
  max-width: 100%;
}

.btns-green.btnfull {
  width: 180px;
  height: 25px;
}

.text-monospace {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  color: #334155;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table td {
  padding: 2px 10px 2px 0;
  vertical-align: middle;
}

.profile-table .pt-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-bottom: 6px;
}

.profile-table select.form-control {
  width: auto;
  min-width: 170px;
  max-width: 260px;
}

.profile-table input.form-control {
  width: auto;
}

.section-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.section-actions .btns-red {
  padding: 10px 22px;
}

.Decimal_digits {
  max-width: 140px;
}

.budget-month {
  max-width: 140px;
}

/* ── Report filter form ──────────────────────────────────────────────── */
.report-filter-table {
  width: 100%;
  border-collapse: collapse;
}

.report-filter-table td {
  padding: 6px 10px;
  vertical-align: middle;
}

.report-filter-table .rft-label {
  text-align: right;
  font-weight: 700;
  color: #111827;
  width: 12%;
}

.report-filter-table .lookup-field,
.report-filter-table .input-icon {
  max-width: 360px;
}

.report-filter-table .select {
  max-width: 180px;
}

.rft-narrow {
  max-width: 180px;
}

.border-b {
  border-top: 1px solid #e5e7eb;
  margin: 8px 0;
}

.total-number {
  font-weight: 700;
  color: var(--primary, #0f2b4c);
  font-size: 14px;
}

.report-filter-table .actionPanel {
  background: transparent;
  border: none;
  justify-content: flex-start;
  padding-left: 0;
}

/* ── Reconciliation boxes ─────────────────────────────────────────────── */
.recon-boxes {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.recon-fieldset {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  flex: 0 0 300px;
  min-height: 110px;
}

.recon-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 6px;
}

.recon-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
}

.cc-fieldset {
  flex-basis: 57%;
  flex-grow: 1;
}

.cc-grid {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 12px;
}

.cc-grid td {
  border: 1px solid #d1d5db;
  text-align: center;
  padding: 3px 6px;
  height: 25px;
}

.cc-actions table {
  width: 100%;
}

.cc-actions .rft-label {
  text-align: right;
  font-weight: 700;
  padding: 5px;
  white-space: nowrap;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.recon-label {
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}

.recon-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-around;
  font-weight: 700;
}

.recon-summary .label {
  color: #1f2937;
}

.recon-summary .value {
  font-weight: 700;
  color: var(--primary, #0f2b4c);
}

.inline-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-group .lookup-field {
  max-width: 260px;
}

.lbl-inline {
  font-weight: 600;
  color: var(--text-primary, #1f2933);
  white-space: nowrap;
}

.amount_header {
  padding-bottom: 12px;
  vertical-align: bottom;
}

/* ── Supplier reconciliation ──────────────────────────────────────────── */
.supplier-lookups {
  width: 100%;
}

.supplier-lookups td {
  padding: 0 6px 0 0;
}

.supplier-lookups .lookup-field {
  max-width: 200px;
}

.supp-download-link {
  margin-left: 12px;
  font-weight: 600;
  color: var(--primary, #0f2b4c);
}

.radio-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary, #1f2933);
  cursor: pointer;
}

.radio-field input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary, #0f2b4c);
  cursor: pointer;
}

.file-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.click-to-add {
  margin-right: 0;
}

#FileUploadContainer {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

#FileUploadContainer .form-control,
.file-upload-row .form-control {
  max-width: 360px;
}

.file-upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── List table ────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

.sfm-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sfm-tbl th {
  padding: 9px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.sfm-tbl td {
  padding: 8px 14px;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
  white-space: nowrap;
}

.sfm-tbl tbody tr:hover {
  background: #f8fafc;
}

.sfm-tbl .r {
  text-align: right;
  font-family: "JetBrains Mono", monospace;
}

.sfm-tbl .c {
  text-align: center;
}

.sfm-tbl .actions {
  white-space: nowrap;
}

.empty-tbl {
  padding: 36px 14px !important;
  color: var(--text-muted, #94a3b8);
}

.empty-tbl i {
  margin-inline-end: 8px;
}

.empty-tbl a {
  color: var(--primary, #0f2b4c);
}

.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.act + .act {
  margin-inline-start: 6px;
}

.act-edit {
  color: #2563eb;
  background: #eff6ff;
}

.act-edit:hover {
  background: #dbeafe;
  text-decoration: none;
}

.act-del {
  color: #dc2626;
  background: #fef2f2;
}

.act-del:hover {
  background: #fee2e2;
  text-decoration: none;
}

.dash-pager {
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
}

.dash-pager span,
.dash-pager a {
  min-width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 4px;
}

.dash-pager span {
  font-weight: 700;
  color: #fff;
  background: #0f2b4c;
}

.dash-pager a {
  color: #374151;
  text-decoration: none;
}

.dash-pager a:hover {
  color: #0f2b4c;
  background: #f3f4f6;
}

/* ── Fieldset sections ──────────────────────────────────────────────── */
fieldset {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0;
}

fieldset + fieldset,
.vsep + fieldset {
  margin-top: 18px;
}

fieldset legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary, #0f2b4c);
  padding: 2px 10px;
}

.fldDataCaptionCell {
  border-collapse: collapse;
  width: 100%;
}

.fldDataCaptionCell td {
  padding: 7px 10px;
  vertical-align: middle;
  font-size: 13px;
}

.fldDataCaptionCell td:nth-child(1),
.fldDataCaptionCell td:nth-child(3) {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary, #1f2933);
}

.fldDataCaptionCell td .form-control,
.fldDataCaptionCell td .form-select,
.fldDataCaptionCell td textarea.form-control {
  width: 100%;
  max-width: 360px;
}

.fldDataCaptionCell td .lookup-field,
.fldDataCaptionCell td .input-icon {
  max-width: 360px;
}

/* ═══════════════════════════════════════════════════════════════════
   TOURS — Service Order (105)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Action buttons ────────────────────────────────────────────────── */
.actionBar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btns-perpal {
  padding: 8px 18px;
  border: 1px solid #d8b4fe;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-family, 'Inter', sans-serif);
  color: #7e22ce;
  background: #faf5ff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.btns-perpal:hover {
  background: #f3e8ff;
  text-decoration: none;
}

.void-box {
  padding: 16px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  text-align: center;
}

.void-box .btn-blue {
  padding: 8px 22px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #1d4ed8;
  cursor: pointer;
  margin: 0 4px;
}

/* ── Receipt detail (labels + lone cells) ──────────────────────────── */
.ReceiptCaptionCell {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #1f2933);
  white-space: nowrap;
}

.tourlisttop .ReceiptCaptionCell {
  font-size: 13px;
  color: var(--text-primary, #1f2933);
}

.adminitem {
  vertical-align: middle;
  padding: 4px 6px;
}

.bcfix {
  max-width: 130px;
}

.branch-transfer {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafbfc;
}

/* ── Service Order header group tables ─────────────────────────────── */
.service-order {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-order .headerGroupTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.service-order .headerGroupCaptionCell {
  background: var(--primary, #0f2b4c);
  color: #fff;
  font-weight: 700;
  padding: 8px 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-order .headerGroupCaptionCell_text {
  background: #eef2f7;
  color: #334155;
  font-weight: 700;
  padding: 8px 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
}

.service-order .headerGroupTable tr:last-child td {
  padding: 8px 10px;
  vertical-align: middle;
  background: #ffffff;
}

.service-order .headerGroupTable tr:last-child td:first-child {
  border-left: none;
}

.service-order .headerGroupDataCell {
  padding: 8px 10px;
  vertical-align: middle;
  background: #ffffff;
}

.service-order .headerGroupDataCell input,
.service-order .headerGroupDataCell select,
.service-order .headerGroupDataCell textarea {
  font-size: 13px;
}

.service-order .headerGroupDataCell .lookup-field {
  max-width: 100%;
}

.service-order textarea.form-control {
  resize: vertical;
}

/* ── Detail sub-headers (Service Order / Flight Booking) ───────────── */
.details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.details-grid .detail-section {
  flex: 1 1 100%;
  min-width: 0;
}

.detail-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.detail-section .detail-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--primary, #0f2b4c);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-section .detail-hd .dash-title {
  color: #ffffff;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.details-grid .detail-section {
  flex: 1 1 100%;
}

/* ── Receipt Detail + Total side-by-side ───────────────────────────── */
.receipt-panels {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.receipt-detail-fieldset {
  padding: 4px 8px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fcfcfd;
  flex: 3 1 60%;
}

.receipt-detail-fieldset > legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary, #0f2b4c);
  padding: 0 8px;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
}

.receipt-table td {
  padding: 4px 6px;
  vertical-align: middle;
}

.receipt-table .rc-label {
  text-align: right;
  padding-right: 10px;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-primary, #1f2933);
  font-size: 13px;
}

.receipt-table .rc-input {
  text-align: left;
}

.receipt-table .rc-amount {
  text-align: right;
}

.receipt-table .rc-amount input {
  width: 80px;
  text-align: right;
}

.receipt-table input.form-control:not(.datepicker) {
  width: 120px;
}

.divStyle {
  visibility: hidden;
}

/* ── Total status box ──────────────────────────────────────────────── */
.paymentdetail-box {
  flex: 1 1 32%;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 12px 12px;
}

.paymentdetail-box > legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary, #0f2b4c);
  padding: 0 8px;
}

.paymentdetail-box.total-wide {
  flex: 1 1 52%;
  min-width: 480px;
}

.paymentdetail-box .statusTable {
  width: 100%;
  border-collapse: collapse;
}

.paymentdetail-box .statusTable td {
  padding: 6px 6px;
  font-size: 13px;
}

.paymentdetail-box .statusTable .st-label {
  font-weight: 700;
  color: var(--text-primary, #1f2933);
  white-space: nowrap;
}

.paymentdetail-box .statusTable .st-header {
  font-weight: 700;
  text-align: center;
  color: #475569;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.paymentdetail-box .statusTable .st-val {
  text-align: right;
}

.paymentdetail-box .statusTable .st-val input {
  width: 90px;
  text-align: right;
}

.paymentdetail-box .statusTable .st-row + .st-row td {
  border-top: 1px solid #f1f5f9;
}

.paymentdetail-box .rightStatusCell {
  vertical-align: middle;
}

.paymentdetail-box .statusTable input {
  font-size: 13px;
}

/* ── Properties / pax grid ─────────────────────────────────────────── */
.properties-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .row + .row {
    margin-top: 16px;
  }

  .row .col + .col {
    margin-top: 16px;
  }
}
