/* Final layout corrections for the compact document workspace. */
.site-header__inner,
.page-shell {
  max-width: 1680px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.filter-card--compact .filter-grid {
  grid-template-columns: minmax(16rem, 2fr) 11rem 10.5rem max-content max-content max-content;
  gap: 0.65rem 0.8rem;
}

.filter-card--compact .field--wide {
  grid-column: auto;
}

.filter-card--compact .filter-actions {
  align-self: end;
}

.table-card--minimal,
.table-card--minimal .table-scroll {
  width: 100%;
}

.document-table--single-line {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
}

.document-table--single-line .col-date { width: 6.2rem; }
.document-table--single-line .col-document { width: 8.2rem; }
.document-table--single-line .col-client { width: auto; }
.document-table--single-line .col-gross { width: 8rem; }
.document-table--single-line .col-payment { width: 11rem; }
.document-table--single-line .col-employee { width: 6.4rem; }
.document-table--single-line .col-bonus-income { width: 10rem; }
.document-table--single-line .col-notes { width: 10.5rem; }

.document-table--single-line th,
.document-table--single-line td {
  overflow: hidden;
}

.document-cell,
.payment-cell,
.employee-cell,
.bonus-income-cell,
.notes-cell {
  text-overflow: ellipsis;
}

.client-cell {
  min-width: 0;
}

.client-name {
  max-width: 100%;
}

.payment-method {
  display: inline-block;
  max-width: 5.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.inline-bonus-income-form {
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
}

.input-group--bonus-income {
  width: 8rem;
}

.input-group--bonus-income input {
  width: calc(100% - 2rem);
  min-width: 0;
}

.notes-cell__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.attention-flag {
  display: inline-flex;
  padding: 0.22rem 0.42rem;
  border: 1px solid #f3b66f;
  border-radius: 999px;
  background: #fff3e6;
  color: #9a4600;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.15;
}

.notes-button--attention {
  border-color: #e59a40;
  background: #fff9f2;
  color: #9a4600;
}

.modal-note--action {
  border-left-width: 0.28rem;
}

.modal-note--action-open {
  border-color: #e59a40;
  background: #fff8ef;
}

.modal-note--action-done {
  border-color: #b9d8c2;
  background: #f3faf5;
}

.action-status-row {
  display: flex;
  align-items: center;
  margin-top: 0.45rem;
}

.action-status {
  display: inline-flex;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 750;
}

.action-status--open {
  background: #ffe6c7;
  color: #8a3f00;
}

.action-status--done {
  background: #dff3e5;
  color: #236b3d;
}

.completed-note {
  color: #68707c;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.action-complete-form {
  margin-top: 0.65rem;
}

.action-complete-button {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.38rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #d1842e;
  border-radius: 0.375rem;
  background: #fff;
  color: #8a3f00;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
}

.action-complete-button:hover {
  background: #fff0dd;
}

.action-complete-button span {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 0.2rem;
  font-size: 0.7rem;
  line-height: 1;
}

.completion-meta {
  margin: 0.5rem 0 0 !important;
  color: #55725f;
  font-size: 0.75rem;
}

@media (max-width: 1280px) {
  .filter-card--compact .filter-grid {
    grid-template-columns: minmax(15rem, 2fr) 10rem 10rem;
  }

  .filter-card--compact .field--wide {
    grid-column: auto;
  }

  .filter-card--compact .filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .filter-card--compact .filter-grid {
    grid-template-columns: 1fr;
  }

  .document-table--single-line {
    min-width: 1050px;
  }
}
