/* Base legada do app (antigo styles.css), parte 03 (#533) · Escritório Virtual: entrada e modo embutido. Ordem de carga: scripts/helpers/styles-source.js. */

.mix-office-identity-field > span,
.mix-office-device-card > span,
.mix-office-microphone-test > span {
  color: rgb(var(--mix-fx-ink-blue, 83 106 127));
  font-size: 10px;
  font-weight: 800;
}

.mix-office-identity-field input,
.mix-office-device-card select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgb(var(--mix-fx-line, 204 217 227));
  border-radius: 11px;
  outline: none;
  color: rgb(var(--mix-fx-ink, 36 60 82));
  background: rgb(var(--mix-fx-paper, 255 255 255));
  font: inherit;
  font-size: 12px;
}

.mix-office-identity-field input[readonly] {
  border-color: rgb(var(--mix-fx-line, 217 226 233));
  background: rgb(var(--mix-fx-paper, 245 248 250));
  cursor: default;
}

.mix-office-identity-field small {
  color: rgb(var(--mix-fx-muted, 137 151 166));
  font-size: 9px;
}

.mix-office-onboarding-primary,
.mix-office-onboarding-secondary,
.mix-office-device-test {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 11px;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.mix-office-onboarding-primary {
  min-width: 180px;
  justify-self: center;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #147db1, #259caf);
  box-shadow: 0 10px 24px rgb(20 124 166 / 22%);
}

.mix-office-onboarding-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgb(20 124 166 / 28%);
}

.mix-office-onboarding-secondary {
  border: 1px solid rgb(var(--mix-fx-line, 212 223 232));
  color: rgb(var(--mix-fx-ink-blue, 83 105 125));
  background: rgb(var(--mix-fx-paper, 255 255 255));
}

.mix-office-onboarding-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.mix-office-avatar-confirmation {
  min-width: min(460px, 100%);
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 22px;
  padding: 22px 28px;
  border: 1px solid rgb(var(--mix-fx-line, 217 228 235));
  border-radius: 18px;
  background: linear-gradient(145deg, rgb(var(--mix-fx-paper, 255 255 255)), rgb(var(--mix-fx-paper, 244 248 250)));
  box-shadow: 0 12px 34px rgb(31 67 92 / 8%);
}

.mix-office-profile-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 4px solid rgb(var(--mix-fx-line, 255 255 255));
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #157daf, #45b3ad);
  box-shadow: 0 8px 22px rgb(29 102 132 / 23%);
}

.mix-office-profile-avatar.is-large {
  width: 104px;
  height: 104px;
}

.mix-office-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mix-office-profile-avatar b {
  font-size: 20px;
}

.mix-office-avatar-confirmation > div {
  display: grid;
  gap: 5px;
}

.mix-office-avatar-confirmation strong {
  color: rgb(var(--mix-fx-ink, 25 51 74));
  font-size: 17px;
}

.mix-office-avatar-confirmation span {
  color: rgb(var(--mix-fx-muted, 122 138 155));
  font-size: 10px;
}

.mix-office-device-preflight {
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) minmax(260px, .75fr);
  gap: 18px;
}

.mix-office-camera-preview {
  position: relative;
  min-height: 275px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(var(--mix-fx-line, 206 219 229));
  border-radius: 17px;
  background: linear-gradient(145deg, #152b40, #203d54);
  box-shadow: inset 0 0 0 1px rgb(var(--mix-fx-paper, 255 255 255) / 5%);
}

.mix-office-camera-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.mix-office-camera-preview > div {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  color: #b8cad8;
  text-align: center;
}

.mix-office-camera-preview > div[hidden] {
  display: none;
}

.mix-office-camera-preview > div > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  border-radius: 16px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 7%);
  font-size: 24px;
}

.mix-office-camera-preview strong {
  color: #fff;
  font-size: 13px;
}

.mix-office-camera-preview small {
  max-width: 250px;
  color: rgb(var(--mix-fx-muted, 157 176 192));
  line-height: 1.5;
}

.mix-office-device-controls {
  display: grid;
  gap: 11px;
}

.mix-office-device-card {
  display: grid;
  gap: 5px;
}

.mix-office-device-card select {
  min-height: 41px;
  font-size: 10px;
}

.mix-office-microphone-test {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid rgb(var(--mix-fx-line, 219 228 235));
  border-radius: 11px;
  background: rgb(var(--mix-fx-paper, 247 249 251));
}

.mix-office-microphone-test > i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(var(--mix-fx-paper, 226 233 238));
}

.mix-office-microphone-test > i > b {
  width: 4%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #31bc7c, #8bd653, #edba4c);
  transition: width .08s linear;
}

.mix-office-microphone-test small {
  color: rgb(var(--mix-fx-muted, 130 145 160));
  font-size: 8px;
  line-height: 1.4;
}

.mix-office-microphone-test small[data-tone="ok"] { color: rgb(var(--mix-fx-ink-green, 22 128 90)); }
.mix-office-microphone-test small[data-tone="error"] { color: rgb(var(--mix-fx-ink-red, 184 74 74)); }

.mix-office-device-test {
  border: 1px solid rgb(var(--mix-fx-line, 188 217 230));
  color: rgb(var(--mix-fx-ink-blue, 23 111 153));
  background: rgb(var(--mix-fx-paper, 237 248 252));
}

.mix-office-device-test:disabled {
  opacity: .55;
  cursor: wait;
}

