.hrm-period-zone,
.hrm-summary-strip,
.hrm-subcard {
  margin-bottom: 16px;
}

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

.hrm-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.hrm-summary-strip__item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
  padding: 14px 16px;
}

.hrm-summary-strip__item span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 6px;
}

.hrm-summary-strip__item strong {
  display: block;
  font-size: 18px;
  color: #0f172a;
}

.hrm-view-filter {
  margin-bottom: 16px;
}

.hrm-view-filter__row + .hrm-view-filter__row {
  margin-top: 12px;
}

.hrm-view-filter__row--global {
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.52fr) minmax(0, 1.1fr);
}

.hrm-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.hrm-subcard .card-header {
  font-weight: 700;
}

.hrm-log-list {
  display: grid;
  gap: 12px;
}

.hrm-log-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
}

.hrm-log-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.hrm-log-item__meta,
.hrm-log-item__url {
  color: #6b7280;
  font-size: 13px;
}

.hrm-code-inline {
  display: inline-block;
  white-space: normal;
  font-size: 12px;
  color: #1d4ed8;
}

.sys-meta-table tbody tr {
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.sys-meta-table tbody tr:hover > td {
  background: rgba(37, 99, 235, 0.045);
}

.js-hrm-app .sys-meta-kpi__note--placeholder {
  visibility: hidden;
  pointer-events: none;
}

.hrm-payroll-value {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.hrm-payroll-value--minus {
  color: #b45309;
}

.hrm-payroll-value--net {
  color: #047857;
}

.hrm-payroll-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
}

.hrm-payroll-status-icon--draft {
  color: #64748b;
  background: rgba(100, 116, 139, 0.12);
  border-color: rgba(100, 116, 139, 0.18);
}

.hrm-payroll-status-icon--calculated {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.18);
}

.hrm-payroll-status-icon--approved {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.18);
}

.hrm-payroll-status-icon--paid {
  color: #047857;
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.18);
}

.hrm-status-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hrm-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #fff;
  color: #64748b;
  font-size: 13px;
  line-height: 1;
}

.hrm-status-icon--probation {
  color: #b45309;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(217, 119, 6, 0.18);
}

.hrm-status-icon--official {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.hrm-status-icon--maternity {
  color: #be185d;
  background: rgba(244, 114, 182, 0.08);
  border-color: rgba(190, 24, 93, 0.18);
}

.hrm-status-icon--paused {
  color: #64748b;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}

.hrm-status-icon--quit {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(220, 38, 38, 0.18);
}

.hrm-status-icon--online {
  color: #047857;
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.18);
}

.hrm-status-icon--offline {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}

.hrm-payroll-money {
  display: grid;
  gap: 4px;
}

.hrm-payroll-money span {
  font-size: 12px;
  color: #64748b;
}

.hrm-payroll-money strong {
  color: #0f172a;
  font-size: 15px;
}

.hrm-payroll-money--minus strong {
  color: #b45309;
}

.hrm-payroll-money--net strong {
  color: #047857;
}

.hrm-payroll-bank {
  display: grid;
  gap: 4px;
}

.hrm-payroll-bank strong {
  font-size: 13px;
  color: #0f172a;
}

.hrm-payroll-bank span {
  font-size: 12px;
  color: #64748b;
  word-break: break-word;
}

.hrm-payroll-breakdown {
  display: grid;
  gap: 6px;
}

.hrm-payroll-breakdown__line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.hrm-payroll-breakdown__tag {
  min-width: 22px;
  border-radius: 999px;
  padding: 2px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.hrm-payroll-breakdown__tag--plus {
  background: rgba(5, 150, 105, 0.14);
  color: #047857;
}

.hrm-payroll-breakdown__tag--minus {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.hrm-payroll-doc {
  display: grid;
  gap: 4px;
}

.hrm-payroll-doc a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.hrm-payroll-doc small {
  color: #64748b;
  font-size: 11px;
}

.hrm-zalo-btn {
  min-width: 44px;
}

.hrm-zalo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sys-meta-shell .modal-dialog {
  max-width: min(1200px, calc(100vw - 32px));
}

@media (max-width: 1199.98px) {
  .hrm-period-grid,
  .hrm-view-filter__row--global {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hrm-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hrm-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .hrm-period-grid,
  .hrm-view-filter__row--global,
  .hrm-summary-strip {
    grid-template-columns: 1fr;
  }
}

.sys-action-btn.is-copied,
.btn-copy.is-copied {
  border-color: rgba(5, 150, 105, 0.3) !important;
  color: #047857 !important;
  background: rgba(5, 150, 105, 0.08) !important;
}

.hrm-sign-progress {
  display: inline-grid;
  gap: 8px;
}

.hrm-sign-progress--compact {
  display: inline-flex;
  align-items: center;
}

.hrm-sign-progress__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hrm-sign-progress__summary--x1 {
  color: #b45309;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(217, 119, 6, 0.18);
}

.hrm-sign-progress__summary--x2 {
  color: #047857;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(5, 150, 105, 0.18);
}

.hrm-sign-progress__parties {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hrm-sign-progress__party {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #fff;
  color: #64748b;
  font-size: 13px;
}

.hrm-sign-progress__party--draft {
  color: #64748b;
  background: #fff;
  border-color: rgba(148, 163, 184, 0.2);
}

.hrm-sign-progress__party--sent {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.hrm-sign-progress__party--signed {
  color: #047857;
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.18);
}

.hrm-sign-progress__party--expired {
  color: #b45309;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(217, 119, 6, 0.18);
}

.hrm-sign-progress__party--rejected {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(220, 38, 38, 0.18);
}

.hrm-doc-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.hrm-doc-action {
  min-width: 38px;
}

.hrm-doc-action.is-active {
  border-color: rgba(5, 150, 105, 0.28) !important;
  color: #047857 !important;
  background: rgba(5, 150, 105, 0.08) !important;
}

.hrm-sign-page-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 26%),
    #f8fafc;
  color: #0f172a;
}

.hrm-sign-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.hrm-sign-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 24px 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.hrm-sign-hero h1 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.2;
}

.hrm-sign-hero p {
  margin: 0;
  color: #475569;
}

.hrm-sign-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hrm-sign-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: min(560px, 100%);
}

.hrm-sign-hero__meta div {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.86));
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.hrm-sign-hero__meta strong,
.hrm-sign-summary span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hrm-sign-hero__meta span,
.hrm-sign-summary strong {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.hrm-sign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.hrm-sign-viewer,
.hrm-sign-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.hrm-sign-viewer {
  min-height: 760px;
  overflow: hidden;
}

.hrm-sign-viewer iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
}

