﻿/* =========================================================
   FDS FORNECEDOR - PROTÓTIPO VISUAL
   ========================================================= */
.fds-fornecedor-page {
  background-color: var(--fsm-bg-body);
}


.fds-form-container {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--fsm-layout-max-width);
  min-height: auto;
}

.fds-form-shell {
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
}

.fds-form-shell > .d-flex:first-child {
  margin-bottom: 8px !important;
}
.fds-form-title {
  color: var(--fsm-title-dark);
  font-size: var(--fsm-font-size-section);
  font-weight: var(--fsm-font-weight-bold);
  letter-spacing: 0;
  padding-top: 4px;
}

.fds-admin-table {
  font-size: var(--fsm-font-size-body-sm);
  table-layout: auto;
  width: 100%;
}

.fds-admin-table th {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.fds-admin-table th:nth-child(1),
.fds-admin-table td:nth-child(1) {
  min-width: 230px;
  width: 24%;
}

.fds-admin-table th:nth-child(2),
.fds-admin-table td:nth-child(2) {
  width: 7%;
}

.fds-admin-table th:nth-child(3),
.fds-admin-table td:nth-child(3) {
  min-width: 82px;
  width: 14%;
}

.fds-admin-table th:nth-child(4),
.fds-admin-table td:nth-child(4) {
  min-width: 125px;
  width: 9%;
}

.fds-admin-table th:nth-child(5),
.fds-admin-table td:nth-child(5) {
  min-width: 90px;
  width: 17%;
}

.fds-admin-table th:nth-child(6),
.fds-admin-table td:nth-child(6) {
  min-width: 78px;
  text-align: center;
  white-space: nowrap;
  width: 5%;
}

.fds-admin-table th:nth-child(7),
.fds-admin-table td:nth-child(7) {
  width: 10%;
}

.fds-admin-table th:nth-child(8),
.fds-admin-table td:nth-child(8),
.fds-admin-table th:nth-child(9),
.fds-admin-table td:nth-child(9),
.fds-admin-table th:nth-child(10),
.fds-admin-table td:nth-child(10) {
  text-align: center;
  white-space: nowrap;
}

.fds-admin-table th:nth-child(8),
.fds-admin-table td:nth-child(8) {
  min-width: 110px;
  width: 8%;
}

.fds-admin-table th:nth-child(9),
.fds-admin-table td:nth-child(9) {
  min-width: 78px;
  width: 5%;
}

.fds-admin-table th:nth-child(10),
.fds-admin-table td:nth-child(10) {
  min-width: 72px;
  width: 6%;
}

.fds-admin-table.fds-admin-table-internal {
  table-layout: fixed;
  width: 100%;
}

.fds-admin-table.fds-admin-table-internal th,
.fds-admin-table.fds-admin-table-internal td {
  min-width: 0;
  overflow-wrap: normal;
  white-space: normal;
  word-break: normal;
}

.fds-admin-table.fds-admin-table-internal th {
  vertical-align: middle;
}

.fds-admin-table.fds-admin-table-internal th.fds-col-cliente,
.fds-admin-table.fds-admin-table-internal td.fds-col-cliente {
  text-align: left;
  width: 14%;
}

.fds-admin-table.fds-admin-table-internal th.fds-col-id-doc,
.fds-admin-table.fds-admin-table-internal td.fds-col-id-doc {
  text-align: center;
  width: 7%;
}

.fds-admin-table.fds-admin-table-internal th.fds-col-status-doc,
.fds-admin-table.fds-admin-table-internal td.fds-col-status-doc {
  text-align: center;
  width: 7%;
}

.fds-admin-table.fds-admin-table-internal th.fds-col-fornecedor,
.fds-admin-table.fds-admin-table-internal td.fds-col-fornecedor {
  text-align: left;
  width: 12%;
}

.fds-admin-table.fds-admin-table-internal th.fds-col-codigo-fornecedor,
.fds-admin-table.fds-admin-table-internal td.fds-col-codigo-fornecedor {
  text-align: center;
  width: 7%;
}

.fds-admin-table.fds-admin-table-internal th.fds-col-produto,
.fds-admin-table.fds-admin-table-internal td.fds-col-produto {
  text-align: left;
  width: 21%;
}

.fds-admin-table.fds-admin-table-internal th.fds-col-ghs,
.fds-admin-table.fds-admin-table-internal td.fds-col-ghs {
  text-align: center;
  width: 4%;
}

.fds-admin-table.fds-admin-table-internal th.fds-col-responsavel,
.fds-admin-table.fds-admin-table-internal td.fds-col-responsavel {
  text-align: left;
  width: 9%;
}

.fds-admin-table.fds-admin-table-internal th.fds-col-publicacao,
.fds-admin-table.fds-admin-table-internal td.fds-col-publicacao {
  text-align: center;
  white-space: nowrap;
  width: 8%;
}

.fds-admin-table.fds-admin-table-internal th.fds-col-acoes,
.fds-admin-table.fds-admin-table-internal td.fds-col-acoes {
  text-align: center;
  width: 11%;
}

.fds-admin-table.fds-admin-table-internal .admin-sort-link {
  align-items: center;
  justify-content: center;
  white-space: normal;
}

.fds-admin-table.fds-admin-table-internal .fds-col-publicacao .admin-sort-link {
  white-space: nowrap;
}

.fds-admin-table.fds-admin-table-internal .badge-status-documento,
.fds-admin-table.fds-admin-table-internal .fds-ghs-badge,
.fds-admin-table.fds-admin-table-internal .btn {
  white-space: nowrap;
}

.fds-admin-table.fds-admin-table-internal .fds-col-acoes form {
  display: inline-block !important;
  margin: 1px 0;
}

.fds-row-actions {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  justify-content: center;
}

.fds-title-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 2fr) minmax(150px, 1fr);
}

