/* Next account area styles: user account, firm dashboard, firm messages and firm templates.
   Source of truth after CR-012. */

.user-area-dashboard {
  box-sizing: border-box;
  color: #455a64;
  left: 50%;
  margin: 22px 0 70px;
  max-width: calc(100vw - 48px);
  position: relative;
  transform: translateX(-50%);
  width: 1170px;
}

.user-area-breadcrumb {
  color: #607d8b;
  font-size: 13px;
  line-height: 20px;
  margin: 0 0 20px;
}

.user-area-breadcrumb a,
.user-area-breadcrumb span {
  color: #607d8b;
  margin-right: 6px;
}

.user-area-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 274px minmax(280px, 1fr) 274px;
}

.user-messages-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 274px;
}

.user-messages-main {
  min-width: 0;
}

.user-messages-main .firm-account-list {
  min-height: 47px;
}

.user-messages-main .firm-account-empty {
  margin: 0;
  padding: 20px 25px;
}

.user-area-profile-card,
.user-area-panel {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 4px 22px rgba(69, 90, 100, 0.08);
  box-sizing: border-box;
  margin: 0 0 30px;
  overflow: hidden;
}

.user-area-profile-card {
  min-height: 263px;
  padding: 26px 25px 22px;
  text-align: center;
}

.user-area-profile-avatar {
  display: block;
  height: 58px;
  margin: 0 auto 14px;
  width: 58px;
}

.user-area-profile-card strong {
  color: #455a64;
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
}

.user-area-profile-card > span {
  color: #78909c;
  display: block;
  font-size: 12px;
  line-height: 18px;
  margin: 0 0 20px;
}

.user-area-profile-card nav {
  border-top: 1px solid #d8d8d8;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 18px;
  text-align: left;
}

.user-area-profile-card nav a,
.user-area-panel-body a {
  color: #607d8b;
  font-size: 14px;
  line-height: 20px;
}

.user-area-main h1,
.user-messages-main h1 {
  color: #455a64;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  margin: 8px 0 0;
}

.user-messages-main h1 {
  margin: 0 0 24px;
}

.user-area-panel h2 {
  align-items: center;
  background: #eceff1;
  color: #455a64;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  line-height: 20px;
  margin: 0;
  min-height: 56px;
  padding: 0 24px;
}

.user-area-panel h2 .mdi,
.user-area-panel h2 .rbi {
  color: #607d8b;
  font-size: 22px;
  line-height: 1;
}

.user-area-panel-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 25px 18px;
}

.firm-dashboard .user-area-breadcrumb {
  margin-bottom: 22px;
}

.firm-dashboard-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 274px minmax(420px, 1fr) 274px;
}

.firm-dashboard-all-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 274px minmax(420px, 620px) 274px;
}

.firm-dashboard-left,
.firm-dashboard-main,
.firm-dashboard-right {
  min-width: 0;
}

.firm-dashboard-select form {
  display: grid;
  gap: 14px;
  padding: 18px 25px 22px;
}

.firm-dashboard-select label {
  color: #607d8b;
  font-size: 14px;
}

.firm-dashboard-select select {
  display: block;
}

.firm-dashboard-select.is-compact {
  box-shadow: 0 4px 22px rgba(69, 90, 100, 0.08);
  position: relative;
}

.firm-dashboard-select.is-compact h2 {
  background: #607d8b;
  color: #fff;
}

.firm-dashboard-select.is-compact h2 .mdi {
  color: #fff;
}

.firm-dashboard-select-chevron {
  margin-left: auto;
}

.firm-dashboard-select-menu {
  background: #fff;
  box-shadow: 0 10px 24px rgba(69, 90, 100, 0.14);
  display: none;
  flex-direction: column;
  left: 0;
  min-width: 100%;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  z-index: 30;
}

.firm-dashboard-select:hover .firm-dashboard-select-menu,
.firm-dashboard-select:focus-within .firm-dashboard-select-menu {
  display: flex;
}

.firm-dashboard-select-menu a {
  color: #607d8b;
  font-size: 14px;
  line-height: 20px;
  padding: 8px 20px;
  white-space: nowrap;
}

