/* CHECKON HR2 operational CRUD surfaces. Evaluator workspace remains isolated. */
body.tad-theme:not(.evaluator-mode) .ops-toolbar {
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

body.tad-theme:not(.evaluator-mode) .ops-toolbar .toolbar-actions {
  margin-left: auto;
  flex-wrap: wrap;
}

body.tad-theme:not(.evaluator-mode) .ops-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 24px;
  text-align: center;
}

body.tad-theme:not(.evaluator-mode) .ops-state > strong {
  color: #182230;
  font-size: 18px;
}

body.tad-theme:not(.evaluator-mode) .ops-state > p {
  max-width: 560px;
  margin: 0;
  color: #667085;
}

body.tad-theme:not(.evaluator-mode) .ops-state-error > span:first-child,
body.tad-theme:not(.evaluator-mode) .ops-empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff4e8;
  color: #e56d00;
  font-size: 24px;
  font-weight: 800;
}

body.tad-theme:not(.evaluator-mode) .ops-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e8e7ff;
  border-top-color: #5b50e6;
  border-radius: 50%;
  animation: ops-spin .8s linear infinite;
}

@keyframes ops-spin {
  to { transform: rotate(360deg); }
}

body.tad-theme:not(.evaluator-mode) .ops-inline-alert,
body.tad-theme:not(.evaluator-mode) .ops-inline-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid #f4c7c3;
  border-radius: 12px;
  background: #fff7f6;
  color: #9f2d25;
  font-size: 13px;
}

body.tad-theme:not(.evaluator-mode) .ops-inline-alert button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.tad-theme:not(.evaluator-mode) .ops-inline-status {
  justify-content: flex-start;
  border-color: #d9d6ff;
  background: #f7f6ff;
  color: #5146d9;
}

body.tad-theme:not(.evaluator-mode) .ops-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.tad-theme:not(.evaluator-mode) .ops-title-button {
  min-width: 230px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

body.tad-theme:not(.evaluator-mode) .ops-title-button > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.tad-theme:not(.evaluator-mode) .ops-title-button strong,
body.tad-theme:not(.evaluator-mode) .ops-title-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tad-theme:not(.evaluator-mode) .ops-title-button small {
  max-width: 360px;
  color: #667085;
  font-weight: 400;
}

body.tad-theme:not(.evaluator-mode) .ops-table th,
body.tad-theme:not(.evaluator-mode) .ops-table td {
  vertical-align: top;
}

body.tad-theme:not(.evaluator-mode) .evaluation-inbox-table.ops-table {
  min-width: 1240px;
}

body.tad-theme:not(.evaluator-mode) .talent-pool-table {
  min-width: 1080px;
}

body.tad-theme:not(.evaluator-mode) .communication-table.ops-table {
  min-width: 1120px;
}

body.tad-theme:not(.evaluator-mode) .import-table {
  min-width: 1020px;
}

body.tad-theme:not(.evaluator-mode) .communication-table .primary-cell {
  max-width: 420px;
}

body.tad-theme:not(.evaluator-mode) .communication-table .primary-cell small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

body.tad-theme:not(.evaluator-mode) .ops-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.tad-theme:not(.evaluator-mode) .ops-feature-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

body.tad-theme:not(.evaluator-mode) .ops-feature-card > header,
body.tad-theme:not(.evaluator-mode) .ops-feature-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.tad-theme:not(.evaluator-mode) .ops-feature-card h3,
body.tad-theme:not(.evaluator-mode) .ops-feature-card p {
  margin: 0;
}

body.tad-theme:not(.evaluator-mode) .ops-feature-card p {
  min-height: 42px;
  color: #667085;
  line-height: 1.55;
}

body.tad-theme:not(.evaluator-mode) .ops-feature-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}

body.tad-theme:not(.evaluator-mode) .ops-feature-card dl > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
}

body.tad-theme:not(.evaluator-mode) .ops-feature-card dt {
  color: #98a2b3;
  font-size: 12px;
}

body.tad-theme:not(.evaluator-mode) .ops-feature-card dd {
  margin: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.tad-theme:not(.evaluator-mode) .ops-feature-card > footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eaecf0;
  flex-wrap: wrap;
}

