/*
 * Administration work management page:
 * templates/administracao/work_management.html.twig
 */

.app-main:has(#admin-work-management-page) {
  margin-top: var(--navbar-h) !important;
  margin-right: 0;
  width: calc(100% - var(--sidebar-collapsed-w));
  padding-top: 0 !important;
}

#admin-work-management-page {
  min-height: calc(100vh - var(--navbar-h));
  padding: clamp(0.85rem, 1.4vw, 1.35rem);
  background: #fff;
  color: #17251d;
}

.wmg-header,
.wmg-tabs,
.wmg-subtabs-row,
.wmg-panel {
  width: min(100%, 1500px);
  margin-inline: auto;
}

.wmg-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.wmg-eyebrow {
  margin: 0 0 0.28rem;
  color: #16813b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wmg-header h1 {
  margin: 0;
  color: #17251d;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-weight: 920;
  letter-spacing: 0;
}

.wmg-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2ebe6;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 48, 34, 0.06);
}

.wmg-subtabs-row {
  margin-bottom: 1rem;
  padding: 0 0.65rem;
}

.wmg-subtabs-row[hidden] {
  display: none;
}

.wmg-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 3.85rem;
  padding: 0.58rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: transparent;
  color: #65716c;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
}

.wmg-tab::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  bottom: -0.55rem;
  left: 0.2rem;
  height: 0.15rem;
  border-radius: 999px;
  background: transparent;
}

.wmg-tab:hover,
.wmg-tab:focus-visible,
.wmg-tab.is-active {
  background: #f5fbf7;
  color: #15803d;
  outline: none;
}

.wmg-tab.is-active::after {
  background: #159447;
}

.wmg-tab .material-symbols-outlined {
  color: inherit;
  font-size: 1.25rem;
}

.wmg-tab span:not(.material-symbols-outlined) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wmg-panel {
  padding: 1.4rem;
  border: 1px solid #e2ebe6;
  border-radius: 0.62rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 48, 34, 0.065);
}

.wmg-panel[hidden] {
  display: none;
}

.wmg-panel__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.wmg-panel__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.wmg-subtabs {
  display: flex;
  width: fit-content;
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid #e3ebe7;
  border-radius: 0.5rem;
  background: #f8fbf9;
  box-shadow: 0 8px 20px rgba(24, 48, 34, 0.04);
}

.wmg-subtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.3rem;
  padding: 0.42rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 0.38rem;
  background: transparent;
  color: #66726d;
  font-size: 0.8rem;
  font-weight: 860;
  letter-spacing: 0;
  cursor: pointer;
}

.wmg-subtab:hover,
.wmg-subtab:focus-visible,
.wmg-subtab.is-active {
  border-color: #c9e0d1;
  background: #fff;
  color: #16813b;
  outline: none;
}

.wmg-subtab .material-symbols-outlined {
  font-size: 1rem;
}

.wmg-subpanel[hidden] {
  display: none;
}

.wmg-identity,
.wmg-user-cell,
.wmg-section-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.wmg-section-title__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 999px;
  background: #e9f8ee;
  color: #16813b;
}

.wmg-section-title > span:last-child,
.wmg-identity > span:last-child {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.wmg-section-title strong,
.wmg-identity strong {
  color: #17251d;
  font-size: 1rem;
  font-weight: 920;
}

.wmg-section-title em,
.wmg-identity em {
  color: #66726d;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
}

.wmg-avatar,
.wmg-row-avatar {
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0f2f1, #e3e6e5);
}

.wmg-avatar {
  width: 3.8rem;
  height: 3.8rem;
}

.wmg-row-avatar {
  width: 2rem;
  height: 2rem;
}

.wmg-row-avatar--campaign {
  border-radius: 0.52rem;
  background: linear-gradient(135deg, #e9f8ee, #d9f1e0);
}

.wmg-skeleton-group {
  display: grid;
  gap: 0.65rem;
  min-width: min(26rem, 42vw);
}

.wmg-skeleton {
  display: block;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef0ef 0%, #e1e4e3 48%, #eef0ef 100%);
}

.wmg-skeleton--title {
  width: min(23rem, 38vw);
}

.wmg-skeleton--text {
  width: min(16rem, 30vw);
}

.wmg-skeleton--name {
  width: 8.6rem;
}

.wmg-skeleton--short {
  width: 4.6rem;
}

.wmg-skeleton--mid {
  width: 6.7rem;
}

.wmg-pill-placeholder {
  display: inline-block;
  width: 5.8rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #e9f8ee;
}

.wmg-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.15rem;
  padding: 0.45rem 1.05rem;
  border: 1px solid #92d2a7;
  border-radius: 0.36rem;
  background: #fff;
  color: #16813b;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.wmg-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 2.15rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid #dce7e1;
  border-radius: 0.36rem;
  background: #f8fbf9;
  color: #50615a;
  font-size: 0.82rem;
  font-weight: 880;
  letter-spacing: 0;
  text-decoration: none;
}

.wmg-primary-action:hover,
.wmg-primary-action:focus-visible,
.wmg-secondary-action:hover,
.wmg-secondary-action:focus-visible {
  background: #f3fbf5;
  color: #16813b;
  outline: none;
}

.wmg-primary-action .material-symbols-outlined,
.wmg-secondary-action .material-symbols-outlined {
  font-size: 1.05rem;
}

.wmg-secondary-action[hidden] {
  display: none;
}

.wmg-table-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.26rem 0.68rem;
  border: 1px solid #bee4ca;
  border-radius: 999px;
  background: #f2fbf5;
  color: #16813b;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 880;
  letter-spacing: 0;
  cursor: pointer;
}

