/* body {
  background: #f3f3f3;
} */

html, body {
  height: 100%;
  margin: 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
}


.content {
  flex: 1; 
}

footer {
  background-color: #f8f9fa; /* Light background */
  text-align: center;
  padding: 10px;
  width: 100%;
}

html {
  font-size: 13px;
}

h1, h2, h3, h4, h5, h6 {
  color: #444444;
}

/* .bg-steel {
  background-color: #5f788a;
} */

/* .table-container {
  display: grid;
} */

.slider-dt {
  display: none;
}

/* table.dataTable.table-custom-padding td {
  padding: 0.25rem !important; 
} */

/* table.dataTable td,
table.dataTable th {
  padding: 0.3rem !important;
} */

/* a[aria-label] {
  color: black;
  text-decoration: none;
  text-decoration-color: unset;
} */

/* .fit-width-btn {
  display: inline-block;
  width: auto;
  padding: 0.1rem 0.4rem;
} */

.fc-event {
    border-radius: 5px;
    border: 1px solid #ced4da !important;
}

.trip-row, 
.delete-event, 
.layover-hotel-link,
.pointer-hoverover,
.equip-link,
.delete-filter,
.favorite-icon-header,
#layoverLengthSelector,
.dt-menu-btn,
#filterIcon {
    cursor: pointer;
}

.cell-with-text::before {
  content: '-30'; /* Add the text you want to display behind */
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  opacity: 0.5; /* Set the opacity for the background text */
}



/* body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
} */

/* html {
  height: -webkit-fill-available;
} */

/* main {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  height: -webkit-fill-available;
  max-height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
} */

/* .b-example-divider {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
} */

/* .bi {
  vertical-align: -.125em;
  pointer-events: none;
  fill: currentColor;
} */

/* .dropdown-toggle { 
  outline: 0; 
} */

/* .btn-toggle {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .65);
  background-color: transparent;
  border: 0;
} */

/* .btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, .85);
  background-color: #d2f4ea;
} */

/* .btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
} */

/* .btn-toggle[aria-expanded="true"] {
  color: rgba(0, 0, 0, .85);
} */

/* .btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg); 
} */

/* .btn-toggle-nav a {
  display: inline-flex;
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
  text-decoration: none;
} */

/* .btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: #d2f4ea;
} */

/* .scrollarea {
  overflow-y: auto;
} */

/* 
.fw-semibold { font-weight: 600; }
.lh-tight { line-height: 1.25; } */

/* Styles for the loading screen */
.loading-screen {
    display: flex;
    background-color: #f4f6f9;
    height: 100vh;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index:9999;
    transition: height 0.3s ease; /* Smooth transition for height */
    overflow: hidden; /* Prevent content overflow when height decreases */
}

.loading-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Make sure it takes up the full height of the container */
}

  /* increase touchable area for touch screen */
@media (pointer: coarse) {
  .favorite-icon, 
  .favorite-icon-header, 
  .delete-filter, 
  #filterIcon  {
    padding: 4px 8px;
    margin: -4px -8px;  
    }
}

/* increase clickable area for everything else */
.favorite-icon {
  padding: 4px 8px; 
  margin: -4px -8px;
}

.accordion {
  --bs-accordion-btn-padding-y: 0.3rem;
  --bs-accordion-active-bg: white;
  --bs-accordion-body-padding-y: 0.7rem;
  --bs-accordion-active-color: black;
  --bs-accordion-btn-focus-border-color: white;
  --accordion-btn-focus-box-shadow: white;
  --accordion-btn-color: black;
}

.dropdown-menu {
  width: max-content !important;
}

.rounded-left-button-group {
    border-top-left-radius: 0.25rem !important;
    border-bottom-left-radius: 0.25rem !important;
}

.trip-sequence>thead>tr>th, .trip-sequence>tbody>tr>th, .trip-sequence>tfoot>tr>th, .trip-sequence>thead>tr>td, .trip-sequence>tbody>tr>td, .trip-sequence>tfoot>tr>td{
  padding-left: 0.2rem !important;
  padding-right: 0.2rem !important;
}

.shrink-col-to-fit {
  width: 1%;
}

th.span.dt-column-order {
  text-align: left;
}

table.dataTable thead th, table.dataTable thead td, table.dataTable tfoot th, table.dataTable tfoot td {
	text-align: left;
}

table.dataTable th.dt-type-date, table.dataTable td.dt-type-date {
	text-align: left;
}

