:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #1d2129;
  --muted: #4e5969;
  --line: #e5e6eb;
  --primary: #165dff;
  --primary-dark: #0e42d2;
  --danger: #f53f3f;
  --danger-bg: #fff2f0;
  --soft: #f7f8fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-copy {
  min-width: 0;
}

.brand strong,
.brand span {
  display: block;
}

.brand span:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: min(1440px, calc(100% - 32px));
  margin: 0;
  padding: 16px 0 40px;
}

.sidebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.tab-button,
.secondary-button,
.primary-button,
.danger-button {
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.tab-button {
  padding: 0 14px;
  flex: 0 0 auto;
  text-align: center;
}

.tab-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.secondary-button,
.primary-button,
.danger-button {
  padding: 0 14px;
}

.primary-button {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.danger-button {
  border-color: #f2b8b5;
  background: var(--danger-bg);
  color: var(--danger);
}

.workspace {
  min-width: 0;
}

.workspace-overview {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.workspace-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
}

.workspace-title-copy {
  min-width: 0;
}

.workspace-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.workspace-title-copy h1 {
  margin: 0;
  font-size: 22px;
}

.workspace-title-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.workspace-title-actions {
  margin-left: auto;
}

.workspace-title-actions:empty {
  display: none;
}

body.report-stats-view .workspace-titlebar {
  align-items: center;
}

body.report-stats-view .workspace-title-copy {
  flex: 1 1 auto;
}

body.report-stats-view .workspace-title-actions {
  flex: 0 0 auto;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 6px;
  margin-bottom: 4px;
}

.subtab-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.certificate-library-tabs {
  grid-column: 1 / -1;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.subtab-button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--text);
  font-weight: 700;
}

.subtab-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.certificate-library-tab {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "label count"
    "hint hint";
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  min-width: 142px;
  min-height: 46px;
  padding: 6px 10px;
  text-align: left;
}

.certificate-library-tab span {
  grid-area: label;
  font-size: 13px;
  line-height: 1.2;
}

.certificate-library-tab strong {
  grid-area: count;
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--primary);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.certificate-library-tab small {
  grid-area: hint;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.certificate-library-tab.active strong {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.certificate-library-tab.active small {
  color: rgba(255, 255, 255, 0.82);
}

.entry-form.idle-form .form-section-card {
  padding: 18px 18px 16px;
}

.entry-form.idle-form .field {
  gap: 7px;
}

.entry-form.idle-form .field input,
.entry-form.idle-form .field select {
  min-height: 36px;
}

.summary-card {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-card strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.15;
}

.data-management-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.data-management-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.data-management-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.data-management-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.data-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.data-management-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.data-management-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.data-management-head strong,
.data-management-head small {
  display: block;
}

.data-management-head small {
  margin-top: 4px;
  color: var(--muted);
}

.data-management-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-management-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-management-modules label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.data-management-modules input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.data-management-modules span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
}

.reimbursement-filter-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.report-stats-filter-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.report-stats-filter-panel .filter-row {
  justify-content: flex-end;
  gap: 10px;
}

.report-stats-filter-panel .filter-row label {
  font-size: 12px;
}

.report-stats-filter-panel .filter-row input {
  width: 128px;
  min-height: 32px;
}

.report-stats-filter-panel .filter-row input[type="month"] {
  width: 138px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.filter-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-row input,
.filter-row select {
  width: 150px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  background: #ffffff;
}

.filter-row select {
  width: 96px;
}

.reimbursement-total {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.reimbursement-total strong {
  color: var(--primary);
  font-size: 18px;
}

.agent-commission-report {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.report-stats-tabs {
  grid-column: 1 / -1;
}

.report-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
}

.report-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.report-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.agent-commission-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agent-commission-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.agent-commission-table th,
.agent-commission-table td {
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.agent-commission-table th {
  background: #e7edf6;
  color: var(--text);
  font-size: 13px;
}

.agent-commission-table tfoot td {
  background: var(--soft);
  color: var(--text);
  font-weight: 800;
}

.agent-commission-table .empty-cell {
  color: var(--muted);
  text-align: center;
}

.modal-panel.agent-report-detail-panel {
  width: min(var(--agent-report-detail-width, 1108px), calc(100vw - 24px));
  max-width: none;
}

.agent-report-detail-panel .form-header {
  padding-right: 86px;
}

.agent-report-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.agent-report-detail-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agent-report-detail-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  table-layout: fixed;
}

.agent-report-detail-table th,
.agent-report-detail-table td {
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.agent-report-detail-table th {
  background: #e7edf6;
  color: var(--text);
  font-size: 13px;
}

.agent-report-detail-table tfoot td {
  background: var(--soft);
  color: var(--text);
  font-weight: 800;
}

.agent-report-detail-table .empty-cell {
  color: var(--muted);
  text-align: center;
}

.agent-report-detail-commission-total {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 16px;
  padding: 14px 12px 0;
  color: var(--text);
  font-weight: 700;
}

.agent-report-detail-commission-total strong {
  min-width: 110px;
  color: var(--primary);
  font-size: 20px;
  text-align: right;
}

.panel {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: start center;
  padding: 48px 20px;
  background: rgba(29, 41, 57, 0.36);
  overflow: auto;
}

.modal-panel {
  position: relative;
  width: min(1040px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(29, 41, 57, 0.18);
}

.view-panel {
  width: min(1040px, 100%);
}

.column-filter-panel {
  width: min(720px, 100%);
}

.list-filter-panel {
  width: min(820px, 100%);
}

.import-select-panel {
  width: min(640px, calc(100vw - 32px));
}

.import-select-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.import-select-toolbar .import-select-search {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.import-select-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.user-permission-panel {
  width: min(720px, calc(100vw - 32px));
}

.import-select-search {
  width: 100%;
  max-width: none;
  margin-bottom: 12px;
}

.import-select-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.import-select-option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  white-space: normal;
  line-height: 1.5;
  cursor: pointer;
}

.import-select-option:hover {
  border-color: var(--primary);
  background: #f4f8ff;
}

.import-select-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.import-select-checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.import-empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.import-select-actions {
  position: static;
  margin-top: 12px;
}

.id-card-crop-panel {
  width: min(960px, calc(100vw - 32px));
}

.crop-workspace {
  display: grid;
  place-items: center;
  max-height: 68vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

#idCardCropCanvas {
  max-width: 100%;
  cursor: grab;
  touch-action: none;
}

#idCardCropCanvas:active {
  cursor: grabbing;
}

.talent-certificate-panel {
  width: min(780px, 100%);
}

.continuing-education-panel {
  width: min(720px, 100%);
}

.continuing-education-form {
  grid-template-columns: repeat(4, 150px);
}

.continuing-education-form .field input {
  width: 150px;
}

.continuing-education-form .field.wide {
  grid-column: span 2;
}

.continuing-education-form .field.wide input {
  width: 314px;
}

.continuing-education-form .form-actions {
  grid-column: 1 / -1;
}

.column-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  max-height: 420px;
  overflow: auto;
}

.column-option-all {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 38px;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  font-weight: 800;
}

.column-option-divider {
  display: none;
}

.list-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
  max-height: 56vh;
  overflow: auto;
  padding-right: 4px;
  align-items: end;
  justify-content: start;
}

.list-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.list-filter-field input,
.list-filter-field select {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: #ffffff;
  color: var(--text);
}

.list-filter-searchable-control {
  position: relative;
  display: grid;
  gap: 6px;
  width: min(320px, 100%);
}

.list-filter-dialog-control {
  display: grid;
  width: 100%;
  min-width: 0;
}

.list-filter-dialog-display {
  width: 100%;
  min-width: 0;
  max-width: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-filter-search-input {
  width: 100%;
  min-width: 176px;
  max-width: 320px;
}

.list-filter-search-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  display: none;
  gap: 4px;
  width: 100%;
  min-width: 176px;
  max-width: 320px;
  min-height: 44px;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.list-filter-searchable-control.is-open .list-filter-search-options {
  display: grid;
}

.list-filter-searchable-control[data-list-filter-searchable="registeredCompany"] {
  width: min(260px, calc(100vw - 120px));
}

.list-filter-dialog-control[data-list-filter-dialog="registeredCompany"] {
  width: 100%;
}

.list-filter-searchable-control[data-list-filter-searchable="registeredCompany"] .list-filter-search-input {
  min-width: 260px;
  max-width: 260px;
}

.list-filter-dialog-control[data-list-filter-dialog="registeredCompany"] .list-filter-dialog-display {
  min-width: 0;
  max-width: none;
}

@media (max-width: 900px) {
  .list-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .list-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.list-filter-searchable-control[data-list-filter-searchable="registeredCompany"] .list-filter-search-options {
  min-width: 260px;
  max-width: 260px;
  max-height: min(82vh, 3600px);
}

.list-filter-search-option {
  width: 100%;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 6px 10px;
  cursor: pointer;
  white-space: normal;
  word-break: break-all;
}

.list-filter-search-option:hover {
  border-color: #b8c7dc;
  background: #f7faff;
}

.list-filter-search-option.is-active {
  border-color: #2f6fed;
  background: #eef4ff;
  color: #165dff;
}

.list-filter-search-empty {
  padding: 10px;
  color: var(--secondary-text);
  font-size: 13px;
}

.column-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--text);
  font-size: 14px;
}

.column-option input {
  width: 16px;
  height: 16px;
}

.detail-grid {
  gap: 10px 14px;
}

.detail-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.detail-view-shell {
  display: grid;
  gap: 14px;
}

.detail-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-view-chip {
  display: inline-grid;
  gap: 4px;
  min-width: 110px;
  padding: 10px 12px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: var(--soft);
}

.detail-view-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-view-chip strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.detail-sections {
  display: grid;
  gap: 14px;
}

.detail-section-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-section-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-section-card-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.detail-section-fields {
  justify-content: start;
}

.detail-section-fields > .form-section-title {
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px dashed #dbe6f3;
}

.detail-grid.entry-form.enterprise-form .detail-item {
  width: 88px;
  min-height: 54px;
}

.detail-grid.entry-form.enterprise-form .detail-item.id-card-field,
.detail-grid.entry-form.enterprise-form .detail-item.account-field,
.detail-grid.entry-form.enterprise-form .detail-item.password-field,
.detail-grid.entry-form.enterprise-form .detail-item.date-fit {
  width: auto;
}

.detail-grid.entry-form.enterprise-form .detail-item.full,
.detail-grid.entry-form.enterprise-form .detail-item.wide {
  width: auto;
}

.detail-grid.entry-form.enterprise-form .detail-item[data-field-key="companyName"].wide {
  grid-column: 1 / span 6;
}

.detail-grid.entry-form.enterprise-form .detail-item[data-field-key="certificateSource"] {
  grid-column: 6 / span 1;
  width: auto;
}

.detail-grid.entry-form.enterprise-form .detail-item[data-field-key="mnemonic"] {
  grid-column: 7 / span 1;
  width: auto;
}

.detail-grid.entry-form.enterprise-form .detail-item[data-field-key="peerInfo"] {
  grid-column: span 2;
  width: auto;
}

.detail-grid.entry-form.enterprise-form .detail-item[data-field-key="partnerCompany"],
.detail-grid.entry-form.enterprise-form .detail-item[data-field-key="partnerContact"] {
  width: 380px;
}

.detail-grid.entry-form.enterprise-form .detail-item[data-field-key="partnerCompany"] strong,
.detail-grid.entry-form.enterprise-form .detail-item[data-field-key="partnerContact"] strong {
  white-space: nowrap;
  overflow-wrap: normal;
}

.enterprise-view-certificate-bcert {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 308px minmax(180px, max-content);
  align-items: start;
  gap: 18px 24px;
  width: fit-content;
}

.enterprise-view-section-heading {
  display: grid;
  grid-template-columns: 308px minmax(180px, max-content);
  gap: 18px 24px;
  align-items: center;
}

.enterprise-view-certificate-group {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: var(--soft);
}

.enterprise-view-inline-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 14px;
}

.enterprise-view-inline-fields .detail-item {
  width: 86px;
}

.enterprise-view-company-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.detail-grid.entry-form.enterprise-form .enterprise-view-company-row .enterprise-view-company-name {
  width: 360px;
  flex: 0 0 auto;
}

.detail-grid.entry-form.enterprise-form .enterprise-view-company-row .enterprise-view-credit-code {
  width: 360px;
  flex: 0 0 auto;
}

.detail-grid.entry-form.enterprise-form .enterprise-view-company-row .enterprise-view-agent {
  width: 90px;
  flex: 0 0 auto;
}

.enterprise-view-credit-code .copy-detail-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enterprise-view-credit-code strong {
  min-width: 0;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.enterprise-view-company-name strong {
  white-space: nowrap;
  word-break: keep-all;
}

.enterprise-view-bcert-value {
  width: 86px;
}

.enterprise-view-bcert-value strong {
  margin-top: 0;
}

.enterprise-view-subtitle {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.detail-grid.entry-form.enterprise-form [data-field-key="certificateExpirySection"],
.detail-grid.entry-form.enterprise-form [data-field-key="socialStatusSection"],
.detail-grid.entry-form.enterprise-form [data-field-key="otherSection"],
.detail-grid.entry-form.enterprise-form [data-field-key="contactSection"] {
  grid-column: 1 / -1;
}

.detail-grid.entry-form.enterprise-form .detail-item[data-field-key="registerExpiresAt"] {
  grid-column: 1 / span 2;
}

.detail-grid.entry-form.enterprise-form .detail-item[data-field-key="bCertExpiresAt"] {
  grid-column: 3 / span 2;
}

.talent-view-three-sections {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, max-content));
  gap: 18px 22px;
  align-items: start;
}

.talent-view-contact-row {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.talent-view-section-group {
  display: grid;
  gap: 10px;
  align-content: start;
}

.talent-view-section-group .form-section-title {
  grid-column: auto;
  margin-top: 0;
}

.talent-view-section-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-start;
}

.talent-view-section-fields .detail-item {
  width: 88px;
}

.talent-view-section-fields .detail-item[data-field-key="peerInfo"] {
  width: 114px;
}

.talent-view-status-sections .talent-view-section-fields {
  flex-wrap: nowrap;
  overflow: visible;
}

.talent-view-status-sections .talent-view-section-fields .detail-item {
  flex: 0 0 auto;
}

.talent-view-three-sections.talent-view-status-sections {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.talent-view-contact-row .talent-view-section-fields {
  flex-wrap: nowrap;
}

.talent-view-contact-row .detail-item[data-field-key="wechat"] {
  width: max-content;
  min-width: 160px;
}

.talent-view-contact-row .detail-item[data-field-key="wechat"] strong {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.detail-grid .talent-peer-account-panel {
  grid-column: 1 / span 4;
  display: grid;
  gap: 10px;
  padding: 0;
}

.detail-grid .talent-peer-account-panel .detail-item[data-field-key="peerInfo"] {
  width: min(520px, 100%);
}

.detail-view-chip .copy-button {
  margin-top: 8px;
}

.detail-grid.entry-form.order-form .detail-item {
  width: 102px;
  min-height: 54px;
}

.detail-grid.entry-form.order-form .detail-item.wide {
  width: auto;
}

.detail-grid.entry-form.order-form .detail-item.id-card-field,
.detail-grid.entry-form.order-form .detail-item.case-number-field {
  width: auto;
}

.detail-grid.entry-form.order-form [data-field-key="caseNumber"] {
  grid-column: span 4;
}

.order-view-identity-row,
.order-view-certificate-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px 14px;
}

.order-view-identity-row .detail-item,
.order-view-certificate-row .detail-item {
  flex: 0 0 auto;
  width: 132px;
  min-width: 132px;
}

.order-view-row-title {
  grid-column: 1 / -1;
  min-width: 44px;
  padding-top: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.order-view-identity-row .detail-item[data-field-key="idCard"] {
  width: 286px;
  min-width: 286px;
}

.order-view-identity-row .detail-item[data-field-key="registeredCompany"] {
  width: 308px;
  min-width: 308px;
}

.order-view-identity-row .detail-item[data-field-key="name"] {
  width: 116px;
  min-width: 116px;
}

.order-view-identity-row {
  align-items: stretch;
}

.detail-grid.entry-form.order-form .order-view-identity-row .detail-item[data-field-key="enterpriseOrderId"] {
  flex: 0 0 auto;
  width: max-content;
  min-width: 0;
  max-width: none;
  display: inline-block;
}

.detail-grid.entry-form.order-form .order-view-identity-row .detail-item[data-field-key="enterpriseOrderId"] strong {
  display: inline-block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal;
}

.order-view-certificate-row .detail-item[data-field-key="major"],
.order-view-certificate-row .detail-item[data-field-key="bCert"] {
  width: 116px;
  min-width: 116px;
}

.order-view-certificate-row .detail-item[data-field-key="caseNumber"] {
  width: 312px;
  min-width: 312px;
}

.order-view-certificate-row .detail-item[data-field-key="casePassword"] {
  width: 206px;
  min-width: 206px;
}

.order-view-certificate-row .detail-item[data-field-key="bCertCaseNumber"] {
  width: 312px;
  min-width: 312px;
}

.order-view-certificate-row .detail-item[data-field-key="bCertCasePassword"] {
  width: 206px;
  min-width: 206px;
}

.order-view-certificate-row .detail-item[data-field-key="finishedAt"] {
  width: 146px;
  min-width: 146px;
}

.order-view-certificate-row .detail-item[data-field-key="bCertFinishedAt"] {
  width: 162px;
  min-width: 162px;
}

.order-view-certificate-row .detail-item[data-field-key="bCertFinishedAt"] span,
.order-view-certificate-row .detail-item[data-field-key="bCertFinishedAt"] strong {
  white-space: nowrap;
  overflow-wrap: normal;
}

.copy-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  white-space: normal;
}

.copyable-value-with-icon,
.identity-copy-input-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.copyable-value-with-icon > span,
.copyable-value-with-icon > strong,
.copyable-value-with-icon > button:not(.copy-icon-button) {
  min-width: 0;
}

.copy-icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.copy-icon-button:hover:not(:disabled) {
  border-color: #adc6ff;
  background: #e8f3ff;
  color: var(--primary);
}

.copy-icon-glyph {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
}

.copy-icon-glyph::before,
.copy-icon-glyph::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  content: "";
}

.copy-icon-glyph::before {
  top: 1px;
  left: 4px;
}

.copy-icon-glyph::after {
  top: 4px;
  left: 1px;
  background: #ffffff;
}

.identity-copy-input-control input {
  min-width: 0;
}

.copy-detail-content strong {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.copy-detail-actions .secondary-button {
  min-width: 58px;
}

.copy-detail-content .copy-button {
  flex: 0 0 auto;
}

.detail-grid.entry-form.order-form .order-certificate-view-table-wrap,
.detail-grid.entry-form.socialSecurity-form .order-certificate-view-table-wrap {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

.detail-grid.entry-form.order-form .order-certificate-view-table,
.detail-grid.entry-form.socialSecurity-form .order-certificate-view-table {
  width: max-content !important;
  min-width: 0 !important;
  table-layout: auto !important;
}

.detail-grid.entry-form.order-form .order-certificate-view-table th,
.detail-grid.entry-form.order-form .order-certificate-view-table td,
.detail-grid.entry-form.socialSecurity-form .order-certificate-view-table th,
.detail-grid.entry-form.socialSecurity-form .order-certificate-view-table td {
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap;
}

.detail-grid.entry-form.order-form .order-certificate-view-table .copy-detail-content,
.detail-grid.entry-form.socialSecurity-form .order-certificate-view-table .copy-detail-content {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sensitive-detail-content {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sensitive-detail-content strong {
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

.id-card-copy-content {
  justify-content: flex-start;
}

.id-card-copy-content strong {
  flex: 0 1 auto;
}

.order-view-identity-row .copy-detail-content strong,
.order-view-certificate-row .copy-detail-content strong {
  font-size: 15px;
}

.order-view-certificate-row .detail-item[data-field-key="caseNumber"] .copy-detail-content strong,
.order-view-certificate-row .detail-item[data-field-key="bCertCaseNumber"] .copy-detail-content strong,
.order-view-identity-row .detail-item[data-field-key="idCard"] .copy-detail-content strong {
  font-family: "Cascadia Mono", "Consolas", "Courier New", monospace;
}

.order-view-certificate-row .detail-item[data-field-key="casePassword"] .copy-detail-content strong,
.order-view-certificate-row .detail-item[data-field-key="bCertCasePassword"] .copy-detail-content strong {
  letter-spacing: 1px;
}

.detail-grid.entry-form .copyable-id-card-field {
  width: 226px;
}

.detail-grid.entry-form.order-form .detail-item[data-field-key="finishedAt"],
.detail-grid.entry-form.order-form .detail-item[data-field-key="receiveExpiresAt"],
.detail-grid.entry-form.order-form .detail-item[data-field-key="issueExpiresAt"],
.detail-grid.entry-form.order-form .detail-item[data-field-key="incomeDate"],
.detail-grid.entry-form.order-form .detail-item[data-field-key="payoutDate"],
.detail-grid.entry-form.order-form .detail-item[data-field-key="receiveRemainingDays"],
.detail-grid.entry-form.order-form .detail-item[data-field-key="issueRemainingDays"] {
  width: 118px;
}

.detail-grid.entry-form.order-form .detail-item[data-field-key="finishedAt"] strong,
.detail-grid.entry-form.order-form .detail-item[data-field-key="receiveExpiresAt"] strong,
.detail-grid.entry-form.order-form .detail-item[data-field-key="issueExpiresAt"] strong,
.detail-grid.entry-form.order-form .detail-item[data-field-key="incomeDate"] strong,
.detail-grid.entry-form.order-form .detail-item[data-field-key="payoutDate"] strong,
.detail-grid.entry-form.order-form .detail-item[data-field-key="receiveRemainingDays"] strong,
.detail-grid.entry-form.order-form .detail-item[data-field-key="issueRemainingDays"] strong,
.detail-grid.entry-form.order-form .detail-item[data-field-key="finishedAt"] span,
.detail-grid.entry-form.order-form .detail-item[data-field-key="receiveExpiresAt"] span,
.detail-grid.entry-form.order-form .detail-item[data-field-key="issueExpiresAt"] span,
.detail-grid.entry-form.order-form .detail-item[data-field-key="incomeDate"] span,
.detail-grid.entry-form.order-form .detail-item[data-field-key="payoutDate"] span,
.detail-grid.entry-form.order-form .detail-item[data-field-key="receiveRemainingDays"] span,
.detail-grid.entry-form.order-form .detail-item[data-field-key="issueRemainingDays"] span {
  white-space: nowrap;
  overflow-wrap: normal;
}

.order-view-certificate-row[data-field-key="orderBCertView"] .detail-item[data-field-key="bCert"] span {
  display: none;
}

.order-view-receive-issue-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 16px 20px;
  align-items: stretch;
  width: 100%;
}

.order-view-receive-issue-side {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: var(--soft);
}

.order-view-receive-issue-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.order-view-peer-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-view-receive-issue-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
}

.order-view-receive-issue-fields .detail-item {
  width: 112px;
  background: #ffffff;
}

.order-view-receive-issue-fields .detail-item[data-field-key="receiveAgent"],
.order-view-receive-issue-fields .detail-item[data-field-key="issueAgent"] {
  width: 132px;
}

.order-view-receive-issue-fields .detail-item[data-field-key="receiveTotalPrice"],
.order-view-receive-issue-fields .detail-item[data-field-key="issueTotalPrice"] {
  width: 128px;
}

.detail-item .receive-price-cell {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
}

.detail-item .receive-price-cell span {
  display: inline;
  margin-bottom: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.detail-item .receive-price-cell .accounting-alert-mark {
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.idle-view-certificate-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
}

.idle-view-certificate-row .detail-item {
  width: 102px;
}

.idle-view-certificate-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
}

.idle-view-certificate-card + .idle-view-certificate-card {
  margin-left: 4px;
}

.idle-view-certificate-row .detail-item[data-field-key="registerExpiresAt"],
.idle-view-certificate-row .detail-item[data-field-key="bCertExpiresAt"] {
  width: 160px;
}

.idle-view-certificate-row .detail-item[data-field-key="registerExpiresAt"] strong,
.idle-view-certificate-row .detail-item[data-field-key="bCertExpiresAt"] strong {
  white-space: nowrap;
  overflow-wrap: normal;
}

.idle-view-certificate-row[data-field-key="idleBCertView"] .detail-item[data-field-key="bCert"],
.idle-view-certificate-row[data-field-key="idleBCertView"] .detail-item[data-field-key="bCertExpiresAt"] {
  width: 160px;
  min-height: 58px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.idle-view-section-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.idle-view-section-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
}

.idle-view-section-fields .detail-item {
  width: 108px;
}

.idle-view-section-fields .detail-item[data-field-key="priceQuotedAt"],
.idle-view-section-fields .detail-item[data-field-key="lastFollowDate"],
.idle-view-section-fields .detail-item[data-field-key="nextFollowDate"],
.idle-view-section-fields .detail-item.date-fit {
  width: 128px;
}

.idle-view-section-fields .detail-item[data-field-key="priceQuotedAt"] strong,
.idle-view-section-fields .detail-item[data-field-key="lastFollowDate"] strong,
.idle-view-section-fields .detail-item[data-field-key="nextFollowDate"] strong,
.idle-view-section-fields .detail-item.date-fit strong {
  white-space: nowrap;
  overflow-wrap: normal;
}

.idle-view-section-fields .detail-item.full,
.idle-view-section-fields .detail-item[data-field-key="followRecord"],
.idle-view-section-fields .detail-item[data-field-key="remark"] {
  width: min(100%, 560px);
}

.detail-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-item strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.file-view-item {
  width: 190px;
}

.file-view-item img {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.file-view-item .file-view-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 6px;
}

.completeness-card {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.completeness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 700;
}

.completeness-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

#listHeadingText {
  display: grid;
  gap: 6px;
}

.panel-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.topbar-entry {
  display: flex;
  align-items: center;
}

.toolbar button {
  flex: 0 0 auto;
  white-space: nowrap;
}


.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  line-height: 1.25;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 20px;
}

.entry-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 190px));
  gap: 12px 14px;
  align-items: start;
  justify-content: start;
}

.entry-form.enterprise-form {
  grid-template-columns: repeat(9, 88px);
  gap: 14px 16px;
}

.entry-form.enterprise-form .form-section-fields {
  grid-template-columns: repeat(9, 88px);
  gap: 14px 16px;
}

.entry-form.order-form {
  grid-template-columns: repeat(9, 88px);
  gap: 16px 18px;
}

.entry-form.order-form .form-section-fields {
  grid-template-columns: repeat(9, 88px);
  gap: 16px 18px;
}

.entry-form.order-form .field input,
.entry-form.order-form .field select {
  width: 102px;
}

.entry-form.order-form .field.wide {
  grid-column: span 4;
  max-width: none;
}

.entry-form.order-form .field.wide input {
  width: 330px;
}

.entry-form.company-profile-form {
  grid-template-columns: repeat(10, 88px);
  gap: 14px 16px;
}

.entry-form.company-profile-form .form-section-fields {
  grid-template-columns: repeat(10, 88px);
  gap: 14px 16px;
}

.entry-form.company-profile-form .field input,
.entry-form.company-profile-form .field select {
  width: 190px;
}

.entry-form.company-profile-form [data-field-key="companyName"] {
  grid-column: 1 / span 3;
  max-width: none;
}

.entry-form.company-profile-form [data-field-key="companyName"] input {
  width: 246px;
}

.entry-form.company-profile-form [data-field-key="creditCode"] {
  grid-column: 4 / span 3;
}

.entry-form.company-profile-form [data-field-key="creditCode"] input {
  width: 220px;
}

.entry-form.company-profile-form [data-field-key="agent"] {
  grid-column: 7 / span 2;
}

