/* FSM Web - estilos compartilhados da classificacao GHS. */

.fds-ghs-rule-editor {
  background-color: transparent;
  border: 0;
  padding: 0;
}

.fds-ghs-selection-card {
  background-color: #ffffff;
  border: 1px solid var(--fsm-draft-border);
  border-radius: 8px;
  padding: 10px;
}

.fds-ghs-rule-title {
  color: var(--fsm-editing-accent);
  font-size: var(--fsm-font-size-md);
  font-weight: var(--fsm-font-weight-bold);
  margin-bottom: 8px;
}

.fds-ghs-required-choice .form-select {
  border-color: #cbd5e1;
}

.fds-ghs-required-choice .form-select.fds-select-pending {
  background-color: #e9ecef;
}

.fds-ghs-required-choice .form-select:focus {
  border-color: #94a3b8;
  box-shadow: none;
}

.fds-required-mark {
  color: #64748b;
  font-weight: var(--fsm-font-weight-bold);
}

.fds-ghs-selected {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 8px 10px 10px;
}

.fds-ghs-selected-item {
  align-items: center;
  background-color: var(--fsm-draft-bg);
  border: 1px solid var(--fsm-draft-border);
  border-radius: 6px;
  color: #334155;
  display: grid;
  font-size: var(--fsm-font-size-table);
  font-weight: var(--fsm-font-weight-medium);
  gap: 8px;
  grid-template-columns: 1fr auto;
  margin-bottom: 6px;
  padding: 7px 9px;
}

.fds-ghs-remove-classificacao {
  align-items: center;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  padding: 0;
  width: 26px;
}

.fds-ghs-rule-section {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 8px 10px 10px;
}

.fds-ghs-rule-section:last-child {
  margin-bottom: 0;
}

.fds-ghs-rule-heading {
  color: var(--fsm-editing-accent);
  font-size: var(--fsm-font-size-md);
  font-weight: var(--fsm-font-weight-bold);
  margin-bottom: 8px;
}

.fds-ghs-rule-item {
  align-items: center;
  background-color: var(--fsm-draft-bg);
  border: 1px solid var(--fsm-draft-border);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 6px;
  padding: 8px 9px;
}

.fds-ghs-rule-item-sem-acao {
  grid-template-columns: auto 1fr;
}

.fds-ghs-fraseh-checkboxes {
  display: grid;
  gap: 6px;
}

.fds-ghs-fraseh-checkbox-item {
  align-items: flex-start;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  padding: 7px 9px;
}

.fds-form-card .fds-ghs-fraseh-checkboxes .fds-ghs-fraseh-opcao {
  border-color: #94a3b8;
  margin-left: 0;
  margin-top: 0.2rem;
}

.fds-form-card .fds-ghs-fraseh-checkboxes .fds-ghs-fraseh-opcao:checked {
  background-color: #64748b;
  border-color: #64748b;
}

.fds-form-card .fds-ghs-fraseh-checkboxes .fds-ghs-fraseh-opcao:focus {
  border-color: #64748b;
  box-shadow: 0 0 0 0.2rem rgba(100, 116, 139, 0.22);
}

.fds-ghs-fraseh-checkbox-item .form-check-label {
  color: #334155;
  font-size: var(--fsm-font-size-table);
}

.fds-ghs-code,
.fds-ghs-preview-code {
  color: #1f2937;
  white-space: nowrap;
}

.fds-ghs-code {
  font-size: 0.8rem;
  font-weight: var(--fsm-font-weight-semibold);
}

.fds-ghs-preview-code {
  font-weight: var(--fsm-font-weight-extrabold);
}

.fds-ghs-rule-text {
  color: #334155;
  font-size: 0.8rem;
}

.fds-ghs-complemento-h {
  background-color: #ffffff;
  font-size: var(--fsm-font-size-table);
  margin-bottom: 8px;
  margin-left: 0;
}

.fds-ghs-complemento-grupo {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto 1fr;
  margin-bottom: 8px;
}

.fds-ghs-complemento-grupo .fds-ghs-complemento-h {
  margin-bottom: 0;
}

