/* src/components/PersonnelAffairs/agreements/agreements.css */
/* src/components/PersonnelAffairs/agreements/signingStatus.css */
.agreements-workspace .signing-status-dialog[data-app-dialog] {
  width: min(1480px, calc(100vw - 40px)) !important;
  max-width: 1480px !important;
  max-height: calc(100dvh - 40px) !important;
}
.signing-status-dialog .roster-dialog-body {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  gap: 14px;
  overflow: hidden !important;
  padding: 18px 20px !important;
}
.signing-follow-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.signing-follow-search {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 220px;
  font-size: 12px;
  font-weight: 600;
}
.signing-follow-search input {
  height: 38px;
  width: 100%;
  border: 1px solid #cfdae0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 400;
}
.signing-follow-filters {
  display: flex;
  border: 1px solid #dbe3e7;
  border-radius: 7px;
  padding: 3px;
  gap: 3px;
  background: #f5f8f9;
}
.signing-follow-filters button {
  border: 0;
  border-radius: 4px;
  padding: 8px 10px;
  background: transparent;
  color: #59707b;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.signing-follow-filters button[aria-pressed=true] {
  background: #fff;
  color: #204e63;
  box-shadow: 0 1px 3px #223a4b20;
  font-weight: 650;
}
.signing-follow-table-scroll {
  overflow: auto;
  min-height: 100px;
  max-height: 65dvh;
  border: 1px solid #dde5e9;
  border-radius: 7px;
}
.signing-follow-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  color: #365563;
}
.signing-follow-table th,
.signing-follow-table td {
  padding: 12px 10px !important;
  vertical-align: top !important;
  border-bottom: 1px solid #e5ebee;
  text-align: left;
}
.signing-follow-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f0f5f7;
  font-size: 11px;
  font-weight: 650;
  color: #526b77;
}
.signing-follow-table thead th:nth-child(1) {
  width: 21%;
}
.signing-follow-table thead th:nth-child(2) {
  width: 15%;
}
.signing-follow-table thead th:nth-child(3) {
  width: 14%;
}
.signing-follow-table thead th:nth-child(7) {
  width: 18%;
}
.signing-follow-table tbody th {
  font-weight: 600;
}
.signing-follow-table tbody tr:last-child > * {
  border-bottom: 0;
}
.signing-follow-table tbody tr.is-selected > * {
  background: #edf5fa;
}
.signing-follow-table tbody tr:focus {
  outline: 2px solid #638699;
  outline-offset: -2px;
}
.signing-follow-title {
  display: block;
  color: #6e818c;
  font-size: 12px;
  font-weight: 400;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.signing-follow-table time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.signing-follow-table small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 4px;
}
.signing-follow-table time small {
  margin-top: 0;
  color: #81929b;
}
.signing-follow-sender {
  color: #6d8089;
}
.signing-follow-missing {
  color: #8e9da5;
}
.signing-follow-muted {
  color: #81919a;
}
.signing-follow-badge {
  display: inline-flex;
  max-width: 100%;
  border-radius: 4px;
  padding: 4px 7px;
  background: #edf1f3;
  color: #5f7580;
  line-height: 1.3;
}
.signing-follow-badge.is-sent {
  background: #eef3fa;
  color: #486584;
}
.signing-follow-badge.is-delivered {
  background: #e8f1f3;
  color: #346c78;
}
.signing-follow-badge.is-opened {
  background: #eeeaf8;
  color: #6a568d;
}
.signing-follow-badge.is-signed {
  background: #e7f2eb;
  color: #3d7454;
}
.signing-follow-badge.is-error {
  background: #faeeee;
  color: #a34e4e;
}
.signing-follow-issue {
  color: #a45751;
  overflow-wrap: anywhere;
}
.signing-follow-copy {
  font-size: 11px;
  line-height: 1.35;
}
.signing-follow-copy + div {
  margin-top: 9px;
}
.signing-follow-copy > span {
  color: #788a93;
}
.signing-follow-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.signing-follow-copy.is-failed strong {
  color: #a34e4e;
}
.signing-follow-copy.is-delivered strong {
  color: #3d7454;
}
.signing-follow-note {
  margin: 0;
  font-size: 12px;
  color: #758893;
}
.signing-follow-loading {
  margin: 0;
  font-size: 13px;
  color: #647d89;
}
.signing-follow-error {
  border: 1px solid #e6c6c5;
  background: #fff7f5;
  border-radius: 6px;
  padding: 10px 12px;
  color: #9a4d47;
  font-size: 12px;
}
.signing-follow-error button {
  margin-left: 8px;
  text-decoration: underline;
}
.signing-follow-empty {
  padding: 35px 16px;
  text-align: center;
  color: #7c8c94;
  font-size: 13px;
}
.signing-follow-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.signing-follow-footer > span {
  font-size: 11px;
  color: #7d8f99;
}
.signing-follow-footer > div {
  display: flex;
  gap: 8px;
}
@media (max-width:760px) {
  .agreements-workspace .signing-status-dialog[data-app-dialog] {
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
  }
  .signing-status-dialog .roster-dialog-body {
    padding: 12px !important;
    overflow: auto !important;
  }
  .signing-follow-toolbar {
    align-items: stretch;
  }
  .signing-follow-search {
    flex-basis: 100%;
  }
  .signing-follow-filters {
    width: 100%;
    justify-content: space-between;
  }
  .signing-follow-filters button {
    flex: 1;
    padding: 8px 5px;
  }
  .signing-follow-table-scroll {
    max-height: none;
    overflow: visible;
    border: 0;
  }
  .signing-follow-table,
  .signing-follow-table tbody {
    display: block;
    min-width: 0;
  }
  .signing-follow-table thead {
    display: none;
  }
  .signing-follow-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #dce5e9;
    border-radius: 7px;
    margin-bottom: 10px;
    overflow: hidden;
    background: white;
  }
  .signing-follow-table tr > th {
    grid-column: 1/-1;
    background: #f4f8fa;
  }
  .signing-follow-table th,
  .signing-follow-table td {
    display: block;
    padding: 10px !important;
    border-bottom: 0;
    font-size: 12px;
  }
  .signing-follow-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    color: #83939c;
    font-weight: 500;
    margin-bottom: 5px;
  }
  .signing-follow-table td:last-child {
    grid-column: 1/-1;
    border-top: 1px solid #e5ebee;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .signing-follow-table td:last-child::before {
    grid-column: 1/-1;
    margin: 0;
  }
  .signing-follow-copy + div {
    margin-top: 0;
  }
  .signing-follow-footer > span {
    flex-basis: 100%;
  }
  .signing-follow-footer > div {
    margin-left: auto;
  }
}
.signing-follow-badge.is-expired,
.signing-follow-badge.is-declined {
  background: #fbf1e6;
  color: #926c3d;
}
.signing-follow-badge.is-cancelled {
  background: #f0f1f3;
  color: #7d858b;
}
.signing-follow-footer > div > button {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
@media (max-width:760px) {
  .agreements-workspace .signing-status-dialog .signing-follow-table,
  .agreements-workspace .signing-status-dialog .signing-follow-table tbody {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .agreements-workspace .signing-status-dialog .signing-follow-table tr {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .agreements-workspace .signing-status-dialog .signing-follow-table th,
  .agreements-workspace .signing-status-dialog .signing-follow-table td {
    position: static !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
  .agreements-workspace .signing-status-dialog .roster-dialog-body {
    overflow-x: hidden !important;
  }
  .agreements-workspace .signing-status-dialog .signing-follow-table-scroll {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }
}
