.scm-page {
  --scm-navy: #163a5f;
  --scm-blue: #2367a3;
  --scm-cyan: #2f94c9;
  --scm-green: #1f8a68;
  --scm-orange: #c97b23;
  --scm-red: #c64b4b;
  --scm-line: #dce5ee;
  --scm-muted: #62768a;
  display: grid;
  gap: 18px;
  color: #20364c;
}
.scm-page .page-title {
  margin-bottom: 0;
}
.scm-page [hidden] {
  display: none !important;
}
.scm-page [data-scm-tab-panel] {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.scm-main-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 2px solid var(--scm-line);
  padding: 0 0 6px;
}
.scm-main-tabs button {
  flex: 1;
  min-width: 120px;
  border: 1px solid var(--scm-line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  color: var(--scm-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.scm-main-tabs button[aria-selected='true'] {
  background: var(--scm-navy);
  border-color: var(--scm-navy);
  color: #fff;
}
.scm-main-tabs button:focus-visible,
.scm-button-row button:focus-visible {
  outline: 3px solid var(--scm-cyan);
  outline-offset: 2px;
}
.scm-period-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--scm-muted);
  font-size: 13px;
}
.scm-period-toolbar input {
  padding: 9px;
  border: 1px solid var(--scm-line);
  border-radius: 8px;
  color: var(--scm-navy);
  background: #fff;
}
.scm-page .scm-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}
.scm-warning {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #ecd39c;
  border-radius: 8px;
  background: #fff7e7;
  color: #795617;
  font-size: 13px;
  line-height: 1.5;
}
.scm-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin: 0 0 20px;
}
.scm-editor-grid label,
.scm-reason-label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--scm-navy);
}
.scm-editor-grid input:not([type='file']),
.scm-editor-grid select,
.scm-reason-label textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid #cbd8e4;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: #243b53;
}
.scm-reason-label {
  margin: 18px 0;
}
.scm-reason-label span {
  font-size: 12px;
  color: var(--scm-muted);
  font-weight: 400;
}
.scm-reason-label textarea {
  min-height: 85px;
  resize: vertical;
}
.scm-button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.scm-button-row button {
  border: 1px solid var(--scm-blue);
  border-radius: 7px;
  padding: 9px 13px;
  background: var(--scm-blue);
  color: #fff;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.scm-button-row button.secondary {
  background: #fff;
  border-color: #cbd8e4;
  color: #526b80;
}
.scm-history {
  border-top: 1px solid var(--scm-line);
  margin-top: 18px;
  padding-top: 14px;
  font-size: 12px;
  color: var(--scm-muted);
}
.scm-history summary {
  cursor: pointer;
}
.scm-history p {
  border-bottom: 1px solid var(--scm-line);
  padding: 8px 0;
  overflow-wrap: anywhere;
}
.scm-file-notice {
  color: var(--scm-muted);
  font-size: 12px;
  line-height: 1.5;
}
.scm-attachment-table {
  min-width: 800px;
}
.scm-attachment-table td {
  white-space: normal !important;
  overflow-wrap: anywhere;
  max-width: 360px;
}
.scm-page .scm-editor-grid .scm-file-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.scm-page .scm-editor-grid .scm-file-button input[type='file'] {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.scm-page .scm-editor-grid .scm-file-button:focus-within {
  outline: 3px solid var(--scm-cyan);
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  .scm-page .scm-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .scm-page .scm-kpis,
  .scm-editor-grid {
    grid-template-columns: 1fr;
  }
  .scm-period-toolbar {
    align-items: flex-start;
  }
  .scm-settings-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .scm-main-tabs button {
    font-size: 13px;
  }
}
.scm-panel {
  background: #fff;
  border: 1px solid var(--scm-line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 48, 75, 0.06);
  padding: 22px;
  min-width: 0;
}
.scm-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.scm-panel-head h2 {
  margin: 0 0 5px;
  color: var(--scm-navy);
  font-size: 18px;
}
.scm-panel-head p {
  margin: 0;
  color: var(--scm-muted);
  font-size: 13px;
  line-height: 1.55;
}
.scm-settings-disclosure {
  overflow: hidden;
  border: 1px solid #cfdde9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 48, 75, 0.06);
}
.scm-settings-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.scm-settings-disclosure > summary::-webkit-details-marker {
  display: none;
}
.scm-settings-disclosure > summary:hover {
  background: #f8fbfd;
}
.scm-settings-disclosure > summary div {
  display: grid;
  gap: 4px;
}
.scm-settings-disclosure > summary b {
  color: var(--scm-navy);
  font-size: 16px;
}
.scm-settings-disclosure > summary span {
  color: var(--scm-muted);
  font-size: 12px;
}
.scm-settings-disclosure > summary strong {
  color: var(--scm-blue);
  font-size: 12px;
  white-space: nowrap;
}
.scm-settings-disclosure[open] > summary {
  border-bottom: 1px solid var(--scm-line);
  background: #f8fbfd;
}
.scm-settings-body {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
}
.scm-settings-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px minmax(260px, 1.4fr);
  gap: 12px;
  align-items: end;
}
.scm-settings-controls label {
  display: grid;
  gap: 7px;
  color: #526b80;
  font-size: 12px;
  font-weight: 700;
}
.scm-settings-controls input,
.scm-settings-controls select,
.scm-settings-table input {
  height: 42px;
  border: 1px solid #cbd8e4;
  border-radius: 8px;
  background: #fff;
  color: #243b53;
  padding: 0 12px;
  font: inherit;
  outline: none;
}
.scm-settings-controls input:focus,
.scm-settings-controls select:focus,
.scm-settings-table input:focus {
  border-color: var(--scm-blue);
  box-shadow: 0 0 0 3px rgba(35, 103, 163, 0.11);
}
.scm-settings-controls p {
  margin: 0;
  padding: 11px 13px;
  border-radius: 8px;
  background: #f1f7fb;
  color: var(--scm-muted);
  font-size: 11px;
  line-height: 1.5;
}
.scm-settings-table {
  min-width: 720px;
}
.scm-settings-table th:first-child,
.scm-settings-table td:first-child {
  width: 54%;
  text-align: left;
}
.scm-number-input {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.scm-number-input input {
  width: 145px;
  text-align: right;
}
.scm-number-input input[readonly] {
  border-color: #e1e8ef;
  background: #f4f7f9;
  color: #687c8e;
}
.scm-number-input span {
  min-width: 13px;
  color: var(--scm-muted);
  font-size: 11px;
  text-align: left;
}
.scm-settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.scm-settings-footer > div {
  font-size: 12px;
  font-weight: 700;
}
.scm-settings-footer > div.valid {
  color: var(--scm-green);
}
.scm-settings-footer > div.invalid {
  color: var(--scm-red);
}
.scm-settings-footer button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--scm-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.scm-settings-footer button:hover {
  background: #1d5789;
}
.scm-settings-footer button.secondary {
  border: 1px solid #cbd8e4;
  background: #fff;
  color: #526b80;
}
.scm-period-select {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--scm-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.scm-upload-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.scm-template-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #b8cfdf;
  border-radius: 8px;
  background: #f4f9fc;
  color: var(--scm-blue);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.scm-template-download:hover {
  border-color: var(--scm-blue);
  background: #eaf4fa;
  color: #1d5789;
}
.scm-period-select select,
.scm-month-workflow input,
.scm-detail-filters input,
.scm-detail-filters select {
  height: 42px;
  border: 1px solid #cbd8e4;
  border-radius: 8px;
  background: #fff;
  color: #243b53;
  padding: 0 12px;
  font: inherit;
  outline: none;
}
.scm-period-select select:focus,
.scm-month-workflow input:focus,
.scm-detail-filters input:focus,
.scm-detail-filters select:focus {
  border-color: var(--scm-blue);
  box-shadow: 0 0 0 3px rgba(35, 103, 163, 0.11);
}
.scm-month-workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.scm-month-workflow > section {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr) minmax(150px, 190px) 145px;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d7e4ee;
  border-radius: 11px;
  background: #f8fbfd;
}
.scm-month-workflow > section:last-child {
  grid-template-columns: auto minmax(190px, 1fr) minmax(170px, 210px) auto;
}
.scm-step-number {
  align-self: center;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--scm-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.scm-month-workflow section > div {
  align-self: center;
  display: grid;
  gap: 4px;
}
.scm-month-workflow section > div b {
  color: var(--scm-navy);
  font-size: 13px;
}
.scm-month-workflow section > div small {
  color: var(--scm-muted);
  font-size: 10px;
  line-height: 1.4;
}
.scm-month-workflow section > label:not(.scm-file-button) {
  display: grid;
  gap: 6px;
  color: #526b80;
  font-size: 11px;
  font-weight: 800;
}
.scm-month-workflow .scm-period-select {
  display: grid;
}
.scm-month-result {
  align-self: center;
  color: var(--scm-blue);
  font-size: 12px;
  white-space: nowrap;
}
.scm-file-button {
  height: 42px;
  border-radius: 8px;
  background: var(--scm-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(35, 103, 163, 0.18);
}
.scm-file-button:hover {
  background: #1d5789;
}
.scm-file-button span {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.78;
}
.scm-file-button input {
  display: none;
}
.scm-company-plan-panel {
  display: grid;
  gap: 16px;
}
.scm-company-plan-panel > .scm-panel-head {
  margin-bottom: 0;
}
.scm-plan-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.scm-plan-lock.locked {
  background: #e4f4ed;
  color: #15704f;
}
.scm-plan-lock.editing {
  background: #fff1dc;
  color: #9a5c13;
}
.scm-company-plan-table {
  min-width: 1780px;
}
.scm-company-plan-table th:first-child,
.scm-company-plan-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 210px;
  text-align: left;
  background: #fff;
}
.scm-company-plan-table th:first-child {
  z-index: 2;
  background: #f2f6fa;
}
.scm-company-plan-table td:first-child small {
  display: block;
  margin-top: 4px;
  color: var(--scm-muted);
  font-size: 10px;
}
.scm-company-plan-table .scm-number-input input {
  width: 118px;
  height: 36px;
  border: 1px solid #cbd8e4;
  border-radius: 7px;
  background: #fff;
  color: #243b53;
  padding: 0 9px;
  text-align: right;
}
.scm-company-plan-table .scm-number-input input:disabled {
  border-color: #e1e8ef;
  background: #f4f7f9;
  color: #687c8e;
}
.scm-scope-note {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #f1f7fb;
  border: 1px solid #d7e8f3;
  font-size: 12px;
  line-height: 1.55;
}
.scm-scope-note b {
  color: var(--scm-blue);
}
.scm-scope-note span {
  color: #536b7d;
}
.scm-import-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}
.scm-import-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e9f0;
  border-radius: 10px;
  background: #fbfcfe;
}
.scm-import-list article > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}
.scm-import-list b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scm-import-list small {
  grid-column: 1/-1;
  color: var(--scm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scm-import-list strong {
  color: var(--scm-navy);
  white-space: nowrap;
}
.scm-import-list button {
  border: 0;
  background: transparent;
  color: #9a3f3f;
  font-weight: 700;
  cursor: pointer;
  padding: 7px;
}
.scm-import-list button.scm-download-file {
  color: var(--scm-blue);
}
.scm-import-list button:disabled {
  color: #8b9aaa;
  cursor: default;
}
.scm-import-history {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.scm-import-history h3 {
  margin: 0;
  color: var(--scm-navy);
  font-size: 13px;
}
.scm-import-list article.inactive {
  opacity: 0.67;
  background: #f3f5f7;
}
.scm-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.scm-status.draft {
  background: #fff1dc;
  color: #9a5c13;
}
.scm-status.confirmed {
  background: #e4f4ed;
  color: #15704f;
}
.scm-status.empty {
  background: #edf1f4;
  color: #617486;
}
.scm-status.superseded,
.scm-status.cancelled {
  background: #e8edf1;
  color: #617486;
}
.scm-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.scm-role.is-main {
  background: #e6f0fb;
  color: #215f98;
}
.scm-role.is-partner {
  background: #e5f5ef;
  color: #177353;
}
.scm-role.is-unclassified {
  background: #edf0f3;
  color: #5f7080;
}
.scm-summary-panel {
  display: grid;
  gap: 18px;
}
.scm-summary-panel > .scm-panel-head {
  margin-bottom: 0;
}
.scm-workflow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid #d7e2ec;
  border-radius: 11px;
  background: #f8fafc;
}
.scm-workflow-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.scm-workflow-bar > div:first-child > div {
  display: grid;
  gap: 3px;
}
.scm-workflow-bar b {
  color: var(--scm-navy);
  font-size: 13px;
}
.scm-workflow-bar small {
  color: var(--scm-muted);
  font-size: 11px;
}
.scm-confirm-button {
  height: 38px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  background: var(--scm-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(35, 103, 163, 0.18);
  white-space: nowrap;
}
.scm-confirm-button:hover {
  background: #1d5789;
}
.scm-confirm-button.secondary {
  border: 1px solid #cbd8e4;
  background: #fff;
  color: #526b80;
  box-shadow: none;
}
.scm-scope-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 11px;
  background: #f2f6fa;
}
.scm-scope-tabs > span {
  padding: 0 8px;
  color: var(--scm-muted);
  font-size: 11px;
  font-weight: 800;
}
.scm-scope-tabs button {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #476176;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.scm-scope-tabs button small {
  display: block;
  margin-bottom: 1px;
  color: #7690a5;
  font-size: 9px;
  font-weight: 700;
}
.scm-scope-tabs button:hover {
  background: #fff;
}
.scm-scope-tabs button.active {
  border-color: #cbdce9;
  background: #fff;
  color: var(--scm-blue);
  box-shadow: 0 3px 10px rgba(20, 48, 75, 0.08);
}
.scm-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.scm-kpis article {
  background: #fff;
  border: 1px solid var(--scm-line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(20, 48, 75, 0.05);
}
.scm-kpis small,
.scm-kpis span {
  display: block;
  color: var(--scm-muted);
}
.scm-kpis small {
  font-size: 11px;
  font-weight: 700;
}
.scm-kpis strong {
  display: block;
  margin: 8px 0 5px;
  color: var(--scm-navy);
  font-size: 18px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.scm-kpis span {
  font-size: 11px;
}
.scm-kpis article.scm-up strong {
  color: var(--scm-orange);
}
.scm-kpis article.scm-down strong {
  color: var(--scm-blue);
}
.scm-kpis article.scm-over {
  border-color: #e9b7b7;
  background: #fff9f9;
}
.scm-kpis article.scm-over strong {
  color: var(--scm-red);
}
.scm-kpis article.scm-reduction strong,
.scm-reduction-amount {
  color: var(--scm-red) !important;
}
.scm-kpis .scm-na {
  font-size: 16px;
  letter-spacing: 0;
  color: #8796a5;
}
.scm-settlement-note {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  padding: 12px 15px;
  border: 1px solid #d9e6ef;
  border-radius: 10px;
  background: #f5f9fc;
  color: var(--scm-muted);
  font-size: 12px;
}
.scm-settlement-note b {
  margin-right: 6px;
  color: var(--scm-navy);
}
.scm-top-categories {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding-top: 16px;
  border-top: 1px solid #e5ebf1;
}
.scm-top-categories > b {
  grid-column: 1/-1;
  color: var(--scm-navy);
  font-size: 13px;
}
.scm-top-categories > span {
  grid-column: 1/-1;
  color: var(--scm-muted);
  font-size: 12px;
}
.scm-top-categories div {
  display: contents;
}
.scm-top-categories div > span {
  overflow: hidden;
  color: #4c657a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scm-top-categories i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eff4;
}
.scm-top-categories em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--scm-blue), var(--scm-cyan));
}
.scm-top-categories strong {
  color: var(--scm-navy);
  font-size: 12px;
  white-space: nowrap;
}
.scm-detail-disclosure {
  overflow: hidden;
  border: 1px solid var(--scm-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 48, 75, 0.06);
}
.scm-detail-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
}
.scm-detail-disclosure > summary::-webkit-details-marker {
  display: none;
}
.scm-detail-disclosure > summary:hover {
  background: #f8fbfd;
}
.scm-detail-disclosure > summary div {
  display: grid;
  gap: 4px;
}
.scm-detail-disclosure > summary b {
  color: var(--scm-navy);
  font-size: 16px;
}
.scm-detail-disclosure > summary span {
  color: var(--scm-muted);
  font-size: 12px;
}
.scm-detail-disclosure > summary > strong {
  color: var(--scm-blue);
  font-size: 12px;
  white-space: nowrap;
}
.scm-detail-disclosure .scm-details-close {
  display: none;
}
.scm-detail-disclosure[open] .scm-details-more {
  display: none;
}
.scm-detail-disclosure[open] .scm-details-close {
  display: block;
}
.scm-detail-disclosure[open] > summary {
  border-bottom: 1px solid var(--scm-line);
}
.scm-detail-body {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: #f5f8fb;
}
.scm-month-table-wrap {
  margin-top: 16px;
}
.scm-month-table {
  min-width: 900px;
}
.scm-month-table th:first-child,
.scm-month-table td:first-child {
  text-align: left;
}
.scm-month-table button {
  border: 0;
  background: transparent;
  color: var(--scm-blue);
  font-weight: 800;
  cursor: pointer;
}
.scm-table-wrap {
  overflow: auto;
  border: 1px solid #e2e9f0;
  border-radius: 10px;
}
.scm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  font-size: 12px;
}
.scm-table th {
  background: #f2f6fa;
  color: #526b80;
  font-size: 11px;
  text-align: right;
  padding: 11px 12px;
  border-bottom: 1px solid #dbe5ed;
  white-space: nowrap;
}
.scm-table th:first-child,
.scm-table td:first-child {
  text-align: left;
}
.scm-table td {
  padding: 12px;
  border-bottom: 1px solid #edf1f5;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}
.scm-table tbody tr:last-child td {
  border-bottom: 0;
}
.scm-table tbody tr:hover {
  background: #f9fbfd;
}
.scm-table td strong {
  color: var(--scm-navy);
}
.scm-table tfoot td {
  padding: 13px 12px;
  border-top: 2px solid #cbd8e4;
  background: #f6f9fb;
  text-align: right;
  white-space: nowrap;
}
.scm-table tfoot td:first-child {
  text-align: left;
}
.scm-table .scm-na {
  color: #8495a5;
  font-size: 11px;
}
.scm-table tr.scm-over-row td,
.scm-table tfoot.scm-over-row td {
  background: #fff0f0;
  color: #a63838;
  font-weight: 800;
}
.scm-table tr.scm-over-row:hover td {
  background: #ffe8e8;
}
.scm-table tr.scm-over-row strong,
.scm-table tfoot.scm-over-row strong {
  color: #b33232;
}
.scm-budget-table {
  min-width: 1050px;
}
.scm-budget-table th:first-child,
.scm-budget-table td:first-child {
  width: 30%;
  min-width: 255px;
}
.scm-attention-row {
  background: #fffbf4;
}
.scm-company-table {
  min-width: 1100px;
}
.scm-company-type {
  height: 32px;
  border: 1px solid #cbd8e4;
  border-radius: 7px;
  background: #fff;
  color: #385168;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
}
.scm-table .scm-up {
  color: #b96b17;
  font-weight: 800;
}
.scm-table .scm-down {
  color: #276ca5;
  font-weight: 800;
}
.scm-table .scm-same {
  color: #768a9d;
}
.scm-settlement-table {
  min-width: 1280px;
}
.scm-settlement-table th:nth-child(2),
.scm-settlement-table th:nth-child(10),
.scm-settlement-table td:nth-child(2),
.scm-settlement-table td:nth-child(10) {
  text-align: left;
}
.scm-reason-cell {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scm-missing-row {
  background: #fff6f6;
}
.scm-check {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.scm-check.ok {
  background: #e7f5ef;
  color: #197251;
}
.scm-check.warning {
  background: #fff3df;
  color: #9b6219;
}
.scm-check.danger {
  background: #fdeaea;
  color: #ab3d3d;
}
.scm-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: start;
}
.scm-detail-filters {
  display: grid;
  grid-template-columns: 150px 170px 210px 150px minmax(220px, 1fr) 70px;
  gap: 8px;
  margin-bottom: 12px;
}
.scm-detail-filters button {
  border: 0;
  border-radius: 8px;
  background: var(--scm-navy);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.scm-detail-table {
  min-width: 1400px;
}
.scm-detail-table th:nth-child(2),
.scm-detail-table th:nth-child(3),
.scm-detail-table th:nth-child(4),
.scm-detail-table th:nth-child(5),
.scm-detail-table th:nth-child(6),
.scm-detail-table th:nth-child(10),
.scm-detail-table th:nth-child(11),
.scm-detail-table td:nth-child(2),
.scm-detail-table td:nth-child(3),
.scm-detail-table td:nth-child(4),
.scm-detail-table td:nth-child(5),
.scm-detail-table td:nth-child(6),
.scm-detail-table td:nth-child(10),
.scm-detail-table td:nth-child(11) {
  text-align: left;
}
.scm-summary-only {
  display: block;
  margin-top: 3px;
  color: var(--scm-muted);
  font-size: 9px;
  font-weight: 400;
}
.scm-late-use {
  display: block;
  margin-top: 4px;
  color: var(--scm-orange);
  font-size: 9px;
  font-weight: 800;
}
.scm-reduction-row {
  background: #fff8f8;
}
.scm-reason-input {
  width: 160px;
  height: 32px;
  border: 1px solid #e1bebe;
  border-radius: 7px;
  background: #fff;
  color: #5c4141;
  padding: 0 9px;
  font-size: 11px;
}
.scm-reason-input:focus {
  outline: 0;
  border-color: var(--scm-red);
  box-shadow: 0 0 0 3px rgba(198, 75, 75, 0.1);
}
.scm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--scm-muted);
  font-size: 12px;
}
.scm-pagination button {
  height: 32px;
  padding: 0 13px;
  border: 1px solid #cfdae4;
  border-radius: 7px;
  background: #fff;
  color: #425e75;
  font-weight: 700;
  cursor: pointer;
}
.scm-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}
.scm-empty-inline,
.scm-start-empty,
.scm-empty-cell {
  color: var(--scm-muted);
  font-size: 12px;
}
.scm-empty-inline {
  padding: 14px;
  border: 1px dashed #cad7e2;
  border-radius: 9px;
  text-align: center;
  margin-top: 12px;
}
.scm-start-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 180px;
}
.scm-start-empty strong {
  color: var(--scm-navy);
  font-size: 17px;
}
.scm-empty-cell {
  text-align: center !important;
  padding: 30px !important;
}
@media (max-width: 1280px) {
  .scm-settings-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scm-settings-controls p {
    grid-column: 1/-1;
  }
  .scm-month-workflow {
    grid-template-columns: 1fr;
  }
  .scm-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .scm-two-column {
    grid-template-columns: 1fr;
  }
  .scm-detail-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scm-detail-filters button {
    height: 42px;
  }
}
@media (max-width: 760px) {
  .scm-panel {
    padding: 16px;
  }
  .scm-panel-head {
    display: grid;
  }
  .scm-upload-actions {
    justify-content: stretch;
  }
  .scm-template-download {
    flex: 1;
  }
  .scm-settings-disclosure > summary {
    align-items: flex-start;
    padding: 16px;
  }
  .scm-settings-body {
    padding: 16px;
  }
  .scm-settings-controls,
  .scm-kpis,
  .scm-detail-filters {
    grid-template-columns: 1fr;
  }
  .scm-month-workflow > section,
  .scm-month-workflow > section:last-child {
    grid-template-columns: auto 1fr;
  }
  .scm-month-workflow section > label,
  .scm-month-result {
    grid-column: 1/-1;
  }
  .scm-settings-controls p {
    grid-column: auto;
  }
  .scm-settings-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .scm-settings-footer button {
    width: 100%;
  }
  .scm-workflow-bar,
  .scm-workflow-bar > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .scm-workflow-bar > div:last-child {
    width: 100%;
  }
  .scm-confirm-button {
    flex: 1;
  }
  .scm-scope-note {
    grid-template-columns: 1fr;
  }
  .scm-import-list article {
    grid-template-columns: 1fr;
  }
  .scm-import-list article > strong {
    justify-self: start;
  }
  .scm-two-column {
    display: block;
  }
  .scm-two-column > .scm-panel + .scm-panel {
    margin-top: 18px;
  }
  .scm-top-categories {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .scm-top-categories div > span {
    grid-column: 1/-1;
  }
  .scm-detail-disclosure > summary {
    align-items: flex-start;
    padding: 16px;
  }
  .scm-detail-body {
    padding: 12px;
  }
}
