.msds-heading .actions {
  flex-wrap: wrap;
}
.msds-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.msds-summary > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid #cfddf0;
  border-radius: 14px;
  background: #fff;
}
.msds-summary small {
  color: #70819a;
  font-weight: 700;
}
.msds-summary b {
  font-size: 24px;
  color: #0c315f;
}
.msds-company-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
}
.msds-company-tabs button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #cad9eb;
  border-radius: 12px;
  background: #fff;
  color: #496078;
  font-weight: 800;
  cursor: pointer;
}
.msds-company-tabs button.active {
  border-color: #1768dd;
  background: #1768dd;
  color: #fff;
}
.msds-company-tabs b {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(20, 92, 185, 0.09);
}
.msds-company-tabs button.active b {
  background: rgba(255, 255, 255, 0.2);
}
.msds-list .toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #d8e2ef;
}
.msds-list .toolbar input {
  width: min(440px, 55%);
  padding: 11px 13px;
  border: 1px solid #c9d8eb;
  border-radius: 9px;
}
.msds-list .toolbar span {
  color: #74859c;
  font-size: 12px;
}
.msds-table-scroll {
  overflow: auto;
}
.msds-list table {
  min-width: 1260px;
}
.msds-list th,
.msds-list td {
  text-align: center;
  vertical-align: middle;
}
.msds-list td:nth-child(2),
.msds-list td:nth-child(3),
.msds-list td:nth-child(4),
.msds-list td:nth-child(5) {
  text-align: left;
}
.msds-list td b,
.msds-list td small {
  display: block;
}
.msds-list td small {
  margin-top: 4px;
  color: #77879c;
}
.msds-list tbody tr {
  cursor: pointer;
}
.msds-list tbody tr.selected {
  background: #eaf3ff;
  box-shadow: inset 3px 0 #156bda;
}
.msds-link,
.msds-file {
  border: 0;
  background: transparent;
  color: #075ebf;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.msds-link {
  text-align: left;
  padding: 0;
}
.msds-file {
  padding: 5px 9px;
  border: 1px solid #9ec3ee;
  border-radius: 8px;
  background: #eef6ff;
}
.msds-mark {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-weight: 900;
}
.msds-mark.yes {
  background: #e1f7ee;
  color: #087957;
}
.msds-mark.no {
  color: #a5b1bf;
}
.msds-status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.msds-status.active {
  background: #e2f8ee;
  color: #087a56;
}
.msds-status.closed {
  background: #edf0f5;
  color: #667587;
}
.msds-empty {
  padding: 44px 20px !important;
  color: #7c8ba0 !important;
  text-align: center !important;
}
.msds-reference-note {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 17px;
  border: 1px solid #cfe0f5;
  border-left: 4px solid #1770dd;
  border-radius: 11px;
  background: #f6faff;
  color: #60738d;
  font-size: 12px;
}
.msds-reference-note b {
  flex: 0 0 auto;
  color: #0a478e;
}
.msds-modal-wide {
  width: min(1180px, calc(100vw - 48px));
  max-width: 1180px;
}
.msds-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.msds-editor-head p {
  margin: 0 0 5px;
  color: #1768d6;
  font-size: 12px;
  font-weight: 900;
}
.msds-editor-head h2 {
  margin: 0 0 6px;
}
.msds-editor-head span {
  color: #6f8095;
}
.msds-reference-version {
  align-self: flex-start;
  padding: 8px 11px;
  border-radius: 9px;
  background: #eef5ff !important;
  color: #255e9e !important;
  font-size: 11px;
}
.msds-editor {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.msds-import-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(280px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid #bdd4ee;
  border-radius: 13px;
  background: #f5f9ff;
}
.msds-import-panel > label:not(.msds-pdf-upload) {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #37526f;
  font-size: 12px;
  font-weight: 800;
}
.msds-import-panel select,
.msds-editor input,
.msds-editor select,
.msds-editor textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid #c9d8e9;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: #142d4b;
}
.msds-pdf-upload {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 63px;
  padding: 8px 13px;
  border: 1px dashed #75a7de;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.msds-pdf-upload input {
  display: none;
}
.msds-pdf-upload b {
  color: #145da8;
}
.msds-pdf-upload span {
  overflow: hidden;
  margin-top: 4px;
  color: #74859a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msds-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.msds-editor-grid > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #354f6d;
  font-size: 12px;
  font-weight: 800;
}
.msds-editor-grid .wide {
  grid-column: span 2;
}
.msds-editor-grid small {
  color: #6f8299;
  font-weight: 500;
}
.msds-combo {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6px;
}
.msds-components {
  border: 1px solid #cbd9e9;
  border-radius: 13px;
  overflow: hidden;
}
.msds-components header,
.safety-education-msds header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  background: #f5f8fc;
}
.msds-components header div,
.safety-education-msds header div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.msds-components header small,
.safety-education-msds header small {
  color: #72849a;
}
.msds-components-scroll {
  max-height: 330px;
  overflow: auto;
}
.msds-components table {
  width: 100%;
  border-collapse: collapse;
}
.msds-components th {
  padding: 10px;
  background: #eaf1f9;
  color: #35506e;
  font-size: 12px;
}
.msds-components td {
  padding: 7px;
  border-top: 1px solid #dae4ef;
  vertical-align: middle;
}
.msds-components th:nth-child(1) {
  width: 25%;
}
.msds-components th:nth-child(2) {
  width: 18%;
}
.msds-components th:nth-child(3) {
  width: 13%;
}
.msds-components th:nth-child(4) {
  width: 38%;
}
.msds-component-flags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.msds-component-flags em {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e7f4ff;
  color: #075ea9;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.msds-component-flags small {
  color: #8897a8;
}
.msds-row-delete {
  width: 30px;
  height: 30px;
  border: 1px solid #e1b2b2;
  border-radius: 8px;
  background: #fff;
  color: #c33232;
  font-size: 18px;
  cursor: pointer;
}
.msds-editor-notice {
  padding: 13px 16px;
  border-radius: 12px;
  background: #fff9e9;
  color: #66562d;
}
.msds-editor-notice ul {
  margin: 7px 0 0;
  padding-left: 19px;
  font-size: 12px;
  line-height: 1.65;
}
.msds-print-root {
  display: none;
}
.safety-education-msds {
  margin-top: 16px;
  border: 1px solid #bfd5ef;
  border-radius: 13px;
  overflow: hidden;
}
.safety-education-msds fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px;
  padding: 11px;
  border: 1px solid #d3dfed;
  border-radius: 10px;
}
.safety-education-msds legend {
  padding: 0 7px;
  color: #174e89;
  font-weight: 900;
}
.safety-education-msds fieldset label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}
.safety-education-msds fieldset input {
  width: auto;
  margin-top: 3px;
}
.safety-education-msds fieldset span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.safety-education-msds fieldset small {
  color: #73849a;
}
.safety-education-msds-empty {
  padding: 24px;
  text-align: center;
  color: #71839a;
}
.msds-company-modal {
  width: min(940px, calc(100vw - 48px));
  max-width: 940px;
}
.msds-company-manager {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.msds-company-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 15px;
  border: 1px solid #bed5ef;
  border-radius: 13px;
  background: #f5f9ff;
}
.msds-company-add label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #35516f;
  font-size: 12px;
  font-weight: 800;
}
.msds-company-add input,
.msds-company-row input,
.msds-company-removal select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid #c8d7e9;
  border-radius: 8px;
  background: #fff;
  color: #17304e;
  font: inherit;
}
.msds-company-list {
  overflow: hidden;
  border: 1px solid #cedaea;
  border-radius: 13px;
}
.msds-company-list > header,
.msds-company-samples header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  background: #f6f8fb;
}
.msds-company-list header small,
.msds-company-samples header small {
  color: #73849a;
}
.msds-company-row {
  display: grid;
  grid-template-columns: 36px minmax(180px, 1fr) 90px auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid #e0e7f0;
}
.msds-company-row > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #edf4fd;
  color: #1962b6;
  font-size: 11px;
  font-weight: 900;
}
.msds-company-row > b {
  text-align: center;
  color: #5e728a;
  font-size: 12px;
}
.msds-company-row button {
  white-space: nowrap;
}
.msds-company-empty {
  padding: 28px;
  text-align: center;
  color: #76879b;
}
.msds-company-samples {
  overflow: hidden;
  border: 1px solid #d8e2ed;
  border-radius: 13px;
}
.msds-company-samples header div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.msds-company-samples > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.msds-company-samples > div > button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #d0dcea;
  border-radius: 9px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.msds-company-samples > div > button:hover {
  border-color: #5d9ee5;
  background: #f5f9ff;
}
.msds-company-samples button b {
  color: #155ca8;
}
.msds-company-samples button span {
  color: #74859a;
  font-size: 11px;
}
.msds-company-samples p {
  grid-column: 1/-1;
  margin: 8px;
  color: #74859a;
  text-align: center;
}
.msds-company-removal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 520px;
  margin: auto;
  padding: 12px;
  text-align: center;
}
.msds-removal-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: auto;
  border-radius: 50%;
  background: #fff0e4;
  color: #cf5a19;
  font-size: 24px;
  font-weight: 900;
}
.msds-company-removal h2,
.msds-company-removal p {
  margin: 0;
}
.msds-company-removal p {
  color: #61748c;
  line-height: 1.7;
}
.msds-company-removal label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  color: #405873;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 900px) {
  .msds-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .msds-import-panel {
    grid-template-columns: 1fr;
  }
  .msds-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .safety-education-msds fieldset {
    grid-template-columns: 1fr;
  }
  .msds-company-row {
    grid-template-columns: 32px minmax(150px, 1fr) auto;
  }
  .msds-company-row > b {
    display: none;
  }
  .msds-company-row button {
    grid-column: span 1;
  }
  .msds-company-samples > div {
    grid-template-columns: 1fr;
  }
}
@media print {
  @page {
    size: A3 landscape;
    margin: 8mm;
  }
  body > #appView {
    display: block !important;
  }
  body > #appView,
  #appView .main,
  #appView #content,
  .msds-print-root,
  .msds-print-sheet,
  .msds-print-sheet * {
    visibility: visible !important;
  }
  .sidebar,
  .topbar,
  .page-title,
  .msds-summary,
  .msds-company-tabs,
  .msds-list,
  .msds-reference-note,
  .toast,
  .modal {
    display: none !important;
  }
  body,
  .app,
  .main,
  #content {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: visible !important;
  }
  .msds-print-root {
    display: block !important;
  }
  .msds-print-sheet {
    break-after: page;
    padding: 0;
    color: #000;
    font-family: 'Malgun Gothic', sans-serif;
  }
  .msds-print-sheet:last-child {
    break-after: auto;
  }
  .msds-print-sheet header h1 {
    margin: 0 0 4mm;
    text-align: center;
    font-size: 20pt;
  }
  .msds-print-sheet header > div {
    display: grid;
    grid-template-columns: 20mm 1fr 20mm 1fr 20mm 35mm;
    border: 1px solid #000;
    border-bottom: 0;
  }
  .msds-print-sheet header b,
  .msds-print-sheet header span {
    padding: 2mm;
    border-right: 1px solid #000;
    text-align: center;
    font-size: 9pt;
  }
  .msds-print-sheet table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }
  .msds-print-sheet th,
  .msds-print-sheet td {
    padding: 1.4mm 0.7mm;
    border: 1px solid #000;
    text-align: center;
    vertical-align: middle;
    font-size: 7pt;
    word-break: break-all;
  }
  .msds-print-sheet th {
    background: #e9edf4 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .msds-print-sheet th:nth-child(1) {
    width: 4mm;
  }
  .msds-print-sheet th:nth-child(2) {
    width: 13mm;
  }
  .msds-print-sheet th:nth-child(3) {
    width: 20mm;
  }
  .msds-print-sheet th:nth-child(4) {
    width: 12mm;
  }
  .msds-print-sheet th:nth-child(5) {
    width: 14mm;
  }
  .msds-print-sheet th:nth-child(6),
  .msds-print-sheet th:nth-child(7) {
    width: 12mm;
  }
  .msds-print-sheet th:nth-child(8) {
    width: 15mm;
  }
  .msds-print-sheet th:nth-child(9) {
    width: 12mm;
  }
  .msds-print-sheet th:nth-child(10) {
    width: 18mm;
  }
  .msds-print-sheet th:nth-child(11) {
    width: 22mm;
  }
  .msds-print-sheet th:nth-child(12) {
    width: 16mm;
  }
  .msds-print-sheet th:nth-child(13) {
    width: 11mm;
  }
  .msds-print-sheet th:nth-child(14) {
    width: 11mm;
  }
  .msds-print-sheet th:nth-child(15) {
    width: 21mm;
  }
  .msds-print-sheet th:nth-child(16),
  .msds-print-sheet th:nth-child(17),
  .msds-print-sheet th:nth-child(18) {
    width: 10mm;
  }
  .msds-print-sheet th:nth-child(19) {
    width: 18mm;
  }
}
