/* Backend specific CSS */

/* ----------------------------
SOMMAIRE
---------------------------

1. GENERAL
  1.1 Typo
  1.2 Button
  1.3 Form
  1.4 Table

2. LAYOUT
  2.1 Navigation
  2.2 Sidebar
  2.3 Content
    2.3.1 Calendar/Calendrier
    2.3.2 Home
    2.3.3 Legend
    2.3.4 Breadcrumbs
    2.3.5 Footer
    2.3.6 Dashboard
    2.3.7 Videos
  2.4 Admin
    2.4.1 Pagination
    2.4.2 Filtres

*/

/*
Specific to Admin : Override Boostrap variables
*/
:root{
  --bs-font-sans-serif: 'Poppins', 'Open Sans', sans-serif;
  --bs-border-radius: 0.25rem !important;
  --bs-body-color: var(--body-color);
  --bs-nav-link-font-size: .9rem;
  --bs-body-font-size: .9rem;
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-hover);
}

body{
  font-family: var(--bs-font-sans-serif);
}
a:hover{
  text-decoration: none;
}

/* 1. GENERAL */

/* 1.1 Typo */

.lead{
  font-size: 1.2rem;
}
.text-primary{
  color:var(--primary)!important;
}

.badge{
  font-weight: normal;
}

.uppercase{
  text-transform: uppercase;
}

h1,.h1,h2,.h2,h3,.h3,h4,.h4{
  font-family: var(--heading-font-family);
  color: var(--heading-color);
}

h2{
  color: #53545e;
}

a {
  color: var(--link-color);
  text-decoration: var(--link-decoration);
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
}

span[class*='material-symbols']{
  font-size:1.3rem;
}

span > span[class*='material-symbols'], strong > span[class*='material-symbols'], small > span[class*='material-symbols']{
    display: inline-flex;
    vertical-align: top;
}

span.tooltip-icon{
    font-size:1rem !important;
    color:var(--secondary);
    margin-left:4px;
    cursor:help;
}

.cursor-help{
    cursor:help;
}

/* 1.2 Button & icons */

.btn{
  border-radius: var(--bs-border-radius);
  font-size:var(--bs-body-font-size);
}
.btn:not(.btn-block), span.badge, li.page-item a, #dashboard-cards h5{
  display: inline-flex;
  align-items: center;
}
.btn span[class*='material-symbols'] {
  font-size: 1rem;
  margin-right: 0.5rem;
}
.badge span[class*='material-symbols'] {
  font-size: .9rem;
  margin-right: 0.2rem;
}

@media (max-width: 768px){
  .inner-nav-btns a, inner-nav-btns button{
    width:100%;
    margin-bottom: 12px;
  }
}

.alert span[class*='material-symbols']{
  margin-right: 0.5rem;
  font-size: 1.1rem;
  }

/* 1.3 Form */

.form-label{
  margin-bottom: 0;
}
.form-control,
.form-select{
  border-radius: var(--bs-border-radius);
}

.form-group {
  margin-bottom: 1rem;
}

/* 1.4 Table */

tbody,
td,
tfoot,
th,
thead,
tr {
  font-size: var(--bs-body-font-size);
  vertical-align: middle;
  border-color: #e5e6e7;
}
.table-hover > tbody > tr:hover {
  --bs-table-accent-bg: rgb(246 247 250);
  color: var(--color-base);
}

table.table-valign tr td, table.table-valign tr th{
  vertical-align: middle;
}

th > a:not(.btn) > span[class*='material-symbols'],
td > a:not(.btn) > span[class*='material-symbols'],
th > span[class*='material-symbols'],
td > span[class*='material-symbols']{
  transform: translateY(3px);
}

.table-striped tr.active-line:nth-child(even){
    background-color: #dceccc !important;
  }
  .table-striped tr.active-line:nth-child(odd){
    background-color: #d5e3c7 !important;
  }
  .table-striped tr.active-line:hover{
    background-color: #cbd9be !important;
  }

  .table-striped tr.deleted-line:nth-child(even){
    background-color: #f4d0d0 !important;
  }
  .table-striped tr.deleted-line:nth-child(odd){
    background-color: #ffc8c8 !important;
  }
  .table-striped tr.deleted-line:hover{
    background-color: #e8c1c1 !important;
  }

  .table-striped tr.idle-line:nth-child(even){
    background-color: #c4e6f0 !important;
  }
  .table-striped tr.idle-line:nth-child(odd){
    background-color: #badbe1 !important;
  }
  .table-striped tr.idle-line:hover{
    background-color: #b7dee8 !important;
  }

/* 2. LAYOUT */
#pending-count-top{
    font-size: .7rem;
}

/* 2.1 Navigation */

