body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}
html,body{
  font-family: "Albert Sans", Sans-serif !important; 
}
main {
  height: 100vh !important;
  height: -webkit-fill-available;
  max-height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
}

html body #left-panel:not(.show){
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
html body #left-panel:not(.show) .wrap{
  display: none !important;
}
html body #left-panel:not(.show) .toggle-left-panel.left{
  display: none !important;
}
html body #left-panel.show .toggle-left-panel.right{
  display: none !important;
}

#left-panel{
  max-width: 90%;
  width: 90%;
}



/* http://caniuse.com/#search=variables */
:root {
  --avatar-size: 100%;
  /* change this value anything, e.g., 100px, 10rem, etc. */
}
.w-10{
  width: 10% !important;
}
.w-20{
  width: 20% !important;
}
.w-30{
  width: 30% !important;
}
.w-40{
  width: 40% !important;
}
.w-60{
  width: 60% !important;
}
.w-70{
  width: 70% !important;
}
.w-80{
  width: 80% !important;
}
.w-90{
  width: 90% !important;
}
.avatar-circle {
  background-color: #ccc;
  border-radius: 50%;
  height: var(--avatar-size);
  height: attr(data-size);
  text-align: center;
  width: var(--avatar-size);
  width: attr(data-size);
}

.initials {
  font-size: calc(var(--avatar-size) / 2); /* 50% of parent */
  font-size: calc(attr(data-size) / 2); /* 50% of parent */
  line-height: 1;
  position: relative;
  top: calc(var(--avatar-size) / 4); /* 25% of parent */
  top: calc(attr(data-size) / 4); /* 25% of parent */
  
}


/* range slider */

body {
  display: flex;
  height: 100vh;
}
input {
  box-shadow: 0;
  outline: 0;
}
.range-slider {
  width: 300px;
  margin: auto;
  text-align: center;
  position: relative;
  height: 6em;
}
.range-slider svg,
.range-slider input[type=range] {
  position: absolute;
  left: 0;
  bottom: 0;
}
.range-slider input[type=text] {
  border: 1px solid #ddd;
  text-align: center;
  font-size: 1.6em;
  -moz-appearance: textfield;
}
.range-slider input[type=text]::-webkit-outer-spin-button,
.range-slider input[type=text]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.range-slider input[type=text]:invalid,
.range-slider input[type=text]:out-of-range {
  border: 2px solid #ff6347;
}
.range-slider input[type=range] {
  -webkit-appearance: none;
  width: 100%;
}
.range-slider input[type=range]:focus {
  outline: none;
}
.range-slider input[type=range]:focus::-webkit-slider-runnable-track {
  background: #2497e3;
}
.range-slider input[type=range]:focus::-ms-fill-lower {
  background: #2497e3;
}
.range-slider input[type=range]:focus::-ms-fill-upper {
  background: #2497e3;
}
.range-slider input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  animate: 0.2s;
  background: #2497e3;
  border-radius: 1px;
  box-shadow: none;
  border: 0;
}
.range-slider input[type=range]::-webkit-slider-thumb {
  z-index: 2;
  position: relative;
  box-shadow: 0px 0px 0px #000;
  border: 1px solid #2497e3;
  height: 18px;
  width: 18px;
  border-radius: 25px;
  background: #a1d0ff;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
}
.range-slider input[type=range]::-moz-range-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  animate: 0.2s;
  background: #2497e3;
  border-radius: 1px;
  box-shadow: none;
  border: 0;
}
.range-slider input[type=range]::-moz-range-thumb {
  z-index: 2;
  position: relative;
  box-shadow: 0px 0px 0px #000;
  border: 1px solid #2497e3;
  height: 18px;
  width: 18px;
  border-radius: 25px;
  background: #a1d0ff;
  cursor: pointer;
}
.range-slider input[type=range]::-ms-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
.range-slider input[type=range]::-ms-fill-lower,
.range-slider input[type=range]::-ms-fill-upper {
  background: #2497e3;
  border-radius: 1px;
  box-shadow: none;
  border: 0;
}
.range-slider input[type=range]::-ms-thumb {
  z-index: 2;
  position: relative;
  box-shadow: 0px 0px 0px #000;
  border: 1px solid #2497e3;
  height: 18px;
  width: 18px;
  border-radius: 25px;
  background: #a1d0ff;
  cursor: pointer;
}

.slot-header{
  position: relative;
  font-size: 70%;
}
.slot-header span{
  transform: rotate(270deg);
  position: absolute;
  bottom: 5px;
  left: -15px;
}
/*##### selectable #######*/