.entry-form.company-profile-form [data-field-key="agent"] select {
  width: 150px;
}

.entry-form.company-profile-form [data-field-key="abbr"] {
  grid-column: 9 / span 1;
}

.entry-form.company-profile-form [data-field-key="abbr"] input {
  width: 88px;
}

.entry-form.company-profile-form .company-account-table-wrap {
  grid-column: 1 / span 6;
}

.entry-form.company-profile-form [data-field-key="companyAccountSection"] {
  display: none !important;
}

.entry-form.company-profile-form .company-account-table-wrap {
  grid-row: 2 / span 2;
  overflow-x: visible;
}

.entry-form.company-profile-form .company-account-table {
  width: 520px;
  min-width: 0;
}

.entry-form.company-profile-form .company-account-table th:nth-child(1),
.entry-form.company-profile-form .company-account-table td:nth-child(1) {
  width: 90px;
}

.entry-form.company-profile-form .company-account-table th:nth-child(2),
.entry-form.company-profile-form .company-account-table td:nth-child(2),
.entry-form.company-profile-form .company-account-table th:nth-child(3),
.entry-form.company-profile-form .company-account-table td:nth-child(3) {
  width: 150px;
}

.entry-form.company-profile-form .company-account-table th:nth-child(4),
.entry-form.company-profile-form .company-account-table td:nth-child(4) {
  width: 41px;
  padding-left: 4px;
  padding-right: 4px;
}

.entry-form.company-profile-form .company-account-table select,
.entry-form.company-profile-form .company-account-table input {
  width: 100%;
}

.entry-form.company-profile-form [data-field-key="qualificationSection"] {
  display: none !important;
}

.entry-form.company-profile-form [data-field-key="qualificationExpiresAt"] {
  grid-column: 1 / span 2;
  grid-row: 4;
}

.entry-form.company-profile-form [data-field-key="safetyPermitExpiresAt"] {
  grid-column: 3 / span 2;
  grid-row: 4;
}

.entry-form.company-profile-form [data-field-key="qualificationCertificateFile"],
.entry-form.company-profile-form [data-field-key="safetyPermitCertificateFile"] {
  width: 100%;
  align-self: start;
}

.entry-form.company-profile-form [data-field-key="qualificationCertificateFile"] {
  grid-column: 7 / span 4;
  grid-row: 2;
}

.entry-form.company-profile-form [data-field-key="safetyPermitCertificateFile"] {
  grid-column: 7 / span 4;
  grid-row: 3;
  margin-left: 0;
}

.entry-form.company-profile-form [data-field-key="contact"] {
  grid-column: 1 / span 1;
  grid-row: 5;
}

.entry-form.company-profile-form [data-field-key="contact"] input {
  width: 110px;
}

.entry-form.company-profile-form [data-field-key="phone"] {
  grid-column: 2 / span 2;
  grid-row: 5;
}

.entry-form.company-profile-form [data-field-key="phone"] input {
  width: 176px;
}

.entry-form.company-profile-form [data-field-key="city"] {
  grid-column: 4 / span 1;
  grid-row: 5;
}

.entry-form.company-profile-form [data-field-key="city"] input {
  width: 110px;
}

.entry-form.company-profile-form [data-field-key="address"],
.entry-form.company-profile-form [data-field-key="peerInfo"],
.entry-form.company-profile-form [data-field-key="remark"] {
  grid-column: 1 / span 10;
  max-width: none;
}

.entry-form.company-profile-form [data-field-key="address"] {
  grid-row: 6;
}

.entry-form.company-profile-form [data-field-key="peerInfo"] {
  grid-row: 7;
}

.entry-form.company-profile-form [data-field-key="peerInfo"] .import-control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(30%, 360px);
  min-width: 300px;
}

.entry-form.company-profile-form [data-field-key="peerInfo"] input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.entry-form.company-profile-form [data-field-key="remark"] {
  grid-row: 8;
}

.entry-form.agentLibrary-form {
  grid-template-columns: repeat(5, 150px);
  gap: 14px 16px;
}

.entry-form.agentLibrary-form [data-field-key="code"] {
  grid-column: 1;
  grid-row: 1;
}

.entry-form.agentLibrary-form [data-field-key="name"] {
  grid-column: 2;
  grid-row: 1;
}

.entry-form.agentLibrary-form [data-field-key="phone"] {
  grid-column: 3;
  grid-row: 1;
}

.entry-form.agentLibrary-form [data-field-key="accountPassword"] {
  grid-column: 4;
  grid-row: 1;
}

.entry-form.agentLibrary-form [data-field-key="commissionSettingSection"],
.entry-form.agentLibrary-form [data-field-key="otherCommissionSection"] {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2px 0 4px;
  border-bottom: 1px dashed #d7e3f3;
}

.entry-form.agentLibrary-form [data-field-key="commissionSettingSection"] {
  grid-row: 2;
}

.entry-form.agentLibrary-form [data-field-key="commissionBase"] {
  grid-column: 1;
  grid-row: 3;
}

.entry-form.agentLibrary-form [data-field-key="receiveCommissionRate"] {
  grid-column: 2;
  grid-row: 3;
}

.entry-form.agentLibrary-form [data-field-key="issueCommissionRate"] {
  grid-column: 3;
  grid-row: 3;
}

.entry-form.agentLibrary-form [data-field-key="otherCommissionSection"] {
  grid-row: 4;
}

.entry-form.agentLibrary-form [data-field-key="otherCommissionBase"] {
  grid-column: 1;
  grid-row: 5;
}

.entry-form.agentLibrary-form [data-field-key="otherCommissionRate"] {
  grid-column: 2;
  grid-row: 5;
}

.entry-form.agentLibrary-form [data-field-key="remark"] {
  grid-column: 1 / span 5;
  grid-row: 6;
}

.entry-form.agentLibrary-form .field input,
.entry-form.agentLibrary-form .field select {
  width: 150px;
}

.entry-form.agentLibrary-form .password-control {
  width: 184px;
}

.entry-form.agentLibrary-form .password-control input {
  width: 116px;
  border-radius: 6px 0 0 6px;
}

.entry-form.agentLibrary-form .percentage-input-control {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: 75px;
}

.entry-form.agentLibrary-form .percentage-input-control input {
  width: 38px;
  min-width: 38px;
}

.entry-form.agentLibrary-form .percentage-input-control span {
  color: var(--text);
  font-weight: 700;
}

.entry-form.company-profile-view [data-field-key="companyAccountSection"],
.entry-form.company-profile-view .company-account-table-wrap {
  grid-column: 1 / span 6;
}

.entry-form.company-profile-view [data-field-key="companyAccountSection"] {
  display: none !important;
}

.entry-form.company-profile-view .company-account-table-wrap {
  grid-row: 2 / span 2;
  overflow-x: visible;
}

.entry-form.company-profile-view .company-account-table {
  width: 520px;
  min-width: 0;
}

.entry-form.company-profile-view .company-account-table th:nth-child(1),
.entry-form.company-profile-view .company-account-table td:nth-child(1) {
  width: 90px;
}

.entry-form.company-profile-view .company-account-table th:nth-child(2),
.entry-form.company-profile-view .company-account-table td:nth-child(2),
.entry-form.company-profile-view .company-account-table th:nth-child(3),
.entry-form.company-profile-view .company-account-table td:nth-child(3) {
  width: 150px;
}

.entry-form.company-profile-view .company-account-table th,
.entry-form.company-profile-view .company-account-table td {
  padding: 7px 8px;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="companyName"] {
  grid-column: 1 / span 2;
  width: 123px;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="creditCode"] {
  grid-column: 3 / span 3;
  width: max-content;
  min-width: 0;
  max-width: none;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="creditCode"] span,
.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="creditCode"] strong {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="agent"] {
  grid-column: 6 / span 2;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="abbr"] {
  grid-column: 8 / span 1;
}

.detail-grid.entry-form.company-profile-view [data-field-key="qualificationCertificateFile"],
.detail-grid.entry-form.company-profile-view [data-field-key="safetyPermitCertificateFile"] {
  width: 100%;
  align-self: start;
}

.detail-grid.entry-form.company-profile-view [data-field-key="qualificationCertificateFile"] {
  grid-column: 7 / span 4;
  grid-row: 2;
}

.detail-grid.entry-form.company-profile-view [data-field-key="safetyPermitCertificateFile"] {
  grid-column: 7 / span 4;
  grid-row: 3;
  margin-left: 0;
}

.detail-grid.entry-form.company-profile-view .file-view-item img {
  max-height: 280px;
}

.detail-grid.entry-form.company-profile-view [data-field-key="qualificationSection"] {
  display: none !important;
}

.detail-grid.entry-form.company-profile-view [data-field-key="qualificationExpiresAt"] {
  grid-column: 1 / span 2;
  grid-row: 4;
}

.detail-grid.entry-form.company-profile-view [data-field-key="safetyPermitExpiresAt"] {
  grid-column: 3 / span 2;
  grid-row: 4;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="contact"] {
  grid-column: 1 / span 1;
  grid-row: 5;
  width: 110px;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="phone"] {
  grid-column: 2 / span 2;
  grid-row: 5;
  width: 176px;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="city"] {
  grid-column: 4 / span 1;
  grid-row: 5;
  width: 110px;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="address"],
.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="peerInfo"],
.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="remark"] {
  grid-column: 1 / span 10;
  max-width: none;
  width: auto;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="address"] {
  grid-row: 6;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="peerInfo"] {
  grid-row: 7;
}

.detail-grid.entry-form.company-profile-view .detail-item[data-field-key="remark"] {
  grid-row: 8;
}

.entry-form.order-form [data-field-key="enterpriseOrderId"] {
  display: none;
}

.entry-form.order-form [data-field-key="name"] {
  grid-column: 5 / span 2;
  justify-self: start;
  margin-left: 12px;
}

.entry-form.order-form [data-field-key="idleCertificateImportId"] {
  grid-column: 6 / span 1;
  grid-row: 2;
  justify-self: start;
  align-self: end;
  width: auto;
  gap: 0;
  padding-top: 19px;
}

.entry-form.order-form [data-field-key="idCard"] {
  grid-column: 7 / span 3;
  justify-self: start;
  margin-left: 12px;
}

.entry-form.order-form [data-field-key="name"] input {
  width: 108px;
}

.entry-form.order-form [data-field-key="idCard"] input {
  width: 156px;
}

.entry-form.order-form [data-field-key="receiveInfoSection"] {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.order-certificate-picker {
  grid-column: 1 / span 8;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.order-certificate-picker-title {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.order-certificate-options {
  display: grid;
  gap: 10px;
}

.order-certificate-table-wrap {
  width: 100%;
}

.order-certificate-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.order-certificate-table th,
.order-certificate-table td {
  border: 1px solid var(--line);
  padding: 6px;
  text-align: left;
  vertical-align: middle;
}

.order-certificate-table th {
  background: #eef2f7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.order-certificate-table th:first-child,
.order-certificate-table td:first-child {
  width: 58px;
  text-align: center;
}

.order-certificate-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.order-certificate-table input[type="text"] {
  width: 100%;
  min-height: 30px;
}

.order-certificate-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.order-certificate-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.receive-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
}

.receive-section-title .inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.receive-section-title .inline-checkbox input {
  width: 16px;
  height: 16px;
}

.entry-form.order-form .receive-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.entry-form.order-form .order-peer-title-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.entry-form.order-form .order-peer-title-control > label {
  white-space: nowrap;
}

.entry-form.order-form .order-peer-title-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.entry-form.order-form .order-peer-title-input input {
  width: 180px;
  min-height: 30px;
  box-sizing: border-box;
}

.entry-form.order-form .order-peer-title-input .secondary-button {
  min-height: 30px;
  padding: 4px 10px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .entry-form.order-form .order-peer-title-control {
    width: 100%;
    margin-left: 0;
  }

  .entry-form.order-form .order-peer-title-input {
    flex: 1;
    min-width: 0;
  }

  .entry-form.order-form .order-peer-title-input input {
    flex: 1;
    min-width: 0;
  }
}

.case-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-section-title label,
.case-section-title span {
  font-size: 13px;
}

.case-section-title input {
  width: 150px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 6px 9px;
}

.order-inline-case-title {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding-bottom: 4px;
  flex-wrap: wrap;
}

.order-inline-case-title > span {
  flex: 0 0 auto;
  padding-bottom: 9px;
}

.order-case-inline-fields {
  display: grid;
  grid-template-columns: 380px 220px 270px;
  gap: 16px;
  align-items: center;
}

.order-case-inline-field {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.order-case-label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.order-case-inline-field input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 6px 9px;
}

.order-case-number-field input {
  width: 240px;
}

.order-case-password-field input {
  width: 120px;
}

.order-finished-at-field input {
  width: 150px;
}

@media (max-width: 1120px) {
  .order-case-inline-fields {
    grid-template-columns: 380px 220px;
  }
}

.entry-form.enterprise-form .field input,
.entry-form.enterprise-form .field select {
  width: 88px;
}

.entry-form.enterprise-form .company-field {
  grid-column: 1 / span 7;
  max-width: none;
}

.entry-form.enterprise-form .company-field input,
.entry-form.enterprise-form .company-field select {
  width: 300px;
}

.entry-form.enterprise-form .company-field .import-control {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

.entry-form.enterprise-form .company-field .import-control input[type="text"] {
  flex: 0 0 300px;
  width: 300px;
}

.entry-form.enterprise-form .company-field .import-control button {
  flex: 0 0 60px;
  width: 60px;
  min-height: 34px;
  padding: 0;
}

.entry-form.enterprise-form .enterprise-company-import-control #enterpriseCreditCodeDisplay {
  flex: 0 0 150px;
  width: 150px;
}

.entry-form.enterprise-form [data-field-key="enterpriseAgent"] {
  grid-column: 8 / span 2;
  align-self: end;
  margin-left: 8px;
}

.entry-form.enterprise-form [data-field-key="enterpriseAgent"] select {
  width: 96px;
}

.entry-form.enterprise-form .form-section-card-head {
  display: none;
}

.entry-form.enterprise-form .enterprise-certificate-bcert-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(360px, 430px);
  align-items: start;
  gap: 18px;
  width: 100%;
}

.entry-form.enterprise-form .enterprise-certificate-column {
  display: grid;
  gap: 0;
  width: fit-content;
}

.entry-form.enterprise-form .enterprise-bcert-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
}

.entry-form.enterprise-form .enterprise-bcert-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 12px 14px;
  padding: 14px 16px 16px;
}

.entry-form.enterprise-form [data-field-key="builderSection"],
.entry-form.enterprise-form [data-field-key="talentCertificateTable"] {
  grid-column: 1 / -1;
  justify-self: start;
}

.entry-form.enterprise-form [data-field-key="builderSection"] {
  margin-top: 2px;
  position: relative;
  width: fit-content;
  min-width: 420px;
  max-width: 520px;
}

.entry-form.enterprise-form .talent-certificate-table-wrap {
  width: fit-content;
  position: relative;
  min-width: 420px;
  max-width: 520px;
}

.entry-form.enterprise-form .talent-certificate-table {
  width: auto;
  min-width: 420px;
  max-width: 520px;
}

.entry-form.enterprise-form [data-field-key="builderSection"] .secondary-button {
  margin-left: auto;
  position: static;
  flex: 0 0 auto;
}

.entry-form.enterprise-form .talent-certificate-table th,
.entry-form.enterprise-form .talent-certificate-table td {
  padding: 7px 8px;
}

.entry-form.enterprise-form .talent-certificate-table th:nth-child(1),
.entry-form.enterprise-form .talent-certificate-table td:nth-child(1) {
  width: 84px;
}

.entry-form.enterprise-form .talent-certificate-table th:nth-child(2),
.entry-form.enterprise-form .talent-certificate-table td:nth-child(2) {
  width: 84px;
}

.entry-form.enterprise-form .talent-certificate-table th:nth-child(3),
.entry-form.enterprise-form .talent-certificate-table td:nth-child(3) {
  width: 84px;
}

.entry-form.enterprise-form .talent-certificate-table th:nth-child(4),
.entry-form.enterprise-form .talent-certificate-table td:nth-child(4) {
  width: 60px;
  text-align: center;
}

.entry-form.enterprise-form .talent-certificate-table select {
  width: 96px;
}

.entry-form.enterprise-form [data-field-key="bCertSection"] {
  grid-column: auto;
  grid-row: auto;
  margin-top: 2px;
  align-self: auto;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.entry-form.enterprise-form [data-field-key="bCertSection"] .action-section-title,
.entry-form.enterprise-form [data-field-key="bCertSection"] {
  width: 100%;
  min-width: 0;
}

.entry-form.enterprise-form [data-field-key="bCertSection"] .action-section-title {
  justify-content: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d7e4f7;
}

.entry-form.enterprise-form .talent-bcert-table-wrap {
  width: fit-content;
  min-width: 320px;
  max-width: 390px;
  overflow: hidden;
  padding: 0;
  margin-top: 2px;
}

.entry-form.enterprise-form .talent-bcert-table {
  width: auto;
  min-width: 320px;
  max-width: 390px;
}

.entry-form.enterprise-form .talent-bcert-table select {
  width: 100%;
  min-width: 0;
}

.entry-form.enterprise-form .talent-bcert-table input[type="date"] {
  width: 118px;
}

.entry-form.enterprise-form .talent-bcert-table th:nth-child(1),
.entry-form.enterprise-form .talent-bcert-table td:nth-child(1) {
  width: 82px;
}

.entry-form.enterprise-form .talent-bcert-table th:nth-child(2),
.entry-form.enterprise-form .talent-bcert-table td:nth-child(2) {
  width: 66px;
}

.entry-form.enterprise-form .talent-bcert-table th:nth-child(3),
.entry-form.enterprise-form .talent-bcert-table td:nth-child(3) {
  width: 128px;
}

.entry-form.enterprise-form .talent-bcert-table th:nth-child(4),
.entry-form.enterprise-form .talent-bcert-table td:nth-child(4) {
  width: 52px;
  text-align: center;
}

.entry-form.enterprise-form [data-field-key="bCert"] {
  grid-column: auto;
  grid-row: auto;
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
}

.entry-form.enterprise-form [data-field-key="secondBCert"] {
  grid-column: auto;
  grid-row: auto;
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
}

.entry-form.enterprise-form [data-field-key="socialSecurity"],
.entry-form.enterprise-form [data-field-key="insuranceType"],
.entry-form.enterprise-form [data-field-key="socialSecurityMonth"],
.entry-form.enterprise-form [data-field-key="city"],
.entry-form.enterprise-form [data-field-key="quantity"],
.entry-form.enterprise-form [data-field-key="registeredQuantity"],
.entry-form.enterprise-form [data-field-key="source"],
.entry-form.enterprise-form [data-field-key="auditStatus"] {
  grid-column: span 1;
}

.entry-form.enterprise-form [data-field-key="socialSecurity"] select,
.entry-form.enterprise-form [data-field-key="insuranceType"] select,
.entry-form.enterprise-form [data-field-key="socialSecurityMonth"] select,
.entry-form.enterprise-form [data-field-key="source"] select,
.entry-form.enterprise-form [data-field-key="auditStatus"] select,
.entry-form.enterprise-form [data-field-key="city"] input,
.entry-form.enterprise-form [data-field-key="quantity"] input,
.entry-form.enterprise-form [data-field-key="registeredQuantity"] input {
  width: 86px;
}

.entry-form.enterprise-form [data-field-key="abbr"] {
  grid-column: span 2;
}

.entry-form.enterprise-form [data-field-key="abbr"] input {
  width: 190px;
}

.entry-form.enterprise-form [data-field-key="qualificationCertificateFile"],
.entry-form.enterprise-form [data-field-key="safetyPermitCertificateFile"] {
  grid-column: 8 / span 2;
  width: auto;
}

.entry-form.enterprise-form [data-field-key="qualificationCertificateFile"] {
  grid-row: span 3;
}

.entry-form.enterprise-form [data-field-key="safetyPermitCertificateFile"] {
  grid-row: span 3;
}

.file-upload-field .file-upload-control {
  display: grid;
  gap: 8px;
}

.file-upload-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-upload-field input[type="file"] {
  width: 190px;
}

.entry-form.company-profile-form .file-upload-field input[type="file"] {
  width: 260px;
}

.file-upload-field [data-file-name] {
  color: var(--muted);
  font-size: 13px;
}

.file-thumbnail {
  width: 190px;
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--soft);
  overflow: hidden;
}

.entry-form.company-profile-form .file-thumbnail {
  width: 260px;
  min-height: 160px;
}

.file-thumbnail img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.file-thumbnail span {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.entry-form.talent-form .id-card-document-file {
  width: 250px;
}

.entry-form.talent-form .id-card-document-file .file-upload-control {
  gap: 6px;
}

.entry-form.talent-form .id-card-document-file input[type="file"] {
  width: 170px;
}

/* Keep all talent document upload controls on one desktop row. */
.entry-form.talent-form .form-section-card[data-section-key="documentSection"] .form-section-fields {
  grid-template-columns: repeat(5, minmax(120px, 190px));
  justify-content: start;
  justify-items: start;
  gap: 12.6px clamp(12px, 1.5vw, 28px);
}

.entry-form.talent-form .form-section-card[data-section-key="documentSection"] .form-section-title {
  grid-column: 1 / -1;
}

.entry-form.talent-form .form-section-card[data-section-key="documentSection"] .id-card-document-file {
  width: 100%;
  min-width: 0;
}

.entry-form.talent-form .form-section-card[data-section-key="documentSection"] .file-upload-control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.entry-form.talent-form .form-section-card[data-section-key="documentSection"] .file-upload-actions {
  position: relative;
  display: block;
  width: 100%;
}

.entry-form.talent-form .form-section-card[data-section-key="documentSection"] .id-card-document-file input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.entry-form.talent-form .form-section-card[data-section-key="documentSection"] .file-upload-trigger {
  width: 50%;
  min-width: 96px;
  max-width: 110px;
}

.entry-form.talent-form .form-section-card[data-section-key="documentSection"] .id-card-document-file [data-file-name] {
  display: none;
}

@media (max-width: 720px) {
  .entry-form.talent-form .form-section-card[data-section-key="documentSection"] .form-section-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-form.talent-form .form-section-card[data-section-key="documentSection"] .id-card-document-file {
    width: 100%;
    min-width: 0;
  }
}

.detail-section-card.talent-document-view-section {
  gap: 10px;
  padding: 12px 16px;
}

.detail-section-card.talent-document-view-section .detail-section-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 180px));
  gap: 10px clamp(12px, 1.7vw, 32px);
  align-items: center;
  min-height: 44px;
}

.detail-section-card.talent-document-view-section .talent-id-card-document-view {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 36px;
}

.detail-section-card.talent-document-view-section .talent-id-card-document-view span {
  margin: 0;
  white-space: nowrap;
}

.detail-section-card.talent-document-view-section .file-view-link {
  min-width: 66px;
  margin: 0;
}

.detail-section-card.talent-document-view-section .talent-document-direct-view {
  appearance: none;
  justify-items: start;
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.detail-section-card.talent-document-view-section .talent-document-direct-view:hover,
.detail-section-card.talent-document-view-section .talent-document-direct-view:focus-visible {
  border-color: var(--primary);
  background: #f4f8ff;
  outline: none;
}

.talent-view-content .detail-section-card-head h3,
.talent-view-content .form-section-title,
.talent-view-content .completeness-head span {
  color: var(--primary);
}

.entry-form.talent-form .form-section-card:not([data-section-key="basicInfo"]) {
  gap: 12.6px;
}

.entry-form.talent-form .form-section-card:not([data-section-key="basicInfo"]) .form-section-fields {
  row-gap: 12.6px;
}

@media (max-width: 720px) {
  .detail-section-card.talent-document-view-section .detail-section-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.image-preview-modal {
  z-index: 80;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.74);
}

.image-preview-panel {
  display: grid;
  gap: 14px;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
}

.image-preview-panel .panel-heading {
  align-items: center;
  margin-bottom: 0;
}

.image-preview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.image-preview-zoom-button {
  min-width: 40px;
  padding-inline: 0;
  font-size: 18px;
  line-height: 1;
}

.image-preview-scale {
  min-width: 56px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.image-preview-stage {
  min-height: 220px;
  height: calc(100vh - 170px);
  max-height: calc(100vh - 170px);
  overflow: auto;
  background: #111827;
  cursor: grab;
  user-select: none;
}

.image-preview-stage.is-dragging {
  cursor: grabbing;
}

.image-preview-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  min-height: 100%;
  padding: 0;
}

.image-preview-stage img {
  display: block;
  max-width: none;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
}

@media (max-width: 720px) {
  .image-preview-panel .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-preview-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
  }
}

