body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  display: inherit;
  overflow-x: hidden;
  --size: 12px;
  --gap: calc(var(--size) * 0.75);
  font-size: var(--size);
  font-family: var(--font);
  color: var(--color);
  background-color: var(--cold);
  font-weight: var(--weight-lite);
  font-display: swap;
}

a>img {
  display: inline-block;
  vertical-align: middle;
  margin: 0 1.25rem 0 0;
}

a,
a:hover {
  text-decoration: none;
  color: inherit;
}

/*Ribbon*/
.ribbon-upper-right {
  --f: 10px; /* control the folded part*/
  --r: 15px; /* control the ribbon shape */
  --t: 10px; /* slightly bigger top offset */
  --w: 12%; /* constant width in percentage */
  
  position: absolute;
  inset: var(--t) calc(-1*var(--f)) auto auto;
  width: var(--w);
  padding: 5px 10px 15px calc(10px + var(--r)); /* Adjusted padding */
  clip-path: polygon(0 0,97% 0,97% calc(100% - var(--f)),calc(100% - var(--f)) 100%, calc(100% - var(--f)) calc(100% - var(--f)),0 calc(100% - var(--f)), var(--r) calc(50% - var(--f)/2));
  box-shadow: 0 calc(-1*var(--f)) 0 inset #0005;
  display: flex;
  font-weight: bold !important; /* Set text to bold */
  justify-content: center; /* Horizontally center the text */
  align-items: center; /* Vertically center the text */
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.ribbon-lower-right {
  --f: 10px; /* control the folded part*/
  --r: 15px; /* control the ribbon shape */
  --t: calc(100% - 40px); /* adjust the top offset to position it at the bottom */
  --w: 12%; /* constant width in percentage */
  
  position: absolute;
  inset: var(--t) calc(-1*var(--f)) auto auto;
  width: var(--w);
  padding: 5px 10px 15px calc(10px + var(--r)); /* Adjusted padding */
  clip-path: polygon(0 0,97% 0,97% calc(100% - var(--f)),calc(100% - var(--f)) 100%, calc(100% - var(--f)) calc(100% - var(--f)),0 calc(100% - var(--f)), var(--r) calc(50% - var(--f)/2));
  box-shadow: 0 calc(-1*var(--f)) 0 inset #0005;
  display: flex;
  font-weight: bold !important; /* Set text to bold */
  justify-content: center; /* Horizontally center the text */
  align-items: center; /* Vertically center the text */
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.ribbon-odoo {
  background: #714B67;
  color: var(--white);
}

.ribbon-avg {
  background: var(--brand);
  color: var(--white);
}

.ribbon-gratis {
  background: #E00002;
  color: var(--white);
}

.ribbon-zero {
  background: var(--gray2);
  color: var(--white);
}

.ribbon span {
  margin: 0 !important; /* Remove default margin to ensure text is centered properly */
}

/*------------------------------*/
/* button, */
.btn {
  font-family: inherit;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  padding: .5rem 1rem;
  border: 1px solid transparent;
  outline: 0;
  overflow: hidden;
  white-space: nowrap;
}

.btn-brand {
  background-color: var(--brand);
  color: var(--white);
}

.btn-brand[disabled] {
  cursor: default !important;
  background-color: var(--gray2);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--gray1);
  color: var(--color);
}

.btn-brand svg>path {
  fill: var(--white);
}

.btn-brand[disabled] svg>path {
  fill: var(--white);
}

.btn-secondary svg>path {
  fill: var(--color);
}

/* button:hover, */
.btn:hover,
.bsi:hover,
/* button:focus, */
.btn:focus,
.bsi:focus,
/* button:active, */
.btn:active,
.bsi:active {
  cursor: pointer;
  border: 1px solid transparent;
  outline: 0;
}

/* button:hover, */
.btn-brand:hover:not([disabled]),
/* button:focus, */
.btn-brand:focus:not([disabled]),
/* button:active, */
.btn-brand:active:not([disabled]) {
  background-color: var(--white);
  box-shadow: inset 0 0 0 2px var(--brand);
}

.bsi:hover:not([disabled]),
.bsi:focus:not([disabled]),
.bsi:active:not([disabled]) {
  background-color: var(--white);
  box-shadow: 0 0 0 2px var(--brand);
}

.btn-brand:hover:not([disabled]),
.btn-brand:focus:not([disabled]),
.btn-brand:active:not([disabled]) {
  color: var(--brand);
}

.btn-brand:hover:not([disabled]) svg>path,
.btn-brand:focus:not([disabled]) svg>path,
.btn-brand:active:not([disabled]) svg>path {
  fill: var(--brand);
}

.svgiconbtn:hover path {
  fill: var(--brand);
}

.svgiconbtn:focus path {
  fill: var(--brand);
}


.svgiconbtn:active path {
  fill: var(--brand);
}


.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  box-shadow: inset 0 0 0 2px var(--color);
}

