.item, .pair-radio {
  position: relative;
}

.item .panel {
  display: none;
}

.item .caller {
  cursor: pointer;
}

.select .caller,
.datepicker .caller,
.suggest .caller,
.multi-checkbox .caller{
  display: grid;
  width: 100%;
  align-items: center;
  grid-gap: 10px; 
  height: 100%;
  padding-left: 10px;
  padding-right: 10px; 
}

.item .caller:has(.leading) {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.item .caller:has(.trailling) {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 100%;
}

.item .caller:has(.leading):has(.trailling) {
  grid-template-columns: auto 1fr auto;
}


form .item {
  height: 52px;
}
form .item.text-area{
  height: auto;
}

form .select .caller,
form .datepicker .caller,
form .suggest .caller,
form .multi-checkbox .caller {
  width: 100% !important;
  border: 1px solid var(--outline);
  border-radius: var(--border-radius-xsm);
  -webkit-border-radius: var(--border-radius-xsm);
  -moz-border-radius: var(--border-radius-xsm);
  -ms-border-radius: var(--border-radius-xsm);
  -o-border-radius: var(--border-radius-xsm);
}

form .caller .label {
  line-height: 52px;
}

.text-field.error {
  border: 1px solid var(--error);
}

form .item.uploader.error,
form .item.select.error .caller,
form .item.suggest.error .caller  {
  border: 1px solid var(--error);
  caret-color: var(--error);
}

form .item.error .label::after {
  color: var(--error);
}

.item.active .caller {
  border: 1px solid var(--primary);
}

.item.active .caller>.icon {
  background-color: var(--primary);
}

.label {
  display: grid;
  align-items: center;
  height: 100%;
  cursor: unset;
  outline: none;
  position: relative;
}

.label br {
  display: none;
}


.text-field
{
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: var(--border-radius-xsm);
  -webkit-border-radius: var(--border-radius-xsm);
  -moz-border-radius: var(--border-radius-xsm);
  -ms-border-radius: var(--border-radius-xsm);
  -o-border-radius: var(--border-radius-xsm);
}

.text-field:has(.leading){
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-gap: 10px;
  align-items: center;
}
.text-field .leading{
  margin: 0 auto 0 auto;
}

.text-field input,
.uploader input {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0 15px 0 15px;
  outline: 0;
  border-radius: var(--border-radius-xsm);
  -webkit-border-radius: var(--border-radius-xsm);
  -moz-border-radius: var(--border-radius-xsm);
  -ms-border-radius: var(--border-radius-xsm);
  -o-border-radius: var(--border-radius-xsm);
  position: relative;
}

.pair-radio{
  border: 1px solid var(--outline);
  border-radius: var(--border-radius-xsm);
  -webkit-border-radius: var(--border-radius-xsm);
  -moz-border-radius: var(--border-radius-xsm);
  -ms-border-radius: var(--border-radius-xsm);
  -o-border-radius: var(--border-radius-xsm);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 15px;
  padding-top: 10px;
}
.pair-radio label{
  display: grid;
  grid-template-columns: auto 1fr;
}

.text-field::before,
.select::before,
.suggest::before,
.texta::before,
.uploader::before,
.datepicker::before,
.multi-checkbox::before,
.pair-radio::before,
.url::before,
.switcher::before {
  content: attr(rel);
  position: absolute;
  z-index: 1;
  width: fit-content;
  height: 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--neutral50);
  top: -9px;
  left: 20px;
  background-color: var(--surface);
  padding: 0 5px 0 5px;
  display: block;
  border-radius: var(--border-radius-xsm);
  -webkit-border-radius: var(--border-radius-xsm);
  -moz-border-radius: var(--border-radius-xsm);
  -ms-border-radius: var(--border-radius-xsm);
  -o-border-radius: var(--border-radius-xsm);
}

.text-field:focus-within{
  border: 1px solid var(--primary);
}
.text-field:focus-within::before,
.select.active::before,
.texta:focus-within::before,
.datepicker.active::before {
  color: var(--primary);
}


.text-field.error::before,
.select.error::before,
.suggest.error::before,
.texta.error::before,
.uploader.error::before,
.datepicker.error::before,
.multi-checkbox.error::before,
.pair-radio.error::before,
.url.error::before,
.switcher.error::before {
  color: var(--error);
}

.uploader{
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 10px;
  align-items: center;
  border: 1px solid var(--outline);
  border-radius: var(--border-radius-xsm);
  -webkit-border-radius: var(--border-radius-xsm);
  -moz-border-radius: var(--border-radius-xsm);
  -ms-border-radius: var(--border-radius-xsm);
  -o-border-radius: var(--border-radius-xsm);
}
.uploader input.btn-choose{
  background-color:var(--neutral90); 
  padding-top:10px;
  padding-bottom: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}
