﻿/* inmediQ variables */
:root {
  /* Primary colours */
  --primary-color-1: #1C3968;
  --primary-color-2: #0076C0;
  --primary-color-3: #575757;
  --primary-color-4: #B6A310;
  --primary-color-1-light1: #465380;
  --primary-color-2-light1: #008DCE;
  --primary-color-3-light1: #878787;
  --primary-color-4-light1: #C5B348;
  --primary-color-1-light2: #71769B;
  --primary-color-2-light2: #6BA8DC;
  --primary-color-3-light2: #B2B2B2;
  --primary-color-4-light2: #D2C479;
  --primary-color-1-light3: #9FA0BB;
  --primary-color-2-light3: #A4C3E8;
  --primary-color-3-light3: #DADADA;
  --primary-color-4-light3: #E3D9A8;
  --primary-color-1-light4: #CECDDD;
  --primary-color-2-light4: #D3E1F4;
  --primary-color-3-light4: #EDEDED;
  --primary-color-4-light4: #F0EBD4;
  /* Secondary colours */
  --secondary-color-1: #E53B11;
  --secondary-color-2: #820B20;
  --secondary-color-3: #F39200;
  --secondary-color-4: #FECC00;
  --secondary-color-5: #009982;
  --secondary-color-6: #00567C;
  --secondary-color-1-light1: #EB6739;
  --secondary-color-2-light1: #9A373D;
  --secondary-color-3-light1: #F7A941;
  --secondary-color-4-light1: #FED633;
  --secondary-color-5-light1: #0AAB9A;
  --secondary-color-6-light1: #357996;
  --secondary-color-1-light2: #F19267;
  --secondary-color-2-light2: #B46563;
  --secondary-color-3-light2: #FAC075;
  --secondary-color-4-light2: #FEE066;
  --secondary-color-5-light2: #68C0B4;
  --secondary-color-6-light2: #6699AF;
  --secondary-color-1-light3: #F8B999;
  --secondary-color-2-light3: #CD9692;
  --secondary-color-3-light3: #FDD5A5;
  --secondary-color-4-light3: #FFEB9A;
  --secondary-color-5-light3: #A6D6CE;
  --secondary-color-6-light3: #99BBCB;
  --secondary-color-1-light4: #FCDECD;
  --secondary-color-2-light4: #E6C9C6;
  --secondary-color-3-light4: #FEEAD3;
  --secondary-color-4-light4: #FFFFC0;
  --secondary-color-5-light4: #D6E8E7;
  --secondary-color-6-light4: #CCDDE5;
  /* Limbs */
  --color-left-limb: #F39200;
  --color-right-limb: #009982;
  --color-left: #F39200;
  --color-right: #009982;
  --color-left-arm: #9A373D;
  --color-right-arm: #9A373D;
  --color-left-ankle: #0076C0;
  --color-right-ankle: #0076C0;
  --color-left-wrist: #575757;
  --color-right-wrist: #575757;
}

