:root {
  --primary   : #000;
  --sec : #ffffff;
  --brand  : #294456;
  --brand_light :#5288ac;
  --brand_very_light :#c3dae9;
  --error : #f03a3a;
  --positive: #007e00;
}

/* -------------------------------GLOBAL---------------------------------------- */

*{
  font-family: Tahoma,'Segoe UI',  Geneva, Verdana, sans-serif;
}
html {
  font-size: 14px;
}
body{
  margin: 0;
  overflow: hidden;
}
h1,h2,h3,h4{
  margin: 0px!important;
  text-align: center;
}
p{
  margin: 0;
  display: inline;
}

button{
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
}

input[type="text"], input[type="number"], input[type="email"] ,select,textarea{
  box-shadow:  inset 0px 0px 2px 1px #9995;
  border: none;
  border-radius: 3px; 
  /* height: 24px; */
  width: 80%;
  padding: 8px;
}

textarea::-webkit-resizer {
  border-width: 4px;
  border-style: double;
  border-color: transparent #9995 #9995 transparent;
}

.brand{
  background-color: var(--brand);
}


#grid_container{
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: 10vh 1fr ;
  height: 100vh;
  grid-template-areas: 
  "head head"
  "nav main";
  /* transition: grid-template-columns 0.5s; */
}
#grid_container:has(#nav_panel.closed){
  grid-template-columns: 50px 1fr;
}
#grid_container:has(#nav_panel.closed)  .nav_butn_text{
  display: none;
}

#nav_panel.closed .nav_open_svg{
  rotate: 0deg;
}

.material-symbols-outlined {
  color: var(--brand);
  font-size: 1.5rem;
  cursor: pointer;
  font-variation-settings:
  'FILL' 1,
  'wght' 700,
  'GRAD' 0,
  'opsz' 48;
}

.brand_buttons{
  min-width: 80px;
  margin: 5px;
  padding: 5px;
  border-radius: 3px;
  border: none;
  font-weight: bold;
  color: var(--sec);
  background-color: var(--brand);
  white-space: nowrap;
}
.brand_buttons:hover{
  opacity: 0.8;
}

.dates{
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.hidden{
  display: none!important;
}


/* ----------------------------HEADER ---------------------------------------*/

.head_tab{
  background-color: var(--brand);
  position: relative;
  display: flex;
  align-items: center;
  grid-area: head;
  box-shadow: 0 1px 3px 0px;
  z-index: 2;
}

.logo_container{
  color: white; 
  width: 200px;
 
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  left: 0;
}

.dialog_box{
  position: fixed!important;
  padding: 15px;
 
  background-color: #fff;
  z-index: 2;
  box-shadow: 2px 2px 18px 1px;
  border-radius: 5px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
}
#user_head:active{
  scale: 1.05;
}

#user_dialog_box{
  right: 45px;
  top: 65px;
  width: 210px;
  height: 100px;
}


#branch_selector{
  width: 170px;
  background-color: var(--sec);
  padding: 6px 15px;
  border-radius: 2px;
  cursor: pointer;
  z-index: 3;
  position: relative;
}
#branch_selector i{
  transition: transform 0.3s ease-in-out;
  position: absolute; 
  right: 4px; 
  top: 4px;
}
.head_tab:has(#branch_dialog_box.open) i{
  transform : rotate(180deg);
}

#branch_dialog_box.open{
  max-height: 300px;
}

#branch_dialog_box{
  display: flex;
  right: 110.50px;
  top: 49px;
  width: 200px;
  max-height: 0px;
  transition: max-height 0.5s;
  position: fixed!important;
  padding: 0px;
  background-color: var(--sec);
  z-index: 2;
  box-shadow: 2px 2px 18px 1px;
  border-radius: 0 0 3px 3px;
  align-items: flex-start;
  flex-direction: column;
  overflow:hidden;
  border-top: 3px solid #9995;
}
#branch_dialog_box>div{
  width: calc(100% - 20px);
  box-sizing: border-box;
  margin: 7px 10px;
  border-radius: 3px;
}
#branch_dialog_box label{
  display: block;
  height: 24px;
  width: calc(100% - 6px);
  border-radius: 2px;
  margin-top: 1px;
  padding: 6px 3px 0px 3px ;
  cursor: pointer;
  border-bottom: 1px solid #9995;
}
#branch_dialog_box input{
  display: none;
}
#branch_dialog_box label:hover{
  background-color: #9993;
}