/* .any-btn:active svg>path */
.any-btn:hover svg>path,
.any-btn:focus svg>path {
  cursor: pointer;
  fill: var(--brand);
}

.btn-link {
  font-family: inherit;
  font-size: 1rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 1rem;
  border: none;
  outline: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--brand);
  background-color: transparent;
}

.btn-link:hover {
  color: var(--brand-light) !important;
  background-color: transparent;
  border: none;
  outline: 0;
}

.btn-link:hover,
.btn-link:focus,
.btn-link:active {
  color: var(--brand-dark);
  background-color: transparent;
  border: none;
  outline: 0;
}

.btn-symbol {
  font-size: 1rem;
  line-height: 1.5;
  padding: 0;
  color: var(--color);
  background-color: transparent;
}

.btn-arrow {
  font-size: 1rem;
  line-height: 1.5;
  padding: 0;
  color: var(--color);
  background-color: transparent;
}

.btn-symbol:hover,
.btn-symbol:focus,
.btn-symbol:active {
  color: var(--brand);
  border-color: transparent;
  box-shadow: none;
  outline: 0;
}

.btn-symbol>img {
  height: 1rem;
  filter: none;
}

.btn-symbol:hover>img {
  filter: brightness(0.8) sepia(1) hue-rotate(-40deg) saturate(4);
}

.save:disabled,
.save:disabled:hover {
  color: var(--brand-pale);
  background-color: var(--brand-light);
}

select,
input,
textarea {
  border-radius: var(--radius);
  border: 1px solid var(--gray2);
  background-color: var(--white);
  padding: .25rem .5rem;
  width: 100%;
  color: currentColor;
}

.ddate {
  border-radius: var(--radius);
  border: 1px solid var(--gray2);
  background-color: var(--white);
  padding: .25rem .5rem;
  width: 100%;
  color: currentColor;
  pointer-events: none;
}

select[disabled], select:focus[disabled], select:active[disabled],
textarea[disabled], textarea:focus[disabled], textarea:active[disabled],
input[disabled], input:focus[disabled], input:active[disabled] {
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid transparent;
  box-shadow: none;
  background-image: none !important;
}

input:focus, input:active,
textarea:focus, textarea:active,
select:focus, select:active {
  box-shadow: 0 0 0 .15rem var(--brand);
  border: 1px solid transparent;
  outline: 0;
}

@-moz-document url-prefix() {
  select {
    font-family: inherit;
    font-weight: var(--weight-lite);
    border-radius: var(--radius);
    border: 1px solid var(--gray2);
    background-color: var(--white);
    color: currentColor;
  }
}

.select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url('/images/icons/arrow_down.png') no-repeat calc(100% - .5rem) 50% !important;
  background-size: .75rem !important;
  background-position: absolute;
}

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: var(--gray2);
  font-weight: var(--weight-normal);
  opacity: 1;
}

::-moz-placeholder {
  /* Firefox 19+ */
  color: var(--gray2);
  font-weight: var(--weight-normal);
  opacity: 1;
}

:-ms-input-placeholder {
  /* IE 10+ */
  color: var(--gray2);
  font-weight: var(--weight-normal);
  opacity: 1;
}

:-moz-placeholder {
  /* Firefox 18- */
  color: var(--gray2);
  font-weight: var(--weight-normal);
  opacity: 1;
}

input[type=date]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  display: none;
}

input[type=date]::-webkit-clear-button {
  display: none;
  -webkit-appearance: none;
}

img,
.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.noo:focus,
.noo:active {
  outline: 0;
  box-shadow: 0;
}

.bbox {
  border-radius: var(--radius);
  border: 1px solid var(--gray2);
  background-color: var(--white);
  padding: var(--gap);
}

.npbbox {
  border-radius: var(--radius);
  border: 1px solid var(--gray2);
  background-color: var(--white);
}

