/* Agent report / booking history pages */

.bodyContent .table_outer_wrper {
  background: #f1f5f9;
  padding: 16px;
  border-radius: 0;
}

.bodyContent .panel_custom_heading {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(2, 29, 98, 0.08);
  overflow: hidden;
}

.bodyContent .panel_bdy {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(2, 29, 98, 0.08);
  overflow: visible;
}

.bodyContent .panel_custom_heading {
  margin-bottom: 16px;
}

.bodyContent .panel_title {
  padding: 16px 18px 0;
}

.bodyContent .panel_bdy {
  padding: 0 18px 18px;
  float: none;
}

/* Module tabs */
.bodyContent .nav.nav-tabs.b2b_navul {
  border: 0;
  gap: 10px;
  padding: 0 0 16px;
  margin: 0;
}

.bodyContent .nav.nav-tabs.b2b_navul li a {
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  color: #334155 !important;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 20px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.bodyContent .nav.nav-tabs.b2b_navul li:hover a,
.bodyContent .nav.nav-tabs.b2b_navul li:focus a,
.bodyContent .nav.nav-tabs.b2b_navul li.active a {
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 59, 202, 0.25);
}

/* Filter card */
.bodyContent .extra_content,
.bodyContent .agent-report-page {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px !important;
  float: none;
  width: auto;
  margin: 0 18px 16px;
}

.bodyContent .serch_area_fltr {
  border-bottom: 1px solid #e2e8f0;
  margin: 0 0 14px;
  padding-bottom: 14px;
  float: none;
}

.bodyContent .serch_area_fltr .form-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
}

.bodyContent .serch_area_fltr .control-label {
  color: #475569;
  font-weight: 600;
  font-size: 13px;
  margin: 0;
  padding: 0;
  width: auto;
  float: none;
  line-height: 40px;
  align-self: center;
}

.bodyContent .serch_area_fltr .col-sm-1,
.bodyContent .serch_area_fltr .col-sm-2 {
  width: auto;
  float: none;
  padding: 0;
}

.bodyContent .serch_area_fltr .form-control {
  min-width: 150px;
  height: 40px !important;
  line-height: 38px;
  padding: 0 12px !important;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  vertical-align: middle;
}

.bodyContent .serch_area_fltr select.form-control {
  min-width: 170px;
  padding: 0 34px 0 12px !important;
  line-height: 38px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
  cursor: pointer;
}

.bodyContent .serch_area_fltr input.form-control {
  line-height: normal;
  padding: 8px 12px !important;
}

.bodyContent .serch_area_fltr .agent-report-status-field {
  min-width: 180px;
}

.bodyContent .serch_area_fltr .agent-report-status-field select.form-control {
  min-width: 100%;
  width: 100%;
}

.bodyContent .serch_area_fltr .form-control:focus {
  border-color: #003BCA;
  box-shadow: 0 0 0 3px rgba(0, 59, 202, 0.12);
}

.bodyContent .serch_area_fltr .btn-success,
.bodyContent .serch_area_fltr .btn-warning {
  height: 40px;
  min-width: 90px;
  border-radius: 8px !important;
  font-weight: 600;
  font-size: 14px;
  border: none !important;
  outline: none !important;
}

.bodyContent .serch_area_fltr .btn-success {
  background: #FF5F20 !important;
  background-color: #FF5F20 !important;
  border-color: #FF5F20 !important;
  color: #fff !important;
}

.bodyContent .serch_area_fltr .btn-success:hover {
  background: #e5551c !important;
  background-color: #e5551c !important;
  border-color: #e5551c !important;
  opacity: 1;
}

.bodyContent .serch_area_fltr .btn-warning {
  background: #fff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.bodyContent .serch_area_fltr .btn-warning:hover {
  background: #f8fafc !important;
  color: #021D62 !important;
}

/* Quick filters */
.bodyContent .searc_fliter_all {
  padding-top: 2px;
}

.bodyContent .filter_heading {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}

.bodyContent .list_of_sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bodyContent .list_of_sections a {
  float: none;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  transition: all 0.2s ease;
}

.bodyContent .list_of_sections a:hover,
.bodyContent .list_of_sections a.active {
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%);
  border-color: transparent;
  color: #fff;
}

/* PNR / reference search */
.bodyContent .search_fltr_section {
  padding: 0 18px 16px;
}

.bodyContent .search_fltr_section .navbar-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
}

.bodyContent .search_fltr_section .form-group {
  flex: 1;
  margin: 0;
}

.bodyContent .search_fltr_section .form-control {
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: none;
}

.bodyContent .search_fltr_section .form-control:focus {
  border-color: #003BCA;
  box-shadow: 0 0 0 3px rgba(0, 59, 202, 0.12);
}

