/** Tablet device **/
@media only screen and (max-width: 768px) {
  .capsule__nav {
    max-width: 220px;
    padding: 2.5em 15px;
  }
  .headline__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .timeline {
    padding: 0;
  }
  .timeline .timeline__line {
    left: 40px;
  }
  .timeline .timeline__row {
    margin: 30px 0 3px 80px;
  }
  .timeline .timeline__entry {
    width: 100%;
  }
  .timeline__row--start .timeline__entry::before {
    left: -7px;
  }
  .timeline__row--start .timeline__icon {
    left: -60px;
  }
  .timeline .timeline__year {
    text-align: left;
  }
}
/** Handphone device **/
@media only screen and (max-width: 576px) {
  body {
    padding: 25px 0 60px 0;
    min-height: 100vh;
  }
  .capsule__body {
    padding: 15px;
  }
  .capsule__main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .capsule__nav {
    display: none;
  }
  .headline {
    display: initial;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(255,255,255);
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0.6) 100%);
    z-index: 1000;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-radius: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0 8px;
    transition: all 0.3s cubic-bezier(.53,.53,.27,1);
    will-change: all;
    display: initial;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  }
  .bottom-nav.is-open {
    box-shadow: 0 -6px 15px rgba(0,0,0,0.2);
    padding-top: 40px;
    border-radius: 80% 80% 0 0 / 25% 25% 0 0;
  }
  .bottom-nav .bottom-nav__menu {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-evenly;
  }
  .bottom-nav .bottom-nav__item {
    list-style: none;
    width: 20%;
    position: relative;
  }
  .bottom-nav .bottom-nav__item.is-active::before {
    content: "";
    width: 4px;
    height: 4px;
    background: red;
    position: absolute;
    z-index: 2;
    bottom: 0;
    border-radius: 100%;
    left: calc(50% - 2px);
    box-shadow: 0px 0px 8px 4px lightpink;
  }
  .bottom-nav .bottom-nav__link.is-touched {
    will-change: transform, opacity;
    animation: zoomOut 0.25s cubic-bezier(.53,.53,.27,1) forwards;
  }
  /* Three classes, to keep the colour over the dark theme's a:visited and a:hover. */
  .bottom-nav .bottom-nav__item .bottom-nav__link {
    color: #333;
    font-size: 0.75rem;
    padding: 8px;
    display: block;
    text-align: center;
    line-height: 1.2;
    outline: none;
    position: relative;
    margin: auto;
    transition: all 0.8s ease-out;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: inherit;
  }
  .bottom-nav .bottom-nav__icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 3px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .3);
    transition: all 0.3s ease-out;
  }
  /* Unread count, on the bell's top-right corner. */
  .bottom-nav .bottom-nav__badge {
    position: absolute;
    top: 3px;
    left: 50%;
    min-width: 20px;
    margin-left: 3px;
    padding: 0 5px;
    border: 2px solid #fff;
    font-size: 0.65rem;
    line-height: 16px;
    text-align: center;
  }
  .bottom-nav .bottom-nav__item--extra {
    display: none;
  }
  .bottom-nav .bottom-nav__more {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: rgb(5,0,83);
    background: linear-gradient(0deg, rgba(5,0,83,1) 0%, rgba(9,9,121,1) 41%, rgba(86,0,170,1) 100%);
    text-align: center;
    line-height: 1;
    color: #fff;
    position: relative;
    z-index: 10;
    font-size: 1.5rem;
    margin: -16px auto auto;
    transition: all 0.3s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
    border-top: 1px solid rgba(255,255,255,50%);
    padding-top: 12px;
    cursor: pointer;
  }
  .bottom-nav .bottom-nav__more-label {
    font-size: 9px;
    display: block;
  }
  /* The Menu button shows the menu icon, and a close icon while the menu is open. */
  .bottom-nav .bottom-nav__more-icon {
    display: block;
  }
  .bottom-nav .bottom-nav__more-icon--menu {
    animation: spinSpin 3s ease;
    animation-delay: 2s;
    animation-iteration-count: 1;
  }
  .bottom-nav .bottom-nav__more-icon--close,
  .bottom-nav.is-open .bottom-nav__more-icon--menu {
    display: none;
  }
  .bottom-nav.is-open .bottom-nav__menu {
    flex-wrap: wrap;
  }
  .bottom-nav.is-open .bottom-nav__item {
    flex: 1 0 20%;
    margin-bottom: 20px;
  }
  .bottom-nav.is-open .bottom-nav__more {
    margin-top: -60px;
  }
  .bottom-nav.is-open .bottom-nav__more-icon--close {
    display: block;
  }
  .bottom-nav.is-open .bottom-nav__link {
    color: #000;
  }
  .bottom-nav.is-open .bottom-nav__icon {
    font-size: 1.8rem;;
  }
  .bottom-nav.is-open .bottom-nav__item--extra {
    display: initial;
  }
  .profile-wrapper__avatar {
    width: 8rem;
    height: 8rem;
  }
  .appointment-card__aside {
    border-right: none;
    border-bottom: 1px solid #ccc;
  }
  .appointment-card__aside .appointment-card__link {
    display: block !important;
    width: fit-content;
    margin: auto;
  }
  .appointment-card__details {
    padding: 0px;
  }
  .appointment-card__details.appointment-card__details--padded {
    padding: 15px;
  }
  .appointment-card .appointment-card__table {
    font-size: 0.875rem;
  }
  .appointment-card .appointment-card__table td:nth-child(1) {
    line-height: 1.2;
    width: 35%;
    padding-left: 15px;
    border-right: 1px solid #ddd;
  }
  .appointment-card .appointment-card__table tr {
    vertical-align: middle;
    background: linear-gradient(0deg, rgba(240,240,240,1) 0%, rgba(255,255,255,1) 100%);
  }
  .account-switcher {
    left: 8px;
    top: 45px;
    right: 8px;
    width: initial;
    z-index: 8;
  }
  .timeline {
    padding: 0 10px;
  }
  .timeline .timeline__row {
    margin: 30px 0 3px 70px;
  }
  .rx-card .rx-card__value {
    display: block;
  }
  .rx-card .rx-card__field {
    background: linear-gradient(0deg, rgba(240,240,240,1) 0%, rgba(255,255,255,1) 100%);
  }
  .modal__dialog {
    margin-top: 70px;
  }
}