.box-table {
  border-radius: var(--radius);
  border: 1px solid var(--gray2);
  background-color: var(--white);
  padding: var(--gap);
}

.text-invalid {
  color: var(--brand);
  font-weight: var(--weight-norm);
  text-align: center;
}

/* label input group */
.lig {
  margin: .75rem 0;
}

.lig-label {
  text-transform: uppercase;
  font-weight: var(--weight-bold);
  margin-bottom: .25rem;
}

.ibg {display: flex}
.ibg-input {border-radius: var(--radius) 0 0 var(--radius);}
.ibg-button {
  background-color: var(--gray1);
  color: var(--gray3);
  text-transform: uppercase;
  font-size: .75rem;
  border: 1px solid var(--gray2);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
}
.ibg-button:hover, .ibg-button:focus, .ibg-button:active {
  outline: 0;
  box-shadow: none;
}
.ibg-button:hover {
  color: var(--gray5);
}
/* .ibg-input:focus + .ibg-button {
  box-shadow: 0 0 0 .15rem var(--brand);
  border: 1px solid transparent;
  outline: 0;
} */

.increasing {
  background-repeat: no-repeat;
  background-position: 50% 0%;
  background-image: url("/images/icons/increase.svg");
  background-size: 2.6rem;
  color: var(--brand);
}

.decreasing {
  background-repeat: no-repeat;
  background-position: 50% 0%;
  background-image: url("/images/icons/decrease.svg");
  background-size: 2.6rem;
}

.active-fill {
  fill: var(--brand);
}

.inactive-fill {
  fill: var(--gray2);
}

.breadcrumb-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0
}

.breadcrumb {
  cursor: pointer;
}

.breadcrumb:hover {
  color: var(--brand);
}

.breadcrumb-item:not(:last-child)::after {
  content: '>';
  padding: 0 .5rem;
}

.breadcrumb-item:last-child {
  font-weight: var(--weight-bold);
}

.ordinal {
  font-family: monospace;
  border-radius: 50%;
  background-color: var(--gray1);
  font-weight: var(--weight-bold);
  text-align: center;
  width: 2rem;
  height: 2rem;
  line-height: 2;
  flex-shrink: 0;
}

.done {
  background-image: url('/images/icons/checked.svg');
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 1rem;
  color: var(--gray2);
  list-style-type: none;
  /* margin-left: -1.25rem; */
  padding-left: 1rem;
}

.list-rm {
  list-style-position: inside;
  padding: 0;
  margin: 0;
  padding-inline-start: 0;
  margin-inline-start: 0;
}

.image-upload-label {
  border-radius: 50%;
  background-color: var(--gray1);
  flex-shrink: 0;
  object-fit: cover !important;
}

.image-upload-group input[type=file] {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  height: 1px;
  width: 1px;
}

.tooltip {
  position: absolute;
  width: max-content;
  max-width: 26rem;
  background-color: var(--dark);
  color: var(--gray1);
  text-transform: uppercase;
  padding: .5rem;
  box-shadow: 0 0 4px 0 var(--dark);
  border-radius: var(--radius);
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2100;  
  left: calc(100% + 10px);
  transform: translateY(-10%);
}

.text-icon {
  height: 1rem;
  /* width: 1rem; */
}

/* text input with icon */
.tii {
  padding-left: 2rem !important;
  background-size: 1rem;
  background-position: .5rem .5rem;
  background-repeat: no-repeat;
}

/* underline input imitation */
.uii {
  background-color: transparent;
  border-radius: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--gray3);
  flex: auto;
  text-align: left;
  color: inherit;
  padding: .25rem .5rem;
}

.uii:active, 
.uii:focus {
  box-shadow: none;
  border-bottom: 1px solid var(--gray3);
}
/* button select input imitation */
.bsi {
  -webkit-appearance: none;
  -moz-appearance: none;
  color: currentColor;
  border-radius: var(--radius);
  border: 1px solid var(--gray2);
  outline: 0;
  box-shadow: none;
  background: var(--white) url('/images/icons/arrow_down.png') no-repeat 95% 50%;
  background-size: .75rem !important;
  text-align: left;
  padding: .25rem .5rem;
  padding-right: 1.25rem;
}

.bsi[disabled] {
  background: var(--gray1) url('/images/icons/arrow_down.png') no-repeat 95% 50%;
}


