/* Operations page rebuilt around a full-width, fixed desktop grid. */
@media (min-width: 1280px) {
  #root .mt-6:has(> [data-t360-operations-header]) {
    box-sizing: border-box !important;
    width: calc(100vw - 40px) !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw + 20px) !important;
    display: grid !important;
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr) !important;
    grid-template-areas: "heading actions" "filters cards" !important;
    align-items: start !important;
    gap: 16px 20px !important;
  }

  #root .mt-6:has(> [data-t360-operations-header]) > [data-t360-operations-header] {
    display: contents !important;
  }

  #root .mt-6:has(> [data-t360-operations-header]) > [data-t360-operations-header] > h3 {
    grid-area: heading !important;
  }

  #root .mt-6:has(> [data-t360-operations-header]) [data-t360-operation-filters] {
    grid-area: filters !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #root .mt-6:has(> [data-t360-operations-header]) [data-t360-operation-filters] > input,
  #root .mt-6:has(> [data-t360-operations-header]) [data-t360-operation-filters] > select {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #root .mt-6:has(> [data-t360-operations-header]) > [data-t360-operation-actions] {
    grid-area: actions !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  #root .mt-6:has(> [data-t360-operations-header]) > [data-t360-operation-cards]:not(.flex) {
    grid-area: cards !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;
    align-items: stretch !important;
    gap: 16px !important;
    column-count: initial !important;
  }

  #root .mt-6:has(> [data-t360-operations-header]) > [data-t360-operation-cards]:not(.flex) > [data-t360-operation-tile] {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    break-inside: auto !important;
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  #root .mt-6:has(> [data-t360-operations-header]) > [data-t360-operation-cards]:not(.flex) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 12px !important;
    column-count: initial !important;
  }

  #root .mt-6:has(> [data-t360-operations-header]) > [data-t360-operation-cards] > [data-t360-operation-tile] {
    height: auto !important;
    margin: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 768px) {
  #root .mt-6:has(> [data-t360-operations-header]) > [data-t360-operation-cards]:not(.flex) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: auto !important;
  }

  #root .mt-6:has(> [data-t360-operations-header]) > [data-t360-operation-cards] > [data-t360-operation-tile] {
    height: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
