/*
 * Administration work orchestration page:
 * templates/administracao/work_orchestration.html.twig
 */

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

.app-main:has(#admin-work-orchestration-page) > .flash-right {
  display: none;
}

#admin-work-orchestration-page {
  min-height: calc(100vh - var(--navbar-h));
  padding: clamp(0.85rem, 1.4vw, 1.35rem);
  background: #ffffff;
  color: #1c2720;
}

.awo-dashboard-head,
.awo-kpis,
.awo-board {
  width: min(100%, 1480px);
  margin-inline: auto;
}

.awo-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.awo-workspace {
  width: min(100%, 1480px);
  margin: 0 auto 0.75rem;
  border: 1px solid #e4ece7;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 54, 37, 0.06);
  overflow: hidden;
}

.awo-schedule-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem;
  border-bottom: 1px solid #e4ece7;
  background: #f7faf8;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d8ce transparent;
}

.awo-schedule-tab {
  display: grid;
  grid-template-columns: 1rem minmax(7.5rem, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.45rem;
  min-width: 11rem;
  min-height: 3.1rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: #52615a;
  text-align: left;
  cursor: pointer;
}

.awo-schedule-tab:hover,
.awo-schedule-tab:focus-visible,
.awo-schedule-tab.is-active {
  border-color: #b8d7c3;
  background: #fff;
  color: #1f7f3d;
  outline: none;
}

.awo-schedule-tab .material-symbols-outlined {
  grid-row: 1 / span 2;
  font-size: 1rem;
}

.awo-schedule-tab span:not(.material-symbols-outlined) {
  overflow: hidden;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-schedule-tab small {
  overflow: hidden;
  color: #6b766f;
  font-size: 0.65rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-schedule-panels {
  min-width: 0;
}

.awo-schedule-panel {
  display: none;
  padding: 0.85rem;
}

.awo-schedule-panel.is-active {
  display: grid;
  gap: 0.75rem;
}

.awo-panel-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.78rem;
  border: 1px solid #edf2ee;
  border-radius: 0.5rem;
  background: #fbfefc;
}

.awo-panel-hero h2,
.awo-panel-hero p {
  margin: 0;
}

.awo-panel-hero h2 {
  margin-top: 0.2rem;
  color: #1d2821;
  font-size: 1.05rem;
  font-weight: 900;
}

.awo-panel-hero p:not(.awo-eyebrow) {
  margin-top: 0.28rem;
  color: #637166;
  font-size: 0.76rem;
  font-weight: 760;
}

.awo-general-grid,
.awo-schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.72fr);
  gap: 0.75rem;
}

.awo-general-grid > .awo-card,
.awo-schedule-layout > .awo-card {
  grid-column: auto;
}

.awo-card--schedule-sequences,
.awo-card--schedule-users {
  box-shadow: none;
}

.awo-schedule-layout > .awo-card:only-child,
.awo-priority-slot > .awo-card {
  grid-column: 1 / -1;
}

.awo-priority-slot {
  display: grid;
  gap: 0.75rem;
}

.awo-board--legacy-hidden {
  display: none;
}

.awo-section-note {
  margin: 0;
  color: #637166;
  font-size: 0.76rem;
  line-height: 1.45;
}

.awo-priority-summary-list,
.awo-user-sequence-list {
  display: grid;
  gap: 0.5rem;
}

.awo-priority-summary,
.awo-user-sequence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.62rem;
  border: 1px solid #edf2ee;
  border-radius: 0.45rem;
  background: #fbfefc;
}