.firm-dashboard-select-menu a:focus,
.firm-dashboard-select-menu a:hover {
  background: #eceff1;
}

.firm-dashboard-profile-card,
.firm-dashboard-stats-card,
.firm-dashboard-article-card {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 4px 22px rgba(69, 90, 100, 0.08);
  box-sizing: border-box;
  margin: 0 0 30px;
}

.firm-dashboard-profile-card {
  min-height: 205px;
  padding: 28px 25px 24px;
  position: relative;
}

.firm-dashboard-profile-icon {
  align-items: center;
  background: #f6f7f8;
  color: #607d8b;
  display: flex;
  height: 106px;
  justify-content: center;
  width: 148px;
}

.firm-dashboard-profile-icon .mdi {
  font-size: 42px;
}

.firm-dashboard-profile-card strong {
  color: #455a64;
  display: block;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
  margin-top: 28px;
}

.firm-dashboard-rank {
  height: 88px;
  position: absolute;
  right: 25px;
  top: 32px;
  width: 88px;
}

.firm-dashboard-panel.user-area-panel h2 {
  padding-left: 24px;
}

.firm-dashboard-stats-card {
  padding: 24px 28px;
}

.firm-dashboard-stats-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 34px 170px minmax(150px, 1fr) 24px 56px;
  min-height: 44px;
}

.firm-dashboard-stats-row > .mdi:first-child {
  color: #607d8b;
  font-size: 25px;
}

.firm-dashboard-stats-row strong {
  color: #455a64;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.firm-dashboard-stats-value {
  color: #455a64;
  font-size: 15px;
  line-height: 18px;
  white-space: pre-line;
}

.firm-dashboard-stats-value a {
  color: #607d8b;
}

.firm-dashboard-stats-value span {
  color: #607d8b;
}

.firm-dashboard-stats-arrow {
  color: #b0b8bd;
  font-size: 25px;
}

.firm-dashboard-stats-trend {
  color: #455a64;
  font-size: 14px;
  text-align: right;
}

.firm-dashboard-article-card {
  padding: 26px 34px 22px;
}

.firm-dashboard-article-card h2 {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
}

.firm-dashboard-article-card h2 .mdi {
  color: #00a58d;
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 28px;
}

.firm-dashboard-article-card h2 a {
  color: #607d8b;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
}

.firm-dashboard-article-card p {
  color: #455a64;
  font-size: 14px;
  line-height: 22px;
  margin: 0 0 18px;
}

.firm-dashboard-article-meta {
  align-items: center;
  color: #607d8b;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  line-height: 18px;
}

.firm-dashboard-article-meta span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.firm-account-page {
  box-sizing: border-box;
  color: #455a64;
  left: 50%;
  margin: 22px 0 70px;
  max-width: min(1120px, calc(100vw - 32px));
  position: relative;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 32px));
}

.firm-account-breadcrumb {
  color: #607d8b;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px;
  line-height: 20px;
  margin: 0 0 20px;
}

.firm-account-breadcrumb a,
.firm-account-breadcrumb span {
  color: #607d8b;
}

.firm-account-header,
.firm-account-list,
.firm-account-panel {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 4px 22px rgba(69, 90, 100, 0.08);
  box-sizing: border-box;
}

.firm-account-header {
  margin: 0 0 24px;
  padding: 28px 34px;
}

.firm-account-header h1 {
  color: #455a64;
  font-size: 30px;
  font-weight: 400;
  line-height: 38px;
  margin: 0;
}

.firm-account-header p {
  color: #607d8b;
  font-size: 16px;
  line-height: 24px;
  margin: 6px 0 0;
}

.firm-account-list {
  overflow: hidden;
}

.firm-account-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 274px;
}

.firm-account-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 24px 34px 26px;
}

.firm-account-item:last-child {
  border-bottom: 0;
}

.firm-account-item h2 {
  color: #607d8b;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  margin: 8px 0 12px;
}

.firm-account-item h1 {
  color: #455a64;
  font-size: 28px;
  font-weight: 400;
  line-height: 36px;
  margin: 0 0 20px;
}

.firm-account-item h2 a,
.firm-account-inline-link {
  color: #607d8b;
}