table.dataTable th.dt-type-numeric, table.dataTable td.dt-type-numeric {
  text-align: left;
}

.icon-container {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px;
}

/* prevent the details row expander (child) from hover highlight as well */
td.child {
  box-shadow: none !important;;
}

.page-link {
	position: relative;
	display: block;
	padding: .5rem .75rem;
	margin-left: -1px;
	line-height: 1.25;
	color: #343a40;
	background-color: #fff;
	border: 1px solid #dee2e6;
}

.page-item.active .page-link {
	z-index: 3;
	color: #fff;
	background-color: #343a40;
	border-color: #343a40;
}

.pagination {
	--bs-pagination-padding-x: 0.75rem;
	--bs-pagination-padding-y: 0.375rem;
	--bs-pagination-font-size: 1rem;
	--bs-pagination-color: #343a40;
	--bs-pagination-bg: var(--bs-body-bg);
	--bs-pagination-border-width: var(--bs-border-width);
	--bs-pagination-border-color: var(--bs-border-color);
	--bs-pagination-border-radius: var(--bs-border-radius);
	--bs-pagination-hover-color: #343a40;
	--bs-pagination-hover-bg: var(--bs-tertiary-bg);
	--bs-pagination-hover-border-color: var(--bs-border-color);
	--bs-pagination-focus-color: #343a40;
	--bs-pagination-focus-bg: var(--bs-secondary-bg);
	--bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
	--bs-pagination-active-color: #fff;
	--bs-pagination-active-bg: #343a40;
	--bs-pagination-active-border-color: #343a40;
	--bs-pagination-disabled-color: var(--bs-secondary-color);
	--bs-pagination-disabled-bg: var(--bs-secondary-bg);
	--bs-pagination-disabled-border-color: var(--bs-border-color);
	display: flex;
	padding-left: 0;
	list-style: none;
}

.slider-selection {
	background-image: linear-gradient(to bottom, #B8B8B8, #f5f5f5) !important;
}

.slider-handle {
  background-image: linear-gradient(to bottom, #343a40, #343a40) !important;
  top: 2px;
  width: 15px;
  height: 15px;
}


.slider-container .form-control, .layover-length-slider-container .form-control {
  width: 57px !important;
	height: calc(1.8rem + 2px) !important;
}

.slider-container .form-control.single-digit-input {
  width: 35px !important;
}

.form-control.two-digit-input {
  width: 40px !important;
}

.slider {
  width: 80% !important;
  max-width: 175px;
  min-width: 90px;
}

.avoid-name-entry {
  max-width: 350px;
}

.date-picker-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  max-width: 350px;
  background-color: white;
}

.day-time-picker-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  /* padding: 2px; */
  max-width: 200px;
  background-color: white;
  justify-content: center;
}

.date-picker-input {
  border: none !important;
  outline: none !important;
  max-width: 140px;
}

.day-time-picker-input {
  padding: 0;
}

.event-row-bubble {
  border: 1px solid #ced4da;
  border-radius: 5px;
  background-color: #ecf4fc;
  height: 40px;
  align-content: center;
}

.recurring-event-row-bubble {
  border: 1px solid #ced4da;
  border-radius: 5px;
  background-color: #fcf1e5;
  height: 40px;
  align-content: center;
}

#avoidDaysTable thead, #avoidRecurringDaysTable thead {
  display: none;
}

/* Remove borders between rows for the specific table */
#avoidDaysTable tbody tr, #avoidRecurringDaysTable tbody tr {
  border-bottom: #fff;
  border-top: #fff;
}

/* #avoidDaysTable table th {
  border-top: #fff !important;
} */

#avoidDaysTable.table td, 
#avoidDaysTable.table th,
#avoidRecurringDaysTable.table td,
#avoidRecurringDaysTable.table th {
    border-top: #fff !important;
}

.delete-avoid-event-icon {
  cursor: pointer;
  z-index: 100;
}

.edit-avoid-event-icon {
  cursor: pointer;
  z-index: 100;
}

/* Custom styling for days of the week in two rows */
.day-dropdown-item {
  display: inline-block;
  width: 25%; /* Adjust the width to fit 4 items per row */
  text-align: center;
  padding: 5px;
}
.day-dropdown-item:hover, .close-time-picker-dropdown-icon:hover {
  background-color: #e9ecef;
  border-radius: 25px;
}