/* keep image aspect ratio */
.kiar {
  height: 5rem;
  white-space: nowrap;
  text-align: center;
}

.kiar:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.kiar img {
  max-height: 5rem;
  width: auto;
  height: auto;
  vertical-align: middle;
}

.basis-mobile {
  flex: 1 1 275px;
}

.basis-half {
  flex: 1 1 150px;
}

.min-half {
  width: 12rem;
}

.half-height {
  height: 11rem;
}

/* mixed button group */
.mbg {
  display: flex;
}

.mbg-lead {
  flex: 1 0 auto;
}

.mbg-mixed {
  flex: 0 1 auto;
}

.brand-shadow {
  box-shadow: 0px 0px 10px 0px var(--brand);
  -webkit-box-shadow: 0px 0px 10px 0px var(--brand);
  -moz-box-shadow: 0px 0px 10px 0px var(--brand);
}

.text-jumbo {
  font-size: 8rem;
  color: var(--cold-dark);
  line-height: 1;
}

.allowed {
  display: inline-block;
  background-image: url('/images/icons/check.svg');
  background-position: 0 50%;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  color: var(--brand) !important;
  padding-left: 1.6rem;
}

.denied {
  display: inline-block;
  background-image: url('/images/icons/warning.svg');
  background-position: 0 50%;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-left: 1.6rem;
}

.abr {
  position: absolute;
  bottom: 0;
  right: 0;
}

/* ************************************************************************* */
/* COMPONENTS */
/* ************************************************************************* */

/* MENUBAR */
.menubar {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-top: 1px solid var(--gray2);
  font-size: inherit;
  font-weight: 300;
  text-align: center;
  z-index: 1000;
  grid-area: nav;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  height: min-content;
  padding: var(--size);
}

.nav-mfp-logo,
.nav-company-logo,
.nav-company,
.nav-text {
  display: none;
}

.navlist {
  display: flex;
  justify-content: space-evenly;
  padding: 0;
  margin: 0;
}

.nav-item {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: block;
  padding: 0 1rem;
}

.nav-item svg {
  height: 1.5rem;
}

.nav-item.active .nav-link,
.nav-link:hover,
.nav-link:active {
  color: var(--brand);
}

.nav-item.active .svg-path-fill path,
.nav-link:hover .svg-path-fill path {
  fill: var(--brand);
}

.nav-item.active .svg-g-fill g,
.nav-link:hover .svg-g-fill g {
  fill: var(--brand);
}

/* ---------- */
/* SEARCH BAR */
/* clients & reports page */
/* ---------- */

.sbc {
  display: flex;
  flex-flow: row wrap;
  flex: 1 0 auto;
  align-items: flex-end;
}

#reading-filter {
  width: 16rem;
  background-image: url('/images/icons/filter.svg');
}

#search {
  background-image: url('/images/icons/search.svg');
}

#search-input {
  flex-grow: 4;
}

#filter-result {
  font-family: var(--font-mono);
  min-width: 5rem;
}

/* ---------------  */
/* CUSTOM CHECKBOX  */
/* ---------------  */
.cb-container {
  display: inline-block;
  position: relative;
  padding-left: 1.8rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* font-weight: var(--weight-bold); */
  line-height: 1.25;
  white-space: nowrap;
}

.cb-container_invoice {
  display: inline-block;
  position: relative;
  padding-left: 1.6rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* font-weight: var(--weight-bold); */
  line-height: 1.25;
  white-space: nowrap;
}

/* Hide the browser's default checkbox */
.cb-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  /* top: .125rem; */
  left: .125rem;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: var(--radius);
  background-color: var(--white);
  border: 1px solid var(--gray2);
}

.cb-container input:checked~.checkmark{
  background-color: transparent;
  border: none;
  background-image: url("/images/icons/reports_active.svg");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  overflow: visible;
}

.chkbox_invoice{
  background-color: transparent;
  border: none;
  border-radius: var(--radius);
  background-color: var(--white);
  border: 1px solid var(--gray2);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  width:1.25rem;
  height:1.25rem;
  overflow: visible;
  cursor:pointer;
}

.chkbox_invoice.disabled{
  background-color: var(--gray1);
  pointer-events:none !important;
  cursor:default;
}

.chkbox_invoice_active{
  background-color: transparent;
  border: none;
  background-image: url("/images/icons/reports_active.svg");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  width:1.25rem;
  height:1.25rem;
  overflow: visible;
  cursor:pointer;
}