.wmg-table-link-button:hover,
.wmg-table-link-button:focus-visible {
  border-color: #92d2a7;
  background: #e9f8ee;
  outline: none;
}

.wmg-modal[hidden] {
  display: none;
}

.wmg-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.wmg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 18, 0.42);
  backdrop-filter: blur(2px);
}

.wmg-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  max-height: min(42rem, calc(100vh - 2.5rem));
  overflow: hidden;
  border: 1px solid #dfe9e3;
  border-radius: 0.62rem;
  background: #fff;
  box-shadow: 0 22px 60px rgba(18, 35, 25, 0.24);
}

.wmg-modal__dialog--picker {
  overflow: visible;
}

.wmg-modal__dialog--wide {
  width: min(62rem, 100%);
}

.wmg-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #edf3ef;
}

.wmg-modal__eyebrow {
  margin: 0 0 0.18rem;
  color: #16813b;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wmg-modal__head h2 {
  margin: 0;
  color: #17251d;
  font-size: 1.05rem;
  font-weight: 920;
  letter-spacing: 0;
}

.wmg-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid #e2ebe6;
  border-radius: 0.42rem;
  background: #f8fbf9;
  color: #65716c;
  cursor: pointer;
}

.wmg-modal__close:hover,
.wmg-modal__close:focus-visible {
  color: #16813b;
  outline: none;
}

.wmg-modal__close .material-symbols-outlined {
  font-size: 1.15rem;
}

.wmg-modal__body {
  max-height: min(31rem, calc(100vh - 10rem));
  overflow: auto;
  padding: 0.85rem 1.1rem 1.1rem;
}

.wmg-modal__dialog--picker .wmg-modal__body {
  overflow: visible;
}

.wmg-modal__empty {
  padding: 1rem;
  border: 1px dashed #dce7e1;
  border-radius: 0.5rem;
  background: #f8fbf9;
  color: #66726d;
  font-size: 0.84rem;
  font-weight: 760;
}

.wmg-campaign-list {
  display: grid;
  gap: 0.55rem;
}

.wmg-campaign-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #e2ebe6;
  border-radius: 0.5rem;
  background: #fff;
}

.wmg-campaign-list__rank {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: #e9f8ee;
  color: #16813b;
  font-size: 0.75rem;
  font-weight: 900;
}

