/* form control left | right  */
.ins_horizontal_form {
  max-width: 560px;
  width: 100%;
  margin: auto;
  text-align: center;
}

.ins_horizontal_form {
  border-radius: 12px;
}

.ins_horizontal_form .inspect-horizontal-search-oob {
  box-shadow: none;
}

.ins_horizontal_form .inspect-horizontal-search-oob .inspect-home-search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ins_horizontal_form
  .inspect-horizontal-search-oob
  .inspect-home-search-form
  .inspect-filter-widget {
  margin-right: 0;
  padding-top: 0;
}

.ins_horizontal_form
  .inspect-horizontal-search-oob
  .inspect-home-search-form
  .inspect-home-search-footer {
  margin-top: 0;
}

/* form control left  */
.ins_horizontal_form.form-left {
  text-align: start;
}

/* form control centered  */
.ins_horizontal_form.form-center {
  text-align: center;
  max-width: 560px;
}

.ins_horizontal_form.form-center {
  border-radius: 12px;
}

.ins_horizontal_form.form-center .inspect-horizontal-search-oob {
  box-shadow: none;
}

.ins_horizontal_form.form-center .inspect-horizontal-search-oob .inspect-home-search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ins_horizontal_form.form-center
  .inspect-horizontal-search-oob
  .inspect-home-search-form
  .inspect-filter-widget {
  margin-right: 0;
  padding-top: 0;
}

.ins_horizontal_form.form-center
  .inspect-horizontal-search-oob
  .inspect-home-search-form
  .inspect-home-search-footer {
  margin-top: 0;
}

/* select box title style  */
.ins_horizontal_form .inspect-filter-widget .inspect-filter-widget-title {
  margin-bottom: 0px;
  font-size: 14px;
  font-weight: 500;
}

/* select input style  */
.ins_horizontal_form .inspect-filter-widget {
  max-width: 100%;
}

.ins_horizontal_form .inspect-filter-widget .select2 .selection .select2-selection {
  border-color: #dfdfdf;
  height: 44px;
  border-radius: 6px;
}

.ins_horizontal_form .inspect-filter-widget .select2 .selection .select2-selection:hover {
  border-color: var(--color-brand);
}

.ins_horizontal_form
  .inspect-filter-widget
  .select2
  .selection
  .select2-selection
  .select2-selection__rendered {
  padding-right: 30px;
}

.ins_horizontal_form
  .inspect-filter-widget
  .select2
  .selection
  .select2-selection
  .select2-selection__rendered
  .select2-selection__placeholder {
  font-size: 14px;
  text-transform: capitalize;
  color: rgba(18, 24, 38, 0.5);
}

.ins_horizontal_form .inspect-filter-widget .select2-container--open .selection .select2-selection {
  border-color: var(--color-brand);
}

/* select dropdown style  */
.select2-container .select2-dropdown {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid #dfdfdf;
  border-radius: 6px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
}

.select2-container .select2-dropdown .select2-search {
  padding: 0;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid #dfdfdf;
}

.select2-container .select2-dropdown .select2-search .select2-search__field {
  border-radius: 6px 6px 0 0;
  border: none;
  min-height: 40px;
  padding-left: 16px;
  padding-right: 16px;
}

.select2-container .select2-dropdown .select2-search .select2-search__field:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.select2-container .select2-dropdown .select2-results {
  padding-top: 8px;
  padding-bottom: 8px;
}

.select2-container
  .select2-dropdown
  .select2-results
  .select2-results__options
  .select2-results__option {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-brand);
  border: none;
  padding-top: 8px;
  padding-bottom: 8px;
}

.select2-container
  .select2-dropdown
  .select2-results
  .select2-results__options
  .select2-results__option--highlighted {
  background-color: #f3f4f6;
}

.select2-container .select2-dropdown--above {
  margin-top: 0;
  top: -12px;
}

/* datepicker input style  */
.ins_horizontal_form .inspect-filter-widget-date {
  position: relative;
}

.ins_horizontal_form .inspect-filter-widget-date label .daterange {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 36px;
  min-height: 44px;
  border-color: #dfdfdf;
  border-radius: 6px;
}

.ins_horizontal_form .inspect-filter-widget-date label .daterange:hover {
  border-color: #111827;
}

.ins_horizontal_form .inspect-filter-widget-date label .daterange:focus {
  box-shadow: none;
  border-color: var(--color-brand);
}

.ins_horizontal_form .inspect-filter-widget-date .cal-icon {
  position: absolute;
  left: 12px;
  top: 66%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-color: #ffffff;
}

/* submit button style  */
.ins_horizontal_form .inspect-home-search-footer .submit-search {
  border-radius: 6px;
  transition: transform 0.15s ease;
  min-height: auto;
  padding-bottom: 15px;
}

.ins_horizontal_form .inspect-home-search-footer .submit-search:hover {
  transform: translateY(-2px);
}

/* calender style  */
.daterangepicker {
  max-width: 660px;
  width: 100%;
}

.daterangepicker .table-condensed tbody tr td.in-range {
  background-color: var(--bg);
}

.daterangepicker .table-condensed tbody tr td.active,
.daterangepicker .table-condensed tbody tr td.end-date,
.daterangepicker .table-condensed tbody tr td.start-date {
  background-color: var(--color-brand);
}

table th {
  background-color: var(--bg);
}

.daterangepicker .table-condensed thead tr .month {
  color: var(--color-brand);
}

.daterangepicker .drp-calendar.left,
.daterangepicker .drp-calendar.right {
  max-width: 100%;
  padding: 0;
}