.vertical-checkbox-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.vertical-checkbox-field .checkbox-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-section-title {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.action-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.action-section-title .secondary-button {
  min-height: 30px;
  min-width: 72px;
}

.talent-certificate-table-wrap {
  grid-column: 1 / -1;
  overflow-x: auto;
  margin-top: 2px;
}

.entry-form .talent-certificate-table-wrap,
.talent-certificate-view,
.order-certificate-table-wrap,
.order-certificate-picker .order-certificate-table-wrap {
  padding-left: 10px;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
}

.entry-form .talent-bcert-table-wrap,
.talent-certificate-view.talent-bcert-view {
  border-left: 4px solid var(--primary);
}

.talent-certificate-table {
  width: 760px;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.talent-certificate-table th,
.talent-certificate-table td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.talent-certificate-table select {
  width: 150px;
  min-height: 34px;
}

.talent-builder-certificate-view .talent-certificate-table {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  background: #ffffff;
}

.talent-certificate-view .talent-bcert-table {
  width: 122px;
  min-width: 122px;
  max-width: 122px;
}

.talent-certificate-view td {
  color: var(--text);
  font-weight: 600;
}

.talent-certificate-view .talent-certificate-table th,
.talent-certificate-view .talent-certificate-table td {
  padding: 8px 6px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.talent-certificate-bcert-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.talent-view-paired-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin-top: 4px;
  justify-self: start;
}

.talent-view-title-row {
  display: grid;
  grid-template-columns: 224px 122px;
  align-items: center;
  column-gap: 32px;
  width: max-content;
}

.talent-view-content-row {
  display: grid;
  grid-template-columns: 224px 122px;
  align-items: flex-start;
  column-gap: 32px;
  width: max-content;
}

.talent-view-content-row .talent-certificate-table-wrap {
  grid-column: auto;
  overflow-x: visible;
  align-self: start;
}

.talent-section-title,
.talent-inline-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.talent-bcert-view-title {
  text-align: left;
}

.talent-view-content-row .talent-bcert-view {
  border: 0;
  background: transparent;
}

.talent-certificate-bcert-row .talent-certificate-table-wrap {
  grid-column: auto;
  flex: 0 0 auto;
  overflow-x: visible;
}

.talent-certificate-bcert-row .talent-bcert-view {
  flex: 0 0 150px;
}

.talent-certificate-bcert-row .talent-bcert-view .form-section-title {
  margin-bottom: 8px;
}

.talent-certificate-bcert-row .talent-bcert-view .detail-item {
  width: auto;
}

.talent-expiry-view {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 0;
}

.talent-expiry-view .detail-item {
  width: 150px;
}

.talent-expiry-view .detail-item strong {
  white-space: nowrap;
  overflow-wrap: normal;
}

.talent-bcert-row {
  margin-top: 6px;
}

.talent-bcert-row > .detail-item[data-field-key="bCert"] {
  width: 150px;
}

.talent-view-content-row > .detail-item[data-field-key="registerExpiresAt"],
.talent-view-content-row > .detail-item[data-field-key="bCert"],
.talent-view-content-row > .detail-item[data-field-key="bCertExpiresAt"] {
  grid-row: 1;
  flex: 0 0 auto;
}

.talent-view-content-row > .detail-item[data-field-key="registerExpiresAt"] {
  width: 150px;
}

.talent-view-content-row > .detail-item[data-field-key="bCert"] {
  width: 110px;
}

.talent-view-content-row > .detail-item[data-field-key="bCertExpiresAt"] {
  width: 150px;
}

.talent-certificate-table th:nth-child(1),
.talent-certificate-table td:nth-child(1) {
  width: 150px;
}

.talent-certificate-table th:nth-child(2),
.talent-certificate-table td:nth-child(2) {
  width: 190px;
}

.talent-certificate-table th:nth-child(3),
.talent-certificate-table td:nth-child(3) {
  width: 170px;
}

.talent-certificate-table th:nth-child(4),
.talent-certificate-table td:nth-child(4) {
  width: 190px;
}

.talent-builder-certificate-view .talent-certificate-table th:nth-child(1),
.talent-builder-certificate-view .talent-certificate-table td:nth-child(1) {
  width: 72px;
}

.talent-builder-certificate-view .talent-certificate-table th:nth-child(2),
.talent-builder-certificate-view .talent-certificate-table td:nth-child(2) {
  width: 44px;
}

.talent-builder-certificate-view .talent-certificate-table th:nth-child(3),
.talent-builder-certificate-view .talent-certificate-table td:nth-child(3) {
  width: 102px;
}

.talent-certificate-view .talent-bcert-table th:nth-child(1),
.talent-certificate-view .talent-bcert-table td:nth-child(1) {
  width: 37px;
}

.talent-certificate-view .talent-bcert-table th:nth-child(2),
.talent-certificate-view .talent-bcert-table td:nth-child(2) {
  width: 69px;
}

.entry-form.socialSecurity-form [data-field-key="certificateInfoSection"],
.entry-form.socialSecurity-form [data-field-key="talentCertificateTable"] {
  grid-column: 1 / -1;
}

.entry-form.socialSecurity-form [data-field-key="certificateInfoSection"] {
  width: 760px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.entry-form.socialSecurity-form [data-field-key="talentCertificateTable"] {
  width: 760px;
  max-width: 100%;
  overflow-x: auto;
}

.entry-form.socialSecurity-form .talent-certificate-table {
  width: 760px;
  min-width: 760px;
}

.entry-form.socialSecurity-form .talent-certificate-table th:nth-child(1),
.entry-form.socialSecurity-form .talent-certificate-table td:nth-child(1) {
  width: 118px;
}

.entry-form.socialSecurity-form .talent-certificate-table th:nth-child(2),
.entry-form.socialSecurity-form .talent-certificate-table td:nth-child(2) {
  width: 118px;
}

.entry-form.socialSecurity-form .talent-certificate-table th:nth-child(3),
.entry-form.socialSecurity-form .talent-certificate-table td:nth-child(3) {
  width: 138px;
}

.entry-form.socialSecurity-form .talent-certificate-table th:nth-child(4),
.entry-form.socialSecurity-form .talent-certificate-table td:nth-child(4) {
  width: 210px;
}

.entry-form.socialSecurity-form .talent-certificate-table th:nth-child(5),
.entry-form.socialSecurity-form .talent-certificate-table td:nth-child(5) {
  width: 72px;
}

.entry-form.socialSecurity-form .talent-certificate-table input[type="date"] {
  width: 188px;
  min-height: 34px;
}

.entry-form.socialSecurity-form .talent-certificate-table select {
  width: 100%;
}

.entry-form.idle-form .talent-certificate-table th:nth-child(1),
.entry-form.idle-form .talent-certificate-table td:nth-child(1) {
  width: 89px;
}

.entry-form.idle-form .talent-certificate-table th:nth-child(2),
.entry-form.idle-form .talent-certificate-table td:nth-child(2) {
  width: 74px;
}

.entry-form.idle-form .talent-certificate-table th:nth-child(3),
.entry-form.idle-form .talent-certificate-table td:nth-child(3) {
  width: 74px;
}

.entry-form.idle-form .talent-certificate-table th:nth-child(4),
.entry-form.idle-form .talent-certificate-table td:nth-child(4) {
  width: 82px;
}

.entry-form.idle-form .talent-certificate-table th:nth-child(5),
.entry-form.idle-form .talent-certificate-table td:nth-child(5) {
  width: 98px;
}

.entry-form.idle-form .talent-certificate-table th:nth-child(6),
.entry-form.idle-form .talent-certificate-table td:nth-child(6) {
  width: 60px;
  text-align: center;
}

.entry-form.idle-form .talent-certificate-table th:nth-child(7),
.entry-form.idle-form .talent-certificate-table td:nth-child(7) {
  width: 96px;
  text-align: center;
}

.idle-certificate-file-cell {
  white-space: nowrap;
}

.idle-certificate-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.idle-certificate-file-trigger {
  min-width: 66px;
  min-height: 30px;
  padding: 4px 10px;
}

.idle-view-certificate-card .idle-certificate-file-view {
  width: 84px;
}

.idle-view-certificate-card .idle-certificate-file-view .file-view-link {
  min-width: 58px;
  margin: 0;
}

.entry-form.idle-form .talent-certificate-table-wrap {
  margin-top: 2px;
  width: auto;
  position: relative;
  min-width: 0;
  max-width: none;
}

.entry-form.idle-form [data-field-key="talentImport"] {
  grid-column: 5 / span 5;
  width: auto;
  max-width: 560px;
  align-self: end;
}

.entry-form.idle-form [data-field-key="name"] {
  grid-column: 1 / span 1;
}

.entry-form.idle-form [data-field-key="idCard"] {
  grid-column: 2 / span 3;
}

.entry-form.idle-form [data-field-key="idCard"] input {
  width: 270px;
}

.entry-form.idle-form [data-field-key="talentImport"] button {
  min-width: 76px;
}

.entry-form.idle-form .idle-talent-import-inline {
  display: flex;
  flex-direction: row;
  align-items: end;
  gap: 12px;
}

.entry-form.idle-form .idle-import-display-field {
  display: grid;
  gap: 6px;
  min-width: 112px;
}

.entry-form.idle-form .idle-import-peer-field {
  min-width: 180px;
}

.entry-form.idle-form .idle-import-display-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.entry-form.idle-form .idle-import-display-field input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
  background: var(--soft);
  color: var(--text);
}

.entry-form.idle-form [data-field-key="externalExpiresAt"] {
  max-width: 170px;
}

.entry-form.idle-form [data-field-key="externalExpiresAt"] input {
  width: 150px;
}

.entry-form.idle-form [data-field-key="talentImport"] .import-control {
  gap: 10px;
}

.entry-form.idle-form [data-field-key="talentImport"] .import-control input[type="text"] {
  width: 190px;
}

.entry-form.idle-form [data-field-key="destination"] input {
  width: 132px;
}

.entry-form.idle-form [data-field-key="wechat"] input {
  width: 132px;
}

.entry-form.idle-form [data-field-key="owner"] select {
  width: 102px;
}

.entry-form.idle-form [data-field-key="price"] input {
  width: 102px;
}

.entry-form.idle-form [data-field-key="priceQuotedAt"] input {
  width: 150px;
}

.entry-form.idle-form .talent-certificate-table select:disabled {
  background: #f1f5f9;
  color: var(--secondary-text);
}

.entry-form.idle-form [data-field-key="builderSection"],
.entry-form.idle-form [data-field-key="talentCertificateTable"] {
  grid-column: 1 / -1;
  justify-self: start;
}

.entry-form.idle-form .talent-certificate-bcert-layout {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 18px 48px;
  width: 100%;
  max-width: calc(100% - 8px);
  overflow: visible;
}

.entry-form.idle-form .talent-certificate-column {
  display: grid;
  gap: 0;
  flex: 0 0 auto;
  width: 482px;
  max-width: 482px;
}

.entry-form.idle-form .talent-bcert-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: auto;
  flex: 0 0 auto;
  width: 340px;
  max-width: 340px;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  justify-self: start;
  padding: 0;
}

.entry-form.idle-form .talent-bcert-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 14px 22px;
  padding: 14px 18px 16px;
  align-items: start;
}

.entry-form.idle-form [data-field-key="builderSection"] {
  margin-top: 2px;
  position: relative;
  width: 482px;
  min-width: 482px;
  max-width: 482px;
}

.entry-form.idle-form .talent-certificate-table {
  width: 482px;
  min-width: 482px;
  max-width: 482px;
}

.entry-form.idle-form [data-field-key="builderSection"] .secondary-button {
  margin-left: auto;
  position: static;
  flex: 0 0 auto;
}

.entry-form.idle-form .talent-certificate-table th,
.entry-form.idle-form .talent-certificate-table td {
  padding: 7px 8px;
}

.entry-form.idle-form .talent-certificate-table select {
  width: 100%;
}

.entry-form.idle-form .talent-certificate-table input[type="date"] {
  width: 92px;
  min-width: 0;
}

.entry-form.idle-form .talent-bcert-table-wrap {
  width: 340px;
  min-width: 340px;
  max-width: 340px;
  overflow: visible;
  padding: 0;
  margin-top: 6px;
}

.entry-form.idle-form .talent-bcert-table {
  width: 340px;
  min-width: 340px;
  max-width: 340px;
}

.entry-form.idle-form .talent-bcert-table select {
  width: 100%;
}

.entry-form.idle-form .talent-bcert-table input[type="date"] {
  width: 100%;
  min-width: 0;
}

.entry-form.idle-form .talent-bcert-table th:nth-child(1),
.entry-form.idle-form .talent-bcert-table td:nth-child(1) {
  width: 83px;
}

.entry-form.idle-form .talent-bcert-table th:nth-child(2),
.entry-form.idle-form .talent-bcert-table td:nth-child(2) {
  width: 74px;
}

.entry-form.idle-form .talent-bcert-table th:nth-child(3),
.entry-form.idle-form .talent-bcert-table td:nth-child(3) {
  width: 128px;
}

.entry-form.idle-form .talent-bcert-table th:nth-child(4),
.entry-form.idle-form .talent-bcert-table td:nth-child(4) {
  width: 52px;
  text-align: center;
}

.entry-form.idle-form [data-field-key="bCertSection"] {
  grid-column: auto;
  grid-row: auto;
  margin-top: 2px;
  align-self: auto;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.entry-form.idle-form [data-field-key="certificateExpirySection"] {
  display: none;
}

.entry-form.idle-form [data-field-key="bCert"] {
  grid-column: auto;
  grid-row: auto;
  margin-top: 0;
  padding: 0;
  min-height: auto;
  display: grid;
  align-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.entry-form.idle-form [data-field-key="secondBCert"] {
  grid-column: auto;
  grid-row: auto;
  margin-top: 0;
  padding: 0;
  min-height: auto;
  display: grid;
  align-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.entry-form.idle-form [data-field-key="thirdBCert"] {
  display: none;
}

.entry-form.idle-form [data-field-key="registerExpiresAt"] {
  display: none;
}

.entry-form.idle-form [data-field-key="bCertExpiresAt"] {
  display: none;
}

.entry-form.idle-form .action-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.entry-form.idle-form [data-field-key="bCertSection"] .action-section-title {
  justify-content: flex-start;
  padding-bottom: 0;
  border-bottom: 0;
}

.entry-form.idle-form [data-field-key="bCertSection"] .title-inline-date {
  margin-left: 18px;
}

.entry-form.idle-form .idle-bcert-inline-fields {
  display: inline-grid;
  grid-template-columns: repeat(2, 92px);
  align-items: end;
  gap: 12px;
  flex: 0 0 auto;
}

.entry-form.idle-form .idle-bcert-inline-fields .field {
  gap: 6px;
}

.entry-form.idle-form .idle-bcert-inline-fields label {
  min-height: auto;
  line-height: 1.2;
}

.entry-form.idle-form .idle-bcert-inline-fields select {
  width: 92px;
}

.entry-form.idle-form .talent-bcert-fields > .field {
  gap: 8px;
}

.entry-form.idle-form .talent-bcert-fields > .field label {
  min-height: auto;
  line-height: 1.2;
}

.entry-form.idle-form .action-section-title > span:first-child {
  flex: 0 0 auto;
}

.entry-form.idle-form .title-inline-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.entry-form.idle-form .title-inline-date span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.entry-form.idle-form .title-inline-date input {
  width: 136px;
  min-height: 34px;
}

.entry-form.idle-form [data-field-key="socialStatusSection"] {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.entry-form.idle-form [data-field-key="contactSection"] {
  grid-column: 4 / span 2;
  grid-row: auto;
  margin-top: 2px;
}

.entry-form.idle-form [data-field-key="socialSecurityStatus"] {
  grid-column: 1 / span 1;
}

.entry-form.idle-form [data-field-key="socialSecurity"] {
  grid-column: 6 / span 1;
}

.entry-form.idle-form [data-field-key="insuranceType"] {
  grid-column: 2 / span 1;
}

.entry-form.idle-form [data-field-key="destination"] {
  grid-column: 3 / span 2;
}

.entry-form.idle-form [data-field-key="appearance"] {
  grid-column: 5 / span 1;
}

.entry-form.idle-form [data-field-key="process"] {
  grid-column: 7 / span 1;
}

.entry-form.idle-form [data-field-key="outsideProvinceTypeC"],
.entry-form.idle-form [data-field-key="exception"],
.entry-form.idle-form [data-field-key="attendance"],
.entry-form.idle-form [data-field-key="status"] {
  display: none;
}

.entry-form.idle-form [data-field-key="price"] {
  grid-column: 2 / span 1;
}

.entry-form.idle-form [data-field-key="priceQuotedAt"] {
  grid-column: 3 / span 2;
}

.entry-form.idle-form [data-field-key="owner"] {
  grid-column: 5 / span 1;
}

.entry-form.idle-form [data-field-key="lastFollowDate"],
.entry-form.idle-form [data-field-key="nextFollowDate"] {
  min-width: 150px;
}

.entry-form.idle-form [data-field-key="lastFollowDate"] input,
.entry-form.idle-form [data-field-key="nextFollowDate"] input {
  width: 144px;
}

.entry-form.idle-form [data-field-key="lastFollowDate"] {
  grid-column: 1 / span 1;
}

.entry-form.idle-form [data-field-key="nextFollowDate"] {
  grid-column: 2 / span 1;
  margin-left: 56px;
}

.entry-form.socialSecurity-form [data-field-key="idCard"] {
  grid-column: 3 / span 4;
}

.entry-form.socialSecurity-form [data-field-key="name"] {
  grid-column: 1 / span 2;
}

.entry-form.socialSecurity-form [data-field-key="idCard"] input {
  width: 210px;
}

.entry-form.socialSecurity-form [data-field-key="idCard"] .copy-input-control {
  gap: 12px;
  width: max-content;
}

.entry-form.socialSecurity-form [data-field-key="idCard"] .copy-button {
  flex: 0 0 auto;
}

.entry-form.socialSecurity-form [data-field-key="socialSecurityStopMonth"],
.entry-form.socialSecurity-form [data-field-key="startDate"],
.entry-form.socialSecurity-form [data-field-key="endDate"] {
  grid-column: span 2;
}

.entry-form.socialSecurity-form [data-field-key="socialSecurityStopMonth"] {
  grid-column: 1 / span 2;
  grid-row: auto;
  clear: both;
}

.entry-form.socialSecurity-form [data-field-key="startDate"] {
  grid-column: 1 / span 2;
  grid-row: auto;
}

.entry-form.socialSecurity-form [data-field-key="endDate"] {
  grid-column: 3 / span 2;
  grid-row: auto;
}

.entry-form.socialSecurity-form [data-field-key="socialSecurityStopMonth"] input,
.entry-form.socialSecurity-form [data-field-key="startDate"] input,
.entry-form.socialSecurity-form [data-field-key="endDate"] input {
  width: 150px;
}

.entry-form.socialSecurity-form [data-field-key="receiveTotalPrice"] {
  grid-column: 1 / span 2;
}

.entry-form.socialSecurity-form [data-field-key="incomeDate"] {
  grid-column: 3 / span 2;
}

.entry-form.socialSecurity-form [data-field-key="issueTotalPrice"] {
  grid-column: 5 / span 2;
}

.entry-form.socialSecurity-form [data-field-key="payoutDate"] {
  grid-column: 7 / span 2;
}

.entry-form.socialSecurity-form [data-field-key="receiveTotalPrice"] input,
.entry-form.socialSecurity-form [data-field-key="incomeDate"] input,
.entry-form.socialSecurity-form [data-field-key="issueTotalPrice"] input,
.entry-form.socialSecurity-form [data-field-key="payoutDate"] input {
  width: 150px;
}

.copy-input-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-input-control input {
  flex: 0 0 auto;
}

.entry-form.socialSecurity-form [data-field-key="caseNumber"],
.entry-form.socialSecurity-form [data-field-key="casePassword"],
.entry-form.socialSecurity-form [data-field-key="finishedAt"] {
  grid-column: span 2;
}

.entry-form.socialSecurity-form [data-field-key="caseNumber"] {
  grid-column: 1 / span 3;
}

.entry-form.socialSecurity-form [data-field-key="casePassword"] {
  grid-column: 4 / span 3;
}

.entry-form.socialSecurity-form [data-field-key="finishedAt"] {
  grid-column: 7 / span 2;
}

.entry-form.socialSecurity-form [data-field-key="caseNumber"] input,
.entry-form.socialSecurity-form [data-field-key="casePassword"] input {
  width: 150px;
}

.entry-form.socialSecurity-form [data-field-key="caseNumber"] input {
  width: 195px;
}

.entry-form.socialSecurity-form [data-field-key="finishedAt"] input {
  width: 150px;
}

.entry-form.socialSecurity-form .social-case-info-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 110px 280px 300px;
  gap: 20px;
  align-items: end;
  width: max-content;
  max-width: 100%;
}

.entry-form.socialSecurity-form .social-case-info-row .field {
  min-width: 0;
}

.entry-form.socialSecurity-form .social-case-info-row .field:nth-child(1) input {
  width: 110px;
}

.entry-form.socialSecurity-form .social-case-info-row .field:nth-child(2) input {
  width: 280px;
}

.entry-form.socialSecurity-form .social-case-info-row .inline-import-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entry-form.socialSecurity-form .social-case-info-row .inline-import-control input {
  width: 232px;
}

.entry-form.socialSecurity-form .social-case-info-row .inline-import-control .secondary-button {
  min-width: 58px;
  height: 34px;
}

@media (max-width: 760px) {
  .entry-form.socialSecurity-form .social-case-info-row {
    grid-template-columns: minmax(0, 300px);
    gap: 12px;
    width: 100%;
  }

  .entry-form.socialSecurity-form .social-case-info-row .field,
  .entry-form.socialSecurity-form .social-case-info-row .field:nth-child(1) input,
  .entry-form.socialSecurity-form .social-case-info-row .field:nth-child(2) input {
    width: 100%;
  }

  .entry-form.socialSecurity-form .social-case-info-row .inline-import-control input {
    width: min(232px, calc(100% - 68px));
  }
}

.entry-form.socialSecurity-form [data-field-key="remark"] {
  grid-column: 1 / -1;
}

.company-account-table-wrap {
  grid-column: 1 / -1;
  overflow-x: auto;
}

.company-account-table {
  width: 620px;
  min-width: 620px;
  border-collapse: collapse;
  table-layout: fixed;
}

.company-account-table th,
.company-account-table td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.company-account-table select,
.company-account-table input {
  width: 100%;
  min-height: 34px;
}

.company-account-input-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 6px;
}

.company-account-input-control input {
  min-width: 0;
}

.company-account-table th:nth-child(1),
.company-account-table td:nth-child(1) {
  width: 180px;
}

.company-account-table th:nth-child(2),
.company-account-table td:nth-child(2),
.company-account-table th:nth-child(3),
.company-account-table td:nth-child(3) {
  width: 220px;
}

.company-account-view td {
  white-space: normal;
}

.copy-cell-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.copy-button {
  min-height: 28px;
  padding: 4px 10px;
  white-space: nowrap;
}

.toast-message {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 2000;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 9px 14px;
  font-size: 14px;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.toast-message.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.login-panel {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #eaf2ff 0%, var(--soft) 50%, #eef6f2 100%);
}

.login-card {
  display: grid;
  gap: 14px;
  width: min(380px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.login-card h1,
.login-card p {
  margin: 0;
}

.login-card h1 {
  color: var(--text);
  font-size: 24px;
}

.login-card p,
.login-card span,
.login-card small {
  color: var(--muted);
}

.login-card label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.login-card input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
}

.login-card button {
  min-height: 40px;
}

.login-card small {
  min-height: 18px;
  color: var(--danger);
}

.user-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.topbar-actions .user-status {
  border-color: #bfdbfe;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.topbar-actions .logout-button {
  color: var(--muted);
}

body.is-logged-out .topbar,
body.is-logged-out .layout {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.entry-form.enterprise-form [data-field-key="bCert"] {
  grid-column-start: 1;
}

.entry-form.enterprise-form [data-field-key="bCertSection"] {
  grid-column: 1 / span 3;
}

.entry-form.enterprise-form [data-field-key="certificateExpirySection"] {
  grid-column: 5 / span 4;
  align-self: end;
  margin-top: 4px;
}

.entry-form.enterprise-form [data-field-key="registerExpiresAt"] {
  grid-column: 5 / span 2;
}

.entry-form.enterprise-form [data-field-key="bCertExpiresAt"] {
  grid-column: 7 / span 2;
}

.entry-form.enterprise-form [data-field-key="hasMultipleBCerts"] {
  grid-column-start: 2;
}

.entry-form.enterprise-form [data-field-key="leaseMonths"] {
  grid-column-start: 1;
}

.entry-form.enterprise-form .field.row-start {
  grid-column-start: 1;
}

.entry-form > .field.row-start {
  grid-column-start: 1;
}

.entry-form.enterprise-form .talent-name-field {
  grid-column: 1 / span 1;
}

.entry-form.enterprise-form .talent-name-field input {
  width: 88px;
}

.entry-form.enterprise-form:not(.idle-form) .id-card-field {
  grid-column: 2 / span 4;
}

.entry-form.enterprise-form:not(.idle-form) .id-card-field input {
  width: 200px;
}

.entry-form.enterprise-form .mnemonic-field {
  grid-column: 6 / span 3;
}

.entry-form.enterprise-form .mnemonic-field input {
  width: 190px;
}

.entry-form.talent-form .mnemonic-field input {
  width: 118px;
}

.entry-form.talent-form .form-section-card-head {
  display: none;
}

.entry-form.talent-form .form-section-card[data-section-key="basicInfo"] .form-section-fields {
  display: flex;
  align-items: start;
  flex-wrap: nowrap;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.entry-form.talent-form .form-section-card[data-section-key="basicInfo"] .field {
  flex: 0 0 auto;
  width: auto;
  margin-left: 0;
}

.entry-form.talent-form [data-field-key="name"] {
  grid-column: 1 / span 2;
}

.entry-form.talent-form .talent-name-field input {
  field-sizing: content;
  width: auto;
  min-width: 96px;
  max-width: 180px;
}

.entry-form.talent-form .id-card-field {
  grid-column: 3 / span 4;
}

.entry-form.talent-form .id-card-field input {
  width: 250px;
}

.entry-form.talent-form [data-field-key="certificateSource"] {
  grid-column: 7 / span 1;
  margin-left: 0;
}

.entry-form.talent-form [data-field-key="certificateSource"] select {
  width: 92px;
  height: 34px;
  min-height: 34px;
}

.entry-form.talent-form .mnemonic-field {
  grid-column: 8 / span 2;
  margin-left: 0;
}

.entry-form.talent-form .mnemonic-field input {
  width: 112px;
}

.entry-form.talent-form [data-field-key="accountInfoSection"],
.entry-form.talent-form .company-account-table-wrap {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 580px;
  justify-self: start;
}

.entry-form.talent-form .field input,
.entry-form.talent-form .field select {
  min-height: 34px;
}

.entry-form.talent-form [data-field-key="accountInfoSection"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 4px;
}

.entry-form.talent-form .company-account-table-wrap {
  min-width: 460px;
}

.entry-form.talent-form .company-account-table {
  width: 100%;
  min-width: 0;
}

.entry-form.talent-form .company-account-table th:nth-child(1),
.entry-form.talent-form .company-account-table td:nth-child(1) {
  width: 108px;
}

.entry-form.talent-form .company-account-table th:nth-child(2),
.entry-form.talent-form .company-account-table td:nth-child(2),
.entry-form.talent-form .company-account-table th:nth-child(3),
.entry-form.talent-form .company-account-table td:nth-child(3) {
  width: 126px;
}

.entry-form.talent-form .company-account-table th:nth-child(4),
.entry-form.talent-form .company-account-table td:nth-child(4) {
  width: 60px;
  text-align: center;
}

.entry-form.talent-form [data-field-key="builderSection"],
.entry-form.talent-form [data-field-key="talentCertificateTable"] {
  grid-column: 1 / -1;
}

.entry-form.talent-form .talent-certificate-bcert-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(360px, 430px);
  align-items: start;
  gap: 18px;
  width: 100%;
  max-width: calc(100% - 8px);
  overflow: hidden;
}

.entry-form.talent-form .talent-certificate-column {
  display: grid;
  gap: 0;
  width: fit-content;
}

.entry-form.talent-form .talent-bcert-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: auto;
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  justify-self: start;
}

.entry-form.talent-form .talent-bcert-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 14px 22px;
  padding: 14px 18px 16px;
  align-items: start;
}

.entry-form.talent-form [data-field-key="builderSection"] {
  margin-top: 2px;
  position: relative;
  width: fit-content;
  min-width: 420px;
  max-width: 520px;
}

.entry-form.talent-form [data-field-key="builderSection"],
.entry-form.talent-form [data-field-key="talentCertificateTable"] {
  justify-self: start;
}

.entry-form.talent-form [data-field-key="bCertSection"] .action-section-title,
.entry-form.talent-form [data-field-key="bCertSection"] {
  width: 100%;
  min-width: 0;
}

.entry-form.talent-form .talent-certificate-table-wrap {
  width: fit-content;
  position: relative;
  min-width: 548px;
  max-width: 680px;
}

.entry-form.talent-form .talent-certificate-table {
  width: auto;
  min-width: 548px;
  max-width: 680px;
}

.entry-form.talent-form [data-field-key="builderSection"] .secondary-button {
  margin-left: auto;
  position: static;
  flex: 0 0 auto;
}

.entry-form.talent-form .talent-certificate-table th,
.entry-form.talent-form .talent-certificate-table td {
  padding: 7px 8px;
}

.entry-form.talent-form .talent-certificate-table th:nth-child(1),
.entry-form.talent-form .talent-certificate-table td:nth-child(1) {
  width: 104px;
}

.entry-form.talent-form .talent-certificate-table th:nth-child(2),
.entry-form.talent-form .talent-certificate-table td:nth-child(2) {
  width: 112px;
}

.entry-form.talent-form .talent-certificate-table th:nth-child(3),
.entry-form.talent-form .talent-certificate-table td:nth-child(3) {
  width: 112px;
}

.entry-form.talent-form .talent-certificate-table th:nth-child(4),
.entry-form.talent-form .talent-certificate-table td:nth-child(4) {
  width: 120px;
}

.entry-form.talent-form .talent-certificate-table th:nth-child(5),
.entry-form.talent-form .talent-certificate-table td:nth-child(5) {
  width: 88px;
  text-align: center;
}

.entry-form.talent-form .talent-certificate-table th:nth-child(6),
.entry-form.talent-form .talent-certificate-table td:nth-child(6) {
  width: 60px;
  text-align: center;
}

.entry-form.talent-form .talent-certificate-table select {
  width: 100%;
  min-width: 0;
}

.entry-form.talent-form .talent-certificate-table input[type="date"] {
  width: 118px;
}

.entry-form.talent-form .talent-bcert-table-wrap {
  width: fit-content;
  min-width: 320px;
  max-width: 390px;
  overflow: hidden;
  padding: 0;
  margin-top: 2px;
}

.entry-form.talent-form .talent-bcert-table {
  width: auto;
  min-width: 320px;
  max-width: 390px;
}

.entry-form.talent-form .talent-bcert-table select {
  width: 100%;
  min-width: 0;
}

.entry-form.talent-form .talent-bcert-table input[type="date"] {
  width: 118px;
}

.entry-form.talent-form .talent-bcert-table th:nth-child(1),
.entry-form.talent-form .talent-bcert-table td:nth-child(1) {
  width: 82px;
}

.entry-form.talent-form .talent-bcert-table th:nth-child(2),
.entry-form.talent-form .talent-bcert-table td:nth-child(2) {
  width: 66px;
}

.entry-form.talent-form .talent-bcert-table th:nth-child(3),
.entry-form.talent-form .talent-bcert-table td:nth-child(3) {
  width: 128px;
}

.entry-form.talent-form .talent-bcert-table th:nth-child(4),
.entry-form.talent-form .talent-bcert-table td:nth-child(4) {
  width: 52px;
  text-align: center;
}

.entry-form.talent-form .company-account-table td:nth-child(4) .link-button,
.entry-form.talent-form .talent-certificate-table td:nth-child(4) .link-button {
  padding: 0;
  min-width: auto;
}

.entry-form.talent-form [data-field-key="bCertSection"] {
  grid-column: auto;
  grid-row: auto;
  margin-top: 2px;
  align-self: auto;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.entry-form.talent-form [data-field-key="certificateExpirySection"] {
  display: none;
}

.entry-form.talent-form [data-field-key="bCert"] {
  grid-column: auto;
  grid-row: auto;
  margin-top: 0;
  padding: 0;
  min-height: auto;
  display: grid;
  align-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.entry-form.talent-form [data-field-key="secondBCert"] {
  grid-column: auto;
  grid-row: auto;
  margin-top: 0;
  padding: 0;
  min-height: auto;
  display: grid;
  align-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.entry-form.talent-form [data-field-key="thirdBCert"] {
  display: none;
}

.entry-form.talent-form [data-field-key="registerExpiresAt"] {
  display: none;
}

.entry-form.talent-form [data-field-key="bCertExpiresAt"] {
  display: none;
}

.entry-form.talent-form .action-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.entry-form.talent-form [data-field-key="bCertSection"] .action-section-title {
  justify-content: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d7e4f7;
}

.entry-form.talent-form [data-field-key="bCertSection"] .title-inline-date {
  margin-left: 6px;
}

.entry-form.talent-form .talent-bcert-fields > .field {
  gap: 8px;
}

.entry-form.talent-form .talent-bcert-fields > .field label {
  min-height: auto;
  line-height: 1.2;
}

.entry-form.talent-form .action-section-title > span:first-child {
  flex: 0 0 auto;
}

.entry-form.talent-form .title-inline-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.entry-form.talent-form .title-inline-date span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.entry-form.talent-form .title-inline-date input {
  width: 136px;
  min-height: 34px;
}

.entry-form.talent-form [data-field-key="builderSection"] .secondary-button {
  margin-left: auto;
}

.entry-form.talent-form [data-field-key="socialStatusSection"],
.entry-form.talent-form [data-field-key="otherSection"],
.entry-form.talent-form [data-field-key="contactSection"] {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.entry-form.talent-form .talent-social-other-inline {
  grid-column: 4 / span 4;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, 88px);
  justify-content: start;
  justify-items: start;
  gap: 8px 12px;
  align-items: start;
  margin-top: 0;
}

.entry-form.talent-form .talent-social-other-inline > .field select,
.entry-form.talent-form .talent-social-other-inline > .field input {
  width: 88px;
}

.entry-form.talent-form .talent-social-other-inline > .field {
  grid-column: auto !important;
  margin: 0;
}

.entry-form.talent-form .form-section-card[data-section-key="socialStatusSection"] .form-section-fields {
  grid-template-columns: max-content 110px 120px repeat(4, 88px);
  gap: 8px 16px;
  align-items: start;
}

.entry-form.talent-form [data-field-key="socialSecurityStatus"] {
  grid-column: 1 / span 1;
  grid-row: 2;
}

.entry-form.talent-form [data-field-key="insuranceType"] {
  grid-column: 2 / span 1;
  grid-row: 2;
  width: 110px;
  min-width: 110px;
}

.entry-form.talent-form [data-field-key="insuranceType"] select {
  width: 110px;
  min-width: 110px;
}

.entry-form.talent-form [data-field-key="region"] {
  grid-column: 3 / span 1;
  grid-row: 2;
  width: 120px;
  min-width: 120px;
}

.entry-form.talent-form [data-field-key="outsideProvinceTypeC"] {
  grid-column: auto;
}

.entry-form.talent-form [data-field-key="exception"] {
  grid-column: auto;
}

.entry-form.talent-form [data-field-key="attendance"] {
  grid-column: auto;
}

.entry-form.talent-form [data-field-key="socialStatusSection"] {
  grid-column: 1 / span 3;
  grid-row: 1;
}

.entry-form.talent-form [data-field-key="otherSection"].talent-social-other-title {
  grid-column: 4 / span 4;
  grid-row: 1;
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px dashed #d7e3f3;
}

.entry-form.talent-form [data-field-key="contactSection"] {
  grid-column: 1 / span 2;
  margin-top: 0;
}

.entry-form.talent-form [data-field-key="wechat"] {
  grid-column: 1 / span 2;
}

.entry-form.talent-form [data-field-key="phone"] {
  grid-column: 3 / span 2;
}

.entry-form.talent-form [data-field-key="agent"] {
  grid-column: 5 / span 1;
}

.entry-form.talent-form [data-field-key="peerInfo"] {
  grid-column: 6 / span 2;
}

.entry-form.talent-form [data-field-key="wechat"] input {
  width: 180px;
}

.entry-form.talent-form [data-field-key="remark"] {
  grid-column: 1 / -1;
}

.entry-form.enterprise-form:not(.idle-form) [data-field-key="talentImport"] {
  grid-column: 6 / span 1;
  align-self: end;
  max-width: 80px;
}

.entry-form.enterprise-form:not(.idle-form) [data-field-key="talentImport"] button {
  width: 64px;
  min-height: 34px;
  padding: 0;
}

.id-card-import-control {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
}

.id-card-import-control input {
  width: 200px;
  height: 34px;
  border-radius: 6px;
}

.id-card-import-control button {
  width: 64px;
  height: 34px;
  min-height: 34px;
  border-radius: 6px;
  padding: 0;
  white-space: nowrap;
}

.id-card-import-control button:last-of-type {
  border-radius: 6px;
}

.entry-form.enterprise-form [data-field-key="phone"] {
  grid-column: span 2;
}

.entry-form.enterprise-form [data-field-key="phone"] input {
  width: 160px;
}

.entry-form.enterprise-form .peer-info-field {
  grid-column: span 2;
}

.entry-form.enterprise-form .peer-info-field input {
  width: 180px;
}

.entry-form.enterprise-form.talent-form [data-field-key="peerInfo"].peer-info-field {
  grid-column: 6 / span 3;
}

.entry-form.enterprise-form.talent-form [data-field-key="peerInfo"] .import-control {
  width: 312px;
}

.entry-form.enterprise-form.talent-form [data-field-key="peerInfo"] input {
  width: 220px;
}

.entry-form:not(.enterprise-form) .talent-name-field {
  max-width: 120px;
}

.entry-form:not(.enterprise-form) .id-card-field {
  max-width: 280px;
}

.entry-form:not(.enterprise-form) .id-card-field input {
  width: 200px;
}

.entry-form:not(.enterprise-form) [data-field-key="phone"] input {
  width: 160px;
}

.entry-form.order-form .talent-name-field input {
  width: 4em;
}

.entry-form.order-form .talent-name-field {
  max-width: none;
}

.entry-form.order-form .id-card-field {
  grid-column: span 3;
}

.entry-form.order-form .id-card-field input {
  width: 200px;
}

.entry-form.order-form [data-field-key="name"] input {
  width: 108px;
}

.entry-form.order-form [data-field-key="idCard"] input {
  width: 176px;
}

.entry-form.order-form [data-field-key="receiveExpiresAt"],
.entry-form.order-form [data-field-key="issueExpiresAt"],
.entry-form.order-form [data-field-key="originalOrderExpiresAt"],
.entry-form.order-form [data-field-key="finishedAt"],
.entry-form.order-form [data-field-key="payoutDate"],
.entry-form.order-form [data-field-key="incomeDate"] {
  grid-column: span 2;
}

.entry-form.order-form [data-field-key="receiveExpiresAt"] input,
.entry-form.order-form [data-field-key="issueExpiresAt"] input,
.entry-form.order-form [data-field-key="originalOrderExpiresAt"] input,
.entry-form.order-form [data-field-key="finishedAt"] input,
.entry-form.order-form [data-field-key="payoutDate"] input,
.entry-form.order-form [data-field-key="incomeDate"] input {
  width: 150px;
}

.entry-form.order-form [data-field-key="receiveRemainingDays"],
.entry-form.order-form [data-field-key="issueRemainingDays"] {
  grid-column: span 1;
}

.entry-form.order-form [data-field-key="receiveAgent"],
.entry-form.order-form [data-field-key="issueAgent"] {
  grid-column: 4 / span 1;
}

.entry-form.order-form [data-field-key="receiveRemainingDays"],
.entry-form.order-form [data-field-key="issueRemainingDays"] {
  grid-column: 5 / span 1;
}

.entry-form.order-form [data-field-key="incomeDate"],
.entry-form.order-form [data-field-key="payoutDate"] {
  grid-column: 7 / span 2;
}

.entry-form.order-form [data-field-key="receiveTotalPrice"],
.entry-form.order-form [data-field-key="issueTotalPrice"] {
  grid-column: 6 / span 1;
}

.entry-form.order-form [data-field-key="receiveRemainingDays"] label,
.entry-form.order-form [data-field-key="issueRemainingDays"] label {
  white-space: nowrap;
}

.entry-form.order-form [data-field-key="receiveAgent"],
.entry-form.order-form [data-field-key="issueAgent"] {
  margin-left: 0;
  margin-right: 0;
}

.entry-form.order-form [data-field-key="caseNumber"] {
  grid-column: span 3;
}

.entry-form.order-form [data-field-key="caseNumber"] input {
  width: 240px;
}

.entry-form.order-form [data-field-key="receiveLeaseTerm"] select,
.entry-form.order-form [data-field-key="issueLeaseTerm"] select {
  width: 112px;
}

.entry-form.order-form [data-field-key="socialSecurityStatus"],
.entry-form.order-form [data-field-key="socialSecurity"],
.entry-form.order-form [data-field-key="insuranceType"] {
  grid-column: span 2;
}

.entry-form.order-form [data-field-key="socialSecurityStatus"] label,
.entry-form.order-form [data-field-key="socialSecurity"] label,
.entry-form.order-form [data-field-key="insuranceType"] label {
  white-space: nowrap;
}

.entry-form.order-form [data-field-key="socialSecurityStatus"] select,
.entry-form.order-form [data-field-key="socialSecurity"] select,
.entry-form.order-form [data-field-key="insuranceType"] select {
  width: 118px;
}

.entry-form.order-form [data-field-key="incomeDate"],
.entry-form.order-form [data-field-key="payoutDate"],
.entry-form.order-form [data-field-key="processPrice"] {
  grid-column: span 1;
}

.entry-form.order-form [data-field-key="incomeDate"] input,
.entry-form.order-form [data-field-key="payoutDate"] input {
  width: 154px;
}

.entry-form.order-form [data-field-key="processPrice"] {
  margin-left: 0;
}

.entry-form.order-form [data-field-key="registeredCompany"] {
  grid-column: 1 / -1;
}

.entry-form.order-form .order-company-import-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entry-form.order-form .order-company-import-control input[type="text"] {
  flex: 0 0 190px;
  width: 190px;
}

.entry-form.order-form #registeredCompanyCreditCodeDisplay {
  flex: 0 0 190px;
  width: 190px;
}

.entry-form.order-form [data-field-key="idleCertificateImportId"] {
  grid-column: 6 / span 1;
  grid-row: 2;
  justify-self: start;
  align-self: end;
  width: auto;
  gap: 0;
  padding-top: 19px;
}

.entry-form.order-form [data-field-key="name"] {
  grid-column: 5 / span 2;
  justify-self: start;
  margin-left: 12px;
}

.entry-form.order-form [data-field-key="idCard"] {
  grid-column: 7 / span 3;
  justify-self: start;
  margin-left: 12px;
}

.entry-form.order-form [data-field-key="name"] input {
  width: 108px;
}

.entry-form.order-form [data-field-key="idCard"] input {
  width: 156px;
}

.entry-form.order-form [data-field-key="thirdBCert"] {
  display: none;
}

.entry-form.order-form [data-field-key="idleCertificateImportId"] {
  grid-column: 6 / span 1;
  grid-row: 2;
  justify-self: start;
  align-self: end;
  width: auto;
  gap: 0;
  padding-top: 19px;
}

.entry-form.order-form [data-field-key="name"] {
  grid-column: 1 / span 2;
  grid-row: 2;
  justify-self: start;
  margin-left: 0;
}

.entry-form.order-form [data-field-key="idCard"] {
  grid-column: 3 / span 3;
  grid-row: 2;
  justify-self: start;
  margin-left: 0;
}

.entry-form.order-form [data-field-key="idCard"] input {
  width: 264px;
}

.entry-form.order-form .order-certificate-picker {
  grid-column: 1 / -1;
  justify-self: start;
  width: auto;
  min-width: 0;
  max-width: none;
}

.entry-form.order-form .order-certificate-table-wrap {
  overflow: hidden;
  width: auto;
}

.entry-form.order-form .order-certificate-table th:first-child,
.entry-form.order-form .order-certificate-table td:first-child {
  width: 30px;
}

.entry-form.order-form .order-certificate-table th,
.entry-form.order-form .order-certificate-table td {
  padding: 3px;
  white-space: nowrap;
}

.entry-form.order-form .order-certificate-table {
  width: auto;
  table-layout: fixed;
}

.entry-form.order-form .order-certificate-table th:nth-child(2),
.entry-form.order-form .order-certificate-table td:nth-child(2) {
  width: 56px;
}

.entry-form.order-form .order-certificate-table th:nth-child(3),
.entry-form.order-form .order-certificate-table td:nth-child(3) {
  width: 48px;
}

.entry-form.order-form .order-certificate-table th:nth-child(4),
.entry-form.order-form .order-certificate-table td:nth-child(4) {
  width: 56px;
}

.entry-form.order-form .order-certificate-table input[type="text"] {
  min-height: 26px;
  padding: 3px 4px;
}

.entry-form.order-form .form-section-card-head {
  display: none;
}

.entry-form.enterprise-form .account-field,
.entry-form.enterprise-form .password-field {
  grid-column: span 2;
}

.entry-form.enterprise-form [data-field-key="platformType"] {
  grid-column: 5 / span 1;
}

.entry-form.enterprise-form .account-field {
  grid-column: 6 / span 2;
}

.entry-form.enterprise-form .password-field {
  grid-column: 8 / span 2;
}

.entry-form.enterprise-form .account-field input,
.entry-form.enterprise-form .password-field input {
  width: 160px;
}

.password-control {
  display: flex;
  width: 194px;
}

.entry-form.enterprise-form .password-control input {
  width: 126px;
  border-radius: 6px 0 0 6px;
}

.password-control .icon-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background: #ffffff;
  color: var(--muted);
}

.password-control .icon-button:last-child {
  border-radius: 0 6px 6px 0;
}

.entry-form.enterprise-form .date-fit {
  grid-column: span 2;
}

.entry-form.enterprise-form .field[data-field-key="registerExpiresAt"] {
  grid-column: 5 / span 2;
}

.entry-form.enterprise-form .field[data-field-key="bCertExpiresAt"] {
  grid-column: 7 / span 2;
}

.entry-form.enterprise-form .date-fit input {
  width: 150px;
}

.entry-form.enterprise-form [data-field-key="priceSection"] {
  margin-top: 8px;
}

.entry-form.enterprise-form .field.wide,
.entry-form.enterprise-form .field.full {
  grid-column: 1 / -1;
  max-width: none;
}

.field {
  display: grid;
  gap: 6px;
  width: 100%;
}

.field.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.dashboard-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
}

.dashboard-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.dashboard-card span,
.dashboard-card small {
  display: block;
  color: var(--muted);
}

.dashboard-card strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.one-click-query {
  display: block;
}

.query-workbench {
  display: grid;
  gap: 12px;
}

.query-control-panel {
  position: sticky;
  top: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe6f3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.query-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.query-input-row label,
.query-result-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.query-input-row input,
.query-result-form input,
.query-result-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 8px 10px;
}

.query-input-row input {
  width: 250px;
}

.query-work-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 12px;
  align-items: start;
}

.query-work-area-result-only {
  grid-template-columns: minmax(420px, 760px);
}

.query-platform-panel,
.query-result-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.query-result-panel {
  position: sticky;
  top: 86px;
}

.query-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.query-section-head span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.query-result-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.query-result-form input,
.query-result-form select {
  width: 100%;
  min-width: 0;
}

.query-result-wide,
.query-result-save {
  grid-column: 1 / -1;
}

.query-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 8px;
  min-width: 0;
}

.query-summary-grid .empty-state {
  grid-column: 1 / -1;
  min-height: 38px;
  padding: 8px 0;
  text-align: left;
}

.query-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.query-info-card,
.query-platform-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.query-info-card span,
.query-platform-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.query-info-card strong,
.query-platform-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}

