:root {
  --color-lines: #a6a6a6;
  --reservable: #ffffff;
  --unreservable: #b3b3b3;
  --reserved: #198754;
  --reservedMine: #0097d9;
  --reservedParticipating: #875cae;
  --reservedPending: #f0b400;
  --pasttime: #b3b3b3;
  --hiliteReservation: #79bf40;
  --label-text-on-light: #000;
  --label-text-on-dark: #ffffff;
  --bs-secondary-bg: #01132b;
  --bs-accordion-btn-color: #fff;
  --bs-accordion-active-color: #fff;
  --bs-accordion-active-bg: #fff;
}

/**********************************************************
	Header
**********************************************************/

#logo {
  margin: 30px auto;
  width: 100%;
  max-width: 980px;
}

#logo img {
  width: 100%;
}

.login-logo img {
  width: 143px !important;
}

#navSignOut a {
  background: linear-gradient(to bottom, #ff3019 0%, #cf0404 100%);
  color: #fff !important;
  border-radius: 6px;
  display: flex;
  overflow: hidden;
}

body > div.d-flex {
  background-color: #01132b;
  margin-block: 0 !important;
  margin-inline: 0 !important;
  padding: 1rem;

  .link-primary {
    color: #fff !important;
  }
}

/****************************************************
    Body
****************************************************/

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

#page-dashboard {
  max-width: 980px;
  margin: 0 auto;

  .resourceName {
    background-color: transparent;
    a {
      font-size: 16px;
    }
  }
}

#page-manage-resources,
#page-reservation {
  width: min(100% - 1rem, 80rem);
  margin-inline: auto;
}

/****************************************************
    Buttons
****************************************************/

[data-bs-theme="default"] {
  --primary: #01132b;
  --primary-hover: color-mix(in oklab, var(--primary) 80%, black);
  --primary-disabled: color-mix(in oklab, var(--primary) 40%, white);
  --text-color-btn: #ffffff;
}

.accordion-button,
.accordion-button:not(.collapsed),
.accordion-button.collapsed {
  background-color: #001838 !important;
  color: #fff !important;
}

/* Pagination */
.pagination {
  --bs-pagination-disabled-color: #fff;
}

.btn-outline-secondary {
  --bs-btn-bg: #d11b1b;
  color: #fff;
  border-color: transparent;
}

/****************************************************
    Footer 
****************************************************/

body > footer {
  display: none;
}

#form-reservation {
  background: #fff;
  padding: 1rem 2rem;
  border-radius: 5px;

  & > div:nth-child(1) {
    padding: 12px 18px;
    text-decoration: none;
    margin: 0 0 20px 0;
    background: -webkit-linear-gradient(
      10deg,
      #084ea8 39%,
      rgb(8, 80, 173) 53%,
      #001838 80%
    );
    background: -o-linear-gradient(
      10deg,
      #084ea8 39%,
      rgb(8, 80, 173) 53%,
      #001838 80%
    );
    background: linear-gradient(
      100deg,
      #084ea8 39%,
      rgb(8, 80, 173) 53%,
      #001838 80%
    );
    color: #fff;
    overflow: hidden;
  }
}

/*********************************************************
	Dashboard
*********************************************************/

#dashboardList > div:nth-child(2),
#dashboardList > div:last-child {
  display: none;
}

#ResourceAvailabilityContents {
  & > div > div:nth-child(1) {
    background: green;
    color: #fff;
    border-radius: 6px;
  }

  .text-body-secondary {
    display: none;
  }

  .header {
    padding: 0.25em 0.5em;
  }
}

/*********************************************************
	Login Page
*********************************************************/

#page-login {
  & > div {
    width: min(calc(100% - 2rem), 500px);
  }

  .login-icon img {
    max-width: 150px;
    margin-block: 3rem;
  }

  .shadow {
    border: none;
  }
  .card-body {
    background-color: unset;
  }
}

/*********************************************************
	Navigation
*********************************************************/
#librebooking-navigation .navbar-right {
  & #navLogIn,
  & #navScheduleDropdown,
  & #navHelp,
  & #navAbout {
    display: none;
  }
}

/*********************************************************
	Schedule
*********************************************************/
#reservations {
  width: 100% !important;
}

#schedule-actions {
  display: none;
}

#page-schedule {
  #reservations-left,
  .toggle-sidebar,
  div:nth-child(9),
  div:nth-child(10) {
    display: none;
  }
}

#schedule-title {
  margin-inline: auto;
}

div.legend {
  line-height: 30px;
  border: solid #ffffff 1px;
  text-align: center;
  display: flex;
  margin: 0px;
}

.schedule-legend {
  margin-bottom: 1rem;

  .reservable,
  .pasttime,
  .unreservable {
    display: none !important;
  }
}

.restricted {
  background: url(../img/stripe.bg.red.png);
  color: black;
}

#datepicker > div {
  width: 100% !important;
  display: block;
  padding: 0px 16px;
  border: none;
}

td.resdate {
  width: 150px;
  padding: 0 3px;
  background-color: #001838 !important;
  color: #fff !important;
}

table.reservations td {
  border: solid #e2e2e2 1px;
  height: 30px;
  display: table-cell;
  font-size: 13px;
  text-align: left;
}

.resourceNameSelector,
a.resourceNameSelector,
td.resourcename > a,
td.resourcename > a:hover {
  cursor: pointer;
  color: #000 !important;
  font-size: 13px;
  padding: 10px 4px;
  text-decoration: none;
}

.reslabel {
  text-align: center !important;
}

#page-schedule {
  width: 90vw;
  width: 90dvw;
  margin-inline: auto;
}

tr.today td.resdate,
td.today {
  font-weight: bold;
  background-color: #474747 !important;
}

tr.today td.resdate,
td.today,
td.resdate {
  text-align: center !important;
}

td.reserved {
  text-align: center !important;
}

tr.today td.resdate,
td.today {
  background: #2dbbf9 !important;
  color: #001838 !important;
}

table.reservations tr.today td.reslabel {
  background-color: #e4f7ff;
}

.border-bottom {
  margin-block-end: 1rem;
}

.bg-primary {
  background-color: #569ff7 !important;
}

.reserved {
  color: #fff !important;
}