.daterangepicker .drp-calendar.left {
  float: left;
}

.daterangepicker .drp-calendar.right {
  float: right;
}

.daterangepicker .drp-buttons {
  clear: both;
}

.daterangepicker .drp-buttons .drp-selected {
  display: none;
}

.daterangepicker .ranges {
  display: none;
}

.daterangepicker .drp-calendar.left .calendar-table {
  padding-right: 0;
}

.daterangepicker .calendar-table {
  border: none;
}

.daterangepicker .drp-calendar.right {
  padding-left: 0;
}

.daterangepicker .drp-calendar.left .calendar-table,
.daterangepicker .drp-calendar.left .table-condensed,
.daterangepicker .drp-calendar.right .calendar-table,
.daterangepicker .drp-calendar.right .table-condensed {
  border-radius: 0;
}

.daterangepicker .drp-calendar.right .calendar-table,
.daterangepicker .drp-calendar.right .table-condensed {
  border-left: 0;
}

.daterangepicker .drp-calendar.left .calendar-table,
.daterangepicker .drp-calendar.left .table-condensed {
  border-right: 0;
}

.daterangepicker .drp-calendar.left .table-condensed thead {
  border-right: 1px solid var(--bg);
}
.daterangepicker .drp-calendar.right .table-condensed thead {
  border-left: 1px solid var(--bg);
}

.daterangepicker .drp-calendar.right .table-condensed .next {
  border: 1px solid;
  border-color: var(--divider) var(--divider) var(--bg) var(--bg);
}

.daterangepicker .table-condensed thead tr th {
  border-radius: 0;
  border: none;
}

.daterangepicker .table-condensed tbody tr td {
  padding: 0;
}

.daterangepicker .drp-calendar.left table,
.daterangepicker .drp-calendar.right table {
  border: 1px solid var(--divider);
}

.daterangepicker .drp-buttons .applyBtn,
.daterangepicker .drp-buttons .cancelBtn {
  color: var(--color-brand);
  border-radius: 6px;
}

.daterangepicker .drp-buttons .applyBtn:hover,
.daterangepicker .drp-buttons .cancelBtn:hover {
  background-color: var(--color-brand);
  color: #ffffff;
}

@media screen and (min-width: 640px) {
  .ins_horizontal_form .inspect-filter-widget .inspect-filter-widget-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .ins_horizontal_form .inspect-filter-widget .select2 .selection .select2-selection {
    height: 48px;
  }

  .ins_horizontal_form .inspect-filter-widget-date label .daterange {
    height: 48px;
  }

  .ins_horizontal_form .inspect-filter-widget-date .cal-icon {
    top: 69%;
  }

  .select2-container
    .select2-dropdown
    .select2-results
    .select2-results__options
    .select2-results__option {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .daterangepicker .drp-calendar.left,
  .daterangepicker .drp-calendar.right {
    max-width: 50%;
  }

  .daterangepicker .drp-buttons .drp-selected {
    display: inline-block;
  }
}

@media screen and (min-width: 1024px) {
  .ins_horizontal_form {
    max-width: 900px;
    margin-left: 0;
    text-align: left;
  }

  .ins_horizontal_form .inspect-horizontal-search-oob {
    box-shadow: 0 0 30px rgba(16, 66, 97, 0.11), 0 25px 80px -20px rgba(16, 66, 97, 0.23);
  }

  .ins_horizontal_form .inspect-horizontal-search-oob .inspect-home-search-form {
    grid-template-columns: 1fr 1fr 1fr 120px;
    gap: 16px;
  }

  .ins_horizontal_form.form-center {
    max-width: 900px;
    margin-left: auto;
  }

  .ins_horizontal_form.form-center .inspect-horizontal-search-oob {
    box-shadow: 0 0 30px rgba(16, 66, 97, 0.11), 0 25px 80px -20px rgba(16, 66, 97, 0.23);
  }

  .ins_horizontal_form.form-center .inspect-horizontal-search-oob .inspect-home-search-form {
    grid-template-columns: 1fr 1fr 1fr 120px;
    gap: 16px;
  }

  .ins_horizontal_form .inspect-filter-widget-date .cal-icon {
    top: 67%;
  }
}

@media screen and (min-width: 1280px) {
  .ins_horizontal_form.form-center {
    max-width: 1215px;
  }
  .ins_horizontal_form .inspect-horizontal-search-oob .inspect-home-search-form {
    gap: 24px;
  }
  .ins_horizontal_form.form-center .inspect-horizontal-search-oob .inspect-home-search-form {
    grid-template-columns: 1fr 1fr 1fr 200px;
    gap: 24px;
  }
}

@media screen and (min-width: 1440px) {
  .ins_horizontal_form {
    max-width: 1015px;
  }

  .ins_horizontal_form .inspect-filter-widget-date .cal-icon {
    top: 69%;
  }
}

@media screen and (max-width: 1023px) {
  body .daterangepicker {
    width: 80%;
  }
  .daterangepicker .drp-calendar.left,
  .daterangepicker .drp-calendar.right {
    padding: 0;
  }
}

/* ==================== */
/* rtl css start here  */
/* ================== */

body.rtl
  .ins_horizontal_form
  .inspect-filter-widget
  .select2
  .select2-selection.select2-selection--single
  .select2-selection__rendered {
  padding-right: 16px;
  padding-left: 30px;
}
body.rtl
  .ins_horizontal_form
  .inspect-filter-widget
  .select2
  .select2-selection.select2-selection--single
  .select2-selection__arrow {
  left: 8px;
  right: auto;
}