.awo-priority-summary > div,
.awo-user-sequence-row > span {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.awo-priority-summary strong,
.awo-user-sequence-row strong {
  overflow: hidden;
  color: #222d26;
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-priority-summary small,
.awo-user-sequence-row small {
  overflow: hidden;
  color: #6b766f;
  font-size: 0.68rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-sequence-card--featured {
  background: #fff;
}

.awo-user-sequence-form {
  display: grid;
  gap: 0.65rem;
}

.awo-eyebrow {
  margin: 0;
  color: #4d8a65;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.awo-dashboard-head h1 {
  margin: 0.24rem 0 0;
  color: #1d2821;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.05;
}

.awo-primary-action,
.awo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  border: 0;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.awo-primary-action,
.awo-btn--primary {
  background: #28984a;
  box-shadow: 0 10px 18px rgba(31, 156, 69, 0.14);
  color: #fff;
}

.awo-primary-action {
  padding: 0 0.95rem;
}

.awo-primary-action:hover,
.awo-primary-action:focus-visible,
.awo-btn--primary:hover,
.awo-btn--primary:focus-visible {
  background: #1f7f3d;
  color: #fff;
}

.awo-btn {
  padding: 0 0.9rem;
  background: #f5faf6;
  color: #213029;
}

.awo-btn .material-symbols-outlined,
.awo-primary-action .material-symbols-outlined {
  font-size: 1rem;
}

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

.awo-kpi {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 5.6rem;
  padding: 0.75rem;
  border: 1px solid #e7eee9;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(28, 54, 37, 0.055);
}

.awo-kpi__icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 999px;
  font-size: 1.5rem;
}

.awo-kpi__icon--green { background: #dff5e1; color: #15913d; }
.awo-kpi__icon--blue { background: #dcecff; color: #2477db; }
.awo-kpi__icon--amber { background: #fff1c8; color: #d88900; }
.awo-kpi__icon--mint { background: #def4e3; color: #288949; }

.awo-kpi__body {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.awo-kpi small,
.awo-kpi em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-kpi small {
  color: #637166;
  font-size: 0.68rem;
  font-weight: 750;
}

.awo-kpi strong {
  color: #1d2821;
  font-size: 1.45rem;
  line-height: 1;
}

.awo-kpi em {
  color: #2c9b50;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 750;
}

.awo-board {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.75rem;
}

.awo-card {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #e4ece7;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 9px 22px rgba(28, 54, 37, 0.055);
}

.awo-card--schedules { grid-column: span 7; }
.awo-card--sequence-form { grid-column: span 17; }
.awo-card--sequence-form-modal {
  border: 0;
  box-shadow: none;
}
.awo-card--sequences { grid-column: span 8; }
.awo-card--assignments { grid-column: span 16; }
.awo-card--priority-form,
.awo-card--priority-list { grid-column: span 12; }

.awo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.6rem;
  margin-bottom: 0.75rem;
}

.awo-card__head h2 {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.42rem;
  margin: 0;
  color: #1f2b24;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
}

.awo-card__head h2 .material-symbols-outlined {
  color: #526b5c;
  font-size: 1rem;
}

.awo-link-btn {
  border: 0;
  background: transparent;
  color: #3582d8;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.awo-soft-label,
.awo-status,
.awo-compact-row > span {
  flex: none;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #eef8f1;
  color: #287746;
  font-size: 0.64rem;
  font-weight: 850;
  white-space: nowrap;
}

.awo-status.is-off {
  background: #f1f5f9;
  color: #64748b;
}

.awo-compact-list,
.awo-sequence-list {
  display: grid;
  gap: 0.5rem;
}

.awo-card--sequences .awo-sequence-list {
  max-height: 25rem;
  overflow-y: auto;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: #c8d8ce transparent;
}

.awo-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.64rem;
  border: 1px solid #edf2ee;
  border-radius: 0.45rem;
  background: #fbfefc;
}

.awo-inline-actions {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.25rem;
}

.awo-inline-actions form {
  margin: 0;
}

.awo-icon-btn {
  display: inline-grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid #e2ebe5;
  border-radius: 0.45rem;
  background: #fff;
  color: #637166;
  cursor: pointer;
}

.awo-icon-btn:hover,
.awo-icon-btn:focus-visible {
  border-color: #b8d7c3;
  color: #1f7f3d;
}

.awo-icon-btn--danger:hover,
.awo-icon-btn--danger:focus-visible {
  border-color: #f0b4b4;
  color: #dc2626;
}

.awo-icon-btn .material-symbols-outlined {
  font-size: 1rem;
}

.awo-compact-row div,
.awo-sequence-card__head div {
  min-width: 0;
  display: grid;
  gap: 0.14rem;
}

.awo-compact-row strong,
.awo-sequence-card strong,
.awo-mini-timeline strong {
  overflow: hidden;
  color: #222d26;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-compact-row small,
.awo-sequence-card small,
.awo-mini-timeline time {
  overflow: hidden;
  color: #6b766f;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-form {
  display: grid;
  gap: 0.75rem;
}

.awo-form--embedded {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #edf2ee;
}

.awo-form.is-hidden,
.awo-field.is-hidden {
  display: none;
}

.awo-form__row,
.awo-targets {
  display: grid;
  gap: 0.65rem;
}

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

.awo-form__row--tight {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.awo-targets {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.awo-target-criterion {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.awo-target-operator {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 1.75rem;
  color: #637166;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.awo-target-operator > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-target-operator select {
  min-height: 1.75rem;
  border: 1px solid #e2ebe5;
  border-radius: 999px;
  background: #fbfefc;
  color: #287746;
  font-size: 0.66rem;
  font-weight: 900;
}

.awo-target-btn {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-height: 4.2rem;
  padding: 0.62rem;
  border: 1px solid #e4ece7;
  border-radius: 0.5rem;
  background: #fbfefc;
  color: #1f2b24;
  text-align: left;
  cursor: pointer;
}

.awo-target-btn:hover,
.awo-target-btn:focus-visible {
  border-color: #b8d7c3;
  background: #f7fbf8;
  outline: none;
}

.awo-target-btn .material-symbols-outlined {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: #dff5e1;
  color: #15913d;
  font-size: 1.15rem;
  grid-row: span 2;
}

.awo-target-btn strong,
.awo-target-btn small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-target-btn strong {
  font-size: 0.78rem;
  font-weight: 850;
}

.awo-target-btn small {
  color: #6b766f;
  font-size: 0.66rem;
  font-weight: 750;
}

.awo-field {
  display: grid;
  min-width: 0;
  gap: 0.32rem;
}

.awo-field > span,
.awo-slot-table label > span,
.awo-weekdays legend {
  color: #637166;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.awo-input {
  width: 100%;
  min-height: 2.35rem;
  padding: 0 0.72rem;
  border: 1px solid #e2ebe5;
  border-radius: 0.48rem;
  background: #fbfefc;
  color: #1d2821;
  font-size: 0.8rem;
}

select.awo-input {
  padding-right: 2rem;
}

.awo-input--multi {
  min-height: 7.2rem;
  padding: 0.55rem 0.65rem;
}

.awo-input:focus {
  outline: none;
  border-color: #7dc392;
  box-shadow: 0 0 0 3px rgba(31, 156, 69, 0.1);
  background: #fff;
}

.awo-check {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #52615a;
  font-size: 0.78rem;
  font-weight: 760;
}

.awo-check input,
.awo-weekdays input {
  accent-color: #28984a;
}

.awo-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.awo-slot-table {
  border: 1px solid #e4ece7;
  border-radius: 0.5rem;
  overflow: hidden;
}

.awo-slot-table__head,
.awo-slot-table__row {
  display: grid;
  grid-template-columns: 0.72fr 0.72fr 1.05fr 1.45fr 0.55fr auto;
  gap: 0.55rem;
  align-items: center;
}

.awo-slot-table__head {
  padding: 0.55rem 0.65rem;
  background: #f7faf8;
  color: #637166;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.awo-slot-table__row {
  padding: 0.62rem 0.65rem;
  border-top: 1px solid #edf2ee;
}

.awo-slot-table__row > label {
  display: grid;
  gap: 0.28rem;
}

.awo-slot-table__row > label > span {
  display: none;
}

.awo-slot-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.awo-action-picker {
  display: grid;
  min-height: 2.35rem;
  padding: 0.42rem 0.58rem;
  border: 1px solid #e2ebe5;
  border-radius: 0.48rem;
  background: #fbfefc;
  color: #1d2821;
  text-align: left;
  cursor: pointer;
}

.awo-action-picker:hover,
.awo-action-picker:focus-visible {
  border-color: #b8d7c3;
  background: #fff;
  outline: none;
}

.awo-action-picker strong,
.awo-action-picker small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-action-picker strong {
  font-size: 0.76rem;
  font-weight: 850;
}

.awo-action-picker small {
  color: #6b766f;
  font-size: 0.64rem;
  font-weight: 750;
}

.awo-action-modal {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  min-height: 24rem;
}

.awo-action-modal__nav {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 0.85rem;
  border-right: 1px solid #edf2ee;
  background: #fbfefc;
}

.awo-action-modal__nav button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.48rem;
  background: transparent;
  color: #52615a;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.awo-action-modal__nav button:hover,
.awo-action-modal__nav button:focus-visible,
.awo-action-modal__nav button.is-active {
  border-color: #cfe6d6;
  background: #eef8f1;
  color: #287746;
  outline: none;
}

.awo-action-modal__nav .material-symbols-outlined {
  font-size: 1rem;
}

.awo-action-modal__content {
  min-width: 0;
  padding: 0.95rem;
}

.awo-action-panel {
  display: none;
}

.awo-action-panel.is-active {
  display: grid;
  gap: 0.75rem;
}

.awo-action-panel h3 {
  margin: 0;
  color: #1f2b24;
  font-size: 0.9rem;
  font-weight: 850;
}

.awo-action-panel__note {
  margin: -0.35rem 0 0;
  color: #6b766f;
  font-size: 0.72rem;
  line-height: 1.4;
}

.awo-choice {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  padding: 0.7rem;
  border: 1px solid #e4ece7;
  border-radius: 0.5rem;
  background: #fbfefc;
}

.awo-choice input {
  margin-top: 0.15rem;
  accent-color: #28984a;
}

.awo-choice span {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.awo-choice strong {
  color: #222d26;
  font-size: 0.8rem;
}

.awo-choice small {
  color: #6b766f;
  font-size: 0.68rem;
  line-height: 1.35;
}

.awo-campaign-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.65rem;
}

.awo-campaign-action-table-wrap {
  max-height: 18rem;
  overflow: auto;
  border: 1px solid #e4ece7;
  border-radius: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #c8d8ce transparent;
}

.awo-campaign-action-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
}

.awo-campaign-action-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e4ece7;
  background: #f7faf8;
  color: #637166;
  font-size: 0.66rem;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.awo-campaign-action-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #edf2ee;
  color: #52615a;
  font-size: 0.74rem;
  vertical-align: middle;
}

.awo-campaign-action-table tr:last-child td {
  border-bottom: 0;
}

.awo-campaign-action-table strong {
  color: #222d26;
  font-size: 0.78rem;
}

.awo-campaign-action-table tr.is-dragging {
  opacity: 0.42;
}

.awo-drag-handle {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #e2ebe5;
  border-radius: 0.45rem;
  background: #fff;
  color: #637166;
  cursor: grab;
}

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

.awo-drag-handle .material-symbols-outlined {
  font-size: 1rem;
}

.awo-sequence-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.68rem;
  border: 1px solid #edf2ee;
  border-radius: 0.45rem;
  background: #fbfefc;
}

.awo-sequence-card__head,
.awo-sequence-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
}

.awo-mini-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.awo-mini-timeline li {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  border-bottom: 1px solid #edf2ee;
}

.awo-mini-timeline li:last-child {
  border-bottom: 0;
}

.awo-mini-timeline time {
  color: #1f9c45;
  font-weight: 850;
}

.awo-sequence-card__meta span {
  color: #6b766f;
  font-size: 0.66rem;
  font-weight: 760;
}

.awo-sequence-users {
  display: grid;
  gap: 0.42rem;
  padding: 0.55rem;
  border: 1px solid #e4ece7;
  border-radius: 0.45rem;
  background: #fff;
}

.awo-sequence-users--modal {
  background: #fbfefc;
}

.awo-sequence-users__head {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
  color: #52615a;
}

.awo-sequence-users__head .material-symbols-outlined {
  color: #1f9c45;
  font-size: 0.95rem;
}

.awo-sequence-users__head strong {
  color: #25322a;
  font-size: 0.7rem;
  font-weight: 850;
}

.awo-sequence-users__chips {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.awo-sequence-users__chips span,
.awo-sequence-users__chips em {
  max-width: 100%;
  overflow: hidden;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #eef8f1;
  color: #287746;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-sequence-users__chips em {
  background: #f1f5f9;
  color: #64748b;
}

.awo-table-select {
  min-width: 12rem;
  min-height: 2.1rem;
  border: 1px solid #e2ebe5;
  border-radius: 0.45rem;
  background: #fbfefc;
  color: #1d2821;
  font-size: 0.76rem;
  font-weight: 760;
}

.awo-weekdays {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.awo-weekdays legend {
  width: 100%;
  margin-bottom: 0.2rem;
}

.awo-weekdays label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0 0.62rem;
  border: 1px solid #e2ebe5;
  border-radius: 999px;
  background: #fbfefc;
  color: #52615a;
  font-size: 0.74rem;
  font-weight: 800;
}

.awo-empty-state {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  min-height: 8rem;
  border: 1px dashed #dce8df;
  border-radius: 0.5rem;
  color: #6d7971;
  font-size: 0.82rem;
  text-align: center;
}

.awo-empty-state p {
  margin: 0;
}

.awo-priority-table-wrap {
  max-height: 25rem;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d8ce transparent;
}

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

.awo-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.awo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.awo-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 44rem);
  max-height: min(92vh, 52rem);
  overflow: visible;
  border: 1px solid #e4ece7;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.awo-modal__dialog.awo-modal__dialog--wide {
  width: min(96vw, 86rem);
}

.awo-modal__dialog--sequence-edit {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d8ce transparent;
}

.awo-modal__dialog--sequence-edit .awo-card {
  border-radius: 0.5rem;
}

.awo-modal .search-select__menu {
  z-index: 5;
}

.awo-modal__head,
.awo-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem;
}

.awo-modal__head {
  border-bottom: 1px solid #edf2ee;
  background: #fbfefc;
}

.awo-modal__head h2 {
  margin: 0.2rem 0 0;
  color: #1f2b24;
  font-size: 0.95rem;
}

.awo-modal__body {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.awo-modal__foot {
  border-top: 1px solid #edf2ee;
  justify-content: flex-end;
}

body.awo-modal-open {
  overflow: hidden;
}

.awo-card__note {
  margin: -0.35rem 0 0;
  color: #637267;
  font-size: 0.86rem;
  font-weight: 620;
  line-height: 1.45;
}

.awo-card__head--sub {
  margin-top: 0.35rem;
}

.awo-card__head h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: #24362c;
  font-size: 1rem;
  font-weight: 820;
}

.awo-campaign-targets {
  display: grid;
  gap: 0.85rem;
}

.awo-campaign-target-advanced {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.9rem;
  border-top: 1px solid #edf2ee;
}

.awo-campaign-target-advanced__panel {
  display: grid;
  gap: 0.85rem;
}

.awo-campaign-target-user {
  display: grid;
  gap: 0.75rem;
  border: 1px solid #e3ece5;
  border-radius: 0.85rem;
  background: #fbfefc;
  padding: 0.8rem;
}

.awo-campaign-target-user__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.awo-campaign-target-user__head strong {
  color: #1f2b24;
  font-size: 0.95rem;
  font-weight: 820;
}

.awo-campaign-target-user__head span {
  color: #5c9b65;
  font-size: 0.78rem;
  font-weight: 780;
}

.awo-campaign-target-table {
  display: grid;
  overflow: auto;
  border: 1px solid #edf2ee;
  border-radius: 0.75rem;
  background: #ffffff;
}

.awo-campaign-target-table__head,
.awo-campaign-target-table__row {
  display: grid;
  grid-template-columns: 3rem minmax(12rem, 1fr) 7rem 8.5rem 6rem;
  gap: 0.65rem;
  align-items: center;
  min-width: 48rem;
}

.awo-campaign-target-table--global .awo-campaign-target-table__head,
.awo-campaign-target-table--global .awo-campaign-target-table__row {
  grid-template-columns: 3rem minmax(14rem, 1fr) 6rem;
  min-width: 28rem;
}

.awo-campaign-target-table__head {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #edf2ee;
  background: #f7fbf8;
  color: #637267;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.awo-campaign-target-table__row {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #f1f5f2;
}

.awo-campaign-target-table__row:last-child {
  border-bottom: 0;
}

.awo-campaign-target-table__row.is-dragging {
  opacity: 0.55;
}

.awo-campaign-target-table__drag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.awo-campaign-target-table__row label {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.awo-campaign-target-table__row label > span {
  display: none;
}

.awo-campaign-target-table__campaign {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.awo-campaign-target-table__campaign strong {
  overflow: hidden;
  color: #26382d;
  font-size: 0.86rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awo-campaign-target-table__campaign small,
.awo-campaign-target-table__available {
  color: #637267;
  font-size: 0.78rem;
  font-weight: 700;
}

.awo-campaign-target-table__available {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  border-radius: 999px;
  background: #eef8f0;
  color: #4f8f55;
  font-weight: 820;
}

.awo-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #26382d;
  font-size: 0.8rem;
  font-weight: 760;
}

.awo-switch input {
  width: 1rem;
  height: 1rem;
  accent-color: #5c9b65;
}

@media (max-width: 1180px) {
  .awo-general-grid,
  .awo-schedule-layout {
    grid-template-columns: 1fr;
  }

  .awo-card--schedules,
  .awo-card--sequence-form,
  .awo-card--sequences,
  .awo-card--assignments,
  .awo-card--priority-form,
  .awo-card--priority-list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .app-main:has(#admin-work-orchestration-page) {
    width: 100%;
  }

  .awo-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .awo-schedule-tab {
    min-width: 9.5rem;
  }

  .awo-panel-hero,
  .awo-priority-summary,
  .awo-user-sequence-row {
    align-items: stretch;
    flex-direction: column;
  }

  .awo-user-sequence-row .awo-table-select {
    width: 100%;
  }

  .awo-kpis,
  .awo-form__row,
  .awo-form__row--tight,
  .awo-targets {
    grid-template-columns: 1fr;
  }

  .awo-slot-table__head {
    display: none;
  }

  .awo-slot-table__row {
    grid-template-columns: 1fr;
  }

  .awo-slot-table__row > label > span {
    display: block;
  }

  .awo-action-modal {
    grid-template-columns: 1fr;
  }

  .awo-action-modal__nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(7rem, 1fr);
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #edf2ee;
  }

  .awo-campaign-target-user__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .awo-form__actions,
  .awo-btn,
  .awo-primary-action {
    width: 100%;
  }
}
