.hr-operations-app {
  --hr-ink: #172033;
  --hr-muted: #697a96;
  --hr-line: #dce4ef;
  --hr-surface: #ffffff;
  --hr-soft: #f5f8fc;
  --hr-brand: #215eea;
  --hr-brand-soft: #eaf0ff;
  --hr-good: #087a55;
  --hr-good-soft: #e5f7ef;
  --hr-warn: #a94d00;
  --hr-warn-soft: #fff2e2;
  --hr-danger: #b42318;
  --hr-danger-soft: #fff0ef;
  color: var(--hr-ink);
}

.hr-operations-workspace {
  width: 100%;
  min-width: 0;
}

body.hr-operations-active #workspaceShellBar {
  display: none !important;
}

.hr-operations-shell {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(100vh - 150px);
  border: 1px solid var(--hr-line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--hr-surface);
}

.hr-operations-nav {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 16px;
  color: #eef4ff;
  background: linear-gradient(180deg, #111c35 0%, #16274d 100%);
}

.hr-operations-brand {
  display: grid;
  gap: 3px;
  margin-bottom: 20px;
}

.hr-operations-brand span,
.hr-operations-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hr-operations-brand span { color: #8faae3; }
.hr-operations-brand strong { font-size: 18px; }

.hr-operations-nav-list {
  display: grid;
  gap: 8px;
}

.hr-operations-nav-group {
  display: grid;
  gap: 6px;
  padding: 9px 0 2px;
  border-top: 1px solid rgba(154, 177, 224, .18);
  border-bottom: 1px solid rgba(154, 177, 224, .18);
}

.hr-operations-nav-label {
  padding: 0 12px 2px;
  color: #87a4dd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hr-operations-nav-button {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #c9d6f1;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hr-operations-nav-button span,
.hr-operations-nav-button small {
  display: block;
}

.hr-operations-nav-button small {
  margin-top: 3px;
  color: #8fa8d7;
  font-size: 10px;
  font-weight: 600;
}

.hr-operations-nav-button:hover,
.hr-operations-nav-button:focus-visible {
  border-color: #536c9f;
  color: #ffffff;
}

.hr-operations-nav-button.is-active {
  color: #ffffff;
  background: #2a5ee8;
  box-shadow: 0 10px 24px rgba(15, 58, 165, .35);
}

.hr-operations-nav-button.is-planned,
.hr-operations-nav-button:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.hr-operations-nav-foot {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 15px 12px 2px;
  color: #91a9d8;
  font-size: 10px;
}

.hr-operations-nav-foot strong {
  color: #dce7ff;
  font-size: 11px;
  line-height: 1.4;
}

.hr-operations-main {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 22px;
  background: #f7f9fd;
}

.hr-operations-header,
.hr-operations-toolbar,
.hr-panel-head,
.hr-action-row,
.hr-proof-meta-row,
.hr-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hr-operations-header { align-items: flex-start; margin-bottom: 16px; }
.hr-operations-header h3 { margin: 3px 0 4px; font-size: clamp(21px, 2vw, 28px); }
.hr-operations-header p { margin: 0; color: var(--hr-muted); }
.hr-operations-eyebrow { color: #58709b; }

.hr-operations-toolbar {
  flex-wrap: wrap;
  min-width: 0;
  padding: 13px;
  margin-bottom: 16px;
  border: 1px solid var(--hr-line);
  border-radius: 15px;
  background: var(--hr-surface);
}

.hr-operations-filter-grid {
  display: flex;
  flex: 1 1 600px;
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.hr-operations-filter-grid label {
  display: grid;
  gap: 5px;
  min-width: 145px;
  color: var(--hr-muted);
  font-size: 12px;
  font-weight: 700;
}

.hr-operations-filter-grid input,
.hr-operations-filter-grid select,
.hr-proof-decision textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #cfd9e8;
  border-radius: 10px;
  color: var(--hr-ink);
  background: #fff;
  font: inherit;
}

.hr-operations-view[hidden] { display: none !important; }

.hr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.hr-kpi-card,
.hr-operations-panel,
.hr-proof-queue,
.hr-proof-detail {
  border: 1px solid var(--hr-line);
  border-radius: 16px;
  background: var(--hr-surface);
  box-shadow: 0 7px 24px rgba(25, 42, 78, .05);
}

.hr-kpi-card { position: relative; overflow: hidden; padding: 15px 15px 15px 18px; }
.hr-kpi-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #8aa1c5; }
.hr-kpi-card.is-employees::before { background: #376ce5; }
.hr-kpi-card.is-attendance::before { background: #0c9d70; }
.hr-kpi-card.is-exception::before { background: #e2812f; }
.hr-kpi-card.is-payroll::before { background: #7d54d9; }
.hr-kpi-card span { display: block; color: var(--hr-muted); font-size: 12px; font-weight: 700; }
.hr-kpi-card strong { display: block; margin-top: 8px; font-size: 27px; }
.hr-kpi-card small { display: block; margin-top: 5px; color: var(--hr-muted); }

.hr-operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr);
  gap: 14px;
}

.hr-overview-primary-grid { margin-bottom: 14px; }

.hr-overview-readiness {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 14px;
}

.hr-operations-panel { padding: 16px; }
.hr-panel-head { align-items: flex-start; margin-bottom: 13px; }
.hr-panel-head h4 { margin: 2px 0 4px; font-size: 17px; }
.hr-panel-head p { margin: 0; color: var(--hr-muted); font-size: 13px; }

.hr-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #335070;
  background: #eef3f8;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.hr-status-pill.is-good { color: var(--hr-good); background: var(--hr-good-soft); }
.hr-status-pill.is-warn { color: var(--hr-warn); background: var(--hr-warn-soft); }
.hr-status-pill.is-danger { color: var(--hr-danger); background: var(--hr-danger-soft); }
.hr-status-pill.is-info { color: #174cae; background: var(--hr-brand-soft); }

.hr-operations-button {
  min-height: 39px;
  padding: 9px 13px;
  border: 1px solid #cbd7e8;
  border-radius: 11px;
  color: var(--hr-ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hr-operations-button.is-primary { border-color: var(--hr-brand); color: #fff; background: var(--hr-brand); }
.hr-operations-button.is-danger { border-color: #efb7b1; color: var(--hr-danger); background: #fff; }
.hr-operations-button:disabled { opacity: .48; cursor: not-allowed; }

.hr-data-table-shell { width: 100%; overflow: auto; }
.hr-data-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.hr-data-table th,
.hr-data-table td { padding: 11px 10px; border-bottom: 1px solid #e8edf5; text-align: left; font-size: 13px; }
.hr-data-table th { color: #63738d; background: #f7f9fc; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.hr-data-table tbody tr:hover { background: #f8faff; }
.hr-table-link { padding: 0; border: 0; color: #1e56ca; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }

.hr-blocker-list,
.hr-overview-action-list { display: grid; gap: 9px; }
.hr-blocker-row,
.hr-overview-action {
  padding: 11px;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  background: #fbfcfe;
}
.hr-overview-action { width: 100%; color: var(--hr-ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .16s ease, transform .16s ease; }
.hr-overview-action:hover,
.hr-overview-action:focus-visible { border-color: #6e92eb; transform: translateY(-1px); }
.hr-blocker-row strong,
.hr-overview-action strong { display: block; margin-bottom: 3px; }
.hr-blocker-row span,
.hr-overview-action span { color: var(--hr-muted); font-size: 12px; }

.hr-quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.hr-quick-action-grid button {
  min-height: 82px;
  padding: 12px;
  border: 1px solid #dce4ef;
  border-radius: 13px;
  color: var(--hr-ink);
  background: linear-gradient(145deg, #ffffff, #f6f9ff);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.hr-quick-action-grid button:hover,
.hr-quick-action-grid button:focus-visible { border-color: #6e92eb; box-shadow: 0 8px 18px rgba(33, 94, 234, .09); }
.hr-quick-action-grid strong,
.hr-quick-action-grid span { display: block; }
.hr-quick-action-grid span { margin-top: 5px; color: var(--hr-muted); font-size: 11px; line-height: 1.35; }

.hr-lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.hr-lifecycle-grid > div {
  padding: 11px;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  background: #fbfcfe;
}

.hr-lifecycle-grid span,
.hr-lifecycle-grid strong { display: block; }
.hr-lifecycle-grid span { color: var(--hr-muted); font-size: 11px; }
.hr-lifecycle-grid strong { margin-top: 5px; font-size: 13px; }

.hr-audit-strip {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #174cae;
  background: var(--hr-brand-soft);
}

.hr-audit-strip span { color: #536b96; font-size: 11px; line-height: 1.4; }

.hr-proof-layout {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.5fr);
  gap: 14px;
}

.hr-proof-queue,
.hr-proof-detail { padding: 14px; }
.hr-proof-list { display: grid; gap: 8px; max-height: 620px; overflow: auto; }
.hr-proof-item {
  padding: 11px;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  color: var(--hr-ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.hr-proof-item.is-active { border-color: #5d86ec; background: #eef3ff; }
.hr-proof-item strong,
.hr-proof-item span { display: block; }
.hr-proof-item span { margin-top: 3px; color: var(--hr-muted); font-size: 12px; }

.hr-proof-evidence {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(260px, 1.15fr);
  gap: 14px;
}
.hr-proof-image {
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: #7b8aa4;
  background: #edf2f8;
}
.hr-proof-image img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.hr-proof-meta { display: grid; gap: 0; }
.hr-proof-meta-row { padding: 9px 0; border-bottom: 1px solid #e8edf5; align-items: flex-start; }
.hr-proof-meta-row span { color: var(--hr-muted); font-size: 12px; }
.hr-proof-meta-row strong { text-align: right; font-size: 13px; }
.hr-proof-decision { display: grid; gap: 10px; margin-top: 14px; }
.hr-proof-decision textarea { min-height: 78px; resize: vertical; }

.hr-payroll-stages {
  display: grid;
  grid-template-columns: repeat(7, minmax(95px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.hr-payroll-stage { min-width: 95px; padding: 10px; border-radius: 11px; background: #edf2f8; }
.hr-payroll-stage strong { display: block; font-size: 12px; }
.hr-payroll-stage span { display: block; margin-top: 3px; color: var(--hr-muted); font-size: 11px; }
.hr-payroll-stage.is-current { color: #174cae; background: var(--hr-brand-soft); }

.hr-empty-state,
.hr-error-state,
.hr-operations-loading { padding: 34px 20px; text-align: center; color: var(--hr-muted); }
.hr-error-state { color: var(--hr-danger); }
.hr-inline-status { min-height: 20px; margin: 10px 0 0; color: var(--hr-muted); font-size: 13px; }
.hr-inline-status.is-error { color: var(--hr-danger); }
.hr-inline-status.is-success { color: var(--hr-good); }

@media (max-width: 1100px) {
  .hr-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-operations-grid { grid-template-columns: 1fr; }
  .hr-proof-evidence { grid-template-columns: 1fr; }
  .hr-overview-readiness { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .hr-operations-shell { grid-template-columns: 1fr; }
  .hr-operations-nav { padding: 14px; }
  .hr-operations-brand { margin-bottom: 12px; }
  .hr-operations-nav-list { display: flex; overflow-x: auto; padding-bottom: 3px; }
  .hr-operations-nav-list { width: 100%; max-width: 100%; min-width: 0; }
  .hr-operations-nav-list { scrollbar-width: none; -ms-overflow-style: none; }
  .hr-operations-nav-list::-webkit-scrollbar { display: none; }
  .hr-operations-nav-group { display: flex; padding: 0; border: 0; }
  .hr-operations-nav-label,
  .hr-operations-nav-foot { display: none; }
  .hr-operations-nav-button { width: auto; min-width: max-content; }
  .hr-operations-main { padding: 14px; }
  .hr-operations-header,
  .hr-panel-head { flex-direction: column; }
  .hr-proof-layout { grid-template-columns: 1fr; }
  .hr-proof-list { max-height: 270px; }
}

@media (max-width: 520px) {
  .hr-kpi-grid { grid-template-columns: 1fr; }
  .hr-operations-filter-grid { display: grid; width: 100%; flex-basis: 100%; grid-template-columns: 1fr; }
  .hr-operations-filter-grid label { min-width: 0; }
  .hr-operations-toolbar > .hr-action-row { width: 100%; }
  .hr-operations-button { flex: 1; }
  .hr-quick-action-grid,
  .hr-lifecycle-grid { grid-template-columns: 1fr; }
  .hr-proof-meta-row { display: grid; }
  .hr-proof-meta-row strong { margin-top: 3px; text-align: left; }
}
