:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #18232f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  background: #f5f7fa;
  overflow: hidden;
}

#app {
  height: 100vh;
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.top-header {
  height: 58px;
  display: grid;
  grid-template-columns: 176px minmax(320px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid #dce4ec;
  flex: 0 0 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #078b8f;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.top-nav {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.top-nav button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #334155;
  font-weight: 800;
  padding: 0 2px;
}

.top-nav button.active {
  color: #05777b;
  border-bottom-color: #078b8f;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.login-panel {
  display: grid;
  grid-template-columns: 112px 104px 58px;
  align-items: center;
  gap: 6px;
  max-width: 292px;
}

.login-panel input {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  padding: 0 8px;
  font-weight: 700;
}

.login-panel .ghost-button {
  min-height: 32px;
  padding: 0 10px;
}

.login-panel small {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 11px;
  line-height: 1.2;
}

.session-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0 8px 0 10px;
}

.session-chip span {
  max-width: 132px;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-chip button {
  border: 0;
  background: transparent;
  color: #078b8f;
  font-weight: 850;
}

.ghost-button,
.store-select,
.avatar-button,
.toolbar button {
  min-height: 36px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  padding: 0 12px;
  font-weight: 750;
}

.avatar-button {
  color: #ffffff;
  background: #233044;
  border-color: #233044;
}

.role-switch {
  height: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(46px, 1fr));
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #f8fafc;
  padding: 2px;
}

.role-switch button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  padding: 0 10px;
  font-weight: 850;
}

.role-switch button.active {
  background: #078b8f;
  color: #ffffff;
}

.staff-context-select {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 10px;
}

.staff-context-select span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.staff-context-select select {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #334155;
  font-weight: 850;
  outline: 0;
}

.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: 0;
  height: calc(100vh - 58px);
  overflow: hidden;
}