.bodyContent .search_fltr_section .btn-default {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #021D62;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: middle;
}

.bodyContent .search_fltr_section .btn-default i,
.bodyContent .search_fltr_section .btn-default .fa,
.bodyContent .search_fltr_section .btn-default .far,
.bodyContent .search_fltr_section .btn-default .fas {
  display: block;
  line-height: 1;
  font-size: 16px;
  margin: 0;
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  width: auto;
  height: auto;
}

.bodyContent .search_fltr_section .btn-default:hover {
  background: #eef4ff;
  border-color: #003BCA;
  color: #003BCA;
}

.bodyContent .search_fltr_section .navbar-form > .btn-default,
.bodyContent .search_fltr_section .navbar-form > button.btn-default,
.bodyContent .search_fltr_section .navbar-form > a.btn-default {
  text-decoration: none;
}

/* Table meta (pagination + total) */
.bodyContent #tableList > .pull-right,
.bodyContent .panel_bdy > .tab-content > .pull-right {
  float: none !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.bodyContent #tableList > .pull-right span,
.bodyContent .panel_bdy > .tab-content > .pull-right span {
  color: #021D62;
  font-weight: 600;
  font-size: 14px;
}

.bodyContent .pagination {
  margin: 0;
}

.bodyContent .pagination > li > a,
.bodyContent .pagination > li > span {
  border-radius: 6px;
  margin: 0 2px;
  color: #334155 !important;
  border-color: #dbe3ee;
}

.bodyContent .pagination > .active > a,
.bodyContent .pagination > .active > span {
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Data table */
.bodyContent #tableList,
.bodyContent #tableList.table-responsive {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.bodyContent #tableList .table,
.bodyContent .panel_bdy .table.table-condensed {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0;
  background: #fff;
  overflow: visible !important;
}

.bodyContent #tableList .table td:last-child,
.bodyContent .panel_bdy .table td:last-child {
  overflow: visible;
  position: relative;
  min-width: 70px;
}

.bodyContent #tableList thead tr th,
.bodyContent #tableList .table > tr:first-child > th,
.bodyContent #tableList .table.table-condensed tbody tr:first-child th,
.bodyContent #tableList .table.table-condensed > tbody > tr:first-child > th,
.bodyContent .panel_bdy .table thead tr th,
.bodyContent .panel_bdy .table.table-condensed tbody tr th,
.bodyContent .panel_bdy .table > tr:first-child > th {
  background: #e2e8f0 !important;
  color: #334155 !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  border-color: #cbd5e1 !important;
  padding: 12px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.bodyContent #tableList .table > tbody > tr > td,
.bodyContent #tableList .table > tr:not(:first-child) > td,
.bodyContent .panel_bdy .table > tbody > tr > td,
.bodyContent .panel_bdy .table > tr:not(:first-child) > td {
  font-size: 13px;
  color: #334155;
  padding: 11px 10px;
  vertical-align: middle;
  border-color: #eef2f7 !important;
}

.bodyContent #tableList .table > tbody > tr:nth-child(even) > td,
.bodyContent #tableList .table > tr:nth-child(even):not(:first-child) > td,
.bodyContent .panel_bdy .table > tbody > tr:nth-child(even) > td,
.bodyContent .panel_bdy .table > tr:nth-child(even):not(:first-child) > td {
  background: #fafbfd;
}

.bodyContent #tableList .table > tbody > tr:hover > td,
.bodyContent #tableList .table > tr:not(:first-child):hover > td,
.bodyContent .panel_bdy .table > tbody > tr:hover > td,
.bodyContent .panel_bdy .table > tr:not(:first-child):hover > td {
  background: #eef4ff;
}

/* Status badges */
.bodyContent #tableList .label,
.bodyContent .panel_bdy .label {
  display: inline-block;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  white-space: normal;
  line-height: 1.3;
}

.bodyContent #tableList .label-success,
.bodyContent .panel_bdy .label-success {
  background: #10b981 !important;
}

.bodyContent #tableList .label-danger,
.bodyContent .panel_bdy .label-danger {
  background: #ef4444 !important;
}

.bodyContent #tableList .label-info,
.bodyContent .panel_bdy .label-info {
  background: #0ea5e9 !important;
}

.bodyContent #tableList .label-primary,
.bodyContent .panel_bdy .label-primary {
  background: #6366f1 !important;
}

/* Action dropdown */
.bodyContent .actn_drpdwn {
  position: relative;
  display: inline-block;
  text-align: center;
}

.bodyContent .actn_drpdwn.open {
  z-index: 40;
}

.bodyContent .actn_drpdwn button {
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 59, 202, 0.25);
}

.bodyContent .actn_drpdwn button i {
  margin: 0;
  line-height: 1;
}

.bodyContent .actn_drpdwn button:hover,
.bodyContent .actn_drpdwn button:focus {
  opacity: 0.92;
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%) !important;
  outline: none !important;
  box-shadow: 0 4px 12px rgba(0, 59, 202, 0.3);
}

.actn_menu_drpdwn {
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px !important;
  min-width: 190px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  z-index: 1060;
}

.actn_menu_drpdwn [role="group"] {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.actn_menu_drpdwn br {
  display: none;
}

.actn_menu_drpdwn .btn,
.actn_menu_drpdwn a.btn {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: left !important;
  white-space: nowrap;
  box-shadow: none !important;
  line-height: 1.3;
}

.actn_menu_drpdwn .btn i,
.actn_menu_drpdwn a.btn i {
  width: 16px;
  text-align: center;
  color: #64748b;
  margin: 0;
}

.actn_menu_drpdwn .btn:hover,
.actn_menu_drpdwn a.btn:hover,
.actn_menu_drpdwn .btn:focus,
.actn_menu_drpdwn a.btn:focus {
  background: #f1f5f9 !important;
  color: #021D62 !important;
  transform: none !important;
}

.actn_menu_drpdwn .btn:hover i,
.actn_menu_drpdwn a.btn:hover i {
  color: #003BCA;
}

.actn_menu_drpdwn .btn-warning,
.actn_menu_drpdwn a.btn-warning {
  color: #b45309 !important;
}

.actn_menu_drpdwn .btn-warning:hover,
.actn_menu_drpdwn a.btn-warning:hover {
  background: #fff7ed !important;
  color: #c2410c !important;
}

.actn_menu_drpdwn .btn-danger,
.actn_menu_drpdwn a.btn-danger {
  color: #dc2626 !important;
}

.actn_menu_drpdwn .btn-danger:hover,
.actn_menu_drpdwn a.btn-danger:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.actn_menu_drpdwn .pdf_btn,
.actn_menu_drpdwn .invoice_btn {
  background: transparent !important;
  border-color: transparent !important;
}

.bodyContent .actn_drpdwn .dropdown-menu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.actn_menu_drpdwn.actn-menu-portal {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  float: none;
  margin: 0 !important;
  transform: none !important;
  z-index: 99999 !important;
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 991px) {
  .bodyContent .table_outer_wrper {
    padding: 10px;
  }

  .bodyContent .extra_content,
  .bodyContent .agent-report-page {
    margin: 0 10px 12px;
    padding: 12px !important;
  }

  .bodyContent .serch_area_fltr .form-group {
    flex-direction: column;
    align-items: stretch;
  }

  .bodyContent .serch_area_fltr .form-control {
    width: 100%;
    min-width: 0;
  }

  .bodyContent .search_fltr_section {
    padding: 0 10px 12px;
  }
}

/* Email E-Ticket modal */
#mail_voucher_modal .modal-dialog {
  width: 100%;
  max-width: 440px;
  margin: 80px auto;
}

#mail_voucher_modal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

#mail_voucher_modal .modal-header {
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%);
  border-bottom: none;
  padding: 16px 20px;
}

