/************\
|   COLORS   |
\************/

:root {
  --col-text-light: rgba(255, 255, 255, 1);
  --col-text-sec-light: rgba(255, 255, 255, 0.7);
  --col-text-dis-light: rgba(255, 255, 255, 0.5);

  --col-text-dark: rgba(0, 0, 0, 0.8);
  --col-text-sec-dark: rgba(0, 0, 0, 0.54);
  --col-text-dis-dark: rgba(0, 0, 0, 0.38);

  --col-icon-light: rgba(255, 255, 255, 1);
  --col-icon-dis-light: rgba(255, 255, 255, 0.5);

  --col-icon-dark: rgba(0, 0, 0, 0.54);
  --col-icon-dis-dark: rgba(0, 0, 0, 0.38);
}

/**********\
|   TEXT   |
\**********/

p,
span,
a,
h1,
h2,
h3,
h4,
h5,
h6,
label,
input,
.text-dark,
.text-dark * {
  color: var(--col-text-dark);
}

.text-sec-dark,
.text-sec-dark * {
  color: var(--col-text-sec-dark);
}

.text-dis-dark,
.text-dis-dark * {
  color: var(--col-text-dis-dark);
}

.text-light,
.text-light * {
  color: var(--col-text-light);
}

.text-sec-light,
.text-sec-light * {
  color: var(--col-text-sec-light);
}

.text-dis-light,
.text-dis-light * {
  color: var(--col-text-dis-light);
}

.text-valid-dark {
  color: #43a047;
}

.text-valid-light {
  color: #00c853;
}

.text-error-dark {
  color: #b71c1c;
}

.text-error-light {
  color: #d50000;
}

a {
  text-decoration: none;
  color: var(--col-accent-dark);
}

a:hover {
  text-decoration: underline;
  color: var(--col-accent-dark);
}

a.light {
  color: var(--col-accent);
}

/***********\
|   ICONS   |
\***********/

.mdi {
  display: inline-block;
  height: 24px;
  font-size: 24px;
  line-height: 24px;
}

.mdi.dark {
  color: var(--col-icon-dark);
}

.mdi.light {
  color: var(--col-icon-light);
}

.mdi.accent {
  color: var(--col-accent);
}

/**********************************\
|   DIVS WITH FIXED ASPECT RATIO   |
\**********************************/