.customers-page {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  background-color: white;
  --customers-editor-height: 40px;
}
.customers-page .customers-list-surface {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.customers-page .customers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.customers-page .customers-header .title-header-text {
  flex: 0 0 auto;
  vertical-align: middle;
  color: #B6A310;
  font-size: 1.5rem;
}
.customers-page .filter-wrapper {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
}
.customers-page .filter-wrapper .filter-textbox {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: 4px;
  background: #E3D9A8;
  min-height: var(--customers-editor-height);
}
.customers-page .filter-wrapper .filter-textbox .search-image {
  height: 16px;
  width: auto;
  padding-left: 8px;
}
.customers-page .filter-line {
  flex: 0 0 auto;
  display: block;
  height: 2px;
  margin: 0.5rem 0;
  width: 100%;
  background: #D2C479;
}
.customers-page .customers-card-view-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin-right: 5px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.customers-page .customers-card-view-wrapper .customers-list {
  list-style: none;
  margin: 0;
  padding: 0 0 calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.customers-page .customers-card-view-wrapper .customers-list .tile {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  color: #575757;
  border-bottom: 1px solid #B2B2B2;
  overflow: visible;
  padding: 0.2rem 0.2rem;
}
.customers-page .customers-card-view-wrapper .customers-list .tile.selected {
  background: rgb(246.5948275862, 243.7931034483, 230.9051724138);
  transition: border-color 0.15s ease;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .details {
  flex: 0 1 auto;
  min-width: 16rem;
  max-width: min(100%, 30rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  gap: 0;
  padding-right: 1rem;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .details .line1 {
  font-size: 14px;
  font-weight: 700;
  color: #575757;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .details .line2,
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .details .line3 {
  font-size: 12px;
  color: #575757;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .email-col {
  flex: 0 1 18rem;
  min-width: 12rem;
  max-width: 18rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .email-col .email-icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  flex: 0 0 auto;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .email-col .email-text {
  min-width: 0;
  font-size: 12px;
  color: #878787;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .customers-row-actions {
  flex: 0 0 auto;
  min-width: auto;
  display: flex;
  margin-left: auto;
  align-self: stretch;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  white-space: nowrap;
  overflow: visible;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .customers-row-actions .customers-row-actions-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.25rem;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .customers-row-actions .customers-row-actions-menu {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
  align-self: stretch;
  overflow: visible;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .customers-row-actions .customers-row-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 11rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem;
  border: 1px solid #DADADA;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 20;
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .customers-row-actions .customers-row-menu.open-up {
  top: auto;
  bottom: calc(100% + 4px);
}
.customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .customers-row-actions .customers-row-menu.open-right {
  left: 0;
  right: auto;
}
@media (max-width: 700px) {
  .customers-page .customers-card-view-wrapper .customers-list .tile .tile-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "details actions" "email actions";
    column-gap: 0.5rem;
    row-gap: 0.2rem;
    align-items: stretch;
  }
  .customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .details {
    grid-area: details;
    flex: 0 1 auto;
    min-width: 0;
  }
  .customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .email-col {
    grid-area: email;
    flex: 0 1 auto;
    min-width: 0;
    max-width: none;
    justify-content: flex-start;
    padding-top: 0.1rem;
  }
  .customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .email-col .email-text {
    text-align: left;
  }
  .customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .customers-row-actions {
    grid-area: actions;
    width: auto;
    min-width: auto;
    margin-left: 0;
    justify-content: flex-end;
    align-self: stretch;
  }
}
@media (max-width: 980px) {
  .customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .customers-row-actions .customers-row-actions-inline {
    display: none;
  }
  .customers-page .customers-card-view-wrapper .customers-list .tile .tile-content .customers-row-actions .customers-row-actions-menu {
    display: flex;
  }
}
.customers-page .customers-card-view-wrapper .customers-list .customers-list-empty {
  color: #575757;
  cursor: default;
  padding: 0.4rem 0.2rem;
}
.customers-page .customers-card-view-wrapper .icon-only-button-wrapper {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 850;
}
.customers-page .customers-card-view-wrapper .icon-only-button-wrapper .icon-button {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: transform 0.1s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.customers-page .customers-card-view-wrapper .icon-only-button-wrapper .icon-button:hover .icon-button-icon {
  filter: brightness(0.85);
  transform: scale(1.1);
}
.customers-page .customers-card-view-wrapper .icon-only-button-wrapper .icon-button:active .icon-button-icon {
  filter: brightness(0.75);
  transform: scale(0.9);
}
.customers-page .customers-card-view-wrapper .icon-only-button-wrapper .icon-button:focus {
  outline: none;
}
.customers-page .customers-card-view-wrapper .icon-only-button-wrapper .icon-button .icon-button-icon {
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  transition: transform 0.1s ease, filter 0.2s ease;
}
.customers-page .customers-status {
  margin-top: 0.35rem;
  color: #1C3968;
  font-size: 0.9rem;
}

.customers-detail-drawer {
  --customers-actions-bottom-space: 24px;
  --customers-more-hint-space: 26px;
  overflow-x: hidden;
}
.customers-detail-drawer.rd-drawer {
  transform: translateX(100%);
  will-change: auto;
  backface-visibility: visible;
}
.customers-detail-drawer.rd-drawer.rd-open {
  transform: translateX(0);
}
.customers-detail-drawer .rd-header {
  display: none;
}
.customers-detail-drawer .customers-drawer-title {
  color: #B6A310;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customers-detail-drawer .rd-drawer {
  overflow-x: hidden;
}
.customers-detail-drawer .right-drawer-body {
  padding: 12px 0 0 0 !important;
  overflow-x: hidden !important;
}
.customers-detail-drawer .customers-drawer-content {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 0 0.65rem 0 1.2rem;
  overflow-x: hidden;
}
.customers-detail-drawer .customers-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0 1.9rem 0;
  flex: 0 0 auto;
  min-width: 0;
}
.customers-detail-drawer .customers-drawer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 8px;
  padding-right: 14px;
}
.customers-detail-drawer .customers-drawer-form {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.customers-detail-drawer .customers-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.customers-detail-drawer .customers-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.customers-detail-drawer .customers-field-label {
  color: #878787;
  font-size: 0.75rem;
  font-weight: 350;
  line-height: 1.25;
}
.customers-detail-drawer .customers-input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #B2B2B2;
  border-radius: 0.375rem;
  background: #fff;
  color: #303030;
  padding: 0.45rem 0.65rem;
  box-sizing: border-box;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.customers-detail-drawer .customers-input:focus {
  border-color: #0076C0;
  box-shadow: 0 0 0 1px rgba(0, 118, 192, 0.15);
}
.customers-detail-drawer .customers-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #575757 50%), linear-gradient(135deg, #575757 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.customers-detail-drawer .customers-input.readonly {
  background-color: #f9fafb;
  color: #878787;
}
.customers-detail-drawer .customers-drawer-actions {
  display: flex;
  align-items: center;
  align-content: center;
  column-gap: 0.35rem;
  row-gap: 0;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #DADADA;
  margin-bottom: var(--customers-actions-bottom-space);
}
.customers-detail-drawer .customers-drawer-actions .ok,
.customers-detail-drawer .customers-drawer-actions .cancel {
  color: #0076C0;
}
.customers-detail-drawer .customers-drawer-actions .ok .icon,
.customers-detail-drawer .customers-drawer-actions .cancel .icon {
  color: inherit;
  background-color: currentColor;
}
.customers-detail-drawer .customers-drawer-more-space {
  height: var(--customers-more-hint-space);
}
.customers-detail-drawer .rd-drawer .rd-scroll-hint {
  color: #B2B2B2;
}
.customers-detail-drawer .rd-drawer .rd-scroll-hint .rd-scroll-hint-text {
  color: #B2B2B2 !important;
}
.customers-detail-drawer .rd-drawer .rd-scroll-hint .rd-scroll-hint-icon {
  color: #B2B2B2;
  background-color: currentColor;
}
.customers-detail-drawer .validation-message {
  color: #E53B11;
  font-size: 0.8rem;
  line-height: 1.25;
}
@media (max-width: 768px) {
  .customers-detail-drawer {
    --customers-actions-bottom-space: 0px;
    --customers-more-hint-space: 0px;
  }
  .customers-detail-drawer .customers-drawer-scroll {
    margin-bottom: 4px;
  }
  .customers-detail-drawer .customers-drawer-actions {
    margin-top: 8px;
    padding-top: 8px;
  }
  .customers-detail-drawer.rd-drawer .rd-scroll-hint {
    bottom: 2px !important;
  }
}

.icon {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.btn {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: #575757;
  gap: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn .text {
  padding-top: 2px;
}
.btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.btn:not(:disabled):hover {
  background: rgb(249.75, 249.75, 249.75);
}
.btn:not(:disabled):active {
  background: #0076C0;
  color: #fff;
}
.btn:focus-visible {
  outline: none;
}
.btn.row-action, .btn.row-menu-item {
  align-items: center;
  white-space: nowrap;
}
.btn.edit .icon {
  -webkit-mask-image: url("/images/person-edit.svg");
  mask-image: url("/images/person-edit.svg");
}
.btn.ok .icon {
  -webkit-mask-image: url("/images/check.svg");
  mask-image: url("/images/check.svg");
}
.btn.cancel .icon {
  -webkit-mask-image: url("/images/cancel.svg");
  mask-image: url("/images/cancel.svg");
}
.btn.add .icon {
  -webkit-mask-image: url("/images/add-circle.svg");
  mask-image: url("/images/add-circle.svg");
}
.btn.close .icon {
  width: 14px;
  height: 14px;
  -webkit-mask-image: url("/images/close.svg");
  mask-image: url("/images/close.svg");
}
.btn.delete .icon {
  -webkit-mask-image: url("/images/delete-red.svg");
  mask-image: url("/images/delete-red.svg");
}
.btn.more .icon {
  margin-top: 5px;
  -webkit-mask-image: url("/images/more-vert.svg");
  mask-image: url("/images/more-vert.svg");
}