.fds-title-main {
  justify-self: start;
}

.fds-title-actions {
  display: flex;
  gap: 8px;
  justify-self: end;
}

.fds-meta-inline {
  justify-self: center;
  text-align: center;
}

.fds-meta-text {
  color: #6b7280;
  font-size: var(--fsm-font-size-md);
  font-weight: var(--fsm-font-weight-medium);
  line-height: 1.35;
}

.fds-meta-label {
  color: #374151;
  font-weight: var(--fsm-font-weight-medium);
}

.fds-meta-value {
  color: #6b7280;
  font-weight: var(--fsm-font-weight-book);
}

.fds-meta-separator {
  color: #9ca3af;
  margin: 0 10px;
}

.fds-form-card {
  border: 0;
  border-radius: 0;
  padding: 0;
}

.fds-form-card > .row {
  --bs-gutter-y: 0.9rem;
}

.fds-autosave-status {
  color: #64748b;
  font-size: var(--fsm-font-size-body-sm);
  font-weight: var(--fsm-font-weight-medium);
  min-height: 20px;
}

.fds-autosave-status[hidden] {
  display: none;
}

.fds-autosave-status[data-estado="saving"] {
  color: #475569;
}

.fds-autosave-status[data-estado="saved"] {
  color: #4b6f1f;
}

.fds-autosave-status[data-estado="warning"],
.fds-autosave-status[data-estado="error"] {
  color: #9f1239;
}

.fds-field-card {
  background-color: #ffffff;
  border: 1px solid #cbd6b5;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 10px 16px 14px;
}

.fds-field-card:last-child {
  margin-bottom: 0;
}


.fds-section-title {
  align-items: center;
  background-color: #f3f7ec;
  border: 1px solid #e1ebd3;
  border-radius: 6px;
  color: #5f7f20;
  display: flex;
  font-size: var(--fsm-font-size-sm);
  font-weight: var(--fsm-font-weight-extrabold);
  gap: 7px;
  margin-bottom: 12px;
  padding: 6px 10px;
  text-transform: uppercase;
}

.fds-form-card #fds_ghs_section {
  margin-top: 14px;
}

.fds-ghs-question-card {
  color: #1f2937;
  padding: 0;
}

.fds-ghs-question-card .form-label {
  color: #0f6b35;
  font-size: var(--fsm-font-size-body);
  font-weight: var(--fsm-font-weight-semibold);
  margin-bottom: 7px;
}

.fds-ghs-question-options {
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--fsm-draft-border);
  border-radius: 8px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 24px;
  min-height: 38px;
  padding: 7px 14px;
}

.fds-ghs-question-card .form-check-label {
  color: #1f2937;
}

.fds-form-card .form-check-input:checked {
  background-color: var(--fsm-green-site);
  border-color: var(--fsm-green-site);
}

.fds-form-card .form-check-input:focus {
  border-color: var(--fsm-green-site);
  box-shadow: 0 0 0 0.18rem rgba(138, 167, 40, 0.22);
}

.fds-form-card .form-label {
  color: #475569;
  font-size: var(--fsm-font-size-md);
  font-weight: var(--fsm-font-weight-bold);
  margin-bottom: 3px;
}

