/* Additional deterministic E10 page recipes. No page may override the shell tokens. */

.e10-shell.focus-mode {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}

.e10-shell.focus-mode > .topbar,
.e10-shell.focus-mode > .sidebar {
  display: none;
}

.e10-shell.focus-mode > .main {
  grid-row: 1;
  grid-column: 1;
}

.e10-shell.focus-mode .content-toolbar {
  height: 54px;
  min-height: 54px;
}

.record-button,
.document-name {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: inherit;
  text-align: left;
}

.record-button:hover,
.document-name:hover strong {
  color: var(--primary);
}

.workflow-list-head {
  position: relative;
  z-index: 5;
  display: flex;
  height: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.workflow-list-title {
  height: 48px;
  padding: 0 12px;
  color: #666;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.workflow-list-title.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.workflow-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workflow-table-panel {
  margin: 0;
  border-width: 0;
}

.workflow-task-table td,
.workflow-task-table th {
  white-space: nowrap;
}

/* Workflow launch catalog */

.launch-toolbar .toolbar-tabs span {
  cursor: pointer;
}

.launch-workspace {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 232px minmax(0, 1fr);
  overflow: hidden;
  background: #f0f1f4;
}

.launch-categories {
  min-height: 0;
  padding-bottom: 18px;
  overflow: auto;
  background: #fff;
  border-right: 1px solid #e5e5e5;
}

.launch-category-head {
  display: grid;
  min-height: 52px;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid #ededed;
}

.launch-category-head strong {
  color: #333;
  font-size: 13px;
  font-weight: 400;
}

.launch-search {
  position: relative;
  display: block;
}

.launch-search .icon {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 13px;
  height: 13px;
  color: #aaa;
}

.launch-search input {
  width: 100%;
  height: 30px;
  padding: 0 7px 0 27px;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  outline: none;
  font-size: 12px;
}

.launch-category {
  display: block;
  width: 100%;
  height: 35px;
  padding: 0 24px;
  color: #555;
  background: #fff;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.launch-category:hover,
.launch-category.active {
  color: var(--primary);
  background: #f2f2f2;
}

.launch-board {
  min-width: 0;
  min-height: 0;
  padding: 14px 16px 24px;
  overflow: auto;
}

.launch-columns {
  column-count: 4;
  column-gap: 14px;
}

.launch-group {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: 3px solid #0068ff;
  break-inside: avoid;
}

.launch-group.tone-red {
  border-top-color: #e45a65;
}

.launch-group.tone-orange {
  border-top-color: #e5a051;
}

.launch-group h2 {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  color: #222;
  font-size: 15px;
  font-weight: 600;
}

.launch-group h2 .icon {
  color: var(--primary);
}

.launch-group.tone-red h2 .icon {
  color: #d8525d;
}

.launch-group.tone-orange h2 .icon {
  color: #d89240;
}

.launch-group > div {
  padding: 0 24px 16px;
}

.launch-link {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  padding: 4px 2px;
  overflow: hidden;
  color: #555;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-link:hover {
  color: var(--primary);
}

.favorite-star {
  margin-left: auto;
  color: #f4bd24;
  font-size: 12px;
}

/* Workflow request shell */

.workflow-form-toolbar .toolbar-title {
  align-self: stretch;
}

.workflow-form-toolbar .toolbar-title > div {
  align-self: stretch;
  padding-top: 8px;
}

.workflow-form-toolbar .toolbar-title strong {
  display: block;
  max-width: min(860px, 64vw);
  overflow: hidden;
  color: #111;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-form-toolbar .toolbar-tabs {
  height: 27px;
  margin-top: 1px;
}

.workflow-form-toolbar .toolbar-tabs span {
  display: inline-flex;
  height: 27px;
  align-items: center;
  margin-right: 24px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 13px;
}

.workflow-form-toolbar .toolbar-tabs span.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.workflow-workspace {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(680px, 1fr) 306px;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  background: #f0f1f4;
}

.workflow-paper,
.workflow-side-panel {
  min-height: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.workflow-paper {
  padding-bottom: 28px;
}

.request-document-head {
  min-height: 94px;
  padding: 20px 24px 12px;
  text-align: center;
}

.request-document-head h1 {
  margin: 0 0 14px;
  color: #222;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

.request-document-head > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #888;
  font-size: 12px;
}

.request-section {
  margin: 0 24px 18px;
}

.request-section > h2,
.request-section-head h2 {
  position: relative;
  height: 38px;
  margin: 0;
  padding-left: 12px;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
  font-size: 14px;
  font-weight: 500;
  line-height: 38px;
}

.request-section > h2::before,
.request-section-head h2::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  content: "";
  background: #5ca7dc;
}

.request-section-head {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
}

.request-section-head h2 {
  flex: 1;
  border-bottom: 0;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #ececec;
  border-left: 1px solid #ececec;
}

.request-cell {
  display: grid;
  min-height: 42px;
  grid-template-columns: 128px minmax(0, 1fr);
  margin: 0;
  border-right: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.request-cell-wide {
  grid-template-columns: 128px minmax(0, 1fr);
  border: 1px solid #ececec;
  border-top: 0;
}

.request-label {
  display: flex;
  min-height: 41px;
  align-items: center;
  padding: 0 12px;
  color: #666;
  background: #fafafa;
  border-right: 1px solid #ececec;
  font-size: 12px;
}

.request-label i,
.entity-form-grid label > span i {
  margin-right: 4px;
  color: #f24d55;
  font-style: normal;
}

.request-control-wrap {
  display: flex;
  min-width: 0;
  min-height: 41px;
  align-items: center;
  padding: 5px 8px;
}

.request-control {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  color: #333;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
  outline: none;
  font-size: 12px;
}

.request-control:focus {
  border-color: var(--primary);
}

.request-textarea {
  min-height: 62px;
  padding-top: 7px;
  resize: vertical;
}

.request-value {
  display: block;
  color: #333;
  font-size: 12px;
  line-height: 20px;
}

.request-value-block {
  min-height: 52px;
  padding-top: 5px;
}

.request-browser,
.entity-browser {
  display: flex;
  width: 100%;
  min-width: 0;
}

.request-browser input,
.entity-browser input {
  border-radius: 2px 0 0 2px;
}

.request-browser button,
.entity-browser button {
  display: grid;
  width: 34px;
  height: 30px;
  flex: 0 0 34px;
  padding: 0;
  place-items: center;
  color: #777;
  background: #fafafa;
  border: 1px solid #e2e2e2;
  border-left: 0;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
}

.request-browser button:hover,
.entity-browser button:hover {
  color: var(--primary);
}

.request-table-wrap {
  overflow-x: auto;
}

.request-detail-table,
.editable-detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.request-detail-table th,
.request-detail-table td,
.editable-detail-table th,
.editable-detail-table td {
  height: 40px;
  padding: 0 10px;
  color: #555;
  border: 1px solid #ececec;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
}

.request-detail-table th,
.editable-detail-table th {
  color: #666;
  background: #fafafa;
}

.attachment-section > h2 {
  margin-bottom: 0;
}

.attachment-row {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid #ececec;
}

.attachment-icon {
  display: grid;
  width: 32px;
  height: 36px;
  place-items: center;
  color: #3c7ebd;
  background: #eaf3fb;
  border: 1px solid #d4e7f5;
  font-size: 9px;
}

.attachment-row > div {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.attachment-row strong {
  overflow: hidden;
  color: #333;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-row span {
  color: #999;
  font-size: 11px;
}

.attachment-upload {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 0 12px;
  color: #666;
  background: #fff;
  border: 1px dashed #cfcfcf;
  cursor: pointer;
  font-size: 12px;
}

.attachment-upload.large {
  width: 100%;
  min-height: 72px;
  justify-content: center;
  margin: 0;
  color: #888;
  background: #fafafa;
}

.opinion-editor {
  width: 100%;
  height: 82px;
  padding: 10px;
  color: #333;
  border: 1px solid #e1e1e1;
  border-top: 0;
  outline: none;
  resize: vertical;
  font: inherit;
  font-size: 12px;
}

.opinion-editor:focus {
  border-color: var(--primary);
}

.opinion-tools {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  border: 1px solid #e5e5e5;
  border-top: 0;
}

.opinion-tools button {
  padding: 0;
  color: #777;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
}

.opinion-tools span {
  margin-left: auto;
  color: #aaa;
  font-size: 11px;
}

.workflow-side-panel {
  display: flex;
  flex-direction: column;
}

.workflow-side-tabs {
  display: flex;
  height: 43px;
  min-height: 43px;
  border-bottom: 1px solid #e5e5e5;
}

.workflow-side-tabs button {
  position: relative;
  flex: 1;
  color: #777;
  background: #fff;
  border: 0;
  cursor: pointer;
  font-size: 12px;
}

.workflow-side-tabs button.active {
  color: var(--primary);
}

.workflow-side-tabs button.active::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  content: "";
  background: var(--primary);
}

.workflow-side-meta {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #fafafa;
  border-bottom: 1px solid #ededed;
  font-size: 12px;
}

.workflow-side-meta span {
  color: #999;
}

.workflow-side-meta strong {
  color: #333;
  font-weight: 500;
}

.workflow-side-timeline {
  flex: 1;
  margin: 0;
  padding: 20px 18px 12px 33px;
  list-style: none;
}

.workflow-side-timeline li {
  position: relative;
  min-height: 92px;
  padding: 0 0 20px 20px;
  border-left: 1px solid #ddd;
}

.workflow-side-timeline li:last-child {
  border-left-color: transparent;
}

.workflow-side-timeline .node-dot {
  position: absolute;
  top: 1px;
  left: -6px;
  width: 11px;
  height: 11px;
  background: #fff;
  border: 2px solid #c7c7c7;
  border-radius: 50%;
}

.workflow-side-timeline li.done .node-dot {
  background: #5ca7dc;
  border-color: #5ca7dc;
}

.workflow-side-timeline li.current .node-dot {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4, 112, 193, 0.14);
}

.workflow-side-timeline li > div {
  display: grid;
  gap: 5px;
}

.workflow-side-timeline strong {
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

.workflow-side-timeline span,
.workflow-side-timeline p {
  margin: 0;
  color: #999;
  font-size: 11px;
  line-height: 18px;
}

.workflow-side-timeline p {
  color: #666;
}

.workflow-side-timeline li.future strong,
.workflow-side-timeline li.future span {
  color: #aaa;
}

.workflow-diagram-link {
  display: flex;
  height: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--primary);
  background: #fff;
  border: 0;
  border-top: 1px solid #e5e5e5;
  cursor: pointer;
  font-size: 12px;
}

/* Ledger detail */

.ledger-detail-page {
  gap: 12px;
}

.record-summary {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 108px;
  align-items: center;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.record-logo {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  color: #fff;
  background: #4c91c8;
  border-radius: 3px;
  font-size: 23px;
}

.record-summary-main {
  min-width: 0;
  flex: 1;
  margin-left: 16px;
}

.record-summary-main > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.record-summary-main h1 {
  margin: 0 8px 0 0;
  color: #222;
  font-size: 18px;
  font-weight: 500;
}

.record-summary-main p {
  margin: 12px 0 0;
  color: #888;
  font-size: 12px;
}

.record-summary-stats {
  display: flex;
  align-self: stretch;
  align-items: center;
}

.record-summary-stats > div {
  display: grid;
  min-width: 110px;
  gap: 6px;
  text-align: center;
  border-left: 1px solid #ededed;
}

.record-summary-stats strong {
  color: #333;
  font-size: 20px;
  font-weight: 500;
}

.record-summary-stats span {
  color: #999;
  font-size: 11px;
}

.record-tabs {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 44px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.record-tabs button {
  height: 43px;
  margin: 0 20px;
  padding: 0 2px;
  color: #666;
  background: #fff;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 12px;
}

.record-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.ledger-detail-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 12px;
}

.ledger-detail-grid main,
.record-aside {
  display: grid;
  align-content: start;
  gap: 12px;
}

.record-section {
  background: #fff;
  border: 1px solid #e5e5e5;
}

.record-section > h2,
.record-section > .request-section-head {
  height: 42px;
  margin: 0;
  padding: 0 15px;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
  font-size: 14px;
  font-weight: 500;
  line-height: 42px;
}

.record-section > .request-section-head h2 {
  height: 41px;
  padding-left: 0;
  line-height: 41px;
}

.record-section > .request-section-head h2::before {
  display: none;
}

.record-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-fields > div {
  display: grid;
  min-height: 64px;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  border-right: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}

.record-fields span,
.record-fields strong {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 400;
}

.record-fields span {
  color: #888;
}

.record-fields strong {
  color: #333;
}

.status-list {
  padding: 6px 15px 12px;
}

.status-list > div {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #ebebeb;
  font-size: 12px;
}

.status-list span {
  color: #999;
}

.status-list strong {
  color: #444;
  font-weight: 400;
}

.success-text {
  color: #4aa345 !important;
}

.compact-timeline {
  margin: 0;
  padding: 16px 15px 12px 28px;
  list-style: none;
}

.compact-timeline li {
  position: relative;
  display: flex;
  min-height: 56px;
  padding-left: 15px;
  border-left: 1px solid #ddd;
}

.compact-timeline li:last-child {
  border-left-color: transparent;
}

.compact-timeline i {
  position: absolute;
  top: 2px;
  left: -4px;
  width: 7px;
  height: 7px;
  background: #68a5d4;
  border-radius: 50%;
}

.compact-timeline li div {
  display: grid;
  align-content: start;
  gap: 5px;
}

.compact-timeline strong {
  color: #555;
  font-size: 12px;
  font-weight: 400;
}

.compact-timeline span {
  color: #aaa;
  font-size: 11px;
}

/* Full page entity form */

.entity-form-page {
  align-items: center;
}

.entity-form-sheet {
  position: relative;
  z-index: 5;
  display: grid;
  width: min(1180px, 100%);
  align-content: start;
  gap: 12px;
}

.entity-form-section {
  background: #fff;
  border: 1px solid #e5e5e5;
}

.entity-form-section > h2,
.entity-form-section > .request-section-head {
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
  font-size: 14px;
  font-weight: 500;
  line-height: 42px;
}

.entity-form-section > .request-section-head h2 {
  padding-left: 0;
  border: 0;
}

.entity-form-section > .request-section-head h2::before {
  display: none;
}

.entity-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 15px 18px;
  gap: 13px 30px;
}

.entity-form-grid label {
  display: grid;
  min-width: 0;
  grid-template-columns: 115px minmax(0, 1fr);
  align-items: center;
}

.entity-form-grid label.wide {
  grid-column: 1 / -1;
}

.entity-form-grid label > span:first-child {
  color: #666;
  font-size: 12px;
}

.entity-form-grid .textarea {
  height: 62px;
  padding: 8px;
  resize: vertical;
}

.editable-detail-table input:not([type="checkbox"]) {
  width: 100%;
  height: 28px;
  padding: 0 7px;
  border: 1px solid transparent;
  outline: none;
  font-size: 12px;
}

.editable-detail-table input:focus {
  border-color: var(--primary);
}

.editable-detail-table button {
  color: #d95b64;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
}

.entity-form-section > .attachment-upload {
  width: calc(100% - 36px);
  margin: 15px 18px;
}

/* Message center */

.message-center {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 190px 340px minmax(420px, 1fr);
  overflow: hidden;
  background: #fff;
}

.message-folders,
.message-list {
  min-height: 0;
  overflow: auto;
  border-right: 1px solid #e5e5e5;
}

.message-folders {
  padding: 12px 0;
  background: #fafafa;
}

.message-folder {
  display: flex;
  width: 100%;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 0 18px;
  color: #555;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-size: 12px;
}

.message-folder > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.message-folder .icon {
  width: 14px;
  height: 14px;
}

.message-folder b {
  min-width: 19px;
  height: 18px;
  padding: 0 5px;
  color: #999;
  background: #eee;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

.message-folder.active,
.message-folder:hover {
  color: var(--primary);
  background: #eef6fc;
  border-left-color: var(--primary);
}

.message-folder-label {
  height: 34px;
  margin-top: 12px;
  padding: 0 18px;
  color: #aaa;
  border-top: 1px solid #ededed;
  font-size: 11px;
  line-height: 42px;
}

.folder-dot {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
}

.folder-dot.blue {
  background: #4c91c8;
}

.folder-dot.green {
  background: #65a85e;
}

.message-list-toolbar {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 12px;
  border-bottom: 1px solid #e5e5e5;
}

.message-list-toolbar .e10-tabs {
  height: 48px;
  border: 0;
}

.message-list-toolbar .e10-tab {
  height: 48px;
}

.message-item {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  color: #333;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #ededed;
  cursor: pointer;
  text-align: left;
}

.message-item:hover,
.message-item.active {
  background: #f1f6fa;
}

.message-item.active::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--primary);
}

.message-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: #4c91c8;
  border-radius: 2px;
  font-size: 13px;
}