#new_branch_option{
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
#new_branch_option:hover{
  background-color: #9993;
}

/* ------------------------OVERLAYS----------------------------------------- */
.overlay{
  
  width: 100vw;
  top: 0px;
  height: 100vh;
  position: fixed;
  z-index: 5;
}

#loading>div, #loading > svg ,#alert_box > div{
  width: 100px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

#settings_page{
  position: absolute;
  padding: 0px;
  top: 0px;
  right: 0px;
  background-color: var(--sec);
  width: 0%;
  height: 100%;
  border-radius: 10px 0 0 10px;
  transition: width 0.75s , box-shadow 1s, padding 0.75s;
  z-index: 3;
}
#settings_page.open{
  box-shadow: -2px 0px 11px 4px #6666;
  width: 50%;
  padding: 10px;
}


#settings_page  .collapsible li{
  margin: 10px;
  box-shadow: 0px 1px 5px 0px #9995;
}


#settings_page  .collapsible_body {
  /* padding: 10px; */
  gap: 0px;
}
#settings_page  .collapsible_body>*{
  padding: 5px; margin: 5px;
}

#settings_page td{
  padding: 5px 10px;
}

#settings_page tr:hover .edit_icon{
  visibility: visible;
}

#settings_details{
  overflow-y: scroll;
  height: calc(100% - 237px);
  box-shadow: inset 0 0 3px 0px #9995;
  padding: 5px;
  border-radius: 5px;
}

.edit_icon{
  visibility: hidden;
}




#logo_editer{
  width: 100px;
  display: block;
  height: 100px;
  background-color: var(--brand_very_light);
  border-radius: 50%;
  position: relative;
  margin: auto;
  overflow: hidden;
}

#logo_editer *{
  position: absolute;
  top: 50%;
  left: 50%;
  translate : -50% -50%;
}

#logo_editer span{
  opacity: 0;
  scale : 1.4;
  transition: opacity 0.5s;
  color: var(--sec);
}
#logo_editer:hover span{
  opacity: 1;
}


#toast {
  bottom: 50px;
  background-color: rgba(0, 0, 0, 0.50);
  color: #fff;
  padding: 5px 20px;
  border-radius: 15px;
  font-size: 16px;
  white-space: nowrap;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.75s;
  z-index: 5;
}

#progress_bar{
  background-color: #11294045; 
  display: none; 
}
#progress_bar>div{
  width: 300px; 
  background-color: #fff; 
  border-radius: 5px; 
  position: fixed; 
  top: 50%; 
  left: 50%; 
  translate: -50% -50%; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-around; 
  padding: 12px;
}

#progress_bar_input{
  position: absolute; 
  background-color: var(--primary); 
  width: 0%; 
  border-radius: 2px;
  height: 15px; 
  border: 2px solid transparent;
}


/* ----------------------------NAV PANEL ---------------------------------------*/
#nav_panel{
  grid-area: nav;
  background-color: var(--brand);
  position: relative;
}

#nav_list>*{
  padding:  0px;
  width: 100%;
}

#nav_list{
  list-style-type: none; /* Remove bullets */
  padding: 0;
  margin: 0;
  
}

.nav_butn{
  width: 100%;
  border-radius:0;
  border: none;
  border-bottom: 2px solid var(--brand);
  padding: 8px 6px ;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand);
  font-size: 1rem;
  /* border-bottom: 2px solid var(--pr_dark);
  border-left: 2px solid var(--pr_dark); */
    
}


.nav_butn:active {
  
  box-shadow: 0 1px var(--brand);
  transform: translateY(1px) translateX(-1px);
}

.nav_butn:hover {
  transform: scale(1.02);
  border-bottom: 1.5px solid var(--primary);
}

.nav_butn_text{
  padding-left: 10px;
  margin-right: auto;
  color: white;
}

.nav_opener{
  background-color: var(--primary);
  border-radius: 0px;
  position: absolute;
  bottom: 0;
}