.fds-ghs-complemento-conector {
  color: #64748b;
  font-size: var(--fsm-font-size-table);
  font-weight: var(--fsm-font-weight-bold);
  text-align: center;
}

.fds-ghs-remove {
  align-items: center;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.fds-ghs-preview-label {
  color: #1f2937;
  font-size: var(--fsm-font-size-body-sm);
  font-weight: var(--fsm-font-weight-semibold);
  margin-bottom: 6px;
}

.fds-ghs-preview-classificacao {
  background-color: var(--fsm-draft-bg);
  border: 1px solid var(--fsm-draft-border);
  border-radius: 6px;
  color: #0f6b35;
  font-size: var(--fsm-font-size-body);
  font-weight: var(--fsm-font-weight-semibold);
  line-height: 1.35;
  margin-bottom: 18px;
  padding: 10px 12px;
  text-align: left;
}

.fds-form-card .fds-ghs-static-classificacao {
  background-color: var(--fsm-draft-bg);
  border: 1px solid var(--fsm-draft-border);
  border-radius: 6px;
  color: #0f6b35;
  font-weight: var(--fsm-font-weight-semibold);
  min-height: 38px;
}

.fds-ghs-rotulagem-marcadores {
  display: flex;
  justify-content: center;
  margin: 18px 0 16px;
  width: 100%;
}

.fds-ghs-rotulagem-conjunto {
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  max-width: 100%;
}

.fds-ghs-pictogramas {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 18px 0 16px;
}

.fds-ghs-rotulagem-conjunto .fds-ghs-pictogramas {
  margin: 0 0 10px;
}

.fds-ghs-pictograma {
  display: inline-flex;
  line-height: 0;
}

.fds-ghs-pictograma img {
  display: block;
  height: 82px;
  object-fit: contain;
  width: 82px;
}

.fds-ghs-palavra-linha {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 0 12px;
}

.fds-ghs-rotulagem-conjunto .fds-ghs-palavra-linha {
  justify-content: center;
  margin: 0;
  width: 100%;
}

.fds-ghs-palavra-label {
  color: #1f2937;
  font-size: var(--fsm-font-size-body-sm);
  font-weight: var(--fsm-font-weight-semibold);
}

.fds-ghs-palavra {
  align-items: center;
  background-color: #dc3545;
  border-radius: 5px;
  color: #ffffff;
  display: inline-flex;
  font-size: var(--fsm-font-size-2xs);
  font-weight: var(--fsm-font-weight-bold);
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 20px;
  padding: 3px 7px;
  text-transform: uppercase;
}

.fds-ghs-rotulagem-conjunto .fds-ghs-palavra {
  font-size: var(--fsm-font-size-xs);
  min-height: 24px;
  padding: 5px 11px;
}

.fds-ghs-palavra-atencao {
  background-color: #d97706;
}

.fds-ghs-palavra-nao-exigida {
  background-color: #6b7280;
}

.fds-ghs-preview-box {
  background-color: var(--fsm-draft-bg);
  border: 1px solid var(--fsm-draft-border);
  border-radius: 6px;
  margin-top: 12px;
  padding: 14px 16px;
}

.fds-ghs-preview-section:not(:last-child) {
  border-bottom: 1px solid #d8dde4;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.fds-ghs-preview-section strong {
  color: #2f4f1a;
  display: block;
  font-size: var(--fsm-font-size-body-sm);
  font-weight: var(--fsm-font-weight-semibold);
  margin-bottom: 6px;
}

.fds-ghs-preview-section p {
  color: #374151;
  font-size: var(--fsm-font-size-body-sm);
  line-height: 1.35;
  margin-bottom: 5px;
}

.fds-ghs-preview-section-h p {
  color: #0f7a3d;
  font-weight: var(--fsm-font-weight-medium);
}

.fds-ghs-preview-section-h .fds-ghs-preview-code {
  color: #0f7a3d;
  font-weight: var(--fsm-font-weight-strong);
}

.fds-ghs-muted,
.fds-ghs-preview-muted-line {
  color: #64748b;
  font-size: var(--fsm-font-size-table);
}
