.users-content {
  color: #24342b;
}

.users-heading,
.users-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.users-heading {
  margin-bottom: 24px;
}

.users-heading h2 {
  margin: 4px 0 8px;
  color: #1d3025;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
}

.users-heading .os-lead {
  margin: 0;
  color: #65756b;
}

.users-heading .os-eyebrow a,
.users-back-link {
  color: #176a39;
  text-decoration: none;
}

.users-view-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dce5de;
  border-radius: 10px;
  background: #f6f8f6;
}

.users-view-tabs a {
  padding: 9px 14px;
  border-radius: 7px;
  color: #59685f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.users-view-tabs a.is-active {
  background: #fff;
  color: #176a39;
  box-shadow: 0 1px 4px rgba(31, 56, 39, .12);
}

.users-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.users-stats article {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 15px 17px;
  border: 1px solid #e0e8e2;
  border-radius: 10px;
  background: #fff;
}

.users-stats article span {
  color: #718077;
  font-size: 12px;
  font-weight: 600;
}

.users-stats article strong {
  color: #1d3828;
  font-size: 24px;
  line-height: 1;
}

.users-main-grid,
.users-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr);
  align-items: start;
  gap: 18px;
}

.users-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
}

.users-panel,
.users-role-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e0e8e2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(26, 48, 34, .035);
}

.users-panel-heading {
  align-items: center;
  margin-bottom: 16px;
}

.users-panel-heading .os-eyebrow {
  margin: 0 0 5px;
  color: #78877e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
}

.users-panel-heading h3 {
  margin: 0;
  color: #20372a;
  font-size: 19px;
  font-weight: 700;
}

.users-panel-heading > span {
  color: #758379;
  font-size: 12px;
}

.users-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 0 0 16px;
}

.users-filters label,
.users-form label,
.users-actions label {
  display: grid;
  gap: 6px;
  color: #4c5d52;
  font-size: 12px;
  font-weight: 700;
}

.users-search {
  flex: 1 1 220px;
}

.users-filters input,
.users-filters select,
.users-form input,
.users-form select,
.users-actions input,
.users-actions select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #d5dfd8;
  border-radius: 7px;
  background: #fff;
  color: #24342b;
  font: inherit;
  font-size: 13px;
}

.users-filters input:focus,
.users-filters select:focus,
.users-form input:focus,
.users-form select:focus,
.users-actions input:focus,
.users-actions select:focus {
  border-color: #3b8654;
  outline: 3px solid rgba(29, 111, 56, .14);
}

.users-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #176a39;
  border-radius: 7px;
  background: #176a39;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.users-button:hover {
  border-color: #11562d;
  background: #11562d;
  color: #fff;
}

.users-button.is-secondary {
  border-color: #cfddd2;
  background: #f6f9f6;
  color: #275439;
}

.users-button.is-danger {
  border-color: #a8453e;
  background: #a8453e;
}

.users-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6ece7;
  border-radius: 8px;
}

.users-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 12px;
}

.users-table th,
.users-table td {
  padding: 12px 11px;
  border-bottom: 1px solid #edf1ed;
  text-align: left;
  vertical-align: top;
}

.users-table th {
  background: #f7f9f7;
  color: #68766d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  white-space: nowrap;
}

.users-table tbody tr:last-child td {
  border-bottom: 0;
}

.users-table td strong,
.users-table td small {
  display: block;
}

.users-table td strong {
  color: #293c30;
}

.users-table td small {
  margin-top: 4px;
  color: #718077;
}

.users-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pending {
  background: #fff3d7;
  color: #795c13;
}

.status-active {
  background: #e4f4e8;
  color: #23663a;
}

.status-inactive {
  background: #edf0ee;
  color: #59665e;
}

.status-locked {
  background: #fae8e5;
  color: #903e35;
}

.users-row-action {
  color: #176a39;
  font-weight: 700;
  text-decoration: none;
}

.users-row-action:hover,
.users-back-link:hover {
  text-decoration: underline;
}

.users-form {
  display: grid;
  gap: 10px;
}

.users-form .users-button {
  width: 100%;
  margin-top: 5px;
}

.users-help,
.users-recovery-note {
  color: #6e7d73;
  font-size: 12px;
  line-height: 1.6;
}

.users-help {
  margin: 0 0 14px;
}

.users-recovery-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid #dce8df;
  border-radius: 9px;
  background: #f6faf6;
}

.users-recovery-note i {
  color: #176a39;
  font-size: 16px;
}

.users-empty {
  padding: 32px 15px;
  color: #748178;
  text-align: center;
}

.users-empty > i {
  color: #8c9b91;
  font-size: 28px;
}

.users-empty h3 {
  margin: 10px 0 6px;
  color: #31483a;
  font-size: 16px;
}

.users-empty p,
.users-empty-copy {
  margin: 0;
  color: #738078;
  font-size: 13px;
}