.fixed-ratio {
  overflow: hidden;
  height: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.fixed-ratio > * {
  position: absolute;
  top: 0;
}

.fr-1-1 {
  padding-top: 100%;
}

.fr-5-4 {
  padding-top: 80%;
}

.fr-4-3 {
  padding-top: 75%;
}

.fr-16-9 {
  padding-top: 56.25%;
}

.fr-2-1 {
  padding-top: 50%;
}

/*************\
|   DIVIERS   |
\*************/

div.divider,
div.divider.dark {
  height: 0px;
  width: 100%;
  margin: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

div.divider.light {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

div.divider.vertical,
div.divider.vertical.dark {
  height: 100%;
  width: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  margin: 0 4px;
}

div.divider.vertical.light {
  height: 100%;
  width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

/*************\
|   BUTTONS   |
\*************/

.btn {
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  border: none;
  border-radius: 4px;
  display: inline-flex;
}

.btn,
.btn:hover,
.btn p,
.btn:hover p {
  color: var(--col-text-dark);
}

.btn.light,
.btn.light:hover,
.btn.light p,
.btn.light:hover p {
  color: var(--col-text-light);
}

.btn .mdi {
  height: 20px;
  font-size: 20px;
  line-height: 20px;
  margin: auto;
}

.btn p {
  margin: 0;
}

.btn .mdi ~ p {
  margin: 0 0 0 8px;
}

.btn p ~ .mdi {
  margin: auto 0 auto 8px;
}

.btn.transparent,
.btn.transparent:disabled:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.btn.transparent.light,
.btn.transparent.light:disabled:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.btn.transparent:hover,
.btn.icon:hover,
.btn.round:hover {
  background-color: rgba(0, 0, 0, 0.12);
}

.btn.transparent.light:hover,
.btn.icon.light:hover,
.btn.round.light:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.btn.accent,
.btn.fab,
.btn.accent:disabled:hover {
  background-color: var(--col-accent);
  color: var(--col-text-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn.accent:hover,
.btn.fab:hover {
  color: var(--col-text-light);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23) !important;
}

.btn.accent:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  transition: background-color 0.2s ease-in-out;
}

.btn.accent:not(:disabled):hover:after {
  background-color: rgba(255, 255, 255, 0.12);
}

.btn.accent p {
  color: var(--col-text-light);
}

.btn.icon {
  background-color: transparent;
  padding: 6px;
  border-radius: 100%;
}

.btn.icon:disabled:hover,
.btn.round:disabled:hover {
  background-color: transparent;
}

.btn.icon .mdi {
  height: 24px;
  font-size: 24px;
  line-height: 24px;
  margin: auto;
}

.btn.round {
  background-color: transparent;
  padding: 5px 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 360px;
}

.btn.round.light {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn.round .mdi ~ p {
  margin: 0 16px;
}

.btn.round .mdi {
  position: absolute;
  top: 8px;
  left: 6px;
}

.btn.fab {
  border-radius: 100%;
  padding: 12px;
}

/***********\
|   RADIO   |
\***********/

.radio {
  display: none;
}

.radio + label {
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  line-height: 20px;
  display: inline-block;
}

.radio.light + label {
  color: var(--col-text-light);
}

.radio + label:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  border: 2px solid var(--col-icon-dark);
  border-radius: 100%;
}

.radio.light + label:before {
  border: 2px solid var(--col-text-sec-light);
}

.radio:checked + label:before {
  border: 2px solid var(--col-accent);
}

.radio + label:after {
  content: "";
  height: 12px;
  width: 12px;
  background: var(--col-accent);
  position: absolute;
  top: 4px;
  left: 4px;
  border-radius: 100%;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.radio:not(:checked) + label:after {
  opacity: 0;
  -webkit-transform: scale(0);
  transform: scale(0);
}

.radio:checked + label:after {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

[type="radio"]:disabled + label,
[type="checkbox"]:disabled + label {
  opacity: 0.65;
  cursor: default;
}

/****************\
|   RICH RADIO   |
\****************/

.rich-radio {
  display: none;
}

.rich-radio + label {
  display: flex;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}

.rich-radio:not(:disabled):hover + label {
  background-color: rgba(0, 0, 0, 0.08);
}

.rich-radio.light:not(:disabled):hover + label {
  background-color: rgba(255, 255, 255, 0.08);
}

.rich-radio:checked + label {
  border: 2px solid var(--col-accent);
}

/*****************\
|   CHECK BOXES   |
\*****************/

.checkbox {
  display: none;
}

.checkbox + label {
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  line-height: 20px;
  display: inline-block;
}

[type="checkbox"].light + label {
  color: var(--col-text-light);
}

.checkbox + label:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1.25em;
  width: 1.25em;
  background: transparent;
  border: 2px solid var(--col-icon-dark);
  border-radius: 0.125em;
  transition: background 0.2s ease-in-out;
}

.checkbox.light + label:before {
  border: 2px solid var(--col-text-sec-light);
}

.checkbox:checked + label:before {
  background: var(--col-accent);
  border: none;
}

.checkbox + label:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.checkbox:checked + label:after {
  height: 0.375em;
  width: 0.75em;
  opacity: 1;
  border: 0.125em solid #fff;
  border-top-style: none;
  border-right-style: none;
  transform: translate(0.25em, 0.3365384615em) rotate(-45deg);
  transition: opacity 0.2s ease-in-out;
}

/**************\
|   SWITCHES   |
\**************/

.switch {
  display: none;
}

.switch + label {
  position: relative;
  display: inline-block;
  min-width: 112px;
  cursor: pointer;
  font-weight: 500;
  text-align: left;
  padding-left: 44px;
}

.switch + label span {
  color: var(--col-text-dark);
}

.switch.light + label span {
  color: var(--col-text-light);
}

.switch + label:before,
.switch + label:after {
  content: "";
  position: absolute;
  margin: 0;
  outline: 0;
  top: 50%;
  -ms-transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.switch + label:before {
  left: 1px;
  width: 34px;
  height: 14px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.switch.light + label:before {
  background-color: rgba(255, 255, 255, 0.3);
}

.switch + label:after {
  left: 0;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098),
    0 1px 5px 0 rgba(0, 0, 0, 0.084);
}

.switch + label .on {
  display: none;
}

.switch + label .off {
  display: inline-block;
}

.switch:checked + label:before {
  background-color: var(--col-accent);
  opacity: 0.54;
}

.switch:checked + label:after {
  background-color: var(--col-accent);
  -ms-transform: translate(80%, -50%);
  -webkit-transform: translate(80%, -50%);
  transform: translate(80%, -50%);
}

.switch:checked + label .on {
  display: inline-block;
}

.switch:checked + label .off {
  display: none;
}

.switch:disabled + label:after {
  background-color: #888;
}

.switch.light:disabled + label:after {
  background-color: #aaa;
}

/***********************\
|   TEXT INPUT & AREA   |
\***********************/

.text-input,
.text-area {
  position: relative;
  display: flex;
  flex-direction: column;
}

.text-input input {
  height: 42px;
  width: 256px;
  margin: 6px 0;
  padding: 0 12px;
  line-height: 50px;
  background-color: var(--col-primary);
  border: 1px solid var(--col-text-sec-dark);
  border-radius: 4px;
  outline: none;
  transition: 0.1s;
}

.text-input input.dark {
  color: var(--col-text-light);
  background-color: #303030;
  border: 1px solid var(--col-text-sec-light);
}

.text-input input + label,
textarea + label {
  position: absolute;
  top: 15px;
  left: 0;
  display: flex;
  align-items: center;
  margin: 0 0 0 10px;
  background-color: var(--col-primary);
  color: var(--col-text-sec-dark);
  transition: all ease-in-out 0.2s, color ease-in-out 0.1s;
}

.text-input input.dark + label,
textarea.dark + label {
  background-color: #303030;
  color: var(--col-text-sec-light);
}

.text-input input + label *,
textarea + label * {
  color: var(--col-text-sec-dark);
}

.text-input input.dark + label *,
textarea.dark + label * {
  color: var(--col-text-sec-light);
}

.text-input input + label .mdi,
textarea + label .mdi {
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  margin-right: 8px;
  transition: all ease-in-out 0.2s, color ease-in-out 0.1s;
}

.text-input input:focus,
textarea:focus {
  border: 2px solid var(--col-accent) !important;
}

.text-input input:focus + label,
textarea:focus + label,
.text-input input.has-value + label,
textarea.has-value + label {
  top: -2px;
  font-size: 12px;
  padding: 0 4px;
}

.text-input input:focus + label,
textarea:focus + label,
.text-input input:focus + label *,
textarea:focus + label * {
  color: var(--col-accent) !important;
}

.text-input input:focus + label .mdi,
textarea:focus + label .mdi,
.text-input input.has-value + label .mdi,
textarea.has-value + label .mdi {
  height: 14px;
  font-size: 14px;
  line-height: 14px;
  margin-right: 4px;
}

.text-input input.valid {
  border: 2px solid #43a047;
}

.text-input input.dark.valid {
  border: 2px solid #00c853;
}

.text-input input.valid + label {
  color: #43a047;
}

.text-input input.dark.valid + label {
  color: #00c853;
}

.text-input input.error {
  border: 2px solid #b71c1c;
}

.text-input input.dark.error {
  border: 2px solid #d50000;
}

.text-input input.error + label {
  color: #b71c1c;
}

.text-input input.dark.error + label {
  color: #d50000;
}

.text-input input + label + span,
textarea + label + span {
  position: relative;
  top: -2px;
  font-size: 12px;
  margin: 0 0 8px 14px;
  color: var(--col-text-sec-dark);
}

.text-input input.dark + label + span,
textarea.dark + label + span {
  color: var(--col-text-sec-light);
}

.text-input input.error + label + span,
textarea.error + label + span {
  color: #b71c1c;
}

.text-input input.dark.error + label + span,
textarea.dark.error + label + span {
  color: #d50000;
}

.text-input input:disabled,
.text-input input:disabled + label,
.text-input input:disabled + label + span,
textarea:disabled,
textarea:disabled + label,
textarea:disabled + label + span {
  opacity: 1;
  color: var(--col-text-dis-dark);
  border-color: var(--col-text-dis-dark);
}

.text-input input.dark:disabled,
.text-input input.dark:disabled + label,
.text-input input.dark:disabled + label + span,
textarea.dark:disabled,
textarea.dark:disabled + label,
textarea.dark:disabled + label + span {
  opacity: 1;
  color: var(--col-text-dis-light);
  border-color: var(--col-text-dis-light);
}

textarea {
  height: 160px;
  width: 256px;
  outline: none;
  resize: none;
  margin: 6px 0;
  padding: 8px 12px;
  color: var(--col-text-dark);
  background-color: transparent;
  border: 1px solid var(--col-text-sec-dark);
  border-radius: 4px;
  transition: 0.1s;
}

textarea.dark {
  color: var(--col-text-light);
  border: 1px solid var(--col-text-sec-light);
}

/****************\
|   PAGINATION   |
\****************/

.pagination {
  margin: 6px 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.pagination li {
  padding: 0 3px;
}

.pagination li:not(:first-child):not(:last-child) a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  height: 28px;
  width: 28px;
  color: var(--col-text-sec-dark);
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.pagination.light li:not(:first-child):not(:last-child) a {
  color: var(--col-text-sec-light);
}

.pagination li:not(:first-child):not(:last-child):hover a {
  background-color: rgba(0, 0, 0, 0.08);
}

.pagination.light li:not(:first-child):not(:last-child):hover a {
  background-color: rgba(255, 255, 255, 0.08);
}

.pagination li:not(:first-child):not(:last-child) a.selected {
  color: var(--col-text-light) !important;
  background-color: var(--col-accent) !important;
}

/****************\
|   BREADCRUMB   |
\****************/

.breadcrumb {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  background-color: transparent;
}

.breadcrumb.light {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.breadcrumb.light a {
  color: var(--col-accent);
}

.breadcrumb-item.active,
.breadcrumb-item:before {
  color: var(--col-text-sec-dark) !important;
}

.breadcrumb.light .breadcrumb-item.active,
.breadcrumb.light .breadcrumb-item:before {
  color: var(--col-text-sec-light) !important;
}

/****************\
|   FILE INPUT   |
\****************/

.file-input {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  padding: 6px 12px;
  background-color: var(--col-accent);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.file-input:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23) !important;
}

.file-input * {
  color: var(--col-text-light) !important;
}

.file-input [type="file"] {
  display: none;
}

.file-input i {
  height: 20px;
  font-size: 20px;
  line-height: 20px;
}

.file-input p {
  margin: 0 0 0 8px;
}

.file-input .count {
  height: 18px;
  width: 18px;
  border-radius: 360px;
  margin: 0 0 0 8px;
  color: var(--col-accent) !important;
  background-color: var(--col-text-light);
  text-align: center;
  font-size: 12px;
  font-weight: bold;
}

.file-input .count .mdi {
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  color: var(--col-accent) !important;
}

/****************\
|   SEARCH BAR   |
\****************/

.search-bar {
  margin: 6px 0;
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease-in-out,
    border 0.2s ease-in-out;
}

.search-bar.dark {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.search-bar.dark * {
  color: var(--col-text-light);
}

/* .search-bar:hover, .search-bar.focus {
    background-color: #FFF;
    border: 1px solid #FFF;
    box-shadow: 0 0 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
} */

.search-bar.dark:hover,
.search-bar.dark.focus {
  background-color: rgba(255, 255, 255, 0.08);
}

.search-bar [type="text"] {
  height: 36px;
  width: 300px;
  border: none !important;
  outline: none !important;
  background-color: transparent;
}

.search-bar .btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.search-bar *:not(:last-child) {
  margin-right: 8px;
}

.search-bar input::placeholder {
  color: var(--col-text-dis-light);
}

/**************\
|   DROPDOWN   |
\**************/

.dropdown {
  position: absolute;
  overflow: hidden;
  z-index: 100;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  opacity: 0;
  transition: all 0.2s ease;
  transform-origin: right top 0px;
  transform: scale(0);
}

.dropdown.fixed {
  position: fixed;
}

.dropdown.active {
  opacity: 1;
  transform-origin: right top 0px;
  transform: scale(1);
}

.dropdown ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.dropdown li {
  opacity: 0;
  transition: background-color 0.2s ease-in-out, all 0.3s ease;
  transform: translateY(-30%);
}

.dropdown.active li {
  opacity: 1;
  transform: translateY(0px);
}

.dropdown li:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.dropdown li a {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.dropdown li a .mdi {
  margin-right: 16px;
}

.dropdown li a .mdi + span {
  margin-right: 40px;
}

/*************\
|   LOADING   |
\*************/

.loader svg path,
.loader svg rect,
.loader.dark svg path,
.loader.dark svg rect {
  fill: var(--col-accent-dark);
}

.loader svg path,
.loader svg rect,
.loader.light svg path,
.loader.light svg rect {
  fill: var(--col-accent);
}

/**************\
|   CAROUSEL   |
\**************/

.carousel {
  overflow: hidden;
  border-radius: 4px;
}

.carousel .image-shade {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  box-shadow: inset 0 -128px 100px -100px rgba(0, 0, 0, 0.54),
    inset 128px 0 100px -100px rgba(0, 0, 0, 0.54), inset -128px 0 100px -100px rgba(0, 0, 0, 0.54);
}

.carousel-indicators {
  align-items: center;
}

.carousel-indicators li {
  height: 6px;
  width: 6px;
  border-radius: 100%;
  transition: height 0.2s, width 0.2s, background-color 0.2s ease-in-out;
}

.carousel-indicators li:hover {
  background-color: #fff;
}

.carousel-indicators li.active {
  height: 10px;
  width: 10px;
}

.carousel-control-prev,
.carousel-control-next {
  transition: opacity 0.2s ease-in-out;
}

.carousel-control-prev .mdi,
.carousel-control-next .mdi {
  height: 36px;
  font-size: 36px;
  line-height: 36px;
}
