/* Staff Attendance (A1) — employee punch view layout */
.staff-a1-page {
  width: 100%;
  max-width: min(720px, 100%);
  box-sizing: border-box;
  padding: 0 0 48px;
  margin: 0 auto;
  overflow-x: hidden;
}

.staff-a1-heading {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.staff-a1-lockout {
  color: #92400e;
  font-weight: 600;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fffbeb;
  font-size: 13px;
  line-height: 1.45;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.staff-a1-lockout-title {
  margin: 0 0 8px;
  font-weight: 800;
  color: #92400e !important;
}

.staff-a1-lockout-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  font-weight: 600;
  color: #78350f !important;
  line-height: 1.45;
}

.staff-a1-lockout-steps li {
  margin: 0 0 4px;
}

.staff-a1-status-card--lockout {
  border-color: #fcd34d !important;
  background: #fffef5 !important;
}

.staff-a1-status-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.staff-a1-status-date {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  word-break: break-word;
}

.staff-a1-status-row {
  margin: 0 0 6px;
  font-size: 14px;
  color: #334155;
  line-height: 1.4;
}

.staff-a1-status-row:last-child {
  margin-bottom: 0;
}

.staff-a1-status-row strong {
  color: #0f172a;
}

.staff-a1-status-msg {
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.staff-a1-status-msg--hidden {
  display: none;
}

.staff-a1-status-msg.is-error {
  color: #b45309;
  font-weight: 600;
}

.staff-a1-status-msg.is-busy {
  color: #3949ab;
  font-weight: 600;
}

.staff-a1-retry-btn {
  margin-top: 8px;
  display: inline-block;
  min-height: 36px;
}

.staff-a1-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 16px;
  overflow: visible;
}

#staffA1ActionButtons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#staffA1ActionButtons .btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
}

#staffA1ActionButtons .btn.primary {
  background: #3949ab !important;
  color: #fff !important;
  font-weight: 700;
  border: none;
}

#staffA1ActionButtons .btn.primary:disabled,
#staffA1ActionButtons .btn.primary.staff-a1-punch-btn--blocked {
  background: #e2e8f0 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  cursor: not-allowed;
  opacity: 1;
}

.staff-a1-punch-blocked-msg {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #000000 !important;
  line-height: 1.4;
}

#staffA1ActionButtons .btn.secondary {
  background: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 700;
  border: 1px solid #cbd5e1;
}