.mix-office-onboarding-card > footer {
  padding: 15px 28px;
  border-top: 1px solid rgb(var(--mix-fx-line, 229 235 240));
  color: rgb(var(--mix-fx-muted, 138 152 167));
  background: rgb(var(--mix-fx-paper, 248 250 251));
  font-size: 8px;
}

.mix-office-tour {
  position: absolute;
  right: 24px;
  bottom: 92px;
  z-index: 45;
  width: min(560px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 22%);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, rgb(20 46 70 / 98%), rgb(28 67 86 / 98%));
  box-shadow: 0 28px 80px rgb(8 29 44 / 38%);
}

.mix-office-tour-dismiss {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #b9c9d5;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.mix-office-tour-visual {
  min-height: 150px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
  border-radius: 16px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 6%);
}

.mix-office-tour-visual > span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #d9f8f1;
  background: linear-gradient(135deg, #1e87b7, #36a994);
  box-shadow: 0 12px 28px rgb(11 36 54 / 30%);
  font-size: 32px;
}

.mix-office-tour-visual i {
  color: #92aabd;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.mix-office-tour-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.mix-office-tour-copy > span {
  color: #74d8c0;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mix-office-tour-copy h2,
.mix-office-tour-copy p {
  margin: 0;
}

.mix-office-tour-copy h2 {
  color: #fff;
  font-size: 22px;
}

.mix-office-tour-copy p {
  color: #b6c6d3;
  font-size: 11px;
  line-height: 1.55;
}

.mix-office-tour-copy > div {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mix-office-tour .mix-office-onboarding-primary,
.mix-office-tour .mix-office-onboarding-secondary {
  min-width: 0;
  min-height: 37px;
  padding: 0 14px;
  font-size: 9px;
}

.mix-office-tour .mix-office-onboarding-secondary {
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 14%);
  color: #c0cfda;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 7%);
}

@media (max-width: 1180px) {
  #app.mix-office-active.mix-office-embedded .mix-office-runtime {
    height: 760px;
  }

  .mix-office-onboarding-card > main {
    padding-inline: 34px;
  }
}

@media (max-width: 820px) {
  .office-embedded-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  #app.mix-office-active.mix-office-embedded .mix-office-runtime {
    height: 760px;
    min-height: 760px;
  }

  .mix-office-onboarding {
    padding: 12px;
  }

  .mix-office-onboarding-card > header,
  .mix-office-onboarding-card > footer {
    padding-inline: 18px;
  }

  .mix-office-onboarding-card > main {
    padding: 28px 18px;
  }

  .mix-office-device-preflight {
    grid-template-columns: 1fr;
  }

  .mix-office-camera-preview {
    min-height: 210px;
  }

  .mix-office-avatar-confirmation {
    min-width: 0;
    width: 100%;
    padding: 18px;
  }

  .mix-office-tour {
    right: 12px;
    bottom: 78px;
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .mix-office-tour-visual {
    min-height: 92px;
  }

  .mix-office-tour-visual > span {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }
}

.crm-360-conversation-card {
  display: block !important;
  padding: 0 !important;
  overflow: hidden;
}

.crm-360-conversations {
  grid-column: 1 / -1;
}

.crm-360-conversation-card > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  padding: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.crm-360-conversation-card > button div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.crm-360-conversation-card > button b {
  color: rgb(var(--mix-fx-ink-blue, 37 99 235));
  font-size: 12px;
}

.crm-360-conversation-history {
  border-top: 1px solid rgb(var(--mix-fx-line, 219 230 241));
  padding: 14px;
  background: rgb(var(--mix-fx-paper, 238 244 248));
}

.crm-360-message-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  margin-top: 10px;
  overflow: auto;
}

.crm-360-message {
  display: block !important;
  width: min(78%, 620px);
  border: 1px solid rgb(var(--mix-fx-line, 215 226 237));
  border-radius: 10px;
  padding: 9px 11px;
  background: rgb(var(--mix-fx-paper, 255 255 255));
}

.crm-360-message.outbound {
  align-self: flex-end;
  border-color: rgb(var(--mix-fx-line, 184 222 200));
  background: rgb(var(--mix-fx-paper, 233 247 239));
}

.crm-360-message header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11px;
}

.crm-360-message header time,
.crm-360-message-file small,
.crm-360-message-audio small {
  color: rgb(var(--mix-fx-body, 100 116 139));
}

.crm-360-message p {
  margin: 5px 0 0;
  color: rgb(var(--mix-fx-ink, 37 54 74));
  line-height: 1.45;
  white-space: pre-wrap;
}

.crm-360-message-image img {
  display: block;
  width: min(100%, 360px);
  max-height: 320px;
  border-radius: 8px;
  object-fit: contain;
  background: rgb(var(--mix-fx-paper, 226 232 240));
}

.crm-360-message-audio,
.crm-360-message-file {
  display: grid;
  gap: 4px;
  margin: 5px 0;
}

.crm-360-message-audio audio {
  width: min(100%, 360px);
}

.crm-360-message-file {
  border: 1px solid rgb(var(--mix-fx-line, 215 226 237));
  border-radius: 8px;
  padding: 9px;
  color: rgb(var(--mix-fx-ink-blue, 29 78 216));
  text-decoration: none;
}

.crm-360-message-file.is-unavailable {
  color: rgb(var(--mix-fx-body, 100 116 139));
  background: rgb(var(--mix-fx-paper, 248 250 252));
}

.estimate-mode-fields.is-hidden {
  display: none;
}

.estimation-type-picker {
  width: 100%;
}

.estimation-type-picker label {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.estimation-type-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
