:root {
  --cae-lock-navy:#071a33;
  --cae-lock-blue:#123e72;
  --cae-lock-teal:#078b9e;
  --cae-lock-red:#e31937;
  --cae-lock-green:#087f5b;
  --cae-lock-amber:#b45309;
  --cae-lock-line:#dce5f0;
}

.cae-lock-primary {
  border:0 !important;
  background:linear-gradient(105deg,var(--cae-lock-blue),var(--cae-lock-teal)) !important;
  color:#fff !important;
  font-weight:800 !important;
}

.cae-individual-lock-notice {
  margin:10px 0;
  padding:12px 14px;
  border-left:4px solid var(--cae-lock-teal);
  border-radius:8px;
  background:#eefafa;
  color:#24455c;
  line-height:1.45;
}

.cae-individual-lock-panel {
  margin:12px 0 16px;
  border:1px solid var(--cae-lock-line);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.cae-lock-panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 15px;
  background:#f6f9fc;
  border-bottom:1px solid var(--cae-lock-line);
}

.cae-lock-panel-head h3 { margin:0; color:var(--cae-lock-navy); }
.cae-lock-panel-head span { color:#667892; font-size:12px; }

.cae-lock-empty {
  padding:18px;
  color:#667892;
  text-align:center;
}

.cae-lock-table-wrap { overflow:auto; }
.cae-lock-table { width:100%; border-collapse:collapse; min-width:940px; }
.cae-lock-table th,
.cae-lock-table td {
  padding:10px 11px;
  border-bottom:1px solid #e8eef5;
  text-align:left;
  vertical-align:top;
  font-size:12px;
}
.cae-lock-table th { background:#f8fafc; color:#53647b; text-transform:uppercase; font-size:10px; }
.cae-lock-fingerprint { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; color:#52657e; }
.cae-lock-actions { display:flex; gap:6px; flex-wrap:wrap; }
.cae-lock-actions button { padding:6px 9px; font-size:11px; }

.cae-lock-status {
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  font-weight:800;
  font-size:10px;
  white-space:nowrap;
}
.cae-lock-status.is-active { color:#086344; background:#dff7ec; }
.cae-lock-status.is-pending { color:#91450a; background:#fff1d5; }
.cae-lock-status.is-reversed,
.cae-lock-status.is-rejected { color:#5f6d7e; background:#edf1f5; }

.cae-lock-modal[hidden] { display:none !important; }
.cae-lock-modal {
  position:fixed;
  inset:0;
  z-index:2147483647;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(3,15,31,.72);
}
.cae-lock-card {
  width:min(620px,96vw);
  max-height:92vh;
  overflow:auto;
  border-radius:18px;
  background:#fff;
  box-shadow:0 28px 76px rgba(0,0,0,.35);
}
.cae-lock-card-head {
  padding:24px 26px;
  color:#fff;
  background:linear-gradient(120deg,var(--cae-lock-navy),var(--cae-lock-blue) 62%,var(--cae-lock-teal));
}
.cae-lock-card-head p { margin:0 0 6px; color:#7de8f3; font-size:11px; font-weight:900; letter-spacing:.16em; }
.cae-lock-card-head h3 { margin:0 0 6px; color:#fff; font-size:23px; }
.cae-lock-card-head span { color:#d7e8fb; }
.cae-lock-card-body { display:grid; gap:15px; padding:22px 26px; }
.cae-lock-card-body label { display:grid; gap:7px; color:#172b47; font-weight:700; }
.cae-lock-card-body select,
.cae-lock-card-body input,
.cae-lock-card-body textarea {
  width:100%;
  box-sizing:border-box;
  border:1px solid #cad7e6;
  border-radius:9px;
  padding:10px 12px;
  background:#fff;
  color:#152842;
  font:inherit;
}
.cae-lock-card-body textarea { min-height:92px; resize:vertical; }
.cae-lock-worker { padding:12px 13px; border-radius:9px; background:#eef5fb; color:#173b67; font-weight:800; }
.cae-lock-confirm { grid-template-columns:auto 1fr !important; align-items:start; font-weight:500 !important; line-height:1.4; }
.cae-lock-confirm input { width:auto; margin-top:3px; }
.cae-lock-card-actions { display:flex; justify-content:flex-end; gap:10px; padding:0 26px 24px; }
.cae-lock-card-actions button { min-width:140px; min-height:42px; }

tr.cae-payroll-locked td { background:#f2fbf8 !important; }
.cae-payroll-lock-chip {
  display:inline-block;
  margin-left:6px;
  padding:2px 6px;
  border-radius:999px;
  color:#086344;
  background:#dff7ec;
  font-size:9px;
  font-weight:900;
}

@media (max-width:720px) {
  .cae-lock-card-actions { flex-direction:column-reverse; }
  .cae-lock-card-actions button { width:100%; }
}