body .shift-slots .selected-slot{ 
  background: rgba(var(--bs-info-rgb)) !important; 
  border-color: var(--bs-link-hover-color) !important;

}
body .shift-slots .selected-slot + .slot:not(.selected-slot){ 
  border-left-color: var(--bs-link-hover-color) !important;
}
.shift-slots .ui-selecting { 
  background: rgba(var(--bs-info-rgb)) !important;
}
.shift-slots .slot{
  background: rgba(var(--bs-white-rgb));
  height: 20px;
  border-right-style: none !important;
}
.shift-slots .slot:last-child{
  border-right-width: 1px !important;
  border-right-style: solid !important;
}
.shift-slots .slot:hover{
  background: var(--bs-link-hover-color) !important;
}
.shift-slots .selected-slot.ui-selecting { 
  background: rgba(var(--bs-white-rgb)) !important;
}
/*##### end selectable #######*/

/*
table.custom-border {

  --border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
 

  border-spacing: 0;
  border-collapse: separate;
  border: var(--border);
  overflow: hidden;
 }


 table.custom-border th:not(:last-child),
 table.custom-border td:not(:last-child) {
  border-right: 0;
 }
 table.custom-border th,
 table.custom-border td {
  border-bottom: 0;
 }
 

 table.custom-border>thead>tr:not(:last-child)>th,
 table.custom-border>thead>tr:not(:last-child)>td,
 table.custom-border>tbody>tr:not(:last-child)>th,
 table.custom-border>tbody>tr:not(:last-child)>td,
 table.custom-border>tfoot>tr:not(:last-child)>th,
 table.custom-border>tfoot>tr:not(:last-child)>td,
 table.custom-border>tr:not(:last-child)>td,
 table.custom-border>tr:not(:last-child)>th,
 table.custom-border>thead:not(:last-child),
 table.custom-border>tbody:not(:last-child),
 table.custom-border>tfoot:not(:last-child) {
  border-bottom: var(--border);
 }*/


table {
  
  white-space: nowrap;
  margin: 0;
  border: none;
  
  /*table-layout: fixed;*/
}
table td,
table th {
}
table thead th {
 
  position: sticky;
  top: 0;
  z-index: 1;
  background: white;
}
table td {
  background: #fff;
}

table tbody th {
  position: relative;
}
table thead th:first-child,
table thead td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
table tbody th,
table tbody td:first-child {
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
}
caption {
  position: sticky;
  left: 0;
}


/* WORKPLACE > SHIFTS */
.copy-shifts-btn:after{
  display: none;
}
/* ----- */

/* WORKPLACE > WROKER-HOURS */

.worked-shift:hover{
  box-shadow: rgba(var(--bs-primary-rgb), 0.5) 0px 0px 20px;
}
.worked-shift.edited{
  background-color: var(--bs-success) !important;
  background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
  background-size: 20px 20px;
}
.worked-shift.editing{
  border: 2px dashed red;
  box-shadow: rgba(var(--bs-primary-rgb), 0.5) 0px 0px 20px;
  background-color: var(--bs-warning) !important;
}

.worked-shift:hover .controls{
  display: block !important;
}
.worked-shift:hover .controls .actions{
  display: none !important;
}
.worked-shift.editing .controls{
  display: block !important;
}
.worked-shift.editing .controls .actions{
  display: inline-flex !important;
}
.worked-shift.ui-resizable-resizing .controls{
  display: none !important;
}

.worked-shift.edited .undo-changes{
  display: block !important;
}

body.adding-worked-shift .worked-shift{
  background-color: #ddd !important;
  box-shadow: none !important;
}

body.adding-worked-shift .worked-shifts{
  cursor: crosshair;
}
/* ----- */


.small-marker-left {
  /* Opera Mobile */
  background: -o-linear-gradient(left, #000000 2px, white 2px);
  /* Firefox for Android */
  background: -moz-linear-gradient(left, #000000 2px, white 2px);
  /* WebKit browsers */
  background: -webkit-linear-gradient(left, #000000 2px, white 2px);
  /* IE10, Firefox, Opera */
  background: linear-gradient(90deg, #000000 2px, white 2px);
  background-position: bottom left;
  background-repeat: no-repeat;
background-size: 1px 10px;
}


/*/ X-Small devices (portrait phones, less than 576px)
// No media query for `xs` since this is the default in Bootstrap
*/
/*/ Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) { 
  #left-panel{
    max-width: 300px;
    width: 300px;
  }
 }

/*/ Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {  }

/*/ Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {  }

/*/ X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {  }

/*/ XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) {  }


.form-check{
  cursor: pointer;
}
.form-check-input {
  clear: left;
}

.form-switch.form-switch-sm {
   /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-sm .form-check-input {
  height: 1rem;
  width: calc(1rem + 0.75rem);
  border-radius: 2rem;
}

.form-switch.form-switch-md {
   /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-md .form-check-input {
  height: 1.5rem;
  width: calc(2rem + 0.75rem);
  border-radius: 3rem;
}

.form-switch.form-switch-lg {
   /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-lg .form-check-input {
  height: 2rem;
  width: calc(3rem + 0.75rem);
  border-radius: 4rem;
}

.form-switch.form-switch-xl {
   /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-xl .form-check-input {
  height: 2.5rem;
  width: calc(4rem + 0.75rem);
  border-radius: 5rem;
}

/************   RESIZEABLE  ****************/
.resizeable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/************   END RESIZEABLE  ****************/