.message-avatar.green {
  background: #65a85e;
}

.message-avatar.amber {
  background: #d49844;
}

.message-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
}

.message-copy strong {
  overflow: hidden;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-copy > span {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #888;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-copy small {
  grid-column: 2;
  grid-row: 1;
  color: #aaa;
  font-size: 10px;
}

.unread-dot {
  position: absolute;
  right: 7px;
  bottom: 8px;
  width: 6px;
  height: 6px;
  background: #ef5b64;
  border-radius: 50%;
}

.message-preview {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #fff;
}

.message-preview > header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #e5e5e5;
}

.message-preview > header h1 {
  margin: 0 0 6px;
  color: #222;
  font-size: 16px;
  font-weight: 500;
}

.message-preview > header span {
  color: #999;
  font-size: 11px;
}

.message-preview > header > div:last-child {
  display: flex;
  gap: 4px;
}

.message-preview-body {
  min-height: 0;
  flex: 1;
  padding: 22px 28px;
  overflow: auto;
}

.message-type-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-type-line > div {
  display: grid;
  gap: 4px;
}

.message-type-line strong {
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

.message-type-line span {
  color: #999;
  font-size: 11px;
}

.message-preview-body > p {
  max-width: 720px;
  margin: 24px 0;
  color: #444;
  font-size: 13px;
  line-height: 24px;
}

.message-business-card {
  width: min(480px, 100%);
  padding: 16px 18px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.message-business-card > div {
  display: grid;
  min-height: 34px;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px dashed #e5e5e5;
}

.message-business-card span,
.message-business-card strong {
  font-size: 12px;
  font-weight: 400;
}

.message-business-card span {
  color: #999;
}

.message-business-card strong {
  color: #333;
}

.message-business-card .btn {
  margin-top: 14px;
}

.message-preview > footer {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 18px;
  border-top: 1px solid #e5e5e5;
}

/* Document center */

.document-layout {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
}

.document-tree {
  min-height: 0;
  overflow: auto;
  background: #fafafa;
  border-right: 1px solid #e5e5e5;
}

.tree-head,
.admin-pane-head {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px 0 16px;
  border-bottom: 1px solid #e5e5e5;
}

.tree-head strong,
.admin-pane-head strong {
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

.tree-head button,
.admin-pane-head button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: #777;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.tree-row,
.admin-tree-row {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  color: #555;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.tree-row > span,
.admin-tree-row > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tree-row .icon,
.admin-tree-row .icon {
  width: 13px;
  height: 13px;
}

.tree-row.child,
.admin-tree-row.child {
  padding-left: 37px;
}

.tree-row:hover,
.tree-row.active,
.admin-tree-row:hover,
.admin-tree-row.active {
  color: var(--primary);
  background: #eef5fa;
  border-left-color: var(--primary);
}

.tree-row b {
  color: #aaa;
  font-size: 10px;
  font-weight: 400;
}

.tree-section-label {
  height: 38px;
  margin-top: 10px;
  padding: 0 16px;
  color: #aaa;
  border-top: 1px solid #ededed;
  font-size: 11px;
  line-height: 45px;
}

.document-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.document-main-head {
  display: flex;
  height: 56px;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid #e5e5e5;
}

.document-main-head > div:first-child {
  display: grid;
  gap: 5px;
}

.document-main-head strong {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.document-main-head span {
  color: #aaa;
  font-size: 10px;
}

.document-view-switch {
  display: flex;
}

.document-view-switch button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: #888;
  background: #fff;
  border: 1px solid #e2e2e2;
  cursor: pointer;
}

.document-view-switch button + button {
  border-left: 0;
}

.document-view-switch button.active {
  color: var(--primary);
  background: #edf6fc;
}

.document-filter {
  display: flex;
  height: 42px;
  min-height: 42px;
  align-items: center;
  gap: 18px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid #ededed;
}

.document-filter > button {
  height: 42px;
  padding: 0 2px;
  color: #777;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 12px;
}

.document-filter > button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.document-filter > span {
  flex: 1;
}

.document-table-wrap {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.document-table td,
.document-table th {
  white-space: nowrap;
}

.document-name {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
}

.document-name strong {
  overflow: hidden;
  color: #333;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-type {
  display: grid;
  width: 30px;
  height: 32px;
  flex: 0 0 30px;
  place-items: center;
  color: #fff;
  background: #4c91c8;
  border-radius: 2px;
  font-size: 8px;
}

.file-type.pdf {
  background: #d85d64;
}

.file-type.xlsx {
  background: #4c9a68;
}

/* Portal */

.portal-page {
  gap: 12px;
}

.portal-welcome {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 106px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  color: #fff;
  background: #3d78ac;
  border: 1px solid #346d9f;
}

.portal-welcome span,
.portal-welcome p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.portal-welcome h1 {
  margin: 7px 0 5px;
  font-size: 22px;
  font-weight: 400;
}

.portal-welcome p {
  margin: 0;
}

.portal-weather {
  display: grid;
  padding-right: 20px;
  text-align: right;
}

.portal-weather strong {
  font-size: 28px;
  font-weight: 300;
}

.portal-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.portal-widget {
  min-height: 220px;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.portal-widget > header {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid #ededed;
}

.portal-widget > header h2 {
  position: relative;
  margin: 0;
  padding-left: 10px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.portal-widget > header h2::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  content: "";
  background: #80b8df;
}

.portal-widget > header button {
  color: #999;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
}

.portal-todo {
  grid-column: span 7;
  min-height: 306px;
}

.portal-shortcuts {
  grid-column: span 5;
  min-height: 306px;
}

.portal-notice {
  grid-column: span 5;
}

.portal-calendar {
  grid-column: span 4;
}

.portal-project {
  grid-column: span 3;
}

.portal-tabs {
  display: flex;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid #ededed;
}

.portal-tabs button {
  height: 38px;
  margin-right: 26px;
  color: #777;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 12px;
}

.portal-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.portal-list {
  padding: 2px 16px;
}

.portal-list button {
  display: grid;
  width: 100%;
  min-height: 50px;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  text-align: left;
}

.portal-list .dot {
  width: 6px;
  height: 6px;
  background: #999;
  border-radius: 50%;
}

.portal-list .dot.red {
  background: #e45b64;
}

.portal-list .dot.blue {
  background: #4c91c8;
}

.portal-list .dot.amber {
  background: #d69a45;
}

.portal-list .dot.green {
  background: #65a85e;
}

.portal-list button > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.portal-list strong {
  overflow: hidden;
  color: #444;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-list small,
.portal-list b {
  color: #aaa;
  font-size: 10px;
  font-weight: 400;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 10px;
  padding: 24px 18px;
}

.shortcut-grid button {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  color: #555;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
}

.shortcut-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: #4c91c8;
  border-radius: 4px;
}

.shortcut-icon.cyan {
  background: #4ba2ae;
}

.shortcut-icon.orange {
  background: #d99548;
}

.shortcut-icon.green {
  background: #69a361;
}

.shortcut-icon.violet {
  background: #7a78aa;
}

.shortcut-icon.gray {
  background: #7b8994;
}

.portal-notice ul {
  margin: 0;
  padding: 6px 16px;
  list-style: none;
}

.portal-notice li button {
  display: flex;
  width: 100%;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  color: #555;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed #ededed;
  cursor: pointer;
  font-size: 11px;
}

.portal-notice li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-notice time {
  color: #aaa;
}

.calendar-date {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 8px;
}

.calendar-date strong {
  color: var(--primary);
  font-size: 32px;
  font-weight: 300;
}

.calendar-date span {
  color: #777;
  font-size: 11px;
}

.schedule {
  padding: 0 16px 12px;
}

.schedule > div {
  display: grid;
  min-height: 46px;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px dashed #ededed;
}

.schedule time {
  color: var(--primary);
  font-size: 11px;
}

.schedule > div > span {
  display: grid;
  gap: 3px;
}

.schedule strong {
  color: #555;
  font-size: 11px;
  font-weight: 400;
}

.schedule small {
  color: #aaa;
  font-size: 10px;
}

.project-progress {
  padding: 17px 16px 6px;
}

.project-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-progress span {
  display: grid;
  gap: 4px;
}

.project-progress strong {
  color: #555;
  font-size: 11px;
  font-weight: 400;
}

.project-progress small {
  color: #aaa;
  font-size: 9px;
}

.project-progress b {
  color: var(--primary);
  font-size: 12px;
  font-weight: 400;
}

.progress-track {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  background: #ebebeb;
  border-radius: 3px;
}

.progress-track i {
  display: block;
  height: 100%;
  background: #5c9fd2;
}

/* Batch import */

.batch-page {
  align-items: center;
  gap: 12px;
}

.batch-panel,
.batch-jobs {
  position: relative;
  z-index: 5;
  width: min(1120px, 100%);
  background: #fff;
  border: 1px solid #e5e5e5;
}

.batch-panel > header {
  min-height: 62px;
  padding: 13px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.batch-panel > header h1 {
  margin: 0 0 5px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

.batch-panel > header span {
  color: #999;
  font-size: 11px;
}

.batch-steps {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 28px;
  list-style: none;
}

.batch-steps li {
  position: relative;
  display: flex;
  width: 150px;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 12px;
}

.batch-steps li:not(:last-child)::after {
  width: 45px;
  height: 1px;
  margin-left: auto;
  content: "";
  background: #ddd;
}

.batch-steps i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
}

.batch-steps li.active {
  color: var(--primary);
}

.batch-steps li.active i {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.batch-upload {
  margin: 0 28px;
  padding: 30px 20px;
  text-align: center;
  background: #fafafa;
  border: 1px dashed #cfcfcf;
}

.upload-visual {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  place-items: center;
  color: #69a6d2;
  background: #e8f3fa;
  border-radius: 50%;
}

.upload-visual .icon {
  width: 22px;
  height: 22px;
}

.batch-upload h2 {
  margin: 0 0 8px;
  color: #444;
  font-size: 14px;
  font-weight: 400;
}

.batch-upload p {
  margin: 0 0 16px;
  color: #999;
  font-size: 11px;
}

.batch-upload .btn + .btn {
  margin-left: 8px;
}

.batch-rules {
  margin: 20px 28px 24px;
  padding: 13px 16px;
  background: #f8fbfd;
  border: 1px solid #e2edf4;
}

.batch-rules h2 {
  margin: 0 0 8px;
  color: #555;
  font-size: 12px;
  font-weight: 500;
}

.batch-rules p {
  margin: 3px 0;
  color: #888;
  font-size: 11px;
}

.batch-jobs > .request-section-head {
  padding: 0 14px;
}

.batch-jobs > .request-section-head h2::before {
  display: none;
}

.inline-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.inline-progress::before {
  grid-column: 1;
  grid-row: 1;
  height: 5px;
  content: "";
  background: #e8e8e8;
  border-radius: 3px;
}

.inline-progress i {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  height: 5px;
  background: #62a55b;
  border-radius: 3px;
}

.inline-progress.warning i {
  background: #d79a42;
}

.inline-progress span {
  grid-column: 2;
  grid-row: 1;
  color: #888;
  font-size: 10px;
}

/* Three-pane administration */

.admin-three-pane {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 226px 286px minmax(540px, 1fr);
  overflow: hidden;
  background: #fff;
}

.admin-tree-pane,
.admin-object-pane,
.admin-property-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-right: 1px solid #e5e5e5;
}

.admin-tree-pane {
  color: #dce4eb;
  background: #273543;
}

.admin-tree-pane .admin-pane-head {
  border-bottom-color: #354553;
}

.admin-tree-pane .admin-pane-head strong,
.admin-tree-pane .admin-pane-head button {
  color: #dce4eb;
}

.admin-tree-pane .admin-tree-row {
  color: #c7d0d8;
}

.admin-tree-pane .admin-tree-row:hover,
.admin-tree-pane .admin-tree-row.active {
  color: #fff;
  background: #1f2b36;
  border-left-color: #2e95de;
}

.admin-object-pane {
  background: #fafafa;
}

.admin-object-search {
  position: relative;
  display: block;
  margin: 10px 12px;
}

.admin-object-search .icon {
  position: absolute;
  top: 8px;
  left: 9px;
  width: 13px;
  height: 13px;
  color: #aaa;
}

.admin-object-search input {
  width: 100%;
  height: 30px;
  padding: 0 8px 0 28px;
  background: #fff;
  border: 1px solid #e2e2e2;
  outline: none;
  font-size: 12px;
}

.admin-object-group > span {
  display: block;
  height: 30px;
  padding: 0 14px;
  color: #999;
  font-size: 10px;
  line-height: 30px;
}

.admin-object {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 32px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  color: #444;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #ededed;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
}

.admin-object:hover,
.admin-object.active {
  color: var(--primary);
  background: #f1f7fb;
  border-left-color: var(--primary);
}

.object-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: #4c91c8;
  border-radius: 2px;
  font-style: normal;
  font-size: 10px;
}

.object-icon.cyan {
  background: #4ba2ae;
}

.object-icon.orange {
  background: #d79449;
}

.object-icon.green {
  background: #62a45d;
}

.object-icon.violet {
  background: #7977a6;
}

.admin-object > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-object strong {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-object small {
  color: #aaa;
  font-size: 10px;
}

.admin-object b {
  color: #aaa;
  font-size: 16px;
  font-weight: 300;
}

.admin-property-pane {
  display: flex;
  flex-direction: column;
  background: #f0f1f4;
  border-right: 0;
}

.admin-property-head {
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.admin-property-head h1 {
  margin: 0 0 5px;
  color: #222;
  font-size: 16px;
  font-weight: 500;
}

.admin-property-head span {
  color: #999;
  font-size: 10px;
}

.admin-property-head > div:last-child {
  display: flex;
}

.admin-anchor-tabs {
  display: flex;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.admin-anchor-tabs button {
  height: 42px;
  margin-right: 28px;
  padding: 0 2px;
  color: #666;
  background: #fff;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 12px;
}

.admin-anchor-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.admin-property-scroll {
  min-height: 0;
  flex: 1;
  padding: 12px 14px 30px;
  overflow: auto;
}

.property-group {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.property-group h2 {
  height: 41px;
  margin: 0;
  padding: 0 18px;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
  font-weight: 500;
  line-height: 41px;
}

.property-row {
  display: grid;
  min-height: 48px;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #ededed;
}

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

.property-row > span {
  padding-left: 20px;
  color: #666;
  font-size: 12px;
}

.property-row > div {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 7px 18px 7px 0;
}

.property-row .input,
.property-row .select,
.property-row .textarea {
  width: min(420px, 100%);
}

.property-row .textarea {
  height: 54px;
  padding: 7px 8px;
  resize: vertical;
}

.property-inline {
  display: flex;
  gap: 8px !important;
}

.property-inline .select {
  width: 160px;
}

.property-hint {
  color: #999;
  font-size: 11px;
}

/* Page template catalog */

.recipe-button {
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.recipe-button:hover {
  border-color: #95bddc;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
}

.recipe-button .recipe-body {
  position: relative;
  min-height: 94px;
}

.recipe-open {
  color: var(--primary);
  font-size: 11px;
}

.recipe-button .recipe-preview {
  position: relative;
  height: 126px;
  overflow: hidden;
  background: #f0f1f4;
  border-bottom: 1px solid #e5e5e5;
}

.recipe-mini-top {
  position: absolute;
  inset: 0 0 auto;
  height: 15px;
  background: #0470c1;
}

.recipe-mini-side {
  position: absolute;
  inset: 15px auto 0 0;
  width: 42px;
  background: #2b2e35;
}

.recipe-mini-content {
  position: absolute;
  top: 23px;
  right: 9px;
  bottom: 9px;
  left: 51px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 5px;
}

.recipe-mini-content i {
  display: block;
  background: #fff;
  border: 1px solid #e2e2e2;
}

.recipe-preview-form .recipe-mini-content,
.recipe-preview-detail .recipe-mini-content,
.recipe-preview-settings .recipe-mini-content,
.recipe-preview-flow .recipe-mini-content {
  grid-template-columns: 1fr;
}

.recipe-preview-message .recipe-mini-content,
.recipe-preview-admin .recipe-mini-content {
  grid-template-columns: 0.55fr 0.8fr 1.4fr;
}

.recipe-preview-message .recipe-mini-content i:nth-child(4),
.recipe-preview-admin .recipe-mini-content i:nth-child(4) {
  display: none;
}

.recipe-preview-list .recipe-mini-content i {
  grid-column: 1 / -1;
  min-height: 12px;
}

.recipe-preview-launch .recipe-mini-content,
.recipe-preview-portal .recipe-mini-content {
  grid-template-columns: repeat(3, 1fr);
}

.recipe-preview-document .recipe-mini-content {
  grid-template-columns: 0.55fr 2fr;
}

.recipe-preview-batch .recipe-mini-content i:first-child,
.recipe-preview-approval .recipe-mini-content i:first-child {
  grid-column: 1 / -1;
}

.mini-steps {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-steps li {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #999;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  font-size: 10px;
}

.mini-steps li + li {
  margin-left: 22px;
}

.mini-steps li.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Selector and document preview dialogs */

.dialog-wide {
  width: min(880px, calc(100vw - 40px));
  max-width: none;
}

.selector-body {
  display: grid;
  min-height: 420px;
  grid-template-columns: 230px minmax(0, 1fr);
}

.selector-tree {
  padding: 10px 0;
  background: #fafafa;
  border-right: 1px solid #e5e5e5;
}

.selector-tree > label {
  position: relative;
  display: block;
  margin: 0 10px 10px;
}

.selector-tree > label .icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 13px;
  height: 13px;
  color: #aaa;
}

.selector-tree > label input {
  width: 100%;
  height: 30px;
  padding: 0 8px 0 27px;
  border: 1px solid #e2e2e2;
  outline: none;
  font-size: 12px;
}

.selector-list {
  min-width: 0;
  overflow: auto;
}

.selector-list .data-table {
  min-width: 100%;
}

.selector-list-head {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #e5e5e5;
}

.selector-list-head label {
  position: relative;
}

.selector-list-head label .icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 13px;
  height: 13px;
  color: #aaa;
}

.selector-list-head input {
  width: 260px;
  height: 30px;
  padding: 0 8px 0 27px;
  border: 1px solid #e2e2e2;
  outline: none;
  font-size: 12px;
}

.selector-list-head > span {
  color: #888;
  font-size: 11px;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.person-cell i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #fff;
  background: #6298c0;
  border-radius: 50%;
  font-style: normal;
  font-size: 10px;
}

.dialog-document {
  width: min(1120px, calc(100vw - 30px));
  max-width: none;
}

.dialog-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.document-preview-body {
  position: relative;
  display: grid;
  height: min(720px, calc(100vh - 120px));
  grid-template-columns: minmax(0, 1fr) 240px;
  padding-top: 40px;
  overflow: hidden;
  background: #e9eaed;
}

.document-preview-toolbar {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 240px;
  left: 0;
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #f8f8f8;
  border-bottom: 1px solid #ddd;
}

.document-preview-toolbar span {
  color: #777;
  font-size: 11px;
}

.document-preview-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.document-preview-toolbar button {
  width: 24px;
  height: 24px;
  padding: 0;
  color: #666;
  background: #fff;
  border: 1px solid #ddd;
}

.document-paper {
  width: min(680px, calc(100% - 40px));
  min-height: 880px;
  margin: 20px auto;
  padding: 54px 64px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.11);
}

.document-paper h1 {
  margin: 0 0 12px;
  color: #222;
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}

.document-version {
  margin: 0 0 36px !important;
  color: #888 !important;
  text-align: center;
}

.document-paper h2 {
  margin: 24px 0 10px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

.document-paper p,
.document-paper td,
.document-paper th {
  color: #555;
  font-size: 12px;
  line-height: 23px;
}

.document-paper table {
  width: 100%;
  border-collapse: collapse;
}

.document-paper td,
.document-paper th {
  padding: 7px;
  border: 1px solid #ddd;
  text-align: left;
}

.document-paper th {
  background: #fafafa;
  font-weight: 500;
}

.document-meta-panel {
  min-height: 0;
  padding: 12px 16px;
  overflow: auto;
  background: #fff;
  border-left: 1px solid #ddd;
}

.document-meta-panel h3 {
  margin: 8px 0 10px;
  padding-bottom: 8px;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
  font-weight: 500;
}

.document-meta-panel > div {
  display: grid;
  min-height: 36px;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  font-size: 11px;
}

.document-meta-panel > div span {
  color: #999;
}

.document-meta-panel > div strong {
  color: #555;
  font-weight: 400;
}

.document-meta-panel ol {
  margin: 0;
  padding: 0 0 0 10px;
  list-style: none;
}

.document-meta-panel li {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  gap: 9px;
}

.document-meta-panel li i {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  background: #65a4d1;
  border-radius: 50%;
}

.document-meta-panel li span {
  display: grid;
  gap: 4px;
}

.document-meta-panel li strong {
  color: #555;
  font-size: 11px;
  font-weight: 400;
}

.document-meta-panel li small {
  color: #aaa;
  font-size: 10px;
}

@media (max-width: 1320px) {
  .launch-columns {
    column-count: 3;
  }

  .workflow-workspace {
    grid-template-columns: minmax(620px, 1fr) 270px;
  }

  .message-center {
    grid-template-columns: 164px 300px minmax(360px, 1fr);
  }

  .admin-three-pane {
    grid-template-columns: 200px 250px minmax(500px, 1fr);
  }

  .record-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .launch-columns {
    column-count: 2;
  }

  .workflow-workspace {
    display: block;
    overflow: auto;
  }

  .workflow-paper,
  .workflow-side-panel {
    overflow: visible;
  }

  .workflow-side-panel {
    margin-top: 12px;
  }

  .ledger-detail-grid {
    grid-template-columns: 1fr;
  }

  .record-summary-stats > div {
    min-width: 85px;
  }

  .message-center {
    grid-template-columns: 155px 280px minmax(340px, 1fr);
  }

  .portal-todo,
  .portal-shortcuts,
  .portal-notice,
  .portal-calendar,
  .portal-project {
    grid-column: span 12;
  }

  .admin-three-pane {
    grid-template-columns: 190px 230px minmax(460px, 1fr);
  }
}

@media (max-width: 760px) {
  .e10-shell.focus-mode {
    min-width: 320px;
  }

  .workflow-form-toolbar .toolbar-title strong {
    max-width: 56vw;
    font-size: 13px;
  }

  .workflow-form-toolbar .module-icon {
    display: none;
  }

  .workflow-form-toolbar .toolbar-buttons .btn:not(.btn-primary) {
    display: none;
  }

  .workflow-list-actions > .btn-text,
  .workflow-list-actions > .filter-icon {
    display: none;
  }

  .launch-toolbar .header-inline-search,
  .launch-toolbar .toolbar-tabs span:not(.active) {
    display: none;
  }

  .launch-toolbar .toolbar-title > div {
    min-width: 0;
  }

  .launch-toolbar .toolbar-tabs {
    height: 18px;
    line-height: 18px;
  }

  .launch-toolbar .toolbar-tabs span.active {
    height: 18px;
    margin: 0;
    font-size: 11px;
  }

  .launch-workspace {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .launch-category-head {
    display: block;
    height: 50px;
    padding: 0 8px;
  }

  .launch-category-head strong {
    display: none;
  }

  .launch-search {
    top: 10px;
  }

  .launch-category {
    padding: 0 12px;
    font-size: 11px;
  }

  .launch-board {
    padding: 8px;
  }

  .launch-columns {
    column-count: 1;
  }

  .launch-group h2 {
    height: 44px;
    font-size: 13px;
  }

  .launch-group > div {
    padding: 0 14px 12px;
  }

  .workflow-workspace {
    padding: 6px;
  }

  .request-document-head {
    padding: 16px 10px 10px;
  }

  .request-document-head h1 {
    font-size: 17px;
  }

  .request-document-head > div {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .request-section {
    margin-right: 8px;
    margin-left: 8px;
  }

  .request-grid {
    grid-template-columns: 1fr;
  }

  .request-cell,
  .request-cell-wide {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .request-detail-table {
    min-width: 720px;
  }

  .record-summary {
    align-items: flex-start;
    padding: 14px;
  }

  .record-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 18px;
  }

  .record-summary-main h1 {
    font-size: 15px;
  }

  .record-summary-main > div {
    flex-wrap: wrap;
  }

  .record-summary-stats {
    display: none;
  }

  .record-tabs {
    overflow-x: auto;
  }

  .record-tabs button {
    flex: 0 0 auto;
    margin: 0 10px;
  }

  .record-fields {
    grid-template-columns: 1fr;
  }

  .entity-form-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .entity-form-grid label.wide {
    grid-column: auto;
  }

  .entity-form-grid label {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .editable-detail-table {
    min-width: 780px;
  }

  .entity-form-section {
    overflow-x: auto;
  }

  .message-center {
    grid-template-columns: 94px minmax(220px, 1fr);
    overflow-x: auto;
  }

  .message-preview {
    display: none;
  }

  .message-folder {
    justify-content: center;
    padding: 0 6px;
  }

  .message-folder .icon,
  .message-folder b,
  .folder-dot {
    display: none;
  }

  .document-layout {
    grid-template-columns: 100px minmax(460px, 1fr);
    overflow-x: auto;
  }

  .tree-row {
    padding: 0 8px;
    font-size: 10px;
  }

  .tree-row.child {
    padding-left: 14px;
  }

  .tree-row .icon,
  .tree-row b,
  .tree-head button {
    display: none;
  }

  .portal-welcome {
    min-height: 92px;
    padding: 14px;
  }

  .portal-welcome h1 {
    font-size: 18px;
  }

  .portal-weather {
    display: none;
  }

  .shortcut-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .batch-steps {
    height: 62px;
    justify-content: space-between;
    padding: 0 10px;
  }

  .batch-steps li {
    width: auto;
  }

  .batch-steps li span,
  .batch-steps li::after {
    display: none;
  }

  .batch-upload,
  .batch-rules {
    margin-right: 12px;
    margin-left: 12px;
  }

  .batch-jobs {
    overflow-x: auto;
  }

  .batch-jobs table {
    min-width: 760px;
  }

  .admin-three-pane {
    grid-template-columns: 90px 150px minmax(430px, 1fr);
    overflow-x: auto;
  }

  .admin-tree-row,
  .admin-tree-row.child {
    padding: 0 7px;
    font-size: 10px;
  }

  .admin-tree-row .icon {
    display: none;
  }

  .admin-object {
    grid-template-columns: 25px minmax(0, 1fr);
    padding: 5px 7px;
  }

  .object-icon {
    width: 24px;
    height: 24px;
  }

  .admin-object b {
    display: none;
  }

  .property-row {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .property-row > span {
    padding-left: 10px;
  }

  .selector-body {
    grid-template-columns: 110px minmax(450px, 1fr);
    overflow-x: auto;
  }

  .selector-list-head input {
    width: 210px;
  }

  .document-preview-body {
    grid-template-columns: minmax(500px, 1fr);
    overflow: auto;
  }

  .document-preview-toolbar {
    right: 0;
  }

  .document-meta-panel {
    display: none;
  }
}