.firm-account-item p {
  color: #455a64;
  font-size: 16px;
  line-height: 26px;
  margin: 0 0 12px;
}

.firm-account-field {
  color: #90a4ae;
  display: block;
  font-size: 14px;
  line-height: 20px;
  margin: 0 0 22px;
}

.firm-account-field span {
  display: block;
  margin: 0 0 8px;
}

.firm-account-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #9e9e9e;
  box-sizing: border-box;
  color: #455a64;
  display: block;
  font: inherit;
  line-height: 24px;
  min-height: 180px;
  padding: 8px 0;
  resize: vertical;
  width: 100%;
}

.firm-account-field textarea:focus {
  border-bottom-color: #607d8b;
  outline: 0;
}

.firm-account-checkbox {
  align-items: center;
  color: #455a64;
  display: flex;
  font-size: 16px;
  gap: 12px;
  line-height: 24px;
  margin: 0 0 24px;
}

.firm-account-checkbox input {
  height: 22px;
  margin: 0;
  width: 22px;
}

.firm-account-form-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.firm-account-item-meta {
  color: #78909c;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 14px;
  line-height: 20px;
}

.firm-message-layout {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) 274px;
}

.firm-message-main h1 {
  color: #455a64;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  margin: 0 0 24px;
}

.firm-message-list {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 4px 22px rgba(69, 90, 100, 0.08);
  overflow: hidden;
}

.firm-message-row {
  align-items: center;
  border-bottom: 1px solid #d8d8d8;
  box-sizing: border-box;
  color: #455a64;
  display: grid;
  gap: 24px;
  grid-template-columns: 46px 136px minmax(0, 1fr) 130px;
  min-height: 76px;
  padding: 14px 24px;
}

.firm-message-row:last-child {
  border-bottom: 0;
}

.firm-message-avatar {
  align-items: center;
  background: #63736f;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  height: 46px;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  width: 46px;
}

.firm-message-sender,
.firm-message-preview,
.firm-message-date {
  color: #455a64;
  font-size: 14px;
  line-height: 20px;
}

.firm-message-preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.firm-message-date {
  text-align: right;
  white-space: nowrap;
}

.user-complaint-card h2 {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin-top: 0;
}

.user-complaint-card h2 > a:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.user-complaint-status {
  flex: 0 0 auto;
  line-height: 1;
  margin-top: 1px;
}

.user-complaint-card-footer {
  justify-content: flex-end;
  margin-top: 6px;
}

.firm-account-empty {
  color: #607d8b;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  padding: 34px;
}

.firm-account-panels {
  clear: both;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 10px;
}

.firm-account-panel {
  padding: 22px 24px;
}

.firm-account-panel h2 {
  color: #455a64;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  margin: 0 0 14px;
}

.firm-account-panel a {
  color: #607d8b;
  display: block;
  font-size: 16px;
  line-height: 25px;
  padding: 3px 0;
}

@media only screen and (max-width: 900px) {
  .user-area-dashboard {
    max-width: calc(100vw - 32px);
  }
  .user-area-grid {
    grid-template-columns: 1fr;
  }
  .firm-dashboard-grid,
  .firm-dashboard-all-grid {
    grid-template-columns: 1fr;
  }
  .firm-account-layout {
    grid-template-columns: 1fr;
  }
  .user-area-main {
    order: -1;
  }
  .firm-account-panels {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 600px) {

  .firm-account-page {
    margin-top: 16px;
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
  }

  .firm-account-header,
  .firm-account-item,
  .firm-account-panel {
    padding-left: 22px;
    padding-right: 22px;
  }

  .firm-account-header h1 {
    font-size: 25px;
    line-height: 32px;
  }

  .firm-dashboard-stats-card,
  .firm-dashboard-article-card {
    padding-left: 22px;
    padding-right: 22px;
  }

  .firm-dashboard-stats-row {
    grid-template-columns: 28px minmax(120px, 1fr);
    gap: 8px 12px;
  }

  .firm-dashboard-stats-value,
  .firm-dashboard-stats-arrow,
  .firm-dashboard-stats-trend {
    grid-column: 2;
  }

  .firm-dashboard-stats-arrow {
    display: none;
  }
}