.wmg-campaign-list__item > span:last-child {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.wmg-campaign-list__item strong {
  overflow: hidden;
  color: #17251d;
  font-size: 0.86rem;
  font-weight: 880;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wmg-campaign-list__item em {
  color: #7a8680;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 760;
}

.wmg-schedule-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wmg-schedule-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.wmg-schedule-summary > span {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e2ebe6;
  border-radius: 0.5rem;
  background: #fbfdfc;
}

.wmg-schedule-summary strong {
  color: #65716c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wmg-schedule-summary em {
  overflow: hidden;
  color: #17251d;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 880;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wmg-empty-state {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 14rem;
  padding: 2rem;
  border: 1px dashed #dce7e1;
  border-radius: 0.55rem;
  background: #f8fbf9;
  text-align: center;
}

.wmg-empty-state .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #e9f8ee;
  color: #16813b;
  font-size: 1.35rem;
}

.wmg-empty-state strong {
  color: #17251d;
  font-size: 1rem;
  font-weight: 920;
}

.wmg-empty-state em {
  color: #66726d;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 760;
}

.wmg-schedule-user-form {
  display: grid;
  gap: 0.9rem;
}

.wmg-modal-field {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
}

.wmg-modal-field > span {
  color: #50615a;
  font-size: 0.76rem;
  font-weight: 880;
}

.wmg-modal .search-select__menu {
  z-index: 12100;
  max-height: 18rem;
}

.wmg-modal .search-select__list {
  max-height: 12rem;
  overflow-y: auto;
}

.wmg-modal-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.68rem 0.75rem;
  border: 1px solid #dce7e1;
  border-radius: 0.48rem;
  background: #f8fbf9;
  color: #66726d;
  font-size: 0.78rem;
  font-weight: 760;
}

.wmg-modal-note .material-symbols-outlined {
  color: #16813b;
  font-size: 1.05rem;
}

.wmg-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding-top: 0.2rem;
}

.wmg-modal-actions--split {
  justify-content: space-between;
}

.wmg-modal-actions--split > span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.wmg-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0.75rem;
}

.wmg-input {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.62rem;
  border: 1px solid #dce7e1;
  border-radius: 0.42rem;
  background: #fff;
  color: #17251d;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
}

.wmg-input:focus {
  border-color: #92d2a7;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(22, 129, 59, 0.1);
}

.wmg-sequence-form,
.wmg-sequence-assign-form {
  display: grid;
  gap: 0.9rem;
}

.wmg-sequence-slot-table {
  display: grid;
  gap: 0.45rem;
}

.wmg-sequence-slot-table__head,
.wmg-sequence-slot-row {
  display: grid;
  grid-template-columns: minmax(6.2rem, 0.6fr) minmax(6.2rem, 0.6fr) minmax(10rem, 1fr) minmax(10rem, 1fr) minmax(5.5rem, 0.52fr) 2.25rem;
  gap: 0.45rem;
  align-items: center;
}

.wmg-sequence-slot-table__head {
  color: #65716c;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wmg-sequence-slot-row {
  padding: 0.5rem;
  border: 1px solid #e2ebe6;
  border-radius: 0.48rem;
  background: #fbfdfc;
}

.wmg-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid #e7dada;
  border-radius: 0.38rem;
  background: #fff;
  color: #b42318;
  cursor: pointer;
}

.wmg-icon-action:hover,
.wmg-icon-action:focus-visible {
  background: #fff5f5;
  outline: none;
}

.wmg-icon-action .material-symbols-outlined {
  font-size: 1.05rem;
}

.wmg-check {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #50615a;
  font-size: 0.78rem;
  font-weight: 850;
}

.wmg-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #16813b;
}

.wmg-priority-rule {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #d9e8df;
  border-radius: 999px;
  background: #f6fbf8;
  color: #64716b;
  font-size: 0.78rem;
  font-weight: 850;
}

.wmg-priority-rule span:not(.material-symbols-outlined):first-child {
  color: #16813b;
}

.wmg-priority-rule .material-symbols-outlined {
  color: #9caaa3;
  font-size: 1rem;
}

.wmg-work-order-form {
  display: grid;
  gap: 1rem;
}

.wmg-work-order-scope,
.wmg-work-order-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e3ebe7;
  border-radius: 0.52rem;
  background: #fbfdfc;
}

.wmg-work-order-scope {
  align-items: end;
}

.wmg-work-order-scope .wmg-modal-field {
  flex: 1 1 28rem;
  max-width: 42rem;
}

.wmg-work-order-scope p,
.wmg-work-order-toolbar em {
  margin: 0;
  color: #66726d;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
}