.close-time-picker-dropdown-icon, .reset-time-picker-dropdown-icon {
  display: inline-block; /* Ensures margins are part of the hover area */
  padding: 20px; /* Adjust padding to extend the hover effect */
  border-radius: 25px;
}

.close-time-picker-dropdown-icon:hover, .reset-time-picker-dropdown-icon:hover {
  background-color: #e9ecef;
  cursor: pointer;
}

.start-day-dropdown-menu, .end-day-dropdown-menu {
  padding: 3px;
  text-align: center;
  width: 100%;
  position: absolute;
  z-index: 1050; 
}

#avoidRecurringStartTimePicker .tempus-dominus-widget, #avoidRecurringEndTimePicker .tempus-dominus-widget {
	box-shadow: none;
	list-style: none;
	padding: 4px;
	width: 100%;
	z-index: 9999;
  border-top: #000000;
}

#avoidRecurringStartTimePicker .time-container-clock, #avoidRecurringEndTimePicker .time-container-clock {
	width: 100% !important;
  display: grid;
	grid-auto-rows: 25px;
}

#avoidRecurringStartTimePicker .time-container, #avoidRecurringEndTimePicker .time-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

#avoidRecurringStartTimePicker .tempus-dominus-widget .date-container-days div:not(.no-highlight), .tempus-dominus-widget .date-container-decades div:not(.no-highlight), .tempus-dominus-widget .date-container-months div:not(.no-highlight), .tempus-dominus-widget .date-container-years div:not(.no-highlight), .tempus-dominus-widget .time-container-clock div:not(.no-highlight), .tempus-dominus-widget .time-container-hour div:not(.no-highlight), .tempus-dominus-widget .time-container-minute div:not(.no-highlight), .tempus-dominus-widget .time-container-second div:not(.no-highlight) {
	padding: 5px;
}

#avoidRecurringStartTimePicker .tempus-dominus-widget .time-container-hour, #avoidRecurringEndTimePicker .tempus-dominus-widget .time-container-hour {
	display: grid;
	grid-auto-rows: calc(2.71429rem - 1.14286px);
	grid-template-areas: "a a a a a a";
}

.day-time-picker-input {
  border: none !important;
  outline: none !important;
  max-width: 120px;
}

.avoid-specific-event-row {
  min-width: 210px;
}

.hidden-row {
  visibility: hidden;
  opacity: 0;
  height: 0;
  transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
}

.hidden-row.show {
  visibility: visible;
  opacity: 1;
  height: auto;
  display: flex;
}

.hidden-row-stationary {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.1s ease-in-out, height 0.1s ease-in-out;
}

.hidden-row-stationary.show {
  visibility: visible;
  opacity: 1;
}

.date-picker-error-message {
	right: 85px;
	position: relative;
}

.recurring-picker-error-message {
	right: 65px;
	position: relative;
}

.custom-popover {
  --bs-popover-body-padding-x: .6rem;
  --bs-popover-body-padding-y: .3rem;
}

.day-picker-input {
  width: 33px;
}

.calendar-accordion-button::after {
	display: block;
	position: relative;
	bottom: 23px;
}

.fc-toolbar-title {
  font-size: 1.25rem; /* Bootstrap h5 font size */
  font-weight: 500;
  color: inherit; /* Keep the default text color */
  margin: 0;
}

.fc {
	gap: 1em;
}

.fc-button {
	padding: 0.2em 0.3em;
}

.select2-search__field {
  background-color: white !important; 
}

/* Custom styling for the highlighted dates */
.fc-day.highlighted-date {
  background-color: #ffffff !important;
  color: black !important;
}

.fc-daygrid-day-header {
  /* background-color: #ffffff !important;
  color: black !important; */
  opacity: 1 !important;
}

/* Custom styling for the highlighted dates */
.fc-day {
  background-color: #f6f6f6 !important;
  color: #d2d2d2 !important;
}

.date-slider-input-container {
  max-width: 45px;
}

.month-day-text {
  position: relative;
  top: 1px;
}

.prior-viewed {
  opacity: .5;
}

.sidebar {
	height: calc(100vh - 10rem);
  z-index: 1031;
}

.table-content {
	height: calc(100vh - 15.5rem);
  z-index: 99;
}

.dt-scroll-body {
	max-height: calc(100vh - 25.5rem) !important;
  overflow-x: hidden !important;
}

.dt-scroll-head {
  overflow: visible !important;
}