.chkbox_invoice_all{
  background-color: transparent;
  border: none;
  border-radius: var(--radius);
  background-color: var(--white);
  border: 1px solid var(--gray2);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  width:1.25rem;
  height:1.25rem;
  overflow: visible;
  cursor:pointer;
}

.chkbox_invoice_all.disabled{
  background-color: var(--gray1);
  pointer-events:none !important;
  cursor:default;
}

.chkbox_invoice_all_active{
  background-color: transparent;
  border: none;
  background-image: url("/images/icons/reports_active.svg");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  width:1.25rem;
  height:1.25rem;
  overflow: visible;
  cursor:pointer;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.cb-container input:checked~.checkmark:after {
  display: none;
}

/* checkbox group */
.cbg {
  margin: .5rem 0;
}

/* CUSTOM RADIO */

.custom-control {
  position: relative;
}

.custom-radio {
  position: absolute;
  opacity: 0;
  visibility: hidden;
}

/* .custom-radio:checked + .custom-label {
  color: #f48058;
} */

.custom-radio:checked+.custom-radio-label::before {
  border: .125rem solid var(--brand);
  background: -moz-radial-gradient(var(--brand) .25rem, var(--white) .375rem);
  background: -webkit-radial-gradient(var(--brand) .25rem, var(--white) .375rem);
  background: -o-radial-gradient(var(--brand) .25rem, var(--white) .375rem);
  background: radial-gradient(var(--brand) .25rem, var(--white) .375rem);
}

.custom-radio:disabled:checked+.custom-radio-label::before {
  border: .125rem solid var(--brand-pale);
  background: -moz-radial-gradient(var(--brand-pale) .25rem, var(--white) .375rem);
  background: -webkit-radial-gradient(var(--brand-pale) .25rem, var(--white) .375rem);
  background: -o-radial-gradient(var(--brand-pale) .25rem, var(--white) .375rem);
  background: radial-gradient(var(--brand-pale) .25rem, var(--white) .375rem);
}

.custom-radio:disabled+.custom-radio-label::before {
  border: .125rem solid var(--gray2);
}

.custom-radio:disabled+.custom-radio-label {
  pointer-events: none !important;
}

.custom-radio-label {
  display: flex;
  align-items: center;
  padding: .25rem 0;
  cursor: pointer;
}

.custom-radio-label::before {
  display: inline-block;
  content: "";
  height: 1.125rem;
  width: 1.125rem;
  margin-right: 0.625rem;
  border: .15rem solid var(--gray3);
  border-radius: 50%;
}

.purchase_question {
  text-transform: uppercase;
  color: #7d7d7d;
  font-size: 13px;
  font-weight: 700;
}


/* SLIDERS */
.switch {
  position: relative;
  width: 3rem;
  height: 1.5rem;
  margin-top: .25rem;
  margin-bottom: .5rem;
}

.switch input[type=checkbox] {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--light);
  transition: 250ms;
  border: .15rem solid var(--color);
}

.slider:before {
  position: absolute;
  content: "";
  height: 1rem;
  width: 1rem;
  left: .125rem;
  bottom: .1rem;
  background-color: var(--color);
  transition: .25s;
}

input:checked+.slider {
  background-color: var(--brand-pale);
  border: .15rem solid var(--brand);
}

input:checked+.slider:before {
  -webkit-transform: translateX(1.5rem);
  -ms-transform: translateX(1.5rem);
  transform: translateX(1.5rem);
  background-color: var(--brand);
}

input:disabled[type="checkbox"] + .slider, 
input:disabled[type="checkbox"] + .slider::before {
  border: .15rem solid var(--gray2);
  background-color: var(--gray1);
  pointer-events: none;
}

input:checked:disabled[type="checkbox"] + .slider, 
input:checked:disabled[type="checkbox"] + .slider::before {
  border: .15rem solid var(--brand-light);
  background-color: var(--brand-pale);
  pointer-events: none;
}

/* Rounded sliders */
.slider-round {
  border-radius: 2rem;
}

.slider-round:before {
  border-radius: 50%;
}


/* ------ */
/* TONERS */
/* ------ */

.toners {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  justify-content: space-evenly;
  text-align: center;
  width: 11rem;
}

.toners .percentage {
  padding: 0 .25rem;
  justify-content: center;
  display: flex;
  flex-direction: column;
  width: 2.75rem;
  font-weight: var(--weight-bold);
  font-size: .8rem;
}