/** Small scale device **/
@media only screen and (max-width: 375px) {
  html {
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
  }
  body {
    padding: 42px 0 60px 0;
  }
  .capsule {
    margin: 0 0 20px 0;
  }
  .headline {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0;
    height: 40px;
    right: 0;
    left: 0;
    padding-top: 5px;
  }
  .profile-wrapper__avatar {
    width: 7rem;
    height: 7rem;
    border-width: 0.2rem;
  }
  .bottom-nav .bottom-nav__more {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  .bottom-nav.is-open .bottom-nav__icon {
    font-size: 1.6rem;
  }
  .timeline {
    padding: 0;
  }
  .timeline .timeline__line,
  .timeline .timeline__entry::before,
  .timeline .timeline__icon {
    display: none;
  }
  .timeline .timeline__row {
    margin: 10px 0;
  }
}

/*@media (prefers-color-scheme: dark) {*/
  .root--dark {
    background: rgba(9,9,121,1);
    background: linear-gradient(145deg, rgba(4,4,60,1) 0%, rgba(19,55,90,1) 30%, rgba(58,13,80,1) 65%, rgba(88,19,50,1) 100%);
  }
  body.page--dark,
  body.page--dark table td,
  body.page--dark .list-group__item {
    color: #fff;
    text-shadow: 0 0px 3px rgba(0, 0, 0, 0.7);
  }
  body.page--dark .capsule {
    box-shadow: 0px 8px 16px rgba(0,0,0,0.32),inset 0px 1px 0px rgba(255,255,255,0.2);
  }
  body.page--dark .list-group__item {
    border-color: rgba(204,204,204,0.6);
  }
  body.page--dark .u-bg-warning {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 1);
  }
  body.page--dark a,
  body.page--dark a:hover,
  body.page--dark a:active,
  body.page--dark a:visited {
    color: #4EAFFF;
    text-shadow: none;
  }
  body.page--dark .button.button--link {
    color: #fff;
  }
  body.page--dark .button--outline-secondary {
    border-color: #aaa;
    color: #aaa;
  }
  body.page--dark strong {
    color: #fdfdfd;
  }
  body.page--dark .alert--warning strong {
    color: #664d03;
  }
  body.page--dark .logo .logo__image,
  body.page--dark .big-logo .big-logo__image {
    content: url("../images/myubat-logo-dark.png");
  }
  body.page--dark .capsule {
    background: rgba(60,60,60,0.93);
  }
  body.page--dark .capsule__nav {
    color: #fff;
  }
  body.page--dark .account-menu__name,
  body.page--dark .account-menu__fullname,
  body.page--dark .side-nav .side-nav__link {
    color: #e0e0e0;
  }
  body.page--dark .account-menu.is-open .account-menu__name,
  body.page--dark .account-menu:hover .account-menu__name,
  body.page--dark .account-menu.is-open .account-menu__fullname,
  body.page--dark .account-menu:hover .account-menu__fullname,
  body.page--dark .side-nav__item:hover .side-nav__link,
  body.page--dark .side-nav__item.is-active .side-nav__link,
  body.page--dark .select-filter__select {
    color: #333;
  }
  body.page--dark .select-filter__select {
    background: #fff;
  }
  body.page--dark .account-switcher .account-switcher__link,
  body.page--dark .account-switcher .account-switcher__name {
    color: #333;
  }
  body.page--dark .language-button,
  body.page--dark .credit .credit__link {
    color: #eaeaea;
  }
  body.page--dark input[type="text"]:hover,
  body.page--dark input[type="text"]:active,
  body.page--dark input[type="text"]:focus,
  body.page--dark input[type="password"]:hover,
  body.page--dark input[type="password"]:active,
  body.page--dark input[type="password"]:focus,
  body.page--dark input[type="date"]:hover,
  body.page--dark input[type="date"]:active,
  body.page--dark input[type="date"]:focus,
  body.page--dark input[type="file"]:hover,
  body.page--dark input[type="file"]:active,
  body.page--dark input[type="file"]:focus,
  body.page--dark input[type="submit"]:hover,
  body.page--dark input[type="submit"]:active,
  body.page--dark input[type="submit"]:focus,
  body.page--dark input[type="email"]:hover,
  body.page--dark input[type="email"]:active,
  body.page--dark input[type="email"]:focus,
  body.page--dark input[type="tel"]:hover,
  body.page--dark input[type="tel"]:active,
  body.page--dark input[type="tel"]:focus,
  body.page--dark textarea:hover,
  body.page--dark textarea:active,
  body.page--dark textarea:focus,
  body.page--dark select:hover,
  body.page--dark select:active,
  body.page--dark select:focus {
    border-color: rgba(288,0,288,1) !important;
    outline: none !important;
  }
  body.page--dark .code-entry .code-entry__digit {
    background-color: #fff !important;
  }
  body.page--dark .title,
  body.page--dark .subtitle {
    color: #fff;
  }
  body.page--dark .u-text-green {
    color: rgb(13, 206, 34);
    text-shadow: none;
  }
  body.page--dark .subnav {
    background: rgba(255,255,255,0.65);
  }
  body.page--dark .subnav .subnav__link {
    color: #0048b3;
  }
  body.page--dark .subnav .subnav__item.is-active .subnav__link {
    color: #fff;
  }
  body.page--dark .submission {
    background: #777;
  }
  body.page--dark .appointment-card {
    background: #6d6d6d;
  }
  body.page--dark table td,
  body.page--dark .list-group,
  body.page--dark .list-group__item {
    background: #6d6d6d;
  }
  body.page--dark .u-text-reset {
    color: #333;
  }
  body.page--dark .word-counter {
    color: #fff;
  }
  body.page--dark .u-text-muted {
    color: #f5f5f5 !important;
  }
  body.page--dark .form-control,
  body.page--dark select,
  body.page--dark .form-wrapper {
    background-color: #4e4e4e;
    color: #f2f2f2;
  }
  body.page--dark .picker .picker__toggle {
    background-color: #4e4e4e;
    color: #f2f2f2;
  }
  body.page--dark .picker--plain .picker__toggle {
    background-color: transparent;
    color: #333;
    text-shadow: none;
  }
  body.page--dark .invalid-feedback {
    color: #ff8a95;
  }
  body.page--dark .form-control:focus {
    background-color: #5e5e5e;
    color: #f2f2f2;
  }
  body.page--dark .form-control:disabled,
  body.page--dark .form-control:read-only:not(input[type="file"], select) {
    background-color: #2e2e2e;
    color: rgba(221,221,221,0.7);
  }
  body.page--dark .form-floating .form-floating__label {
    color: #c4c4c4 !important;
  }
  body.page--dark .box-info,
  body.page--dark .u-text-bg-warning,
  body.page--dark .modal__dialog,
  body.page--dark .dialog,
  body.page--dark .upload-desc,
  body.page--dark .tip {
    text-shadow: none;
  }
  body.page--dark .box-info .box-info__icon,
  body.page--dark .box-info .box-info__value,
  body.page--dark .modal__dialog,
  body.page--dark .dialog,
  body.page--dark .dialog .dialog__body strong,
  body.page--dark .box-info--next {
    color: #333;
  }
  body.page--dark .services-list__info,
  body.page--dark .service-info,
  body.page--dark .card .card__heading {
    color: #e6c2ff;
  }
  body.page--dark .services-list__rate {
    color: #ffb862;
  }
  body.page--dark .notice-feed .notice-feed__list {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }
  body.page--dark .notice-feed .notice-feed__day-label,
  body.page--dark .notice-card .notice-card__dot {
    color: #e6c2ff;
  }
  body.page--dark .notice-card .notice-card__dot {
    background: #e6c2ff;
  }
  body.page--dark .notice-card + .notice-card {
    border-color: rgba(255, 255, 255, 0.1);
  }
  body.page--dark .notice-card .notice-card__title,
  body.page--dark .notice-card.notice-card--unread .notice-card__title {
    color: #fff;
  }
  body.page--dark .notice-card .notice-card__body {
    color: #ddd6e6;
  }
  body.page--dark .notice-card .notice-card__meta {
    color: #c9bfd3;
  }
  body.page--dark .notice-card .notice-card__icon,
  body.page--dark .notice-card .notice-card__action {
    background: rgba(255, 255, 255, 0.12);
  }
  body.page--dark .notice-card--success .notice-card__icon { color: #6ee7a8; }
  body.page--dark .notice-card--delivery .notice-card__icon { color: #e6c2ff; }
  body.page--dark .notice-card--danger .notice-card__icon,
  body.page--dark .notice-card .notice-card__action--delete { color: #ff9a9a; }
  body.page--dark .notice-card--payment .notice-card__icon { color: #ffc26b; }
  body.page--dark .notice-card--appointment .notice-card__icon,
  body.page--dark .notice-card .notice-card__action--read { color: #8fb8ff; }
  body.page--dark .notice-card--ready .notice-card__icon { color: #6fe0d4; }
  body.page--dark .notice-card--info .notice-card__icon { color: #d0d6e2; }
  body.page--dark .notice-bulletin {
    text-shadow: none;
  }
  body.page--dark .timeline .timeline__entry,
  body.page--dark .timeline .timeline__entry::before {
    background-color: #474747;
  }
  body.page--dark .timeline .timeline__date {
    color: #ff40ff;
  }
  body.page--dark .timeline .timeline__year-label {
    color: #333;
    text-shadow: none;
  }
  body.page--dark .timeline .timeline__icon,
  body.page--dark .timeline .timeline__scroll,
  body.page--dark .medx .medx__scroll,
  body.page--dark .alert,
  body.page--dark .small-avatar,
  body.page--dark .headline__avatar,
  body.page--dark .account-menu__name {
    text-shadow: none;
  }
  body.page--dark .rx-card {
    background: rgba(64, 64, 64, 0.6);
  }
  body.page--dark .rx-card .rx-card__fields {
    background: linear-gradient(0deg, rgba(120,120,120,1) 0%, rgba(127,127,127,1) 100%);
  }
  body.page--dark .u-text-bg-light,
  body.page--dark .rx-card .rx-card__field {
    color: #000;
    text-shadow: none;
  }
  body.page--dark .empty-icon .empty-icon__symbol {
    color: #FF81FF;
  }
  body.page--dark .rx-card .rx-card__group,
  body.page--dark .appointment-card .appointment-card__group {
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
  }
  body.page--dark .rx-card .rx-card__group-dates,
  body.page--dark .rx-card .rx-card__group-note,
  body.page--dark .appointment-card .appointment-card__group-note {
    color: #ccc;
  }
  body.page--dark .rx-drug {
    background: #6b6b6b;
  }
  body.page--dark .u-text-bg-light .u-text-muted,
  body.page--dark .rx-drug .rx-drug__detail {
    color: #bdbdbd;
  }
  body.page--dark .rx-drug .rx-drug__value {
    color: #fff;
  }
  body.page--dark .rx-drug .rx-drug__name {
    background-color: #e5e500 !important;
    color: #000;
    text-shadow: none;
  }
  body.page--dark .u-img-thumbnail {
    background-color: #333;
  }
  body.page--dark .list-group__item--action:focus,
  body.page--dark .list-group__item--action:hover {
    background-color: #333;
    color: #fff;
  }
  body.page--dark .accordion__item .accordion__button,
  body.page--dark .accordion__item .accordion__title,
  body.page--dark .gps__queue {
    color: #333;
    text-shadow: none;
  }
  body.page--dark .ticket__body,
  body.page--dark .ticket__article {
    color: #f0f0f0;
  }
  body.page--dark .ticket__article-header,
  body.page--dark .ticket .ticket__label {
    text-shadow: none;
    color: #111;
  }
  body.page--dark .accordion--faq .accordion__item {
    border-bottom: none;
  }
  body.page--dark .accordion--faq .accordion__item .accordion__body {
    background-color: rgba(255, 255, 255, 0.9);
  }
  body.page--dark .accordion--faq .accordion__item .accordion__button {
    background-color: rgb(133, 23, 163);
    color: #fff;
  }
  body.page--dark .accordion--faq .accordion__item .accordion__button.is-collapsed {
    color: #f2f2f2;
    border-radius: 0.36em;
  }
  body.page--dark .accordion__item .accordion__body,
  body.page--dark .accordion--faq .accordion__item .accordion__body {
    text-shadow: none;
  }
  body.page--dark .medx {
    text-shadow: none !important;
    color: #000;
  }
  body.page--dark .medx .medx__date,
  body.page--dark .drug .drug__separator {
    color: purple;
  }
  body.page--dark .mintitle,
  body.page--dark .medx-summary {
    color: #fff;
  }
  body.page--dark .drug--summary .drug__dosage {
    color: #eee;
  }
  body.page--dark .nav-action .nav-action__button {
    color: #333 !important;
  }
  @media only screen and (max-width: 576px) {
    body.page--dark .appointment-card .appointment-card__table tr td {
      background: linear-gradient(0deg, rgba(80,80,80,1) 0%, rgba(95,95,95,1) 100%);
    }
  }
/*}*/

/** Prevent the keyboard hidden space **/
@media (max-height: 500px) {
  .bottom-nav {
    display: none;
  }
}