.nav_open_svg{
  rotate: -180deg;
  transition: rotate 0.2s;
}


/* ----------------------------MAIN SCREEN ---------------------------------------*/
#main_screen{
  grid-area: main;
  height: 90vh;
  position: relative;
}
#main_screen > *{
  background-color: var(--brand_very_light);
  overflow-y: auto;  
  height: 100%;
}

.datatab{
  position: relative;
}

.datatab th, .datatab td {
  padding: 4px;
  text-align: left;
  border-bottom: 3px solid #ddd5;
}


.datatab th {
  padding: 10px 4px;
  background-color: #f2f2f2;
  font-weight: bold;
  /* position: sticky; */
    top: 0px;
}
/* .datatab tr{
  border: 2px solid #999;
  display: table;
  width: 100%;
  table-layout: fixed;
}
.datatab tbody{
  display: block;
  overflow-y: scroll;
  table-layout: fixed;
} */

.datatab tr:hover {
  background-color: #f5f5f5;
}

.filter_flex{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  padding: 0!important;
}

.filter_flex.open{
  max-height: 100px;
}

.filter_row{
  display: flex;
  align-items: center;
  padding: 10px 5px;
  justify-content: space-between;
}

.more_filters>span{
  transition: rotate 0.5s;
}

.big_cards:has(.filter_flex.open) .more_filters>span{
  rotate: 180deg;
}

.filters{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 110px;
  cursor: pointer;
  padding: 1px 5px;
  border: 2px solid #9999;
  border-radius: 3px;
  min-height: 25px;
}

.primary_drop{
  border: none;
  background-color: unset;
  font-size: 1.5rem;
  font-weight: bold;
}

.dropdown_butn::after{
  content: "\25bc";
}

.click_disable{
  color: #999;
  pointer-events: none;
  border: 2px solid #9995;
}




#dashboard{
  background-color: var(--brand_very_light);
}
.cards{
  margin: 0px 10px;
  background-color: var(--sec);
  border-radius: 3px;
  height: 100%;
  overflow: hidden;
}
.cards_heading{
  background-color:  var(--primary);
  padding: 15px 10px 5px 10px;
  text-align: center;
  font-size: 1rem;
  color: var(--sec)
}

.big_cards{
  margin: 10px;
  padding: 10px;
  background-color: var(--sec);
  border-radius: 5px;
}

.dash_dates{
  padding: 10px 20px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
 }


#clients_table >tbody> tr:hover .action_button{
  visibility :visible;
} 

.datatab tr:hover .action_button{
  visibility: visible;
}

.action_button{
  visibility: hidden;
}
.action_button::after{
  content: " \e7cd";
  font-family: Material Symbols Outlined;
  font-size: 1.6rem;
  color: #000000;
  font-variation-settings: 'FILL' 1;
}

.action_box{
  min-width: 120px;
  position: fixed;
  z-index: 1;
  background-color: white;
  display: flex;
  flex-direction: column;
  padding: 6px;
  box-shadow: -1px 3px 10px 2px;
  border-radius: 3px;
}

/* .action_box button{
  border: none;
  height: 30px;
  background-color: #294456;
  margin: 3px;
  border-radius: 2px;
  color: white;
}
.action_box button:hover{
  opacity: 0.8;
} */

.table_butn{
  width: 90%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  border: none;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-align: left;
}

.table_butn::after
{
  content: " \e8d5";
  font-family: Material Symbols Outlined;
  font-style: normal;
  font-weight: bold;
  text-decoration: inherit;
  width: 10px;
  margin: 3px;
  display: inline-block;

}

.asc:after {
  content: '\27a4';
  font-size: 10px;
  rotate: 90deg;
}

.desc:after {
  content: "\27a4";
  rotate: 270deg;
  font-size: 10px;
}


.dropdown{
  position: fixed;
  background-color: rgb(255, 255, 255);
  width: 122px;
  z-index: 1;
  border: 2px solid #9995;
  border-radius: 3px;
  padding: 5px;
  box-sizing: border-box;
  box-shadow: -2px 2px 8px 4px #9995;
}

.new_form_butn{
 position: fixed;
  right: 60px;
  bottom: 45px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: var(--brand);
  /* scale: 1.2; */
  z-index: 2;
}