.query-platform-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.query-platform-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.query-platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.query-platform-actions .secondary-button {
  min-height: 30px;
  padding: 6px 10px;
}

.query-platform-tip {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.query-section-title {
  margin: 0;
  font-size: 16px;
}

@media (max-width: 1320px) {
  .query-control-panel,
  .query-work-area {
    grid-template-columns: 1fr;
  }

  .query-result-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .query-summary-grid,
  .query-result-form {
    grid-template-columns: 1fr;
  }

  .query-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .query-section-head span {
    white-space: normal;
  }
}

.website-tool-card-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.website-tool-card-cell {
  padding: 12px;
  border-bottom: 0;
  white-space: normal;
}

.website-tool-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.website-tool-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  min-height: 142px;
  padding: 14px;
  border: 1px solid #c7d4e5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(29, 41, 57, 0.05);
}

.website-tool-card:nth-child(10n + 1) {
  background: #f8fbff;
}

.website-tool-card:nth-child(10n + 2) {
  background: #f7fff9;
}

.website-tool-card:nth-child(10n + 3) {
  background: #fffaf2;
}

.website-tool-card:nth-child(10n + 4) {
  background: #fbf8ff;
}

.website-tool-card:nth-child(10n + 5) {
  background: #f6fbfa;
}

.website-tool-card:nth-child(10n + 6) {
  background: #fff7f7;
}

.website-tool-card:nth-child(10n + 7) {
  background: #f8f9ff;
}

.website-tool-card:nth-child(10n + 8) {
  background: #fdfcf4;
}

.website-tool-card:nth-child(10n + 9) {
  background: #f7fbf5;
}

.website-tool-card:nth-child(10n) {
  background: #f9f7fb;
}

.website-tool-card.is-dragging {
  opacity: 0.55;
}

.website-tool-card.is-drag-over {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.14);
}

.website-tool-card-select {
  position: absolute;
  top: 10px;
  right: 10px;
}

.website-tool-card-content {
  min-width: 0;
  padding-right: 24px;
}

.website-tool-card-content h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.website-tool-title-button {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.website-tool-title-button:hover {
  color: var(--primary);
}

.website-tool-title-button:disabled {
  cursor: default;
  color: var(--text);
}

.website-tool-card-content p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.website-tool-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.website-tool-card-actions button {
  min-height: 32px;
}

.website-tool-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
}

.field.wide {
  grid-column: span 2;
  max-width: 394px;
}

.field.full {
  grid-column: 1 / -1;
  max-width: none;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.entry-form.enterprise-form .field label {
  display: flex;
  align-items: flex-end;
  min-height: 32px;
  line-height: 1.2;
}

.entry-form.enterprise-form .field label,
.entry-form.order-form .field label {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.entry-form.order-form .field {
  gap: 7px;
}

.entry-form.order-form .field input,
.entry-form.order-form .field select {
  min-height: 36px;
}

.entry-form.order-form .form-section-title {
  margin-top: 0;
}

.entry-form.order-form .form-section-fields > .form-section-title {
  padding-bottom: 6px;
}

.entry-form.enterprise-form .field input,
.entry-form.enterprise-form .field select {
  display: block;
}

.required-mark {
  margin-right: 3px;
  color: var(--danger);
  font-weight: 800;
}

.field-group {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 6px 9px;
}

.locked-control {
  pointer-events: none;
  background: var(--soft);
  color: var(--muted);
  cursor: not-allowed;
}

select.locked-control,
button.locked-control {
  pointer-events: none;
  background: #f1f5f9;
  color: var(--secondary-text);
  border-color: #cbd5e1;
}

.locked-field {
  opacity: 0.62;
}

.locked-field label {
  color: #94a3b8;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.import-control {
  display: flex;
  gap: 8px;
  align-items: center;
}

.import-control input[type="text"] {
  flex: 1 1 auto;
}

.import-control button {
  flex: 0 0 auto;
  min-height: 34px;
  white-space: nowrap;
}

.field.full textarea {
  width: min(100%, 820px);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  grid-column: 1 / -1;
  padding-top: 4px;
}

#formPanel .panel-heading {
  padding-right: 250px;
}

#formPanel .panel-heading > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

#formPanel .panel-heading .eyebrow {
  flex-basis: 100%;
}

.renew-title-import {
  min-height: 32px;
}

#formPanel #closeFormButton {
  display: none;
}

#formPanel .form-actions {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  grid-column: auto;
  padding-top: 0;
}

#formPanel.renewing-order [data-field-key="enterpriseOrderId"],
#formPanel.renewing-order [data-field-key="idleCertificateImportId"] {
  display: none;
}

#formPanel.renewing-order [data-field-key="name"] {
  grid-column: 1 / span 2;
}

#formPanel.renewing-order [data-field-key="idCard"] {
  grid-column: 3 / span 3;
}

.search-input {
  flex: 1 1 220px;
  max-width: 260px;
  min-width: 160px;
}

