:root { color-scheme: light; font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; color: #20242a; background: #f3f4f6; }
* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body { margin: 0; min-width: 320px; background: #f3f4f6; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; min-height: 34px; padding: 6px 13px; color: #26313d; background: #f7f7f7; border: 1px solid #bfc5cc; border-radius: 0; }
button:hover:not(:disabled) { color: #174f7d; border-color: #4a7fab; }
button:disabled { cursor: default; color: #9299a1; background: #eceeef; }
button.primary { color: #fff; background: #2d6f9f; border-color: #2d6f9f; }
.page-header { background: #f7f7f8; border-bottom: 1px solid #cfd3d8; }
.header-inner, .page-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
nav { display: flex; align-items: center; gap: 12px; }
nav a { color: #1d5f96; text-decoration: none; }
.page-shell { min-width: 0; padding: 20px 0 36px; }

.summary-strip { min-height: 78px; display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)) auto; align-items: stretch; background: #fff; border: 1px solid #cfd3d8; }
.summary-strip div { display: grid; place-content: center; text-align: center; border-right: 1px solid #d9dde1; }
.summary-strip span { color: #68717b; font-size: 12px; }
.summary-strip strong { margin-top: 3px; color: #174f7d; font-size: 22px; font-weight: 600; }
.summary-strip button { align-self: center; margin: 0 14px; }
.aos-sync-summary { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); border-bottom: 1px solid #d9dde1; }
.aos-sync-summary div { min-height: 70px; display: grid; place-content: center; text-align: center; border-right: 1px solid #d9dde1; }
.aos-sync-summary div:last-child { border-right: 0; }
.aos-sync-summary span { color: #68717b; font-size: 12px; }
.aos-sync-summary strong { color: #174f7d; font-size: 21px; font-weight: 600; }
.aos-sync-summary strong.aos-summary-error { color: #b42318; }
.aos-sync-table { min-width: 900px; }
.aos-sync-table th, .aos-sync-table td { text-align: center; vertical-align: middle; border: 1px solid #d9dde1; }
.aos-sync-table th:first-child, .aos-sync-table td:first-child { width: 220px; text-align: left; }
.aos-sync-warning { color: #a33c32; font-weight: 600; }
.aos-limit-panel { border-top: 1px solid #cfd3d8; }
.aos-limit-title { align-items: center; }
.aos-limit-title button { margin-left: auto; }
.aos-limit-table { min-width: 1240px; }
.aos-limit-table th, .aos-limit-table td { text-align: center; vertical-align: middle; border: 1px solid #d9dde1; }
.aos-limit-table th:first-child, .aos-limit-table td:first-child,
.aos-limit-table th:nth-child(2), .aos-limit-table td:nth-child(2) { text-align: left; }
.aos-limit-server, .aos-limit-position { white-space: nowrap; }
.aos-limit-table td:nth-child(5) { color: #a33c32; }
.aos-limit-table th:nth-child(6), .aos-limit-table td:nth-child(6) { width: 150px; white-space: nowrap; }
.aos-limit-table th:nth-child(7), .aos-limit-table td:nth-child(7) { width: 100px; white-space: nowrap; }
.aos-limit-table th:last-child, .aos-limit-table td:last-child { width: 120px; white-space: nowrap; }
.aos-limit-empty { height: 92px; color: #8a929b !important; }
.aos-limit-table .aos-limit-server-group td { padding: 7px 10px; color: #304453; background: #edf3f7; text-align: left; }
.aos-limit-server-group-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aos-limit-server-group button { min-height: 28px; padding: 3px 9px; color: #175f91; background: #fff; border-color: #9db5c7; white-space: nowrap; }
.aos-limit-action-cell { padding: 6px !important; text-align: center !important; vertical-align: middle !important; }
.aos-limit-action-cell button { min-width: 72px; min-height: 28px; padding: 3px 8px; color: #175f91; background: #fff; border: 1px solid #a9bac7; white-space: nowrap; }
.aos-limit-action-cell button:hover:not(:disabled) { background: #f3f8fb; border-color: #648eac; }

.section-tabs { margin-top: 14px; padding: 0 7px; display: flex; align-items: flex-end; gap: 5px; border-bottom: 1px solid #aeb5bd; }
.section-tabs button { position: relative; min-width: 104px; min-height: 40px; margin-bottom: -1px; padding: 7px 15px; color: #4b5560; background: #f4f5f6; border-color: #c5cbd1; border-bottom-color: #aeb5bd; }
.section-tabs button:hover:not(:disabled) { color: #174f7d; background: #f8fafb; border-color: #8aa9c0; }
.section-tabs button.active { z-index: 1; color: #125b8d; background: #edf4fa; border-color: #6f99b8; border-bottom-color: #edf4fa; font-weight: 500; }
.section-tab-badge { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; color: #fff; background: #c83232; border: 2px solid #f3f4f6; border-radius: 999px; font-size: 10px; font-weight: 600; line-height: 1; }

.workspace-section { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #cfd3d8; border-top: 0; }
.hidden { display: none !important; }
.section-heading { min-height: 64px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #d9dde1; }
.section-heading p { margin-top: 4px; color: #737c86; font-size: 12px; }
.heading-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.configuration-policy { padding: 2px 7px; color: #315f82; background: #eaf2f8; border: 1px solid #b9cddd; font-size: 11px; white-space: nowrap; }
.configuration-city-bar { padding: 9px 14px 7px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; background: #f8f9fa; border-bottom: 1px solid #cfd5da; }
.configuration-city-tabs { min-width: 0; display: flex; align-items: stretch; align-content: flex-start; flex-wrap: wrap; gap: 6px; overflow: visible; }
.configuration-city-tab { flex: 0 0 auto; min-width: 106px; min-height: 40px; padding: 6px 11px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #4e5863; background: #fff; border: 1px solid #c8ced4; white-space: nowrap; }
.configuration-city-name { font-size: 13px; }
.configuration-city-available { display: inline-flex; align-items: baseline; gap: 3px; }
.configuration-city-tab strong { color: #5f6a75; font-size: 15px; font-weight: 600; line-height: 1; }
.configuration-city-tab.active { color: #174f7d; background: #eaf2f8; border-color: #6f9cbc; }
.configuration-city-tab.active strong { color: #174f7d; }
.configuration-city-summary { justify-self: end; color: #69737e; font-size: 11px; white-space: normal; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-scroll { width: 100%; max-width: 100%; overflow: auto; }
table { width: 100%; min-width: 980px; table-layout: fixed; border-collapse: collapse; }
th { height: 38px; padding: 6px 9px; color: #68717b; background: #f5f6f7; font-size: 12px; font-weight: 400; text-align: left; border-bottom: 1px solid #d8dce0; }
td { padding: 9px; color: #333a43; font-size: 13px; line-height: 1.5; vertical-align: top; border-bottom: 1px solid #e0e3e6; }
tbody tr:hover { background: #f2f7fb; }
.select-column { width: 38px; text-align: center; }
.select-column input { width: 14px; height: 14px; }
.line-secondary { color: #747d87; }
.aos-source-heading { display: flex; align-items: center; gap: 8px; }
.aos-source-heading strong { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.aos-source-heading .aos-remark-button { min-height: 24px; padding: 1px 5px; color: #1d6093; background: transparent; border-color: transparent; font-size: 11px; white-space: nowrap; }
.table-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.table-actions button { min-height: 27px; padding: 2px 7px; color: #1d6093; background: transparent; border-color: transparent; }
.table-actions .danger { color: #a23939; }
.empty { height: 210px; text-align: center; vertical-align: middle; color: #8a929b; }
.selected-template-row { background: #eef5fa; }
.template-status { display: inline-block; padding: 2px 7px; color: #fff; background: #7d8791; font-size: 12px; }
.template-status.draft { color: #174f7d; background: #dceaf5; }
.template-status.submitted { color: #5e4300; background: #f2cf72; }
.template-status.returned { color: #8b3f20; background: #f3d3c3; }
.template-status.completed { background: #358366; }
.template-status.none { color: #69727b; background: #e6e9ec; }
.template-workspace-waiting { display: inline-block; padding: 4px 7px; color: #7a838c; }
.template-detail { border-top: 3px solid #8fb3ce; background: #fbfcfd; }
.template-detail-heading { align-items: flex-start; background: #f7f8f9; }
.template-detail-copy { min-width: 430px; }
.template-detail-actions { justify-content: flex-end; padding-top: 3px; }
.template-workflow { margin-top: 11px; display: flex; align-items: stretch; border: 1px solid #d1d7dc; background: #fff; }
.workflow-step { min-width: 132px; padding: 7px 10px; display: flex; align-items: center; gap: 8px; border-left: 1px solid #d9dde1; }
.workflow-step:first-child { border-left: 0; }
.workflow-step-number { width: 21px; height: 21px; display: grid; place-items: center; color: #6e7780; background: #e8ebee; font-size: 11px; }
.workflow-step-copy { display: grid; gap: 1px; }
.workflow-step-copy strong { color: #38424c; font-size: 12px; font-weight: 500; }
.workflow-step-copy small { color: #7a838d; font-size: 10px; }
.workflow-step.current { background: #eef5fa; }
.workflow-step.current .workflow-step-number { color: #fff; background: #2d6f9f; }
.workflow-step.complete .workflow-step-number { color: #fff; background: #358366; }
.template-list-table { min-width: 780px; }
.template-list-table th,
.template-list-table td,
.template-editor-table th,
.template-editor-table td { border: 1px solid #d9dde1; }
.template-list-table th:nth-child(1) { width: 240px; }
.template-list-table th:nth-child(2) { text-align: center; }
.template-list-table th:nth-child(3) { width: 180px; text-align: center; }
.template-list-table th:nth-child(4) { width: 160px; text-align: center; }
.template-list-table td:nth-child(2),
.template-list-table td:nth-child(3),
.template-list-table td:nth-child(4) { text-align: center; vertical-align: middle; }
.configuration-latest-added { color: #66717c; white-space: nowrap; }
.configuration-usage-cell { vertical-align: middle; }
.configuration-usage { display: flex; align-items: center; justify-content: center; }
.configuration-usage-metric { min-height: 22px; padding: 1px 18px; display: inline-flex; align-items: baseline; justify-content: center; gap: 5px; color: #7d858e; background: transparent; border: 0; border-left: 1px solid #d9dde1; font-size: 12px; white-space: nowrap; }
.configuration-usage-metric:first-child { border-left: 0; }
.configuration-usage-metric strong { color: #8c949c; font-size: 14px; font-weight: 600; }
.configuration-usage-metric.available.has-value strong { color: #277455; }
.configuration-usage-metric.borrowed.has-value strong { color: #255f91; }
.configuration-usage-metric.frozen.has-value strong { color: #646c74; }
.template-action-cell { padding: 0 9px; }
.template-row-actions { min-height: 48px; align-items: center; justify-content: center; }
.template-row-actions button,
.template-row-actions .template-workspace-waiting { max-width: 100%; white-space: nowrap; }
.request-review-heading { align-items: center; }
.request-review-actions { align-items: center; justify-content: flex-end; }
.request-review-scroll { min-height: 340px; max-height: calc(100dvh - 250px); }
.request-review-table { min-width: 980px; }
.request-review-table th,
.request-review-table td { border: 1px solid #d9dde1; vertical-align: middle; }
.request-review-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: center;
  background: #f3f5f6;
}
.request-review-table th:nth-child(1) { width: 46px; }
.request-review-table th:nth-child(2) { width: 150px; }
.request-review-table th:nth-child(3) { width: 150px; }
.request-review-table th:nth-child(4) { width: 220px; }
.request-review-table th:nth-child(5) { width: 130px; }
.request-review-table th:nth-child(6) { width: 250px; }
.request-review-table th:nth-child(7) { width: 100px; }
.request-review-table td:nth-child(1),
.request-review-table td:nth-child(2),
.request-review-table td:nth-child(3),
.request-review-table td:nth-child(5),
.request-review-table td:nth-child(7) { text-align: center; }
.request-select-cell { cursor: pointer; text-align: center; }
.request-select-cell input { width: 14px; height: 14px; margin: 0; }
.request-selected-row td { background: #eaf3fa; }
.request-usage-count {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 6px;
  color: #fff;
  background: #358366;
  font-size: 12px;
}
.request-usage-count.exhausted { background: #a23a3a; }
.template-editor-table { min-width: 1690px; table-layout: fixed; font-size: 12px; }
.template-editor-table th,
.template-editor-table td { padding: 4px 5px; vertical-align: middle; line-height: 1.35; }
.template-editor-table th { padding: 5px; font-size: 12px; }
.template-editor-table th:nth-child(1) { width: 88px; text-align: center; }
.template-editor-table th:nth-child(2) { width: 42px; text-align: center; }
.template-editor-table th:nth-child(3) { width: 120px; }
.template-editor-table th:nth-child(4) { width: 90px; }
.template-editor-table th:nth-child(5) { width: 66px; }
.template-editor-table th:nth-child(6) { width: 175px; }
.template-editor-table th:nth-child(7) { width: 180px; }
.template-editor-table th:nth-child(8) { width: 46px; }
.template-editor-table th:nth-child(9) { width: 215px; }
.template-editor-table th:nth-child(10) { width: 72px; }
.template-editor-table th:nth-child(11) { width: 112px; }
.template-editor-table th:nth-child(12) { width: 155px; }
.template-editor-table th:nth-child(13) { width: 150px; }
.template-editor-table th:nth-child(14) { width: 108px; }
.template-editor-table input { height: 28px; }
.person-editor-fields { display: grid; gap: 5px; }
.person-editor-actions { display: flex; gap: 6px; margin-top: 7px; }
.template-account-count { color: #174f7d; text-align: center; font-size: 13px; font-weight: 600; }
.template-select-cell { text-align: center; vertical-align: middle; }
.template-select-cell input { width: 14px; height: 14px; margin: 0; }
.template-selection-column { padding: 3px 4px !important; }
.template-selection-column > span:first-child { display: block; margin-bottom: 2px; white-space: nowrap; }
.template-selection-actions { display: flex; align-items: center; justify-content: center; gap: 5px; }
.template-selection-actions label { display: inline-flex; align-items: center; gap: 2px; color: #59636e; font-size: 10px; white-space: nowrap; cursor: pointer; }
.template-selection-actions input { width: 12px; height: 12px; margin: 0; }
.template-selectable-row { cursor: pointer; }
.template-selectable-row td { transition: background-color 100ms ease; }
.template-selectable-row:hover td { background: #f7fafc; }
.template-selected-row td,
.template-selected-row:hover td { background: #edf5fb; }
.template-selectable-row :is(input, select, button, a, label, textarea) { cursor: default; }
.template-store-select { min-height: 62px; padding: 3px; }
.inline-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-checks label { display: flex; align-items: center; gap: 4px; color: #333a43; }
.inline-checks input { width: 14px; height: 14px; margin: 0; }
.template-quota { display: inline-block; padding: 1px 5px; color: #fff; background: #7d8791; font-size: 11px; }
.template-quota.available { background: #358366; }
.template-quota.borrowed { background: #2d6f9f; }
.template-quota.exhausted { background: #a23a3a; }
.template-detail-empty { height: 110px; }
.template-result-cell { padding: 4px 8px; }
.template-result-empty { display: inline-block; padding: 2px 5px; color: #747d87; background: #eef0f2; font-size: 11px; }
.template-product-cell { vertical-align: middle; }
.template-product-cell > div:first-child { color: #174f7d; font-weight: 500; }
.template-product-cell .line-secondary { margin-top: 2px; line-height: 1.4; }
.template-address-cell,
.template-remark-cell,
.template-settings-cell { line-height: 1.35; white-space: normal; }
.template-editor-table td:nth-child(3),
.template-editor-table td:nth-child(5),
.template-editor-table td:nth-child(6),
.template-editor-table td:nth-child(7),
.template-editor-table td:nth-child(8),
.template-editor-table td:nth-child(9) { overflow-wrap: anywhere; }
.template-quantity-cell { text-align: center; font-variant-numeric: tabular-nums; }
.template-settings-cell > div { white-space: nowrap; }
.template-resource-cell { padding: 4px 8px; }
.template-resource-line { min-height: 30px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid #e3e6e9; }
.template-resource-line:last-child { border-bottom: 0; }
.template-resource-line input { flex: 0 0 auto; width: 14px; height: 14px; margin: 0; }
.template-resource-line span { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.configuration-count-dialog { width: min(430px, calc(100% - 28px)); padding: 0; color: #20242a; background: #fff; border: 1px solid #aeb6bf; border-radius: 0; box-shadow: 0 14px 38px rgb(34 43 52 / 24%); }
.configuration-count-dialog::backdrop { background: rgb(22 28 35 / 42%); }
.configuration-count-dialog form { display: grid; gap: 16px; padding: 18px; }
.configuration-count-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.configuration-count-heading h2 { font-size: 18px; }
.configuration-count-dialog p { color: #69737e; font-size: 12px; line-height: 1.6; }
.dialog-close { min-width: 28px; min-height: 28px; padding: 0; color: #68717b; background: transparent; border-color: transparent; font-size: 22px; line-height: 1; }
.catalog-dialog { width: min(520px, calc(100% - 28px)); }
.catalog-fields { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.catalog-fields label:first-child { grid-column: 1; }
.catalog-fields label:nth-child(2) { grid-column: 2; }
.catalog-fields label:last-child { grid-column: 1 / -1; }
.configuration-number-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.configuration-count-field { min-width: 0; display: grid; gap: 6px; }
.configuration-count-field span { font-size: 13px; }
.configuration-count-field input { width: 100%; height: 36px; padding: 6px 9px; border: 1px solid #bfc5cc; }
.configuration-store-mode { min-width: 0; margin: 0; padding: 0; border: 0; }
.configuration-store-mode legend { margin-bottom: 7px; color: #36414b; font-size: 13px; }
.configuration-store-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.configuration-store-options label { min-width: 0; min-height: 40px; padding: 7px 9px; display: flex; align-items: center; gap: 7px; border: 1px solid #bfc5cc; cursor: pointer; }
.configuration-store-options label + label { border-left: 0; }
.configuration-store-options label:has(input:checked) { color: #174f7d; background: #edf5fb; border-color: #6f9fc3; }
.configuration-store-options label:has(input:checked) + label { border-left-color: #6f9fc3; }
.configuration-store-options input { width: 14px; height: 14px; margin: 0; flex: 0 0 auto; }
.configuration-store-options span { min-width: 0; white-space: nowrap; font-size: 12px; }
.configuration-store-scope,
.configuration-product-scope { min-width: 0; margin: 0; padding: 8px; border: 1px solid #d9dde1; }
.configuration-store-scope legend,
.configuration-product-scope legend { padding: 0 5px; color: #36414b; font-size: 13px; }
.configuration-store-selection,
.configuration-product-selection { max-height: 190px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: auto; border: 1px solid #d9dde1; background: #fff; }
.configuration-store-selection label,
.configuration-product-selection label { min-width: 0; padding: 8px 9px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #edf0f2; }
.configuration-store-selection label:nth-child(odd),
.configuration-product-selection label:nth-child(odd) { border-right: 1px solid #edf0f2; }
.configuration-store-selection input[type="checkbox"],
.configuration-product-selection input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  margin: 0;
  flex: 0 0 14px;
}
.configuration-store-selection label span,
.configuration-product-selection label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.configuration-store-empty { grid-column: 1 / -1; padding: 12px; color: #8a929a; text-align: center; }
.configuration-runtime-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.configuration-runtime-option { min-width: 0; margin: 0; padding: 9px 10px; border: 1px solid #d9dde1; }
.configuration-runtime-option legend { padding: 0 5px; color: #36414b; font-size: 13px; }
.configuration-runtime-toggle { min-height: 30px; display: flex; align-items: center; gap: 7px; cursor: pointer; }
.configuration-runtime-toggle input,
.configuration-runtime-strategies input { width: 14px; height: 14px; margin: 0; flex: 0 0 14px; }
.configuration-runtime-detail { margin-top: 7px; display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 6px; color: #59636e; font-size: 12px; }
.configuration-runtime-detail input { min-width: 0; width: 100%; height: 30px; padding: 4px 6px; border: 1px solid #bfc5cc; }
.configuration-runtime-strategies { margin-top: 7px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.configuration-runtime-strategies label { min-height: 30px; padding: 5px 7px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #cbd1d7; cursor: pointer; font-size: 12px; }
.configuration-runtime-strategies label + label { border-left: 0; }
.configuration-runtime-strategies label:has(input:checked) { color: #174f7d; background: #edf5fb; border-color: #6f9fc3; }
.configuration-count-actions { display: flex; justify-content: flex-end; gap: 8px; }
.batch-configuration-dialog { width: min(1040px, calc(100% - 28px)); }
.batch-configuration-dialog form { max-height: calc(100dvh - 36px); overflow: auto; }
.batch-option-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.batch-option { min-width: 0; margin: 0; padding: 10px; border: 1px solid #d3d8dd; }
.batch-option legend { padding: 0 4px; color: #36414b; font-size: 12px; }
.batch-option legend label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.batch-option input[type="checkbox"] { width: 14px; height: 14px; margin: 0; }
.batch-option input[type="text"],
.batch-option input[type="number"],
.batch-option select { width: 100%; height: 34px; padding: 5px 8px; border: 1px solid #bfc5cc; }
.batch-inline-check { min-height: 34px; display: flex; align-items: center; gap: 7px; color: #3c4650; }
.batch-number-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.batch-number-field span { color: #737d87; font-size: 11px; }
.batch-wide-option { padding: 10px; }
.batch-address-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.batch-address-grid input:nth-child(5),
.batch-address-grid input:nth-child(6) { grid-column: span 2; }
.batch-selection-list { max-height: 180px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: auto; border: 1px solid #d9dde1; background: #fff; }
.batch-selection-list label { min-width: 0; padding: 7px 9px; display: flex; align-items: center; gap: 7px; border-right: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; }
.batch-selection-list label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-selection-empty { grid-column: 1 / -1; padding: 12px; color: #89919a; text-align: center; }
.template-copy-line { justify-content: flex-start; }
.template-copy-line button { min-height: 25px; padding: 2px 6px; }
.template-account-result { min-height: 48px; padding: 5px 0; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 7px; border-bottom: 1px solid #e3e6e9; }
.template-account-result:last-child { border-bottom: 0; }
.template-account-result input { width: 14px; height: 14px; margin: 0; }
.template-account-details { min-width: 0; overflow: hidden; }
.template-account-details > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-account-result button { min-height: 25px; padding: 2px 6px; color: #1d6093; background: transparent; border-color: transparent; }

.product-section-heading { min-height: 58px; }
.product-default-summary { display: flex; align-items: center; gap: 18px; color: #68717b; font-size: 12px; }
.product-default-summary strong { margin-left: 3px; color: #24704e; font-size: 15px; font-weight: 600; }
.product-default-summary strong.invalid { color: #a33a3a; }
.product-import-bar { padding: 14px 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 10px; border-bottom: 1px solid #d9dde1; }
.product-import-bar textarea { min-height: 74px; resize: vertical; }
.product-import-bar button { min-width: 110px; }
.product-admin-scroll { max-height: calc(100dvh - 310px); }
.product-admin-table { min-width: 840px; }
.product-admin-table th,
.product-admin-table td { border: 1px solid #d9dde1; vertical-align: middle; }
.product-admin-table th { position: sticky; top: 0; z-index: 2; background: #f3f5f6; }
.product-admin-table th:nth-child(1) { width: 60px; text-align: center; }
.product-admin-table th:nth-child(2) { width: 150px; }
.product-admin-table th:nth-child(4) { width: 130px; text-align: center; }
.product-admin-table th:nth-child(5) { width: 90px; text-align: center; }
.product-admin-table th:nth-child(6) { width: 90px; text-align: center; }
.product-admin-table td:nth-child(1),
.product-admin-table td:nth-child(4),
.product-admin-table td:nth-child(5),
.product-admin-table td:nth-child(6) { text-align: center; }
.product-admin-table input[type="checkbox"] { width: 15px; height: 15px; margin: 0; }
.product-code { color: #174f7d; font-weight: 500; }
.admin-product-percentage { display: inline-block; width: 72px; height: 31px; margin-right: 4px; text-align: center; }
.product-state { display: inline-block; padding: 2px 7px; color: #fff; font-size: 11px; }
.product-state.enabled { background: #358366; }
.product-state.disabled { background: #858d96; }
.product-disabled-row { opacity: .62; background: #f5f6f7; }
.product-default-actions { min-height: 58px; padding: 10px 15px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; border-top: 1px solid #d9dde1; }
.product-default-actions span { color: #707983; font-size: 12px; }

.permission-editor { padding: 15px; }
.permission-tools { display: grid; grid-template-columns: minmax(180px, 260px) minmax(150px, 190px) auto; gap: 10px; align-items: end; }
.permission-tools .primary { min-width: 110px; }
.permission-store-toolbar { margin-top: 14px; padding-top: 12px; display: grid; grid-template-columns: minmax(180px, 280px) 1fr auto auto; align-items: end; gap: 8px; border-top: 1px solid #dfe3e6; }
.selection-summary { align-self: center; color: #6f7882; font-size: 12px; }
label { display: grid; gap: 5px; color: #505963; font-size: 12px; }
input, textarea, select { width: 100%; color: #20242a; background: #fff; border: 1px solid #c8cdd3; border-radius: 0; outline: none; }
input, select { height: 36px; padding: 6px 9px; }
textarea { padding: 8px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: #4d86b3; box-shadow: 0 0 0 1px #4d86b3; }
.store-grid { margin-top: 10px; max-height: 440px; overflow: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #d5dade; }
.store-option { min-width: 0; min-height: 42px; padding: 5px 6px 5px 10px; display: flex; align-items: center; gap: 5px; border-right: 1px solid #e1e5e8; border-bottom: 1px solid #e1e5e8; }
.store-option label { min-width: 0; flex: 1; display: flex; align-items: center; gap: 7px; cursor: pointer; }
.store-option input { width: 14px; height: 14px; margin: 0; }
.store-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-delete { flex: 0 0 auto; min-width: 34px; min-height: 27px; padding: 2px 5px; color: #a23939; background: transparent; border-color: transparent; font-size: 11px; }

.resource-grid { padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resource-panel { min-width: 0; padding: 12px; border: 1px solid #d5d9de; }
.resource-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.resource-panel-heading span { color: #61707d; font-size: 11px; }
.resource-panel textarea { margin: 10px 0 8px; }
.resource-import-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.resource-search-field { margin-top: 9px; display: block; }
.resource-search-field input { height: 32px; font-size: 12px; }
.resource-state-tabs { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resource-state-tabs button { min-width: 0; min-height: 29px; padding: 3px 5px; border-right: 0; font-size: 11px; }
.resource-state-tabs button:last-child { border-right: 1px solid #bfc5cc; }
.resource-state-tabs button.active { color: #174f7d; background: #eaf2f8; border-color: #6f9abc; }
.resource-list { margin-top: 12px; max-height: 430px; overflow: auto; border-top: 1px solid #dfe2e5; }
.resource-row { min-height: 47px; padding: 7px 2px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #e5e8ea; }
.resource-row-content { min-width: 0; flex: 1; }
.resource-row-main { min-width: 0; display: flex; align-items: center; gap: 6px; }
.resource-row-main > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.resource-row small { display: block; margin-top: 2px; color: #7a838d; }
.resource-state-badge { flex: 0 0 auto; padding: 1px 5px; color: #fff; font-size: 10px; }
.resource-state-badge.available { background: #2f7d5c; }
.resource-state-badge.borrowed { background: #356f9f; }
.resource-state-badge.frozen { background: #7f8790; }
.resource-delete { flex: 0 0 auto; min-height: 27px; padding: 2px 6px; color: #a23939; background: transparent; border-color: transparent; font-size: 11px; }
.resource-delete:disabled { color: #a5abb1; background: transparent; }

.quota-editor { padding: 16px 15px; display: grid; grid-template-columns: repeat(4, minmax(165px, 1fr)) auto; align-items: end; gap: 12px; background: #fbfcfd; border-bottom: 1px solid #d9dde1; }
.setting-field { min-width: 0; display: grid; gap: 7px; }
.setting-field > span { color: #3f4953; font-size: 12px; font-weight: 600; }
.setting-field > input { width: 100%; height: 36px; padding: 6px 10px; color: #202830; background: #fff; border: 1px solid #bfc7ce; outline: 0; }
.setting-field > input:focus { border-color: #4f87b1; box-shadow: inset 0 0 0 1px #4f87b1; }
.reuse-choice-group { height: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid #bfc7ce; }
.reuse-choice-group label { position: relative; min-width: 0; cursor: pointer; border-right: 1px solid #d3d8dd; }
.reuse-choice-group label:last-child { border-right: 0; }
.reuse-choice-group input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; pointer-events: none; }
.reuse-choice-group label > span { width: 100%; height: 100%; display: grid; place-items: center; color: #4b5661; background: #fff; font-size: 13px; transition: color 120ms ease, background-color 120ms ease; }
.reuse-choice-group label:hover > span { color: #174f7d; background: #f2f7fb; }
.reuse-choice-group input:focus-visible + span { outline: 2px solid #78a7ca; outline-offset: -2px; }
.reuse-choice-group input:checked + span { color: #fff; background: #2d6f9f; }
.quota-save-button { min-width: 106px; height: 36px; padding-block: 5px; }
.subsection-title { min-height: 48px; padding: 10px 15px; display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid #d9dde1; }
.subsection-title span { color: #7a838d; font-size: 11px; }

.message { position: fixed; right: 18px; bottom: 18px; z-index: 20; max-width: min(460px, calc(100% - 36px)); padding: 10px 14px; color: #fff; background: #2f4354; border: 1px solid #20313f; }
.message.error { background: #963333; border-color: #722525; }

@media (max-width: 900px) {
  .summary-strip { grid-template-columns: repeat(4, minmax(120px, 1fr)); overflow: auto; }
  .summary-strip button { grid-column: 1 / -1; margin: 8px; }
  .template-detail-heading { display: grid; }
  .template-detail-actions { justify-content: flex-start; }
  .permission-store-toolbar { grid-template-columns: 1fr 1fr auto auto; }
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .resource-grid { grid-template-columns: 1fr; }
  .quota-editor { grid-template-columns: 1fr 1fr; }
  .quota-editor button { grid-column: 1 / -1; }
  .batch-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-selection-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner, .page-shell { width: calc(100% - 16px); }
  .header-inner { min-height: 58px; }
  h1 { font-size: 19px; }
  nav { gap: 7px; font-size: 12px; }
  .page-shell { padding-top: 10px; }
  .summary-strip { grid-template-columns: repeat(4, 116px); }
  .section-tabs { overflow-x: auto; }
  .section-tabs button { flex: 0 0 auto; }
  .section-heading { align-items: flex-start; padding: 11px; }
  .configuration-city-bar { padding: 8px 10px 7px; gap: 6px; }
  .configuration-city-tabs { width: 100%; }
  .configuration-city-tab { flex: 0 0 auto; min-width: 100px; min-height: 40px; padding-inline: 9px; }
  .configuration-city-summary { justify-self: start; padding-inline: 2px; }
  .request-review-heading { display: grid; }
  .request-review-actions { width: 100%; justify-content: flex-start; }
  .request-review-scroll { min-height: calc(100dvh - 250px); max-height: none; }
  .template-detail-copy { min-width: 0; }
  .template-workflow { width: 100%; overflow-x: auto; }
  .workflow-step { min-width: 118px; padding-inline: 8px; }
  .template-detail-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-detail-actions button { min-width: 0; padding-inline: 7px; }
  .permission-tools { grid-template-columns: 1fr 1fr; }
  .permission-tools .primary { grid-column: 1 / -1; }
  .permission-store-toolbar { grid-template-columns: 1fr 1fr; }
  .permission-store-toolbar label { grid-column: 1 / -1; }
  .permission-tools button { min-width: 0; padding-inline: 8px; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-fields { grid-template-columns: 1fr; }
  .catalog-fields label:first-child,
  .catalog-fields label:nth-child(2),
  .catalog-fields label:last-child { grid-column: 1; }
  .resource-grid { padding: 10px; }
  .resource-search-field input { font-size: 16px; }
  .product-section-heading { display: flex; align-items: center; }
  .product-default-summary { gap: 10px; }
  .product-import-bar { padding: 10px; grid-template-columns: 1fr; }
  .product-import-bar button { width: 100%; }
  .product-default-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .product-default-actions button { width: 100%; }
  .quota-editor { grid-template-columns: 1fr 1fr; padding: 10px; }
  .quota-editor button { grid-column: 1 / -1; }
  .configuration-store-selection,
  .configuration-product-selection { grid-template-columns: 1fr; }
  .configuration-store-selection label:nth-child(odd),
  .configuration-product-selection label:nth-child(odd) { border-right: 0; }
  .configuration-runtime-options { grid-template-columns: 1fr; }
  .batch-configuration-dialog { width: calc(100% - 16px); }
  .batch-configuration-dialog form { max-height: calc(100dvh - 16px); padding: 12px; }
  .batch-option-grid { grid-template-columns: 1fr; }
  .batch-address-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-address-grid input:nth-child(5),
  .batch-address-grid input:nth-child(6) { grid-column: 1 / -1; }
  .batch-selection-list { grid-template-columns: 1fr; }
  .batch-selection-list label { border-right: 0; }
}

@media (max-width: 430px) {
  .header-inner { gap: 8px; }
  nav a:first-child { display: none; }
  .store-grid { grid-template-columns: 1fr; }
  .permission-tools { grid-template-columns: 1fr; }
  .permission-tools .primary { grid-column: auto; }
}