.new_form_butn:hover{
  scale: 1.1;
}

#attendance_table td, #attendance_table th{
  padding: 5px 2px!important;
  font-size: 0.8rem;
  font-weight: bold;
  border-right: 1px solid #9993 ;
  white-space: nowrap;
}

.report_card{
  /* border: 1px solid #000000; */
  width: 50%;
  /* padding: 0px 10px; */
  position: relative;
  margin: 10px;
  height: 400px;
  overflow-y: scroll;
  overflow-x: hidden;
}




/* floating form */

.form_bg> h1{
  
  font-weight: bold !important;
  text-align: center;
  margin-top: 0px !important;
  margin-bottom: 10px;
  z-index: 1;
}

.form_bg{
  position: absolute;
  width: 100%;
  height: 100%;
  /* background-color: var(--sec); */
  z-index: 1;
}

.form-container {
  background-color: var(--sec);
  padding: 20px ;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  width: 600px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  

  
}

.grid_box{
 
display: grid;
grid-template-columns: 1fr 1fr;
gap: 25px;
}
.form-row{
  width: 100%;

}


/* Profile Page--------------------------------------------- */
.icon{
  cursor: pointer;
  color: var(--brand);
  padding: 6px;

}

#profiles th{
  background-color: inherit;
  border: none;
  padding: 8px;
  position: relative;
}

#profiles tr:hover{
  background-color: inherit;
}


#clients_profile td {
 text-align: left;
 border: none;
 padding: 8px;
}

#team_profile td {
  text-align: left;
  border: none;
  padding: 0px;
}

.b{
  font-weight: bold;
}

#profile_header{
  /* position: sticky; */
  background-color: var(--sec);
  top: 0;
  /* box-shadow: 0px 0px 5px 0px; */
  z-index: 1;
  padding: 10px; padding-top: 3px;
}

/* #clients_profile > *{
  padding: 8px;
} */

.package_cards{
  padding: 0 10px;
  border-radius: 8px;
  box-shadow: -0.5px 1.5px 4px 0px;
  margin: 15px 5px;
}

.active::before{
  content: "\25cf" ;
  color: var(--positive);
}

.active{
  color:var(--positive);
}

.expired{
  color: var(--error);
}
.expired::before{
  content: "\25cf" ;
  color: var(--error);
}

/* ------------staff profile-------------- */
.collapsible{
  padding: 0px;
}

.collapsible li{
  box-shadow: 0px 1px 3px 0px #9995;
  margin: 10px 10%;
  list-style-type: none;
}

.collapsible_head{
  padding: 15px;
  border: 1px solid #99999954;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--sec);
  border-radius: 3px;
}

.collapsible_body{
  /* height: 300px; */
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  max-height: 0px;
  background-color: var(--sec);
  border-radius: 0 0 3px 3px;
  margin: 0 1px;
}

.collapsible_body.open {
  max-height:300px;
}

.collapsible_head i {
  transition: transform 0.3s ease-in-out;
}

li:has(.collapsible_body.open) .collapsible_head i{
  transform : rotate(180deg);
}
li:has(.collapsible_body.open) .collapsible_head span{
  visibility: visible;
}

.collapsible_body :disabled, #settings_page :disabled{
  background-color: inherit;
  box-shadow: 0 0 0 0;
  font-weight: bold;
  color: black;
  border: none;
}

.collapsible_body .grid_box{
  grid-template-columns: 1fr 1fr 1fr;
  padding: 15px;
  gap: 20px;
}
.collapsible_body label{
  display: block;
}

.collapsible_body i, .collapsible_head span{
  visibility: hidden;
}
.collapsible_body.open i{
  visibility: visible;
}

.staff_files{
  justify-items: center;
}

.file_container{
  box-shadow: -2px 1px 2px 0px #9998;
  text-align: center;
  height: 215px;
  border-radius: 5px;
  font-weight: bold;
  border: 0.5px solid #9993;
  padding: 10px 0px;
  width: 155px;
  position: relative;
}
.file_container h5{
  margin: 10px;
}

.file_container>label{
  display: none;
}