.wmg-work-order-toolbar > span {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.wmg-work-order-toolbar strong {
  color: #17251d;
  font-size: 0.92rem;
  font-weight: 920;
}

.wmg-work-order-table {
  overflow: auto;
  border: 1px solid #e3ebe7;
  border-radius: 0.52rem;
  background: #fff;
}

.wmg-work-order-table__head,
.wmg-work-order-row {
  display: grid;
  grid-template-columns: 2.6rem 4rem minmax(14rem, 1fr) 7rem;
  align-items: center;
  gap: 0.85rem;
  min-width: 720px;
  padding: 0 1rem;
}

.wmg-work-order-table--target .wmg-work-order-table__head,
.wmg-work-order-table--target .wmg-work-order-row {
  grid-template-columns: 2.6rem 4rem minmax(14rem, 1fr) 9rem 7rem;
}

.wmg-work-order-table__head {
  min-height: 2.65rem;
  background: #fbfcfb;
  color: #66726d;
  font-size: 0.69rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wmg-work-order-row {
  min-height: 4.15rem;
  border-top: 1px solid #edf2ef;
  background: #fff;
}

.wmg-work-order-row.is-dragging {
  opacity: 0.56;
}

.wmg-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  border: 1px solid #dce7e1;
  border-radius: 0.38rem;
  background: #fff;
  color: #7a8780;
  cursor: grab;
}

.wmg-drag-handle:active {
  cursor: grabbing;
}

.wmg-drag-handle:hover,
.wmg-drag-handle:focus-visible {
  border-color: #b8d7c3;
  color: #16813b;
  outline: none;
}

.wmg-drag-handle .material-symbols-outlined {
  font-size: 1.1rem;
}

.wmg-work-order-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: #e9f8ee;
  color: #16813b;
  font-size: 0.78rem;
  font-weight: 920;
}

.wmg-work-order-campaign {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.wmg-work-order-campaign strong {
  overflow: hidden;
  color: #17251d;
  font-size: 0.86rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wmg-work-order-campaign em,
.wmg-compact-field > span {
  color: #66726d;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 820;
}

.wmg-compact-field {
  display: grid;
  gap: 0.22rem;
}

.wmg-compact-field .wmg-input {
  min-height: 2rem;
  padding: 0 0.55rem;
}

.wmg-priority-form {
  display: grid;
  gap: 1rem;
}

.wmg-form-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wmg-priority-scope-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(16rem, 0.65fr);
  gap: 0.85rem;
  align-items: end;
}

.wmg-priority-criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid #e3ebe7;
  border-radius: 0.52rem;
  background: #fbfdfc;
}

.wmg-priority-operators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.wmg-priority-operators label {
  display: grid;
  gap: 0.3rem;
}

.wmg-priority-operators span {
  color: #66726d;
  font-size: 0.72rem;
  font-weight: 880;
}

.wmg-algorithm-form {
  display: grid;
  gap: 1rem;
}

.wmg-algorithm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
  padding: 0.85rem;
  border: 1px solid #e3ebe7;
  border-radius: 0.52rem;
  background: #fbfdfc;
}

.wmg-algorithm-check {
  min-height: 2.55rem;
  padding: 0 0.75rem;
  border: 1px solid #e1e8e4;
  border-radius: 0.42rem;
  background: #fff;
}

.wmg-algorithm-table {
  overflow: auto;
  border: 1px solid #e3ebe7;
  border-radius: 0.52rem;
  background: #fff;
}

.wmg-algorithm-table__head,
.wmg-algorithm-row {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(10rem, 0.7fr) 9rem 7rem;
  align-items: center;
  gap: 0.85rem;
  min-width: 820px;
  padding: 0 1rem;
}

.wmg-algorithm-table--groups .wmg-algorithm-table__head,
.wmg-algorithm-table--groups .wmg-algorithm-row {
  grid-template-columns: minmax(14rem, 1fr) 9rem 7rem;
  min-width: 560px;
}

.wmg-algorithm-table__head {
  min-height: 2.65rem;
  background: #fbfcfb;
  color: #66726d;
  font-size: 0.69rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wmg-algorithm-row {
  min-height: 4.15rem;
  border-top: 1px solid #edf2ef;
  color: #50615a;
  font-size: 0.82rem;
  font-weight: 780;
}

.wmg-filterbar {
  display: grid;
  grid-template-columns: minmax(14rem, 1.15fr) repeat(3, minmax(11rem, 0.86fr)) 2.7rem;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border: 1px solid #e3ebe7;
  border-radius: 0.52rem;
  background: #fff;
}

.wmg-filterbar--assignment {
  grid-template-columns: minmax(14rem, 1.15fr) repeat(3, minmax(10rem, 0.82fr)) 2.7rem;
}

.wmg-filterbar--groups {
  grid-template-columns: minmax(14rem, 1.1fr) repeat(2, minmax(10rem, 0.75fr)) auto;
}

.wmg-search,
.wmg-select,
.wmg-icon-button {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 2.55rem;
  border: 1px solid #e1e8e4;
  border-radius: 0.42rem;
  background: #fff;
  color: #66726d;
}

.wmg-search {
  gap: 0.55rem;
  padding: 0 0.78rem;
}

.wmg-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17251d;
  font: inherit;
}