/* Standalone Self Punch / A1 — ERP control-box (not full-width bars). Roster expand unchanged. */
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-heading {
  color: #000000 !important;
  font-weight: 800 !important;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-status-row,
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-status-row strong,
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-status-date,
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-helper,
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-field-label {
  color: #000000 !important;
  font-weight: 700 !important;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) #staffA1ActionButtons {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) #staffA1ActionButtons .btn {
  width: auto !important;
  min-width: 140px;
  max-width: none !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 18px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-history-date {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-history-date .staff-a1-field {
  flex: 1 1 180px;
  max-width: 240px;
  margin: 0;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-history-date .staff-a1-field-control {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 6px !important;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-history-load,
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-btn-outline {
  width: auto !important;
  min-width: 120px;
  max-width: none !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 16px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-status-card--erp {
  padding: 0;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-status-cell {
  padding: 10px 14px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  min-width: 0;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-status-cell:nth-child(2n) {
  border-right: none;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-status-k,
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-status-v {
  display: block;
  color: #000000 !important;
  font-weight: 700 !important;
  line-height: 1.35;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-status-k {
  font-size: 12px;
  margin: 0 0 2px;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-status-v {
  font-size: 14px;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-correction-wrap {
  width: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-punch-log {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-punch-log-item--grid {
  margin: 0;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-punch-grid {
  border: none;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 8px 12px;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-punch-log-item--grid:last-child .staff-a1-punch-grid {
  border-bottom: none;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-punch-grid-row--actions {
  margin-top: 6px;
  padding-top: 6px;
}
html.bnpl-app-active #content .staff-a1-page:not(.staff-a1-page--roster-expand) .staff-a1-punch-chip {
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-width: 1px !important;
  border-color: #cbd5e0 !important;
  border-radius: 6px;
  color: #000000 !important;
}

.staff-a1-helper {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.staff-a1-btn-outline {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  background: #fff !important;
  color: #3949ab !important;
  font-weight: 700;
  border: 2px solid #3949ab !important;
  border-radius: 8px;
  cursor: pointer;
}

.staff-a1-btn-outline:disabled {
  opacity: 0.5;
  cursor: default;
}

.staff-a1-correction-cta--primary {
  background: #3949ab !important;
  color: #ffffff !important;
  border-color: #3949ab !important;
}

.staff-a1-day-complete {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.staff-a1-correction-panel {
  display: none;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
}

.staff-a1-correction-panel.is-open {
  display: block;
  overflow: visible;
}

.staff-a1-correction-wrap {
  overflow: visible;
  position: relative;
}

.staff-a1-field {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
}

.staff-a1-field-label {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.3;
}

.staff-a1-field-control {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

/* Action dropdown — modern chevron, no native double-arrow */
select.staff-a1-field-control,
#staffA1CorrectionAction {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233949AB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}

label.staff-a1-field[for="staffA1CorrectionAction"] {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  overflow: visible;
}

label.staff-a1-field[for="staffA1CorrectionAction"]:focus-within {
  z-index: 50;
}

#staffA1CorrectionAction {
  position: relative;
  z-index: 50;
}

#staffA1CorrectionAction:focus,
#staffA1CorrectionAction:active {
  z-index: 50;
}

.staff-a1-correction-panel:has(#staffA1CorrectionAction:focus),
.staff-a1-correction-panel:has(#staffA1CorrectionAction:active) {
  overflow: visible;
  z-index: 40;
  position: relative;
}

.staff-a1-correction-panel:has(#staffA1CorrectionAction:focus) .staff-a1-correction-submit,
.staff-a1-correction-panel:has(#staffA1CorrectionAction:active) .staff-a1-correction-submit {
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.staff-a1-field-control:focus {
  outline: none;
  border-color: #3949ab;
  box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.15);
}

.staff-a1-field-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.45;
}

.staff-a1-correction-submit {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 12px 16px;
  background: #3949ab !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 8px;
  cursor: pointer;
}

.staff-a1-correction-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.staff-a1-correction-list-title {
  font-weight: 700;
  margin: 24px 0 10px;
  padding-top: 4px;
  color: #0f172a;
  font-size: 14px;
}

.staff-a1-punch-log-title {
  font-weight: 700;
  margin: 20px 0 8px;
  color: #0f172a;
  font-size: 14px;
  list-style: none;
}

.staff-a1-punch-log-empty {
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.staff-a1-punch-log {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
}

.staff-a1-punch-log li,
.staff-a1-punch-log-item {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  list-style: disc;
}

.staff-a1-punch-log-head {
  margin: 0 0 2px;
  color: #000000 !important;
  font-weight: 700;
}

.staff-a1-punch-log-time {
  margin: 0 0 6px;
  color: #000000 !important;
  font-weight: 700;
  font-size: 12px;
}

.staff-a1-punch-site-line,
.staff-a1-last-punch-site {
  margin: 0 0 6px;
  color: #000000 !important;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
}

.staff-a1-punch-site-label,
.staff-a1-last-punch-site-label {
  color: #000000 !important;
  font-weight: 700;
}

.staff-a1-punch-log-links,
.staff-a1-last-punch-loc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Punch log — 2-row grid (meta left · proof right) */
.staff-a1-punch-log-item--grid {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.staff-a1-punch-log-item--grid:last-child {
  margin-bottom: 0;
}
.staff-a1-punch-grid {
  border: 1px solid #c5cae9;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}
.staff-a1-punch-grid-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-start;
}
.staff-a1-punch-grid-row--actions {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  align-items: stretch;
}
.staff-a1-punch-action-bar {
  flex: 1 1 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  justify-content: flex-start;
}
.staff-a1-punch-col--meta {
  flex: 1 1 0;
  min-width: 0;
}
.staff-a1-punch-col--thumb {
  flex: 0 0 56px;
  display: flex;
  justify-content: flex-end;
}
.staff-a1-punch-photo-thumb.is-broken {
  background: #fef2f2;
  border-color: #dc2626;
}
.staff-a1-punch-photo-thumb.is-broken img {
  display: none;
}
.staff-a1-punch-photo-thumb.is-broken::after {
  content: '?';
  font-weight: 800;
  color: #64748b;
  font-size: 18px;
}
.staff-a1-punch-photo-thumb {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid #3949ab;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
}
.staff-a1-punch-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.staff-a1-punch-thumb--empty {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-weight: 700;
}
.staff-a1-punch-chip {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 6px 10px;
  border: 2px solid #3949ab !important;
  border-radius: 6px;
  background: #fff;
  color: #3949ab !important;
  font-weight: 700 !important;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.staff-a1-punch-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.staff-a1-punch-marked-by-inline {
  font-size: 12px;
  font-weight: 700;
  color: #000000 !important;
  line-height: 1.3;
}
.staff-a1-punch-log--embedded .staff-a1-punch-log-item--grid {
  margin-bottom: 10px;
}
@media (max-width: 360px) {
  .staff-a1-punch-grid-row {
    flex-wrap: wrap;
  }
  .staff-a1-punch-col--thumb {
    flex: 0 0 auto;
  }
}

/* In-app punch location modal */
.erp-att-loc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.erp-att-loc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
}
.erp-att-loc-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.erp-att-loc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}
.erp-att-loc-title {
  font-weight: 700;
  color: #000;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}
.erp-att-loc-modal .erp-doc-preview-close {
  flex: 0 0 44px;
}
.erp-att-loc-hint {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #000 !important;
}
.erp-att-loc-sv-notice {
  margin: 0;
  padding: 12px;
  font-weight: 700;
  color: #000 !important;
}
.erp-att-loc-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
}
.erp-att-loc-tab {
  flex: 1;
  min-height: 44px;
  border: none;
  background: #f8fafc;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.erp-att-loc-tab.is-active {
  background: #3949ab;
  color: #fff;
}
.erp-att-loc-frame-wrap {
  flex: 1 1 auto;
  min-height: 220px;
  background: #e2e8f0;
}
.erp-att-loc-frame {
  width: 100%;
  height: min(50vh, 360px);
  border: none;
  display: block;
}
.erp-att-loc-foot {
  padding: 10px 12px 12px;
  border-top: 1px solid #e2e8f0;
}
.erp-att-loc-meta {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #000 !important;
  line-height: 1.4;
}
.erp-att-loc-external {
  font-size: 13px;
  font-weight: 700;
}

.staff-a1-punch-link,
.staff-a1-punch-photo-link {
  color: #3949AB !important;
  font-weight: 700 !important;
  text-decoration: none;
}

.staff-a1-last-punch-meta {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #C5CAE9;
  border-radius: 8px;
  background: #F8FAFC;
}

.staff-a1-override-panel {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.staff-a1-geo-override-overlay {
  position: fixed;
  inset: 0;
  z-index: 26000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.staff-a1-geo-override-dialog {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 16px 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

.staff-a1-geo-override-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #000000 !important;
}

.staff-a1-geo-override-hint,
.staff-a1-geo-override-meta {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #000000 !important;
  line-height: 1.4;
}

.staff-a1-geo-override-label {
  display: block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #000000 !important;
}

.staff-a1-geo-override-textarea,
.staff-a1-geo-override-file {
  display: block;
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  color: #000000 !important;
}

.staff-a1-geo-override-textarea {
  min-height: 72px;
  padding: 8px 10px;
  resize: vertical;
}

.staff-a1-geo-override-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.staff-a1-geo-override-cancel,
.staff-a1-geo-override-ok {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px !important;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.staff-a1-geo-override-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155 !important;
}

.staff-a1-geo-override-ok {
  background: #3949ab !important;
  border: none;
  color: #ffffff !important;
}

.staff-a1-override-panel label,
.staff-a1-override-panel textarea,
.staff-a1-override-panel input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Attendance Entry hub */
.att-entry-page {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 0 48px;
}

.att-entry-page--proxy-pick {
  max-width: min(720px, 100%);
  margin: 0 auto;
}

.att-entry-heading {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.att-entry-lead {
  margin: 0 0 16px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.45;
}

.att-entry-back {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 0;
  border: none;
  background: none;
  color: #3949ab;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.att-entry-tiles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.att-entry-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.att-entry-tile-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.att-entry-tile-body {
  flex: 1;
  min-width: 0;
}

.att-entry-tile-body b {
  display: block;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 2px;
}

.att-entry-tile-body span {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.att-entry-tile-arrow {
  color: #94a3b8;
  font-weight: 700;
}

.att-entry-staff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  gap: 8px;
}

.att-entry-staff-row[hidden] {
  display: none !important;
}

.att-entry-staff-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.att-entry-staff-initials {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2ff;
  color: #3949ab !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 36px;
  text-align: center;
}

.att-entry-staff-text {
  min-width: 0;
  flex: 1 1 auto;
}

.att-entry-staff-name {
  display: block;
  font-size: 15px;
  font-weight: 800 !important;
  color: #000000 !important;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.att-entry-staff-meta {
  display: block;
  font-size: 12px;
  color: #64748b !important;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.att-entry-staff-arrow {
  flex: 0 0 auto;
  color: #94a3b8;
  font-weight: 700;
}

.att-entry-proxy-search-wrap {
  display: block;
  margin: 0 0 12px;
}

.att-entry-proxy-search-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #000000 !important;
  margin-bottom: 6px;
}

.att-entry-proxy-search {
  width: 100%;
  height: 40px !important;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 6px !important;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #000000 !important;
  background: #fff;
}

.att-entry-staff-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.att-entry-proxy-no-match[hidden] {
  display: none !important;
}

.staff-a1-proxy-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.45;
}

.staff-a1-proxy-banner strong {
  color: #0f172a !important;
  font-weight: 800;
}

.staff-a1-proxy-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #334155 !important;
}

.att-entry-punch-wrap {
  width: 100%;
}

/* Punch photo preview — safe-area flex center, tight frame, aspect ratio preserved */
.erp-att-punch-preview-modal {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
  box-sizing: border-box !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-panel,
.erp-att-punch-preview-modal .erp-att-punch-preview-panel--fit {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  width: min(96vw, 720px) !important;
  max-width: min(96vw, 720px) !important;
  height: auto !important;
  max-height: none !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-toolbar-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 8px 10px !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 4 !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-toolbar-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-toolbar-row--top {
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-toolbar-row--actions {
  flex-wrap: nowrap !important;
  justify-content: stretch !important;
  padding-top: 8px !important;
  overflow: visible !important;
  gap: 10px !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-title {
  color: #000 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: calc(100% - 54px) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding-right: 4px !important;
}

.erp-att-punch-preview-modal .erp-doc-preview-close {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 6px !important;
  background: #3949AB !important;
  color: #FFFFFF !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 2 !important;
  cursor: pointer !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-action-btn {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 6px !important;
  background: #3949AB !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #FFFFFF !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  text-align: center !important;
  white-space: nowrap !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 5 !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-action-btn:disabled {
  opacity: 0.55 !important;
  cursor: wait !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-body,
.erp-att-punch-preview-modal .erp-doc-preview-body--img {
  padding: 2px !important;
  background: #fff !important;
  flex: 0 1 auto !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-status {
  margin: 0 !important;
  text-align: center !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-frame {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  line-height: 0 !important;
}

.erp-att-punch-preview-modal .erp-att-punch-preview-img {
  display: block !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 156px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

@media print {
  .erp-att-punch-preview-modal {
    display: none !important;
  }
}

html.bnpl-app-active #content:has(.staff-p10-dash) {
  max-width: none !important;
}

/* Attendance Dashboard — office desktop */
.staff-p10-dash {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding: 0 0 calc(48px + env(safe-area-inset-bottom, 0px));
  column-count: 1;
  column-width: auto;
}

.staff-p10-toolbar,
.staff-p10-filterbar,
.staff-p10-kpi-grid,
.staff-p10-queues,
.staff-p10-queue,
.staff-p10-corr-panel {
  break-inside: avoid;
}

.staff-p10-pagehead {
  margin: 0 0 10px;
}

.staff-p10-title {
  margin: 0 0 4px !important;
}

.staff-p10-lead {
  margin: 0 0 4px !important;
  color: #000000 !important;
  font-weight: 700;
}

.staff-p10-loaded {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #000000;
}

.staff-p10-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.staff-p10-pair {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px;
}

.staff-p10-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 168px;
  flex: 0 0 168px;
  font-size: 12px;
  font-weight: 800;
  color: #000000 !important;
}

.staff-p10-field-search {
  flex: 0 0 200px;
  width: 200px;
}

.staff-p10-field-search .staff-p10-control {
  width: 200px !important;
}

.staff-p10-queue-row {
  cursor: pointer;
}

.staff-p10-queue-row:hover td {
  background: #eef2ff;
}

.staff-p10-control {
  display: block;
  box-sizing: border-box !important;
  width: 168px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 38px !important;
  color: #000000 !important;
  background-color: #fff !important;
  -webkit-appearance: none;
  appearance: none;
}

.staff-p10-field-search {
  flex: 0 0 200px;
  width: 200px;
}

.staff-p10-field-search .staff-p10-control {
  width: 200px !important;
}

.staff-p10-queue-row {
  cursor: pointer;
}

.staff-p10-queue-row:hover td {
  background: #eef2ff;
}

select.staff-p10-control {
  padding-right: 28px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23000000' d='M1 1l5 6 5-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

input[type="date"].staff-p10-control::-webkit-datetime-edit,
input[type="date"].staff-p10-control::-webkit-datetime-edit-fields-wrapper,
input[type="date"].staff-p10-control::-webkit-datetime-edit-text,
input[type="date"].staff-p10-control::-webkit-datetime-edit-month-field,
input[type="date"].staff-p10-control::-webkit-datetime-edit-day-field,
input[type="date"].staff-p10-control::-webkit-datetime-edit-year-field {
  padding: 0;
  line-height: 38px;
}

.staff-p10-toolbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}

.staff-p10-bar-btn,
.staff-p10-nav {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 88px;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 6px !important;
  font-weight: 800;
  box-sizing: border-box !important;
}

.staff-p10-bar-btn.btn.primary {
  background: #3949AB !important;
  color: #FFFFFF !important;
}

.staff-p10-nav {
  color: #000000 !important;
}

.staff-p10-kpi-hint {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #000000;
}

.staff-p10-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

@media (min-width: 720px) {
  .staff-p10-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .staff-p10-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.staff-p10-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
  border-radius: 6px;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
  background: #fff;
}

.staff-p10-kpi--pendingToday { border-left-color: #d97706; background: #fffbeb; }
.staff-p10-kpi--presentToday { border-left-color: #15803d; background: #ecfdf5; }
.staff-p10-kpi--lockouts { border-left-color: #dc2626; background: #fef2f2; }
.staff-p10-kpi--pendingCorr { border-left-color: #2563eb; background: #eff6ff; }
.staff-p10-kpi--pendingOt { border-left-color: #7c3aed; background: #f5f3ff; }
.staff-p10-kpi--monthPresent { border-left-color: #0f766e; background: #f0fdf4; }

.staff-p10-kpi-label {
  font-size: 12px;
  font-weight: 800;
  color: #000000 !important;
  line-height: 1.3;
}

.staff-p10-kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: #000000 !important;
  line-height: 1.1;
}

.staff-p10-kpi-sub {
  font-size: 11px;
  font-weight: 700;
  color: #000000 !important;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.staff-p10-queues {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 960px) {
  .staff-p10-queues {
    grid-template-columns: 1fr 1fr;
  }
}

.staff-p10-queue,
.staff-p10-corr-panel {
  margin: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  min-height: 160px;
}

.staff-p10-queue--out { border-top: 3px solid #d97706; }
.staff-p10-queue--closed { border-top: 3px solid #15803d; }
.staff-p10-queue--lock { border-top: 3px solid #dc2626; }

.staff-p10-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}

.staff-p10-queue-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #000000 !important;
}

.staff-p10-queue-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  color: #000000 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.staff-p10-queue-scroll {
  overflow: auto;
  max-height: 320px;
}

.staff-p10-queue-table {
  width: 100%;
  border-collapse: collapse;
}

.staff-p10-queue-table th,
.staff-p10-queue-table td {
  padding: 8px 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #000000 !important;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.staff-p10-queue-table thead th {
  background: #e2e8f0 !important;
  position: sticky;
  top: 0;
}

.staff-p10-drill-empty {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #000000;
}

.staff-p10-corr-panel {
  border-top: 3px solid #2563eb;
}

.staff-p10-corr-lead {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #000000;
}

.staff-p10-corr-card {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
}

.staff-p10-corr-card:last-child {
  margin-bottom: 0;
}

.staff-p10-corr-head,
.staff-p10-corr-line {
  margin: 0 0 4px;
  font-weight: 700;
  color: #000000;
}

.staff-p10-corr-reason {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #000000;
}

.staff-p10-corr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-p10-quick-links {
  margin: 0 0 16px;
}

.staff-p10-quick-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #000000;
}

.staff-p10-quick-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-p10-quick-btn {
  width: 100%;
  min-height: 40px !important;
  border-radius: 6px !important;
  font-weight: 800;
  color: #000000 !important;
}

.staff-p10-policy-card {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
}

.staff-p10-policy-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #000000;
}

.staff-p10-th-sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #000000 !important;
  margin-top: 2px;
}

.staff-p10-setup .staff-p10-setup-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin: 0 0 12px;
}

html.bnpl-app-active #content .staff-p10-setup .staff-p10-setup-tabs .staff-p10-tab,
.staff-p10-setup .staff-p10-setup-tabs .staff-p10-tab {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  min-width: 88px;
  padding: 0 14px !important;
  border-radius: 6px !important;
  font-weight: 800;
  color: #000000 !important;
}

html.bnpl-app-active #content .staff-p10-setup .staff-p10-setup-tabs .staff-p10-tab.is-on,
.staff-p10-setup .staff-p10-setup-tabs .staff-p10-tab.is-on,
html.bnpl-app-active #content .staff-p10-setup .staff-p10-setup-tabs .staff-p10-tab.primary,
.staff-p10-setup .staff-p10-setup-tabs .staff-p10-tab.primary {
  background: #3949AB !important;
  color: #FFFFFF !important;
}

.staff-p10-setup .staff-p10-setup-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 12px;
  overflow-x: auto;
}

.staff-p10-setup .staff-p10-setup-bar .staff-p10-field {
  width: 168px;
  flex: 0 0 168px;
}

html.bnpl-app-active #content .staff-p10-setup .staff-p10-setup-bar .staff-p10-control,
html.bnpl-app-active #content .staff-p10-setup .staff-p10-setup-bar .staff-p10-bar-btn,
.staff-p10-setup .staff-p10-setup-bar .staff-p10-control,
.staff-p10-setup .staff-p10-setup-bar .staff-p10-bar-btn {
  flex: 0 0 168px !important;
  width: 168px !important;
  min-width: 168px !important;
  max-width: 168px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  border: var(--erp-control-box-border, 1px solid #cbd5e1) !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
}

.staff-p10-setup .staff-p10-setup-bar .staff-p10-action-label {
  display: block;
  min-height: 1em;
}

.staff-p10-setup .staff-p10-setup-bar .staff-p10-field-action {
  width: auto;
  flex: 0 0 auto;
}

html.bnpl-app-active #content .staff-p10-setup .staff-p10-setup-bar #staffP10SaveCompanyDuty,
.staff-p10-setup .staff-p10-setup-bar #staffP10SaveCompanyDuty {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 168px !important;
  max-width: none !important;
  padding: 0 14px !important;
}

.staff-p10-setup .staff-p10-save-msg {
  margin: 0 0 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #000000 !important;
  border: 1px solid #3949AB;
  border-radius: 6px;
  background: #e8eaf6;
}

.staff-p10-setup .staff-p10-save-msg.is-err {
  border-color: #b91c1c;
  background: #fee2e2;
}

html.bnpl-app-active #content .staff-p10-setup input[type="number"].staff-p10-control,
.staff-p10-setup input[type="number"].staff-p10-control {
  text-align: center !important;
  -moz-appearance: textfield;
}

.staff-p10-setup input[type="number"].staff-p10-control::-webkit-outer-spin-button,
.staff-p10-setup input[type="number"].staff-p10-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.staff-p10-setup .staff-p10-report-table th.is-num,
.staff-p10-setup .staff-p10-report-table td.is-num {
  text-align: center !important;
}

.staff-p10-setup .staff-p10-report-table td.is-num .staff-p10-control {
  margin-left: auto;
  margin-right: auto;
}

.staff-p10-setup .staff-p10-timebox.erp-control-box {
  width: 168px;
  border: var(--erp-control-box-border, 1px solid #cbd5e1) !important;
  border-radius: 6px !important;
}

.staff-p10-timebox.erp-control-box {
  display: inline-flex;
  align-items: center;
  height: 40px !important;
  min-width: 168px;
  padding: 0 6px 0 8px;
  gap: 0;
  box-sizing: border-box;
}

.staff-p10-timebox-clock {
  display: flex;
  align-items: center;
  margin-right: 4px;
  flex: 0 0 auto;
}

.staff-p10-timebox-colon {
  font-weight: 800;
  color: #000000 !important;
  padding: 0 1px;
}

.staff-p10-timebox select {
  height: 38px;
  border: 0 !important;
  background: transparent;
  box-shadow: none;
  outline: none;
  font-weight: 800;
  color: #000000 !important;
  padding: 0 2px;
}

.staff-p10-timebox .shift-hh { width: 42px; }
.staff-p10-timebox .shift-mm { width: 46px; }
.staff-p10-timebox .shift-ap { width: 52px; }

.staff-p10-policy-line,
.staff-p10-foot {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #000000;
}

/* Company staff roster (ACT_ATTENDANCE_STAFF_VIEW) */
.staff-co-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 0 0 48px;
}
.staff-co-heading {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #000000 !important;
  word-spacing: normal;
}
.staff-co-lead {
  margin: 0 0 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  line-height: 1.45;
  text-align: left !important;
  word-spacing: normal;
}
.staff-co-toolbar {
  margin-bottom: 14px;
  padding: 12px;
  border: var(--erp-control-box-border);
  border-radius: var(--erp-control-box-radius);
  background: #ffffff;
  box-sizing: border-box;
}
html.bnpl-app-active #content .staff-co-page .staff-co-toolbar-row,
.staff-co-toolbar-row {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 10px;
}
html.bnpl-app-active #content .staff-co-page .staff-co-field.staff-p10-field,
.staff-co-page .staff-co-field {
  width: 168px !important;
  min-width: 168px !important;
  max-width: 168px !important;
  flex: 0 0 168px !important;
  margin: 0 !important;
}
html.bnpl-app-active #content .staff-co-page .staff-co-field-action.staff-p10-field,
.staff-co-page .staff-co-field-action {
  width: auto !important;
  min-width: 110px !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}
html.bnpl-app-active #content .staff-co-page .staff-co-field .staff-p10-control {
  width: 100% !important;
  border: var(--erp-control-box-border) !important;
}
html.bnpl-app-active #content .staff-co-page .staff-p10-action-label {
  display: block;
  min-height: 15px;
  line-height: 15px;
  visibility: hidden;
  user-select: none;
}
html.bnpl-app-active #content .staff-co-page button.staff-co-refresh-btn,
html.bnpl-app-active #content .staff-co-page .staff-co-refresh-btn {
  width: auto !important;
  min-width: 110px !important;
  max-width: none !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 18px !important;
  border: 1px solid #3949AB !important;
  border-radius: 6px !important;
  background: #3949AB !important;
  color: #FFFFFF !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.staff-co-empty {
  margin: 0;
  padding: 16px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  color: #000000 !important;
  line-height: 1.45;
}
.staff-co-table {
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  overflow-x: auto;
  background: #ffffff;
}
.staff-co-head,
.staff-co-row-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) 150px minmax(240px, 1.4fr) 64px 28px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  font-weight: 700;
  color: #000000;
}
.staff-co-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #000000;
  line-height: 1.25;
}
.staff-co-tslot {
  white-space: nowrap;
}
.staff-co-tslot-k {
  color: #000000 !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.staff-co-status-cell,
.staff-co-mins-cell {
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  color: #000000 !important;
}
.staff-co-mins-cell {
  text-align: right;
}
.staff-co-detail-meta {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #000000;
}
.staff-a1-page--roster-expand .staff-a1-actions {
  margin-top: 0;
}
.staff-a1-roster-next {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
}
.staff-a1-page--roster-expand .staff-a1-punch-log-title {
  display: none;
}
.staff-co-head {
  background: #f1f5f9;
  font-size: 12px;
  text-transform: uppercase;
}
.staff-co-row-main {
  width: 100%;
  border: none;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}
.staff-co-row.is-open .staff-co-row-main {
  background: #f8fafc;
}
.staff-co-name {
  min-width: 0;
}
.staff-co-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.staff-co-name b {
  display: inline;
  font-size: 14px;
  color: #000000 !important;
}
.staff-co-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #000000 !important;
}
.staff-co-detail {
  padding: 8px 12px 12px;
  border-top: 1px dashed #cbd5e1;
  background: #fafafa;
}
.staff-co-punch-list {
  margin: 8px 0;
  padding-left: 18px;
  font-weight: 700;
  color: #000000;
}
.staff-co-proxy-btn {
  margin-top: 8px;
}
.staff-co-badge {
  display: inline-block;
  margin-left: 0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: middle;
  flex: 0 0 auto;
}
.staff-co-badge--proxy {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.staff-co-badge--self {
  background: #dbeafe;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}
.staff-co-punch-log-wrap {
  margin: 8px 0;
}
.staff-co-inline-a1 {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}
.staff-a1-status-card--roster-compact {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}
.staff-a1-status-card--roster-compact .staff-a1-status-date {
  font-size: 12px;
  margin-bottom: 6px;
}
.staff-a1-status-card--roster-compact .staff-a1-status-row {
  font-size: 13px;
  margin: 4px 0;
}
.staff-a1-page--roster-expand .staff-a1-actions {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.staff-a1-page--roster-expand .staff-a1-punch-btn--roster-primary {
  background: #3949ab !important;
  border-color: #3949ab !important;
  color: #ffffff !important;
}
.staff-a1-page--roster-expand .staff-a1-punch-btn--roster-secondary {
  background: #ffffff !important;
  color: #3949ab !important;
  border: 1px solid #3949ab !important;
}
@media (max-width: 900px) {
  html.bnpl-app-active #content .staff-co-page .staff-co-toolbar-row,
  .staff-co-toolbar-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  html.bnpl-app-active #content .staff-co-page .staff-co-toolbar-row,
  .staff-co-toolbar-row {
    flex-wrap: wrap;
  }
  html.bnpl-app-active #content .staff-co-page .staff-co-field.staff-p10-field,
  .staff-co-page .staff-co-field {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .staff-co-head {
    display: none;
  }
  .staff-co-row-main {
    grid-template-columns: minmax(0, 1fr) 22px;
    grid-template-rows: auto auto auto;
  }
  .staff-co-name {
    grid-column: 1;
    grid-row: 1;
  }
  .staff-co-status-cell {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
  }
  .staff-co-timeline {
    grid-column: 1;
    grid-row: 3;
  }
  .staff-co-mins-cell {
    display: none;
  }
  .staff-co-twist {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }
}
.staff-co-site-line {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #000000 !important;
}
.staff-co-a1-host .staff-a1-page--embedded {
  padding: 0;
  max-width: 100%;
}
.staff-a1-page--roster-expand .staff-a1-roster-next {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #000000 !important;
}
.staff-a1-page--roster-expand .staff-a1-actions {
  margin-top: 0;
}
.staff-a1-page--roster-expand .staff-a1-punch-btn--roster-primary {
  width: 100%;
  min-height: 48px !important;
  height: auto !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}
.staff-a1-page--roster-expand .staff-a1-punch-btn--roster-secondary {
  width: 100%;
  min-height: 40px !important;
  margin-top: 8px;
  font-weight: 700 !important;
}
.staff-a1-page--roster-expand .staff-a1-punch-btn--camera::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 15.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4z'/%3E%3Cpath d='M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.staff-a1-helper--roster {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #000000 !important;
  line-height: 1.4;
}
.staff-co-punch-log-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.staff-co-detail {
  padding: 12px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}
.staff-co-punch-log-section .staff-a1-punch-log-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #000000 !important;
}
.staff-a1-page--embedded .staff-a1-status-card {
  margin-top: 0;
}
.staff-a1-punch-marked-by {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #000000;
}

html.bnpl-app-active #content:has(.staff-p10-reports) {
  max-width: none !important;
}

.staff-p10-kpi--static {
  cursor: default;
}

.staff-p10-kpi--reportStaff { border-left-color: #3949AB; background: #eef0fa; }
.staff-p10-kpi--reportPresent { border-left-color: #15803d; background: #ecfdf5; }
.staff-p10-kpi--reportAbsent { border-left-color: #dc2626; background: #fef2f2; }
.staff-p10-kpi--reportIncomplete { border-left-color: #d97706; background: #fffbeb; }

.staff-p10-report-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.staff-p10-report-table th.staff-p10-sort {
  cursor: pointer;
  user-select: none;
  color: #000000 !important;
  font-weight: 800;
}

.staff-p10-report-table tfoot td,
.staff-p10-report-foot td {
  font-weight: 800;
  color: #000000 !important;
  background: #f8fafc;
  border-top: 2px solid #cbd5e1;
}

.staff-p10-report-table .staff-p10-report-total {
  font-weight: 800 !important;
  color: #000000 !important;
  background: #eef0fa;
}

.staff-p10-report-table th.is-num,
.staff-p10-report-table td.is-num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.staff-p10-report-table th,
.staff-p10-report-table td {
  vertical-align: middle;
}

.staff-p10-reports .staff-p10-queue-table thead th {
  white-space: nowrap;
}

html.bnpl-app-active #content .staff-p10-reports .staff-p10-queue-table th.is-num,
html.bnpl-app-active #content .staff-p10-reports .staff-p10-queue-table td.is-num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  min-width: 72px;
  padding-right: 12px !important;
}

.staff-p10-reports .staff-p10-kpi-value {
  width: 100%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.staff-p10-reports .staff-p10-queue-table thead th {
  background: #e8eaf6 !important;
  border-bottom: 2px solid #3949AB;
}

.staff-p10-reports .staff-p10-queue-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.staff-p10-reports .staff-p10-control {
  height: 40px !important;
  border-radius: 6px !important;
  color: #000000 !important;
  font-weight: 700;
}

.staff-p10-reports .staff-p10-filterbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.staff-p10-reports .staff-p10-filter-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.staff-p10-reports .staff-p10-filter-fields .staff-p10-field {
  width: auto;
  min-width: 0;
  flex: none;
}

.staff-p10-reports .staff-p10-filter-fields .staff-p10-control,
html.bnpl-app-active #content .staff-p10-reports .staff-p10-filter-fields .staff-p10-control {
  width: 100% !important;
  max-width: none !important;
  height: 40px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  color: #000000 !important;
  font-weight: 700;
  background-color: #fff !important;
}

.staff-p10-reports .staff-p10-filter-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.staff-p10-reports .staff-p10-toolbar-links {
  margin-left: auto;
  align-items: flex-end;
  flex-wrap: nowrap;
}

.staff-p10-reports .staff-p10-field-search-inline {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 180px;
  min-width: 140px;
  flex: 0 0 180px;
}

.staff-p10-reports .staff-p10-field-search-inline .staff-p10-control {
  width: 100% !important;
}

.staff-p10-reports .staff-p10-field-action {
  width: auto;
  min-width: 132px;
  flex: 0 0 auto;
}

.staff-p10-reports .staff-p10-action-label {
  display: block;
  min-height: 15px;
  line-height: 15px;
  visibility: hidden;
  user-select: none;
}

html.bnpl-app-active #content .staff-p10-reports .staff-p10-field-action .staff-p10-bar-btn.erp-control-box,
.staff-p10-reports .staff-p10-field-action .staff-p10-bar-btn {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
}

html.bnpl-app-active #content .staff-p10-reports .staff-p10-field-action .staff-p10-bar-btn.btn.secondary,
.staff-p10-reports .staff-p10-field-action .staff-p10-bar-btn.btn.secondary {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #cbd5e1 !important;
}

html.bnpl-app-active #content .staff-p10-reports .staff-p10-field-action .staff-p10-bar-btn.btn.primary,
.staff-p10-reports .staff-p10-field-action .staff-p10-bar-btn.btn.primary {
  height: 40px !important;
  border: 1px solid #3949AB !important;
  border-radius: 6px !important;
}

.staff-p10-reports select.staff-p10-control,
.staff-p10-reports input[type="month"].staff-p10-control,
.staff-p10-reports input[type="date"].staff-p10-control {
  padding-right: 30px !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23000000' d='M1 1l5 6 5-6'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px 8px !important;
}

.staff-p10-reports select.staff-p10-control::-ms-expand {
  display: none;
}

.staff-p10-reports input[type="month"].staff-p10-control,
.staff-p10-reports input[type="date"].staff-p10-control {
  position: relative;
}

.staff-p10-reports input[type="month"].staff-p10-control::-webkit-calendar-picker-indicator,
.staff-p10-reports input[type="date"].staff-p10-control::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.staff-p10-reports input[type="month"].staff-p10-control::-webkit-inner-spin-button,
.staff-p10-reports input[type="month"].staff-p10-control::-webkit-clear-button,
.staff-p10-reports input[type="date"].staff-p10-control::-webkit-inner-spin-button,
.staff-p10-reports input[type="date"].staff-p10-control::-webkit-clear-button {
  display: none;
  -webkit-appearance: none;
}

.staff-p10-reports .staff-p10-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .staff-p10-reports .staff-p10-filter-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .staff-p10-reports .staff-p10-filter-actions {
    flex-wrap: wrap;
  }

  .staff-p10-reports .staff-p10-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html.bnpl-app-active #content .la-page .la-site-toolbar {
  margin: 0 0 12px;
}
html.bnpl-app-active #content .la-page .la-site-field.staff-p10-field {
  width: 168px;
  margin: 0;
}