.sidebar {
  padding: 12px;
  background: #ffffff;
  border-right: 1px solid #dce4ec;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}

.side-nav button.active {
  background: #078b8f;
  color: #ffffff;
}

.side-nav b {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 12px;
}

.store-card {
  border: 1px solid #dce4ec;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.store-card span,
.store-card div span,
.metric-card span,
.metric-card small,
.panel-head p,
.task-row small,
.device-card small,
.locker-cell span,
.drawer-head span,
.detail-list dt,
.drawer-section p,
.note-box span,
.simple-table span,
.simple-table em,
.expense-table span,
.expense-table em,
.log-list span,
.log-list p {
  color: #64748b;
}

.store-card strong {
  display: block;
  margin: 6px 0 10px;
  color: #078b8f;
}

.store-card div {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
}

.content-grid {
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 0.95fr) minmax(280px, 0.85fr);
  gap: 10px;
  padding: 12px;
  align-items: stretch;
  overflow: hidden;
}

.content-grid.single {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: start;
  overflow: auto;
}

.main-column,
.right-column {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview-grid {
  grid-template-columns: minmax(390px, 0.95fr) minmax(430px, 1fr) minmax(320px, 0.78fr);
  gap: 10px;
  align-items: stretch;
}

.overview-left,
.overview-assets,
.overview-side {
  min-width: 0;
  min-height: 0;
}

.overview-left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
}

.overview-assets {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
}

.overview-side {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
}

.tasks-workspace-grid {
  grid-template-columns: minmax(380px, 0.95fr) minmax(420px, 1fr) minmax(320px, 0.78fr);
}

.assets-workspace-grid {
  grid-template-columns: minmax(620px, 1fr) minmax(340px, 0.58fr);
}

.orders-workspace-grid {
  grid-template-columns: minmax(430px, 0.82fr) minmax(560px, 1fr);
}

.task-pool-column,
.workflow-column,
.task-context-column,
.assets-list-column,
.asset-detail-column,
.orders-list-column,
.orders-detail-column {
  min-width: 0;
  min-height: 0;
}

.task-pool-column .task-panel,
.workflow-panel,
.task-context-panel,
.assets-list-column .asset-panel,
.asset-detail-panel,
.order-list-panel,
.order-trace-panel {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.task-pool-column .task-table,
.workflow-list,
.task-context-panel,
.assets-list-column .asset-panel,
.asset-detail-panel,
.order-center-list,
.order-trace-panel {
  overflow: auto;
}

.main-column.wide {
  grid-column: span 2;
}

.toolbar {
  display: flex;
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-card,
.panel,
.detail-drawer,
.modal-card,
.ticket-card {
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.metric-card {
  min-height: 90px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card strong {
  display: block;
  color: #101828;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.metric-card em {
  margin-left: 4px;
  color: #334155;
  font-size: 15px;
  font-style: normal;
}

.metric-card.teal {
  border-color: #b6e5e4;
}

.metric-card.blue {
  border-color: #bfd7fb;
}

.panel,
.detail-drawer {
  padding: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.panel-head p {
  margin: 3px 0 0;
  font-size: 12px;
}

.text-action,
.plain-close {
  border: 0;
  background: transparent;
  color: #078b8f;
  font-weight: 850;
}

.text-action:disabled {
  cursor: not-allowed;
  color: #94a3b8;
}

.tab-strip {
  display: flex;
  gap: 16px;
  min-height: 30px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 4px;
}

.tab-strip button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.tab-strip button.active {
  color: #078b8f;
  border-bottom-color: #078b8f;
}

.task-table {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.task-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.overview-left .task-panel {
  flex: 0 0 auto;
}

.overview-left .order-activity-panel {
  flex: 1 1 166px;
  min-height: 166px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.overview-left .order-activity-panel .simple-table {
  min-height: 0;
  overflow: auto;
}

.overview-assets .asset-panel {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.task-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 52px 74px;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #eef2f6;
  background: #ffffff;
  color: #18232f;
  text-align: left;
  padding: 6px 0;
}

.task-row:hover,
.task-row.selected {
  background: #f5fbfb;
}

.task-kind {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: #05777b;
  background: #e7f7f6;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.task-row.urgent .task-kind {
  background: #fff1eb;
  color: #c2410c;
}

.order-count {
  min-width: 50px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e7f7f6;
  color: #05777b;
  font-size: 13px;
  font-weight: 900;
}

.order-status-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.order-status-tabs button {
  min-height: 40px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #fbfdff;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.order-status-tabs button.active {
  border-color: #99f6e4;
  background: #ecfdf5;
  color: #05777b;
}

.order-status-tabs b {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
}

.order-center-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.order-center-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #eef2f6;
  background: #ffffff;
  color: #18232f;
  text-align: left;
  padding: 8px 0;
}

.order-center-row:hover,
.order-center-row.selected {
  background: #f5fbfb;
}

.order-row-main strong,
.order-row-main small,
.order-row-meta b {
  display: block;
}

.order-row-main small {
  margin-top: 5px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.order-state-chip {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.order-state-chip.exception {
  background: #fee2e2;
  color: #c0392b;
}

.order-state-chip.pickup {
  background: #fef3c7;
  color: #b45309;
}

.order-state-chip.done {
  background: #dcfce7;
  color: #15803d;
}

.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.order-summary-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.order-summary-grid span,
.order-summary-grid small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.order-summary-grid strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 18px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.order-detail-grid div {
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.order-detail-grid dt {
  color: #64748b;
  font-size: 12px;
}

.order-detail-grid dd {
  margin: 6px 0 0;
  font-weight: 850;
}

.order-asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-asset-links .secondary-button {
  min-height: 30px;
  padding: 0 10px;
}

.order-trace-section {
  border-top: 1px solid #eef2f6;
  padding-top: 12px;
  margin-top: 12px;
}

.section-headline.compact {
  margin: 0 0 8px;
}

.order-trace-timeline {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.order-trace-timeline li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.order-trace-timeline li.active {
  border-color: #99f6e4;
  background: #ecfdf5;
}

.order-trace-timeline li.exception {
  border-color: #fecaca;
  background: #fef2f2;
}

.order-trace-timeline time {
  color: #64748b;
  font-weight: 850;
}

.order-trace-timeline strong,
.order-trace-timeline small {
  display: block;
}

.order-trace-timeline small {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.45;
}

.order-task-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.order-task-section h3,
.order-task-section p {
  margin: 0;
}

.order-task-section p,
.order-empty-note {
  color: #64748b;
  line-height: 1.5;
}

.after-sales-panel {
  background: #ffffff;
}

.after-sales-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.after-sales-head h3,
.after-sales-head p {
  margin: 0;
}

.after-sales-head p {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.after-sales-record-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.after-sales-record-list article {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.after-sales-record-list span,
.after-sales-record-list small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.after-sales-record-list strong {
  display: block;
  margin: 6px 0;
}

.after-sales-record-list p {
  margin: 0 0 6px;
  color: #475569;
  line-height: 1.5;
}

.task-main strong,
.task-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-pill {
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.state-pill.working {
  background: #eff6ff;
  color: #2563eb;
}

.state-pill.done {
  background: #dcfce7;
  color: #15803d;
}

.workflow-count {
  min-width: 48px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e7f7f6;
  color: #05777b;
  font-size: 13px;
  font-weight: 900;
}

.workflow-list {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.workflow-list li.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.workflow-list li.active {
  border-color: #99f6e4;
  background: #f0fdfa;
  box-shadow: inset 3px 0 0 #078b8f;
}

.workflow-list li.optional {
  border-style: dashed;
}

.workflow-list li.skipped {
  border-color: #fed7aa;
  background: #fff7ed;
}

.workflow-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.workflow-icon img {
  width: 22px;
  height: 22px;
}

.workflow-list strong,
.workflow-list p {
  display: block;
}

.workflow-list p {
  margin: 4px 0 0;
  color: #64748b;
  line-height: 1.45;
}

.workflow-status-group {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.workflow-list em {
  width: fit-content;
  justify-self: end;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f5f9;
  color: #475569;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.workflow-list li.done em {
  background: #dcfce7;
  color: #15803d;
}

.workflow-list li.active em {
  background: #ccfbf1;
  color: #05777b;
}

.workflow-list li.skipped em {
  background: #ffedd5;
  color: #c2410c;
}

.workflow-status-group small {
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.workflow-action-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #eef2f6;
  padding-top: 12px;
  margin-top: 12px;
}

.context-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.context-list div {
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.context-list dt {
  color: #64748b;
  font-size: 12px;
}

.context-list dd {
  margin: 5px 0 0;
  font-weight: 850;
}

.context-note {
  border-top: 1px solid #eef2f6;
  margin-top: 12px;
  padding-top: 12px;
}

.context-note h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.context-note p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.context-note textarea {
  width: 100%;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  padding: 10px;
  color: #18232f;
  resize: vertical;
}

.context-note button {
  width: 100%;
  margin-top: 10px;
}

.locker-context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.locker-context-grid div {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 9px;
}

.locker-context-grid span,
.locker-context-grid strong {
  display: block;
}

.locker-context-grid span {
  color: #64748b;
  font-size: 12px;
}

.locker-context-grid strong {
  margin-top: 4px;
  font-size: 14px;
}

.device-group {
  margin-top: 8px;
}

.asset-panel {
  --device-card-min: 150px;
  --locker-card-min: 70px;
}

.asset-panel.asset-mode-manage {
  --device-card-min: 156px;
  --locker-card-min: 76px;
}

.asset-panel.many-machines {
  --device-card-min: 132px;
}

.asset-panel.many-lockers {
  --locker-card-min: 58px;
}

.asset-panel.max-lockers {
  --locker-card-min: 50px;
}

.device-group h3 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 6px;
  font-size: 14px;
}

.device-group h3 span {
  color: #64748b;
  font-size: 12px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--device-card-min, 150px)), 1fr));
  gap: 8px;
}

.device-card,
.locker-cell {
  min-height: 62px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #fbfdff;
  padding: 6px;
  text-align: left;
}

.device-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.device-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  position: relative;
}

.device-icon,
.status-icon,
.locker-cell img {
  width: 24px;
  height: 24px;
  display: block;
}

.status-icon {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.device-copy {
  min-width: 0;
}

.device-copy strong,
.device-copy span,
.device-copy small,
.locker-cell strong,
.locker-cell span {
  display: block;
}

.device-copy span {
  margin: 3px 0 2px;
  color: #078b8f;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
}

.device-copy strong,
.device-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-copy strong {
  font-size: 16px;
  line-height: 1.1;
}

.device-copy small {
  font-size: 12px;
  line-height: 1.2;
}

.overview-grid .device-copy small {
  display: block;
}

.device-card.running {
  border-color: #a7f3d0;
  background: #f0fdfa;
}

.device-card.fault,
.locker-cell.bad {
  border-color: #fecaca;
  background: #fff5f5;
}

.device-card.fault span,
.locker-cell.bad span {
  color: #dc2626;
}

.device-card.offline,
.locker-cell.offline {
  background: #f1f5f9;
}

.device-card.selected,
.locker-cell.selected {
  border-color: #078b8f;
  background: #f0fdfa;
  box-shadow: inset 0 0 0 2px rgba(7, 139, 143, 0.14);
}

.locker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  font-size: 12px;
}

.locker-head span {
  color: #64748b;
}

.locker-head i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #10b981;
  margin: 0 4px 0 8px;
}

.locker-head i.used {
  background: #2563eb;
}

.locker-head i.bad {
  background: #ef4444;
}

.locker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--locker-card-min, 70px)), 1fr));
  gap: 7px;
}

.locker-cell {
  min-height: 38px;
  text-align: center;
  padding: 4px 3px;
  line-height: 1.05;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 4px;
  align-items: center;
  text-align: left;
}

.locker-cell img {
  width: 14px;
  height: 14px;
  grid-row: 1 / span 2;
  margin: 0 auto;
}

.locker-cell strong {
  font-size: 12px;
  line-height: 1;
}

.locker-cell span {
  font-size: 11px;
  line-height: 1.05;
}

.locker-cell.used {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.locker-cell.used span {
  color: #2563eb;
}

.asset-actions,
.asset-detail-actions,
.modal-actions,
.ticket-card div {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.asset-detail-panel {
  gap: 12px;
}

.asset-state-chip {
  min-width: 64px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #ecfdf5;
  color: #05777b;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.asset-state-chip.fault,
.asset-state-chip.bad {
  background: #fef2f2;
  color: #dc2626;
}

.asset-state-chip.offline {
  background: #f1f5f9;
  color: #475569;
}

.asset-state-chip.used {
  background: #eff6ff;
  color: #2563eb;
}

.asset-detail-hero {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.asset-detail-hero .device-icon-wrap {
  width: 50px;
  height: 50px;
}

.asset-detail-hero strong,
.asset-detail-hero span {
  display: block;
}

.asset-detail-hero strong {
  font-size: 17px;
  line-height: 1.2;
}

.asset-detail-hero span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.asset-info-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.asset-info-list div {
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.asset-info-list dt {
  color: #64748b;
  font-size: 12px;
}

.asset-info-list dd {
  margin: 5px 0 0;
  font-weight: 850;
}

.asset-linked-section {
  border-top: 1px solid #eef2f6;
  padding-top: 10px;
}

.asset-linked-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.asset-linked-section p {
  margin: 0;
  color: #64748b;
}

.asset-mini-row {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #eef2f6;
  background: transparent;
  color: #18232f;
  text-align: left;
  padding: 6px 0;
}

.asset-mini-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-mini-row span {
  color: #64748b;
  font-size: 12px;
}

.asset-mini-row em {
  width: fit-content;
  justify-self: end;
  border-radius: 999px;
  padding: 4px 8px;
  background: #ecfdf5;
  color: #059669;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.asset-mini-row.static {
  border-bottom: 1px solid #eef2f6;
}

.asset-detail-actions {
  margin-top: auto;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 850;
}

.primary-button {
  border: 0;
  background: #078b8f;
  color: #ffffff;
}

.primary-button.danger {
  background: #dc2626;
}

.secondary-button {
  border: 1px solid #cfd9e3;
  background: #ffffff;
  color: #334155;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.restricted-action {
  cursor: not-allowed;
  border-color: #cfd9e3;
  background: #f8fafc;
  color: #64748b;
}

.restricted-action:hover {
  background: #f8fafc;
  color: #64748b;
}

.primary-button.danger.restricted-action,
.primary-button.danger:disabled {
  border: 1px solid #cfd9e3;
  background: #f8fafc;
  color: #64748b;
}

.simple-table,
.expense-table {
  display: flex;
  flex-direction: column;
}

.simple-table div,
.expense-table div {
  min-height: 34px;
  display: grid;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eef2f6;
  font-size: 13px;
}

.simple-table div {
  grid-template-columns: 54px 1fr 100px 50px 72px 70px;
}

.simple-table em,
.expense-table em {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #ecfdf5;
  color: #059669;
  font-style: normal;
  font-weight: 850;
}

.detail-drawer {
  position: static;
  max-height: none;
  overflow: auto;
}

.overview-side .detail-drawer {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.drawer-head h2 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.25;
}

.drawer-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
}

.detail-list {
  margin: 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-list dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.drawer-section {
  border-top: 1px solid #eef2f6;
  padding-top: 10px;
  margin-top: 10px;
}

.drawer-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.drawer-section p {
  margin: 0;
  line-height: 1.5;
}

.drawer-section button {
  width: 100%;
  margin-top: 8px;
}

.note-box {
  margin-top: 10px;
}

.note-box textarea,
.modal-form textarea,
.modal-form input,
.modal-form select {
  width: 100%;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  padding: 10px;
  color: #18232f;
  resize: vertical;
}

.note-box button {
  width: 100%;
  margin-top: 10px;
}

.overview-side .note-box textarea {
  min-height: 74px;
  max-height: 96px;
}

.operation-preview-panel {
  flex: 0 0 190px;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 10px;
}

.mini-log-list {
  display: grid;
  gap: 8px;
}

.mini-log-list article {
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fbfdff;
  padding: 9px 10px;
}

.mini-log-list span {
  color: #64748b;
  font-size: 12px;
}

.mini-log-list strong {
  display: block;
  margin: 3px 0;
  color: #18232f;
  font-size: 13px;
}

.mini-log-list p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.ticket-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ticket-card {
  padding: 16px;
}

.ticket-card > span {
  color: #dc2626;
  font-size: 12px;
  font-weight: 850;
}

.ticket-card h3 {
  margin: 8px 0;
}

.ticket-card p {
  color: #475569;
  line-height: 1.6;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.finance-summary article {
  min-height: 88px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.finance-summary span,
.expense-table span {
  display: block;
}

.finance-summary strong {
  display: block;
  margin-top: 10px;
  font-size: 25px;
}

.finance-summary small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-weight: 750;
}

.finance-export-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #fbfdff;
}

.finance-export-panel strong,
.finance-export-panel span {
  display: block;
}

.finance-export-panel strong {
  font-size: 16px;
}

.finance-export-panel > div > span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.finance-export-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.finance-export-panel select {
  min-height: 36px;
  min-width: 118px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  padding: 0 10px;
  font-weight: 850;
}

.notification-workspace {
  display: grid;
  gap: 14px;
}

.notification-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.notification-summary article {
  min-height: 76px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.notification-summary span,
.notification-summary strong,
.notification-summary small {
  display: block;
}

.notification-summary strong {
  margin-top: 6px;
  font-size: 24px;
}

.notification-summary small {
  margin-top: 4px;
  color: #64748b;
  font-weight: 750;
}

.notification-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.notification-template-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 92px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.notification-template-grid strong,
.notification-template-grid span,
.notification-template-grid p {
  display: block;
}

.notification-template-grid span,
.notification-template-grid p {
  color: #64748b;
  font-size: 12px;
}

.notification-template-grid p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.5;
}

.notification-template-grid em,
.notification-record-list em {
  align-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.notification-template-grid em.enabled,
.notification-record-list em.sent {
  background: #e8fbef;
  color: #168047;
}

.notification-template-grid em.disabled,
.notification-record-list em.skipped {
  background: #f1f5f9;
  color: #64748b;
}

.notification-status-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.notification-status-tabs button {
  min-height: 32px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  padding: 0 10px;
  font-weight: 850;
}

.notification-status-tabs button.active {
  border-color: #078b8f;
  background: #e7f7f6;
  color: #05777b;
}

.notification-record-list {
  display: grid;
  gap: 8px;
}

.notification-record-list article {
  min-height: 64px;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 82px auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.notification-record-list time {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.notification-record-list strong,
.notification-record-list p,
.notification-record-list small {
  display: block;
}

.notification-record-list p,
.notification-record-list small {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
}

.notification-record-list em.pending {
  background: #fff7ed;
  color: #c05621;
}

.notification-record-list em.failed {
  background: #fff1f2;
  color: #c43b32;
}

.notification-record-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.notification-record-actions button {
  min-height: 30px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #24324a;
  padding: 0 9px;
  font-weight: 850;
}

.settings-workspace {
  min-height: 0;
}

.settings-mode-summary {
  color: #05777b;
  font-size: 14px;
  text-align: right;
}

.settings-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 0;
}

.settings-group-list {
  display: grid;
  gap: 8px;
}

.settings-group-list button {
  min-height: 70px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  padding: 12px;
  text-align: left;
}

.settings-group-list button.active {
  border-color: #078b8f;
  background: #e7f7f6;
}

.settings-group-list strong,
.settings-group-list span {
  display: block;
}

.settings-group-list strong {
  color: #18232f;
  font-weight: 900;
}

.settings-group-list span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.settings-detail-card {
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #fbfdff;
  padding: 16px;
}

.settings-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.settings-detail-head h3 {
  margin: 0;
  color: #18232f;
}

.settings-detail-head p,
.settings-detail-head small {
  margin: 4px 0 0;
  color: #64748b;
}

.setting-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.setting-field,
.setting-toggle {
  min-height: 56px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.setting-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  align-items: center;
  gap: 8px;
}

.setting-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 46px;
  align-items: center;
  gap: 10px;
}

.setting-field span,
.setting-toggle span {
  color: #334155;
  font-weight: 850;
}

.setting-field small,
.setting-toggle em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.setting-field input,
.setting-field select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #18232f;
  padding: 0 10px;
  font-weight: 800;
}

.setting-toggle input {
  width: 18px;
  height: 18px;
}

.settings-save-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.settings-save-row span {
  color: #64748b;
  font-weight: 750;
}

.integration-workspace {
  min-height: 0;
}

.integration-summary {
  color: #05777b;
  font-size: 14px;
  text-align: right;
}

.integration-readiness-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.integration-readiness,
.integration-field-map {
  display: grid;
  gap: 12px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  min-width: 0;
}

.integration-readiness-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.integration-readiness-head h3 {
  margin: 0;
  color: #18232f;
  font-size: 16px;
}

.integration-readiness-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.integration-readiness-head span {
  border-radius: 999px;
  background: #e7f7f6;
  color: #05777b;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.integration-check-list {
  display: grid;
  gap: 8px;
}

.integration-check-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px 10px;
  align-items: center;
  border-top: 1px solid #edf2f7;
  padding-top: 8px;
  min-width: 0;
}

.integration-check-list strong {
  color: #18232f;
  min-width: 0;
}

.integration-check-list em,
.integration-check-list span {
  color: #05777b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.integration-check-list span {
  color: #64748b;
}

.integration-check-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.supplier-material-tracker {
  display: grid;
  gap: 12px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  margin-bottom: 12px;
  min-width: 0;
}

.supplier-material-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.supplier-material-summary article {
  border: 1px solid #e5edf4;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px 12px;
  min-width: 0;
}

.supplier-material-summary span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.supplier-material-summary strong {
  display: block;
  margin-top: 5px;
  color: #18232f;
  font-size: 18px;
}

.supplier-material-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.supplier-material-row {
  display: grid;
  gap: 8px;
  border-top: 1px solid #edf2f7;
  padding-top: 10px;
  min-width: 0;
}

.supplier-material-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: start;
}

.supplier-material-title strong {
  display: block;
  color: #18232f;
  overflow-wrap: anywhere;
}

.supplier-material-title span,
.supplier-material-row footer {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.supplier-material-title em,
.supplier-material-title b {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.supplier-material-title em.ready {
  background: #dcfce7;
  color: #166534;
}

.supplier-material-title em.working {
  background: #eef2ff;
  color: #3730a3;
}

.supplier-material-title em.pending {
  background: #fff7ed;
  color: #c2410c;
}

.supplier-material-title b {
  background: #f1f5f9;
  color: #334155;
}

.supplier-material-row p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.supplier-material-row p span {
  display: inline-block;
  margin-right: 6px;
  color: #05777b;
}

.supplier-material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.supplier-material-tags span {
  border-radius: 999px;
  background: #e7f7f6;
  color: #05777b;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 850;
}

.production-launch-checklist {
  display: grid;
  gap: 12px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  margin-bottom: 12px;
  min-width: 0;
}

.production-launch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.production-launch-summary article {
  border: 1px solid #e5edf4;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px 12px;
  min-width: 0;
}

.production-launch-summary span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.production-launch-summary strong {
  display: block;
  margin-top: 5px;
  color: #18232f;
  font-size: 18px;
}

.production-launch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

.production-launch-row {
  display: grid;
  gap: 8px;
  border-top: 1px solid #edf2f7;
  padding-top: 10px;
  min-width: 0;
}

.production-launch-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: start;
}

.production-launch-title strong {
  display: block;
  color: #18232f;
  overflow-wrap: anywhere;
}

.production-launch-title span,
.production-launch-row footer {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.production-launch-title em,
.production-launch-title b {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.production-launch-title em.ready {
  background: #dcfce7;
  color: #166534;
}

.production-launch-title em.working {
  background: #eef2ff;
  color: #3730a3;
}

.production-launch-title em.pending {
  background: #fff7ed;
  color: #c2410c;
}

.production-launch-title b {
  background: #fee2e2;
  color: #991b1b;
}

.production-launch-row p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.production-launch-row p span {
  display: inline-block;
  margin-right: 6px;
  color: #05777b;
}

.production-launch-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.production-launch-evidence span {
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 850;
}

.trial-operation-acceptance {
  display: grid;
  gap: 12px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  margin-bottom: 12px;
  min-width: 0;
}

.trial-operation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trial-operation-summary article {
  border: 1px solid #e5edf4;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px 12px;
  min-width: 0;
}

.trial-operation-summary span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.trial-operation-summary strong {
  display: block;
  margin-top: 5px;
  color: #18232f;
  font-size: 18px;
}

.trial-operation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
}

.trial-operation-row {
  display: grid;
  gap: 8px;
  border-top: 1px solid #edf2f7;
  padding-top: 10px;
  min-width: 0;
}

.trial-operation-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: start;
}

.trial-operation-title strong {
  display: block;
  color: #18232f;
  overflow-wrap: anywhere;
}

.trial-operation-title span,
.trial-operation-row footer {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.trial-operation-title em,
.trial-operation-title b {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.trial-operation-title em.ready {
  background: #dcfce7;
  color: #166534;
}

.trial-operation-title em.working {
  background: #eef2ff;
  color: #3730a3;
}

.trial-operation-title em.pending {
  background: #fff7ed;
  color: #c2410c;
}

.trial-operation-title b {
  background: #f1f5f9;
  color: #334155;
}

.trial-operation-row ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.trial-operation-row p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.trial-operation-row p span {
  display: inline-block;
  margin-right: 6px;
  color: #05777b;
}

.trial-operation-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.trial-operation-evidence strong {
  color: #64748b;
  font-size: 12px;
}

.trial-operation-evidence span {
  border-radius: 999px;
  background: #e7f7f6;
  color: #05777b;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 850;
}

.trial-acceptance-controls {
  display: grid;
  grid-template-columns: auto auto minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.trial-acceptance-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.trial-acceptance-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #078b8f;
}

.trial-acceptance-controls em {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.trial-acceptance-controls em.ready {
  background: #dcfce7;
  color: #166534;
}

.trial-acceptance-controls em.working {
  background: #eef2ff;
  color: #3730a3;
}

.trial-acceptance-controls em.pending {
  background: #fff7ed;
  color: #c2410c;
}

.trial-acceptance-controls textarea {
  width: 100%;
  min-height: 38px;
  resize: vertical;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  padding: 7px 9px;
  color: #18232f;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.trial-acceptance-controls button {
  min-height: 36px;
  white-space: nowrap;
}

.trial-acceptance-feedback {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.integration-field-table {
  display: grid;
  gap: 0;
  overflow-x: auto;
}

.integration-field-table > div {
  display: grid;
  grid-template-columns: 108px 168px 150px minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 720px;
  border-top: 1px solid #edf2f7;
  padding: 8px 0;
}

.integration-field-table strong {
  color: #64748b;
  font-size: 12px;
}

.integration-field-table span,
.integration-field-table code {
  color: #24324a;
  font-size: 12px;
  font-weight: 800;
}

.integration-field-table code {
  border-radius: 6px;
  background: #f1f5f9;
  padding: 3px 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.integration-sandbox {
  display: grid;
  gap: 12px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  margin-bottom: 12px;
  min-width: 0;
}

.integration-sandbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.integration-sandbox-list article {
  display: grid;
  gap: 8px;
  border-top: 1px solid #edf2f7;
  padding-top: 10px;
  min-width: 0;
}

.integration-sandbox-list article > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.integration-sandbox-list strong {
  color: #18232f;
}

.integration-sandbox-list span,
.integration-sandbox-list p {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.integration-sandbox-list p {
  margin: 0;
  line-height: 1.5;
}

.integration-sandbox-list code {
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: #f1f5f9;
  color: #24324a;
  padding: 6px 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 850;
}

.integration-sandbox-list small {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.integration-sandbox-list b {
  border-radius: 999px;
  background: #e7f7f6;
  color: #05777b;
  padding: 3px 7px;
  font-size: 11px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.integration-card {
  display: grid;
  gap: 12px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
  min-width: 0;
}

.integration-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.integration-card-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.integration-card-head h3 {
  margin: 3px 0 0;
  color: #18232f;
  font-size: 17px;
}

.integration-card-head em {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.integration-card-head em.ready {
  background: #dcfce7;
  color: #15803d;
}

.integration-card-head em.working {
  background: #eef2ff;
  color: #3557d6;
}

.integration-card-head em.pending {
  background: #fff7ed;
  color: #c2410c;
}

.integration-meta {
  display: grid;
  gap: 7px;
  margin: 0;
}

.integration-meta div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.integration-meta dt {
  color: #64748b;
  font-weight: 750;
}

.integration-meta dd {
  margin: 0;
  color: #24324a;
  font-weight: 800;
  min-width: 0;
}

.integration-tags strong,
.integration-missing strong {
  display: block;
  color: #18232f;
  font-size: 13px;
  margin-bottom: 6px;
}

.integration-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.integration-tags span {
  border-radius: 999px;
  background: #e7f7f6;
  color: #05777b;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 850;
}

.integration-missing ul {
  margin: 0;
  padding-left: 18px;
  color: #64748b;
  line-height: 1.6;
}

.integration-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  align-items: end;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.integration-actions label {
  display: grid;
  gap: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
}

.integration-actions select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #18232f;
  padding: 0 10px;
  font-weight: 850;
}

.integration-actions button {
  width: 100%;
  min-width: 0;
}

.integration-feedback {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.staff-workspace {
  min-height: 0;
}

.staff-summary {
  color: #05777b;
  font-size: 14px;
  text-align: right;
}

.staff-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.staff-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.staff-list button {
  min-height: 76px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  padding: 12px;
  text-align: left;
}

.staff-list button.active {
  border-color: #078b8f;
  background: #e7f7f6;
}

.staff-list strong,
.staff-list span,
.staff-list small {
  display: block;
}

.staff-list strong {
  color: #18232f;
  font-weight: 900;
}

.staff-list span,
.staff-list small {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.staff-detail {
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #fbfdff;
  padding: 16px;
  min-width: 0;
}

.staff-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.staff-detail-head span,
.staff-detail-head p {
  color: #64748b;
}

.staff-detail-head h3 {
  margin: 4px 0;
  color: #18232f;
}

.staff-detail-head strong {
  color: #05777b;
  white-space: nowrap;
}

.permission-group {
  margin-top: 14px;
}

.permission-group h3 {
  margin: 0 0 8px;
  color: #18232f;
  font-size: 15px;
}

.permission-list,
.permission-group > div {
  display: grid;
  gap: 8px;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 72px 94px;
  gap: 10px;
  align-items: center;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  min-width: 0;
}

.permission-row.risky {
  border-color: #f2d0c8;
  background: #fff8f6;
}

.permission-row strong {
  color: #18232f;
}

.permission-row p,
.permission-row small {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.permission-row > span {
  justify-self: start;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.permission-row.risky > span {
  background: #fee2e2;
  color: #b91c1c;
}

.permission-switch,
.permission-row label {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.permission-switch input,
.permission-row label input {
  width: 18px;
  height: 18px;
}

.permission-switch em,
.permission-row label em {
  font-style: normal;
}

.section-kicker {
  margin: 18px 0 10px;
  font-size: 15px;
}

.section-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.section-headline h3 {
  margin: 0;
  font-size: 15px;
}

.section-headline p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

.period-tabs {
  display: flex;
  gap: 6px;
}

.period-tabs button {
  min-width: 44px;
  min-height: 32px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-weight: 850;
}

.period-tabs button.active {
  border-color: #078b8f;
  background: #e7f7f6;
  color: #05777b;
}

.income-detail-table {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.income-detail-table > div {
  min-height: 38px;
  display: grid;
  grid-template-columns: 1.2fr 80px repeat(3, 110px);
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef2f6;
  padding: 0 12px;
  font-size: 13px;
}

.income-detail-table > div:last-child {
  border-bottom: 0;
}

.income-detail-table .table-head {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.income-detail-table b {
  color: #0f766e;
}

.finance-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 8px;
}

.finance-list-head strong,
.finance-list-head h3 {
  margin: 0;
  font-size: 15px;
}

.finance-list-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.expense-head {
  margin-top: 18px;
}

.finance-detail-table {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.finance-detail-table > div {
  min-height: 38px;
  display: grid;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef2f6;
  padding: 0 12px;
  font-size: 13px;
}

.finance-detail-table > div:last-child {
  border-bottom: 0;
}

.finance-detail-table .table-head {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.income-order-table > div {
  grid-template-columns: 76px 128px minmax(170px, 1fr) 68px 86px 92px;
}

.income-order-table time,
.income-order-table span,
.income-order-table em {
  color: #64748b;
}

.income-order-table em {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef9f8;
  color: #05777b;
  font-style: normal;
  font-weight: 850;
}

.income-order-table b,
.expense-table b {
  color: #0f766e;
}

.finance-expand-button {
  min-height: 36px;
  margin: 10px auto 0;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  font-weight: 850;
}

.finance-expand-button img {
  width: 17px;
  height: 17px;
}

.finance-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.finance-pagination button,
.finance-pagination select {
  min-height: 34px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  padding: 0 10px;
  font-weight: 850;
}

.finance-pagination button:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  background: #f8fafc;
}

.finance-pagination label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
}

.finance-pagination small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.expense-table div {
  grid-template-columns: 120px 1fr 100px 80px 90px;
}

.expense-table.finance-detail-table > div {
  grid-template-columns: 120px minmax(160px, 1fr) 110px 90px 96px;
}

.pricing-config-panel {
  border-top: 1px solid #e2e8f0;
  margin-top: 22px;
  padding-top: 18px;
}

.packages-panel .pricing-config-panel {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.package-workspace-tabs {
  display: inline-flex;
  gap: 4px;
  width: fit-content;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #f8fafc;
  padding: 3px;
  margin-bottom: 12px;
}

.package-workspace-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 14px;
  text-align: center;
}

.package-workspace-tabs button.active {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.package-workspace-tabs strong {
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}

.package-workspace-tabs span {
  display: none;
}

.package-workspace-tabs button.active strong {
  color: #05777b;
}

.panel-head.compact {
  margin-bottom: 12px;
}

.package-mode-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}

.package-mode-tabs button {
  min-height: 34px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  padding: 0 14px;
  font-weight: 850;
}

.package-mode-tabs button.active {
  border-color: #078b8f;
  background: #e7f7f6;
  color: #05777b;
}

.pricing-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.package-config-list {
  display: grid;
  gap: 12px;
}

.pricing-group {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.pricing-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eef2f6;
  background: #f8fafc;
  padding: 10px 12px;
}

.pricing-group-head strong {
  display: block;
}

.pricing-group-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.pricing-group-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.pricing-table {
  display: grid;
}

.pricing-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(86px, 1fr) 112px 102px 102px 76px minmax(124px, 1.1fr);
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid #eef2f6;
  padding: 8px 10px;
  font-size: 13px;
}

.pricing-row:last-child {
  border-bottom: 0;
}

.pricing-row.member-active {
  background: #f0fdf4;
}

.pricing-row label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  white-space: nowrap;
}

.pricing-row input {
  width: 48px;
  height: 30px;
  border: 1px solid #cfd9e3;
  border-radius: 6px;
  padding: 0 6px;
  color: #18232f;
  font-weight: 850;
}

.pricing-row > span {
  font-weight: 900;
}

.pricing-row em {
  color: #64748b;
  font-style: normal;
  font-size: 12px;
}

.pricing-service-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed #dbe5ee;
  padding-top: 8px;
}

.pricing-service-note p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

.pricing-service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
}

.pricing-service-badges span {
  border-radius: 999px;
  background: #eef9f8;
  color: #05777b;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 850;
}

.pricing-preview-box {
  border: 1px solid #d7e4ed;
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}

.pricing-preview-box h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.member-balance-panel {
  margin-top: 14px;
}

.member-rule-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.member-rule-cards article {
  min-height: 82px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.member-rule-cards span,
.member-rule-cards small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.member-rule-cards strong {
  display: block;
  margin: 9px 0 6px;
  font-size: 18px;
}

.member-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 8px;
}

.member-section-head h3 {
  margin: 0;
  font-size: 15px;
}

.member-section-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.member-data-table {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.member-data-table > div {
  min-height: 40px;
  display: grid;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef2f6;
  padding: 0 12px;
  font-size: 13px;
}

.member-data-table > div:last-child {
  border-bottom: 0;
}

.member-data-table .table-head {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.member-account-table > div {
  grid-template-columns: 100px 118px 90px 100px 86px minmax(140px, 1fr);
}

.recharge-history-table > div {
  grid-template-columns: 150px 118px 92px 78px 90px 82px;
}

.member-data-table b {
  color: #0f766e;
}

.member-data-table em {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
  color: #475569;
  font-style: normal;
  font-weight: 850;
}

.member-data-table em.member {
  background: #e7f7f6;
  color: #05777b;
}

.preview-control {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.preview-control > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.segmented-control button {
  min-height: 34px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-weight: 850;
}

.segmented-control button.active {
  border-color: #078b8f;
  background: #e7f7f6;
  color: #05777b;
}

.pricing-rule-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.pricing-rule-list div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  border-top: 1px solid #eef2f6;
  padding-top: 8px;
}

.pricing-rule-list dt {
  color: #64748b;
  font-size: 12px;
}

.pricing-rule-list dd {
  margin: 0;
  font-weight: 850;
}

.log-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.log-list article {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
}

.log-list strong {
  display: block;
  margin: 6px 0;
}

.permission-denied-page {
  place-items: center;
  align-content: center;
  padding: 24px;
}

.content-grid.single.permission-denied-page {
  align-content: center;
  align-items: center;
  justify-items: center;
}

.permission-denied-page .panel {
  width: min(100%, 480px);
  max-width: 480px;
  padding: 20px;
}

.permission-denied-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 900;
}

.permission-denied-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.35);
  z-index: 20;
}

.modal-card {
  width: min(520px, 100%);
  padding: 18px;
}

.plain-close {
  color: #334155;
  font-size: 24px;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 850;
}

.modal-form .check-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-form .check-line input {
  width: auto;
}

.modal-actions {
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .integration-readiness-grid {
    grid-template-columns: 1fr;
  }

  .staff-layout {
    grid-template-columns: 1fr;
  }

  .settings-group-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    overflow: auto;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .tasks-workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .assets-workspace-grid {
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }

  .orders-workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-list-panel,
  .order-trace-panel {
    height: auto;
  }

  .order-status-tabs,
  .order-summary-grid,
  .order-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-task-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-left,
  .overview-assets,
  .overview-side {
    grid-column: 1;
    height: auto;
  }

  .right-column,
  .main-column.wide {
    grid-column: auto;
  }

  .detail-drawer {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }

  .pricing-config-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .package-workspace-tabs {
    display: inline-flex;
    flex-wrap: wrap;
  }

  .member-rule-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-row {
    grid-template-columns: minmax(90px, 1fr) 1fr 1fr;
  }

  .pricing-row em {
    grid-column: 2 / -1;
  }

  .income-detail-table {
    overflow-x: auto;
  }

  .income-detail-table > div,
  .income-order-table > div,
  .expense-table.finance-detail-table > div {
    min-width: 620px;
  }

  .finance-detail-table {
    overflow-x: auto;
  }

  .member-data-table {
    overflow-x: auto;
  }

  .member-account-table > div,
  .recharge-history-table > div {
    min-width: 680px;
  }
}

@media (max-width: 720px) {
  .setting-control-grid,
  .settings-group-list,
  .staff-list {
    grid-template-columns: 1fr;
  }

  .settings-detail-head,
  .settings-save-row {
    flex-direction: column;
    align-items: stretch;
  }

  .setting-field {
    grid-template-columns: minmax(0, 1fr);
  }

  .setting-toggle {
    grid-template-columns: minmax(0, 1fr) auto 46px;
  }

  .integration-grid {
    grid-template-columns: 1fr;
  }

  .supplier-material-summary,
  .supplier-material-list,
  .production-launch-summary,
  .production-launch-list,
  .trial-operation-summary,
  .trial-operation-list {
    grid-template-columns: 1fr;
  }

  .supplier-material-title,
  .production-launch-title,
  .trial-operation-title {
    grid-template-columns: minmax(0, 1fr);
  }

  .trial-acceptance-controls {
    grid-template-columns: 1fr;
  }

  .trial-acceptance-controls button {
    width: 100%;
  }

  .integration-card-head,
  .integration-actions {
    grid-template-columns: 1fr;
  }

  .integration-card-head {
    display: grid;
  }

  .integration-actions button {
    width: 100%;
  }

  .staff-detail-head,
  .permission-row {
    grid-template-columns: 1fr;
  }

  .staff-detail-head {
    display: grid;
  }

  .permission-row > span,
  .permission-switch,
  .permission-row label {
    justify-self: start;
  }

  .permission-row button {
    width: 100%;
  }
}

@media (max-height: 820px) and (min-width: 1081px) {
  .overview-grid {
    grid-template-columns: minmax(360px, 0.92fr) minmax(410px, 1fr) minmax(330px, 0.78fr);
  }

  .overview-grid .metric-card {
    min-height: 78px;
    padding: 12px;
  }

  .overview-grid .metric-card strong {
    font-size: 26px;
  }

  .overview-grid .panel,
  .overview-grid .detail-drawer {
    padding: 12px;
  }

  .overview-grid .asset-panel {
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow: auto;
  }

  .overview-side .detail-drawer {
    flex: 1 1 auto;
    max-height: none;
  }

  .overview-side .note-box textarea {
    min-height: 56px;
    max-height: 72px;
  }

  .overview-side .operation-preview-panel {
    flex-basis: 178px;
    overflow: hidden;
  }

  .overview-grid .device-card {
    min-height: 56px;
  }

  .overview-grid .device-icon-wrap {
    width: 36px;
    height: 36px;
  }

  .overview-grid .device-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .overview-grid .device-icon {
    width: 20px;
    height: 20px;
  }

  .overview-grid .device-copy small {
    display: none;
  }

  .overview-grid .tab-strip {
    min-height: 26px;
    gap: 12px;
  }

  .overview-grid .task-row {
    min-height: 44px;
    grid-template-columns: 82px minmax(0, 1fr) 48px 66px;
    gap: 8px;
    padding: 4px 0;
  }

  .overview-grid .locker-cell {
    min-height: 34px;
  }

  .overview-grid .order-activity-panel {
    min-height: 178px;
  }

  .overview-grid .order-activity-panel .panel-head {
    margin-bottom: 6px;
  }

  .overview-grid .simple-table div {
    min-height: 28px;
  }
}

@media (max-width: 960px) {
  .top-header {
    height: auto;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .top-nav {
    overflow-x: auto;
    min-height: 42px;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .login-panel {
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) 64px;
    max-width: 100%;
  }

  .staff-context-select {
    width: 100%;
    justify-content: space-between;
  }

  .staff-context-select select {
    min-width: 0;
    flex: 1;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace,
  .sidebar,
  .side-nav,
  .content-grid {
    min-width: 0;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #dce4ec;
    overflow: hidden;
  }

  .side-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .side-nav button {
    white-space: nowrap;
  }

  .store-card {
    display: none;
  }

  .content-grid,
  .content-grid.single {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .ticket-list,
  .finance-summary,
  .notification-summary,
  .log-list {
    grid-template-columns: 1fr;
  }

  .task-row,
  .simple-table div,
  .expense-table div {
    grid-template-columns: 1fr;
  }

  .workflow-list li,
  .context-list {
    grid-template-columns: 1fr;
  }

  .notification-record-list article,
  .notification-template-grid article {
    grid-template-columns: 1fr;
  }

  .notification-record-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
