/* Property and enterprise client-review workspace. */
.cr-workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.cr-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  border: 1px solid var(--border, #e1e8f0);
  border-radius: 13px;
  background: #fff;
}
.cr-toolbar .search-field {
  flex: 1 1 260px;
  min-height: 40px;
}
.cr-toolbar .field {
  margin: 0;
  min-width: 138px;
  flex: 0 1 190px;
}
.cr-toolbar .field > span {
  font-size: 11px;
  color: #66768b;
}
.cr-toolbar .field select,
.cr-toolbar .field input {
  min-height: 40px;
  font-size: 12px;
}
.cr-toolbar .cr-role {
  margin-left: auto;
  min-width: 172px;
}
.cr-panel {
  min-width: 0;
  overflow: hidden;
}
.cr-panel .panel-head {
  gap: 16px;
}
.cr-panel .panel-head p {
  max-width: 620px;
  font-size: 12px;
  color: #748295;
  line-height: 1.6;
}
.cr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cr-actions .btn {
  white-space: nowrap;
}
.cr-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #f8fafc;
  border-block: 1px solid #e7ecf2;
  font-size: 12px;
  color: #617184;
}
.cr-panel .data-table td {
  vertical-align: middle;
}
.cr-panel .data-table td:first-child:has(input[type='checkbox']),
.cr-panel .data-table th:first-child:has(input[type='checkbox']) {
  width: 38px;
  padding-right: 0;
}
.cr-panel input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #1764c0;
  cursor: pointer;
}
.cr-file-status {
  display: block;
  margin-top: 5px;
  max-width: 300px;
  font-size: 10px;
  color: #768398;
  white-space: normal;
}
.cr-document-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.cr-folder-list {
  padding: 20px 12px;
}
.cr-folder-list h3 {
  padding: 0 10px;
  margin: 0 0 16px;
  font-size: 13px;
}
.cr-folder-list button {
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  color: #68778a;
  padding: 13px 10px;
  gap: 9px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.cr-folder-list button.active {
  color: #155aab;
  background: #edf4fc;
  font-weight: 600;
}
.cr-folder-list button:hover {
  background: #f1f6fc;
}
.cr-folder-list button svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.cr-folder-list button span {
  flex: 1;
}
.cr-folder-list button small {
  font-size: 10px;
}
.cr-folder-list p {
  color: #8090a2;
  font-size: 11px;
  line-height: 1.7;
  padding: 14px 10px 0;
  border-top: 1px solid #edf0f4;
  margin: 18px 0 0;
}
.cr-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cr-metrics article {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cr-metrics article > span {
  color: #6c7a8b;
  font-size: 12px;
}
.cr-metrics strong {
  font-size: 30px;
  line-height: 1.2;
  color: #183b60;
  font-weight: 650;
}
.cr-metrics small {
  color: #8190a0;
  font-size: 11px;
}
.cr-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}
.cr-industry-card {
  padding: 20px;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fff;
  color: #263d57;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.cr-industry-card:hover {
  border-color: #7fa9d9;
  box-shadow: 0 4px 15px #1439540b;
}
.cr-industry-card > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}
.cr-industry-card svg {
  width: 16px;
  height: 16px;
  color: #1764c0;
  flex-shrink: 0;
}
.cr-industry-card strong {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 32px;
  font-weight: 600;
  margin-top: 22px;
}
.cr-industry-card strong small {
  font-size: 11px;
  font-weight: 400;
  color: #778699;
}
.cr-progress {
  height: 5px;
  background: #edf2f8;
  border-radius: 10px;
  margin: 14px 0;
  overflow: hidden;
}
.cr-progress i {
  display: block;
  height: 100%;
  background: #4089d4;
  border-radius: inherit;
}
.cr-industry-card footer {
  font-size: 11px;
  color: #778699;
}
.cr-secondary-filter {
  display: flex;
  margin-top: -8px;
}
.cr-secondary-filter .field {
  width: 260px;
  margin: 0;
}
.cr-secondary-filter .field > span {
  font-size: 11px;
  color: #68778a;
}
.cr-session-note {
  color: #8390a1;
  font-size: 10px;
  text-align: right;
  margin: -5px 0 0;
}
.cr-form {
  display: grid;
  gap: 14px;
}
.cr-form .field {
  margin-bottom: 0;
}
.cr-form .field input[type='file'] {
  padding: 14px;
  background: #f7faff;
  border: 1px dashed #bccde0;
  line-height: 1.5;
}
.cr-form .field small {
  line-height: 1.6;
  font-size: 11px;
  color: #7a899a;
}
.cr-form .form-grid {
  row-gap: 16px;
}
.cr-error {
  color: #b23540;
  font-size: 12px;
  margin: 0;
}
.cr-error:empty {
  display: none;
}
.cr-note {
  font-size: 12px;
  line-height: 1.6;
}
.cr-detail-head {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.cr-attachments {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cr-attachments li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e3eaf1;
  border-radius: 9px;
}
.cr-attachments li > svg {
  width: 18px;
  height: 18px;
  color: #6f8da9;
}
.cr-attachments li > span {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cr-attachments small {
  display: block;
  font-size: 10px;
  color: #8190a1;
  margin-top: 4px;
}
@media (max-width: 1200px) {
  .cr-document-layout {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 14px;
  }
  .cr-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cr-panel .panel-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .cr-workspace {
    gap: 14px;
  }
  .cr-toolbar {
    padding: 14px;
    gap: 10px;
  }
  .cr-toolbar .search-field {
    flex-basis: 100%;
  }
  .cr-toolbar .field,
  .cr-toolbar .cr-role {
    flex: 1 1 135px;
    margin-left: 0;
    min-width: 0;
  }
  .cr-document-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .cr-folder-list {
    padding: 12px;
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }
  .cr-folder-list h3,
  .cr-folder-list p {
    display: none;
  }
  .cr-folder-list button {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .cr-metrics {
    gap: 9px;
  }
  .cr-metrics article {
    padding: 14px;
  }
  .cr-metrics strong {
    font-size: 25px;
  }
  .cr-metrics small {
    display: none;
  }
  .cr-industry-grid {
    padding: 14px;
    gap: 10px;
  }
  .cr-industry-card {
    padding: 15px;
  }
  .cr-selection {
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  .cr-session-note {
    text-align: left;
    line-height: 1.6;
  }
}
@media (max-width: 420px) {
  .cr-industry-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cr-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .cr-metrics article {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* September property-library review: folder hierarchy and document operations. */
.cr-document-layout {
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 18px;
}
.cr-document-tree {
  padding: 16px 12px;
}
.cr-folder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 5px 12px;
}
.cr-folder-heading h3 {
  padding: 0;
  margin: 0;
}
.cr-folder-list .cr-root-add {
  width: 30px;
  height: 30px;
  padding: 7px;
  color: #1764c0;
  background: #edf4fc;
}
.cr-folder-tree,
.cr-folder-tree ul {
  list-style: none;
  padding: 0;
  margin: 5px 0 0;
}
.cr-folder-tree ul {
  padding-left: 9px;
  margin-left: 9px;
  border-left: 1px solid #e3eaf1;
}
.cr-folder-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  border-radius: 7px;
  margin-top: 3px;
}
.cr-folder-row.active {
  background: #edf4fc;
  color: #155aab;
}
.cr-folder-row:hover {
  background: #f4f7fb;
}
.cr-folder-row.active:hover {
  background: #edf4fc;
}
.cr-folder-list .cr-folder-toggle {
  width: 18px;
  align-self: start;
  padding: 12px 1px;
  justify-content: center;
}
.cr-folder-toggle svg {
  width: 12px !important;
  height: 12px !important;
}
.cr-folder-list .cr-folder-name {
  width: 100%;
  padding: 11px 5px;
  min-width: 0;
  gap: 7px;
  color: inherit;
}
.cr-folder-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cr-folder-name > small {
  flex-shrink: 0;
}
.cr-folder-name > svg {
  color: #7998b9;
}
.cr-folder-row.active .cr-folder-name {
  font-weight: 600;
}
.cr-folder-actions {
  grid-column: 2;
  gap: 3px;
  padding: 0 4px 7px;
  display: none;
}
.cr-folder-row.active .cr-folder-actions,
.cr-folder-row:hover .cr-folder-actions,
.cr-folder-row:focus-within .cr-folder-actions {
  display: flex;
}
.cr-folder-list .cr-folder-actions .btn {
  padding: 4px 5px;
  width: auto;
  min-height: 40px;
  font-size: 12px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #dce5ef;
  color: #58728d;
}
.cr-folder-list button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cr-document-tree > p {
  padding: 14px 5px 0;
}
.cr-document-toolbar .cr-toolbar {
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  gap: 8px;
}
.cr-document-toolbar .cr-toolbar .search-field {
  min-width: 180px;
  flex-basis: 240px;
}
.cr-document-toolbar .cr-role {
  flex: 0 1 155px;
  min-width: 155px;
}
.cr-document-layout .cr-panel .panel-head {
  padding: 18px;
}
.cr-document-layout .cr-panel .panel-head p {
  max-width: 500px;
  overflow-wrap: anywhere;
}
.cr-document-layout .data-table {
  min-width: 1160px;
  font-size: 14px;
}
.cr-document-layout .data-table th {
  font-size: 13px;
  padding: 13px 10px;
}
.cr-document-layout .data-table td {
  padding: 16px 10px;
}
.cr-document-layout .data-table td:nth-child(2) {
  min-width: 200px;
  max-width: 275px;
}
.cr-document-layout .module-cell-sub {
  font-size: 12px;
  white-space: normal;
  margin-top: 6px;
}
.cr-document-name {
  display: flex;
  gap: 8px;
  align-items: start;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.cr-document-name svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 16px;
}
.cr-document-name span {
  overflow-wrap: anywhere;
}
.cr-document-time {
  min-width: 124px;
  max-width: 124px;
  white-space: normal !important;
  line-height: 1.7;
}
.cr-document-remark {
  min-width: 100px;
  max-width: 170px;
  white-space: normal !important;
  overflow-wrap: anywhere;
  color: #68778a;
}
.cr-document-actions {
  gap: 4px;
  min-width: 108px;
}
.cr-document-actions .btn {
  padding: 8px 12px;
  min-height: 40px;
  font-size: 13px;
}
.cr-document-actions [data-action='cr-delete-doc'],
.cr-more-menu [data-action='cr-delete-docs'] {
  color: #b84650;
}
.cr-more {
  position: relative;
}
.cr-more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
}
.cr-more summary::-webkit-details-marker {
  display: none;
}
.cr-more summary svg {
  width: 14px;
  height: 14px;
}
.cr-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  display: grid;
  gap: 4px;
  padding: 6px;
  min-width: 160px;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 24px #19395720;
}
.cr-more-menu .btn {
  justify-content: start;
  border-color: transparent;
}
.cr-more-menu .btn:hover:not(:disabled) {
  background: #f1f6fc;
}
.cr-pagination {
  border-top: 1px solid #e5ebf2;
  padding: 15px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #738298;
  font-size: 11px;
}
.cr-pagination .btn {
  padding: 8px 12px;
  min-height: 40px;
  font-size: 13px;
}
.cr-preview-info {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #6d7f92;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.cr-preview {
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  background: #f7f9fc;
  overflow: hidden;
  margin-bottom: 20px;
}
.cr-preview > pre {
  padding: 20px;
  margin: 0;
  max-height: 65vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
  color: #263d57;
}
.cr-preview > iframe {
  width: 100%;
  height: 65vh;
  border: 0;
  display: block;
  background: white;
}
.cr-preview > img {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  margin: auto;
}
.cr-preview .cr-note {
  margin: 0;
}
.cr-upload-zone {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 20px;
  border: 1px dashed #b6cce4;
  border-radius: 10px;
  background: #f7faff;
  text-align: center;
  cursor: pointer;
}
.cr-upload-zone > svg {
  width: 32px;
  height: 32px;
  color: #6f95be;
  transform: rotate(180deg);
}
.cr-upload-zone > strong {
  font-size: 14px;
  color: #3c638b;
}
.cr-form .cr-upload-zone input[type='file'] {
  padding: 7px 0;
  border: 0;
  max-width: 100%;
  min-width: 0;
  background: transparent;
}
.cr-upload-queue {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.cr-upload-queue li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 150px) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  padding: 12px;
}
.cr-upload-queue strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cr-upload-queue small {
  display: block;
  font-size: 10px;
  color: #738298;
  margin-top: 5px;
}
.cr-upload-queue .field > span {
  font-size: 10px;
}
.cr-upload-queue .field input {
  font-size: 12px;
  min-height: 32px;
}
.cr-upload-queue .btn {
  font-size: 11px;
  padding: 6px;
}
@media (max-width: 1100px) {
  .cr-document-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
  }
  .cr-document-toolbar .cr-role {
    flex: 1 1 155px;
  }
}
@media (max-width: 760px) {
  .cr-document-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .cr-document-tree {
    display: block;
    overflow: auto;
    max-height: 320px;
  }
  .cr-document-tree .cr-folder-heading h3 {
    display: block;
  }
  .cr-document-tree .cr-folder-row button {
    white-space: normal;
  }
  .cr-document-tree .cr-folder-name {
    width: 100%;
  }
  .cr-document-tree .cr-all-folders {
    width: 100%;
  }
  .cr-document-tree .cr-folder-actions {
    display: flex;
  }
  .cr-document-toolbar .cr-toolbar .search-field {
    flex-basis: 100%;
  }
  .cr-upload-queue li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .cr-upload-queue .field {
    grid-row: 2;
    grid-column: 1 / -1;
  }
}

.cr-document-layout .cr-file-status {
  font-size: 12px;
}
.cr-document-layout .cr-pagination,
.cr-document-layout .cr-selection {
  font-size: 13px;
}