.file_container>label>span {
  font-size: 10rem;
  opacity: 0.85;
  margin: 20px 0 10px 0;
}
.file_container>label>span:hover {
  opacity: 1;
}

.file_container>div>svg{
  font-size: 7rem;
  margin: 20px 0 10px 0;
  fill: var(--brand);
}

.file_container.no_file>label{
  display: block;
}

.file_container.no_file>div>svg{
  display: none;
}

.file_container:hover .file_options{
  visibility: visible;
}

.file_options{
  display: flex;
  justify-content: space-evenly;
  position: absolute;
  bottom: 9px;
  width: 100%;
  visibility: hidden;
}

.no_file .file_options{
  display: none;
}




/*-------------------LEADS------------------*/
#leads_grid{
  display: grid; 
  grid-template-rows: 60px 1fr;
  grid-template-columns: 1fr;
  grid-template-areas: 
  'header'
  'table ';
}
#leads_grid .profile{
  display: none;
}

#leads_grid.profile_view{
  display: grid; 
  grid-template-columns: 1fr 2fr;
  grid-template-areas: 
  'header header'
  'table profile';
}

#leads_grid.profile_view .profile{
  display: block;
}

#leads_grid.profile_view .not_in_profile{
  display: none;
}

#leads_profile{
  grid-area: profile;
  padding: 0px 15px;
  border-radius: 3px;
  overflow: scroll;
}

#leads_info{
  position: sticky;
  top: 0;
  padding: 5px;
  padding-top: 0;
  background-color: var(--sec);
}
.lead_profile_table td{
  padding: 5px;
  border: none;
  width: 33%;
}

.followup_cards{
  display: flex;
  justify-content: space-between;
  padding: 5px 15px;
  border-radius: 4px;
  box-shadow: -0.5px 1.5px 4px 0px #999;
  margin: 10px 5px;
}

/* ------------------leads follow up form-------- */
#lead_level_slider:has(label:nth-child(1)>input:checked) #dot{
	translate: -168px;
}
#lead_level_slider:has(label:nth-child(2)>input:checked) #dot{
	translate: -84px;
}
#lead_level_slider:has(label:nth-child(3)>input:checked) #dot{
	translate: 0px;
}
#lead_level_slider:has(label:nth-child(4)>input:checked) #dot{
	translate: 84px;
}
#lead_level_slider:has(label:nth-child(5)>input:checked) #dot{
	translate: 168px;
}

#attendance_slider:has(label:nth-child(1)>input:checked) #dot{
	translate: -3.5px;
}
#attendance_slider:has(label:nth-child(2)>input:checked) #dot{
	translate: 80.5px;
}

.radio_slider{
	width: 420px;
  display: flex;
  justify-content: space-around;
  position: relative;
  box-shadow: -1px 2px 5px 0 #999;
  align-items: center;
  border-radius: 3px;
  padding: 10px 10px;
}
.radio_slider label{
	content: "";
	display: block;
	border: 2px solid;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  background-color: white;
	z-index: 1;
}

.radio_slider label>input{
	visibility: hidden;
}


/* ---------------------form-------------------------------------- */
.form_butn{
  background-color: var(--brand);
  border: none;
  margin: 3px;
  padding: 5px;
  color: var(--sec);
  border-radius: 2px;
  height: 40px;
  width: 30%;
  font-weight: bold;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
   margin-top: 31px;
   margin-bottom: 10px;
}
.form_butn:hover{
  opacity: 0.8;
}



/* Style for WebKit-based browsers */
/* Note that this won't work in Firefox and some other browsers */

/* Track */
::-webkit-scrollbar {
  width: 6px; /* Width of the scrollbar */
  height: 6px;
}


/* Handle */
::-webkit-scrollbar-thumb {
  background-color: #8887; /* Color of the scrollbar handle */
  border-radius: 6px; /* Rounded corners of the scrollbar handle */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background-color: #888; /* Color of the scrollbar handle on hover */
}

/* Track on hover */
::-webkit-scrollbar-track:hover {
  background-color: #f1f1f1; /* Color of the scrollbar track on hover */
}

/* Track when scrollbar is active (being interacted with) */
::-webkit-scrollbar-thumb:active {
  background-color: #555; /* Color of the scrollbar handle when active */
}