.toners .percentage>img {
  height: 11.25rem;
  margin-bottom: .25rem;
}

/* -------- */
/* DROPDOWN */
/* -------- */

.dropdown {
  display: flex;
  flex-direction: column;
}

.dropdown-top {
  flex-direction: column-reverse;
}

.dropdown-menu-container {
  position: relative;
}

.dropdown-menu {
  margin: 0;
  position: absolute;
  min-width: 100%;
  max-height: 40rem;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--white);
  z-index: 1010;
  column-fill: auto;
  padding: 0 .75rem;
  border: 1px solid var(--gray1);
}

.dropdown-top .dropdown-menu {
  bottom: 0;
}

.dropdown-right .dropdown-menu {
  right: 0;
}

/*--------------------------------------*/
/* #TABS */
/*--------------------------------------*/

.tabs {
  margin: .5rem 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  overflow: visible;
  border-bottom: 1px solid var(--gray2);
}

.tab-btn {
  color: inherit;
  background-color: transparent;
  font-size: 1rem;
  padding: 1rem 2rem;
  border: 0;
  box-sizing: border-box;
  outline: 0;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: var(--weight-norm);
}

/* button:hover, */
.tab-btn:hover,
/* button:focus, */
.tab-btn:focus,
/* button:active, */
.tab-btn:active,
.tab-btn.active {
  /* font-weight: var(--weight-bold); */
  outline: 0;
  border-bottom: 3px solid var(--brand);
}

.tab-btn.active {
  color: var(--brand);
}

/* ****** */
/* DIALOG */
/* ****** */
.dialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  background-color: var(--backdrop);
  /* overflow: hidden; */
  z-index: 1050;
}

.dialog-open {
  /* overflow: hidden; BY MARKO*/
  overflow: inherit; /* Potential fix for 
  scrollbar visibility on dialog-open*/
}

.dialog-open .dialog {
  /* overflow-x: hidden; */
  overflow-y: auto;
}

.dialog-head {
  position: sticky;
  top: 0;
  background-color: var(--white);
  z-index: 2000;
}

.dialog-head h4 {
  margin-bottom: 0
}

.dialog-body {
  position: relative;
  display: flex;
  flex-direction: column;
  /* overflow-y: auto; */
  pointer-events: auto;
  background-clip: padding-box;
  background-color: var(--white);
  outline: 0;
  opacity: 1;
  /* max-height: 95vh; */
  margin: var(--gap);
}

.dialog-controls {
  display: flex;
}

.dialog-controls button:only-child {
  margin-left: auto;
}

.dialog-controls-fixed {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: max-content;
}

.tab-content {
    position: relative;
}

.loading-abs {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  background-color: var(--white);
  z-index: 2000;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  line-height: 1;
}

/* FLEX TABLE */
.ftcolumn-controls {
  margin-left: .5rem;
}

.ftcolumn-controls svg {
  height: .75rem;
}

.fthead {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  /* position: sticky; */
  /* top: 0; */
  /* background-color: var(--white); */
}

.ftbody {
  display: flex;
  flex-flow: column;
}

.ftrow {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--light);
}

.ftcol {
  text-align: center;
  flex: 1;
}

[role="columnheader"] {
  cursor: pointer;
  padding: 1rem 0;
  border-bottom: 2px solid var(--light);
}

[role="columnheader"][aria-sort="asc"],
[role="columnheader"][aria-sort="desc"] {
  border-bottom: 2px solid var(--brand);
}

[aria-sort="none"] svg path {
  fill: var(--gray4);
}

[aria-sort="asc"] .caret-up svg path {
  fill: var(--brand);
}

[aria-sort="asc"] .caret-down svg path {
  fill: var(--gray4);
}

[aria-sort="desc"] .caret-down svg path {
  fill: var(--brand);
}

[aria-sort="desc"] .caret-up svg path {
  fill: var(--gray4);
}

/* ALERTS */
#alert-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
}

.alert {
  padding: 1rem;
  width: 100vw;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  will-change: transform;
  box-shadow: 0 4px 6px -4px var(--dark);
}

.alert-info {
  color: var(--cyan-pale);
  background-color: var(--cyan);
  border-bottom: 1px solid var(--cyan-light);
}