.hrm-sign-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.hrm-sign-card {
  padding: 24px;
}

.hrm-sign-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.hrm-sign-card p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.65;
}

.hrm-sign-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.hrm-sign-summary div {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.hrm-sign-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #1e40af;
}

.hrm-sign-note i {
  margin-top: 2px;
}

.hrm-sign-trigger,
.hrm-sign-download {
  width: 100%;
}

.hrm-sign-download {
  margin-top: 10px;
}

.hrm-sign-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.hrm-sign-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}

.hrm-sign-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  margin: min(7vh, 56px) auto 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.hrm-sign-modal__head,
.hrm-sign-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
}

.hrm-sign-modal__head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.hrm-sign-modal__head h3 {
  margin: 0;
  font-size: 24px;
}

.hrm-sign-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #334155;
}

.hrm-sign-modal__body {
  padding: 22px;
}

.hrm-sign-modal__body p {
  margin: 0 0 14px;
  color: #475569;
}

.hrm-sign-pad {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px dashed rgba(37, 99, 235, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    repeating-linear-gradient(180deg, transparent 0, transparent 38px, rgba(148, 163, 184, 0.08) 39px, transparent 40px);
  touch-action: none;
}

.hrm-sign-modal__foot {
  justify-content: flex-end;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.hrm-sign-page.is-submitting .hrm-sign-trigger,
.hrm-sign-page.is-submitting .hrm-sign-confirm {
  pointer-events: none;
}

.hrm-history-inline-form {
  display: inline-flex;
  justify-content: flex-end;
}

.hrm-history-action-btn {
  min-width: 110px;
  justify-content: center;
}

.hrm-history-metric {
  display: block;
  font-weight: 700;
  color: #0f172a;
}

.hrm-history-metric + small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.hrm-history-ot-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.92);
}

.hrm-history-ot-status--approved {
  color: #0f766e;
  background: rgba(209, 250, 229, 0.92);
  border-color: rgba(16, 185, 129, 0.28);
}

.hrm-history-ot-status--pending {
  color: #b45309;
  background: rgba(254, 243, 199, 0.92);
  border-color: rgba(245, 158, 11, 0.32);
}

.hrm-history-ot-status--auto {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.92);
  border-color: rgba(59, 130, 246, 0.28);
}

.hrm-history-ot-status--none {
  color: #94a3b8;
}

@media (max-width: 1199.98px) {
  .hrm-sign-layout {
    grid-template-columns: 1fr;
  }

  .hrm-sign-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .hrm-sign-hero__meta {
    grid-template-columns: 1fr;
  }

  .hrm-sign-page {
    padding: 20px 14px 28px;
  }

  .hrm-sign-hero {
    flex-direction: column;
    padding: 20px;
  }

  .hrm-sign-hero h1 {
    font-size: 24px;
  }

  .hrm-sign-viewer,
  .hrm-sign-viewer iframe {
    min-height: 540px;
  }

  .hrm-sign-modal__dialog {
    width: calc(100vw - 20px);
    margin-top: 18px;
  }

  .hrm-sign-modal__head,
  .hrm-sign-modal__foot,
  .hrm-sign-modal__body {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.hrm-status-group {
  gap: 6px;
}

.hrm-status-icon--working {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.hrm-status-icon--morning {
  color: #d97706;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
}

.hrm-status-icon--afternoon {
  color: #0f766e;
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.18);
}

.hrm-status-icon--ot {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.18);
}

.hrm-status-icon--dim {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.16);
}