.nav-brand img{
  max-height: 50px;
  /* min-width: 130px; */
}
header .nav-link{
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: 1px;
  display: flex;
  color: #363636;
  align-items: center;
  font-weight: 500;
}
header .nav-link:hover{
  color:var(--primary);
}
header .nav-link span[class*='material-symbols']{
  font-size: 14px;
  margin-right: 0.5rem;
  color:var(--primary);
}

@media (max-width: 768px){
  .nav.my-2{
    margin: 0 !important;
  }
}
@media (max-width: 576px){
  header .nav-link{
    border-radius: 50%;
    width: 46px;
    padding: 8px 0;
    justify-content: center;
  }
  header .nav-link:hover{
    background-color: #fff
  }
  .nav-link span{
    display: none;
  }
  header .nav-link span[class*='material-symbols']{
    margin: 0;
  }
  header .nav-link:hover span[class*='material-symbols']{
    color:#000;
  }
}

/* Header navbar */
header > div{
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0px 0px 23px -4px rgb(56 57 66 / 20%);
}

/* 2.2 Sidebar */

#sidebar .accordion{
	box-shadow: 0px 0px 23px -4px rgb(56 57 66 / 20%);
    border-radius: var(--bs-border-radius);
}
#sidebar .accordion-button{
	font-weight: 700;
  font-size:var(--bs-nav-link-font-size)
}
#sidebar .accordion-button:hover{
	color: var(--primary);
}
#sidebar .accordion-button:not(.collapsed){
    color: #fff;
    background-color: var(--primary);
}
#sidebar .accordion-button:not(.collapsed):hover,
.accordion-button:not(.collapsed):after{
	color: #fff;
}
#sidebar .accordion-body{
	padding:0;
}


#sidebar .nav-link {
	color: var(--bs-body-color);
	padding:calc(var(--bs-nav-link-padding-y)*1.5) var(--bs-nav-link-padding-x);
	background-color: var(--bs-gray-200) !important;
	border-radius: 0;
	font-size: .9rem;
}
#sidebar .nav-link:focus,
#sidebar .nav-link:hover {
	color: var(--bs-body-color);
}
#sidebar .nav-link span[class*='material-symbols']{
	font-size: 14px;
	margin-right: 0.1rem;
}
/* #sidebar .nav-pills .nav-link.active, #sidebar .nav-pills .nav-link.active:hover,
  #sidebar .nav-pills .show>.nav-link{
    background-color: var(--bs-gray-500);
    color:#fff;
  } */
#sidebar .nav-link:hover, #sidebar .nav-link.active {
	background-color: var(--bs-gray-400) !important;
}
#sidebar ul li a {
	display: block;
}
#sidebar ul li a span[class*='material-symbols']{
	width: 20px;
	transition: all 0.2s linear;
  transform: translateY(2px);
}

@media (max-width: 767px){
  #sidebar{
    margin: 1rem 0px 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  main{
    margin-top: 2rem;
  }
  button[data-bs-toggle="collapse"] span[class*='material-symbols']{
    display: inline-block;
    height: 17px;
    transition: all 0.2s linear;
  }
  button[data-bs-toggle="collapse"]:not(.collapsed) span[class*='material-symbols']{
    transform: rotate(180deg);
  }
}

@media (min-width: 768px){
  #sidebar{
    position: relative;
  }
  #sidebar > div{
    position: sticky;
    top: 0;
    left: 0;
  }
}

/* 2.3 Content */

/* 2.3.1 Calendar */

.calendar_default_main{
  font-family: var(--bs-font-sans-serif) !important;
}

.home__calendar .weekchoice {
  display: flex;
  padding: 0.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  background-color: var(--bs-border-color);
  border-radius: var(--bs-border-radius);
}


.calendar_white_colheader,
.calendar_white_corner{
  height: 52px !important;
  line-height: 1.25;
}
.date-detail{
  display: block;
  font-size: 0.8rem;
  color: var(--bs-gray-600);
}
.date-detail:last-child{
  font-weight: 700 !important;
  font-size: 1.5rem;
  color: #212529;
}

@media (max-width: 767px){
  .home__calendar .calendar_white_main{
    overflow-x: scroll;
  }
  .home__calendar .calendar_white_main > div{
    min-width: 767px;
  }
}
@media (max-width: 576px){
  .calendar_white_colheader,
  .calendar_white_corner{
    height: 40px;
  }
  /* .date-detail:first-child{
    display: none;
  } */
  .date-detail:last-child{
    font-size: 1.2rem;
    padding-top: 7px;
  }
}

/* 2.3.2 Home */

.home__form .form-create-appointment {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}
#home-admin-form {
  background-color: var(--bs-border-color);
}