body.tad-theme:not(.evaluator-mode) .ops-feature-card > footer > span {
  color: #667085;
  font-size: 12px;
}

body.tad-theme:not(.evaluator-mode) .ops-member-add {
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f9fafb;
}

body.tad-theme:not(.evaluator-mode) fieldset.field {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.tad-theme:not(.evaluator-mode) fieldset.field > legend {
  margin-bottom: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

body.tad-theme:not(.evaluator-mode) .ops-modal-table {
  max-height: min(46vh, 440px);
  overflow: auto;
  border: 1px solid #eaecf0;
  border-radius: 12px;
}

body.tad-theme:not(.evaluator-mode) .ops-modal-table table {
  min-width: 720px;
}

body.tad-theme:not(.evaluator-mode) .ops-modal-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fafb;
}

body.tad-theme:not(.evaluator-mode) .ops-mapping-panel {
  padding: 16px;
}

body.tad-theme:not(.evaluator-mode) .ops-mapping-panel .form-grid {
  margin-top: 14px;
}

body.tad-theme:not(.evaluator-mode) .ops-transfer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.tad-theme:not(.evaluator-mode) .field code,
body.tad-theme:not(.evaluator-mode) .ops-modal-table code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

body.tad-theme:not(.evaluator-mode) .ops-row-actions :focus-visible,
body.tad-theme:not(.evaluator-mode) .ops-title-button:focus-visible,
body.tad-theme:not(.evaluator-mode) [data-operation-refresh]:focus-visible,
body.tad-theme:not(.evaluator-mode) [data-operation-retry]:focus-visible {
  outline: 3px solid rgba(81, 70, 217, .28);
  outline-offset: 2px;
}

@media (max-width: 1200px) {
  body.tad-theme:not(.evaluator-mode) .ops-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tad-theme:not(.evaluator-mode) .ops-transfer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.tad-theme:not(.evaluator-mode) .ops-toolbar,
  body.tad-theme:not(.evaluator-mode) .ops-toolbar .toolbar-actions {
    width: 100%;
    align-items: stretch;
  }

  body.tad-theme:not(.evaluator-mode) .ops-toolbar .inline-search,
  body.tad-theme:not(.evaluator-mode) .ops-toolbar .toolbar-actions > .select-label {
    flex: 1 1 220px;
  }

  body.tad-theme:not(.evaluator-mode) .ops-card-grid,
  body.tad-theme:not(.evaluator-mode) .ops-transfer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tad-theme:not(.evaluator-mode) .ops-table {
    font-size: 13px;
  }

  body.tad-theme:not(.evaluator-mode) .ops-row-actions .btn,
  body.tad-theme:not(.evaluator-mode) .ops-row-actions .text-btn,
  body.tad-theme:not(.evaluator-mode) .ops-toolbar button,
  body.tad-theme:not(.evaluator-mode) .ops-toolbar select,
  body.tad-theme:not(.evaluator-mode) .ops-inline-alert button {
    min-height: 44px;
  }

  body.tad-theme:not(.evaluator-mode) .ops-inline-alert {
    align-items: stretch;
    flex-direction: column;
  }

  body.tad-theme:not(.evaluator-mode) .ops-modal-table {
    max-height: 40vh;
  }
}

@media (max-width: 480px) {
  body.tad-theme:not(.evaluator-mode) .ops-toolbar .toolbar-actions,
  body.tad-theme:not(.evaluator-mode) .ops-toolbar .toolbar-actions > *,
  body.tad-theme:not(.evaluator-mode) .ops-toolbar > .btn,
  body.tad-theme:not(.evaluator-mode) .ops-row-actions,
  body.tad-theme:not(.evaluator-mode) .ops-row-actions > * {
    width: 100%;
  }

  body.tad-theme:not(.evaluator-mode) .ops-feature-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  body.tad-theme:not(.evaluator-mode) .ops-state {
    min-height: 220px;
    padding: 30px 18px;
  }

  body.tad-theme:not(.evaluator-mode) .ops-title-button {
    min-width: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tad-theme:not(.evaluator-mode) .ops-spinner {
    animation-duration: 1.8s;
  }
}