.users-empty a {
  display: inline-block;
  margin-top: 12px;
  color: #176a39;
}

.users-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.users-pagination a {
  min-width: 32px;
  padding: 7px 9px;
  border: 1px solid #dce5de;
  border-radius: 6px;
  color: #42604b;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.users-pagination a[aria-current="page"] {
  border-color: #176a39;
  background: #176a39;
  color: #fff;
}

.users-message {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid #cfe3d4;
  border-radius: 8px;
  background: #f1f8f2;
  color: #2a5337;
  font-size: 13px;
  line-height: 1.55;
}

.users-message p {
  margin: 0 0 6px;
}

.users-message p:last-child {
  margin-bottom: 0;
}

.users-message code {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid #d1ded4;
  border-radius: 5px;
  background: #fff;
  color: #20372a;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.users-message.is-error {
  border-color: #ebcbc7;
  background: #fff5f3;
  color: #8c3d35;
}

.users-message.is-success {
  border-color: #cce3d1;
  background: #f2faf3;
}

.users-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.users-role-card {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.users-role-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: #eaf4ec;
  color: #23663a;
  font-size: 19px;
}

.users-role-card h3 {
  margin: 0;
  color: #263d2e;
  font-size: 17px;
}

.users-role-card p {
  margin: 0;
  color: #718077;
  font-size: 13px;
  line-height: 1.6;
}

.users-role-card strong {
  color: #28553a;
  font-size: 13px;
}

.users-role-card small {
  color: #77857c;
  font-size: 11px;
}

.users-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 20px;
}

.users-details div {
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid #edf1ed;
}

.users-details dt {
  margin-bottom: 5px;
  color: #758279;
  font-size: 11px;
  font-weight: 700;
}

.users-details dd {
  margin: 0;
  color: #2c4033;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.users-actions {
  display: grid;
  gap: 12px;
}

.users-actions form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  align-items: end;
  gap: 8px 10px;
  padding-top: 12px;
  border-top: 1px solid #edf1ed;
}

.users-actions form label {
  grid-column: 1 / -1;
}

.users-actions form .users-button {
  white-space: nowrap;
}

.users-audit-list {
  display: grid;
  gap: 0;
  max-height: 540px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.users-audit-list li {
  padding: 12px 0;
  border-bottom: 1px solid #edf1ed;
  font-size: 12px;
}

.users-audit-list li:first-child {
  padding-top: 0;
}

.users-audit-list li:last-child {
  border-bottom: 0;
}

.users-audit-list strong {
  display: block;
  color: #2c4134;
  text-transform: capitalize;
}

.users-audit-list time {
  color: #77857b;
  font-size: 10px;
}

.users-audit-list p {
  margin: 5px 0 0;
  color: #6e7d73;
  line-height: 1.5;
}

.users-back-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 700;
}

.users-window .os-window-closed {
  color: #2b3e32;
}

.users-window .os-window-closed h1,
.users-window .os-window-closed p {
  color: inherit;
}

.login-form-content .users-form {
  margin-top: 24px;
}

.login-form-content .login-instructions {
  margin-bottom: 0;
}

.login-form-content .users-form label {
  margin-top: 8px;
  color: #34483a;
  font-size: 13px;
  font-weight: 700;
}

.login-form-content .users-form > input {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #d5ddd7;
  border-radius: 5px;
  background: #fff;
  color: #24342b;
  font: inherit;
}

.login-form-content .users-form > input:focus-visible {
  border-color: #0c6d31;
  outline: 3px solid rgba(12, 109, 49, .14);
}

.login-form-content .users-form .login-submit {
  margin-top: 10px;
  cursor: pointer;
}

.login-form-content .users-form .login-input-wrap {
  width: 100%;
}

.login-form-content .users-form .login-input-wrap > i {
  left: 16px;
  width: 18px;
  text-align: center;
}

.login-form-content .users-form .login-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 16px 0 48px;
  border: 1px solid #d5ddd7;
  border-radius: 5px;
  background: #fff;
  color: #203129;
  font: inherit;
  font-size: 14px;
}

.login-form-content .users-form .login-input-wrap input:focus-visible {
  border-color: #0c6d31;
  outline: 3px solid rgba(12, 109, 49, .14);
}

.login-form-content .users-help {
  margin: 2px 0 0;
}

.login-form-content .login-form-footer a {
  color: #176a39;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1050px) {
  .users-main-grid,
  .users-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .users-create-panel {
    grid-row: 1;
  }
}

@media (max-width: 700px) {
  .users-heading {
    flex-direction: column;
  }

  .users-view-tabs {
    width: 100%;
  }

  .users-view-tabs a {
    flex: 1;
    text-align: center;
  }

  .users-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .users-role-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .users-panel,
  .users-role-card {
    padding: 15px;
  }

  .users-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .users-actions form {
    grid-template-columns: minmax(0, 1fr);
  }
}
