@import url('../../../gbhost/public/gbstyle/gbcommonstyle.scss');
.SaveButton{
  background-color: #32AE73;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-width: 64px;
  height: 32px;
  border-radius: 4px;
}





/* quality.component.scss */

// ── Grid scroll wrapper ────────────────────────────────────────────────────
.quality-grid-scroll {
  overflow-x: auto;
  width: 100%;
  margin-top: 8px;
}

.quality-grid-table {
  border-collapse: collapse;
  table-layout: fixed;  // enforces declared column widths; prevents col-param expansion
  width: max-content;   // grows naturally for N dynamic sample columns
  min-width: 100%;
  font-size: 12px;

  thead tr th {
    background: #e8e8e8;
    font-weight: bold;
    padding: 5px 8px;
    white-space: nowrap;
    text-align: center;
    border: 1px solid #ccc;
  }

  tbody tr td {
    padding: 3px 5px;
    border: 1px solid #ddd;
    vertical-align: middle;
    white-space: nowrap;
  }

  tbody tr:nth-child(even) { background: #f9f9f9; }

  // Column widths
  .col-sno    { width: 40px;  text-align: center; }
  .col-param  { width: 200px; min-width: 140px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .col-uom    { width: 70px;  text-align: center; }
  .col-input  { width: 90px; }
  .col-value  { width: 80px; }
  .col-minmax { width: 75px; }
  .col-status { width: 120px; }
  .col-sample { width: 120px; }
}

// ── Cell inputs ────────────────────────────────────────────────────────────
.q-cell-input {
  border: 1px solid #bbb;
  border-radius: 2px;
  padding: 2px 4px;
  font-size: 12px;
  width: 75px;
  box-sizing: border-box;

  &[readonly],
  &:disabled {
    background: #f0f0f0;
    color: #555;
    cursor: not-allowed;
  }

  &.q-sample-input { width: 78px; }
}

.q-status-select {
  width: 112px;
  font-size: 12px;
  border: 1px solid #bbb;
  border-radius: 2px;
  padding: 2px 3px;
}

.q-picklist-input { width: 100px; }

// ── Bottom bar ─────────────────────────────────────────────────────────────
.quality-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 6px 8px;
  margin-top: 8px;
  background: #f2f2f2;
  border: 1px solid #ccc;
}