.alert-warning {
  color: var(--yellow-pale);
  background-color: var(--yellow-dark);
  border-bottom: 1px solid var(--yellow-light);
}

.alert-danger {
  color: var(--red-pale);
  background-color: var(--red);
  border-bottom: 1px solid var(--red-light);
}

.alert-success {
  color: var(--teal-pale);
  background-color: var(--teal);
  border-bottom: 1px solid var(--teal-light);
}

.alert-message {
  font-size: .9rem;
  font-weight: var(--weight-norm);
  flex: 1 1 0;
  min-width: 0;
}

.alert-close {
  flex: 0 1 2rem;
  background-color: transparent;
  font-size: 2rem;
  padding: 0;
  line-height: 1.5;
  border: 1px solid transparent;
  color: var(--light);
}

.alert-close:hover,
.alert-close:active {
  box-shadow: none;
  color: currentColor;
  background-color: transparent;
  outline: 0;
  /* border: 1px solid currentColor; */
  cursor: pointer;
}


.fade-in {
  animation: animate-fade-in ease-in 300ms;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.fade-out {
  animation: animate-fade-out ease-out 300ms;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes animate-fade-in {
  0% {
    opacity: 0;
    visibility: hidden;
  }

  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes animate-fade-out {
  0% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.drop-from-above {
  animation: animate-drop-from-above ease-in 200ms;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.pull-above {
  animation: animate-pull-above ease-out 300ms;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes animate-pull-above {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100vh);
  }
}

@keyframes animate-drop-from-above {
  0% {
    transform: translateY(-100vh);
  }

  100% {
    transform: translateY(0);
  }
}

.drop-short {
  animation: animate-drop-short linear 200ms;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.pull-short {
  animation: animate-pull-short ease-out 250ms;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes animate-pull-short {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-20vh);
  }
}

@keyframes animate-drop-short {
  0% {
    transform: translateY(-20vh);
  }

  100% {
    transform: translateY(0);
  }
}

@media only screen and (min-width: 520px) {
}

@media only screen and (min-width: 768px) {

  html,
  body {
    --gap: var(--size);
  }
  #reading-filter {
    width: 16rem;
  }
}

@media only screen and (min-width: 916px) {

  .menubar {
    grid-area: nav;
    position: sticky;
    top: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    max-height: 100vh;
    padding: 0;
    border-top: 0;
    border-right: 1px solid var(--gray2);
  }

  .nav-mfp-logo {
    display: block;
    padding: 1rem 0;
    /* margin-top: */
    border-bottom: 1px solid var(--gray2);
  }

  .nav-mfp-logo img {
    vertical-align: middle;
  }

  /* temp hack */
  .nav-company-logo {
    min-height: 130px;
  }

  .nav-company-logo,
  .nav-company,
  .nav-text {
    display: block;
  }

  .navlist-container {
    display: flex;
    justify-content: center;
    padding-top: calc(var(--size) * 3);
    flex-grow: 1;
  }

  .navlist {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0 auto;
    width: 100%;
  }

  .nav-item:not(:last-child) {
    display: inline-flex;
    font-size: 1rem;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    /* bad, bad, bad! shouldn't be fixed size but i don't know how to center 
    * the list and keep 100% width for logout button. 10rem is based on a 
    * largest item, specifically 'dashboard'
    */
    width: 10rem;
  }

  .nav-item:last-child {
    width: 100%;
  }

  .nav-link {
    display: inline-flex;
    text-transform: uppercase;
    padding: 1rem 0;
    flex: 1 1 100%;
    align-items: center;
  }

  .nav-text {
    margin-left: 1rem;
  }

  .logout {
    margin: auto 0 0 0;
    color: var(--white);
    background-color: var(--gray4);
  }

  .logout svg g {
    fill: var(--white);
  }

}

@media only screen and (min-width: 1160px) {}

@media only screen and (min-width: 1601px) {

  html,
  body {
    --size: 15px;
  }

  .rsmall {
    font-size: .75rem;
    /* line-height: 1.5; */
  }
}

@media only screen and (min-width: 2128px) {

  html,
  body {
    --size: 18px;
  }
}

@media only screen and (min-width: 2656px) {

  html,
  body {
    --size: 20px;
  }
}

@media only screen and (min-width: 3184px) {

  html,
  body {
    --size: 24px;
  }
}

@media only screen and (min-width: 3712px) {

  html,
  body {
    --size: 28px;
  }
}