.uploader input.btn-choose:hover{
  border:1px solid var(--primary);
}
.guide-text{
  font-size: 0.8em;
  color: var(--neutral40);
  margin-bottom: 25px;
}
.msg-text{
  display: none;
  margin: 20px 0 20px 0;
  padding: 10px;
  width: 100%;;
  height: 52px;
  outline: none;
}
.text-area.error{
  border: 1px solid var(--error);
}


.item.active .menu-down,
.item.active .chevron-down {
  transform: rotate(180deg);
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}


.item.active > .panel {
  display: grid;
  background-color: var(--surface);
}

.item.active > .panel.abs {
  position: absolute;
  z-index: 999;

}

.item.popover.active {
  position: relative;
}

.item.popover.active >.panel {
  position: absolute;
}

.item.dialog.active > .panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.32);
  z-index: 999;
  display: grid;
  align-items: center;
}

/* .item.dialog.active>.caller {
  display: none;
} */

.item.offcanvas.active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.32);
  z-index: 999;
}

.item.offcanvas.active >.caller {
  display: none;
}

.item.offcanvas.active > .panel {
  display: block;
  width: 300px;
  background: #fff;
  height: 100%;
}

/* 
.panel-header {
  display: grid;
  align-items: center;
  grid-gap: 10px;
}

.panel-header:has(.leading) {
  grid-template-columns: auto 1fr;
}

.panel-header:has(.trailling) {
  grid-template-columns: 1fr auto;
}

.panel-header:has(.leading):has(.trailling) {
  grid-template-columns: auto 1fr auto;
} */


.datepicker .panel-header table {
 width: 100%;
}


.panel-content {
  max-height: 400px;
}

.panel-action {
  padding: 10px;
}

.item-pick {
  cursor: pointer;
}

/* start components */