@media (min-width: 768px){
  body > .row{
    margin: 0;
    min-height: calc(100vh - 62px);
  }
  body > .row > div, body > .row > aside{
    padding-top: 1rem;
  }
  #home-admin-form{
    position: relative;
  }
  .home-form-inner{
    position: sticky;
    top: 0;
    left: 0;
  }
}

@media (max-width: 767px){
  body > .row{
    max-width: 100%;
    margin: 0;
  }
  #home-admin-form {
    margin: 1rem 0px 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.home-stat{
  font-size: 3rem;
}
.home-stat a{
  text-decoration:none;
}

.loading-block{
    height:100px;
    background-image: url('/assets/images/loader-ring.gif');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
}

#home-stats ul{
    list-style: none;
    padding: 0;
    margin-top:1rem;
    margin-bottom: 0;
}

h5.card-title > small{
    font-size: 0.9rem;
    margin-left:12px;
    margin-top: 4px;
    color: var(--bs-gray-600);
}

/* 2.3.3 Legend */

.legend{
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0.75rem 0.75rem 0;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: var(--bs-border-radius);
}

label.required, legend.required{
  font-weight: bold;
}

.dual_passwd > div > div:nth-child(2){
  margin-bottom: 0 !important;
}

.room-container{
  display: flex;
  gap: 0.5rem;
  flex-basis: calc(50% - 0.5rem);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  align-items: center;
  margin-bottom: 0.5rem;
}
.descr-room{
  font-size: .85rem;
  line-height: 1.1;
  font-style: italic;
  color: var(--bs-gray-600);
}

.room{
  height: 20px;
  width: 33.33%;
  border-radius: var(--bs-border-radius);
}

.room-one{
  background-color: rgb(61, 64, 255);
}
.room-two{
  background-color: rgb(209, 26, 93);
}
.room-three{
  background-color: rgb(235, 132, 49);
}
.room-four{
  background-color: rgb(36, 163, 160);
}

@media (min-width: 1200px) and (max-width: 1370px){
  .room-container{
    flex-basis: 100%;
  }
  .room{
    width: 25%;
  }
}
@media (max-width: 767px){
  .legend{
    border-width: 0 0 1px 0;
    padding: 0.75rem 0 0;
    border-radius: 0;
  }
}
@media (min-width: 450px) and (max-width: 767px){
  .room-container{
    flex-basis: 25%;
  }
}

@media (min-width: 767px){
  .legend{
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }
  .room-container{
    width: 70%;
  }
}

/* 2.3.4 Breadcrumbs */
ol.breadcrumb{
    background-color: #e9ecef;
    border-radius: var(--bs-border-radius);
    font-size: .8rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: .75rem 1.5rem;
}
ol.breadcrumb a,
.breadcrumb-item+.breadcrumb-item:before,
.breadcrumb-item{
    color:var(--bs-gray-700);
}
ol.breadcrumb a:hover{
    color:var(--bs-body-color);
}


/* 2.3.5 Footer */

footer {
  padding-top: 3rem !important;
  padding-bottom: 1rem !important;
  /*position: absolute;
  bottom: 0;
  left: 0;*/
  width: 100%;
}

footer p {
  margin-bottom: .25rem;
  color:#b1c0cf;
}

footer p a{
  text-decoration: none;
}
footer p a:hover{
  text-decoration: underline;
}

footer small span[class*='material-symbols']{
  font-size:1.3rem;
}

/* 2.3.6 Dashboard */
div.chart-container{
  position: relative;
  width:100%;
}

/* 2.3.7 Videos */
.video-preview{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height:120px;
    width:200px;
    cursor: pointer;
    position: relative;
}
.video-preview span[class*='material-symbols']{
    color:white;
    font-size:30px;
    position:absolute;
    left: 43%;
    top: 38%;
}

/* 2.4 Admin */

/* 2.4.1 Pagination */
.pagination{
  display: flex;
  gap: .5rem;
}
.pagination .page-link, .pagination .page-item{
  font-size:.9rem;
}

/* 2.4.2 Filters */
.card{
  padding: 20px 16px;
  box-shadow: 0px 0px 23px -4px rgb(56 57 66 / 20%);
  /*border-radius: var(--border-radius);*/
  border:0;
}


/* 2.5 Login & forgot password */
section.login-wrapper{
  background-image: url("/assets/images/ges/login-bg.webp");
  background-position: center;
  background-size: auto 100%;
}

img.login-logo {
  width:100%;
}

@media (max-width: 1200px){
  section.login-wrapper{
      background-size: auto 100%;
  }
}

.login-prompt{
  border-radius: 1rem;
  box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
}
section.login-wrapper button{
  font-size:1.3rem;
}
section.login-wrapper button > span[class*='material-symbols']{
  font-size: inherit;
  transform: translateY(3px);
}
section.login-wrapper small > span[class*='material-symbols']{
  font-size:1.15rem;
}