.fds-form-card .form-control,
.fds-form-card .form-select {
  font-size: var(--fsm-font-size-body-sm);
}

.fds-fornecedor-novo-btn {
  white-space: nowrap;
}

.fds-form-card .form-check-label {
  font-size: var(--fsm-font-size-table);
}

.fds-panel-divider {
  border-right: 0;
}

.fds-ghs-preview {
  background-color: #ffffff;
  border: 1px solid #cbd6b5;
  border-left: 4px solid var(--fsm-green-site);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.08);
  min-height: 320px;
  padding: 18px;
}

.fds-ghs-preview-title {
  background-color: #f3f7ec;
  border: 1px solid #dfe8cf;
  border-radius: 6px;
  color: #2f4f1a;
  font-size: var(--fsm-font-size-body-sm);
  font-weight: var(--fsm-font-weight-semibold);
  margin-bottom: 18px;
  padding: 7px 10px;
  text-align: left;
}

.fds-ghs-empty {
  align-items: center;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  font-size: var(--fsm-font-size-table);
  gap: 10px;
  justify-content: center;
  min-height: 230px;
}

.fds-ghs-empty i {
  font-size: var(--fsm-font-size-hero-icon);
  opacity: 0.35;
}

@media (max-width: 991.98px) {
  .fds-title-row {
    grid-template-columns: 1fr;
  }

  .fds-title-main,
  .fds-title-actions,
  .fds-meta-inline {
    justify-self: stretch;
    text-align: left;
  }

  .fds-title-actions {
    justify-content: flex-start;
  }

  .fds-panel-divider {
    border-right: 0;
  }
}


.fds-view-card {
  background-color: #ffffff;
  border: 1px solid #cbd6b5;
  border-radius: 8px;
  padding: 16px;
}

.fds-view-card,
.fds-view-ghs-preview {
  background-color: #ffffff;
  border: 1px solid #cbd6b5;
  border-radius: 8px;
}

.fds-view-ghs-preview {
  border-left-width: 1px;
  box-shadow: none;
  padding: 16px;
}

.fds-view-card .fds-section-title,
.fds-view-ghs-preview .fds-ghs-preview-title,
.fds-form-card #fds_ghs_section > .fds-section-title,
.fds-form-card #fds_ghs_preview .fds-ghs-preview-title {
  align-items: center;
  background-color: #f3f7ec;
  border: 1px solid #e1ebd3;
  border-radius: 6px;
  color: #5f7f20;
  display: flex;
  font-family: var(--fsm-font-family-base);
  font-size: var(--fsm-font-size-sm);
  font-weight: var(--fsm-font-weight-extrabold);
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 12px;
  min-height: 31px;
  padding: 6px 10px;
  text-align: left;
  text-transform: uppercase;
}

.fds-view-data {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: minmax(185px, 0.34fr) minmax(0, 1fr);
  margin: 0;
}

.fds-view-data dt,
.fds-view-ghs-preview .fds-ghs-palavra-label,
.fds-view-ghs-preview .fds-ghs-preview-section strong,
.fds-view-ghs-preview .fds-view-note strong,
.fds-form-card #fds_ghs_section .form-label,
.fds-form-card #fds_ghs_section .fds-ghs-rule-title,
.fds-form-card #fds_ghs_section .fds-ghs-rule-heading,
.fds-form-card #fds_ghs_section .fds-ghs-preview-label,
.fds-form-card #fds_ghs_section .fds-ghs-palavra-label,
.fds-form-card #fds_ghs_section .fds-ghs-preview-section strong {
  color: #475569;
  font-family: var(--fsm-font-family-base);
  font-size: var(--fsm-font-size-body-sm);
  font-weight: var(--fsm-font-weight-bold);
}

.fds-view-data dd {
  color: #0f172a;
  font-size: var(--fsm-font-size-body);
  margin: 0;
}

.fds-view-pdf-link {
  align-items: center;
  color: #0f172a;
  display: inline-flex;
  font-size: var(--fsm-font-size-body);
  gap: 8px;
  text-decoration: none;
}

.fds-view-pdf-link i {
  color: #dc3545;
  font-size: var(--fsm-font-size-panel-title);
}

.fds-view-ghs-preview {
  min-height: 100%;
}

.fds-view-note {
  background-color: #f8fafc;
  border: 1px solid #d7dec9;
  border-radius: 8px;
  color: #0f172a;
  font-size: var(--fsm-font-size-body);
  padding: 12px 14px;
}

