html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.min-vh-75 {
    min-height: 75vh;
}

html {
    overflow-y: scroll;
}

body, html {
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Override Bootstrap 5 Select2 stylesheet */
.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
    box-shadow: none !important;
}

/* Override Bootstrap 5 DataTable stylesheet */
table.dataTable th.dt-right,
table.dataTable td.dt-right,
table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
    text-align: left;
}
table.dataTable th.dt-right div.dt-column-header,
table.dataTable th.dt-right div.dt-column-footer,
table.dataTable td.dt-right div.dt-column-header,
table.dataTable td.dt-right div.dt-column-footer {
    flex-direction: row;
}
div.dt-container div.dt-search {
    text-align: center;
}

.nav-link {
    color: white !important;
}
.nav-link:hover {
    color: lightgray !important;
    text-decoration: underline;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.bg-brand-blue {
    background-color: var(--bs-brand-darkblue) !important;
}

.btn-primary {
    --bs-btn-bg: var(--bs-brand-darkblue);
    --bs-btn-border-color: var(--bs-brand-darkblue);
    --bs-btn-hover-bg: #002d5a; /* A slightly lighter shade for the hover effect */
    --bs-btn-hover-border-color: #002d5a;
}

.container-fluid {
    width: 80vw;
    flex: 1 0 auto;
}

h1, h2 {
    font-size: 28px;
}

h2 {
    font-weight: normal;
}

table thead {
    position: sticky;
}

.row-hover:hover {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    color: var(--bs-table-hover-color);
}

.dt-layout-table {
    padding-top: 8px;
    padding-bottom: 8px;
}

.dt-scroll-body {
    border-bottom-width: 1px !important;
    border-color: var(--bs-gray-300) !important;
}

#lettingsTable_wrapper .dt-layout-row:first-child {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 0.75rem;
}
#lettingsTable_wrapper .dt-layout-row:first-child .dt-layout-cell,
#lettingsTable_wrapper .dt-layout-row:first-child .dt-layout-start,
#lettingsTable_wrapper .dt-layout-row:first-child .dt-layout-end
#projectsTable_wrapper .dt-layout-row:first-child .dt-layout-cell,
#projectsTable_wrapper .dt-layout-row:first-child .dt-layout-start,
#projectsTable_wrapper .dt-layout-row:first-child .dt-layout-end {
    margin-inline: 0 !important;
}
#lettingsTable_wrapper .dt-search,
#projectsTable_wrapper .dt-search {
    display: flex;
    align-items: center;
    justify-content: center;
}

#lettingsTable_wrapper .dt-search input {
    width: 345px;
    max-width: 100%;
}
#lettingDates {
    width: 195px;
}

#projectsTable_wrapper .dt-search input {
    width: 300px;
    max-width: 100%;
}
#vendors {
    width: 370px;
}

#upcomingTable_wrapper .dt-search input {
    width: 350px;
    max-width: 100%;
}

#btnBackToTop {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: 1px solid white;
    outline: none;
    background-color: var(--bs-brand-darkblue);
    color: white;
    cursor: pointer;
    font-size: 40px;
    padding: 0px 10px;
}
#btnBackToTop:hover {
    background-color: #0084ff;
}

footer {
    width: 100%;
    height: 100px;
    z-index: 3;
}
footer a {
    color: white;
    text-decoration: none;
    margin-right: 5px;
}
footer a:hover {
    color: lightgray;
    text-decoration: underline;
}