.wmg-search input::placeholder {
  color: #9aa4a0;
}

.wmg-search .material-symbols-outlined {
  font-size: 1.15rem;
}

.wmg-select {
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.78rem;
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0;
  cursor: pointer;
}

.wmg-select .material-symbols-outlined {
  font-size: 1.1rem;
}

.wmg-icon-button {
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.wmg-icon-button .material-symbols-outlined {
  font-size: 1.2rem;
}

.wmg-select:hover,
.wmg-select:focus-visible,
.wmg-icon-button:hover,
.wmg-icon-button:focus-visible {
  border-color: #b8d7c3;
  color: #16813b;
  outline: none;
}

.wmg-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.wmg-metric {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  min-height: 5.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e3ebe7;
  border-radius: 0.52rem;
  background: #fff;
}

.wmg-metric__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 999px;
  background: #e9f8ee;
  color: #16813b;
}

.wmg-metric > span:last-child {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.wmg-metric strong {
  color: #17251d;
  font-size: 1.15rem;
  font-weight: 920;
  line-height: 1;
}

.wmg-metric em {
  overflow: hidden;
  color: #66726d;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wmg-table {
  overflow: hidden;
  border: 1px solid #e3ebe7;
  border-radius: 0.52rem;
  background: #fff;
}

.wmg-table__row {
  display: grid;
  grid-template-columns: minmax(13rem, 1.2fr) repeat(5, minmax(7rem, 0.8fr)) 2.4rem;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.2rem;
  padding: 0 1.1rem;
  border-bottom: 1px solid #edf2ef;
}

.wmg-table--assignment .wmg-table__row {
  grid-template-columns: minmax(14rem, 1.18fr) minmax(7rem, 0.62fr) minmax(10rem, 0.9fr) minmax(8rem, 0.68fr) minmax(7rem, 0.62fr) minmax(7rem, 0.62fr) 2.4rem;
}

.wmg-table--groups .wmg-table__row {
  grid-template-columns: minmax(14rem, 1.2fr) minmax(8rem, 0.72fr) minmax(8rem, 0.72fr) minmax(8rem, 0.72fr) minmax(7rem, 0.62fr) 2.4rem;
}

.wmg-table__row:last-child {
  border-bottom: 0;
}

.wmg-table__row--head {
  min-height: 2.65rem;
  background: #fbfcfb;
  color: #66726d;
  font-size: 0.69rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wmg-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: #66726d;
  cursor: pointer;
}

.wmg-row-action:hover,
.wmg-row-action:focus-visible {
  background: #f1f6f3;
  color: #16813b;
  outline: none;
}

.wmg-row-action .material-symbols-outlined {
  font-size: 1.15rem;
}

@media (max-width: 1180px) {
  .wmg-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #bdd7c6 transparent;
  }

  .wmg-tab {
    flex: 0 0 auto;
    min-width: 11.5rem;
  }

  .wmg-filterbar {
    grid-template-columns: 1fr 1fr;
  }

  .wmg-filterbar--groups {
    grid-template-columns: 1fr 1fr;
  }

  .wmg-icon-button {
    width: 2.7rem;
  }

  .wmg-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wmg-table {
    overflow-x: auto;
  }

  .wmg-table__row {
    min-width: 980px;
  }
}

@media (max-width: 720px) {
  #admin-work-management-page {
    padding: 0.75rem;
  }

  .wmg-panel {
    padding: 0.85rem;
  }

  .wmg-panel__hero {
    align-items: stretch;
    flex-direction: column;
  }

  .wmg-priority-rule,
  .wmg-work-order-scope,
  .wmg-work-order-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .wmg-work-order-scope .wmg-modal-field {
    max-width: none;
  }

  .wmg-primary-action {
    width: 100%;
  }

  .wmg-filterbar,
  .wmg-filterbar--groups,
  .wmg-form-grid--four,
  .wmg-priority-scope-grid,
  .wmg-priority-criteria,
  .wmg-priority-operators,
  .wmg-algorithm-grid,
  .wmg-metrics {
    grid-template-columns: 1fr;
  }

  .wmg-subtabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
}