.fds-view-note p {
  margin: 6px 0 0;
}

@media (max-width: 767.98px) {
  .fds-view-data {
    grid-template-columns: 1fr;
  }
}
.fsm-confirm-dialog {
  max-width: 350px;
}

.fsm-confirm-content {
  border-radius: 15px;
}

.fsm-confirm-body {
  padding: 3rem;
}

.fsm-confirm-icon-wrap {
  align-items: center;
  border: 4px solid #e9f0d8;
  border-radius: 50%;
  color: var(--fsm-primary);
  display: inline-flex;
  height: 80px;
  justify-content: center;
  width: 80px;
}

.fsm-confirm-icon-wrap i {
  font-size: var(--fsm-font-size-hero-icon);
}

.fsm-confirm-title {
  color: #4a4a4a;
  font-size: var(--fsm-font-size-empty-title);
  font-weight: var(--fsm-font-weight-bold);
}

.fsm-confirm-text {
  color: #6c757d;
  font-size: var(--fsm-font-size-section);
}
.fds-view-rotulo-action {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.fds-rotulo-print-area {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  padding: 10px 0 24px;
}

.fds-print-only {
  display: none;
}

.fds-rotulo {
  background-color: #ffffff;
  border: 3px solid #000000;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fsm-font-size-caption-px);
  max-width: 1120px;
  width: 100%;
}

.fds-rotulo strong {
  font-weight: var(--fsm-font-weight-bold);
}

.fds-rotulo p {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.fds-rotulo-topline,
.fds-rotulo-midline,
.fds-rotulo-lines {
  margin-left: 28px;
  margin-right: 28px;
}

.fds-rotulo-separator {
  border-top: 1px solid #000000;
  margin: 0 28px;
}

.fds-rotulo-topline {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 180px 1fr;
  padding: 28px 0 18px;
}

.fds-rotulo-info strong,
.fds-rotulo-info span {
  display: block;
}

.fds-rotulo-info span {
  margin-top: 6px;
}

.fds-rotulo-info-right {
  text-align: right;
}

.fds-rotulo-palavra {
  text-align: center;
}

.fds-rotulo-palavra strong {
  display: block;
}

.fds-rotulo-palavra strong {
  font-size: var(--fsm-font-size-document-title-px);
  line-height: 1.1;
  text-transform: uppercase;
}

.fds-rotulo-midline {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 150px;
  padding: 18px 0;
}

.fds-rotulo-pictogramas {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.fds-rotulo-pictogramas img {
  height: 96px;
  object-fit: contain;
  width: 96px;
}

.fds-rotulo-lines {
  padding: 18px 0 8px;
}

.fds-rotulo-lines .fds-rotulo-separator {
  margin: 12px 0 14px;
}

.fds-rotulo-frases {
  margin-bottom: 14px;
}

.fds-rotulo-frases p {
  margin: 0 0 4px;
}

.fds-rotulo-outras-informacoes {
  color: #000000;
  font-weight: var(--fsm-font-weight-regular);
}

.fds-rotulo-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 190px 1fr;
  margin-bottom: 14px;
}

.fds-rotulo-row p {
  margin: 0 0 4px;
}


.fds-rotulo-nao-perigoso {
  max-width: 760px;
  padding: 12px 14px;
}

.fds-rotulo-simple-row {
  margin-bottom: 13px;
}

.fds-rotulo-recomendacoes {
  margin-bottom: 13px;
}

.fds-rotulo-simple-text {
  margin-bottom: 15px;
}


.fds-client-table {
  font-size: var(--fsm-font-size-body-sm);
  table-layout: fixed;
  width: 100%;
}

.fds-client-table th,
.fds-client-table td {
  min-width: 0;
  overflow-wrap: normal;
  white-space: normal;
  word-break: normal;
}

.fds-client-table th {
  text-align: center;
  vertical-align: middle;
}

.fds-client-table th.fds-col-cliente,
.fds-client-table td.fds-col-cliente {
  min-width: 0;
  text-align: left;
  width: 20%;
}

.fds-client-table th.fds-col-id-doc,
.fds-client-table td.fds-col-id-doc {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  width: 7%;
}

.fds-client-table th.fds-col-fornecedor,
.fds-client-table td.fds-col-fornecedor {
  min-width: 0;
  text-align: left;
  width: 15%;
}

.fds-client-table th.fds-col-codigo-fornecedor,
.fds-client-table td.fds-col-codigo-fornecedor {
  min-width: 0;
  text-align: center;
  width: 8%;
}

.fds-client-table th.fds-col-produto,
.fds-client-table td.fds-col-produto {
  min-width: 0;
  text-align: left;
  width: 25%;
}

.fds-client-table th.fds-col-codigo-produto,
.fds-client-table td.fds-col-codigo-produto {
  min-width: 0;
  text-align: center;
  width: 8%;
}

.fds-client-table th.fds-col-ghs,
.fds-client-table td.fds-col-ghs {
  min-width: 0;
  text-align: center;
  width: 5%;
}

.fds-client-table th.fds-col-publicacao,
.fds-client-table td.fds-col-publicacao {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  width: 7%;
}

.fds-client-table th.fds-col-acoes,
.fds-client-table td.fds-col-acoes {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  width: 5%;
}

.fds-client-table .admin-sort-link {
  white-space: normal;
}

.fds-client-table .fds-col-acoes,
.fds-client-table .fds-col-id-doc,
.fds-client-table .fds-col-publicacao {
  overflow-wrap: normal;
}

.fds-client-table .fds-ghs-badge,
.fds-client-table .btn {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .fds-fornecedor-page .table-responsive.admin-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
  }

  .fds-admin-table.fds-admin-table-internal {
    min-width: 1180px;
  }

  .fds-client-table {
    min-width: 1040px;
  }
}

.fds-list-top {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 24px;
  position: relative;
}

.fds-list-top::after {
  border-bottom: 1px solid var(--fsm-border);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  z-index: 0;
}

.fds-list-main {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.fds-list-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 22px;
}

.fds-list-heading .fds-list-title {
  min-width: 0;
}

.fds-list-toolbar {
  margin-bottom: 0;
}

.fds-list-toolbar .fds-status-tabs {
  border-bottom-color: transparent;
  margin-bottom: 0;
}

.fds-filter-bar {
  align-items: flex-end;
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  margin-bottom: 18px;
  width: 100%;
}

.fds-filter-bar.fds-filter-bar-simple {
  display: flex;
}

.fds-filter-bar-cliente {
  align-items: flex-end;
  flex-wrap: wrap;
}

.fds-client-filter {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
}

.fds-fornecedor-filter,
.fds-document-status-filter {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.fds-client-filter .form-label,
.fds-fornecedor-filter .form-label,
.fds-search-form .form-label,
.fds-search-form-cliente .form-label,
.fds-document-status-filter .form-label {
  color: #475569;
  font-size: var(--fsm-font-size-body-sm);
  font-weight: var(--fsm-font-weight-bold);
  margin-bottom: 7px;
  white-space: nowrap;
}

.fds-client-filter .form-select {
  background-color: #ffffff;
  border-color: #ced4da;
  max-width: 320px;
  min-width: 240px;
  width: 240px;
}

.fds-fornecedor-filter .form-select {
  background-color: #ffffff;
  border-color: #ced4da;
  max-width: 280px;
  min-width: 220px;
  width: 240px;
}

.fds-document-status-filter .form-select {
  background-color: #ffffff;
  border-color: #ced4da;
  min-width: 120px;
  width: 120px;
}

.fds-client-filter .form-select:focus,
.fds-fornecedor-filter .form-select:focus,
.fds-document-status-filter .form-select:focus {
  border-color: #9fb56c;
  box-shadow: 0 0 0 0.12rem rgba(159, 181, 108, 0.18);
}

.fds-search-form {
  align-items: flex-end;
  display: grid;
  flex: 1 1 0;
  gap: 8px;
  grid-template-columns: max-content minmax(220px, 1fr);
  justify-content: stretch;
  min-width: 0;
}

.fds-search-form .btn {
  align-items: center;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  justify-self: end;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  white-space: nowrap;
  width: 80px;
}

.fds-search-form .fds-search-input {
  max-width: none;
  min-width: 0;
  width: 100%;
}

.fds-search-form-cliente {
  align-items: flex-end;
  flex: 1 1 360px;
  grid-template-columns: max-content minmax(220px, 1fr);
}

.fds-search-form-cliente .form-label {
  margin-bottom: 7px;
}

.fds-new-record-action {
  align-self: center;
  justify-self: end;
  margin-left: 0;
  position: relative;
  z-index: 1;
}

.fds-list-approved-top {
  margin-bottom: 18px;
}

.fds-list-approved-header {
  align-items: center;
  border-bottom: 1px solid var(--fsm-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.fds-list-approved-title {
  color: #1f2933;
  font-size: 1.25rem;
  line-height: 1.2;
}

.fds-list-approved-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.fds-list-filters-block {
  flex: 0 0 55%;
  min-width: 0;
}

.fds-list-filters-block-cliente {
  flex: 1 1 100%;
}

.fds-list-summary-block {
  border-left: 1px solid rgba(159, 181, 108, 0.45);
  flex: 1 1 0;
  min-width: 0;
  padding-left: 12px;
}

.fds-list-section-title {
  color: #6f7f31;
  font-size: 0.75rem;
  font-weight: var(--fsm-font-weight-bold);
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.fds-list-filters-grid {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
}

.fds-list-filters-grid .fds-client-filter,
.fds-list-filters-grid .fds-search-form {
  display: contents;
}

.fds-list-filters-grid .form-label,
.fds-list-client-filters .form-label {
  color: #334155;
  font-size: var(--fsm-font-size-body-sm);
  font-weight: var(--fsm-font-weight-semibold);
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.fds-list-filters-grid .form-select,
.fds-list-filters-grid .fds-search-input {
  max-width: none;
  min-width: 0;
  width: 100%;
}

.fds-list-client-filters {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.fds-list-client-filters .fds-fornecedor-filter {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.fds-list-client-filters .fds-search-form {
  align-items: center;
  flex: 1 1 360px;
}

.fds-list-summary-panel {
  background: #ffffff;
  border: 1px solid rgba(159, 181, 108, 0.42);
  border-radius: 6px;
  margin-left: -4px;
  padding: 4px 12px;
}

.fds-list-summary-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.fds-list-summary-cards {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, 6.5rem);
}

.fds-list-summary-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(159, 181, 108, 0.42);
  border-radius: 6px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.35rem 0.625rem;
  text-align: center;
  text-decoration: none;
}

.fds-list-summary-card:hover {
  background: #f3f7ec;
  color: inherit;
}

.fds-list-summary-card.is-active {
  background: #eaf2dc;
  border-color: #9fb56c;
}

.fds-list-summary-card-top {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.fds-list-summary-total-value {
  color: #6f7f31;
  font-size: 1.75rem;
  font-weight: var(--fsm-font-weight-bold);
  line-height: 1;
}

.fds-list-summary-value {
  color: #334155;
  font-size: 1rem;
  font-weight: var(--fsm-font-weight-bold);
  line-height: 1;
}

.fds-list-summary-label {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: var(--fsm-font-weight-semibold);
  line-height: 1.1;
}

.fds-list-summary-card.is-concluidos-ativos i {
  color: #1f7a3f;
}

.fds-list-summary-card.is-concluidos-inativos i {
  color: #64748b;
}

.fds-list-summary-card.is-rascunhos i {
  color: #b7791f;
}

.fds-list-summary-card.is-active .fds-list-summary-total-value,
.fds-list-summary-card.is-active .fds-list-summary-value,
.fds-list-summary-card.is-active .fds-list-summary-label {
  color: #34530f;
}

@media (max-width: 768px) {
  .fds-list-top {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .fds-new-record-action {
    justify-self: start;
  }

  .fds-list-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .fds-filter-bar {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .fds-client-filter,
  .fds-fornecedor-filter,
  .fds-document-status-filter {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    justify-content: flex-start;
  }

  .fds-client-filter .form-select,
  .fds-fornecedor-filter .form-select,
  .fds-document-status-filter .form-select {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .fds-search-form {
    align-items: stretch;
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .fds-search-form-cliente {
    grid-template-columns: 1fr;
  }

  .fds-search-form .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .fds-search-form .fds-search-input {
    flex-basis: 100%;
    max-width: none;
  }

  .fds-list-approved-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fds-list-filters-block,
  .fds-list-summary-block {
    flex: 1 1 100%;
    width: 100%;
  }

  .fds-list-summary-block {
    border-left: 0;
    padding-left: 0;
  }

  .fds-list-filters-grid {
    grid-template-columns: 1fr;
  }

  .fds-list-filters-grid .fds-client-filter,
  .fds-list-filters-grid .fds-search-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .fds-list-client-filters,
  .fds-list-client-filters .fds-fornecedor-filter {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .fds-list-client-filters .fds-search-form {
    align-items: stretch;
    flex: 0 1 auto;
  }

  .fds-list-summary-panel {
    margin-left: 0;
  }

  .fds-list-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

}


.fds-ghs-badge-danger {
  background: #fde2e2;
  color: #b42318;
}

.fds-ghs-badge-safe {
  background: #e5f4e8;
  color: #1f7a3f;
}