.hrm-sign-progress__party {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.hrm-sign-progress__party--signed {
  color: #047857;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(5, 150, 105, 0.24);
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.08);
}

.hrm-sign-page-body {
  background: linear-gradient(180deg, #f5f7fb 0%, #edf2ff 100%);
}

.hrm-sign-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.hrm-sign-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.hrm-sign-panel--meta {
  padding: 18px 20px;
}

.hrm-sign-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hrm-sign-meta span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.hrm-sign-meta strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
}

.hrm-sign-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 18px 0;
}

.hrm-sign-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.hrm-sign-badge.is-success {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.hrm-sign-badge.is-muted {
  background: rgba(148, 163, 184, 0.16);
  color: #64748b;
}

.hrm-sign-viewer {
  padding: 18px;
}

.hrm-sign-viewer iframe {
  width: 100%;
  min-height: 820px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: #fff;
}

.hrm-sign-mode-list {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.hrm-sign-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.hrm-sign-mode.is-active {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.hrm-sign-state {
  min-height: 20px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #64748b;
}

.hrm-sign-state.is-success {
  color: #047857;
}

.hrm-sign-state.is-danger {
  color: #b91c1c;
}

.hrm-sign-state.is-muted {
  color: #475569;
}

.hrm-sign-pane {
  display: none;
}

.hrm-sign-pane.is-active {
  display: block;
}

.hrm-sign-pane__box {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.hrm-sign-pane__box strong,
.hrm-sign-pane__box small {
  display: block;
}

.hrm-sign-pane__box small {
  margin-top: 4px;
  color: #64748b;
}

.hrm-sign-pane__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 18px;
}

.hrm-sign-pane--screen .hrm-sign-pad {
  width: 100%;
  height: auto;
  border: 1px dashed rgba(59, 130, 246, 0.34);
  border-radius: 18px;
  background: #fff;
}

.hrm-sign-modal__dialog {
  width: min(760px, calc(100vw - 20px));
}

.hrm-history-page {
  background: linear-gradient(180deg, #f5f7fb 0%, #eef3ff 100%);
}

.hrm-history-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.hrm-history-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.hrm-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.hrm-history-header h1 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.25;
  color: #0f172a;
}

.hrm-history-header__meta {
  display: grid;
  gap: 6px;
}

.hrm-history-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hrm-history-header p {
  margin: 0;
  color: #64748b;
}

.hrm-history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 22px 0;
}

.hrm-history-search-wrap {
  position: relative;
  width: min(360px, 100%);
}

.hrm-history-search-wrap i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.hrm-history-search {
  width: 100%;
  padding-left: 40px;
}

.hrm-history-toolbar__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  color: #475569;
  font-size: 13px;
}

.hrm-history-toolbar__note i {
  color: #2563eb;
}

.hrm-history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 22px;
}

.hrm-history-summary .hrm-summary-strip__item {
  margin-bottom: 0;
  min-height: 94px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: none;
}

.hrm-history-table {
  padding: 0 22px 22px;
}

.hrm-history-table .sys-meta-table thead th {
  white-space: nowrap;
  vertical-align: middle;
}

.hrm-history-table .sys-meta-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

.hrm-history-cell {
  display: grid;
  gap: 4px;
}

.hrm-history-cell small,
.hrm-history-cell span {
  font-size: 12px;
  color: #64748b;
}

.hrm-history-cell strong {
  font-size: 14px;
  color: #0f172a;
}

.hrm-history-cell--time strong {
  font-size: 18px;
  font-weight: 700;
}

.hrm-history-cell--metric strong {
  font-size: 16px;
}

.hrm-history-date {
  display: grid;
  gap: 4px;
}

.hrm-history-date strong {
  font-size: 15px;
  color: #0f172a;
}

.hrm-history-date span {
  font-size: 12px;
  color: #64748b;
}

.hrm-history-total {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 700;
  white-space: nowrap;
}

.hrm-history-source {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.hrm-history-empty {
  padding: 26px 16px !important;
  text-align: center;
  color: #64748b;
}

.hrm-history-empty--search {
  margin: 0 22px 22px;
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.85);
}

@media (max-width: 991.98px) {
  .hrm-sign-meta,
  .hrm-history-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hrm-sign-viewer iframe {
    min-height: 680px;
  }
}

@media (max-width: 767.98px) {
  .hrm-sign-page,
  .hrm-history-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hrm-sign-meta,
  .hrm-history-summary {
    grid-template-columns: 1fr;
  }

  .hrm-sign-toolbar,
  .hrm-history-toolbar,
  .hrm-history-header {
    flex-direction: column;
    align-items: stretch;
  }

  .hrm-history-search {
    width: 100%;
  }

  .hrm-history-toolbar__note {
    width: 100%;
  }

  .hrm-sign-viewer iframe {
    min-height: 560px;
  }
}