.table-wrap {
  max-height: calc(100vh - 238px);
  overflow-x: scroll;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.pagination-bar:empty {
  display: none;
}

.pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination-actions span {
  min-width: 64px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.pagination-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: auto;
}

.table-wrap > table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.table-wrap > table.is-column-resized {
  table-layout: fixed;
}

th,
td {
  height: 44px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  position: relative;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  max-width: 100%;
  min-height: 24px;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

.table-sort-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-wrap thead th {
  height: auto;
  min-height: 44px;
  position: sticky;
  top: 0;
  z-index: 6;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-head-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  min-width: 0;
  padding-right: 4px;
}

.table-head-tools {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  align-self: stretch;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin-left: auto;
}

.column-pin-button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #86909c;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.table-sort-icon-button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.column-pin-button:hover,
.column-pin-button.is-active,
.table-sort-icon-button:hover,
.table-sort-icon-button.is-active {
  border-color: #adc6ff;
  background: #e8f3ff;
  color: var(--primary);
}

.table-date-readonly,
.table-date:disabled {
  cursor: not-allowed;
  border-color: #d5dfec;
  background: #f2f5f9;
  color: #86909c;
}

td[data-column-key="finishedAt"] .table-date {
  width: 132px;
  min-width: 132px;
  box-sizing: border-box;
  padding: 4px 7px;
}

.table-wrap .is-pinned-column {
  position: sticky;
  z-index: 5;
  background: #ffffff;
}

.table-wrap thead .is-pinned-column {
  z-index: 8;
  background: #e7edf6;
}

.table-wrap .is-last-pinned-column {
  box-shadow: 4px 0 8px rgba(29, 41, 57, 0.08);
}

.table-wrap thead .table-sort-button {
  align-items: flex-start;
  white-space: normal;
}

.table-wrap thead .table-sort-button span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-sort-button em {
  flex: 0 0 auto;
  color: #94a3b8;
  font-style: normal;
  font-size: 12px;
}

.table-sort-button:hover,
.table-sort-button.is-active {
  color: var(--primary);
}

.table-sort-button.is-active em {
  color: var(--primary);
}

.sortable-case-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.column-resize-handle {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 3;
}

.row-index-head .column-resize-handle {
  right: -8px;
  width: 16px;
}

.column-resize-handle::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 3px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
}

th:hover .column-resize-handle::after {
  background: #cbd5e1;
}

body.is-resizing-column {
  cursor: col-resize;
  user-select: none;
}

th:first-child,
td:first-child {
  width: 44px;
  text-align: center;
}

.row-index-head,
.row-index-cell {
  width: 58px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.renewal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  border-radius: 4px;
  background: #fee2e2;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

th:last-child,
td:last-child {
  width: 168px;
}

.section-row td {
  padding-top: 18px;
  background: #ffffff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  width: auto;
}

.section-row small {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
}

.parent-section-row td {
  background: #f4f8ff;
  font-size: 15px;
  width: auto;
}

.second-section-row td {
  background: #ffffff;
  width: auto;
}

.third-section-row td {
  background: #fafcff;
  width: auto;
}

.parent-section-row .group-toggle {
  margin-left: 0;
}

.section-row td:first-child {
  width: auto;
  text-align: left;
}

.child-group-toggle {
  margin-left: 28px;
}

.third-group-toggle {
  margin-left: 56px;
  color: var(--text);
}

.setting-row-select.second-level-select {
  margin-left: 28px;
}

.setting-row-select.third-level-select {
  margin-left: 56px;
}

.third-group-toggle small {
  color: var(--muted);
}

.registered-meta-toggle {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.setting-sort-actions {
  float: right;
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin-left: 16px;
  vertical-align: middle;
}

.sort-button-group {
  display: inline-flex;
  gap: 8px;
  margin-left: 14px;
}

.sort-arrow-button {
  width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.sort-arrow-button:hover {
  border-color: var(--primary);
  background: #f4f8ff;
}

.meta-panel {
  width: min(420px, calc(100vw - 32px));
}

.meta-form {
  grid-template-columns: 1fr;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  font: inherit;
  font-weight: 700;
}

.group-toggle span {
  width: 16px;
  color: var(--muted);
}

.group-head {
  background: #e8f1ff;
  color: var(--text);
  text-align: center;
}

td {
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-wrap tbody td {
  text-align: left !important;
}

.table-wrap tbody td > :not(input):not(button),
.table-wrap tbody td .stacked-cell,
.table-wrap tbody td .stacked-text {
  text-align: left !important;
}

.table-wrap tbody td:first-child,
.table-wrap thead th:first-child {
  padding-left: 12px;
  padding-right: 4px;
  overflow: hidden;
  text-align: left !important;
  text-overflow: clip;
}

.table-wrap tbody td:first-child input[type="checkbox"],
.table-wrap thead th:first-child input[type="checkbox"] {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
}

.receive-price-cell {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  max-width: 100%;
  text-align: left;
}

.accounting-alert-mark {
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.empty-state {
  color: var(--muted);
  text-align: center;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 140px;
}

.table-select {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 4px 8px;
}

.table-date {
  width: 142px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 4px 8px;
}

.stacked-cell {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 84px;
  justify-items: start;
  text-align: left;
  white-space: normal;
}

.stacked-cell span {
  display: block;
  line-height: 1.45;
  text-align: left;
}

.certificate-row-stack {
  grid-auto-rows: minmax(21px, auto);
}

.certificate-row-stack span {
  min-height: 21px;
  white-space: nowrap;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0 2px;
}

.link-button.danger {
  color: var(--danger);
}

.secondary-button:disabled,
.primary-button:disabled,
.danger-button:disabled,
.link-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.secondary-button:disabled,
.primary-button:disabled,
.danger-button:disabled {
  border-color: var(--line);
  background: var(--disabled);
  color: var(--muted);
}

.link-button:disabled {
  color: var(--muted);
}

.copy-cell-button {
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-cell-button:hover {
  color: var(--primary);
}

.case-number-head-link {
  color: var(--primary);
  text-decoration: none;
}

.case-number-head-link:hover {
  text-decoration: underline;
}

.progress-cell {
  display: grid;
  grid-template-columns: 100px 42px;
  align-items: center;
  gap: 8px;
}

.case-progress-cell {
  min-width: 150px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e9f2;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.progress-cell small {
  color: var(--muted);
}

.usage-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--processing-soft);
  color: var(--processing);
  font-size: 13px;
  font-weight: 700;
}

.usage-status-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.usage-status-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.usage-status-success {
  background: var(--success-soft);
  color: var(--success);
}

.usage-status-muted {
  background: var(--disabled);
  color: var(--secondary-text);
}

.social-security-three-months-no {
  color: var(--danger);
  font-weight: 800;
}

.usage-status-finished {
  min-width: 80px;
  border: 1px solid #cbd5e1;
  background: #f3f4f6;
  color: #475569;
}

.rehang-finished-row td {
  background: #f8fafc;
}

.rehang-finished-row td:first-child {
  box-shadow: inset 3px 0 0 #94a3b8;
}

.rehang-finished-row .row-index-cell {
  color: #64748b;
  font-weight: 700;
}

@media (max-width: 980px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-form {
    grid-template-columns: repeat(auto-fill, minmax(150px, 190px));
  }
}

@media (max-width: 640px) {
  .topbar,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-grid,
  .entry-form {
    grid-template-columns: 1fr;
  }

  .field.wide {
    grid-column: span 1;
  }

  .list-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* UI polish layer: keep business layout rules intact, only improve visual hierarchy and interaction. */
:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #1d2129;
  --muted: #4e5969;
  --line: #c9cdd4;
  --secondary-text: #86909c;
  --primary: #165dff;
  --primary-dark: #0e42d2;
  --primary-soft: #e8f0ff;
  --warning: #ff7d00;
  --warning-soft: #fff7e8;
  --success: #00b42a;
  --success-soft: #e8ffea;
  --processing: #165dff;
  --processing-soft: #e8f0ff;
  --purple: #722ed1;
  --purple-soft: #f2eafa;
  --external: #ffc53d;
  --external-soft: #fff7d6;
  --danger: #f53f3f;
  --danger-bg: #fff2f0;
  --disabled: #f2f3f5;
  --soft: #f7f8fa;
  --chart-blue: #165dff;
  --chart-green: #00b42a;
  --chart-orange: #ff7d00;
  --chart-purple: #722ed1;
  --shadow-sm: 0 1px 2px rgba(29, 33, 41, 0.04);
  --shadow-md: 0 14px 36px rgba(29, 33, 41, 0.10);
}

body {
  background: var(--bg);
}

button,
input,
select,
textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 64px;
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
}

.brand-mark {
  border-radius: 10px;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.08);
}

.brand strong {
  font-size: 18px;
}

.brand span:last-child {
  max-width: 760px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-entry {
  display: flex;
  align-items: center;
}

.workspace-overview {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.workspace-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
  box-shadow: var(--shadow-sm);
}

.workspace-title-copy {
  min-width: 0;
}

.workspace-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.workspace-title-copy h1 {
  margin: 0;
  font-size: 26px;
}

.workspace-title-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  width: min(1540px, calc(100% - 32px));
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 64px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  width: 220px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.tab-button,
.secondary-button,
.primary-button,
.danger-button {
  border-radius: 7px;
  font-weight: 700;
}

.tab-button {
  position: relative;
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  text-align: left;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tab-button:hover,
.secondary-button:hover {
  border-color: #b8c7dc;
  background: var(--soft);
}

.tab-button.active {
  position: relative;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.tab-button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.panel,
.summary-card,
.dashboard-card,
.reimbursement-filter-panel,
.data-management-panel {
  border-color: #e5e6eb;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.panel {
  padding: 16px;
}

.workspace-overview,
.panel {
  scroll-margin-top: 88px;
}

.workspace {
  min-width: 0;
}

.panel-heading {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

#listHeadingText {
  display: grid;
  gap: 6px;
}

.panel-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.toolbar {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 12px;
  row-gap: 0;
  justify-content: flex-end;
  align-items: center;
  padding: 6px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: var(--soft);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.toolbar-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.toolbar-group-search {
  flex: 0 0 auto;
  min-width: 250px;
}

.toolbar-group-manage,
.toolbar-group-action {
  flex: 0 0 auto;
}

.toolbar .search-input {
  min-height: 36px;
  flex: 0 0 250px;
  min-width: 250px;
}

.toolbar button {
  flex: 0 0 auto;
  flex-shrink: 0;
}

.toolbar #listFilterButton.is-filter-active {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

.toolbar #listFilterButton.is-filter-active:hover {
  background: var(--danger);
  border-color: var(--danger);
}

.search-input {
  flex: 0 0 250px;
  max-width: 280px;
  border-color: #cfd8e6;
}

.summary-grid {
  margin-bottom: 4px;
}

.summary-grid:empty {
  display: none;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
  min-height: 40px;
  padding: 6px 10px;
}

.dashboard-card span,
.dashboard-card small {
  font-size: 11px;
  line-height: 1.2;
}

.dashboard-card strong,
.summary-card strong {
  color: var(--text);
}

.dashboard-card strong {
  margin: 1px 0 0;
  font-size: 18px;
  line-height: 1.05;
}

.dashboard-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  border-radius: 8px 0 0 0;
  background: rgba(37, 99, 235, 0.06);
}

.summary-grid .dashboard-card,
.summary-grid .summary-card {
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.summary-grid .dashboard-card:nth-of-type(1) {
  border-color: #bcd7ff;
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf3ff 100%);
}

.summary-grid .dashboard-card:nth-of-type(1)::after {
  background: rgba(22, 93, 255, 0.12);
}

.summary-grid .dashboard-card:nth-of-type(2) {
  border-color: #ffd8a8;
  background: linear-gradient(180deg, #fff8ed 0%, #fff0d9 100%);
}

.summary-grid .dashboard-card:nth-of-type(2)::after {
  background: rgba(255, 125, 0, 0.14);
}

.summary-grid .dashboard-card:nth-of-type(3) {
  border-color: #ffc9c9;
  background: linear-gradient(180deg, #fff5f5 0%, #ffeaea 100%);
}

.summary-grid .dashboard-card:nth-of-type(3)::after {
  background: rgba(245, 63, 63, 0.12);
}

.summary-grid .dashboard-card:nth-of-type(4) {
  border-color: #b7ebc6;
  background: linear-gradient(180deg, #f1fff6 0%, #e8faee 100%);
}

.summary-grid .dashboard-card:nth-of-type(4)::after {
  background: rgba(0, 180, 42, 0.12);
}

.summary-grid .dashboard-card.rehang-summary-card {
  width: 100%;
  border-color: var(--rehang-summary-border, var(--line));
  background: linear-gradient(180deg, var(--rehang-summary-bg-start, #ffffff) 0%, var(--rehang-summary-bg-end, var(--soft)) 100%);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.summary-grid .dashboard-card.rehang-summary-card::after {
  background: var(--rehang-summary-accent, rgba(22, 93, 255, 0.12));
}

.summary-grid .dashboard-card.rehang-summary-card:hover {
  transform: translateY(-1px);
}

.summary-grid .dashboard-card.rehang-summary-card:focus-visible {
  outline: 2px solid rgba(22, 93, 255, 0.35);
  outline-offset: 2px;
}

.summary-grid .dashboard-card.rehang-summary-card.is-active {
  border-color: var(--rehang-summary-active-border, var(--rehang-summary-border, var(--line)));
  box-shadow: 0 0 0 1px var(--rehang-summary-active-border, var(--rehang-summary-border, var(--line))), 0 5px 14px rgba(29, 41, 57, 0.14);
}

.summary-grid .dashboard-card.rehang-summary-card.is-active::after {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 8px 0 0 0;
  background: var(--rehang-summary-active-border, var(--rehang-summary-border, var(--primary)));
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.summary-grid .dashboard-card.rehang-summary-card-pending {
  --rehang-summary-border: #ffe1b0;
  --rehang-summary-bg-start: #fff9ef;
  --rehang-summary-bg-end: #fff2dd;
  --rehang-summary-accent: rgba(255, 125, 0, 0.16);
  --rehang-summary-active-border: #ffb65d;
}

.summary-grid .dashboard-card.rehang-summary-card-processing {
  --rehang-summary-border: #bfd4ff;
  --rehang-summary-bg-start: #f5f8ff;
  --rehang-summary-bg-end: #eaf1ff;
  --rehang-summary-accent: rgba(22, 93, 255, 0.14);
  --rehang-summary-active-border: #6d9dff;
}

.summary-grid .dashboard-card.rehang-summary-card-bcert-pending {
  --rehang-summary-border: #f1d1ff;
  --rehang-summary-bg-start: #fcf5ff;
  --rehang-summary-bg-end: #f7ebff;
  --rehang-summary-accent: rgba(156, 39, 176, 0.14);
  --rehang-summary-active-border: #c27cff;
}

.summary-grid .dashboard-card.rehang-summary-card-bcert-processing {
  --rehang-summary-border: #bfe7ef;
  --rehang-summary-bg-start: #f2fcff;
  --rehang-summary-bg-end: #e4f7fb;
  --rehang-summary-accent: rgba(0, 153, 180, 0.14);
  --rehang-summary-active-border: #56bfd6;
}

.summary-grid .dashboard-card.rehang-summary-card-expiring {
  --rehang-summary-border: #ffd79e;
  --rehang-summary-bg-start: #fff8eb;
  --rehang-summary-bg-end: #ffefd3;
  --rehang-summary-accent: rgba(255, 145, 0, 0.16);
  --rehang-summary-active-border: #ffb243;
}

.summary-grid .dashboard-card.rehang-summary-card-overdue {
  --rehang-summary-border: #ffc4c4;
  --rehang-summary-bg-start: #fff5f5;
  --rehang-summary-bg-end: #ffe8e8;
  --rehang-summary-accent: rgba(245, 63, 63, 0.15);
  --rehang-summary-active-border: #ff8f8f;
}

.summary-grid .dashboard-card.rehang-summary-card-using {
  --rehang-summary-border: #bae8c8;
  --rehang-summary-bg-start: #f2fff6;
  --rehang-summary-bg-end: #e6faee;
  --rehang-summary-accent: rgba(0, 180, 42, 0.14);
  --rehang-summary-active-border: #6cc88a;
}

.summary-grid .dashboard-card.rehang-summary-card-finished {
  --rehang-summary-border: #d6dbe3;
  --rehang-summary-bg-start: #f8f9fb;
  --rehang-summary-bg-end: #eef1f5;
  --rehang-summary-accent: rgba(134, 144, 156, 0.16);
  --rehang-summary-active-border: #a9b2bf;
}

body.compact-summary-view .workspace-overview {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

body.compact-summary-view .summary-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 118px;
  align-self: stretch;
  justify-self: end;
  justify-content: end;
  width: max-content;
  max-width: 100%;
  min-height: 90px;
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-gutter: stable;
}

body.compact-summary-view .summary-grid .dashboard-card {
  min-height: 90px;
  padding: 12px 12px 10px;
}

body.compact-summary-view .workspace-titlebar {
  min-width: 0;
  min-height: 90px;
  align-items: center;
  padding: 14px 18px;
}

body.compact-summary-view .workspace-title-copy h1 {
  font-size: 24px;
  line-height: 1.2;
}

body.compact-summary-view .workspace-title-copy p:last-child {
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.compact-summary-view .summary-grid .dashboard-card span {
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

body.compact-summary-view .summary-grid .dashboard-card strong {
  margin-top: 6px;
  font-size: 34px;
  line-height: 1;
}

body.compact-summary-view .summary-grid .certificate-library-tabs,
body.compact-summary-view .summary-grid .basic-data-tabs {
  grid-column: auto;
  justify-self: start;
  align-self: center;
  width: max-content;
  max-width: none;
}

#listSubtitle {
  display: none;
}

.dashboard-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.dashboard-panel-wide {
  grid-column: 1 / -1;
}

.dashboard-alert-popover {
  position: fixed;
  top: 86px;
  right: 22px;
  z-index: 80;
}

.dashboard-alert-button {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px;
  min-width: 48px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff7ed;
  color: #b91c1c;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.16);
}

.dashboard-alert-button.has-alerts {
  animation: dashboardAlertPulse 1.2s ease-in-out infinite;
}

.dashboard-alert-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-alert-button strong {
  font-size: 15px;
  line-height: 1;
}

.dashboard-alert-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(920px, calc(100vw - 44px));
  max-height: min(72vh, 680px);
  overflow: auto;
  padding: 14px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.dashboard-alert-popover:hover .dashboard-alert-panel,
.dashboard-alert-popover:focus-within .dashboard-alert-panel {
  display: grid;
  gap: 12px;
}

.dashboard-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e6eb;
}

.dashboard-alert-head strong {
  font-size: 16px;
}

.dashboard-alert-head span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-alert-section {
  display: grid;
  gap: 8px;
}

@keyframes dashboardAlertPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.16);
  }

  50% {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(185, 28, 28, 0.34);
  }
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-panel-head h3 {
  margin: 0;
  font-size: 16px;
}

.dashboard-panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-reminder-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.dashboard-reminder-title-row p {
  margin: 0;
  white-space: nowrap;
}

.dashboard-hero {
  grid-column: 1 / -1;
  display: block;
}

.dashboard-hero-main,
.dashboard-kpi-card {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.dashboard-hero-main {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #ffffff 62%);
}

.dashboard-hero-main span,
.dashboard-kpi-card span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.dashboard-hero-main strong {
  color: var(--primary);
  font-size: 38px;
  line-height: 1;
}

.dashboard-kpi-card strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.dashboard-hero-main small,
.dashboard-kpi-card small {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-kpi-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.dashboard-kpi-value small {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.dashboard-kpi-value-detail {
  align-items: center;
  flex-wrap: nowrap;
}

.dashboard-kpi-empty {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-metric-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 96px;
  padding: 14px 16px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.dashboard-metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-metric-card strong {
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.dashboard-metric-card small {
  color: var(--secondary-text);
  font-size: 12px;
}

.dashboard-metric-card-warning strong {
  color: var(--warning);
}

.dashboard-metric-card-danger strong {
  color: var(--danger);
}

.dashboard-metric-card-success strong {
  color: var(--success);
}

.dashboard-work-grid,
.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(420px, 1.28fr);
  gap: 12px;
  min-width: 0;
}

.dashboard-main-grid {
  grid-template-columns: minmax(480px, 1.15fr) minmax(420px, 0.85fr);
  align-items: start;
}

.dashboard-todo-list {
  display: grid;
  gap: 8px;
}

.dashboard-todo-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
}

.dashboard-todo-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-todo-item strong {
  color: var(--primary);
  font-size: 18px;
}

.dashboard-kpi-card {
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.dashboard-distribution-card {
  align-content: start;
}

.dashboard-kpi-distribution {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

.dashboard-kpi-donut {
  width: 86px;
  height: 86px;
}

.dashboard-kpi-donut strong {
  margin-top: -10px;
  font-size: 20px;
}

.dashboard-kpi-donut span {
  margin-top: 22px;
}

.dashboard-kpi-distribution-grid {
  gap: 6px;
}

.dashboard-kpi-distribution-chip {
  min-height: 34px;
  padding: 6px 8px;
}

.dashboard-kpi-card-wide {
  grid-column: span 1;
}

.dashboard-reminder-panel {
  min-height: 104px;
  padding: 14px 16px;
}

.dashboard-kpi-card:hover {
  border-color: #93c5fd;
  background: var(--soft);
  transform: translateY(-1px);
}

.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.dashboard-quick-card,
.dashboard-list-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  text-align: left;
}

.dashboard-list-item-with-action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.dashboard-list-main {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.dashboard-list-action {
  justify-self: end;
  white-space: nowrap;
}

.dashboard-list-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.dashboard-quick-card strong,
.dashboard-list-item strong,
.dashboard-list-main strong {
  font-size: 14px;
}

.dashboard-quick-card span,
.dashboard-list-item span,
.dashboard-list-main span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-quick-card:hover,
.dashboard-list-item:hover {
  border-color: #bfdbfe;
  background: var(--primary-soft);
}

.business-flow-panel {
  overflow-x: auto;
  overflow-y: hidden;
  justify-items: stretch;
}

.dashboard-main-grid .business-flow-panel {
  min-width: 0;
}

.dashboard-main-grid .business-flow-diagram {
  --flow-box-width: 110px;
  --flow-box-half: 55px;
  grid-template-columns: minmax(110px, 0.58fr) 1px minmax(152px, 0.68fr) 1px minmax(900px, 3.2fr);
  gap: 8px;
  min-height: 300px;
}

.dashboard-main-grid .business-flow-demand-line {
  grid-template-columns: var(--flow-box-width) 34px;
}

.dashboard-main-grid .flow-order-grid {
  column-gap: 90px;
  width: min(100%, 900px);
}

.dashboard-main-grid .flow-library-group {
  gap: 64px;
}

.business-flow {
  display: grid;
  gap: 14px;
}

.business-flow-map {
  display: grid;
  gap: 14px;
}

.business-flow-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.business-flow-row-top,
.business-flow-row-bottom {
  align-items: center;
}

.business-flow-card,
.business-flow-rule {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  text-align: left;
}

.business-flow-card {
  flex: 1 1 0;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.business-flow-card:hover {
  border-color: #93c5fd;
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.business-flow-card-center {
  border-color: #93c5fd;
  background: var(--primary-soft);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.business-flow-card-foundation,
.business-flow-rule {
  width: min(720px, 100%);
}

.business-flow-card-library {
  flex: 1.2 1 0;
}

.business-flow-badge {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: #e8f0ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.business-flow-card strong,
.business-flow-rule strong {
  font-size: 16px;
  line-height: 1.25;
}

.business-flow-card small,
.business-flow-rule small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.business-flow-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.business-flow-mini em {
  padding: 5px 8px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.business-flow-line {
  align-self: center;
  flex: 0 0 34px;
  height: 2px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
}

.business-flow-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #cbd5e1;
  border-right: 2px solid #cbd5e1;
  transform: translateY(-50%) rotate(45deg);
}

.business-flow-line-down,
.business-flow-line-up {
  flex: 0 0 auto;
  width: 2px;
  height: 26px;
}

.business-flow-line-down::after {
  top: auto;
  right: 50%;
  bottom: -1px;
  transform: translateX(50%) rotate(135deg);
}

.business-flow-line-up::after {
  top: -1px;
  right: 50%;
  transform: translateX(50%) rotate(-45deg);
}

.business-flow-diagram {
  --flow-box-width: 110px;
  --flow-box-half: 55px;
  display: grid;
  grid-template-columns: minmax(110px, 0.68fr) 1px minmax(152px, 0.78fr) 1px minmax(900px, 3.1fr);
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-height: 260px;
  justify-self: stretch;
  margin: 0;
  padding: 10px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  background:
    linear-gradient(#edf2f7 1px, transparent 1px),
    linear-gradient(90deg, #edf2f7 1px, transparent 1px),
    var(--soft);
  background-size: 18px 18px;
}

.business-flow-stage {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.business-flow-stage-title {
  min-height: 34px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.business-flow-stage-title span {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.business-flow-divider {
  width: 1px;
  min-height: 100%;
  border-left: 3px dotted var(--text);
  opacity: 0.82;
}

.business-flow-stack {
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: center;
  min-height: 155px;
}

.business-flow-demand-line {
  display: grid;
  grid-template-columns: var(--flow-box-width) 42px;
  justify-content: center;
  align-items: center;
  min-height: 155px;
}

.flow-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: var(--flow-box-width);
  min-height: 44px;
  padding: 7px 8px;
  border: 2px solid var(--text);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.flow-box:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
}

.flow-box strong {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.flow-box small {
  color: var(--secondary-text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.flow-box-order {
  border-color: var(--primary-dark);
  background: var(--primary-soft);
}

.flow-box-library {
  width: var(--flow-box-width);
  min-width: 0;
}

.flow-arrow {
  position: relative;
  display: block;
  height: 3px;
  background: var(--text);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 10px;
  height: 10px;
  border-top: 3px solid var(--text);
  border-right: 3px solid var(--text);
  transform: translateY(-50%) rotate(45deg);
}

.flow-order-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, var(--flow-box-width));
  grid-template-areas: "order expire library";
  justify-content: center;
  align-items: center;
  column-gap: 90px;
  width: min(100%, 900px);
  min-height: 260px;
  padding: 16px 10px 18px;
}

.business-flow-stage-order {
  --flow-box-width: 184px;
  --flow-box-half: 92px;
}

.business-flow-stage-order .flow-box {
  min-height: 62px;
  padding: 10px 12px;
}

.business-flow-stage-order .flow-box strong {
  font-size: 17px;
  line-height: 1.18;
}

.business-flow-stage-order .flow-box small {
  font-size: 13px;
  line-height: 1.35;
}

.flow-order-grid > .flow-box,
.flow-order-grid > .flow-library-group {
  position: relative;
  z-index: 2;
}

.flow-order-grid > .flow-box-order {
  grid-area: order;
}

.flow-order-grid > .flow-box-expire {
  grid-area: expire;
}

.flow-order-grid > .flow-library-group {
  grid-area: library;
}

.flow-order-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flow-order-lines marker path {
  fill: var(--text);
}

.flow-svg-line {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.flow-svg-label {
  fill: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.flow-svg-label-small {
  font-size: 14px;
}

.flow-library-group {
  display: grid;
  gap: 64px;
  justify-items: stretch;
}

.business-flow-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.business-flow-note strong {
  flex: 0 0 auto;
  color: var(--primary);
}

.business-flow-main,
.business-flow-branches {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.business-flow-main {
  flex-wrap: nowrap;
}

.business-flow-branches {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
}

.business-flow-node {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.business-flow-main .business-flow-node {
  flex: 1 1 0;
}

.business-flow-branch {
  min-width: 220px;
  background: var(--soft);
}

.business-flow-node:hover {
  border-color: #93c5fd;
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.business-flow-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e8f0ff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.business-flow-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.business-flow-copy strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-flow-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-flow-count {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 58px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.business-flow-count em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.business-flow-library-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 8px;
  min-width: 240px;
}

.business-flow-library-inline > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label count"
    "hint count";
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #ffffff;
}

.business-flow-library-inline b {
  grid-area: label;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-flow-library-inline strong {
  grid-area: count;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
}

.business-flow-library-inline em {
  grid-area: hint;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-flow-library-inline > span:hover {
  border-color: #93c5fd;
  background: var(--primary-soft);
}

.business-flow-arrow {
  align-self: center;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
}

.business-flow-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #cbd5e1;
  border-right: 2px solid #cbd5e1;
  transform: translateY(-50%) rotate(45deg);
}

.dashboard-chart-panel {
  grid-column: span 3;
}

.dashboard-bar-chart {
  display: grid;
  gap: 10px;
}

.dashboard-bar-row {
  display: grid;
  grid-template-columns: 84px 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  text-align: left;
}

.dashboard-bar-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-bar-row strong {
  font-size: 16px;
  text-align: right;
}

.dashboard-bar-row em {
  display: block;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--primary) 0 var(--bar-width), #e5edf8 var(--bar-width) 100%);
}

.dashboard-donut-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.dashboard-reminder-panel .dashboard-donut-row {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}

.dashboard-donut {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 52%, transparent 53%),
    conic-gradient(var(--chart-blue) 0 calc((var(--p1) / var(--total)) * 1turn), var(--chart-green) 0 calc(((var(--p1) + var(--p2)) / var(--total)) * 1turn), var(--chart-orange) 0 calc(((var(--p1) + var(--p2) + var(--p3)) / var(--total)) * 1turn), var(--chart-purple) 0 calc(((var(--p1) + var(--p2) + var(--p3) + var(--p4)) / var(--total)) * 1turn), #e5e6eb 0);
  box-shadow: inset 0 0 0 1px #e5e6eb;
}

.dashboard-reminder-panel .dashboard-donut {
  width: 86px;
  height: 86px;
}

.dashboard-donut strong,
.dashboard-donut span {
  grid-area: 1 / 1;
}

.dashboard-donut strong {
  margin-top: -12px;
  font-size: 24px;
}

.dashboard-reminder-panel .dashboard-donut strong {
  margin-top: -10px;
  font-size: 20px;
}

.dashboard-donut span {
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-reminder-panel .dashboard-donut span {
  margin-top: 22px;
}

.dashboard-reminder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-reminder-panel .dashboard-reminder-grid {
  gap: 6px;
}

.dashboard-reminder-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
}

.dashboard-reminder-panel .dashboard-reminder-chip {
  min-height: 34px;
  padding: 6px 8px;
}

.dashboard-reminder-chip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-reminder-chip strong {
  color: var(--primary);
  font-size: 18px;
}

.dashboard-trend-panel {
  min-height: 392px;
}

.dashboard-trend-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 16px;
}

.dashboard-trend-legend {
  display: grid;
  align-content: center;
  gap: 10px;
  margin: 0;
}

.dashboard-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-trend-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--trend-color);
}

.dashboard-trend-chart {
  width: 100%;
  min-height: 360px;
}

.dashboard-trend-chart svg {
  display: block;
  width: 100%;
  height: 380px;
}

.dashboard-trend-gridline {
  stroke: #e5e6eb;
  stroke-width: 1;
}

.dashboard-trend-xline {
  stroke: #edf2f7;
  stroke-width: 1;
}

.dashboard-trend-axis-label {
  fill: var(--secondary-text);
  font-size: 12px;
}

.dashboard-trend-line {
  fill: none;
  stroke: var(--trend-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-trend-point {
  fill: #ffffff;
  stroke: var(--trend-color);
  stroke-width: 2;
}

.dashboard-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
}

.dashboard-focus-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.dashboard-focus-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
}

.dashboard-focus-title strong {
  font-size: 14px;
}

body.dashboard-view .workspace > .panel {
  display: none;
}

@media (max-width: 980px) {
  .dashboard-alert-popover {
    top: 76px;
    right: 12px;
  }

  .dashboard-alert-panel {
    width: calc(100vw - 24px);
  }

  .dashboard-hero,
  .dashboard-focus-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-grid,
  .dashboard-metric-grid,
  .dashboard-reminder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-work-grid,
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-card-wide {
    grid-column: span 1;
  }

  .dashboard-reminder-panel {
    grid-column: span 2;
  }

  .dashboard-trend-body {
    grid-template-columns: 1fr;
  }

  .dashboard-trend-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-chart-panel {
    grid-column: 1 / -1;
  }

  .business-flow-main,
  .business-flow-branches {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .business-flow-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .business-flow-diagram {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .business-flow-divider {
    width: 100%;
    min-height: 1px;
    border-left: 0;
    border-top: 3px dotted var(--text);
  }

  .business-flow-stack,
  .business-flow-demand-line,
  .flow-order-grid {
    min-height: 0;
  }

  .business-flow-demand-line,
  .flow-order-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "order"
      "expire"
      "library";
    justify-items: center;
    gap: 14px;
  }

  .flow-order-lines {
    display: none;
  }

  .flow-arrow {
    width: 3px;
    height: 24px;
    justify-self: center;
  }

  .flow-arrow::after {
    top: auto;
    right: 50%;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }

  .business-flow-note {
    display: grid;
  }

  .business-flow-branch {
    min-width: 0;
  }

  .business-flow-line {
    width: 2px;
    height: 18px;
    justify-self: center;
    flex-basis: auto;
  }

  .business-flow-line::after {
    top: auto;
    right: 50%;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }

  .business-flow-arrow {
    width: 2px;
    height: 18px;
    justify-self: center;
  }

  .business-flow-arrow::after {
    top: auto;
    right: 50%;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }

  .business-flow-library-inline {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .dashboard-kpi-grid,
  .dashboard-metric-grid,
  .dashboard-donut-row,
  .dashboard-reminder-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-card-wide {
    grid-column: span 1;
  }

  .dashboard-reminder-panel {
    grid-column: span 1;
  }

  .dashboard-trend-chart svg {
    height: 260px;
  }

  .dashboard-donut {
    justify-self: center;
  }
}

.dashboard-list {
  display: grid;
  gap: 10px;
}

.dashboard-list-empty {
  padding: 16px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  background: var(--soft);
}

.modal {
  padding: 28px 16px;
  background: rgba(15, 23, 42, 0.42);
}

.modal-panel {
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

#formPanel .form-actions {
  top: 16px;
  right: 18px;
  padding: 4px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.form-actions .secondary-button,
.form-actions .primary-button,
.form-actions .danger-button {
  min-height: 34px;
}

.field input,
.field select,
.field textarea,
.search-input,
.filter-row input,
.filter-row select,
.list-filter-field input,
.list-filter-field select,
.table-select,
.table-date {
  border-color: #cfd8e6;
  border-radius: 7px;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.search-input:hover,
.filter-row input:hover,
.filter-row select:hover,
.list-filter-field input:hover,
.list-filter-field select:hover {
  border-color: #b8c7dc;
}

.field label {
  color: var(--muted);
}

.field-group,
.form-section-title {
  color: var(--primary-dark);
}

.form-section-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  background: var(--soft);
}

.form-section-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-section-card-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.form-section-fields {
  display: grid;
  grid-template-columns: inherit;
  gap: inherit;
  align-items: start;
  justify-content: start;
}

.form-section-fields > .form-section-title {
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px dashed #d7e3f3;
}

.table-wrap {
  border: 1px solid #b8c7dc;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow-x: scroll;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-right: 1px solid #c2d0e2;
  border-bottom: 1px solid #b8c7dc;
  background: #e7edf6;
  color: var(--text);
}

td {
  border-right: 1px solid #d5dfec;
  border-bottom-color: #dbe4f0;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--soft);
}

tbody tr:nth-child(even):not(.section-row):not(.parent-section-row):not(.second-section-row):not(.third-section-row) td {
  background: #fcfdff;
}

tbody tr.dashboard-highlight-row td,
tbody tr.dashboard-highlight-row:nth-child(even):not(.section-row):not(.parent-section-row):not(.second-section-row):not(.third-section-row) td {
  background: #dbeafe;
  color: var(--text);
  font-weight: 700;
}

tbody tr.dashboard-highlight-row:hover td {
  background: #bfdbfe;
}

tbody tr.idle-sortable-row {
  cursor: move;
}

tbody tr.idle-sortable-row.is-dragging td {
  background: #e0f2fe;
  opacity: 0.72;
}

tbody tr.idle-sortable-row.is-drag-over-before td {
  background: #eff6ff;
  box-shadow: inset 0 2px 0 #2563eb;
}

tbody tr.idle-sortable-row.is-drag-over-after td {
  background: #eff6ff;
  box-shadow: inset 0 -2px 0 #2563eb;
}

th:first-child {
  border-top-left-radius: 10px;
}

th:last-child {
  border-top-right-radius: 10px;
}

.row-actions {
  gap: 6px 8px;
  justify-content: flex-start;
  min-width: 150px;
}

.entry-form.order-form .form-section-card {
  padding: 20px 18px 18px;
}

.entry-form.order-form .form-section-card .form-section-fields > .field,
.entry-form.order-form .form-section-card .form-section-fields > .order-certificate-picker {
  align-self: start;
}

.entry-form.order-form .field[data-field-key="registeredCompany"] .import-control input[type="text"] {
  width: 250px;
}

.entry-form.order-form .field[data-field-key="registeredCompany"] .import-control {
  gap: 10px;
}

.entry-form.order-form [data-field-key="registeredCompany"]:not(.is-hidden),
.entry-form.order-form [data-field-key="name"]:not(.is-hidden),
.entry-form.order-form [data-field-key="idCard"]:not(.is-hidden) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.entry-form.order-form [data-field-key="registeredCompany"] > label,
.entry-form.order-form [data-field-key="name"] > label,
.entry-form.order-form [data-field-key="idCard"] > label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.entry-form.order-form .field[data-field-key="registeredCompany"] .order-company-import-control {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.entry-form.order-form .field[data-field-key="registeredCompany"] .order-company-import-control input[type="text"] {
  flex: 0 0 196px;
  width: 196px;
}

.entry-form.order-form .field[data-field-key="registeredCompany"] #registeredCompanyCreditCodeDisplay {
  flex: 0 0 150px;
  width: 150px;
}

.entry-form.order-form .field[data-field-key="registeredCompany"] .order-peer-import-control input[type="text"] {
  flex: 0 0 150px;
  width: 150px;
}

.entry-form.order-form .field[data-field-key="registeredCompany"] .order-company-import-control > .secondary-button {
  flex: 0 0 auto;
}

.entry-form.order-form [data-field-key="idCard"] input {
  field-sizing: content;
  width: auto !important;
  min-width: 170px;
  max-width: 18ch;
}

.entry-form.order-form [data-field-key="idCard"] .order-id-card-import-control {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
  max-width: 100%;
}

.entry-form.order-form [data-field-key="idCard"] .order-id-card-import-control > .secondary-button {
  flex: 0 0 auto;
}

.entry-form.order-form [data-field-key="idleCertificateImportId"] {
  align-self: center;
  padding-top: 0;
}

.entry-form.order-form [data-field-key="idCard"]:not(.is-hidden) {
  margin-left: 45px;
}

.entry-form.order-form [data-field-key="receiveLeaseTerm"] label,
.entry-form.order-form [data-field-key="issueLeaseTerm"] label,
.entry-form.order-form [data-field-key="receiveExpiresAt"] label,
.entry-form.order-form [data-field-key="issueExpiresAt"] label,
.entry-form.order-form [data-field-key="receiveAgent"] label,
.entry-form.order-form [data-field-key="issueAgent"] label {
  white-space: nowrap;
}

.entry-form.order-form [data-field-key="issueTotalPrice"] input,
.entry-form.order-form [data-field-key="receiveTotalPrice"] input,
.entry-form.order-form [data-field-key="processPrice"] input,
.entry-form.order-form [data-field-key="processItem"] input,
.entry-form.order-form [data-field-key="processItemPrice"] input {
  width: 102px;
}

.entry-form.order-form [data-field-key="socialSecurityStatus"] select,
.entry-form.order-form [data-field-key="socialSecurity"] select,
.entry-form.order-form [data-field-key="insuranceType"] select {
  width: 118px;
}

.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"] {
  grid-column: auto;
}

.entry-form.order-form .form-section-card[data-section-key="settlementInfoSection"] {
  grid-column: auto;
}

.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"],
.entry-form.order-form .form-section-card[data-section-key="settlementInfoSection"] {
  min-height: 128px;
}

.entry-form.order-form .order-social-settlement-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"] .form-section-fields {
  grid-template-columns: 82px 89px 89px;
  gap: 10px 16px;
  justify-content: start;
}

.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"] .form-section-title {
  grid-column: 1 / -1;
}

.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"] [data-field-key="socialSecurityStatus"],
.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"] [data-field-key="socialSecurity"],
.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"] [data-field-key="insuranceType"] {
  grid-column: auto;
  max-width: none;
}

.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"] [data-field-key="socialSecurityStatus"] select,
.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"] [data-field-key="socialSecurity"] select,
.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"] [data-field-key="insuranceType"] select {
  width: 74px;
  min-width: 0;
}

.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"] [data-field-key="socialSecurity"] select,
.entry-form.order-form .form-section-card[data-section-key="socialSecurityOrderSection"] [data-field-key="insuranceType"] select {
  width: 89px;
}

.entry-form.order-form .form-section-card[data-section-key="settlementInfoSection"] .form-section-fields {
  grid-template-columns: repeat(3, minmax(0, 102px));
  gap: 10px 16px;
  justify-content: start;
}

.entry-form.order-form .form-section-card[data-section-key="settlementInfoSection"] .form-section-title {
  grid-column: 1 / -1;
}

.entry-form.order-form .form-section-card[data-section-key="settlementInfoSection"] [data-field-key="processPrice"],
.entry-form.order-form .form-section-card[data-section-key="settlementInfoSection"] [data-field-key="processItem"],
.entry-form.order-form .form-section-card[data-section-key="settlementInfoSection"] [data-field-key="processItemPrice"] {
  grid-column: auto;
  max-width: none;
  min-width: 0;
}

.entry-form.order-form .form-section-card[data-section-key="settlementInfoSection"] [data-field-key="processPrice"] input,
.entry-form.order-form .form-section-card[data-section-key="settlementInfoSection"] [data-field-key="processItem"] input,
.entry-form.order-form .form-section-card[data-section-key="settlementInfoSection"] [data-field-key="processItemPrice"] input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.entry-form.order-form [data-field-key="receiveTotalPrice"],
.entry-form.order-form [data-field-key="issueTotalPrice"] {
  grid-column: 6 / span 1;
}

.entry-form.order-form [data-field-key="incomeDate"],
.entry-form.order-form [data-field-key="payoutDate"] {
  grid-column: 7 / span 2;
}

.entry-form.order-form .form-section-card[data-section-key="receiveInfoSection"] .form-section-fields,
.entry-form.order-form .form-section-card[data-section-key="issueInfoSection"] .form-section-fields {
  grid-template-columns: 100px 86px 149px 105px minmax(144px, max-content) 88px;
  gap: 10px 12px;
  justify-content: start;
  align-items: start;
}

.entry-form.order-form .form-section-card[data-section-key="receiveInfoSection"] .form-section-title,
.entry-form.order-form .form-section-card[data-section-key="issueInfoSection"] .form-section-title {
  grid-column: 1 / -1;
}

.entry-form.order-form [data-field-key="receiveLeaseTerm"],
.entry-form.order-form [data-field-key="issueLeaseTerm"] {
  grid-column: 1;
  grid-row: 2;
}

.entry-form.order-form [data-field-key="receiveTotalPrice"],
.entry-form.order-form [data-field-key="issueTotalPrice"] {
  grid-column: 2;
  grid-row: 2;
}

.entry-form.order-form [data-field-key="receiveAgent"],
.entry-form.order-form [data-field-key="issueAgent"] {
  grid-column: 4;
  grid-row: 2;
}

.entry-form.order-form [data-field-key="receiveExpiresAt"],
.entry-form.order-form [data-field-key="issueExpiresAt"] {
  grid-column: 5;
  grid-row: 2;
}

.entry-form.order-form [data-field-key="receiveRemainingDays"],
.entry-form.order-form [data-field-key="issueRemainingDays"] {
  grid-column: 6;
  grid-row: 2;
}

.entry-form.order-form [data-field-key="incomeDate"],
.entry-form.order-form [data-field-key="payoutDate"] {
  grid-column: 3;
  grid-row: 2;
}

.entry-form.order-form .form-section-card[data-section-key="receiveInfoSection"],
.entry-form.order-form .form-section-card[data-section-key="issueInfoSection"] {
  overflow: hidden;
}

.entry-form.order-form .form-section-card[data-section-key="receiveInfoSection"] .field,
.entry-form.order-form .form-section-card[data-section-key="issueInfoSection"] .field {
  width: auto;
  min-width: 0;
  max-width: none;
  gap: 8px;
}

.entry-form.order-form .form-section-card[data-section-key="receiveInfoSection"] .field label,
.entry-form.order-form .form-section-card[data-section-key="issueInfoSection"] .field label {
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
}

.entry-form.order-form .form-section-card[data-section-key="receiveInfoSection"] .field input,
.entry-form.order-form .form-section-card[data-section-key="receiveInfoSection"] .field select,
.entry-form.order-form .form-section-card[data-section-key="issueInfoSection"] .field input,
.entry-form.order-form .form-section-card[data-section-key="issueInfoSection"] .field select {
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}

.entry-form.order-form [data-field-key="bCert"] input,
.entry-form.order-form [data-field-key="secondBCert"] input,
.entry-form.order-form [data-field-key="thirdBCert"] input {
  width: 102px;
}

.case-progress-cell .usage-status {
  min-width: 86px;
}

.link-button {
  min-height: 28px;
  border-radius: 5px;
  padding: 0 4px;
  font-weight: 700;
}

.row-actions .link-button {
  font-size: 13px;
}

.table-name-link {
  min-height: auto;
  padding: 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.row-actions .link-button[data-action="convertToOrder"] {
  padding: 0 6px;
  border-radius: 6px;
  background: var(--success-soft);
  color: var(--success);
}

.row-actions .link-button[data-action="moveToExternalCertificate"] {
  padding: 0 6px;
  border-radius: 6px;
  background: #fff7ed;
  color: #c2410c;
}

.row-actions .link-button[data-action="moveIdleSort"] {
  padding: 0 6px;
  border-radius: 6px;
  background: #f0f9ff;
  color: #0369a1;
}

.view-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.view-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.view-action-convert {
  background: var(--success-soft);
  color: var(--success);
}

.view-action-external {
  background: #fff7ed;
  color: #c2410c;
}

.view-action-idle {
  background: #eefcf7;
  color: var(--success);
}

.view-action-renew {
  background: var(--danger-bg);
  color: var(--danger);
}

.renewal-title-mark {
  margin-left: 8px;
  color: var(--danger);
  font-size: 18px;
  font-weight: 900;
}

thead th[data-column-key="enterpriseOrderId"],
tbody td[data-column-key="enterpriseOrderId"] {
  width: 180px;
}

thead th[data-column-key="name"],
tbody td[data-column-key="name"] {
  width: 88px;
}

thead th[data-column-key="idCard"],
tbody td[data-column-key="idCard"] {
  width: 150px;
}

thead th[data-column-key="level"],
tbody td[data-column-key="level"],
thead th[data-column-key="major"],
tbody td[data-column-key="major"],
thead th[data-column-key="bCert"],
tbody td[data-column-key="bCert"] {
  width: 110px;
}

thead th[data-column-key="caseProgress"],
tbody td[data-column-key="caseProgress"] {
  width: 120px;
}

thead th[data-column-key="issueExpiresAt"],
tbody td[data-column-key="issueExpiresAt"] {
  width: 128px;
}

.issue-expiry-countdown {
  white-space: nowrap;
}

.issue-expiry-countdown.is-urgent strong {
  color: var(--danger);
  font-weight: 700;
}

thead th[data-column-key="registeredCompany"],
tbody td[data-column-key="registeredCompany"] {
  width: 180px;
}

tbody td[data-column-key="registeredCompany"] {
  white-space: normal;
}

tbody td[data-column-key="enterpriseOrderId"],
tbody td[data-column-key="idCard"] {
  white-space: normal;
}

.link-button:hover {
  background: var(--primary-soft);
}

.link-button.danger:hover {
  background: var(--danger-bg);
}

.table-url-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.table-url-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.empty-state {
  padding: 32px 14px;
  color: var(--secondary-text);
  background: var(--soft);
  line-height: 1.6;
}

.usage-status,
.renewal-mark {
  border-radius: 6px;
}

.progress-track {
  background: #dbe6f3;
}

.column-option,
.data-management-modules label,
.checkbox-field {
  user-select: none;
}

.toast-message {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}

@media (max-width: 980px) {
  body.compact-summary-view .workspace-overview {
    grid-template-columns: 1fr;
  }

  body.compact-summary-view .summary-grid {
    justify-self: stretch;
    width: 100%;
  }

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

  .topbar {
    position: static;
  }

  .sidebar {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tab-button {
    width: auto;
    min-width: 112px;
    text-align: center;
    justify-content: center;
  }

  .panel-heading {
    flex-direction: column;
  }

  .toolbar {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .toolbar-group {
    width: auto;
    flex-wrap: nowrap;
  }

  .toolbar-group-manage,
  .toolbar-group-action {
    flex: 0 0 auto;
  }

  .search-input {
    max-width: none;
    flex: 0 0 220px;
  }
}

@media (max-width: 1380px) {
  body.compact-summary-view .workspace-overview {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.compact-summary-view .summary-grid {
    justify-self: stretch;
    width: 100%;
    grid-auto-columns: 132px;
  }

  body.compact-summary-view .workspace-titlebar {
    padding: 12px 14px;
  }
}

@media (max-width: 640px) {
  .layout {
    width: min(100% - 20px, 1500px);
    padding-top: 10px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .brand span:last-child {
    white-space: normal;
  }

  .toolbar button,
  .toolbar .search-input {
    flex: 1 1 140px;
  }

  #formPanel .panel-heading {
    padding-right: 0;
  }

  #formPanel .form-actions {
    position: static;
    margin-bottom: 12px;
  }
}

.system-admin-page {
  display: block;
}

#formPanel.inline-panel {
  position: static;
  display: block;
  padding: 0;
  background: transparent;
  overflow: visible;
  z-index: auto;
}

#formPanel.inline-panel .modal-panel {
  width: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
}

#formPanel.inline-panel .panel-heading {
  position: static;
  padding: 0 0 12px;
  border-bottom: 0;
  background: transparent;
}

#formPanel.inline-panel #closeFormButton,
#formPanel.inline-panel #moduleKey {
  display: none;
}

.system-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.system-admin-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.system-admin-account-card {
  grid-row: span 2;
  grid-template-rows: auto auto minmax(180px, 1fr);
  min-height: 0;
}

.system-admin-card h3 {
  margin: 0;
  font-size: 16px;
}

.system-admin-card > h3,
.system-admin-head h3 {
  color: var(--text);
}

.system-admin-head,
.system-admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.system-admin-head {
  justify-content: space-between;
}

.system-admin-inline-form input,
.system-admin-inline-form select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
  background: var(--soft);
}

.system-admin-inline-form input[readonly] {
  background: #f1f5f9;
  color: var(--muted);
}

.system-admin-table-wrap td:last-child {
  white-space: nowrap;
}

.system-admin-table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.system-admin-user-table-wrap {
  height: 100%;
  min-height: 180px;
  max-height: 330px;
  overflow: auto;
}

.system-admin-table-wrap table {
  min-width: 0;
  table-layout: auto;
}

.system-admin-table-wrap th,
.system-admin-table-wrap td {
  width: auto;
}

.system-admin-user-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.system-admin-user-table .sticky-col {
  position: sticky;
  z-index: 2;
  background: #ffffff;
  background-clip: padding-box;
  box-shadow: 1px 0 0 var(--line);
  white-space: nowrap;
}

.system-admin-user-table th.sticky-col {
  z-index: 6;
  background: var(--soft);
}

.system-admin-user-table .sticky-col-1 {
  left: 0;
  min-width: 112px;
  width: 112px;
}

.system-admin-user-table .sticky-col-2 {
  left: 112px;
  min-width: 196px;
  width: 196px;
}

.system-admin-user-table .sticky-col-3 {
  left: 308px;
  min-width: 92px;
  width: 92px;
}

.system-admin-user-table td.sticky-col {
  z-index: 4;
}

.system-admin-table-wrap tr.is-selected td {
  background: var(--primary-soft);
}

.system-admin-user-table tr.is-selected .sticky-col {
  background: var(--primary-soft);
}

.system-admin-user-table tr:hover .sticky-col {
  background: var(--soft);
}

.system-admin-info {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.system-admin-auth-code strong {
  font-size: 32px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: 4px;
}

.system-admin-data-management {
  grid-column: 1 / -1;
}

.system-admin-data-management .data-management-panel {
  margin: 0;
}

.system-admin-permissions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px 12px;
  margin: 12px 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.parent-section-row td,
.second-section-row td,
.third-section-row td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.basic-settings-table {
  width: max-content;
  min-width: 720px;
  table-layout: fixed;
}

.basic-settings-table td:nth-last-child(2),
.basic-settings-table td:last-child {
  white-space: nowrap;
}

.basic-settings-table th:last-child,
.basic-settings-table td:last-child {
  width: auto;
}

.system-admin-permissions label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: var(--text);
  font-weight: 700;
}

.system-admin-permissions input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.user-permission-options {
  margin: 0 0 14px;
}

.user-permission-options label.is-disabled {
  color: var(--muted);
}

@media (max-width: 980px) {
  .system-admin-grid {
    grid-template-columns: 1fr;
  }

  .system-admin-account-card {
    grid-row: auto;
    min-height: auto;
  }

  .system-admin-user-table-wrap {
    max-height: 420px;
  }
}

/* Final desktop override: keep module navigation on the left side */
body > main.layout {
  display: block !important;
  width: calc(100% - 16px) !important;
  max-width: none !important;
  margin: 0 8px !important;
  padding-left: 238px !important;
  position: relative !important;
}

body > main.layout > .sidebar {
  position: fixed !important;
  left: 0 !important;
  margin-left: 0 !important;
  inset-inline-start: 0 !important;
  top: 84px !important;
  z-index: 20 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 228px !important;
  max-width: 228px !important;
  max-height: calc(100vh - 100px) !important;
  overflow-y: auto !important;
  padding: 14px 10px 14px 12px !important;
  border-radius: 0 14px 14px 0 !important;
  border-left: 0 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
}

body > main.layout > .sidebar .tab-button {
  display: flex !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  justify-content: flex-start !important;
  text-align: left !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease !important;
}

body > main.layout > .sidebar .tab-button:hover {
  transform: translateX(4px);
  border-color: #93c5fd !important;
  background: var(--primary-soft) !important;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

body > main.layout > .sidebar .tab-button.active {
  transform: translateX(6px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2) !important;
}

body > main.layout > .workspace {
  min-width: 0 !important;
  width: 100% !important;
}

.workspace-tabs {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 42px;
  margin: 0 0 10px;
  padding: 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
}

.workspace-tabs:empty {
  display: none;
}

.workspace-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  max-width: 220px;
  min-height: 38px;
  padding: 0 6px 0 0;
  border: 1px solid #cfd8e6;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #eaf1fb;
  color: var(--text);
  white-space: nowrap;
}

.workspace-tab-button {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 38px;
  padding: 0 0 0 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.workspace-tab-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-tab.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 -1px 0 #ffffff, 0 8px 18px rgba(15, 23, 42, 0.06);
}

.workspace-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--secondary-text);
  font-size: 14px;
  line-height: 1;
  padding: 0;
  flex: 0 0 auto;
}

.workspace-tab-close:hover {
  background: #dbe6f3;
  color: var(--text);
}

@media (max-width: 980px) {
  body > main.layout {
    width: calc(100% - 12px) !important;
    margin: 0 6px !important;
    padding-left: 0 !important;
  }

  body > main.layout > .sidebar {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  body > main.layout > .sidebar .tab-button {
    width: auto !important;
    min-width: 112px !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

.entry-form.order-form #orderCertificatePicker.order-certificate-picker {
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
}

.entry-form.order-form #orderCertificatePicker .order-certificate-table-wrap,
.entry-form.socialSecurity-form #orderCertificatePicker .order-certificate-table-wrap {
  display: inline-block !important;
  width: auto !important;
  max-width: max-content !important;
}

.entry-form.order-form #orderCertificatePicker .order-certificate-table {
  width: auto !important;
  table-layout: fixed !important;
}

.entry-form.order-form #orderCertificatePicker .order-certificate-table th,
.entry-form.order-form #orderCertificatePicker .order-certificate-table td {
  padding: 3px !important;
  box-sizing: border-box !important;
}

.entry-form.order-form #orderCertificatePicker .order-certificate-table th:first-child,
.entry-form.order-form #orderCertificatePicker .order-certificate-table td:first-child {
  width: 30px !important;
}

.entry-form.order-form #orderCertificatePicker .order-certificate-table th:nth-child(2),
.entry-form.order-form #orderCertificatePicker .order-certificate-table td:nth-child(2),
.entry-form.order-form #orderCertificatePicker .order-certificate-table th:nth-child(4),
.entry-form.order-form #orderCertificatePicker .order-certificate-table td:nth-child(4) {
  width: 60px !important;
}

.entry-form.order-form #orderCertificatePicker .order-certificate-table th:nth-child(3),
.entry-form.order-form #orderCertificatePicker .order-certificate-table td:nth-child(3) {
  width: 48px !important;
}

.entry-form.order-form #orderCertificatePicker .order-certificate-table input[type="text"] {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 26px !important;
  padding: 3px 4px !important;
  box-sizing: border-box !important;
}

.entry-form.order-form .order-certificate-case-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: max-content;
  max-width: 100%;
}

.entry-form.order-form .order-case-side-fields,
.entry-form.order-form .order-bcert-case-fields {
  min-width: 230px;
}

.entry-form.order-form .order-bcert-case-fields {
  min-width: 410px;
}

.entry-form.order-form .order-case-side-fields .order-case-inline-fields,
.entry-form.order-form .order-bcert-case-fields .order-case-inline-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.entry-form.order-form .order-case-inline-field {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.entry-form.order-form .order-bcert-case-fields .order-case-inline-field {
  grid-template-columns: 132px max-content;
  gap: 12px;
}

.entry-form.order-form .order-case-copy-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.entry-form.order-form .order-case-inline-field input {
  width: 140px;
  min-height: 30px;
  font-size: 14px;
  font-weight: 700;
}

.entry-form.order-form .order-case-inline-field.order-case-number-field input {
  width: 255px;
}

.entry-form.order-form .order-case-inline-field.order-case-password-field input {
  width: 140px;
}

.entry-form.order-form .order-case-inline-field .copy-button {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 13px;
}

.entry-form.order-form .order-title-date-field {
  display: inline-grid;
  grid-template-columns: auto 136px;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.entry-form.order-form .order-title-date-field input {
  width: 136px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 6px 9px;
}

.entry-form.order-form .order-inline-case-title {
  align-items: center;
}

.entry-form.order-form .order-inline-case-title > span {
  padding-bottom: 0;
}

.entry-form.order-form .order-bcert-layout {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: max-content;
  max-width: 100%;
  padding: 0;
}

.entry-form.order-form .order-bcert-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.entry-form.order-form .order-bcert-field {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.entry-form.order-form .order-bcert-field input {
  width: 92px;
  min-height: 30px;
}

/* Unified certificate table accent bar; keep section titles outside table panels. */
.entry-form .talent-certificate-table-wrap,
.entry-form.talent-form .company-account-table-wrap,
.entry-form .talent-bcert-table-wrap,
.talent-certificate-view,
.order-certificate-table-wrap,
.order-certificate-picker .order-certificate-table-wrap {
  padding-left: 10px !important;
  border-left: 4px solid var(--primary) !important;
  border-radius: 6px !important;
  background: transparent !important;
}

.entry-form.talent-form .talent-bcert-card,
.entry-form.idle-form .talent-bcert-card,
.entry-form.enterprise-form .enterprise-bcert-card,
.talent-view-content-row .talent-bcert-view {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.entry-form.talent-form [data-field-key="bCertSection"],
.entry-form.idle-form [data-field-key="bCertSection"],
.entry-form.enterprise-form [data-field-key="bCertSection"] {
  padding: 0 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.entry-form.talent-form [data-field-key="bCertSection"] .action-section-title,
.entry-form.idle-form [data-field-key="bCertSection"] .action-section-title,
.entry-form.enterprise-form [data-field-key="bCertSection"] .action-section-title {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

.entry-form.talent-form [data-field-key="bCertSection"] > span,
.entry-form.idle-form [data-field-key="bCertSection"] > span,
.entry-form.enterprise-form [data-field-key="bCertSection"] > span,
.talent-bcert-view-title {
  background: transparent !important;
}

.talent-basic-view-group {
  grid-column: 1 / -1;
  width: 100%;
}

.talent-basic-view-group .talent-view-section-fields {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.talent-basic-view-group .detail-item {
  flex: 0 0 auto;
  width: 92px;
  min-height: 54px;
}

.talent-basic-view-group .detail-item[data-field-key="idCard"] {
  width: 116px;
}

.talent-basic-view-group .detail-item[data-field-key="peerInfo"] {
  width: 150px;
}

.talent-view-title-row,
.talent-view-content-row {
  grid-template-columns: 300px 74px !important;
  column-gap: 28px !important;
}

.talent-builder-certificate-view .talent-certificate-table {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
}

.talent-builder-certificate-view .talent-certificate-table th:nth-child(1),
.talent-builder-certificate-view .talent-certificate-table td:nth-child(1) {
  width: 72px !important;
}

.talent-builder-certificate-view .talent-certificate-table th:nth-child(2),
.talent-builder-certificate-view .talent-certificate-table td:nth-child(2) {
  width: 22px !important;
}

.talent-builder-certificate-view .talent-certificate-table th:nth-child(3),
.talent-builder-certificate-view .talent-certificate-table td:nth-child(3) {
  width: 72px !important;
}

.talent-builder-certificate-view .talent-certificate-table th:nth-child(4),
.talent-builder-certificate-view .talent-certificate-table td:nth-child(4) {
  width: 68px !important;
}

.talent-certificate-view .talent-bcert-table {
  width: 124px !important;
  min-width: 124px !important;
  max-width: 124px !important;
}

.talent-certificate-view .talent-bcert-table th:nth-child(1),
.talent-certificate-view .talent-bcert-table td:nth-child(1) {
  width: 30px !important;
}

.talent-certificate-view .talent-bcert-table th:nth-child(2),
.talent-certificate-view .talent-bcert-table td:nth-child(2) {
  width: 35px !important;
}

.talent-certificate-view .talent-bcert-table th:nth-child(3),
.talent-certificate-view .talent-bcert-table td:nth-child(3) {
  width: 45px !important;
}

.idle-view-certificate-bcert-section {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

.idle-view-certificate-column {
  display: grid;
  align-content: start;
  gap: 8px;
  width: max-content;
}

.idle-view-certificate-bcert-section .form-section-title {
  margin: 0;
  padding: 0;
}

.idle-view-certificate-bcert-section .idle-view-certificate-row {
  grid-column: auto;
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
}

.idle-view-certificate-bcert-section .idle-view-certificate-card {
  flex-wrap: nowrap;
}

.idle-view-certificate-bcert-section .idle-view-certificate-row[data-field-key="idleBCertView"] {
  gap: 12px;
}

.idle-view-default-section > .detail-section-card-head {
  display: none;
}

.talent-view-title-row,
.talent-view-content-row {
  grid-template-columns: max-content max-content !important;
  column-gap: 28px !important;
}

.talent-builder-certificate-view .talent-certificate-table,
.talent-certificate-view .talent-bcert-table {
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  table-layout: auto !important;
}

.talent-builder-certificate-view .talent-certificate-table th,
.talent-builder-certificate-view .talent-certificate-table td,
.talent-certificate-view .talent-bcert-table th,
.talent-certificate-view .talent-bcert-table td {
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.talent-builder-certificate-view .talent-certificate-table th:nth-child(1),
.talent-builder-certificate-view .talent-certificate-table td:nth-child(1) {
  min-width: 48px !important;
}

.talent-builder-certificate-view .talent-certificate-table th:nth-child(2),
.talent-builder-certificate-view .talent-certificate-table td:nth-child(2),
.talent-certificate-view .talent-bcert-table th:nth-child(1),
.talent-certificate-view .talent-bcert-table td:nth-child(1) {
  min-width: 58px !important;
}

.talent-builder-certificate-view .talent-certificate-table th:nth-child(3),
.talent-builder-certificate-view .talent-certificate-table td:nth-child(3),
.talent-certificate-view .talent-bcert-table th:nth-child(2),
.talent-certificate-view .talent-bcert-table td:nth-child(2) {
  min-width: 96px !important;
}

.talent-builder-certificate-view .talent-certificate-table th:nth-child(4),
.talent-builder-certificate-view .talent-certificate-table td:nth-child(4) {
  min-width: 68px !important;
}

.talent-basic-view-group .detail-item[data-field-key="peerInfo"] {
  width: 190px;
}

.detail-grid.entry-form .copyable-id-card-field,
.detail-grid.entry-form.order-form .order-view-identity-row .copyable-id-card-field,
.detail-grid.entry-form .talent-basic-view-group .copyable-id-card-field {
  width: max-content;
  min-width: 226px;
}

.entry-form.order-form #orderCertificatePicker .order-certificate-table-wrap,
.entry-form.socialSecurity-form #orderCertificatePicker .order-certificate-table-wrap {
  display: block !important;
  width: max-content !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}

.entry-form.order-form .order-certificate-edit-table,
.entry-form.socialSecurity-form .order-certificate-edit-table {
  width: max-content;
  min-width: 0;
  border-collapse: collapse;
  table-layout: auto;
  border-top: 1px solid #dbe3ef;
  border-left: 1px solid #dbe3ef;
}

.entry-form.order-form .order-certificate-edit-table th,
.entry-form.order-form .order-certificate-edit-table td,
.entry-form.socialSecurity-form .order-certificate-edit-table th,
.entry-form.socialSecurity-form .order-certificate-edit-table td {
  width: auto;
  min-width: 0;
  padding: 3px;
  border-right: 1px solid #dbe3ef;
  border-bottom: 1px solid #dbe3ef;
  box-sizing: border-box;
  white-space: nowrap;
}

.entry-form.order-form .order-certificate-edit-table th,
.entry-form.socialSecurity-form .order-certificate-edit-table th {
  background: #eef2f7;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.entry-form.order-form .order-certificate-edit-table input[type="text"],
.entry-form.socialSecurity-form .order-certificate-edit-table input[type="text"] {
  width: auto !important;
  min-width: 0 !important;
  max-width: 28ch;
  min-height: 28px !important;
  padding: 3px 5px !important;
  box-sizing: content-box !important;
}

.entry-form.order-form .order-certificate-edit-table .order-certificate-finished-at,
.entry-form.socialSecurity-form .order-certificate-edit-table .order-certificate-finished-at {
  width: 132px;
  min-height: 28px;
  box-sizing: border-box;
}

.entry-form.order-form .order-certificate-select-cell,
.entry-form.socialSecurity-form .order-certificate-select-cell {
  text-align: center;
}

.entry-form.order-form .order-certificate-case-input,
.entry-form.socialSecurity-form .order-certificate-case-input {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.entry-form.order-form .order-certificate-copy-button,
.entry-form.socialSecurity-form .order-certificate-copy-button {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  color: #475569;
}

.entry-form.order-form .order-certificate-copy-button:hover:not(:disabled),
.entry-form.socialSecurity-form .order-certificate-copy-button:hover:not(:disabled) {
  color: var(--primary);
  border-color: var(--primary);
}

.entry-form.order-form .order-certificate-copy-icon,
.entry-form.socialSecurity-form .order-certificate-copy-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
}

.entry-form.order-form .order-certificate-copy-icon::before,
.entry-form.order-form .order-certificate-copy-icon::after,
.entry-form.socialSecurity-form .order-certificate-copy-icon::before,
.entry-form.socialSecurity-form .order-certificate-copy-icon::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  content: "";
}

.entry-form.order-form .order-certificate-copy-icon::before,
.entry-form.socialSecurity-form .order-certificate-copy-icon::before {
  top: 1px;
  left: 4px;
}

.entry-form.order-form .order-certificate-copy-icon::after,
.entry-form.socialSecurity-form .order-certificate-copy-icon::after {
  top: 4px;
  left: 1px;
  background: #ffffff;
}

.entry-form.socialSecurity-form #orderCertificatePicker {
  grid-column: 1 / -1;
  justify-self: start;
  width: max-content;
  max-width: 100%;
}

.entry-form.talent-form [data-field-key="socialSecurityStatus"] {
  width: max-content;
  min-width: 0;
  justify-self: start;
}

.entry-form.talent-form [data-field-key="socialSecurityStatus"] select {
  field-sizing: content;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: none;
  padding-right: 30px;
}

.entry-form.enterprise-form .company-field .import-control .copy-icon-button,
.id-card-import-control .copy-icon-button,
.query-input-row .copy-icon-button,
.query-result-form .copy-icon-button {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
}

.detail-item .copyable-value-with-icon {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
}

.detail-item .copyable-value-with-icon > span,
.detail-item .copyable-value-with-icon > strong,
.detail-item .copyable-value-with-icon > button:not(.copy-icon-button) {
  display: inline;
  margin: 0;
  overflow-wrap: normal;
  white-space: nowrap;
}

.detail-item .copy-icon-glyph {
  display: inline-block;
  margin: 0;
  color: inherit;
}

.detail-grid.entry-form .detail-item[data-field-key="idCard"] {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none;
  white-space: nowrap;
}

.detail-grid.entry-form .detail-item[data-field-key="idCard"] > span,
.detail-grid.entry-form .detail-item[data-field-key="idCard"] .copy-detail-content strong {
  display: inline;
  flex: 0 0 auto;
  margin: 0;
  overflow-wrap: normal;
  white-space: nowrap;
}

.detail-grid.entry-form .detail-item[data-field-key="idCard"] .copy-detail-content,
.detail-grid.entry-form .detail-item[data-field-key="idCard"] .copy-detail-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: max-content;
  white-space: nowrap;
}

.detail-grid.entry-form .talent-basic-view-group .detail-item[data-field-key="idCard"] {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.detail-grid.entry-form .talent-basic-view-group .detail-item[data-field-key="idCard"] > span {
  display: block;
  width: 100%;
  margin: 0;
}

.entry-form.idle-form [data-field-key="name"] {
  grid-column: 1 / span 2;
  width: max-content;
  max-width: 100%;
}

.entry-form.idle-form [data-field-key="name"] input {
  field-sizing: content;
  width: auto;
  min-width: 96px;
  max-width: 180px;
}

.entry-form.idle-form [data-field-key="idCard"] {
  grid-column: 3 / span 3;
  width: max-content;
  max-width: 100%;
}

.entry-form.idle-form [data-field-key="idCard"] .identity-copy-input-control {
  width: max-content;
  max-width: none;
}

.entry-form.idle-form [data-field-key="idCard"] input {
  field-sizing: content;
  width: auto;
  min-width: 20ch;
  max-width: 24ch;
}

.entry-form.idle-form [data-field-key="talentImport"] {
  grid-column: 6 / span 4;
  width: max-content;
  max-width: 100%;
}

.entry-form.idle-form .idle-talent-import-inline {
  flex-wrap: nowrap;
  width: max-content;
  max-width: 100%;
}

.entry-form.idle-form [data-field-key="talentImport"] label.idle-import-display-field {
  display: grid;
  grid-template-rows: 32px 36px;
  align-items: start;
  gap: 7px;
  min-height: 0;
}

.entry-form.idle-form [data-field-key="talentImport"] .idle-import-display-field span {
  align-self: end;
  white-space: nowrap;
}

.detail-grid.entry-form.order-form .order-view-identity-row .detail-item {
  display: grid;
  grid-template-rows: 16px auto;
  align-content: start;
  align-items: start;
  gap: 6px;
}

.detail-grid.entry-form.order-form .order-view-identity-row .detail-item > span {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 16px;
  white-space: nowrap;
}

.detail-grid.entry-form.order-form .order-view-identity-row .detail-item[data-field-key="registeredCompany"] {
  width: 308px;
  min-width: 308px;
}

.detail-grid.entry-form.order-form .order-view-identity-row .detail-item[data-field-key="name"] {
  width: 116px;
  min-width: 116px;
}

.detail-grid.entry-form.order-form .order-view-identity-row .detail-item[data-field-key="peerInfo"] {
  width: 178px;
  min-width: 178px;
}

.detail-grid.entry-form.order-form .order-view-identity-row .detail-item[data-field-key="idCard"] {
  flex-direction: column;
  width: 286px !important;
  min-width: 286px !important;
}

.detail-grid.entry-form.order-form .order-view-identity-row .copyable-value-with-icon,
.detail-grid.entry-form.order-form .order-view-identity-row .copy-detail-content {
  align-self: start;
  margin: 0;
}

.detail-grid.entry-form.order-form .order-view-receive-issue-fields .detail-item[data-field-key="receiveTotalPrice"],
.detail-grid.entry-form.order-form .order-view-receive-issue-fields .detail-item[data-field-key="issueTotalPrice"] {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 4px;
}

.detail-grid.entry-form.order-form .order-view-receive-issue-fields .detail-item[data-field-key="receiveTotalPrice"] > span,
.detail-grid.entry-form.order-form .order-view-receive-issue-fields .detail-item[data-field-key="issueTotalPrice"] > span {
  margin: 0;
}

.detail-grid.entry-form.order-form .order-view-receive-issue-fields .receive-price-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.detail-grid.entry-form.order-form .order-view-receive-issue-fields .receive-price-cell span {
  display: block;
  margin: 0;
  line-height: 1.2;
}

.detail-grid.entry-form.order-form .order-view-receive-issue-fields .detail-item[data-field-key="receiveTotalPrice"] > strong,
.detail-grid.entry-form.order-form .order-view-receive-issue-fields .detail-item[data-field-key="issueTotalPrice"] > strong {
  display: block;
  margin: 0;
  line-height: 1.2;
  white-space: normal;
}

.entry-form.idle-form .form-section-card[data-section-key="basicInfo"] .form-section-fields {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.entry-form.idle-form .form-section-card[data-section-key="basicInfo"] .field {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
}

.entry-form.idle-form .form-section-card[data-section-key="basicInfo"] [data-field-key="name"],
.entry-form.idle-form .form-section-card[data-section-key="basicInfo"] [data-field-key="idCard"] {
  grid-column: auto;
  margin-left: 0;
}

.entry-form.idle-form .form-section-card[data-section-key="basicInfo"] [data-field-key="talentImport"] {
  grid-column: auto;
  width: max-content;
  max-width: none;
}

.entry-form.idle-form [data-field-key="talentImport"] .idle-import-display-field input {
  field-sizing: content;
  width: auto;
  min-width: 80px;
  max-width: 180px;
}

.entry-form.idle-form [data-field-key="bCertSection"],
.entry-form.idle-form [data-field-key="bCert"],
.entry-form.idle-form [data-field-key="secondBCert"],
.entry-form.idle-form .talent-bcert-card,
.entry-form.idle-form .talent-bcert-table-wrap {
  display: none !important;
}

.entry-form.idle-form [data-field-key="contactSection"] {
  grid-column: 5 / span 4;
  grid-row: 1;
}

.entry-form.idle-form [data-field-key="wechat"] {
  grid-column: 6 / span 2;
  grid-row: 2;
}

.entry-form.idle-form [data-field-key="phone"] {
  grid-column: 8 / span 2;
  grid-row: 2;
}

.entry-form.idle-form [data-field-key="owner"] {
  grid-column: 5 / span 1;
  grid-row: 2;
}

.entry-form.idle-form [data-field-key="followSection"] {
  grid-column: 1 / -1;
  grid-row: 1;
}

.entry-form.idle-form [data-field-key="price"] {
  grid-column: 1 / span 1;
  grid-row: 2;
}

.entry-form.idle-form [data-field-key="priceQuotedAt"] {
  grid-column: 2 / span 2;
  grid-row: 2;
}

.entry-form.idle-form [data-field-key="lastFollowDate"] {
  grid-column: 4 / span 1;
  grid-row: 2;
  margin-left: 0;
}

.entry-form.idle-form [data-field-key="nextFollowDate"] {
  grid-column: 5 / span 1;
  grid-row: 2;
  margin-left: 0;
}

.detail-section-card.order-view-certificate-section {
  border-color: #c7d9f4;
  background: #f4f8ff;
}

.detail-section-card.order-view-certificate-section > .detail-section-card-head,
.detail-section-card.order-view-certificate-section .detail-section-fields > [data-field-key="certificateInfoSection"] {
  display: none;
}

.detail-section-card.order-view-receive-issue-section {
  border-color: #dbe3ef;
  background: #ffffff;
}

.entry-form.order-form .form-section-card[data-section-key="registrationInfo"] .form-section-card-head {
  display: flex;
  padding-bottom: 8px;
  border-bottom: 1px dashed #d7e3f3;
}

.entry-form.order-form .form-section-card[data-section-key="registrationInfo"] .form-section-card-head h3 {
  color: var(--primary);
}

.entry-form.order-form .form-section-card[data-section-key="registrationInfo"] [data-field-key="idCard"] {
  grid-column: 3 / span 4;
}

.entry-form.order-form .form-section-card[data-section-key="registrationInfo"] [data-field-key="idleCertificateImportId"] {
  grid-column: 7 / span 1;
  margin-left: 8px;
  padding-top: 0;
}

/* Keep idle certificate edit sections independent and prevent date fields from colliding. */
.entry-form.idle-form .form-section-card[data-section-key="contactSection"],
.entry-form.idle-form .form-section-card[data-section-key="followSection"] {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.entry-form.idle-form .form-section-card[data-section-key="contactSection"] .form-section-fields {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.entry-form.idle-form .form-section-card[data-section-key="followSection"] .form-section-fields {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.entry-form.idle-form .form-section-card[data-section-key="contactSection"] .form-section-title,
.entry-form.idle-form .form-section-card[data-section-key="followSection"] .form-section-title {
  grid-column: 1 / -1;
}

.entry-form.idle-form .form-section-card[data-section-key="contactSection"] [data-field-key="owner"],
.entry-form.idle-form .form-section-card[data-section-key="contactSection"] [data-field-key="wechat"],
.entry-form.idle-form .form-section-card[data-section-key="contactSection"] [data-field-key="phone"],
.entry-form.idle-form .form-section-card[data-section-key="followSection"] [data-field-key="price"],
.entry-form.idle-form .form-section-card[data-section-key="followSection"] [data-field-key="priceQuotedAt"],
.entry-form.idle-form .form-section-card[data-section-key="followSection"] [data-field-key="lastFollowDate"],
.entry-form.idle-form .form-section-card[data-section-key="followSection"] [data-field-key="nextFollowDate"] {
  grid-column: auto;
  grid-row: auto;
  width: auto;
  min-width: 0;
  margin-left: 0;
}

.entry-form.idle-form .form-section-card[data-section-key="contactSection"] .field input,
.entry-form.idle-form .form-section-card[data-section-key="contactSection"] .field select,
.entry-form.idle-form .form-section-card[data-section-key="followSection"] .field input,
.entry-form.idle-form .form-section-card[data-section-key="followSection"] .field select {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.entry-form.idle-form .form-section-card[data-section-key="followSection"] input[type="date"] {
  min-width: 136px;
}

@media (max-width: 980px) {
  .entry-form.idle-form .form-section-card[data-section-key="contactSection"] .form-section-fields,
  .entry-form.idle-form .form-section-card[data-section-key="followSection"] .form-section-fields {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 640px) {
  .entry-form.idle-form .form-section-card[data-section-key="contactSection"] .form-section-fields,
  .entry-form.idle-form .form-section-card[data-section-key="followSection"] .form-section-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Dashboard cockpit: scoped to the home view so business modules keep the operational light theme. */
body.dashboard-view {
  color-scheme: dark;
  --bg: #020817;
  --panel: #071a35;
  --text: #eefbff;
  --muted: #86abc2;
  --line: rgba(47, 155, 207, 0.34);
  --secondary-text: #5f879f;
  --primary: #19d7f7;
  --primary-dark: #0ba5cc;
  --primary-soft: rgba(25, 215, 247, 0.1);
  --warning: #ffd24a;
  --warning-soft: rgba(255, 210, 74, 0.1);
  --success: #45e6a3;
  --success-soft: rgba(69, 230, 163, 0.1);
  --purple: #9d77ff;
  --purple-soft: rgba(157, 119, 255, 0.1);
  --danger: #ff5c7a;
  --danger-bg: rgba(255, 92, 122, 0.1);
  --soft: rgba(8, 35, 65, 0.72);
  --chart-blue: #19d7f7;
  --chart-green: #45e6a3;
  --chart-orange: #ffd24a;
  --chart-purple: #9d77ff;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(38, 132, 178, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 132, 178, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #061632 0%, #020817 46%, #051126 100%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}

body.dashboard-view .topbar {
  min-height: 62px;
  padding: 10px 18px;
  border-bottom-color: rgba(43, 151, 202, 0.32);
  background: rgba(3, 12, 29, 0.96);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

body.dashboard-view .brand-mark {
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: rgba(25, 215, 247, 0.09);
  color: var(--primary);
  box-shadow: inset 0 0 16px rgba(25, 215, 247, 0.12), 0 0 12px rgba(25, 215, 247, 0.12);
}

body.dashboard-view .brand strong {
  color: var(--text);
}

body.dashboard-view .brand span:last-child {
  color: var(--muted);
}

body.dashboard-view .topbar-entry .secondary-button,
body.dashboard-view .topbar-entry .user-status,
body.dashboard-view .topbar-entry .logout-button {
  border-color: rgba(54, 158, 205, 0.4);
  border-radius: 4px;
  background: rgba(7, 35, 65, 0.78);
  color: var(--text);
}

body.dashboard-view .topbar-entry .secondary-button:hover,
body.dashboard-view .topbar-entry .logout-button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

body.dashboard-view > main.layout {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  width: calc(100% - 24px);
  max-width: 1900px;
  margin: 0 auto;
  padding: 12px 0 24px;
}

body.dashboard-view > main.layout > .sidebar {
  top: 74px;
  width: 190px;
  max-height: calc(100vh - 86px);
  gap: 5px;
  padding: 10px;
  border-color: rgba(43, 151, 202, 0.3);
  border-radius: 4px;
  background: rgba(4, 17, 38, 0.94);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
}

body.dashboard-view > main.layout > .sidebar .tab-button {
  min-height: 38px;
  padding: 0 12px;
  border-color: transparent;
  border-radius: 3px;
  background: transparent;
  color: #7fa7be;
  box-shadow: none;
  font-size: 13px;
}

body.dashboard-view > main.layout > .sidebar .tab-button:hover {
  border-color: rgba(25, 215, 247, 0.3) !important;
  background: rgba(25, 215, 247, 0.08) !important;
  color: #ffffff;
  box-shadow: none;
  transform: translateX(2px);
}

body.dashboard-view > main.layout > .sidebar .tab-button.active {
  border-color: rgba(25, 215, 247, 0.45);
  background: linear-gradient(90deg, rgba(25, 215, 247, 0.18), rgba(25, 215, 247, 0.035));
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--primary), 0 0 16px rgba(25, 215, 247, 0.07) !important;
  transform: none;
}

body.dashboard-view > main.layout > .sidebar .tab-button.active::before {
  display: none;
}

body.dashboard-view .workspace-tabs {
  display: none;
}

body.dashboard-view .workspace-overview {
  gap: 12px;
  margin-bottom: 0;
}

body.dashboard-view .workspace-titlebar {
  min-height: 64px;
  align-items: center;
  padding: 11px 16px;
  border-color: rgba(43, 151, 202, 0.32);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(10, 50, 86, 0.82), rgba(4, 20, 43, 0.84));
  box-shadow: inset 0 0 28px rgba(25, 215, 247, 0.025);
}

body.dashboard-view .workspace-title-copy h1 {
  color: var(--text);
  font-size: 21px;
}

body.dashboard-view .workspace-title-copy p:last-child {
  color: var(--muted);
  font-size: 12px;
}

body.dashboard-view .summary-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

body.dashboard-view .dashboard-panel,
body.dashboard-view .dashboard-kpi-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(43, 151, 202, 0.34);
  border-radius: 4px;
  background: rgba(5, 24, 52, 0.9);
  box-shadow: inset 0 0 30px rgba(25, 215, 247, 0.025), 0 12px 28px rgba(0, 0, 0, 0.16);
}

body.dashboard-view .dashboard-panel::before,
body.dashboard-view .dashboard-kpi-card::before {
  position: absolute;
  z-index: 2;
  top: -1px;
  left: 14px;
  width: 30px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(25, 215, 247, 0.65);
  content: "";
}

body.dashboard-view .dashboard-panel-head {
  min-height: 48px;
  align-items: center;
  margin: -16px -16px 4px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(43, 151, 202, 0.22);
  background: linear-gradient(90deg, rgba(14, 72, 111, 0.28), transparent);
}

body.dashboard-view .dashboard-panel-head h3 {
  color: #e8fbff;
  font-size: 14px;
}

body.dashboard-view .dashboard-panel-head p {
  margin-top: 3px;
  color: #648ba2;
  font-size: 10px;
}

body.dashboard-view .dashboard-cockpit-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(500px, 1.7fr) minmax(270px, 0.88fr);
  gap: 12px;
  align-items: stretch;
}

body.dashboard-view .dashboard-cockpit-grid > .dashboard-panel {
  min-height: 354px;
  padding: 16px;
}

body.dashboard-view .dashboard-todo-list {
  gap: 0;
  padding-top: 5px;
}

body.dashboard-view .dashboard-todo-item {
  min-height: 43px;
  padding: 8px 6px;
  border: 0;
  border-bottom: 1px solid rgba(43, 151, 202, 0.16);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

body.dashboard-view .dashboard-todo-item:last-child {
  border-bottom: 0;
}

body.dashboard-view .dashboard-todo-item:hover {
  background: rgba(25, 215, 247, 0.055);
}

body.dashboard-view .dashboard-todo-item span {
  color: #a9c7d8;
  font-size: 11px;
}

body.dashboard-view .dashboard-todo-item strong {
  display: grid;
  min-width: 32px;
  height: 24px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--warning);
  font-size: 13px;
}

body.dashboard-view .dashboard-list-empty {
  border-color: rgba(53, 142, 185, 0.35);
  border-radius: 3px;
  background: rgba(6, 30, 58, 0.62);
  color: var(--muted);
}

body.dashboard-view .dashboard-command-panel {
  background:
    linear-gradient(180deg, rgba(7, 35, 68, 0.96), rgba(4, 20, 44, 0.94));
}

body.dashboard-view .dashboard-live-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}

body.dashboard-view .dashboard-live-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

body.dashboard-view .dashboard-command-core {
  display: grid;
  min-height: 172px;
  grid-template-columns: minmax(100px, 1fr) minmax(180px, 1.35fr) minmax(100px, 1fr);
  align-items: center;
  gap: 8px;
}

body.dashboard-view .dashboard-command-side {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid rgba(25, 215, 247, 0.34);
  border-bottom: 1px solid rgba(25, 215, 247, 0.34);
  background: rgba(8, 44, 78, 0.45);
  color: var(--text);
  text-align: left;
}

body.dashboard-view .dashboard-command-side::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 44%;
  height: 2px;
  background: var(--primary);
  content: "";
}

body.dashboard-view .dashboard-command-side-right {
  text-align: right;
}

body.dashboard-view .dashboard-command-side-right::after {
  right: auto;
  left: 0;
  background: var(--warning);
}

body.dashboard-view .dashboard-command-side span {
  color: var(--muted);
  font-size: 10px;
}

body.dashboard-view .dashboard-command-side strong {
  margin: 3px 0;
  color: var(--primary);
  font-size: 27px;
  line-height: 1;
}

body.dashboard-view .dashboard-command-side-right strong {
  color: var(--warning);
}

body.dashboard-view .dashboard-command-side small {
  overflow: hidden;
  color: #628ba3;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dashboard-view .dashboard-completion-gauge {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

body.dashboard-view .dashboard-gauge-ring {
  display: grid;
  width: 136px;
  height: 136px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #061630 0 59%, transparent 60%),
    conic-gradient(from 225deg, var(--primary) 0 var(--completion-angle), rgba(47, 125, 163, 0.2) var(--completion-angle) 360deg);
  box-shadow: 0 0 22px rgba(25, 215, 247, 0.1), inset 0 0 0 1px rgba(25, 215, 247, 0.1);
}

body.dashboard-view .dashboard-gauge-ring strong,
body.dashboard-view .dashboard-gauge-ring small {
  grid-area: 1 / 1;
}

body.dashboard-view .dashboard-gauge-ring strong {
  margin-top: -14px;
  color: #67ecff;
  font-size: 27px;
  line-height: 1;
}

body.dashboard-view .dashboard-gauge-ring small {
  margin-top: 31px;
  color: var(--muted);
  font-size: 10px;
}

body.dashboard-view .dashboard-completion-gauge em {
  color: #5f879f;
  font-size: 9px;
  font-style: normal;
}

body.dashboard-view .dashboard-command-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(43, 151, 202, 0.25);
  border-radius: 3px;
  background: rgba(4, 18, 40, 0.48);
}

body.dashboard-view .dashboard-command-metrics .dashboard-metric-card {
  min-height: 91px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.dashboard-view .dashboard-command-metrics .dashboard-metric-card + .dashboard-metric-card {
  border-left: 1px solid rgba(43, 151, 202, 0.2);
}

body.dashboard-view .dashboard-command-metrics .dashboard-metric-card::after {
  display: none;
}

body.dashboard-view .dashboard-metric-card span {
  color: var(--muted);
  font-size: 10px;
}

body.dashboard-view .dashboard-metric-card strong {
  color: var(--primary);
  font-size: 23px;
}

body.dashboard-view .dashboard-metric-card small {
  color: #577e96;
  font-size: 9px;
}

body.dashboard-view .dashboard-metric-card-warning strong {
  color: var(--warning);
}

body.dashboard-view .dashboard-metric-card-danger strong {
  color: var(--danger);
}

body.dashboard-view .dashboard-metric-card-success strong {
  color: var(--success);
}

body.dashboard-view .dashboard-order-status-panel .dashboard-donut-row {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  min-height: 250px;
}

body.dashboard-view .dashboard-donut {
  width: 108px;
  height: 108px;
  background:
    radial-gradient(circle at center, #061630 0 52%, transparent 53%),
    conic-gradient(var(--chart-blue) 0 calc((var(--p1) / var(--total)) * 1turn), var(--chart-green) 0 calc(((var(--p1) + var(--p2)) / var(--total)) * 1turn), var(--chart-orange) 0 calc(((var(--p1) + var(--p2) + var(--p3)) / var(--total)) * 1turn), var(--chart-purple) 0 calc(((var(--p1) + var(--p2) + var(--p3) + var(--p4)) / var(--total)) * 1turn), rgba(54, 111, 143, 0.24) 0);
  box-shadow: inset 0 0 0 1px rgba(50, 149, 195, 0.26), 0 0 16px rgba(25, 215, 247, 0.07);
}

body.dashboard-view .dashboard-donut strong {
  color: var(--text);
}

body.dashboard-view .dashboard-donut span {
  color: var(--muted);
}

body.dashboard-view .dashboard-reminder-grid {
  gap: 5px;
}

body.dashboard-view .dashboard-reminder-chip {
  min-height: 35px;
  padding: 6px 8px;
  border-color: rgba(43, 151, 202, 0.22);
  border-radius: 2px;
  background: rgba(8, 39, 70, 0.56);
  color: var(--text);
}

body.dashboard-view button.dashboard-reminder-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

body.dashboard-view .dashboard-reminder-chip span {
  color: var(--muted);
  font-size: 9px;
}

body.dashboard-view .dashboard-reminder-chip strong {
  color: var(--primary);
  font-size: 14px;
}

body.dashboard-view .dashboard-analysis-grid {
  display: grid;
  grid-template-columns: minmax(245px, 0.78fr) minmax(480px, 1.62fr) minmax(245px, 0.78fr);
  gap: 12px;
  align-items: stretch;
}

body.dashboard-view .dashboard-analysis-grid > * {
  min-height: 300px;
}

body.dashboard-view .dashboard-analysis-grid .dashboard-kpi-card {
  align-content: start;
  padding: 14px;
  color: var(--text);
}

body.dashboard-view .dashboard-analysis-grid .dashboard-kpi-card > span {
  min-height: 34px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(43, 151, 202, 0.22);
  color: #e8fbff;
  font-size: 14px;
}

body.dashboard-view .dashboard-analysis-grid .dashboard-kpi-distribution {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 225px;
}

body.dashboard-view .dashboard-analysis-grid .dashboard-kpi-donut {
  width: 116px;
  height: 116px;
}

body.dashboard-view .dashboard-analysis-grid .dashboard-kpi-distribution-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.dashboard-view .dashboard-kpi-card:hover {
  border-color: rgba(25, 215, 247, 0.68);
  background: rgba(7, 32, 61, 0.94);
  transform: translateY(-1px);
}

body.dashboard-view .dashboard-trend-panel {
  min-height: 300px;
}

body.dashboard-view .dashboard-trend-body {
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: center;
  gap: 16px;
}

body.dashboard-view .dashboard-trend-chart {
  min-height: 225px;
}

body.dashboard-view .dashboard-trend-chart svg {
  height: 225px;
}

body.dashboard-view .dashboard-trend-legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: start;
  gap: 12px;
  margin: 0;
}

body.dashboard-view .dashboard-trend-legend span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

body.dashboard-view .dashboard-trend-legend i {
  width: 22px;
  height: 4px;
}

body.dashboard-view .dashboard-trend-gridline {
  stroke: rgba(80, 146, 181, 0.22);
}

body.dashboard-view .dashboard-trend-xline {
  stroke: rgba(80, 146, 181, 0.11);
}

body.dashboard-view .dashboard-trend-axis-label {
  fill: #668ba2;
  font-size: 14px;
  font-weight: 600;
}

body.dashboard-view .dashboard-trend-line {
  filter: drop-shadow(0 0 3px var(--trend-color));
}

body.dashboard-view .dashboard-trend-point {
  fill: #061630;
}

body.dashboard-view .business-flow-panel {
  padding: 16px;
  overflow-x: auto;
}

body.dashboard-view .business-flow-diagram,
body.dashboard-view .dashboard-main-grid .business-flow-diagram {
  grid-template-columns: minmax(110px, 0.68fr) 1px minmax(152px, 0.82fr) 1px minmax(900px, 3.2fr);
  gap: 10px;
  min-height: 300px;
  padding: 12px;
  border-color: rgba(43, 151, 202, 0.28);
  border-radius: 3px;
  background:
    linear-gradient(rgba(48, 127, 166, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 127, 166, 0.11) 1px, transparent 1px),
    rgba(3, 18, 39, 0.7);
  background-size: 18px 18px;
}

body.dashboard-view .business-flow-stage-title,
body.dashboard-view .business-flow-stage-title span {
  color: #dff8ff;
}

body.dashboard-view .business-flow-divider {
  border-left-color: var(--primary);
  opacity: 0.45;
}

body.dashboard-view .flow-box {
  border-color: #4c91b4;
  border-radius: 3px;
  background: rgba(7, 32, 61, 0.96);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), inset 0 0 14px rgba(25, 215, 247, 0.035);
}

body.dashboard-view .flow-box:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 18px rgba(25, 215, 247, 0.14);
}

body.dashboard-view .flow-box-order {
  border-color: var(--primary);
  background: rgba(25, 215, 247, 0.11);
}

body.dashboard-view .flow-box-expire {
  border-color: var(--warning);
  background: rgba(255, 210, 74, 0.08);
}

body.dashboard-view .flow-box small {
  color: #739ab0;
}

body.dashboard-view .flow-arrow,
body.dashboard-view .flow-svg-line {
  background: var(--primary);
  stroke: var(--primary);
}

body.dashboard-view .flow-arrow::after {
  border-top-color: var(--primary);
  border-right-color: var(--primary);
}

body.dashboard-view .flow-order-lines marker path {
  fill: var(--primary);
}

body.dashboard-view .flow-svg-label {
  fill: var(--warning);
}

body.dashboard-view .business-flow-note {
  border-color: rgba(43, 151, 202, 0.24);
  border-radius: 3px;
  background: rgba(6, 29, 56, 0.82);
  color: var(--muted);
}

body.dashboard-view .dashboard-alert-button {
  border-color: rgba(255, 92, 122, 0.6);
  border-radius: 18px;
  background: rgba(51, 13, 32, 0.9);
  color: #ff8ba2;
  box-shadow: 0 0 22px rgba(255, 92, 122, 0.18);
}

body.dashboard-view .dashboard-alert-panel {
  border-color: rgba(43, 151, 202, 0.34);
  border-radius: 4px;
  background: #061630;
  color: var(--text);
}

body.dashboard-view .dashboard-alert-head {
  border-bottom-color: rgba(43, 151, 202, 0.22);
}

body.dashboard-view .dashboard-list-item {
  border-color: rgba(43, 151, 202, 0.24);
  border-radius: 3px;
  background: rgba(8, 35, 65, 0.72);
  color: var(--text);
}

body.dashboard-view .dashboard-list-item:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

body.dashboard-view .dashboard-list-item span,
body.dashboard-view .dashboard-list-main span {
  color: var(--muted);
}

/* Shared navigation states and page/table headers stay consistent across modules. */
body > main.layout > .sidebar .tab-button {
  border-color: transparent;
  border-radius: 3px;
  background: transparent;
  color: #4e5969;
  font-size: 13px;
  box-shadow: none;
}

body > main.layout > .sidebar .tab-button:hover {
  border-color: #c7d7f4 !important;
  background: #f2f6ff !important;
  color: #0e42d2;
  box-shadow: none !important;
  transform: translateX(2px);
}

body > main.layout > .sidebar .tab-button.active {
  border-color: #b8cdfa;
  background: linear-gradient(90deg, #e8f0ff, #f5f8ff);
  color: #0e42d2;
  box-shadow: inset 3px 0 0 #165dff, 0 4px 12px rgba(22, 93, 255, 0.08) !important;
  transform: none;
}

body > main.layout > .sidebar .tab-button.active::before {
  display: none;
}

body > main.layout > .sidebar .tab-button:active,
body.dashboard-view > main.layout > .sidebar .tab-button:active {
  border-color: #8eaff2 !important;
  background: #dce8ff !important;
  box-shadow: inset 3px 0 0 #165dff !important;
  transform: translateX(1px) scale(0.99) !important;
}

body > main.layout > .sidebar .tab-button:focus-visible {
  outline: 0;
  border-color: #8eaff2 !important;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.14) !important;
}

.workspace-titlebar {
  border-color: #dce5ef;
  background: linear-gradient(90deg, #ffffff, #f4f8ff);
  box-shadow: 0 2px 8px rgba(29, 33, 41, 0.04);
}

.table-wrap thead th {
  border-right-color: #d5e0ed;
  border-bottom-color: #c9d7e7;
  background: #f1f6ff;
  color: #1d2129;
}

.table-wrap .table-sort-button {
  padding: 2px 4px;
  border-radius: 3px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.table-wrap .table-sort-button:hover {
  background: #e8f0ff;
  color: #0e42d2;
}

.table-wrap .table-sort-button:active {
  background: #dce8ff;
  color: #0e42d2;
}

@media (max-width: 1320px) {
  body.dashboard-view .dashboard-cockpit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-view .dashboard-command-panel {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.dashboard-view .dashboard-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-view .dashboard-analysis-grid .dashboard-trend-panel {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 980px) {
  body.dashboard-view > main.layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: calc(100% - 12px) !important;
    margin: 0 6px !important;
  }

  body.dashboard-view > main.layout > .sidebar {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  body.dashboard-view > main.layout > .sidebar .tab-button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.dashboard-view .dashboard-cockpit-grid,
  body.dashboard-view .dashboard-analysis-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dashboard-view .dashboard-command-panel,
  body.dashboard-view .dashboard-analysis-grid .dashboard-trend-panel {
    grid-column: auto;
  }

  body.dashboard-view .dashboard-command-panel {
    order: -1;
  }

  body.dashboard-view .business-flow-diagram,
  body.dashboard-view .dashboard-main-grid .business-flow-diagram {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  body.dashboard-view .business-flow-divider {
    width: 100%;
    min-height: 1px;
    border-top-color: var(--primary);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body.dashboard-view .topbar {
    align-items: center;
    flex-wrap: nowrap;
    padding: 9px 10px;
  }

  body.dashboard-view .topbar-entry:empty {
    display: none;
  }

  body.dashboard-view .topbar-actions {
    width: auto;
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
  }

  body.dashboard-view .topbar-actions .user-status {
    min-width: 0;
    max-width: calc(100% - 92px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.dashboard-view .topbar-actions .secondary-button {
    flex: 0 0 auto;
  }

  body.dashboard-view .dashboard-alert-popover {
    top: 82px;
    right: auto;
    left: 10px;
  }

  body.dashboard-view .brand span:last-child,
  body.dashboard-view .topbar-actions .user-status {
    display: none;
  }

  body.dashboard-view .workspace-titlebar {
    padding: 10px 12px;
  }

  body.dashboard-view .workspace-title-row {
    display: grid;
    gap: 3px;
  }

  body.dashboard-view .workspace-title-copy h1 {
    font-size: 17px;
  }

  body.dashboard-view .workspace-title-copy p:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.dashboard-view .dashboard-command-core {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-view .dashboard-command-side {
    width: 100%;
    max-width: 100%;
  }

  body.dashboard-view .dashboard-completion-gauge {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.dashboard-view .dashboard-command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard-view .dashboard-command-metrics .dashboard-metric-card:nth-child(3) {
    border-top: 1px solid rgba(43, 151, 202, 0.2);
    border-left: 0;
  }

  body.dashboard-view .dashboard-command-metrics .dashboard-metric-card:nth-child(4) {
    border-top: 1px solid rgba(43, 151, 202, 0.2);
  }

  body.dashboard-view .dashboard-order-status-panel .dashboard-donut-row,
  body.dashboard-view .dashboard-analysis-grid .dashboard-kpi-distribution {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dashboard-view .dashboard-donut {
    justify-self: center;
  }

  body.dashboard-view .dashboard-analysis-grid .dashboard-kpi-distribution-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dashboard-view .dashboard-trend-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.dashboard-view .dashboard-trend-legend {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  body.dashboard-view .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.dashboard-view .topbar-actions {
    width: 100%;
    margin-left: 0;
  }

  body.dashboard-view .dashboard-alert-popover {
    top: 82px;
    right: auto;
    left: 10px;
  }
}

/* Keep the cockpit layout while aligning its surfaces with the light operational pages. */
body.dashboard-view {
  color-scheme: light;
  --bg: #f5f7fa;
  --panel: #ffffff;
  --text: #1d2129;
  --muted: #4e5969;
  --line: #d7dfe8;
  --secondary-text: #86909c;
  --primary: #165dff;
  --primary-dark: #0e42d2;
  --primary-soft: #e8f0ff;
  --warning: #ff7d00;
  --warning-soft: #fff7e8;
  --success: #00b42a;
  --success-soft: #e8ffea;
  --purple: #722ed1;
  --purple-soft: #f2eafa;
  --danger: #f53f3f;
  --danger-bg: #fff2f0;
  --soft: #f7f8fa;
  --chart-blue: #165dff;
  --chart-green: #00b42a;
  --chart-orange: #ff7d00;
  --chart-purple: #722ed1;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
}

body.dashboard-view .topbar {
  border-bottom-color: #dfe5ec;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(29, 33, 41, 0.06);
}

body.dashboard-view .brand-mark {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.08);
}

body.dashboard-view .brand strong {
  color: var(--text);
}

body.dashboard-view .brand span:last-child {
  color: var(--muted);
}

body.dashboard-view .topbar-entry .secondary-button,
body.dashboard-view .topbar-entry .user-status,
body.dashboard-view .topbar-entry .logout-button,
body.dashboard-view .topbar-actions .secondary-button,
body.dashboard-view .topbar-actions .user-status,
body.dashboard-view .topbar-actions .logout-button {
  border-color: #cfd8e6;
  background: #ffffff;
  color: var(--text);
}

body.dashboard-view .topbar-actions .user-status {
  border-color: #bfdbfe;
  background: #eef4ff;
  color: var(--primary-dark);
}

body.dashboard-view .topbar-entry .secondary-button:hover,
body.dashboard-view .topbar-entry .logout-button:hover,
body.dashboard-view .topbar-actions .secondary-button:hover,
body.dashboard-view .topbar-actions .logout-button:hover {
  border-color: #93b4f5;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

body.dashboard-view > main.layout > .sidebar {
  border-color: #dfe5ec;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(29, 33, 41, 0.06);
}

body.dashboard-view > main.layout > .sidebar .tab-button {
  border-color: transparent;
  background: transparent;
  color: #4e5969;
}

body.dashboard-view > main.layout > .sidebar .tab-button:hover {
  border-color: #c7d7f4 !important;
  background: #f2f6ff !important;
  color: var(--primary-dark);
}

body.dashboard-view > main.layout > .sidebar .tab-button.active {
  border-color: #b8cdfa;
  background: linear-gradient(90deg, #e8f0ff, #f5f8ff);
  color: var(--primary-dark);
  box-shadow: inset 3px 0 0 var(--primary), 0 4px 12px rgba(22, 93, 255, 0.08) !important;
}

body.dashboard-view .workspace-titlebar {
  border-color: #dce5ef;
  background: linear-gradient(90deg, #ffffff, #f4f8ff);
  box-shadow: 0 2px 8px rgba(29, 33, 41, 0.04);
}

body.dashboard-view .workspace-title-copy h1 {
  color: var(--text);
}

body.dashboard-view .workspace-title-copy p:last-child {
  color: var(--muted);
}

body.dashboard-view .dashboard-panel,
body.dashboard-view .dashboard-kpi-card {
  border-color: #dce5ef;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 33, 41, 0.055);
}

body.dashboard-view .dashboard-panel::before,
body.dashboard-view .dashboard-kpi-card::before {
  background: var(--primary);
  box-shadow: none;
}

body.dashboard-view .dashboard-panel-head {
  border-bottom-color: #e5ebf2;
  background: linear-gradient(90deg, #f1f6ff, #ffffff);
}

body.dashboard-view .dashboard-panel-head h3 {
  color: var(--text);
}

body.dashboard-view .dashboard-panel-head p {
  color: var(--muted);
}

body.dashboard-view .dashboard-todo-item {
  border-bottom-color: #edf1f5;
  color: var(--text);
}

body.dashboard-view .dashboard-todo-item:hover {
  background: #f4f8ff;
}

body.dashboard-view .dashboard-todo-item span {
  color: var(--muted);
}

body.dashboard-view .dashboard-todo-item strong {
  color: var(--warning);
  background: var(--warning-soft);
}

body.dashboard-view .dashboard-list-empty {
  border-color: #cfd8e6;
  background: #f7f8fa;
  color: var(--muted);
}

body.dashboard-view .dashboard-command-panel {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

body.dashboard-view .dashboard-live-state {
  color: var(--muted);
}

body.dashboard-view .dashboard-command-side {
  border-top-color: #9fc0ff;
  border-bottom-color: #c9dbff;
  background: #f2f7ff;
  color: var(--text);
}

body.dashboard-view .dashboard-command-side::after {
  background: var(--primary);
}

body.dashboard-view .dashboard-command-side-right {
  border-top-color: #ffd095;
  border-bottom-color: #ffe0b8;
  background: #fff8ee;
}

body.dashboard-view .dashboard-command-side-right::after {
  background: var(--warning);
}

body.dashboard-view .dashboard-command-side span,
body.dashboard-view .dashboard-command-side small {
  color: var(--muted);
}

body.dashboard-view .dashboard-command-side strong {
  color: var(--primary);
}

body.dashboard-view .dashboard-command-side-right strong {
  color: var(--warning);
}

body.dashboard-view .dashboard-gauge-ring {
  background:
    radial-gradient(circle at center, #ffffff 0 59%, transparent 60%),
    conic-gradient(from 225deg, var(--primary) 0 var(--completion-angle), #dce7f5 var(--completion-angle) 360deg);
  box-shadow: inset 0 0 0 1px #d7e4f4, 0 8px 20px rgba(22, 93, 255, 0.08);
}

body.dashboard-view .dashboard-gauge-ring strong {
  color: var(--primary);
}

body.dashboard-view .dashboard-gauge-ring small,
body.dashboard-view .dashboard-completion-gauge em {
  color: var(--muted);
}

body.dashboard-view .dashboard-command-metrics {
  border-color: #dce5ef;
  background: #ffffff;
}

body.dashboard-view .dashboard-command-metrics .dashboard-metric-card + .dashboard-metric-card {
  border-left-color: #e5ebf2;
}

body.dashboard-view .dashboard-metric-card span,
body.dashboard-view .dashboard-metric-card small {
  color: var(--muted);
}

body.dashboard-view .dashboard-metric-card strong {
  color: var(--primary);
}

body.dashboard-view .dashboard-metric-card-warning strong {
  color: var(--warning);
}

body.dashboard-view .dashboard-metric-card-danger strong {
  color: var(--danger);
}

body.dashboard-view .dashboard-metric-card-success strong {
  color: var(--success);
}

body.dashboard-view .dashboard-donut {
  background:
    radial-gradient(circle at center, #ffffff 0 52%, transparent 53%),
    conic-gradient(var(--chart-blue) 0 calc((var(--p1) / var(--total)) * 1turn), var(--chart-green) 0 calc(((var(--p1) + var(--p2)) / var(--total)) * 1turn), var(--chart-orange) 0 calc(((var(--p1) + var(--p2) + var(--p3)) / var(--total)) * 1turn), var(--chart-purple) 0 calc(((var(--p1) + var(--p2) + var(--p3) + var(--p4)) / var(--total)) * 1turn), #e5eaf1 0);
  box-shadow: inset 0 0 0 1px #dce5ef;
}

body.dashboard-view .dashboard-donut strong {
  color: var(--text);
}

body.dashboard-view .dashboard-donut span {
  color: var(--muted);
}

body.dashboard-view .dashboard-reminder-chip {
  border-color: #e1e7ee;
  background: #f7f8fa;
  color: var(--text);
}

body.dashboard-view button.dashboard-reminder-chip:hover {
  border-color: #9ebbf4;
  background: #eef4ff;
}

body.dashboard-view .dashboard-reminder-chip span {
  color: var(--muted);
}

body.dashboard-view .dashboard-reminder-chip strong {
  color: var(--primary);
}

body.dashboard-view .dashboard-analysis-grid .dashboard-kpi-card {
  color: var(--text);
}

body.dashboard-view .dashboard-analysis-grid .dashboard-kpi-card > span {
  border-bottom-color: #e5ebf2;
  color: var(--text);
}

body.dashboard-view .dashboard-kpi-card:hover {
  border-color: #9ebbf4;
  background: #f9fbff;
}

body.dashboard-view .dashboard-trend-gridline {
  stroke: #dce4ed;
}

body.dashboard-view .dashboard-trend-xline {
  stroke: #eef2f6;
}

body.dashboard-view .dashboard-trend-axis-label {
  fill: #86909c;
}

body.dashboard-view .dashboard-trend-line {
  filter: none;
}

body.dashboard-view .dashboard-trend-point {
  fill: #ffffff;
}

body.dashboard-view .business-flow-diagram,
body.dashboard-view .dashboard-main-grid .business-flow-diagram {
  border-color: #dce5ef;
  background:
    linear-gradient(#e9eef5 1px, transparent 1px),
    linear-gradient(90deg, #e9eef5 1px, transparent 1px),
    #f8fafc;
  background-size: 18px 18px;
}

body.dashboard-view .business-flow-stage-title,
body.dashboard-view .business-flow-stage-title span {
  color: var(--text);
}

body.dashboard-view .business-flow-divider {
  border-left-color: #8aa9dc;
}

body.dashboard-view .flow-box {
  border-color: #8fa8c8;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(29, 33, 41, 0.08);
}

body.dashboard-view .flow-box:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.12);
}

body.dashboard-view .flow-box-order {
  border-color: var(--primary);
  background: #eef4ff;
}

body.dashboard-view .flow-box-expire {
  border-color: var(--warning);
  background: #fff8ed;
}

body.dashboard-view .flow-box small {
  color: var(--muted);
}

body.dashboard-view .flow-arrow,
body.dashboard-view .flow-svg-line {
  background: var(--primary);
  stroke: var(--primary);
}

body.dashboard-view .flow-order-lines marker path {
  fill: var(--primary);
}

body.dashboard-view .flow-svg-label {
  fill: #d46b08;
}

body.dashboard-view .business-flow-note {
  border-color: #dce5ef;
  background: #ffffff;
  color: var(--muted);
}

body.dashboard-view .dashboard-alert-button {
  border-color: #fecaca;
  background: #fff7ed;
  color: #b91c1c;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.12);
}

body.dashboard-view .dashboard-alert-panel {
  border-color: #dce5ef;
  background: #ffffff;
  color: var(--text);
}

body.dashboard-view .dashboard-alert-head {
  border-bottom-color: #e5ebf2;
}

body.dashboard-view .dashboard-list-item {
  border-color: #e1e7ee;
  background: #f7f8fa;
  color: var(--text);
}

body.dashboard-view .dashboard-list-item:hover {
  border-color: #9ebbf4;
  background: #eef4ff;
}

body.dashboard-view .dashboard-list-item span,
body.dashboard-view .dashboard-list-main span {
  color: var(--muted);
}

/* Dashboard shell follows the same spacing and title hierarchy as enterprise pages. */
body.dashboard-view .topbar {
  min-height: 64px;
  padding: 12px 24px;
}

body.dashboard-view .brand-mark {
  border-radius: 10px;
}

body.dashboard-view > main.layout {
  padding-top: 16px;
  padding-right: 0;
  padding-bottom: 40px;
}

body.dashboard-view > main.layout > .sidebar {
  gap: 8px !important;
}

body.dashboard-view .workspace-tabs {
  display: flex;
}

body.dashboard-view .workspace-overview {
  gap: 14px;
  margin-bottom: 16px;
}

body.dashboard-view .workspace-titlebar {
  min-height: 0;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 10px;
}

body.dashboard-view .workspace-title-copy h1 {
  font-size: 26px;
}

body.dashboard-view .workspace-title-copy p:last-child {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  body.dashboard-view > main.layout > .sidebar {
    overflow: visible !important;
    flex-wrap: wrap !important;
  }

  body.dashboard-view > main.layout > .sidebar .tab-button {
    width: auto !important;
    min-width: 112px !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (min-width: 1321px) {
  body.dashboard-view .dashboard-cockpit-grid,
  body.dashboard-view .dashboard-analysis-grid {
    grid-template-columns: minmax(250px, 0.82fr) minmax(500px, 1.7fr) minmax(270px, 0.88fr);
  }

  body.dashboard-view .dashboard-cockpit-grid > .dashboard-panel {
    min-height: 320px;
  }

  body.dashboard-view .dashboard-command-core {
    min-height: 148px;
  }

  body.dashboard-view .dashboard-gauge-ring {
    width: 118px;
    height: 118px;
  }

  body.dashboard-view .dashboard-command-metrics .dashboard-metric-card {
    min-height: 76px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.dashboard-view .dashboard-todo-item {
    min-height: 39px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body.dashboard-view .dashboard-order-status-panel .dashboard-donut-row {
    min-height: 210px;
  }

  body.dashboard-view .dashboard-analysis-grid > *,
  body.dashboard-view .dashboard-trend-panel {
    min-height: 260px;
  }

  body.dashboard-view .dashboard-analysis-grid .dashboard-kpi-distribution {
    min-height: 180px;
  }

  body.dashboard-view .dashboard-trend-chart,
  body.dashboard-view .dashboard-trend-chart svg {
    min-height: 180px;
    height: 180px;
  }
}