.card,
.vcard {
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

.card-subtitle,
.card-body,
.vcard-subtitle,
.vcard-body {
  color: var(--on-surface-variant);
  width: 100%;
}

.tab>ul li {
  display: inline-grid;
  list-style: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
    text-align: center;
  transition: color .5s ease, border .1s ease;
  -webkit-transition: color .5s ease, border .1s ease;
  -moz-transition: color .5s ease, border .11s ease;
  -ms-transition: color .5s ease, border .1s ease;
  -o-transition: color .5s ease, border .1s ease;
  padding: 10px;
    background: var(--surface);
}

.tab ul li:hover {
    background: linear-gradient(rgba(var(--on-surface-op), 0.08), rgba(var(--on-surface-op), 0.08)), var(--surface);
}

.tab ul li:active {
    background: linear-gradient(rgba(var(--on-surface-op), 0.12), rgba(var(--on-surface-op), 0.12)), var(--surface);
}

.tab ul li .ripple {
  background: linear-gradient(rgba(var(--on-surface-op), 0.12), rgba(var(--on-surface-op), 0.12)), var(--surface);
}

.tab ul li.active:hover {
    background: linear-gradient(rgba(var(--primary-op), 0.08), rgba(var(--primary-op), 0.08)), var(--surface);
}

.tab ul li.active:active {
    background: linear-gradient(rgba(var(--primary-op), 0.12), rgba(var(--primary-op), 0.12)), var(--surface);
}

.tab ul li.active .ripple {
  background: linear-gradient(rgba(var(--primary-op), 0.12), rgba(var(--primary-op), 0.12)), var(--surface);
}

.tab>ul li .icon {
    background-color: var(--on-surface-variant);
}

.tab>ul li.active {
    border-bottom: 2px solid var(--primary);
    color: var(--primary);

}

.tab>ul li.active .icon {
    background-color: var(--primary);
}


.tab-content {
  display: none;
  transition: display .5s ease;
  -webkit-transition: display .5s ease;
  -moz-transition: display .5s ease;
  -ms-transition: display .5s ease;
  -o-transition: display .5s ease;
}

.tab-content.active {
  display: block !important;
}

.inline li {
  display: inline-block;
}


.dialog > .panel .dialog-content {
  width: calc(100% - 30px);
  height: auto;
  margin: 0 15px 0 15px;
  padding: 15px;
  background-color: var(--surface);
  border-radius: var(--border-radius-lg);
  -webkit-border-radius: var(--border-radius-lg);
  -moz-border-radius: var(--border-radius-lg);
  -ms-border-radius: var(--border-radius-lg);
  -o-border-radius: var(--border-radius-lg);
  box-shadow: var(--elevation-3);
}

.dialog .panel.small-full {
  height: 100%;
  width: 100%;
  margin: 0;
  border-radius: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
}

.dialog .panel:has(.datepicker.active),
.dialog .panel:has(.drop.active) {
  height: 95%;
}


.datepicker .panel {
  margin-top: 2px;
  background: linear-gradient(rgba(var(--primary-op), 0.11), rgba(var(--primary-op), 0.11)), var(--surface);
  border-radius: 16px;
  color: var(--on-surface-variant);
  padding: 12px;
}

.datepicker .panel .icon {
  background-color: var(--on-surface-variant);
}

.datepicker .panel-content {
  margin-top: 20px;
  overflow-y: unset;
}

.datepicker .panel-content table {
  width: 100%;
}

.datepicker .panel-content table tr th {
  text-align: center;
  padding-bottom: 8px;
  font-size: 1.2em;
}

.datepicker .panel-content table tr td {
  position: relative;
  vertical-align: top;
  border: 5px solid transparent;
  height: 45px;
  width: 45px;
}

.datepicker .panel-content .item-pick {
  cursor: pointer;
}

.datepicker .panel-content .item-pick span {
  font-size: 1.45em;
  padding: 3px;
  height: 100%;
  width: 100%;
  display: block;
  text-align: center;
  background-color: var(--surface);
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
}

.datepicker .panel-content .item-pick:hover span {
  background-color: var(--primary);
  color: var(--on-primary);
}

.datepicker .panel-content tr td::after {
  content: attr(lunar);
  display: block;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  height: 20px;
  text-align: right;
  padding-right: 2px;
  padding-top: 3px;
  font-size: 10px;
  color: #828282;
}

.datepicker .panel-content.lunar .item-pick:hover::after,
.datepicker .panel-content.price .item-pick:hover::after {
  color: var(--on-primary);
}

.datepicker .panel-content.price .item-pick::after {
  content: attr(price);
  display: block;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  text-align: center;
  padding: 0 3px 0 3px;
  font-size: 0.9em;
  color: var(--neutral60);
}

.datepicker .panel-content .passed span {
  color: var(--neutral60);
  font-size: 1.45em;
  padding: 3px;
  height: 100%;
  width: 100%;
  display: block;
  text-align: center;
  border: 1px solid var(--neutral80);
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
}

.datepicker .panel-content .item-pick.active span {
  background-color: var(--primary);
  color: var(--on-primary);
}

.datepicker .panel-content .item-pick.active::after {
  color: var(--surface);
}

.cal-options {
  padding: 10px 0 10px 0;
}

.cal-options label {
  cursor: pointer;
}

.suggest .panel {
  box-shadow: var(--elevation-1);
  background: linear-gradient(rgba(var(--primary-op), 0.08), rgba(var(--primary-op), 0.08)), var(--surface);
}
.suggest .panel .panel-header{
  padding: 10px;
  border-bottom: 1px solid var(--outline);
}
.suggest .panel .panel-content{
  max-height: 400px;
  padding: 15px;
}

.suggest .panel .item-pick {
  display: block;
  padding: 10px 0 10px 20px;
  color: var(--on-surface);
}

.suggest .panel .item-pick:hover {
  background: rgba(var(--primary-op), 0.08);
}

.suggest .panel .item-pick.active {
  background: rgba(var(--primary-op), 0.12) url(/images/icon/check.svg) right center no-repeat;
  background-size: 24px;
  background-position: 95% 50%;
}

.pagination ul {
  text-align: center;
}

.pagination ul li {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

.pagination ul li:last-child {
  margin-right: 0;
}

.pagination ul li a {
  display: grid;
  height: 40px;
  width: 40px;
  border: 1px solid var(--outline);
  align-items: center;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.pagination ul li a:hover {
  background: var(--surface-variant);
}

.pagination ul li a.active {
  background-color: var(--primary);
  color: var(--on-primary);
  border: 1px solid var(--primary);
}

a {
  color: var(--on-surface);
}

a:hover {
  color: var(--primary);
}

a:focus {
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--surface-0)
}

a:hover:focus {
  outline: 0;
  color: var(--on-primary-container)
}

.text-start {
  text-align: left !important;
}

.text-end {
  text-align: right !important;
}

.text-center {
  text-align: center !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-decoration-underline {
  text-decoration: underline !important;
}

.text-decoration-line-through {
  text-decoration: line-through !important;
}

.text-lowercase {
  text-transform: lowercase !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.text-capitalize {
  text-transform: capitalize !important;
}

.text-wrap {
  white-space: normal !important;
}

.text-nowrap {
  white-space: nowrap !important;
}

.border {
  border: 1px solid var(--outline);
}

.divider {
  border-top: solid 1px var(--outline);
}

.d-block {
  display: block;
}

.corner-xsm {
  border-radius: var(--border-radius-xsm) !important;
  -webkit-border-radius: var(--border-radius-xsm);
  -moz-border-radius: var(--border-radius-xsm);
  -ms-border-radius: var(--border-radius-xsm);
  -o-border-radius: var(--border-radius-xsm);
  overflow: hidden;
}

.corner-sm {
  border-radius: var(--border-radius-sm) !important;
  -webkit-border-radius: var(--border-radius-sm) !important;
  -moz-border-radius: var(--border-radius-sm) !important;
  -ms-border-radius: var(--border-radius-sm) !important;
  -o-border-radius: var(--border-radius-sm) !important;
  overflow: hidden;
}

.corner-md {
  border-radius: var(--border-radius-md) !important;
  -webkit-border-radius: var(--border-radius-md) !important;
  -moz-border-radius: var(--border-radius-md) !important;
  -ms-border-radius: var(--border-radius-md) !important;
  -o-border-radius: var(--border-radius-md) !important;
  overflow: hidden;
}

.corner-lg {
  border-radius: var(--border-radius-lg) !important;
  -webkit-border-radius: var(--border-radius-lg) !important;
  -moz-border-radius: var(--border-radius-lg) !important;
  -ms-border-radius: var(--border-radius-lg) !important;
  -o-border-radius: var(--border-radius-lg) !important;
  overflow: hidden;
}

.corner-xl {
  border-radius: var(--border-radius-xl) !important;
  -webkit-border-radius: var(--border-radius-xl) !important;
  -moz-border-radius: var(--border-radius-xl) !important;
  -ms-border-radius: var(--border-radius-xl) !important;
  -o-border-radius: var(--border-radius-xl) !important;
  overflow: hidden;
}

.corner-pill {
  border-radius: var(--border-radius-pill) !important;
  -webkit-border-radius: var(--border-radius-pill) !important;
  -moz-border-radius: var(--border-radius-pill) !important;
  -ms-border-radius: var(--border-radius-pill) !important;
  -o-border-radius: var(--border-radius-pill) !important;
  overflow: hidden;
}

.corner-circle {
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  -moz-border-radius: 50% !important;
  -ms-border-radius: 50% !important;
  -o-border-radius: 50% !important;
}

.overlayed::after {
  background: rgba(0, 0, 0, 0.32);
  content: '';
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

.overlayed .viewing {
  z-index: 9999;
}

/* SCROLL BAR */
.scroll-x {
  overflow-x: scroll;
  overflow-y: hidden;
}

.scroll-y {
  overflow-y: scroll;
  overflow-x: hidden;
}

.scroll-x,
.scroll-y {
  scrollbar-width: 50px;
  scrollbar-color: var(--outline);
}

.scroll-x::-webkit-scrollbar,
.scroll-y::-webkit-scrollbar {
  width: 6px;
}

.scroll-x::-webkit-scrollbar-track,
.scroll-y::-webkit-scrollbar-track {
  background: none;
}

.scroll-x::-webkit-scrollbar-thumb,
.scroll-y::-webkit-scrollbar-thumb {
  background-color: rgba(var(--outline-op), 0.5);
  border-radius: 6px;
  border: none;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
}


.loading-bar {
  width: 100%;
  height: 4px;
  border-radius: 30px;
  background-color: rgba(var(--primary-op), 0.2);
  position: relative;
}

.loading-bar::before {
  content: "";
  position: absolute;
  background: var(--primary);
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  border-radius: 30px;
  animation: moving 1s ease-in-out infinite;
  -webkit-animation: moving 1s ease-in-out infinite;
}

@keyframes moving {
  50% {
    width: 100%;
  }

  100% {
    width: 0;
    right: 0;
    left: unset;
  }
}

.loader {
  --red: #d62d20;
  --blue: #0057e7;
  --green: #008744;
  --yellow: #ffa700;
  position: relative;
  width: 50px;
}

.loader:before {
  content: "";
  display: block;
  padding-top: 100%;
}

.loader svg {
  animation: rotate73451 2s linear infinite;
  height: 100%;
  transform-origin: center center;
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.loader circle {
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: dash0175 1.5s ease-in-out infinite, color7123 6s ease-in-out infinite;
  stroke-linecap: round;
}

@keyframes rotate73451 {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash0175 {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }

  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}

@keyframes color7123 {

  100%,
  0% {
    stroke: var(--red);
  }

  40% {
    stroke: var(--blue);
  }

  66% {
    stroke: var(--green);
  }

  80%,
  90% {
    stroke: var(--yellow);
  }
}

.wave {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  background: rgba(var(--primary-op), 0.25);
  border-radius: 50%;
  transform: scale(0.2);
  opacity: 0;
  pointer-events: none;
  -webkit-animation: ripple .75s ease-out;
  -moz-animation: ripple .75s ease-out;
  animation: ripple .75s ease-out;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  z-index: 100 !important;
}

@-webkit-keyframes ripple {
  from {
    opacity: 1;
  }

  to {
    transform: scale(2);
    opacity: 0;
  }
}

@-moz-keyframes ripple {
  from {
    opacity: 1;
  }

  to {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes ripple {
  from {
    opacity: 1;
  }

  to {
    transform: scale(2);
    opacity: 0;
  }
}

.btn {
  display: grid;
  align-items: center;
  overflow: hidden;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  border-radius: var(--border-radius-pill);
  -webkit-border-radius: var(--border-radius-pill);
  -moz-border-radius: var(--border-radius-pill);
  -ms-border-radius: var(--border-radius-pill);
  -o-border-radius: var(--border-radius-pill);
  position: relative;
  height: 40px;
  padding: 0 20px 0 20px;
  text-decoration: none;
  width: fit-content;
  grid-gap: 8px;
  outline: none;
  border: none;
  cursor: pointer;
}

.btn:has(.leading) {
  padding: 0 16px 0 16px;
  grid-template-columns: auto 1fr;
}

.btn:has(.trailling) {
  padding: 0 10px 0 16px;
  grid-template-columns: 1fr auto;
}

.btn:has(.leading):has(.trailling) {
  padding: 0 16px 0 16px;
  grid-template-columns: auto 1fr auto;
}

.btn.disabled {
  pointer-events: none;
  box-shadow: none !important;
  cursor: default !important;
  background: rgba(var(--on-surface-op), 0.12) !important;
  color: rgba(var(--on-surface-op), 0.38) !important;
  border-color: rgba(var(--outline-op), 0.12) !important;
}

.btn.disabled .icon {
  background: rgba(var(--on-surface-op), 0.38) !important;
}

/* Elevated Button */
.btn .elevated {
  background: var(--surface-1);
  color: var(--primary);
  border: none;
  box-shadow: var(--elevation-1);
}

.btn .elevated .icon {
  background-color: var(--primary);
}

.btn .elevated:hover {
  background: linear-gradient(rgba(var(--primary-op), 0.08), rgba(var(--primary-op), 0.08)), var(--surface);
  box-shadow: var(--elevation-2) !important;
}

.btn.elevated:active {
  background: linear-gradient(rgba(var(--primary-op), 0.12), rgba(var(--primary-op), 0.12)), var(--surface);
  box-shadow: var(--elevation-1) !important;
}

/* Filled Button */
.btn.filled {
  background-color: var(--primary);
  color: var(--on-primary);
  border: none;
}

.btn.filled .icon {
  background-color: var(--on-primary);
}

.btn.filled:hover {
  background: linear-gradient(rgba(var(--on-primary-op), 0.08), rgba(var(--on-primary-op), 0.08)), var(--primary);
  box-shadow: var(--elevation-1) !important;
}

.btn.filled:active {
  background: linear-gradient(rgba(var(--on-primary-op), 0.12), rgba(var(--on-primary-op), 0.12)), var(--primary);
  box-shadow: none !important;
}

.btn.filled .ripple {
  background: rgba(var(--on-primary-op), 0.35);
}

/* Filled Tonal Button */
.btn.tonal {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
  border: none;
  box-shadow: none;
}

.btn.tonal .icon {
  background-color: var(--on-secondary-container);
}

.btn.tonal:hover {
  background: linear-gradient(rgba(var(--on-secondary-container-op), 0.08), rgba(var(--on-secondary-container-op), 0.08)), var(--secondary-container);
  box-shadow: var(--elevation-1) !important;
}

.btn.tonal:active {
  box-shadow: none !important;
  background: linear-gradient(rgba(var(--on-secondary-container-op), 0.12), rgba(var(--on-secondary-container-op), 0.12)), var(--secondary-container);
}

/* Outlined button */
.btn.outlined {
  background-color: var(--surface);
  color: var(--primary);
  border: 1px solid var(--outline);
  box-shadow: none;
}

.btn.outlined .icon {
  background-color: var(--primary);
}

.btn.outlined:hover {
  background-color: rgba(var(--primary-op), 0.08);
}

.btn.outlined:active {
  background-color: rgba(var(--primary-op), 0.12);
}


/* Text Button */
.btn.text {
  background: none;
  color: var(--primary);
  border: none;
  box-shadow: none;
}

.btn.text .icon {
  background-color: var(--primary);
}

.btn.text:hover {
  background-color: rgba(var(--primary-op), 0.08);
}

.btn.text:active {
  background-color: rgba(var(--primary-op), 0.12);
}


.radiobox,
.checkbox,
.icon-btn {
  display: grid;
  align-items: center;
  justify-items: center;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.radiobox:hover,
.checkbox:hover,
.icon-btn:hover {
  background-color: rgba(var(--on-surface-op), 0.08);
}

.radiobox:active,
.checkbox:active,
.icon-btn:active {
  background-color: rgba(var(--on-surface-op), 0.12);
}

.radiobox:focus-within::after,
.checkbox:focus-within::after,
.icon-btn:focus-within::after {
  position: absolute;
  background: rgba(var(--primary-op), 0.50);
  content: '';
  border-radius: 50%;
  transform: scale(1.2);
  opacity: 0;
  pointer-events: none;
  -webkit-animation: scale .5s ease-out;
  -moz-animation: scale .5s ease-out;
  animation: scale .5s ease-out;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  width: 18px;
  height: 18px;
  display: block;
  z-index: 100 !important;
}

@-webkit-keyframes scale {
  from {
    opacity: 1;
  }

  to {
    transform: scale(3);
    opacity: 0;
  }
}

@-moz-keyframes scale {
  from {
    opacity: 1;
  }

  to {
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes scale {
  from {
    opacity: 1;
  }

  to {
    transform: scale(3);
    opacity: 0;
  }
}

.radiobox>input,
.checkbox>input {
  box-shadow: var(--elevation-2);
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  outline: none;
  transition-duration: 0.3s;
  cursor: pointer;
}


.icon-btn.disabled {
  background-color: rgba(var(--on-surface-op), 0.12) !important;
  border-color: rgba(var(--outline-op), 0.12) !important;
  cursor: default;
  pointer-events: none;
}

.icon-btn.disabled .icon {
  background-color: rgba(var(--on-surface-op), 0.38) !important;
}

/* Standard Button */
.icon-btn.standard {
  border: none;
  background: none;
}

.icon-btn.standard .icon {
  background-color: var(--on-surface-variant);
}

.icon-btn.standard:hover {
  background-color: rgba(var(--on-surface-variant-op), 0.08);
}

.icon-btn.standard:active {
  background-color: rgba(var(--on-surface-variant-op), 0.12);
}

/* Filled Button */
.icon-btn.filled .icon {
  background-color: var(--primary);
}

.icon-btn.filled {
  background: var(--surface-variant);
  border: none;
}

.icon-btn.filled:hover {
  background: linear-gradient(rgba(var(--primary-op), 0.08), rgba(var(--primary-op), 0.08)), var(--surface-variant);
}

.icon-btn.filled:active {
  background: linear-gradient(rgba(var(--primary-op), 0.12), rgba(var(--primary-op), 0.12)), var(--surface-variant);
}

/* Tonal Button unselected */
.icon-btn.tonal {
  background-color: var(--surface-variant);
  border: none;
}

.icon-btn.tonal .icon {
  background-color: var(--on-surface-variant);
}

.icon-btn.tonal:hover {
  background: linear-gradient(rgba(var(--on-surface-variant-op), 0.08), rgba(var(--on-surface-variant-op), 0.08)), var(--surface-variant);
}

.icon-btn.tonal:active {
  background: linear-gradient(rgba(var(--on-surface-variant-op), 0.12), rgba(var(--on-surface-variant-op), 0.12)), var(--surface-variant);
}

/* Tonal Button selected */

.icon-btn.tonal.selected {
  background-color: var(--secondary-container);
  border: none;
}

.icon-btn.tonal.selected .icon {
  background-color: var(--on-secondary-container);
}

.icon-btn.tonal.selected:hover {
  background: linear-gradient(rgba(var(--on-secondary-container-op), 0.08), rgba(var(--on-secondary-container-op), 0.08)), var(--secondary-container);
}

.icon-btn.tonal.selected:active {
  background: linear-gradient(rgba(var(--on-secondary-container-op), 0.12), rgba(var(--on-secondary-container-op), 0.12)), var(--secondary-container);
}

/* Outlined Button */

.icon-btn.outlined {
  border: 1px solid var(--outline);
  background: none;
}

.icon-btn.outlined .icon {
  background-color: var(--on-surface-variant);
}

.icon-btn.outlined:hover {
  background: rgba(var(--on-surface-variant-op), 0.08);
}

.icon-btn.outlined:active {
  background: rgba(var(--on-surface-variant-op), 0.12);
}


/* Standard selected */
.icon-btn.standard.selected .icon {
  background-color: var(--primary);
}

.icon-btn.standard.selected:hover {
  background: rgba(var(--primary-op), 0.08);
}

.icon-btn.standard.selected:active {
  background: rgba(var(--primary-op), 0.12);
}

/* Filled selected */
.icon-btn.filled.selected {

  background-color: var(--primary);
}

.icon-btn.filled.selected .icon {
  background-color: var(--on-primary);
}

.icon-btn.filled.selected:hover {
  background: linear-gradient(rgba(var(--on-primary-op), 0.08), rgba(var(--on-primary-op), 0.08)), var(--primary);
}

.icon-btn.filled.selected:active {
  background: linear-gradient(rgba(var(--on-primary-op), 0.12), rgba(var(--on-primary-op), 0.12)), var(--primary);
}

/* Outlined selected */
.icon-btn.outlined.selected {
  border: none;
  background: var(--inverse-surface);
}

.icon-btn.outlined.selected .icon {
  background-color: var(--inverse-on-surface);
}

.icon-btn.outlined.selected:hover {
  background: linear-gradient(rgba(var(--inverse-on-surface-op), 0.08), rgba(var(--inverse-on-surface-op), 0.08)), var(--inverse-surface);
}

.icon-btn.outlined.selected:active {
  background: linear-gradient(rgba(var(--inverse-on-surface-op), 0.12), rgba(var(--inverse-on-surface-op), 0.12)), var(--inverse-surface);
}

.checkbox>input {
  height: 18px;
  width: 18px;
  border: 2px solid var(--on-surface-variant);
  border-radius: 2px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  -ms-border-radius: 2px;
  -o-border-radius: 2px;
}

.checkbox>input:checked {
  background: var(--primary) url(/images/icon/check-white.svg) center center no-repeat;
  background-size: 18px;
  border: 2px solid var(--primary);
}

/* Disabled checkbox */
.checkbox.disabled {
  background: none;
  cursor: default;
}

.checkbox.disabled input {
  border: 2px solid var(--on-surface);
  opacity: 38%;
  cursor: default;
}

.checkbox.disabled input:checked {
  background: var(--on-surface) url(/images/icon/check-white.svg) center center no-repeat;
}

/* Error checkbox */
.checkbox.error input {
  border-color: var(--error);
}

.checkbox.error input:checked {
  background: var(--error) url(/images/icon/check-white.svg) center center no-repeat;
}

.checkbox.error:hover {
  background-color: rgba(var(--error-op), 0.08);
}

.checkbox.error:active {
  background-color: rgba(var(--error-op), 0.12);
}

.checkbox.error:focus-within::after {
  background: rgba(var(--error-op), 0.50);
}

/* RADIO BOX */
.radiobox>input {
  height: 20px;
  width: 20px;
  background-color: var(--on-surface-variant);
  -webkit-mask-image: url(/images/icon/radiobox-blank.svg);
  mask-image: url(/images/icon/radiobox-blank.svg);
}

.radiobox>input:checked {
  -webkit-mask-image: url(/images/icon/radiobox-marked.svg);
  mask-image: url(/images/icon/radiobox-marked.svg);
  background-size: 18px;
  background-color: var(--primary);
}

/* Disabled checkbox */
.radiobox.disabled {
  background: none;
  cursor: default;
}

.radiobox.disabled input {
  border: 2px solid var(--on-surface);
  opacity: 38%;
  cursor: default;
}

.radiobox.disabled input:checked {
  -webkit-mask-image: url(/images/icon/radiobox-marked.svg);
  mask-image: url(/images/icon/radiobox-marked.svg);
  background-color: var(--on-surface);
}

.chip {
  display: grid;
  align-items: center;
  height: 34px;
  cursor: pointer;
  padding: 0 16px 0 16px;
  grid-gap: 8px;
  grid-template-columns: 1fr;
  width: fit-content;
}

.chip:has(.leading) {
  grid-template-columns: 18px 1fr;
  padding: 0 16px 0 8px;
}

.chip:has(.trailling) {
  grid-template-columns: 1fr 18px;
  padding: 0 8px 0 16px;
}

.chip:has(.leading):has(.trailling) {
  grid-template-columns: 18px auto 18px;
  padding: 0 8px 0 8px;
}

.chip .icon {
  width: 18px;
  height: 18px;
  background-color: var(--on-surface);
}

.chip.active .icon {
  background-color: var(--primary);
}

.chip .ripple {
  background: rgba(var(--primary-op), 0.25);
}

.chip.outlined {
  border: 1px solid var(--outline);
  color: var(--on-surface);
  background: var(--surface);
}

.chip.outlined:hover {
  background-color: rgba(var(--on-surface-variant-op), 0.08);
}

.chip.outlined:active {
  background-color: rgba(var(--on-surface-variant-op), 0.12);
}

.chip.elevated {
  border: none;
  box-shadow: var(--elevation-2);
  background: linear-gradient(rgba(var(--primary-op), 0.05), rgba(var(--primary-op), 0.05)), var(--surface);
}

.chip.elevated:hover {
  background: linear-gradient(rgba(var(--on-surface-variant-op), 0.08), rgba(var(--on-surface-variant-op), 0.08)), var(--surface);
}

.chip.elevated:active {
  box-shadow: var(--elevation-1);
  background: linear-gradient(rgba(var(--on-surface-variant-op), 0.12), rgba(var(--on-surface-variant-op), 0.05)), var(--surface);
}

.chip.active {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);

}

.chip.active:hover {
  background: linear-gradient(rgba(var(--on-secondary-container-op), 0.08), rgba(var(--on-secondary-container-op), 0.08)), var(--secondary-container);
  box-shadow: var(--elevation-1);
}

.chip.active:active {
  background: linear-gradient(rgba(var(--on-secondary-container-op), 0.12), rgba(var(--on-secondary-container-op), 0.12)), var(--secondary-container);
  box-shadow: none;
}

.chip.disabled {
  opacity: 38%;
  box-shadow: none !important;
  pointer-events: none;
}

.select .panel {
  box-shadow: var(--elevation-2);
  background: linear-gradient(rgba(var(--primary-op), 0.08), rgba(var(--primary-op), 0.08)), var(--surface);
  margin-top: 2px;
  min-width: 100%;
  border-radius: var(--border-radius-xsm);
  -webkit-border-radius: var(--border-radius-xsm);
  -moz-border-radius: var(--border-radius-xsm);
  -ms-border-radius: var(--border-radius-xsm);
  -o-border-radius: var(--border-radius-xsm);
}


.select .panel ul li {
  display: block;
  padding: 10px 35px 10px 20px;
  color: var(--on-surface);
  cursor: pointer;
  width: 100%;
}

.select .panel ul li:hover {
  background: rgba(var(--primary-op), 0.08);
}

.select .panel ul li.active {
  background: rgba(var(--primary-op), 0.12) url(/images/icon/check.svg) right center no-repeat;
  background-size: 24px;
  background-position: 95% 50%;
}


.select.disabled {
  opacity: 0.38;
  pointer-events: none;
}



.lists li {
  list-style: none;
  display: grid;
  grid-gap: 16px;
  padding: 8px 24px 8px 16px;
}

.lists li:has(.leading) {
  grid-template-columns: auto 1fr;
}

.lists li:has(.trailling) {
  grid-template-columns: 1fr auto;
}

.lists li:has(.leading):has(.trailling) {
  grid-template-columns: auto 1fr auto;
}

.lists li:has(.video-thumbnail) {
  padding: 12px 24px 12px 0;
}

.lists li .headline {
  display: block;
  font-weight: bold;
  color: var(--on-surface);
}

.lists li .supporting {
  color: var(--on-surface-variant);
}

.lists li .trailling {
  color: var(--on-surface-variant);
}

.lists .leading .icon {
  background: var(--on-surface-variant);
  width: 24px;
  height: 24px;
}

.lists .leading .avatar {
  background: var(--primary-container);
  color: var(--on-primary-container);
  width: 40px;
  height: 40px;
  display: grid;
  align-items: center;
  justify-content: center;
}

.lists .leading .thumbnail {
  width: 56px;
  height: 56px;
}

.lists .leading .video-thumbnail {
  width: 96px;
  height: 64px;
}

.lists .divider {
  border-color: var(--surface-variant);
}

.one-line li {
  align-items: center;
  padding: 8px 24px 8px 16px;
}

.two-line li {
  height: 72px;
  align-items: center;
  padding: 8px 24px 8px 16px;
}

.three-line li {
  height: 88px;
  padding: 12px 24px 12px 12px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 16px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-variant);
  border-radius: 100px;
  -webkit-transition: .4s;
  transition: .4s;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 0px;
  top: -2px;
  background-color: var(--surface);
  box-shadow: var(--elevation-1);
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

.switch input:checked+.slider {
  background-color: var(--primary80);
  border-color: var(--primary);
}


.switch input:checked+.slider:before {
  transform: translateX(19px);
  -webkit-transform: translateX(19px);
  -ms-transform: translateX(19px);
  background-color: var(--primary);
  -moz-transform: translateX(19px);
  -o-transform: translateX(19px);
}

.search {
  padding: 0 16px 0 16px;
  display: grid;
  grid-gap: 16px;

  grid-template-columns: 1fr;
  align-items: center;
  background: var(--surface);
}

.search:has(.leading) {
  grid-template-columns: auto 1fr;
}

.search:has(.trailling) {
  grid-template-columns: 1fr auto;
}

.search:has(.leading):has(.trailling) {
  grid-template-columns: auto 1fr auto;
}

.search .icon {
  background: var(--on-surface-variant);
}

.search input {
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  outline: none;
  border: none;
  color: var(--on-surface-variant);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  -webkit-mask-image: url(/images/icon/close.svg);
  mask-image: url(/images/icon/close.svg);
  width: 24px;
  height: 24px;
  background-color: var(--on-surface);
}

@media (min-width: 768px) {

  .dialog .panel .dialog-content,
  .dialog .panel.small-full {
    margin: 0 auto 0 auto;
    width: 550px;
    height: auto;
    border-radius: var(--border-radius-lg);
    -webkit-border-radius: var(--border-radius-lg);
    -moz-border-radius: var(--border-radius-lg);
    -ms-border-radius: var(--border-radius-lg);
    -o-border-radius: var(--border-radius-lg);
  }

}


@media (min-width: 992px) {

  .datepicker .panel {
    width: 400px;
    box-shadow: var(--elevation-3);
  }
}

@media (min-width: 1200px) {}