#mail_voucher_modal .modal-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

#mail_voucher_modal .modal-title i {
  font-size: 16px;
}

#mail_voucher_modal .modal-header .close {
  color: #fff;
  opacity: 0.85;
  text-shadow: none;
  font-size: 26px;
  margin-top: -2px;
}

#mail_voucher_modal .modal-header .close:hover {
  opacity: 1;
}

#mail_voucher_modal .modal-body {
  padding: 22px 20px 20px;
}

#mail_voucher_modal .agent-email-voucher-label {
  display: block;
  font-weight: 600;
  color: #334155;
  font-size: 14px;
  margin-bottom: 8px;
}

#mail_voucher_modal .agent-email-voucher-input {
  height: 44px !important;
  padding: 0 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 44px;
  box-shadow: none !important;
}

#mail_voucher_modal .agent-email-voucher-input:focus {
  border-color: #003BCA !important;
  box-shadow: 0 0 0 3px rgba(0, 59, 202, 0.12) !important;
}

#mail_voucher_modal .agent-email-voucher-help {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0 0;
}

#mail_voucher_modal .agent-email-voucher-error {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
}

#mail_voucher_modal .agent-email-voucher-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

#mail_voucher_modal .agent-email-voucher-send {
  background: #FF5F20 !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 28px !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 120px;
  line-height: 1.2;
}

#mail_voucher_modal .agent-email-voucher-send:hover,
#mail_voucher_modal .agent-email-voucher-send:focus {
  background: #e5551c !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(255, 95, 32, 0.35);
}