/* Remove the border for screens smaller than the 'md' breakpoint */
@media (max-width: 767px) {
  .sidebar {
    border-right: none !important;
  }
  .dt-scroll-body {
    max-height: calc(100vh - 30rem) !important;
  }
}

.filter-container {
	border: 1px solid #c2c2c2;
	background: #f1f1f1;
	border-radius: 10px;
}

/* ===== Base checkbox styles (unchanged) ===== */
.form-check-input:checked[type="checkbox"] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
  border-color: rgb(0, 0, 0);
}

.form-check-input[type="checkbox"] {
  border-radius: 0.25em;
  border-color: rgb(129, 129, 129);
  background-color: white;
}

/* ===== Shared focus style ===== */
:focus-visible,
.form-control:focus,
.form-check-input:focus,
.btn:focus,
.btn-check:focus + .btn,
.form-select:focus {
  outline: none;
  box-shadow: none;
  border-color: rgb(129, 129, 129);
}

/* ===== Switch Styling (custom, blue-free) ===== */
.form-switch .form-check-input {
  width: 2.5em;
  height: 1.25em;
  background-color: #fff !important;
  border: 1.5px solid rgb(129, 129, 129);
  border-radius: 1.25em;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;

  /* Kill Bootstrap defaults */
  --bs-form-switch-bg: none;
  --bs-form-check-bg-image: none;
  accent-color: initial;
  background-image: none !important;
}

/* The small thumb (slider knob) */
.form-switch .form-check-input::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 1em;
  height: 1em;
  background-color: rgb(129, 129, 129);
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

/* When checked */
.form-switch .form-check-input:checked {
  background-color: #000 !important;
  border-color: #000 !important;
}

.form-switch .form-check-input:checked::before {
  background-color: #fff;
  transform: translateX(1.25em);
}

/* Focus (optional cleanup) */
.form-switch .form-check-input:focus {
  outline: none;
  box-shadow: none;
}

/* Default: full width (xs) */
.view-days-slider-container {
    width: 100%;
}

/* sm (≥ 576px) */
@media (min-width: 600px) {
    .view-days-slider-container {
        width: 200px;
    }
}

/* sm (≥ 576px) */
@media (min-width: 651px) {
    .view-days-slider-container {
        width: 300px;
    }
}

/* md (≥ 768px) */
@media (min-width: 768px) {
    .view-days-slider-container {
        width: 100%;
    }
}

/* lg (≥ 992px) */
@media (min-width: 992px) {
    .view-days-slider-container {
        width: 300px;
    }
}

/* Default (xs - 768px) use whatever you want, e.g., justify-content-center already applied */
@media (min-width: 768px) and (max-width: 831px) {
    .custom-justify-md-831 {
        justify-content: center !important;
    }
    .slider-col-md-831 {
      flex: 0 0 100%;
      max-width: 100%;
    }
    .d-inline-md-831 {
      display: inline !important;
    }
}

.column-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 220px;
}

.column-item {
    display: flex;
}

/* ---- Your button styling (unchanged) ---- */
.column-item button.btn-stack {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    width: 100%;
    cursor: grab;
    background-color: transparent; /* keep consistent background */
    border: 1px solid #343a40;
    color: #343a40;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    text-align: left;
}

.column-item button.btn-stack:hover {
    background-color: transparent; /* prevent hover color change */
    color: #343a40;
}

.btn-stack input[type="checkbox"] {
    margin: 0;
}

/* ---- Drag handle (enhanced, but visually unchanged) ---- */
.btn-stack .drag-handle {
    color: #6c757d;
    cursor: grab;
    touch-action: none;      /* REQUIRED for touch dragging */
    padding: 4px;            /* easier touch target */
}

.btn-stack .drag-handle:active {
    cursor: grabbing;
}

/* ---- Dragging state (visual feedback) ---- */
.column-item.dragging {
    opacity: 0.6;
    z-index: 10;
}

/* ---- Placeholder keeps layout stable while dragging ---- */
.column-placeholder {
    border: 2px dashed #adb5bd;
    border-radius: 4px;
    margin: 2px 0;
}

/* Prevent button color changes on click / focus */
.column-item .btn-stack,
.column-item .btn-stack:focus,
.column-item .btn-stack:active,
.column-item .btn-stack:focus-visible,
.column-item .btn-stack.active {
    background-color: transparent !important;
    color: #343a40 !important;
    box-shadow: none !important;
    outline: none !important;
}

.column-item button.btn-stack {
    cursor: default;
}