:root {
  --cea-navy: #0f172a;
  --cea-blue: #1d4ed8;
  --cea-blue-dark: #1e3a8a;
  --cea-blue-light: #dbeafe;
  --cea-accent: #f97316;
  --cea-background: #f1f5f9;
  --cea-surface: #ffffff;
  --cea-border: #dbe3ec;
  --cea-text: #1f2937;
  --cea-muted: #64748b;
  --cea-success: #15803d;
  --cea-success-light: #dcfce7;
  --cea-warning: #b45309;
  --cea-warning-light: #fef3c7;
  --cea-danger: #b91c1c;
  --cea-danger-light: #fee2e2;
  --cea-neutral: #475569;
  --cea-neutral-light: #e2e8f0;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 76px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;
  background: var(--cea-background);
  color: var(--cea-text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--cea-blue);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:hover:not(:disabled) {
  filter: brightness(1.05);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--cea-border);
  border-radius: 8px;
  background: white;
  color: var(--cea-text);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: transparent;
  outline: 2px solid var(--cea-blue);
}

label {
  font-weight: 700;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.92em;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.message {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--cea-danger);
  text-align: center;
}

.muted-text,
.empty-state-text {
  color: var(--cea-muted);
}

.empty-state-text {
  margin: 0;
  padding: 18px;
  text-align: center;
}

/* Login */

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(29, 78, 216, 0.9)
    );
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.brand {
  margin-bottom: 28px;
  text-align: center;
}

.brand h1 {
  margin: 0 0 8px;
  color: var(--cea-navy);
  font-size: 30px;
}

.brand p {
  margin: 0;
  color: var(--cea-muted);
}

form {
  display: grid;
  gap: 12px;
}

/* Application shell */

.app-page {
  overflow-x: hidden;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  background:
    linear-gradient(
      180deg,
      var(--cea-navy),
      #111827
    );
  color: white;
}

.sidebar-brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: var(--cea-accent);
  color: white;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy span {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 14px;
}

.sidebar-toggle,
.mobile-menu-button {
  margin: 0;
  padding: 8px;
  background: transparent;
  color: white;
  font-size: 22px;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
  padding: 16px 12px;
}

.nav-heading {
  margin: 18px 10px 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.nav-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  background: transparent;
  color: #dbeafe;
  text-align: left;
}

.nav-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  background: var(--cea-blue);
  color: white;
}

.nav-item:disabled {
  opacity: 0.42;
}

.nav-icon {
  display: inline-grid;
  width: 24px;
  place-items: center;
  font-size: 17px;
}

.sidebar-mission {
  margin-top: auto;
  padding: 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
}

.app-content {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--cea-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.topbar > div,
.topbar-actions,
.user-summary {
  display: flex;
  align-items: center;
}

.topbar > div {
  gap: 12px;
}

.topbar-title h1,
.topbar-title p {
  margin: 0;
}

.topbar-title h1 {
  color: var(--cea-navy);
  font-size: 22px;
}

.topbar-title p {
  margin-top: 5px;
  color: var(--cea-muted);
  font-size: 14px;
}

.topbar-actions {
  gap: 12px;
}

.user-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--cea-blue-light);
  color: var(--cea-blue-dark);
  font-weight: 800;
}

.user-summary {
  align-items: flex-start;
  flex-direction: column;
  line-height: 1.2;
}

.user-summary span {
  margin-top: 4px;
  color: var(--cea-muted);
  font-size: 13px;
}

.mobile-menu-button {
  display: none;
  color: var(--cea-navy);
}

.dashboard {
  width: calc(100% - 40px);
  max-width: none;
  margin: 24px auto 40px;
}

/* Phase 8L.11.4 - global desktop workspace consistency. */
.dashboard > .app-view {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

/* Routine manual refresh controls are retired from normal app pages.
   Their underlying loaders stay available for automatic refresh and internal navigation hooks. */
.dashboard button[id*="Refresh"],
.dashboard .stage34x-mobile-refresh {
  display: none !important;
}

/* Page structure */

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.page-heading h2,
.page-heading p {
  margin: 0;
}

.page-heading h2 {
  color: var(--cea-navy);
  font-size: 30px;
}

.page-heading > div > p:last-child {
  margin-top: 6px;
  color: var(--cea-muted);
}

.page-heading > button {
  margin: 0;
}

.eyebrow {
  margin: 0 0 6px !important;
  color: var(--cea-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.summary-card,
.panel {
  border: 1px solid var(--cea-border);
  border-radius: 14px;
  background: var(--cea-surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.summary-card {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.summary-label {
  color: var(--cea-muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-card strong {
  color: var(--cea-navy);
  font-size: 28px;
}

.summary-detail {
  color: var(--cea-muted);
  font-size: 12px;
}

.panel {
  padding: 24px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-header h2,
.panel-header p {
  margin: 0;
}

.panel-header p:last-child {
  margin-top: 6px;
  color: var(--cea-muted);
}

/* Toolbars */

.people-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 170px auto auto;
  gap: 12px;
  margin-bottom: 16px;
}

.employee-toolbar {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    150px
    180px
    170px
    auto
    auto;
  gap: 12px;
  margin-bottom: 16px;
}

.people-toolbar button,
.employee-toolbar button {
  margin: 0;
}

.search-field {
  min-width: 0;
}

.people-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--cea-muted);
  font-size: 13px;
}

/* Tables */

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--cea-border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: #fcfdff;
}

.people-row:hover,
.employee-row:hover {
  background: #f8fbff;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.person-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--cea-blue-light);
  color: var(--cea-blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.person-cell-text {
  display: grid;
  gap: 3px;
}

.person-cell-text strong {
  color: var(--cea-navy);
}

.person-cell-text span {
  color: var(--cea-muted);
  font-size: 12px;
}

.employment-cell {
  display: grid;
  gap: 4px;
  min-width: 170px;
}

.employment-cell strong {
  color: var(--cea-navy);
}

.employment-cell span {
  color: var(--cea-muted);
  font-size: 12px;
  line-height: 1.4;
}

.department-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 180px;
}

.department-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.primary-department-badge {
  background: var(--cea-blue-light);
  color: var(--cea-blue-dark);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-active {
  background: var(--cea-success-light);
  color: var(--cea-success);
}

.status-inactive {
  background: var(--cea-danger-light);
  color: var(--cea-danger);
}

.status-warning {
  background: var(--cea-warning-light);
  color: var(--cea-warning);
}

.status-neutral {
  background: var(--cea-neutral-light);
  color: var(--cea-neutral);
}

.actions-heading {
  width: 220px;
  text-align: right;
}

.table-actions-cell {
  width: 220px;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.table-action-button {
  margin: 0;
  padding: 8px 11px;
  font-size: 13px;
}

.edit-action {
  background: var(--cea-blue);
}

.deactivate-action {
  background: var(--cea-warning);
}

.reactivate-action,
.success-button {
  background: var(--cea-success);
}

.danger-button {
  background: var(--cea-danger);
}

.empty-table-message {
  padding: 32px;
  color: var(--cea-muted);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.pagination button {
  margin: 0;
}

.secondary-button {
  background: var(--cea-neutral);
}

.compact-button {
  padding: 8px 12px;
  font-size: 13px;
}

/* Modal foundation */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.68);
}

.modal-card,
.confirmation-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.employee-modal-card {
  width: min(980px, 100%);
}

.confirmation-card {
  width: min(480px, 100%);
}

.confirmation-card h2 {
  margin: 0 0 10px;
}

.confirmation-card > div > p:last-child {
  margin: 0;
  color: var(--cea-muted);
  line-height: 1.5;
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header {
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
}

.icon-button {
  margin: 0;
  padding: 4px 12px;
  background: transparent;
  color: #334155;
  font-size: 28px;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.modal-actions button {
  margin: 0;
}

/* Forms */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid > div {
  display: grid;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex !important;
  align-items: center;
}

.checkbox-field label,
.checkbox-stack label,
.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-field input,
.checkbox-stack input,
.checkbox-grid input {
  width: auto;
  margin: 0;
}

.checkbox-stack {
  display: flex !important;
  align-items: flex-end;
  min-height: 70px;
  padding-bottom: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-grid label {
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--cea-border);
  border-radius: 9px;
  background: #f8fafc;
}

.system-role-field {
  display: grid;
  gap: 7px;
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--cea-border);
  border-radius: 9px;
  background: #f8fafc;
  grid-column: span 2;
}

.system-role-field label {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.system-role-field select {
  width: 100%;
}

.form-section {
  display: grid;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--cea-border);
}

.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.form-section-heading h3,
.form-section-heading p {
  margin: 0;
}

.form-section-heading h3 {
  color: var(--cea-navy);
  font-size: 18px;
}

.form-section-heading p {
  margin-top: 5px;
  color: var(--cea-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Employee department assignment editor */

.department-assignment-list {
  display: grid;
  gap: 10px;
}

.department-assignment-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--cea-border);
  border-radius: 10px;
  background: #f8fafc;
}

.department-assignment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.department-assignment-top label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cea-navy);
  cursor: pointer;
}

.department-assignment-top input {
  width: auto;
  margin: 0;
}

.department-assignment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-left: 28px;
}

.department-assignment-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
}

.department-assignment-options input {
  width: auto;
  margin: 0;
}

/* Employee profile */

.profile-navigation {
  margin-bottom: 16px;
}

.profile-back-button {
  margin: 0;
}

.employee-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--cea-border);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f8fbff 65%,
      #eef5ff 100%
    );
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.employee-profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.employee-profile-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      var(--cea-blue),
      var(--cea-blue-dark)
    );
  color: white;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.24);
}

.employee-profile-name {
  min-width: 0;
}

.employee-profile-name h2 {
  margin: 0;
  color: var(--cea-navy);
  font-size: 30px;
  line-height: 1.15;
}

.employee-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--cea-muted);
  font-size: 14px;
}

.employee-profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-profile-actions button {
  margin: 0;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.profile-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.profile-role-primary {
  background: var(--cea-blue-light);
  color: var(--cea-blue-dark);
}

.profile-tabs {
  display: flex;
  gap: 4px;
  margin: 18px 0;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--cea-border);
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.profile-tab {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 14px;
  background: transparent;
  color: var(--cea-muted);
  font-size: 13px;
}

.profile-tab:hover:not(:disabled) {
  background: #f1f5f9;
  color: var(--cea-navy);
  filter: none;
}

.profile-tab.active {
  background: var(--cea-blue);
  color: white;
}

.profile-tab-panel {
  display: grid;
  gap: 18px;
}

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

.profile-stat-card {
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--cea-border);
  border-radius: 13px;
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.profile-stat-label {
  color: var(--cea-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.profile-stat-card strong {
  color: var(--cea-navy);
  font-size: 23px;
}

.profile-stat-card > span:last-child {
  color: var(--cea-muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-section-card {
  padding: 22px;
  border: 1px solid var(--cea-border);
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

.profile-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-section-heading h3,
.profile-section-heading p {
  margin: 0;
}

.profile-section-heading h3 {
  color: var(--cea-navy);
  font-size: 20px;
}

.profile-section-heading > div > p:last-child {
  margin-top: 5px;
  color: var(--cea-muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-section-heading button {
  flex: 0 0 auto;
  margin: 0;
}

.profile-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--cea-border);
  border-radius: 10px;
  overflow: hidden;
}

.profile-detail-list > div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--cea-border);
  border-bottom: 1px solid var(--cea-border);
  background: #fbfdff;
}

.profile-detail-list > div:nth-child(2n) {
  border-right: 0;
}

.profile-detail-list > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.profile-detail-list dt {
  margin: 0 0 5px;
  color: var(--cea-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.profile-detail-list dd {
  margin: 0;
  color: var(--cea-navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.profile-department-list {
  display: grid;
  gap: 10px;
}

.profile-department-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--cea-border);
  border-radius: 10px;
  background: #f8fafc;
}

.profile-department-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-department-heading strong {
  color: var(--cea-navy);
}

.profile-department-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.profile-department-details {
  color: var(--cea-muted);
  font-size: 12px;
}

.profile-notes-text {
  min-height: 80px;
  margin: 0;
  color: #475569;
  line-height: 1.65;
  white-space: pre-wrap;
}

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

.future-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--cea-border);
  border-radius: 12px;
  background: white;
}

.future-feature-icon {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
}

.future-feature-card h3,
.future-feature-card p {
  margin: 0;
}

.future-feature-card h3 {
  color: var(--cea-navy);
  font-size: 15px;
}

.future-feature-card p {
  margin-top: 5px;
  color: var(--cea-muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-empty-state {
  display: grid;
  justify-items: center;
  padding: 44px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
}

.profile-empty-icon {
  font-size: 34px;
}

.profile-empty-state h3,
.profile-empty-state p {
  margin: 0;
}

.profile-empty-state h3 {
  margin-top: 12px;
  color: var(--cea-navy);
}

.profile-empty-state p {
  max-width: 560px;
  margin-top: 8px;
  color: var(--cea-muted);
  line-height: 1.55;
}

/* Employee Schedules */

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

.schedule-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--cea-border);
  border-radius: 11px;
  background: #f8fafc;
}

.schedule-summary-card span {
  color: var(--cea-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.schedule-summary-card strong {
  color: var(--cea-navy);
  font-size: 24px;
}

.schedule-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, auto) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--cea-muted);
  font-size: 13px;
}

.schedule-toolbar button {
  margin: 0;
}

.schedule-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}

.schedule-history-toggle input {
  width: auto;
  margin: 0;
}

.schedule-table {
  min-width: 1180px;
}

.schedule-row:hover {
  background: #f8fbff;
}

.schedule-notes-cell {
  min-width: 180px;
  max-width: 280px;
  color: #475569;
  line-height: 1.45;
  white-space: normal;
}

.schedule-modal-card {
  width: min(780px, 100%);
}

@media (max-width: 1000px) {
  .schedule-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .schedule-summary-grid,
  .schedule-toolbar {
    grid-template-columns: 1fr;
  }

  .schedule-history-toggle {
    min-height: 44px;
  }
}

/* Pay Rates */

.pay-rate-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--cea-muted);
  font-size: 13px;
}

.pay-rate-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}

.pay-rate-history-toggle input {
  width: auto;
  margin: 0;
}

.pay-rate-table {
  min-width: 1050px;
}

.pay-rate-row:hover {
  background: #f8fbff;
}

.pay-rate-modal-card {
  width: min(760px, 100%);
}

.confirmation-date-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.confirmation-date-field input {
  width: 100%;
}

/* Training */

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

.training-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--cea-border);
  border-radius: 11px;
  background: #f8fafc;
}

.training-summary-card span {
  color: var(--cea-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.training-summary-card strong {
  color: var(--cea-navy);
  font-size: 24px;
}

.training-toolbar {
  display: grid;
  grid-template-columns: 170px 190px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.training-toolbar button {
  margin: 0;
}

.training-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cea-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.training-history-toggle input {
  width: auto;
  margin: 0;
}

.training-table {
  min-width: 1250px;
}

.training-row:hover {
  background: #f8fbff;
}

.training-row-alert {
  background: #fff7ed;
}

.training-course-cell {
  display: grid;
  gap: 4px;
  min-width: 240px;
}

.training-course-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.training-course-heading strong {
  color: var(--cea-navy);
}

.training-course-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.training-course-code {
  color: var(--cea-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.45px;
}

.training-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.training-required-badge {
  background: var(--cea-warning-light);
  color: var(--cea-warning);
}

.training-inactive-badge {
  background: var(--cea-neutral-light);
  color: var(--cea-neutral);
}

.training-status-cell {
  display: grid;
  gap: 5px;
}

.training-alert-text {
  color: var(--cea-danger);
  font-size: 11px;
  font-weight: 800;
}

.training-date-alert {
  color: var(--cea-danger);
  font-weight: 800;
}

.modal-description {
  margin: 0 0 18px;
  color: var(--cea-muted);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .training-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .training-history-toggle {
    min-height: 46px;
  }
}

@media (max-width: 760px) {
  .training-summary-grid,
  .training-toolbar {
    grid-template-columns: 1fr;
  }

  .training-history-toggle {
    align-items: flex-start;
  }
}

/* Qualifications */

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

.qualification-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--cea-border);
  border-radius: 11px;
  background: #f8fafc;
}

.qualification-summary-card span {
  color: var(--cea-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.qualification-summary-card strong {
  color: var(--cea-navy);
  font-size: 24px;
}

.qualification-toolbar {
  display: grid;
  grid-template-columns:
    190px
    210px
    minmax(260px, 1fr)
    auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.qualification-toolbar button {
  margin: 0;
}

.qualification-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cea-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.qualification-history-toggle input {
  width: auto;
  margin: 0;
}

.qualification-table {
  min-width: 1250px;
}

.qualification-row:hover {
  background: #f8fbff;
}

.qualification-name-cell {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.qualification-name-cell strong {
  color: var(--cea-navy);
}

.qualification-code {
  color: var(--cea-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.45px;
}

.qualification-proficiency {
  display: grid;
  gap: 4px;
  min-width: 160px;
}

.qualification-stars {
  color: #b45309;
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.qualification-level-label {
  color: var(--cea-muted);
  font-size: 12px;
  font-weight: 700;
}

.qualification-auth-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}

.qualification-auth-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--cea-blue-light);
  color: var(--cea-blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.qualification-effective-dates,
.qualification-assessment-cell {
  display: grid;
  gap: 4px;
  min-width: 145px;
}

.qualification-effective-dates span:first-child,
.qualification-assessment-cell span:first-child {
  color: var(--cea-navy);
  font-weight: 700;
}

.qualification-effective-dates span:last-child,
.qualification-assessment-cell span:last-child {
  color: var(--cea-muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .qualification-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .qualification-history-toggle {
    min-height: 46px;
  }
}

@media (max-width: 760px) {
  .qualification-summary-grid,
  .qualification-toolbar {
    grid-template-columns: 1fr;
  }

  .qualification-history-toggle {
    align-items: flex-start;
  }
}

/* Documents */

.document-preview-modal-card {
  width: min(1100px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
}

.document-preview-content {
  display: grid;
  place-items: center;
  min-height: 500px;
  max-height: calc(100vh - 240px);
  overflow: auto;
  border: 1px solid var(--cea-border);
  border-radius: 10px;
  background: #f8fafc;
}

.document-preview-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 270px);
  object-fit: contain;
}

.document-preview-frame {
  width: 100%;
  height: calc(100vh - 270px);
  min-height: 500px;
  border: 0;
  background: white;
}

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

.document-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--cea-border);
  border-radius: 11px;
  background: #f8fafc;
}

.document-summary-card span {
  color: var(--cea-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.document-summary-card strong {
  color: var(--cea-navy);
  font-size: 24px;
}

.document-toolbar {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    180px
    170px
    minmax(250px, 1fr)
    auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.document-toolbar button {
  margin: 0;
}

#documentSearchInput {
  min-width: 0;
}

.document-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.document-sort-button:hover,
.document-sort-button.active {
  color: var(--cea-blue);
}

.document-sort-indicator {
  min-width: 10px;
  font-size: 10px;
}

.document-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cea-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.document-history-toggle input {
  width: auto;
  margin: 0;
}

.document-table {
  min-width: 1250px;
}

.document-row:hover {
  background: #f8fbff;
}

.document-name-cell {
  display: grid;
  gap: 4px;
  min-width: 240px;
}

.document-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.document-file-icon {
  flex: 0 0 28px;
  width: 28px;
  text-align: center;
  font-size: 22px;
  line-height: 1;
}

.document-title-row strong {
  overflow-wrap: anywhere;
}

.document-notes-cell {
  display: -webkit-box;
  min-width: 170px;
  max-width: 260px;
  overflow: hidden;
  color: var(--cea-navy);
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.document-notes-empty {
  color: var(--cea-muted);
  font-style: italic;
}

.document-name-cell strong {
  color: var(--cea-navy);
}

.document-file-details {
  color: var(--cea-muted);
  font-size: 12px;
}

.document-date-cell {
  display: grid;
  gap: 4px;
  min-width: 135px;
}

.document-date-cell span:first-child {
  color: var(--cea-navy);
  font-weight: 700;
}

.document-date-cell span:last-child {
  color: var(--cea-muted);
  font-size: 12px;
}

.document-date-warning {
  color: #b45309 !important;
  font-weight: 700;
}

.document-date-danger {
  color: #b91c1c !important;
  font-weight: 700;
}

.document-visibility-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 155px;
}

.document-visibility-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--cea-blue-light);
  color: var(--cea-blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.document-confidential-badge {
  background: #fef3c7;
  color: #92400e;
}

#documentUploadFile {
  padding: 10px;
  border: 1px dashed var(--cea-border);
  border-radius: 9px;
  background: #f8fafc;
}

@media (max-width: 1100px) {
  .document-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .document-history-toggle {
    min-height: 46px;
  }
}

@media (max-width: 760px) {
  .document-summary-grid,
  .document-toolbar {
    grid-template-columns: 1fr;
  }

  .document-history-toggle {
    align-items: flex-start;
  }
}

/* Reviews */

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

.review-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--cea-border);
  border-radius: 11px;
  background: #f8fafc;
}

.review-summary-card span {
  color: var(--cea-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.review-summary-card strong {
  color: var(--cea-navy);
  font-size: 24px;
}

.review-toolbar {
  display: grid;
  grid-template-columns:
    minmax(250px, 1fr)
    180px
    minmax(250px, 1fr)
    auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-table {
  min-width: 1100px;
}

.review-row:hover {
  background: #f8fbff;
}

.review-name-cell {
  display: grid;
  gap: 4px;
}

.review-name-cell strong,
.review-score {
  color: var(--cea-navy);
}

.review-subtitle {
  color: var(--cea-muted);
  font-size: 12px;
}

.review-score {
  font-weight: 700;
}

.review-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cea-muted);
  font-size: 13px;
}

.review-history-toggle input {
  width: auto;
  margin: 0;
}

.review-details-modal-card {
  width: min(1180px, calc(100vw - 40px));
}

.review-details-modal-header {
  align-items: flex-start;
}

.review-details-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.review-details-header-actions button {
  margin: 0;
}

.review-save-status-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.review-save-status-bar .message {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.review-save-status-bar .message:empty {
  visibility: hidden;
}

.review-save-status-bar .message.success {
  background: #dcfce7;
  color: #166534;
}

.review-save-status-bar .message.error {
  background: #fee2e2;
  color: #991b1b;
}

.review-save-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.review-save-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.review-save-toast.error {
  background: #dc2626;
}

.review-details-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.review-details-summary article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--cea-border);
  border-radius: 10px;
  background: #f8fafc;
}

.review-details-summary span {
  color: var(--cea-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.review-details-summary strong {
  color: var(--cea-navy);
  overflow-wrap: anywhere;
}

.review-details-categories {
  display: grid;
  gap: 20px;
}

.review-detail-category {
  padding: 20px;
  border: 1px solid var(--cea-border);
  border-radius: 13px;
  background: #ffffff;
}

.review-detail-category-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.review-detail-category-heading h3 {
  margin: 0;
  color: var(--cea-navy);
  font-size: 21px;
}

.review-detail-category-heading span {
  flex: 0 0 auto;
  color: var(--cea-muted);
  font-size: 13px;
  font-weight: 700;
}

.review-detail-category-description {
  margin: 8px 0 0;
  color: var(--cea-muted);
  line-height: 1.5;
}

.review-detail-question-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.review-detail-question {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  background: #fbfdff;
}

.review-detail-question > strong {
  color: var(--cea-navy);
  line-height: 1.45;
}

.review-detail-question-response {
  min-width: 0;
}

.review-detail-question-response select {
  min-height: 46px;
}

.review-detail-question-comments-input {
  min-height: 92px;
}

.review-rating-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-rating-dot {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--cea-border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--cea-muted);
  font-size: 13px;
  font-weight: 800;
}

.review-rating-dot.active {
  border-color: var(--cea-blue);
  background: var(--cea-blue);
  color: #ffffff;
}

.review-details-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.review-details-notes article {
  padding: 16px;
  border: 1px solid var(--cea-border);
  border-radius: 11px;
  background: #f8fafc;
}

.review-details-notes h3,
.review-details-notes p {
  margin: 0;
}

.review-details-notes h3 {
  color: var(--cea-navy);
  font-size: 16px;
}

.review-details-notes p {
  margin-top: 8px;
  color: #475569;
  line-height: 1.55;
  white-space: pre-wrap;
}

.review-details-signatures {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--cea-border);
  border-radius: 12px;
  background: #ffffff;
}

.review-details-signatures > h3 {
  margin: 0 0 14px;
  color: var(--cea-navy);
}

#reviewDetailsSignatures {
  display: grid;
  gap: 10px;
}

.review-signature-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--cea-border);
  border-radius: 10px;
  background: #f8fafc;
}

.review-signature-card strong {
  color: var(--cea-navy);
}

.review-signature-card span {
  color: var(--cea-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.review-signature-card p {
  margin: 4px 0 0;
  color: #475569;
  line-height: 1.5;
}

.review-acknowledgement-modal-card {
  width: min(680px, 100%);
}

.review-acknowledgement-field {
  display: grid;
  gap: 8px;
}

.review-acknowledgement-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
}

.review-acknowledgement-confirmation input {
  flex: 0 0 auto;
  width: auto;
  margin: 4px 0 0;
}

@media (max-width: 1100px) {
  .review-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .review-details-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .review-summary-grid,
  .review-toolbar,
  .review-details-summary,
  .review-details-notes {
    grid-template-columns: 1fr;
  }

  .review-details-modal-header,
  .review-detail-category-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .review-details-header-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .review-details-header-actions button {
    width: 100%;
  }
}

/* Collapsed sidebar */

.sidebar-collapsed .app-shell {
  grid-template-columns:
    var(--sidebar-collapsed-width)
    minmax(0, 1fr);
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-heading,
.sidebar-collapsed .sidebar-mission {
  display: none;
}

.sidebar-collapsed .sidebar-brand {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-inline: 8px;
}

.sidebar-collapsed .brand-mark {
  display: none;
}

.sidebar-collapsed .sidebar-toggle {
  display: inline-flex;
  justify-content: center;
  width: 44px;
}

.sidebar-collapsed .nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-inline: 8px;
}

/* Responsive */

@media (max-width: 1280px) {
  .employee-toolbar {
    grid-template-columns:
      minmax(220px, 1fr)
      150px
      180px
      170px;
  }

  .employee-toolbar button {
    width: 100%;
  }

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

  .profile-future-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .people-toolbar {
    grid-template-columns: 1fr 170px;
  }

  .employee-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .people-toolbar button,
  .employee-toolbar button {
    width: 100%;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .employee-profile-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .employee-profile-actions {
    width: 100%;
    justify-content: space-between;
  }

  .profile-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    z-index: 200;
    width: var(--sidebar-width);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .user-summary {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .topbar > div,
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard {
    width: min(100% - 24px, 1450px);
  }

  .summary-grid,
  .profile-summary-grid,
  .profile-future-grid {
    grid-template-columns: 1fr;
  }

  .people-toolbar,
  .employee-toolbar {
    grid-template-columns: 1fr;
  }

  .people-toolbar select,
  .employee-toolbar select {
    width: 100%;
  }

  .people-summary-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel {
    padding: 18px;
  }

  .employee-profile-identity {
    align-items: flex-start;
  }

  .employee-profile-name h2 {
    font-size: 25px;
  }

  .employee-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-profile-actions button,
  .employee-profile-actions .status-badge {
    width: 100%;
  }

  .profile-detail-list {
    grid-template-columns: 1fr;
  }

  .profile-detail-list > div {
    border-right: 0;
  }

  .profile-detail-list > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--cea-border);
  }

  .profile-detail-list > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }

  .table-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .table-action-button {
    width: 100%;
  }

  .department-assignment-options {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 0;
  }

  .modal {
    padding: 12px;
  }

  .modal-card,
  .confirmation-card {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .employee-profile-header {
    padding: 18px;
  }

  .employee-profile-identity {
    flex-direction: column;
  }

  .profile-section-heading {
    flex-direction: column;
  }

  .profile-section-heading button {
    width: 100%;
  }

  .profile-department-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-department-badges {
    justify-content: flex-start;
  }
}
/* Employee Time Clock */

.time-clock-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.time-clock-heading-actions button {
  margin: 0;
}

.time-clock-unavailable-panel {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.time-clock-unavailable-panel h2,
.time-clock-unavailable-panel p {
  margin: 0;
}

.time-clock-unavailable-panel p:last-child {
  margin-top: 7px;
  color: var(--cea-muted);
  line-height: 1.55;
}

.time-clock-unavailable-icon {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  background: var(--cea-blue-light);
  color: var(--cea-blue-dark);
  font-size: 28px;
}

.time-clock-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.time-clock-hero-panel {
  overflow: hidden;
}

.time-clock-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.time-clock-hero-header h2,
.time-clock-hero-header p {
  margin: 0;
}

.time-clock-hero-header h2 {
  margin-top: 12px;
  color: var(--cea-navy);
  font-size: clamp(24px, 3vw, 36px);
}

.time-clock-hero-header p {
  max-width: 700px;
  margin-top: 8px;
  color: var(--cea-muted);
  line-height: 1.55;
}

.time-clock-live-clock {
  display: grid;
  min-width: 190px;
  justify-items: end;
  text-align: right;
}

.time-clock-live-clock strong {
  color: var(--cea-navy);
  font-size: 30px;
  letter-spacing: -0.8px;
}

.time-clock-live-clock span {
  margin-top: 4px;
  color: var(--cea-muted);
  font-size: 12px;
  line-height: 1.4;
}

.time-clock-employee-strip {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--cea-border);
  border-radius: 12px;
  background: #f8fafc;
}

.time-clock-employee-strip > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.time-clock-employee-strip span {
  color: var(--cea-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.time-clock-employee-strip strong {
  overflow: hidden;
  color: var(--cea-navy);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-clock-primary-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 18px;
}

.time-clock-primary-actions button {
  margin: 0;
}

.time-clock-primary-button {
  min-width: 220px;
  padding: 16px 24px;
  border-radius: 11px;
  font-size: 17px;
}

.time-clock-clock-out-button {
  background: var(--cea-danger);
}

.time-clock-action-message,
.time-clock-inline-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--cea-danger);
  font-size: 13px;
  font-weight: 700;
}

.time-clock-action-message.is-success,
.time-clock-inline-message.is-success {
  color: var(--cea-success);
}

.time-clock-action-message.is-warning,
.time-clock-inline-message.is-warning {
  color: var(--cea-warning);
}

.time-clock-action-message.is-error,
.time-clock-inline-message.is-error {
  color: var(--cea-danger);
}

.time-clock-operational-panel .panel-header {
  align-items: flex-start;
}

.time-clock-rule-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.time-clock-rule-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.time-clock-rule-list > div:last-child {
  border-bottom: 0;
}

.time-clock-rule-list dt {
  color: var(--cea-muted);
  font-size: 13px;
}

.time-clock-rule-list dd {
  margin: 0;
  color: var(--cea-navy);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.time-clock-schedule-panel {
  margin-bottom: 18px;
}

.time-clock-schedule-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.time-clock-shift-card {
  display: grid;
  grid-template-columns: minmax(145px, 0.7fr) minmax(260px, 2fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--cea-border);
  border-radius: 11px;
  background: #fbfdff;
}

.time-clock-shift-time,
.time-clock-shift-details {
  display: grid;
  gap: 4px;
}

.time-clock-shift-time strong,
.time-clock-shift-details strong {
  color: var(--cea-navy);
}

.time-clock-shift-time span,
.time-clock-shift-details span {
  color: var(--cea-muted);
  font-size: 12px;
  line-height: 1.45;
}

.time-clock-empty-card {
  display: grid;
  gap: 5px;
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 11px;
  background: #f8fafc;
  text-align: center;
}

.time-clock-empty-card.compact {
  padding: 18px;
}

.time-clock-empty-card strong {
  color: var(--cea-navy);
}

.time-clock-empty-card span {
  color: var(--cea-muted);
  font-size: 13px;
}

.time-clock-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.time-clock-entry-table-wrapper {
  margin-top: 18px;
}

.time-clock-entry-table {
  min-width: 760px;
}

.time-clock-request-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.time-clock-request-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--cea-border);
  border-radius: 11px;
  background: #fbfdff;
}

.time-clock-request-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.time-clock-request-item p {
  margin: 0;
  color: var(--cea-muted);
  font-size: 12px;
  line-height: 1.5;
}

.time-clock-request-item .time-clock-request-reason {
  color: var(--cea-text);
}

.time-clock-admin-settings {
  margin-top: 18px;
  border-top: 4px solid var(--cea-blue);
}

.time-clock-settings-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}

.time-clock-settings-form > div {
  display: grid;
  gap: 7px;
}

.time-clock-settings-form label {
  font-size: 13px;
}

.time-clock-range-settings {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(150px, 0.75fr));
  align-items: end;
  gap: 12px 18px !important;
  padding: 14px;
  border: 1px solid var(--cea-border);
  border-radius: 12px;
  background: #f8fafc;
}

.time-clock-range-settings > div {
  display: grid;
  gap: 7px;
}

.time-clock-range-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-weight: 700;
}

.time-clock-range-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.time-clock-range-settings p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--cea-muted);
  font-size: 12px;
  line-height: 1.45;
}

.time-clock-settings-actions button {
  margin: 0;
  white-space: nowrap;
}

.time-clock-modal-card {
  width: min(760px, 100%);
}

.time-clock-late-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.time-clock-late-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--cea-border);
  border-radius: 11px;
  background: #f8fafc;
}

.time-clock-late-summary span {
  color: var(--cea-muted);
  font-size: 12px;
  font-weight: 700;
}

.time-clock-late-summary strong {
  color: var(--cea-navy);
  font-size: 18px;
}

.time-clock-late-description {
  margin: 0 0 16px;
  color: var(--cea-muted);
  line-height: 1.55;
}

.time-clock-late-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.time-clock-choice-button {
  display: grid;
  gap: 7px;
  min-height: 116px;
  align-content: start;
  padding: 18px;
  text-align: left;
}

.time-clock-choice-button strong {
  font-size: 16px;
}

.time-clock-choice-button span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.time-clock-choice-button.secondary-choice {
  background: var(--cea-neutral);
}

.time-clock-worked-late-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--cea-border);
}

@media (max-width: 1100px) {
  .time-clock-hero-grid,
  .time-clock-detail-grid {
    grid-template-columns: 1fr;
  }

  .time-clock-settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-clock-range-settings {
    grid-template-columns: 1fr 1fr;
  }

  .time-clock-range-toggle,
  .time-clock-range-settings p {
    grid-column: 1 / -1;
  }

  .time-clock-settings-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .time-clock-heading-actions,
  .time-clock-primary-actions,
  .time-clock-hero-header {
    align-items: stretch;
    flex-direction: column;
  }

  .time-clock-live-clock {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .time-clock-employee-strip,
  .time-clock-settings-form,
  .time-clock-range-settings,
  .time-clock-late-summary,
  .time-clock-late-choice-grid {
    grid-template-columns: 1fr;
  }

  .time-clock-primary-button {
    width: 100%;
    min-width: 0;
  }

  .time-clock-shift-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .time-clock-shift-card .status-badge {
    justify-self: start;
  }
}

/* Compact Hour : Minute AM/PM time controls */
.compact-time-control {
  display: grid;
  grid-template-columns: minmax(72px, 0.85fr) auto minmax(78px, 0.9fr) minmax(88px, 0.95fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  max-width: 360px;
}

.compact-time-control select {
  min-width: 0;
  width: 100%;
}

.compact-time-separator {
  color: var(--cea-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

@media (max-width: 520px) {
  .compact-time-control {
    grid-template-columns: minmax(64px, 0.8fr) auto minmax(70px, 0.85fr) minmax(80px, 0.9fr);
    gap: 5px;
  }
}

/* Stage 4 - Payroll Approvals */

.nav-count-badge {
  margin-left: auto;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: #f28c52;
  color: #ffffff;
}

.approvals-page-heading {
  align-items: flex-start;
}

.approvals-control-panel,
.approvals-main-panel,
.approvals-adjustment-panel {
  margin-bottom: 1rem;
}

.approvals-progress-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid #e3a13b;
  border-radius: 14px;
  background: #fff8e8;
  box-shadow: 0 4px 12px rgba(30, 42, 58, 0.08);
}

.approvals-progress-count {
  flex: 0 0 3.25rem;
  min-width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b9680c;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.approvals-progress-copy {
  display: grid;
  gap: 0.2rem;
}

.approvals-progress-copy strong {
  color: #6f3e06;
  font-size: 1.2rem;
  line-height: 1.2;
}

.approvals-progress-copy span {
  color: #76562e;
  font-size: 0.9rem;
  line-height: 1.35;
}

.approvals-progress-banner.is-complete {
  border-color: #2e9c5b;
  background: linear-gradient(135deg, #e5f8eb 0%, #f2fbf5 100%);
  box-shadow: 0 5px 16px rgba(34, 132, 72, 0.16);
}

.approvals-progress-banner.is-complete .approvals-progress-count {
  background: #23844a;
  font-size: 1.7rem;
}

.approvals-progress-banner.is-complete .approvals-progress-copy strong {
  color: #146b37;
  font-size: 1.4rem;
}

.approvals-progress-banner.is-complete .approvals-progress-copy span {
  color: #32724d;
}

.approvals-filter-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(240px, 1.35fr) minmax(190px, 1fr) auto minmax(150px, 0.75fr);
  gap: 1rem;
  align-items: end;
}

.approvals-filter-grid label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.approvals-check-label {
  grid-template-columns: auto 1fr !important;
  align-items: center;
  align-self: center;
  padding-top: 1.5rem;
  font-weight: 650 !important;
}

.approvals-check-label input {
  width: 1rem;
  height: 1rem;
}

.approvals-bulk-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.stage38dd-approvals-filter-grid {
  grid-template-columns: minmax(190px, 1fr) minmax(240px, 1.35fr) minmax(190px, 1fr) minmax(150px, 0.75fr);
}

.approvals-employee-nav > .approvals-bulk-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.approvals-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-color, #dce3ec);
  margin-top: 1rem;
}

.approvals-summary-grid article {
  padding: 1rem 1.1rem 0.25rem;
  min-height: 96px;
  border-right: 1px solid var(--border-color, #dce3ec);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.approvals-summary-grid article:last-child {
  border-right: 0;
}

.approvals-summary-grid span {
  color: #728096;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.approvals-summary-grid strong {
  font-size: 1.55rem;
  color: #1f2b3a;
}

.approvals-summary-grid small {
  color: #728096;
  font-size: 0.78rem;
  line-height: 1.25;
}

.link-button {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #3158d5;
  padding: 0;
  width: fit-content;
  font-weight: 700;
  text-decoration: underline;
}

.link-button:hover:not(:disabled) {
  background: transparent;
  transform: none;
}

.approval-warning-text {
  color: #a56a00 !important;
}

.approvals-adjustment-list {
  display: grid;
  gap: 0.75rem;
}

.approvals-adjustment-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(200px, 1fr) minmax(260px, 1.75fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fbfcfe;
}

.approvals-adjustment-row > div {
  display: grid;
  gap: 0.25rem;
}

.approvals-adjustment-row p {
  margin: 0;
  color: #536174;
}

.approvals-adjustment-actions {
  display: flex !important;
  grid-auto-flow: column;
  gap: 0.55rem !important;
}

.approvals-employee-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e1e7ef;
}

.approvals-employee-nav > div {
  display: flex;
  gap: 0.5rem;
}

.approvals-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.approvals-workspace.schedule-collapsed {
  grid-template-columns: minmax(0, 1fr) auto;
}

.approvals-table-area {
  min-width: 0;
}

.approvals-table-wrapper {
  overflow-x: auto;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
}

.approvals-table {
  min-width: 1420px;
  width: 100%;
  border-collapse: collapse;
}

.approvals-table th,
.approvals-table td {
  padding: 0.7rem 0.6rem;
  vertical-align: middle;
  border-bottom: 1px solid #e8edf3;
  text-align: left;
}

.approvals-table th {
  background: #f6f8fb;
  color: #66758a;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.approval-sort {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  font-size: inherit;
}

.approval-sort:hover {
  background: transparent;
  transform: none;
  color: #3158d5;
}

.approval-day-code {
  font-weight: 800;
  color: #42526a;
}

.approval-schedule-mismatch {
  background: #fff4c7;
  font-weight: 800;
}

.approval-conflict-row {
  background: #fff3ef;
}

.approval-conflict-row td:first-child {
  border-left: 4px solid #ce563e;
}

.approval-voided-row {
  opacity: 0.7;
  background: #f6f7f9;
}

.approval-time-cell {
  min-width: 230px;
}

.approval-compact-time {
  grid-template-columns: minmax(58px, 0.8fr) auto minmax(66px, 0.9fr) minmax(78px, 1fr);
  gap: 0.35rem;
}

.approval-compact-time select {
  min-width: 0;
  padding: 0.58rem 0.42rem;
  font-size: 0.88rem;
}

.approval-department-select {
  min-width: 180px;
}

.approval-comment-cell {
  min-width: 180px;
  max-width: 260px;
  white-space: normal;
  color: #526074;
}

.approval-recorded {
  display: inline-flex;
  min-width: 98px;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  line-height: 1.1;
}

.approval-recorded small {
  font-size: 0.7rem;
  white-space: nowrap;
}

.approval-recorded.on-time {
  background: #dcf3e5;
  color: #246c45;
}

.approval-recorded.late-warning {
  background: #fff0bd;
  color: #886000;
}

.approval-recorded.late-severe {
  background: #ffe1d9;
  color: #9b3c27;
}

.approval-recorded.not-recorded {
  background: #eef2f6;
  color: #69778a;
}

.approval-daily-warning {
  display: block;
  color: #a6432e;
  font-weight: 800;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.approval-status-button {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}

.approval-status-button.pending {
  background: #fff0bd;
  color: #8a6300;
}

.approval-status-button.approved {
  background: #dcf3e5;
  color: #246c45;
}

.approval-status-button.approval-clock-out-button {
  background: #2057d4;
  color: #ffffff;
}

.approval-status-button.approval-clock-out-button:hover,
.approval-status-button.approval-clock-out-button:focus-visible {
  background: #1746ae;
}

.approval-conflict-badge {
  background: #ffe1d9;
  color: #9b3c27;
}

.approval-void-badge {
  background: #e9edf2;
  color: #596779;
}

.approvals-edit-note {
  margin: 0.75rem 0 0;
  color: #728096;
  font-size: 0.82rem;
}

.approvals-schedule-panel {
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  padding: 0.9rem;
  background: #fbfcfe;
  position: sticky;
  top: 1rem;
}

.approvals-workspace.schedule-collapsed .approvals-schedule-panel {
  width: auto;
  padding: 0.5rem;
}

.approvals-schedule-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.65rem;
}

.approvals-schedule-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.approvals-schedule-totals span {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.72rem;
  color: #718097;
}

.approvals-schedule-totals strong {
  color: #1f2b3a;
  font-size: 0.95rem;
}

.approvals-schedule-rows {
  display: grid;
  gap: 0.45rem;
  max-height: 480px;
  overflow-y: auto;
}

.approval-schedule-row {
  display: grid;
  grid-template-columns: 58px 1.2fr 0.7fr 1.25fr;
  gap: 0.45rem;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid #e6ebf1;
  font-size: 0.8rem;
}

.approval-schedule-row strong {
  color: #273548;
}

.approvals-schedule-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.approvals-report-modal-card {
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: auto;
}

.approvals-report-summary {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.8rem 0;
}

.approvals-difference-wrapper {
  max-height: 58vh;
  overflow: auto;
}

.approvals-difference-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.approvals-difference-table th,
.approvals-difference-table td {
  padding: 0.65rem;
  border-bottom: 1px solid #e4e9f0;
  text-align: left;
  vertical-align: top;
}

.approval-difference-negative {
  color: #a6432e;
  font-weight: 800;
}

.approval-difference-positive {
  color: #246c45;
  font-weight: 800;
}

.approvals-void-modal-card {
  width: min(620px, 94vw);
}

.approvals-void-modal-card form {
  display: grid;
  gap: 0.65rem;
}

.approvals-void-help {
  color: #6f7d90;
  font-size: 0.82rem;
  margin: 0;
}

@media (max-width: 1300px) {
  .approvals-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approvals-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .approvals-schedule-panel {
    position: static;
  }
}

@media (max-width: 800px) {
  .approvals-filter-grid,
  .approvals-summary-grid,
  .approvals-adjustment-row {
    grid-template-columns: 1fr;
  }

  .approvals-summary-grid article {
    border-right: 0;
    border-bottom: 1px solid #e1e7ef;
  }

  .approvals-employee-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .approvals-employee-nav > div,
  .approvals-bulk-actions,
  .approvals-schedule-actions {
    flex-wrap: wrap;
  }

  .approvals-progress-banner {
    align-items: flex-start;
    padding: 0.9rem 1rem;
  }

  .approvals-progress-count {
    flex-basis: 2.8rem;
    min-width: 2.8rem;
    height: 2.8rem;
  }
}

/* Stage 4 approval table density + employee navigation colors */
.approvals-main-panel {
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

.approvals-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 0.7rem;
}

.approvals-table-wrapper {
  overflow-x: auto;
}

.approvals-table {
  min-width: 978px;
  table-layout: fixed;
  font-size: 0.76rem;
}

.approvals-table th,
.approvals-table td {
  padding: 0.46rem 0.28rem;
}

.approvals-table th {
  font-size: 0.66rem;
  line-height: 1.05;
  white-space: normal;
}

.approvals-table th:nth-child(1),
.approvals-table td:nth-child(1) { width: 64px; }
.approvals-table th:nth-child(2),
.approvals-table td:nth-child(2) { width: 34px; }
.approvals-table th:nth-child(3),
.approvals-table td:nth-child(3) { width: 165px; }
.approvals-table th:nth-child(4),
.approvals-table td:nth-child(4) { width: 82px; }
.approvals-table th:nth-child(5),
.approvals-table td:nth-child(5) { width: 165px; }
.approvals-table th:nth-child(6),
.approvals-table td:nth-child(6) { width: 82px; }
.approvals-table th:nth-child(7),
.approvals-table td:nth-child(7) { width: 50px; }
.approvals-table th:nth-child(8),
.approvals-table td:nth-child(8) { width: 108px; }
.approvals-table th:nth-child(9),
.approvals-table td:nth-child(9) { width: 92px; }
.approvals-table th:nth-child(10),
.approvals-table td:nth-child(10) { width: 78px; }
.approvals-table th:nth-child(11),
.approvals-table td:nth-child(11) { width: 58px; }

.approval-time-cell {
  min-width: 0;
  width: 100%;
}

.approval-compact-time {
  grid-template-columns: 50px 5px 50px 54px;
  gap: 0.12rem;
  max-width: none;
}

.approval-compact-time select {
  padding: 0.42rem 0.12rem;
  font-size: 0.76rem;
}

.approval-compact-time select[data-time-part="hour"],
.approval-compact-time select[data-time-part="minute"] {
  min-width: 50px;
}

.approval-compact-time select[data-time-part="period"] {
  min-width: 54px;
}

.approval-compact-time .compact-time-separator {
  font-size: 0.9rem;
}

.approval-recorded {
  min-width: 0;
  width: 100%;
  padding: 0.32rem 0.28rem;
  font-size: 0.74rem;
}

.approval-recorded small {
  font-size: 0.61rem;
  white-space: normal;
  line-height: 1.05;
}

.approval-department-select {
  min-width: 0;
  width: 100%;
  padding: 0.42rem 0.22rem;
  font-size: 0.73rem;
}

.approval-comment-cell {
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
}

.approval-status-button,
.approvals-table .table-action-button {
  max-width: 100%;
  padding: 0.4rem 0.42rem;
  font-size: 0.69rem;
}

.approval-daily-warning {
  font-size: 0.62rem;
  white-space: normal;
}

.approvals-schedule-panel {
  padding: 0.72rem;
}

.approval-schedule-row {
  grid-template-columns: 46px 1.15fr 0.65fr 1fr;
  gap: 0.3rem;
  padding: 0.42rem 0.25rem;
  font-size: 0.72rem;
}

.approvals-employee-nav button {
  padding: 0.52rem 0.78rem;
}

#approvalsNextEmployee {
  background: #2f8f46;
  border-color: #2f8f46;
  color: #ffffff;
}

#approvalsPreviousEmployee {
  background: #dff3df;
  border-color: #a9d7ac;
  color: #275d32;
}

#approvalsFirstEmployee,
#approvalsLastEmployee {
  background: #ffe7a3;
  border-color: #dfc15d;
  color: #624c00;
}

#approvalsNextEmployee:hover:not(:disabled) {
  background: #26783b;
}

#approvalsPreviousEmployee:hover:not(:disabled) {
  background: #cceacc;
}

#approvalsFirstEmployee:hover:not(:disabled),
#approvalsLastEmployee:hover:not(:disabled) {
  background: #f8d76e;
}

#approvalsNextEmployee:disabled,
#approvalsPreviousEmployee:disabled,
#approvalsFirstEmployee:disabled,
#approvalsLastEmployee:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

@media (max-width: 1300px) {
  .approvals-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .approvals-table {
    min-width: 900px;
  }
}

/* Stage 5 - Administrator Payroll */
.payroll-page-heading {
  align-items: flex-start;
}

.payroll-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.payroll-metric-card {
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.payroll-metric-card span,
.payroll-breakdown-grid span,
.payroll-batch-card span {
  display: block;
  color: #617086;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.payroll-metric-card strong {
  display: block;
  margin: 5px 0 2px;
  color: #132238;
  font-size: 1.75rem;
}

.payroll-metric-card small {
  color: #6b7789;
}

button.payroll-metric-card-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

button.payroll-metric-card-button:hover:not(:disabled),
button.payroll-metric-card-button:focus-visible {
  border-color: #d49b16;
  box-shadow: 0 10px 28px rgba(150, 103, 0, 0.16);
  transform: translateY(-2px);
}

button.payroll-metric-card-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.payroll-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.payroll-sort-button:hover,
.payroll-sort-button:focus-visible,
.payroll-sort-button.is-active {
  background: transparent;
  box-shadow: none;
  color: #244fca;
  transform: none;
}

.payroll-sort-button:focus-visible {
  outline: 2px solid #86a7f5;
  outline-offset: 3px;
}

.payroll-sort-indicator {
  color: #7c899c;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}

.payroll-sort-button.is-active .payroll-sort-indicator {
  color: #244fca;
}

.payroll-metric-green {
  border-color: #b7dfc2;
  background: #f3fbf5;
}

.payroll-metric-green strong {
  color: #176b32;
}

.payroll-metric-amber {
  border-color: #efd58c;
  background: #fffaf0;
}

.payroll-metric-amber strong {
  color: #966700;
}

.payroll-warning-panel {
  border-color: #e7bf58;
  background: #fff9e9;
  margin-bottom: 16px;
}

.payroll-warning-panel strong {
  color: #725000;
}

.payroll-warning-panel p {
  margin: 6px 0 0;
  color: #725d23;
}

.payroll-detail-panel,
.payroll-recent-panel {
  margin-bottom: 16px;
}

.payroll-archive-header {
  gap: 24px;
  align-items: flex-end;
}

.payroll-archive-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.payroll-archive-actions label {
  min-width: 165px;
}

.payroll-archive-actions input {
  width: 100%;
}

.payroll-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.payroll-breakdown-grid > div {
  padding: 12px 14px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #f8fafc;
}

.payroll-breakdown-grid strong {
  display: block;
  margin-top: 4px;
  color: #16263c;
  font-size: 1.15rem;
}

.payroll-table-wrapper {
  overflow-x: auto;
}

.payroll-table {
  width: 100%;
  border-collapse: collapse;
}

.payroll-table th,
.payroll-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #e5eaf1;
  text-align: left;
  vertical-align: middle;
}

.payroll-table th {
  color: #536176;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.payroll-money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.payroll-missing-rate-row {
  background: #fff2f2;
}

.payroll-missing-rate {
  color: #b42318;
  font-weight: 700;
}

.payroll-missing-rate-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.payroll-missing-rate-link:hover,
.payroll-missing-rate-link:focus-visible {
  color: #991b1b;
}

.approvals-adjustment-action-status {
  display: block;
  flex-basis: 100%;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.approvals-adjustment-action-status.success { color: #157347; }
.approvals-adjustment-action-status.error { color: #b42318; }

.approvals-overlap-comparison {
  display: block;
  margin-top: 0.28rem;
  color: #1f5f3b;
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.25;
}

.approvals-overlap-comparison.error { color: #b42318; }

.payroll-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.payroll-bonus-header {
  gap: 16px;
}

.payroll-bonus-description {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payroll-remove-bonus {
  padding: 6px 9px;
}

.payroll-batch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payroll-batch-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid #e1e7ef;
  border-radius: 11px;
  background: #fafbfd;
}

.payroll-batch-card strong {
  display: block;
  margin-top: 3px;
  color: #16263c;
}

.payroll-bonus-modal {
  max-width: 560px;
}

.payroll-bonus-modal label {
  display: grid;
  gap: 5px;
}

.payroll-bonus-modal textarea {
  width: 100%;
  resize: vertical;
}

@media (max-width: 1150px) {
  .payroll-metric-grid,
  .payroll-breakdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payroll-two-column {
    grid-template-columns: 1fr;
  }
  .payroll-batch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .payroll-metric-grid,
  .payroll-breakdown-grid,
  .payroll-batch-list {
    grid-template-columns: 1fr;
  }
  .payroll-archive-actions {
    width: 100%;
  }
  .payroll-archive-actions label,
  .payroll-archive-actions button {
    width: 100%;
  }
}

/* Stage 5 compensation and incentive expansion */
.payroll-breakdown-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.payroll-salary-covered {
  color: #166534;
  font-weight: 700;
  white-space: nowrap;
}

.payroll-incentive-table th,
.payroll-incentive-table td {
  vertical-align: top;
}

.payroll-incentive-table th:nth-child(1) { min-width: 130px; }
.payroll-incentive-table th:nth-child(2) { min-width: 150px; }
.payroll-incentive-table th:nth-child(3) { min-width: 150px; }
.payroll-incentive-table th:nth-child(5) { min-width: 200px; }
.payroll-incentive-table th:nth-child(8) { min-width: 190px; }

.payroll-incentive-tiers {
  max-width: 280px;
  line-height: 1.45;
}

.payroll-incentive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.payroll-incentive-review-row {
  background: #fff8df;
}

.payroll-incentive-review-needed,
.payroll-incentive-included {
  display: block;
  margin-bottom: 3px;
}

.payroll-incentive-review-needed {
  color: #9a5b00;
}

.payroll-incentive-included {
  color: #166534;
}

.payroll-incentive-table td small {
  display: block;
  color: #64748b;
  line-height: 1.35;
}

.payroll-incentive-help {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

.payroll-incentive-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.payroll-rule-grid,
.payroll-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payroll-incentive-modal label,
.payroll-date-grid label {
  display: grid;
  gap: 6px;
}

.payroll-tier-editor {
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}

.payroll-tier-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

#payrollIncentiveTierRows {
  display: grid;
  gap: 8px;
}

.payroll-tier-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.payroll-tier-row label {
  display: grid;
  gap: 4px;
}

.payroll-tier-row > span {
  padding-bottom: 10px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .payroll-breakdown-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .payroll-breakdown-six,
  .payroll-rule-grid,
  .payroll-date-grid {
    grid-template-columns: 1fr;
  }

  .payroll-tier-row {
    grid-template-columns: 1fr;
  }

  .payroll-tier-row > span {
    display: none;
  }
}

/* Stage 7 - Attendance & Reliability */
.attendance-page-heading {
  align-items: center;
}

.attendance-controls-panel {
  display: grid;
  gap: 1rem;
}

.attendance-control-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(190px, 1fr));
  gap: 1rem;
  align-items: end;
}

.attendance-control-grid label,
.attendance-settings-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}

.attendance-control-grid > div {
  display: grid;
  gap: 0.2rem;
}

.attendance-control-label {
  color: var(--muted-text, #667085);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.attendance-control-grid small,
.attendance-settings-note,
.attendance-score-card small,
.attendance-review-card small {
  color: var(--muted-text, #667085);
}

.attendance-settings-form {
  display: flex;
  gap: 0.8rem;
  align-items: end;
  padding-top: 0.9rem;
  border-top: 1px solid #e5e7eb;
}

.attendance-settings-form label {
  min-width: 170px;
}

.attendance-settings-note {
  align-self: center;
  max-width: 560px;
}

.attendance-score-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(210px, 0.55fr);
  gap: 1rem;
}

.attendance-score-card,
.attendance-review-card {
  min-width: 0;
}

.attendance-score-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.attendance-score-heading h2 {
  margin-top: 0.15rem;
  font-size: 2rem;
}

.attendance-score-badge {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: #eef6ed;
  color: #2f6f3e;
  font-size: 0.78rem;
  font-weight: 800;
}

.attendance-score-remaining {
  margin-top: 0.35rem;
  color: var(--muted-text, #667085);
  font-weight: 700;
}

.attendance-stars {
  margin: 0.6rem 0 0.75rem;
  color: #e0a400;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.attendance-stars-five {
  letter-spacing: 0.16em;
}

.attendance-review-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.attendance-review-card > strong {
  font-size: 3rem;
  line-height: 1;
  color: #9a6700;
}

.attendance-review-card > span {
  margin: 0.35rem 0 0.75rem;
  font-weight: 800;
}

.attendance-roster-wrapper,
.attendance-events-wrapper,
.attendance-audit-wrapper {
  overflow-x: auto;
}

.attendance-roster-table,
.attendance-events-table,
.attendance-audit-table {
  width: 100%;
  border-collapse: collapse;
}

.attendance-roster-table tbody tr {
  cursor: pointer;
}

.attendance-roster-table tbody tr:hover,
.attendance-roster-selected {
  background: #f4f8fd;
}

.attendance-roster-name {
  font-weight: 800;
}

.attendance-roster-stars {
  color: #a97700;
  white-space: nowrap;
  font-size: 0.86rem;
}

.attendance-pending-cell {
  color: #9a6700;
  font-weight: 900;
}

.attendance-events-table {
  min-width: 1040px;
}

.attendance-audit-table {
  min-width: 1040px;
}

.attendance-audit-changed {
  white-space: nowrap;
}

.attendance-audit-decision {
  color: #344054;
  font-weight: 800;
  white-space: nowrap;
}

.attendance-audit-reason {
  min-width: 240px;
  max-width: 420px;
  white-space: normal;
}

.attendance-schedule-cell {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendance-status {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.attendance-status-counted {
  background: #fff2d8;
  color: #8a5200;
}

.attendance-status-pending {
  background: #fde8e8;
  color: #a12622;
}

.attendance-status-excused {
  background: #eaf6ec;
  color: #266b38;
}

.attendance-events-table td:nth-child(7) small {
  display: block;
  margin-top: 0.35rem;
  max-width: 230px;
  color: #667085;
  line-height: 1.35;
}

.attendance-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.attendance-review-actions button {
  padding: 0.42rem 0.62rem;
  font-size: 0.78rem;
}

.attendance-count-button {
  background: #fff1b8;
  color: #5f4600;
  border: 1px solid #e7cc65;
}

.attendance-history-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.attendance-history-controls small {
  color: #667085;
  line-height: 1.35;
}

.attendance-history-controls button {
  flex: 0 0 auto;
}

.attendance-classification-card {
  width: min(560px, calc(100vw - 2rem));
}

.attendance-classification-card textarea {
  width: 100%;
}

@media (max-width: 980px) {
  .attendance-control-grid,
  .attendance-score-grid {
    grid-template-columns: 1fr;
  }

  .attendance-settings-form {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Stage 8 - Shared iPad Time Clock Kiosk administrator controls */
.time-clock-kiosk-admin {
  margin-top: 20px;
}

.time-clock-kiosk-admin-header {
  align-items: flex-start;
  gap: 18px;
}

.button-link.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--cea-neutral);
  color: white;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button-link.secondary-button:hover {
  filter: brightness(1.05);
}

.time-clock-kiosk-settings-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr) minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 18px;
}

.time-clock-kiosk-settings-form > div > label,
.time-clock-kiosk-access-heading h3 {
  color: #17395f;
}

.time-clock-kiosk-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.time-clock-kiosk-toggle input {
  width: 18px;
  height: 18px;
}

.time-clock-kiosk-access-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.time-clock-kiosk-access-heading h3 {
  margin: 2px 0 4px;
  font-size: 1.25rem;
}

.time-clock-kiosk-access-heading p {
  margin: 0;
}

.time-clock-kiosk-employee-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.time-clock-kiosk-employee-tools label {
  display: grid;
  gap: 6px;
  width: min(420px, 100%);
  color: #17395f;
  font-weight: 700;
}

.time-clock-kiosk-employee-tools input {
  min-height: 42px;
}

.time-clock-kiosk-search-status {
  margin: 0 0 8px;
  color: var(--cea-muted, #64748b);
  font-size: .92rem;
  white-space: nowrap;
}

.time-clock-kiosk-table-wrapper {
  overflow-x: auto;
}

.time-clock-kiosk-table {
  min-width: 900px;
}

.time-clock-kiosk-pin-input {
  width: 96px;
  min-height: 38px;
  text-align: center;
  letter-spacing: .22em;
  font-variant-numeric: tabular-nums;
}

.time-clock-kiosk-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-button {
  min-height: 36px;
  padding: 0 12px;
}

.danger-outline-button {
  background: var(--cea-danger-light);
  color: var(--cea-danger);
  border: 1px solid #fecaca;
}

.danger-outline-button:hover:not(:disabled) {
  background: #fecaca;
  filter: none;
}

@media (max-width: 1120px) {
  .time-clock-kiosk-settings-form {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .time-clock-kiosk-employee-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .time-clock-kiosk-search-status {
    margin-bottom: 0;
    white-space: normal;
  }
}


/* Stage 9 - six-month performance review Workforce evidence */

.review-workforce-evidence-card,
.review-detail-workforce-card {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--cea-border);
  border-radius: 13px;
  background: #f8fafc;
}

.review-detail-workforce-card {
  margin-top: 2px;
  background: #ffffff;
}

.review-workforce-evidence-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.review-workforce-evidence-heading h3,
.review-workforce-evidence-heading p {
  margin-top: 0;
}

.review-workforce-evidence-heading h3 {
  margin-bottom: 6px;
  color: var(--cea-navy);
}

.review-workforce-evidence-heading p:last-child {
  margin-bottom: 0;
  color: var(--cea-muted);
}

.review-evidence-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.review-evidence-badge.frozen {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.review-workforce-evidence-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.review-workforce-evidence-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
}

.review-workforce-evidence-grid article > span {
  color: var(--cea-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.review-workforce-evidence-grid article > strong {
  color: var(--cea-navy);
  font-size: 20px;
}

.review-workforce-evidence-grid small {
  color: var(--cea-muted);
  line-height: 1.35;
}

.review-workforce-departments {
  display: grid;
  gap: 8px;
}

.review-workforce-departments > strong {
  color: var(--cea-navy);
  font-size: 13px;
}

.review-workforce-departments > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-department-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.review-period-helper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.review-period-helper span {
  color: var(--cea-muted);
  font-size: 12px;
}

.warning-text {
  color: #b45309 !important;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .review-workforce-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .review-workforce-evidence-heading,
  .review-period-helper {
    align-items: stretch;
    flex-direction: column;
  }

  .review-workforce-evidence-grid {
    grid-template-columns: 1fr;
  }
}

/* Stage 10 - review history and recurring review-cycle management */

.review-cycle-dashboard-panel {
  margin-bottom: 20px;
}

.review-cycle-dashboard-heading,
.review-cycle-card-heading,
.review-comparison-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.review-cycle-dashboard-heading h2,
.review-cycle-card-heading h3,
.review-comparison-heading h3 {
  margin: 3px 0 6px;
  color: var(--cea-navy);
}

.review-cycle-dashboard-heading p:last-child,
.review-cycle-card-heading p:last-child,
.review-comparison-heading p:last-child {
  margin-bottom: 0;
}

.review-cycle-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.review-cycle-summary-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--cea-border);
  border-radius: 11px;
  background: #f8fafc;
}

.review-cycle-summary-grid span {
  color: var(--cea-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.review-cycle-summary-grid strong {
  color: var(--cea-navy);
  font-size: 24px;
}

.review-cycle-search-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.review-cycle-search-row .search-field {
  width: min(430px, 100%);
}

.review-cycle-search-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--cea-navy);
  font-size: 13px;
  font-weight: 800;
}

.review-cycle-search-status {
  margin: 0 0 10px;
  color: var(--cea-muted);
  font-size: 13px;
}

.review-cycle-dashboard-table {
  min-width: 900px;
}

.review-cycle-dashboard-table td:first-child {
  display: grid;
  gap: 3px;
}

.review-cycle-dashboard-table td:first-child small,
.review-comparison-table td:first-child small {
  display: block;
  margin-top: 3px;
  color: var(--cea-muted);
}

.review-cycle-card {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  background: #f8fafc;
}

.review-cycle-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.review-cycle-form-grid label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.review-cycle-meta-row,
.review-cycle-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.review-cycle-meta-row {
  color: var(--cea-muted);
  font-size: 12px;
}

.review-cycle-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.review-cycle-status-badge.overdue {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.review-cycle-status-badge.due-soon {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.review-cycle-status-badge.open {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.review-cycle-status-badge.scheduled {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.review-cycle-status-badge.inactive {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.review-comparison-card {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--cea-border);
  border-radius: 13px;
  background: #ffffff;
}

.review-comparison-delta {
  min-width: 68px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  text-align: center;
}

.review-comparison-delta.positive {
  background: #ecfdf5;
  color: #047857;
}

.review-comparison-delta.negative {
  background: #fef2f2;
  color: #b91c1c;
}

.review-comparison-delta.neutral {
  background: #f8fafc;
  color: #475569;
}

.review-comparison-table {
  min-width: 720px;
}

@media (max-width: 1050px) {
  .review-cycle-summary-grid,
  .review-cycle-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .review-cycle-search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .review-cycle-search-row .search-field {
    width: 100%;
  }

  .review-cycle-search-status {
    margin-bottom: 0;
  }

  .review-cycle-dashboard-heading,
  .review-cycle-card-heading,
  .review-comparison-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .review-cycle-summary-grid,
  .review-cycle-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Stage 11 Workforce Dashboard & Manager Alerts */
.workforce-dashboard-panel {
  margin-top: 1.25rem;
}

.workforce-dashboard-header {
  align-items: center;
  gap: 1rem;
}

.workforce-action-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.workforce-action-card {
  border: 1px solid var(--border-color, #d9dee8);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff;
  min-width: 0;
}

.workforce-action-card span,
.workforce-action-card small {
  display: block;
}

.workforce-action-card span {
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workforce-action-card strong {
  display: block;
  margin: 0.2rem 0;
  font-size: 1.8rem;
  line-height: 1;
  color: #18243a;
}

.workforce-action-card small {
  color: #6b7280;
  font-size: 0.78rem;
}

.workforce-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  margin-top: 1rem;
}

.workforce-dashboard-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workforce-dashboard-column {
  border: 1px solid var(--border-color, #d9dee8);
  border-radius: 12px;
  padding: 1rem;
  background: #fbfcfe;
  min-width: 0;
}

.workforce-dashboard-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.workforce-dashboard-section-heading h3 {
  margin: 0.1rem 0 0;
}

.workforce-alert-list,
.workforce-compact-list {
  display: grid;
  gap: 0.65rem;
}

.workforce-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #d9dee8;
  border-left-width: 4px;
  border-radius: 10px;
  padding: 0.75rem;
  background: #fff;
}

.workforce-alert-critical { border-left-color: #b42318; }
.workforce-alert-warning { border-left-color: #d97706; }
.workforce-alert-notice { border-left-color: #2563eb; }
.workforce-alert-ready { border-left-color: #15803d; }

.workforce-alert-count {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #18243a;
  font-weight: 800;
}

.workforce-alert-copy,
.workforce-compact-item > div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.workforce-alert-copy span,
.workforce-compact-item span:not(.workforce-status-pill) {
  color: #667085;
  font-size: 0.86rem;
}

.workforce-compact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #e7eaf0;
  padding: 0.55rem 0;
}

.workforce-compact-item:last-child {
  border-bottom: 0;
}

.workforce-status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  background: #eef2f7;
  color: #475467;
}

.workforce-status-overdue,
.workforce-status-warning { background: #fff0ed; color: #b42318; }
.workforce-status-due_soon { background: #fff7e8; color: #b54708; }
.workforce-status-open { background: #eef4ff; color: #1849a9; }

.workforce-empty-state,
.workforce-dashboard-unavailable {
  padding: 0.85rem;
  border-radius: 10px;
  background: #f5f7fa;
  color: #667085;
  font-size: 0.9rem;
}

.workforce-alert-action {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .workforce-action-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .workforce-action-summary,
  .workforce-dashboard-grid,
  .workforce-dashboard-detail-grid {
    grid-template-columns: 1fr;
  }
}


/* Stage 12 - Workforce Notifications & Reminder Delivery */
.workforce-notification-shell {
  position: relative;
}

.workforce-notification-button {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #172a46;
  border: 1px solid #cfd8e5;
  box-shadow: 0 1px 2px rgba(15, 35, 60, 0.08);
}

.workforce-notification-button:hover {
  background: #f5f8fc;
}

.workforce-notification-icon {
  font-size: 20px;
  line-height: 1;
}

.workforce-notification-badge {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #c7392f;
  color: #fff;
  border: 2px solid #fff;
  font-size: 11px;
  font-weight: 800;
}

.workforce-notification-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 80;
  width: min(460px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 100px));
  overflow: auto;
  background: #fff;
  border: 1px solid #cfd8e5;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 35, 60, 0.22);
}

.workforce-notification-panel-header,
.workforce-notification-panel-footer {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workforce-notification-panel-header {
  border-bottom: 1px solid #e3e9f1;
}

.workforce-notification-panel-header h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.workforce-notification-panel-header p,
.workforce-notification-panel-footer {
  color: #64748b;
}

.workforce-notification-list {
  display: grid;
}

.workforce-notification-item {
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f6;
  display: grid;
  gap: 8px;
  background: #fff;
}

.workforce-notification-item.is-unseen {
  background: #f7faff;
  box-shadow: inset 4px 0 0 #2d63a8;
}

.workforce-notification-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.workforce-notification-item p {
  margin: 0;
  color: #526176;
  line-height: 1.45;
}

.workforce-notification-priority {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workforce-notification-priority-critical {
  background: #fde8e7;
  color: #9b221c;
}

.workforce-notification-priority-warning {
  background: #fff0dc;
  color: #8a4b00;
}

.workforce-notification-priority-ready {
  background: #e7f6ec;
  color: #26623a;
}

.workforce-notification-priority-notice {
  background: #e8f0fb;
  color: #294f81;
}

.workforce-notification-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.workforce-notification-snooze {
  min-width: 112px;
  width: auto;
  padding: 7px 28px 7px 9px;
}

.workforce-notification-empty {
  padding: 28px 18px;
  display: grid;
  gap: 4px;
  text-align: center;
  color: #64748b;
}

.workforce-notification-empty strong {
  color: #26384f;
}

.workforce-notification-panel-footer {
  border-top: 1px solid #e3e9f1;
  font-size: 12px;
}

@media (max-width: 720px) {
  .workforce-notification-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    width: auto;
    max-height: calc(100vh - 92px);
  }
}


/* Stage 13 - Workforce Settings & Policy Controls */
.workforce-settings-heading {
  align-items: flex-start;
}

.workforce-settings-form {
  display: grid;
  gap: 18px;
}

.workforce-settings-section {
  display: grid;
  gap: 18px;
}

.workforce-settings-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workforce-settings-section-heading h3 {
  margin: 2px 0 0;
  font-size: 1.2rem;
}

.workforce-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workforce-settings-grid-compact {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
}

.workforce-settings-grid label,
.workforce-settings-time-range label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.workforce-settings-grid input,
.workforce-settings-grid select,
.workforce-settings-time-range select {
  width: 100%;
}

.workforce-settings-inline-card {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px 22px;
  padding: 14px 16px;
  border: 1px solid var(--border-color, #dfe3e8);
  border-radius: 12px;
  background: rgba(246, 248, 250, 0.8);
}

.workforce-settings-time-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
  min-width: 330px;
}

.workforce-settings-check {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.workforce-settings-check input {
  width: auto !important;
  margin: 0;
}

.workforce-settings-check-field {
  align-self: center;
  min-height: 44px;
}

.workforce-settings-readonly {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(246, 248, 250, 0.9);
}

.workforce-settings-readonly span,
.workforce-settings-readonly small,
.workforce-settings-section .field-help {
  color: var(--muted-text, #67717e);
}

.workforce-settings-policy-apply {
  margin-top: -2px;
}

.workforce-settings-savebar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.12);
}

.workforce-settings-savebar > div:first-child {
  display: grid;
  gap: 4px;
}

.workforce-settings-savebar > div:first-child span {
  color: var(--muted-text, #67717e);
  font-size: 0.9rem;
}

.workforce-settings-save-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.workforce-settings-save-actions .time-clock-inline-message {
  margin: 0;
}

@media (max-width: 1100px) {
  .workforce-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .workforce-settings-grid,
  .workforce-settings-grid-compact,
  .workforce-settings-time-range {
    grid-template-columns: 1fr;
  }

  .workforce-settings-time-range {
    min-width: 100%;
  }

  .workforce-settings-savebar,
  .workforce-settings-save-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .workforce-settings-save-actions button {
    width: 100%;
  }
}

/* Stage 14 - Communications & Contact Preferences */
.communication-profile-card .profile-detail-list dd {
  overflow-wrap: anywhere;
}
.communication-preferences-modal {
  width: min(760px, calc(100vw - 32px));
}
.communication-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.communication-consent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--border-color, #d9dee7);
  border-radius: 10px;
  background: rgba(245, 247, 250, 0.75);
}

.communication-consent-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.communication-consent-column h4 {
  margin: 0 0 4px;
  text-align: left;
}

.communication-consent-column label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 9px;
  align-items: start;
  justify-items: start;
  width: 100%;
  margin: 0;
  text-align: left;
  font-weight: 600;
}

.communication-consent-column label input {
  margin: 3px 0 0;
  width: auto;
}

.communication-consent-column label span {
  display: block;
  width: auto;
  text-align: left;
}

.profile-helper-text {
  color: var(--muted-text, #667085);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 12px 0 0;
}

@media (max-width: 720px) {
  .communication-form-grid,
  .communication-consent-grid {
    grid-template-columns: 1fr;
  }
}

/* CEA Sling - Stage 15 */
.cea-sling-page-heading,
.cea-sling-week-toolbar,
.cea-sling-heading-actions,
.cea-sling-week-nav,
.cea-sling-week-meta,
.cea-sling-shift-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cea-sling-page-heading,
.cea-sling-week-toolbar {
  justify-content: space-between;
}

.cea-sling-heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cea-sling-week-toolbar {
  align-items: center;
}

.cea-sling-week-title {
  flex: 1;
  text-align: center;
}

.cea-sling-week-title h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.35rem;
}

.cea-sling-week-meta {
  justify-content: center;
  color: var(--muted-text, #667085);
  font-size: 0.85rem;
}

.cea-sling-publish-wrap {
  min-width: 155px;
  text-align: right;
}

.cea-sling-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cea-sling-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cea-sling-summary-card span {
  color: var(--muted-text, #667085);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cea-sling-summary-card strong {
  font-size: 1.8rem;
}

.cea-sling-warning-number {
  color: #9a6700;
}

.cea-sling-warnings-panel {
  border-left: 4px solid #e0a400;
}

.cea-sling-warning-list {
  display: grid;
  gap: 0.5rem;
}

.cea-sling-warning-item {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fff8e6;
  color: #7a5400;
  font-size: 0.9rem;
}

.cea-sling-grid-header {
  align-items: flex-end;
}

.cea-sling-grid-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cea-sling-color-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  padding: 0.25rem 0 0.8rem;
}

.cea-sling-filter-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.35rem 0 0.25rem;
  flex-wrap: wrap;
}

.cea-sling-employee-search {
  display: grid;
  gap: 0.3rem;
  min-width: min(360px, 100%);
  color: #344054;
  font-weight: 700;
  font-size: 0.78rem;
}

.cea-sling-employee-search input {
  width: min(360px, 100%);
  min-height: 38px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cfd7e3;
  border-radius: 9px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.cea-sling-employee-search input:focus {
  outline: 2px solid rgba(58, 88, 224, 0.18);
  border-color: #3a58e0;
}

.cea-sling-filter-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  color: var(--muted-text, #667085);
  font-size: 0.78rem;
}

.cea-sling-legend-help {
  margin: 0.4rem 0 0.2rem;
  color: var(--muted-text, #667085);
  font-size: 0.76rem;
}

.cea-sling-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #e3e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 0.72rem;
  font-weight: 700;
}

button.cea-sling-color-chip {
  cursor: pointer;
  font-family: inherit;
}

button.cea-sling-color-chip:hover {
  border-color: var(--legend-color, #98a2b3);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.cea-sling-color-chip.active {
  color: #172033;
  box-shadow: inset 0 0 0 1px var(--legend-color, #667085);
}

.cea-sling-color-chip.active::after {
  content: "✓";
  margin-left: 0.08rem;
  font-size: 0.68rem;
  font-weight: 900;
}

.cea-sling-color-dot {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 0.72rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.cea-sling-table-wrap {
  overflow: auto;
  max-height: min(68vh, 820px);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.cea-sling-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.cea-sling-table th,
.cea-sling-table td {
  padding: 0.45rem;
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  vertical-align: top;
  background: #fff;
}

.cea-sling-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f7f9fc;
  text-align: center;
  color: #344054;
}

.cea-sling-table thead th span,
.cea-sling-table thead th strong {
  display: block;
}

.cea-sling-table thead th span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cea-sling-sortable-head {
  padding: 0.25rem 0.35rem !important;
}

.cea-sling-sort-button {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 0.18rem 0.3rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cea-sling-sort-button:hover,
.cea-sling-sort-button:focus-visible {
  background: #e9eef7;
  outline: none;
}

.cea-sling-sort-button:focus-visible {
  box-shadow: inset 0 0 0 2px #2563eb;
}

.cea-sling-employee-sort-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  text-align: left;
}

.cea-sling-day-sort-button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 0.25rem;
  text-align: center;
}

.cea-sling-day-sort-button > span:first-child,
.cea-sling-day-sort-button > strong {
  grid-column: 1;
}

.cea-sling-day-sort-button > .cea-sling-sort-indicator {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.cea-sling-day-sort-button.is-active {
  background: #e7eefc;
  color: #1d4ed8;
}

.cea-sling-table thead th .cea-sling-sort-indicator {
  display: inline-block;
  flex: 0 0 auto;
  color: #52647f;
  font-size: 0.68rem;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}

.cea-sling-day-sort-button.is-active .cea-sling-sort-indicator {
  color: #1d4ed8;
}

.cea-sling-table .cea-sling-employee-column {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 180px;
  min-width: 180px;
  background: #fbfcfe;
  text-align: left;
}

.cea-sling-table thead .cea-sling-employee-column {
  z-index: 6;
  background: #f2f5fa;
}

.cea-sling-employee-column strong,
.cea-sling-employee-column small {
  display: block;
}

.cea-sling-employee-column small {
  margin-top: 0.2rem;
  color: var(--muted-text, #667085);
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.25;
}

.cea-sling-open-row td,
.cea-sling-open-row .cea-sling-employee-column {
  background: #fff0a8;
}

.cea-sling-open-row .cea-sling-employee-column {
  background: #ffe27a;
}

.cea-sling-unmatched-row td,
.cea-sling-unmatched-row .cea-sling-employee-column {
  background: #fff5f5;
}

.cea-sling-empty-day {
  min-height: 62px;
  background: #fcfdff !important;
}

.cea-sling-shift-card {
  --position-color: #70A8F0;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(23, 32, 51, 0.16);
  border-left: 5px solid var(--position-color);
  border-radius: 8px;
  background: #f8faff;
  color: #172033;
  text-align: left;
  font: inherit;
}

button.cea-sling-shift-card {
  cursor: pointer;
}

button.cea-sling-shift-card:hover {
  border-color: #4259d6;
  box-shadow: 0 1px 4px rgba(35, 52, 120, 0.14);
}

.cea-sling-shift-card.open {
  border-style: dashed;
  border-left-style: solid;
  box-shadow: inset 0 0 0 2px rgba(201, 153, 31, 0.42);
}

.cea-sling-shift-card.has-overlap {
  outline: 2px solid #d97706;
  outline-offset: -2px;
}

.cea-sling-shift-card.needs-match {
  background: #fff0f0;
  border-color: #e3a4a4;
}

.cea-sling-shift-card strong {
  font-size: 0.78rem;
}

.cea-sling-shift-card span {
  font-size: 0.78rem;
  font-weight: 750;
}

.cea-sling-shift-card small {
  color: var(--muted-text, #667085);
  font-size: 0.7rem;
  line-height: 1.2;
}

.cea-sling-filter-empty-row td {
  padding: 1.25rem;
  color: var(--muted-text, #667085);
  text-align: center;
  font-weight: 700;
  background: #fbfcfe;
}

.cea-sling-import-modal-card {
  width: min(1040px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.cea-sling-shift-modal-card {
  width: min(760px, calc(100vw - 2rem));
}

.cea-sling-import-intro {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(200px, 0.7fr) auto;
  gap: 0.85rem;
  align-items: end;
}

.cea-sling-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.cea-sling-import-summary > div {
  padding: 0.7rem;
  border: 1px solid #e3e8f0;
  border-radius: 9px;
  background: #f8faff;
}

.cea-sling-import-summary span,
.cea-sling-import-summary strong {
  display: block;
}

.cea-sling-import-summary span {
  color: var(--muted-text, #667085);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cea-sling-mapping-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.cea-sling-mapping-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.cea-sling-mapping-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(260px, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f2f5;
}

.cea-sling-mapping-row strong,
.cea-sling-mapping-row small {
  display: block;
}

.cea-sling-mapping-row small {
  margin-top: 0.15rem;
  color: var(--muted-text, #667085);
}

.modal-action-spacer {
  flex: 1;
}

.cea-sling-colors-modal-card {
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.cea-sling-color-rows {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.cea-sling-color-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eef1f5;
}

.cea-sling-color-row-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-weight: 750;
}

.cea-sling-color-row input[type="color"] {
  width: 52px;
  height: 34px;
  padding: 2px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .cea-sling-page-heading,
  .cea-sling-week-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .cea-sling-heading-actions,
  .cea-sling-week-nav,
  .cea-sling-grid-tools {
    justify-content: flex-start;
  }

  .cea-sling-week-title {
    text-align: left;
  }

  .cea-sling-week-meta {
    justify-content: flex-start;
  }

  .cea-sling-publish-wrap {
    text-align: left;
  }

  .cea-sling-summary-grid,
  .cea-sling-import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cea-sling-import-intro,
  .cea-sling-mapping-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cea-sling-summary-grid,
  .cea-sling-import-summary {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .cea-sling-week-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CEA Sling Stage 16 - Sling employee import */
.employee-heading-actions,
.sling-employee-import-intro {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.sling-employee-import-modal-card {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.sling-employee-import-intro {
  margin-bottom: 8px;
}

.sling-employee-import-intro label {
  flex: 1 1 520px;
}

.sling-employee-import-summary {
  grid-template-columns: repeat(6, minmax(110px, 1fr));
}

.sling-employee-import-rows {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.sling-employee-import-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border-color, #dbe3ee);
  border-radius: 12px;
  background: #fff;
}

.sling-employee-import-row > div {
  display: grid;
  gap: 4px;
}

.sling-employee-import-row small {
  color: var(--muted-text, #667085);
  line-height: 1.35;
}

.sling-employee-import-row select {
  width: 100%;
}

.sling-employee-match-label {
  font-weight: 700;
}

.cea-admin-alias-row {
  background: #fff9e8;
  border-color: #e9c96a;
}

.sling-employee-import-notes {
  margin: 10px 0 0 20px;
  display: grid;
  gap: 7px;
  color: var(--muted-text, #667085);
}

@media (max-width: 900px) {
  .sling-employee-import-summary {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .sling-employee-import-row {
    grid-template-columns: 1fr;
  }

  .employee-heading-actions {
    width: 100%;
  }
}

/* CEA Sling Stage 18 - warning review and safer publishing */
.cea-sling-warning-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.cea-sling-warning-item.reviewed {
  background: #eef8ef;
  color: #2e6b3f;
  border: 1px solid #cfe6d3;
}

.cea-sling-warning-content {
  display: grid;
  gap: 0.25rem;
  min-width: 260px;
  flex: 1 1 520px;
}

.cea-sling-warning-status {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.cea-sling-warning-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cea-sling-warning-actions button {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.82rem;
}

.button-small-success {
  border: 1px solid #2f7d47;
  background: #2f7d47;
  color: #fff;
}

.button-small-success:hover {
  background: #276a3c;
}


@media (max-width: 760px) {
  .cea-sling-filter-toolbar,
  .cea-sling-filter-status {
    align-items: stretch;
    width: 100%;
  }

  .cea-sling-employee-search,
  .cea-sling-employee-search input {
    width: 100%;
    min-width: 0;
  }

  .cea-sling-filter-status {
    justify-content: space-between;
  }
}

/* CEA Workforce Stage 19 - Employee My Schedule */
.my-schedule-page-heading,
.my-schedule-heading-actions,
.my-schedule-week-toolbar,
.my-schedule-week-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.my-schedule-page-heading,
.my-schedule-week-toolbar {
  justify-content: space-between;
}

.my-schedule-week-title {
  text-align: center;
}

.my-schedule-week-title h3 {
  margin: 2px 0 8px;
  font-size: 1.45rem;
}

.my-schedule-summary-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, 0.8fr));
  gap: 14px;
  margin: 14px 0;
}

.my-schedule-summary-card {
  display: grid;
  gap: 6px;
}

.my-schedule-summary-card > span {
  color: var(--muted-text, #667085);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.my-schedule-summary-card > strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

.my-schedule-summary-card > small {
  color: var(--muted-text, #667085);
}

.my-schedule-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.my-schedule-day-card {
  min-width: 180px;
  padding: 14px;
  border-top: 4px solid transparent;
}

.my-schedule-day-card.is-today {
  border-top-color: #3159e8;
  box-shadow: 0 0 0 1px rgba(49, 89, 232, 0.15);
}

.my-schedule-day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color, #dbe3ee);
}

.my-schedule-day-header h3 {
  margin: 0;
  font-size: 1rem;
}

.my-schedule-day-header span:not(.status-badge) {
  display: block;
  margin-top: 2px;
  color: var(--muted-text, #667085);
  font-size: 0.82rem;
}

.my-schedule-shift-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.my-schedule-shift-card {
  display: grid;
  gap: 4px;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 5px solid #70a8f0;
  border-radius: 10px;
}

.my-schedule-shift-card strong {
  font-size: 0.84rem;
}

.my-schedule-position {
  font-weight: 800;
  line-height: 1.2;
}

.my-schedule-shift-card small {
  color: #5c667a;
  line-height: 1.25;
}

.my-schedule-notes {
  padding-top: 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-style: italic;
}

.my-schedule-day-empty {
  margin-top: 12px;
  padding: 18px 8px;
  color: var(--muted-text, #667085);
  text-align: center;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .my-schedule-page-heading,
  .my-schedule-week-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .my-schedule-week-title {
    text-align: left;
  }

  .my-schedule-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .my-schedule-summary-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .my-schedule-days {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .my-schedule-day-card {
    min-width: 0;
  }

  .my-schedule-week-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Stage 20 - compact dashboard overview and employee login management */
.dashboard-overview-row {
  display: grid;
  grid-template-columns: minmax(350px, 1.15fr) minmax(0, 2.85fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}

.dashboard-page-heading {
  align-items: center;
  margin-bottom: 0;
  min-width: 0;
}

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

.dashboard-summary-card {
  min-height: 112px;
  align-content: center;
  padding: 14px 16px;
}

.dashboard-summary-card strong {
  font-size: 24px;
}

.dashboard-summary-card .summary-label {
  font-size: 12px;
}

.dashboard-summary-card .summary-detail {
  font-size: 11px;
  line-height: 1.35;
}

.dashboard-employees-card {
  border-color: #cbe79c;
  background: #efffd2;
}

.login-access-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.login-access-actions.hidden {
  display: none;
}

.employee-login-access-modal-card {
  width: min(560px, 100%);
}

.employee-login-access-modal-card form {
  display: grid;
  gap: 16px;
}

.employee-login-access-modal-card label {
  display: grid;
  gap: 7px;
  color: var(--cea-navy);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .dashboard-overview-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-summary-card {
    min-height: 104px;
  }

  .login-access-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* CEA Time Clock workspace shell - compact manager/employee views */
#timeClockView > .time-clock-workspace-heading {
  min-height: 0;
  margin-bottom: 10px;
  padding: 0;
}

#timeClockView > .time-clock-workspace-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
}

.time-clock-workspace-tabs {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 46px;
  margin: 0 0 12px;
  overflow-x: auto;
  border: 1px solid var(--cea-border);
  border-radius: 10px;
  background: #fff;
}

.time-clock-workspace-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 132px;
  min-height: 44px;
  margin: 0;
  padding: 11px 18px 10px;
  border: 0;
  border-right: 1px solid var(--cea-border);
  border-radius: 0;
  background: transparent;
  color: #596980;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.time-clock-workspace-tab:last-child {
  border-right: 0;
}

.time-clock-workspace-tab:hover,
.time-clock-workspace-tab:focus-visible {
  background: #f8fafc;
  color: var(--cea-blue-dark);
  outline: none;
}

.time-clock-workspace-tab.active {
  background: #fff;
  color: #1748d4;
}

.time-clock-workspace-tab.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #456dff;
  content: "";
}

.time-clock-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff0d3;
  color: #a35b00;
  font-size: 11px;
  font-weight: 900;
}

.time-clock-workspace-panel {
  min-width: 0;
}

.time-clock-compact-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 1px solid var(--cea-border);
  border-radius: 9px;
  background: #fff;
  color: #5c6b80;
  font-size: 12px;
}

.time-clock-compact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #cbd8ef;
  border-radius: 999px;
  background: #f7faff;
  color: #2655a4;
  font-size: 11px;
  font-weight: 800;
}

.time-clock-compact-pill.is-warning {
  border-color: #e5c36a;
  background: #fff6dc;
  color: #8c5b00;
}

.time-clock-team-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.8fr);
  gap: 10px;
  align-items: start;
}

.time-clock-team-list-panel,
.time-clock-team-detail,
.time-clock-my-section {
  padding: 12px;
  border-radius: 10px;
}

.time-clock-compact-tools {
  margin-bottom: 8px;
}

.time-clock-compact-tools input {
  width: 100%;
  min-height: 38px;
}

.time-clock-team-employee-list {
  display: grid;
  gap: 3px;
  max-height: 620px;
  overflow-y: auto;
}

.time-clock-team-employee {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--cea-navy);
  text-align: left;
}

.time-clock-team-employee:hover,
.time-clock-team-employee:focus-visible {
  border-color: #cbd8ef;
  background: #f6f9fd;
  outline: none;
}

.time-clock-team-employee.active {
  border-color: #9db9ee;
  background: #edf4ff;
}

.time-clock-team-employee strong {
  font-size: 13px;
}

.time-clock-team-employee span {
  color: var(--cea-muted);
  font-size: 11px;
}

.time-clock-team-detail-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--cea-border);
}

.time-clock-team-detail-heading strong {
  color: var(--cea-navy);
  font-size: 16px;
}

.time-clock-team-detail-heading span {
  color: var(--cea-muted);
  font-size: 12px;
}

.time-clock-team-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.time-clock-team-metrics > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--cea-border);
  border-radius: 8px;
  background: #fbfdff;
}

.time-clock-team-metrics span {
  color: var(--cea-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.time-clock-team-metrics strong {
  color: var(--cea-navy);
  font-size: 15px;
}

.time-clock-team-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

#timeClockMyPanel .time-clock-schedule-panel {
  margin-bottom: 10px;
}

#timeClockMyPanel .time-clock-my-detail-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
  gap: 10px;
}

#timeClockMyPanel .time-clock-minimal-panel-header {
  min-height: 0;
  margin-bottom: 0;
}

#timeClockMyPanel .time-clock-minimal-panel-header h2 {
  margin: 0;
  font-size: 18px;
}

#timeClockMyPanel .time-clock-minimal-panel-header p {
  margin: 2px 0 0;
  color: var(--cea-muted);
  font-size: 12px;
}

#timeClockMyPanel .time-clock-schedule-list,
#timeClockMyPanel .time-clock-entry-table-wrapper,
#timeClockMyPanel .time-clock-request-list {
  margin-top: 8px;
}

#timeClockMyPanel #timeClockAdjustmentButton {
  min-height: 34px;
  margin: 0;
  padding: 7px 10px;
}

.time-clock-manager-request-table-wrapper {
  max-height: 650px;
  overflow: auto;
  border: 1px solid var(--cea-border);
  border-radius: 10px;
}

.time-clock-manager-request-table {
  min-width: 960px;
}

.time-clock-manager-request-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f9fc;
}

/* Settings > Time Clock is the one canonical home for policy, kiosk and PIN controls. */
body.stage38f1-time-clock-settings-active #workforceSettingsView > .workforce-settings-heading {
  min-height: 0;
  margin-bottom: 10px;
  padding: 0;
}

body.stage38f1-time-clock-settings-active #workforceSettingsView > .workforce-settings-heading .eyebrow,
body.stage38f1-time-clock-settings-active #workforceSettingsView > .workforce-settings-heading p:not(.eyebrow),
body.stage38f1-time-clock-settings-active #workforceSettingsRefreshButton {
  display: none !important;
}

body.stage38f1-time-clock-settings-active #workforceSettingsView > .workforce-settings-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
}

body.stage38f1-time-clock-settings-active #workforceSettingsForm > .workforce-settings-section:not(#workforceSettingsTimeClockSection):not(#workforceSettingsKioskSection),
body.stage38f1-time-clock-settings-active #workforceSettingsForm > .workforce-settings-scheduling-section,
body.stage38f1-time-clock-settings-active #workforceSettingsForm > .workforce-settings-notification-section {
  display: none !important;
}

body.stage38f1-time-clock-settings-active #workforceSettingsTimeClockSection,
body.stage38f1-time-clock-settings-active #workforceSettingsKioskSection,
body.stage38f1-time-clock-settings-active #timeClockKioskAdminPanel,
body.stage38f1-time-clock-settings-active #workforceSettingsForm > .workforce-settings-savebar {
  display: block !important;
}

body.stage38f1-time-clock-settings-active #timeClockKioskAdminPanel {
  margin-top: 12px;
  border-top: 0;
}

body.stage38f1-time-clock-settings-active #timeClockKioskAdminPanel > .time-clock-kiosk-admin-header {
  margin-bottom: 8px;
}

body.stage38f1-time-clock-settings-active #timeClockKioskAdminPanel > .time-clock-kiosk-settings-form,
body.stage38f1-time-clock-settings-active #timeClockKioskSettingsMessage {
  display: none !important;
}

body.stage38f1-time-clock-settings-active #timeClockKioskAdminPanel .time-clock-kiosk-access-heading {
  margin-top: 0;
}

@media (max-width: 980px) {
  .time-clock-workspace-tabs {
    justify-content: flex-start;
  }

  .time-clock-workspace-tab {
    min-width: 112px;
    padding-inline: 14px;
  }

  .time-clock-team-layout,
  #timeClockMyPanel .time-clock-my-detail-grid {
    grid-template-columns: 1fr;
  }

  .time-clock-team-employee-list {
    max-height: 300px;
  }

  .time-clock-team-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .time-clock-workspace-tab {
    min-width: 104px;
    padding-inline: 12px;
  }

  .time-clock-compact-status-row {
    flex-wrap: wrap;
  }

  .time-clock-team-metrics {
    grid-template-columns: 1fr;
  }
}

body.stage38f1-time-clock-settings-active #timeClockSettingsWorkspaceTabs {
  display: flex !important;
}

.time-clock-workspace-tabs.time-clock-employee-tabs {
  display: none;
}

/* CEA Team Time detailed review - stays inside Time Clock workspace */
.time-clock-team-review-heading > div {
  display: grid;
  gap: 2px;
}

.time-clock-team-review-heading > div span {
  color: var(--cea-muted);
  font-size: 12px;
}

.time-clock-team-review-section {
  margin-top: 12px;
  border: 1px solid var(--cea-border);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.time-clock-team-review-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--cea-border);
  background: #f8fbff;
}

.time-clock-team-review-section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.time-clock-team-review-section-heading strong {
  color: var(--cea-navy);
  font-size: 13px;
}

.time-clock-team-review-section-heading span {
  color: var(--cea-muted);
  font-size: 11px;
}

.time-clock-team-review-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.time-clock-team-review-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.time-clock-team-review-table th,
.time-clock-team-review-table td {
  padding: 8px 9px;
  border-bottom: 1px solid #e5ebf4;
  color: var(--cea-navy);
  font-size: 12px;
  text-align: left;
  vertical-align: middle;
}

.time-clock-team-review-table th {
  background: #fbfdff;
  color: var(--cea-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .25px;
  text-transform: uppercase;
  white-space: nowrap;
}

.time-clock-team-review-table tbody tr:last-child td {
  border-bottom: 0;
}

.time-clock-review-negative {
  color: #a05a00 !important;
  font-weight: 800;
}

.time-clock-review-positive {
  color: #167344 !important;
  font-weight: 800;
}

@media (max-width: 900px) {
  .time-clock-team-review-heading {
    align-items: center;
  }

  .time-clock-team-review-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}


/* CEA Time Clock operational tabs - compact parity for Live, Exceptions, Requests */
.time-clock-compact-pill.is-danger {
  border-color: #efb4b0;
  background: #fff0ef;
  color: #a52f29;
}

#timeClockManagerRequestsPanel .time-clock-compact-status-row {
  margin-bottom: 8px;
}

#timeClockManagerRequestsPanel .time-clock-manager-request-table-wrapper {
  border-radius: 9px;
}

.time-clock-request-detail-row > td {
  padding: 0 !important;
  background: #f8fbff;
}

.time-clock-request-detail-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--cea-border);
  border-bottom: 1px solid var(--cea-border);
  background: #f8fbff;
}

.time-clock-request-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.time-clock-request-detail-grid > div,
.time-clock-request-detail-reason {
  display: grid;
  gap: 3px;
}

.time-clock-request-detail-grid span,
.time-clock-request-detail-reason span {
  color: var(--cea-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .25px;
  text-transform: uppercase;
}

.time-clock-request-detail-grid strong,
.time-clock-request-detail-reason strong {
  color: var(--cea-navy);
  font-size: 12px;
}

.time-clock-request-detail-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .time-clock-request-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* CEA module tab-bar titles: titles are anchored independently so tabs stay mathematically centered. */
#timeClockView > .time-clock-workspace-heading,
#schedulesView > .cea-sling-page-heading {
  display: none !important;
}

#timeClockWorkspaceTabs,
#schedulesView #stage34ScheduleTabs {
  position: relative;
  justify-content: center !important;
}

#timeClockWorkspaceTabs::before,
#schedulesView #stage34ScheduleTabs::before {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #172033;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  pointer-events: none;
  white-space: nowrap;
}

#timeClockWorkspaceTabs::before {
  content: "CEA Time Clock";
}

#schedulesView #stage34ScheduleTabs::before {
  content: "CEA Shifts";
}

@media (max-width: 1180px) {
  #timeClockWorkspaceTabs::before,
  #schedulesView #stage34ScheduleTabs::before {
    display: none;
  }
}


/* CEA Time Clock Settings route parity: title lives inside the fixed tab bar. */
body.stage38f1-time-clock-settings-active #workforceSettingsView > .workforce-settings-heading {
  display: none !important;
}

body.stage38f1-time-clock-settings-active #timeClockSettingsWorkspaceTabs {
  position: relative;
  justify-content: center !important;
  margin-top: 0;
}

body.stage38f1-time-clock-settings-active #timeClockSettingsWorkspaceTabs::before {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #172033;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  pointer-events: none;
  white-space: nowrap;
  content: "Time Clock Settings";
}

@media (max-width: 1180px) {
  body.stage38f1-time-clock-settings-active #timeClockSettingsWorkspaceTabs::before {
    display: none;
  }
}


/* CEA Workforce - Time Requests compact workspace standard */
#timeClockManagerRequestsPanel .time-clock-manager-requests-workspace {
  position: relative;
  display: grid;
  grid-template-columns: 216px minmax(0,1fr);
  width: 100%;
  min-height: calc(100vh - 178px);
  overflow: hidden;
  border: 1px solid #d8e1ed;
  border-radius: 10px;
  background: #f7f9fc;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-filter-rail {
  position: relative; z-index: 8; display: flex; min-width: 0; min-height: 0; flex-direction: column;
  overflow: visible; border-right: 1px solid #41464c; background: #25282b; color: #fff;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-search { position: relative; display: block; padding: 10px; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-search svg {
  position: absolute; top: 21px; left: 22px; width: 15px; height: 15px; fill: none; stroke: #7f8b99;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-search input {
  width: 100%; min-height: 38px; padding: 8px 12px 8px 34px; border: 1px solid #4b5158;
  border-radius: 6px; background: #1f2225; color: #fff; font-size: .78rem;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-search input::placeholder { color: #aeb7c2; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-filter-menu { display: grid; border-top: 1px solid #40454a; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-filter-menu > button {
  position: relative; display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 12px; border: 0; border-bottom: 1px solid #40454a; border-radius: 0;
  background: transparent; color: #fff; font-size: .78rem; font-weight: 800; text-align: left;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-filter-menu > button:hover,
#timeClockManagerRequestsPanel .time-clock-manager-requests-filter-menu > button.is-open { background: #31353a; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-filter-menu > button.has-filter::before {
  content: ""; position: absolute; right: 27px; width: 6px; height: 6px; border-radius: 50%; background: #5d91ff;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-filter-menu > button i { color: #aeb7c2; font-style: normal; font-size: 1rem; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-filter-footer { margin-top: auto; padding: 10px; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-filter-footer button {
  width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid #4a5057; border-radius: 6px;
  background: #303438; color: #fff; font-size: .72rem; font-weight: 700;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-filter-footer button:disabled { color: #7f8892; cursor: default; }

#timeClockManagerRequestsPanel .time-clock-manager-requests-main { min-width: 0; min-height: 0; overflow: hidden; background: #fff; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-summary-row { border-bottom: 1px solid #e0e5ef; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-summary-link {
  appearance: none; font: inherit; cursor: pointer; box-shadow: none;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-summary-link:hover,
#timeClockManagerRequestsPanel .time-clock-manager-requests-summary-link:focus-visible {
  background: #eef4fb; outline: 2px solid rgba(59,130,246,.22); outline-offset: 1px;
}
#timeClockManagerRequestsPanel .cea-time-active-filter-bar { margin-top: 7px; margin-bottom: 7px; }
#timeClockManagerRequestsPanel .time-clock-manager-request-table-wrapper {
  max-height: calc(100vh - 245px); overflow: auto; border: 0; border-radius: 0; background: #fff;
}
#timeClockManagerRequestsPanel .time-clock-manager-request-table { min-width: 970px; table-layout: fixed; }
#timeClockManagerRequestsPanel .time-clock-manager-request-table thead th {
  position: sticky; top: 0; z-index: 2; cursor: default; user-select: none;
}
#timeClockManagerRequestsPanel .time-clock-manager-request-table thead th[data-time-request-sort] { cursor: pointer; }
#timeClockManagerRequestsPanel .time-clock-manager-request-table th:first-child { width: 185px; }
#timeClockManagerRequestsPanel .time-clock-manager-request-table th:nth-child(2) { width: 105px; }
#timeClockManagerRequestsPanel .time-clock-manager-request-table th:nth-child(3) { width: 135px; }
#timeClockManagerRequestsPanel .time-clock-manager-request-table th:nth-child(4) { width: 190px; }
#timeClockManagerRequestsPanel .time-clock-manager-request-table th:nth-child(5) { width: 150px; }
#timeClockManagerRequestsPanel .time-clock-manager-request-table th:nth-child(6) { width: auto; }
#timeClockManagerRequestsPanel .time-clock-manager-request-row { cursor: pointer; outline: none; }
#timeClockManagerRequestsPanel .time-clock-manager-request-row td {
  padding: 11px 12px; border-bottom: 1px solid #e4eaf2; background: #fff; color: #1f3552; font-size: 12px; vertical-align: middle;
}
#timeClockManagerRequestsPanel .time-clock-manager-request-row:hover td,
#timeClockManagerRequestsPanel .time-clock-manager-request-row:focus-visible td { background: #f5f8fd; }
#timeClockManagerRequestsPanel .time-clock-manager-request-row.active td { background: #edf4ff; }
#timeClockManagerRequestsPanel .time-clock-manager-request-employee strong { display: block; font-size: 12.5px; font-weight: 900; }
#timeClockManagerRequestsPanel .time-clock-manager-request-employee small { display: block; margin-top: 2px; color: #748095; font-size: 10.5px; font-weight: 600; }
#timeClockManagerRequestsPanel .time-clock-manager-request-type { font-weight: 800; }
#timeClockManagerRequestsPanel .time-clock-manager-request-reason-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#timeClockManagerRequestsPanel .time-clock-manager-requests-flyout {
  position: absolute; z-index: 20; top: 0; bottom: 0; left: 216px; width: min(360px,32vw); min-width: 290px;
  overflow: auto; border-right: 1px solid #d7dee8; background: #fff; color: #172033; box-shadow: 16px 0 30px rgba(15,23,42,.16);
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-flyout[hidden] { display: none !important; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-flyout-head {
  position: sticky; top: 0; z-index: 2; display: flex; min-height: 48px; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 12px; border-bottom: 1px solid #dce3ec; background: #fff;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-flyout-head h4 { margin: 0; color: #334155; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-flyout-head button { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #64748b; font-size: 1.2rem; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-flyout-body { display: grid; gap: 2px; padding: 8px; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-flyout-search {
  width: 100%; min-height: 38px; margin-bottom: 6px; padding: 8px 10px; border: 1px solid #cfd8e5; border-radius: 6px;
  background: #fff; color: #172033; font-size: .78rem;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-flyout-options { display: grid; gap: 2px; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-option {
  display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #172033;
  font-size: .8rem; font-weight: 700; text-align: left;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-option:hover { background: #f1f5f9; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-option.is-selected { border-color: #a9c0ff; background: #edf3ff; color: #1d4ed8; }

#timeClockManagerRequestsPanel .time-clock-manager-requests-detail {
  position: fixed; z-index: 85; top: 80px; right: 0; bottom: 0; width: min(680px,54vw); max-width: none;
  margin: 0; padding: 14px; overflow-y: auto; border: 0; border-left: 1px solid #d5dee9; border-radius: 0;
  background: #fff; box-shadow: -18px 0 38px rgba(15,23,42,.18); transform: translateX(102%);
  transition: transform .16s ease-out; pointer-events: none;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail.is-open { transform: translateX(0); pointer-events: auto; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail-close-row {
  position: sticky; z-index: 20; top: -14px; display: flex; justify-content: flex-end; margin: -14px -14px 8px;
  padding: 8px 10px; border-bottom: 1px solid #edf1f5; background: #fff;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail-close-row button {
  display: inline-grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 8px;
  background: #475569; color: #fff; font-size: 1.45rem; font-weight: 800; line-height: 1;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail-heading { padding: 4px 4px 12px; border-bottom: 1px solid #edf1f5; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail-heading h2 { margin: 2px 0; color: #1f3552; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail-heading p:not(.eyebrow) { margin: 0 0 8px; color: #64748b; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail-metrics {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail-metrics > div {
  min-height: 92px; padding: 12px; border: 1px solid #e3e9f1; border-radius: 8px; background: #fbfcfe;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail-metrics span,
#timeClockManagerRequestsPanel .time-clock-manager-requests-reason span { display: block; color: #748095; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail-metrics strong { display: block; margin-top: 7px; color: #1f3552; font-size: 1rem; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-reason {
  display: grid; gap: 7px; margin-top: 12px; padding: 11px 12px; border: 1px solid #e3e9f1; border-radius: 8px; background: #fbfcfe;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-reason strong { color: #1f3552; font-size: .86rem; line-height: 1.45; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-resolution {
  display: grid; gap: 5px; margin-top: 12px; padding: 11px 12px; border: 1px solid #dfe6ef; border-radius: 8px;
}
#timeClockManagerRequestsPanel .time-clock-manager-requests-resolution.is-good { border-color: #b9ddc1; background: #f0faf2; color: #2f7138; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-resolution.is-warning { border-color: #f0bf73; background: #fff8e8; color: #8d5600; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-resolution span { font-size: .78rem; line-height: 1.4; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-resolution small { font-size: .72rem; line-height: 1.35; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-resolution.is-actionable { cursor: pointer; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-resolution.is-actionable:hover { border-color: #dfa64d; background: #fff4d9; box-shadow: 0 2px 8px rgba(141,86,0,.10); }
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
#timeClockManagerRequestsPanel .time-clock-manager-requests-detail-empty { padding: 20px 8px; }

@media (max-width: 1100px) {
  #timeClockManagerRequestsPanel .time-clock-manager-requests-workspace { display: block; min-height: auto; }
  #timeClockManagerRequestsPanel .time-clock-manager-requests-filter-rail { display: block; border-right: 0; }
  #timeClockManagerRequestsPanel .time-clock-manager-requests-filter-menu { display: flex; }
  #timeClockManagerRequestsPanel .time-clock-manager-requests-filter-menu > button { flex: 1; border-right: 1px solid #40454a; }
  #timeClockManagerRequestsPanel .time-clock-manager-requests-filter-footer { display: none; }
  #timeClockManagerRequestsPanel .time-clock-manager-requests-flyout { top: 92px; left: 0; bottom: auto; width: min(100%,420px); min-width: 0; max-height: 420px; }
  #timeClockManagerRequestsPanel .time-clock-manager-requests-detail { top: 70px; width: min(100%,680px); }
}
@media (max-width: 620px) {
  #timeClockManagerRequestsPanel .time-clock-manager-requests-detail-metrics { grid-template-columns: 1fr; }
}

/* CEA My Time workspace standard - 2026-09-06 */
#timeClockMyPanel .time-clock-my-overview {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; padding: 8px 10px; border: 1px solid #dfe6ef; border-radius: 8px; background: #fff;
}
#timeClockMyPanel .time-clock-my-identity { display: grid; min-width: 180px; gap: 2px; }
#timeClockMyPanel .time-clock-my-identity strong { color: #1f3552; font-size: .9rem; font-weight: 900; }
#timeClockMyPanel .time-clock-my-identity span { color: #748095; font-size: .7rem; font-weight: 700; }
#timeClockMyPanel .time-clock-my-summary-row { flex: 1; justify-content: flex-end; min-width: 0; }
#timeClockMyPanel .time-clock-my-summary-row .time-clock-compact-pill { min-height: 28px; padding: 5px 10px; font-size: 11px; font-weight: 800; }
#timeClockMyPanel .time-clock-my-pill-good { border-color: #b9ddc1; background: #eef9f0; color: #2f7138; }
#timeClockMyPanel .time-clock-my-pill-warning { border-color: #efd08f; background: #fff6dc; color: #8d6200; }
#timeClockMyPanel .time-clock-my-section { border-radius: 8px; }
#timeClockMyPanel .time-clock-minimal-panel-header h2 { font-size: 15px; }
#timeClockMyPanel .time-clock-my-entry-row, #timeClockMyPanel .time-clock-my-request-item { cursor: pointer; }
#timeClockMyPanel .time-clock-my-entry-row:hover td, #timeClockMyPanel .time-clock-my-entry-row:focus td { background: #f6f9fd; }
#timeClockMyPanel .time-clock-my-entry-row:focus, #timeClockMyPanel .time-clock-my-request-item:focus { outline: 2px solid #9db9f6; outline-offset: -2px; }
#timeClockMyPanel .time-clock-my-request-item:hover, #timeClockMyPanel .time-clock-my-request-item:focus { border-color: #b8c8df; background: #f8fbff; }
#timeClockMyPanel .time-clock-my-detail {
  position: fixed; z-index: 85; top: 80px; right: 0; bottom: 0; width: min(580px, 48vw); margin: 0; padding: 14px; overflow-y: auto;
  border-left: 1px solid #d5dee9; background: #fff; box-shadow: -18px 0 38px rgba(15,23,42,.18); transform: translateX(102%); transition: transform .16s ease-out; pointer-events: none;
}
#timeClockMyPanel .time-clock-my-detail.is-open { transform: translateX(0); pointer-events: auto; }
#timeClockMyPanel .time-clock-my-detail-close-row { position: sticky; z-index: 20; top: -14px; display: flex; justify-content: flex-end; margin: -14px -14px 8px; padding: 8px 10px; border-bottom: 1px solid #edf1f5; background: #fff; }
#timeClockMyPanel .time-clock-my-detail-close-row button { display: inline-grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: #475569; color: #fff; font-size: 1.45rem; font-weight: 800; line-height: 1; }
#timeClockMyPanel .time-clock-my-detail-heading { padding: 4px 4px 12px; border-bottom: 1px solid #edf1f5; }
#timeClockMyPanel .time-clock-my-detail-heading h2 { margin: 2px 0; color: #1f3552; }
#timeClockMyPanel .time-clock-my-detail-heading p:not(.eyebrow) { margin: 0 0 8px; color: #64748b; }
#timeClockMyPanel .time-clock-my-detail-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
#timeClockMyPanel .time-clock-my-detail-metrics > div { min-height: 86px; padding: 12px; border: 1px solid #e3e9f1; border-radius: 8px; background: #fbfcfe; }
#timeClockMyPanel .time-clock-my-detail-metrics span, #timeClockMyPanel .time-clock-my-detail-reason span { display: block; color: #748095; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
#timeClockMyPanel .time-clock-my-detail-metrics strong { display: block; margin-top: 7px; color: #1f3552; font-size: .95rem; }
#timeClockMyPanel .time-clock-my-detail-reason { display: grid; gap: 7px; margin-top: 12px; padding: 11px 12px; border: 1px solid #e3e9f1; border-radius: 8px; background: #fbfcfe; }
#timeClockMyPanel .time-clock-my-detail-reason strong { color: #1f3552; font-size: .86rem; line-height: 1.45; }
#timeClockMyPanel .time-clock-my-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
#timeClockAdjustmentModal.time-clock-adjustment-drawer { place-items: stretch end; padding: 0; background: rgba(15,23,42,.24); }
#timeClockAdjustmentModal.time-clock-adjustment-drawer .time-clock-modal-card { width: min(580px, 48vw); max-height: none; height: calc(100vh - 80px); margin-top: 80px; padding: 18px; border-radius: 0; box-shadow: -18px 0 38px rgba(15,23,42,.22); }
#timeClockAdjustmentModal.time-clock-adjustment-drawer .modal-header { position: sticky; z-index: 2; top: -18px; margin: -18px -18px 14px; padding: 12px 14px; border-bottom: 1px solid #edf1f5; background: #fff; }
@media (max-width: 1000px) {
  #timeClockMyPanel .time-clock-my-overview { align-items: flex-start; flex-direction: column; }
  #timeClockMyPanel .time-clock-my-summary-row { justify-content: flex-start; }
  #timeClockMyPanel .time-clock-my-detail, #timeClockAdjustmentModal.time-clock-adjustment-drawer .time-clock-modal-card { width: min(100%, 620px); }
}
@media (max-width: 620px) {
  #timeClockMyPanel .time-clock-my-detail-metrics { grid-template-columns: 1fr; }
  #timeClockAdjustmentModal.time-clock-adjustment-drawer .time-clock-modal-card { height: calc(100vh - 70px); margin-top: 70px; }
}

/* CEA My Time payroll archive standard - 2026-09-06 */
#timeClockMyPanel .time-clock-my-archive-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5ebf2; }
#timeClockMyPanel .time-clock-my-archive-table-wrapper { max-height: 330px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
#timeClockMyPanel .time-clock-my-archive-table { width: 100%; border-collapse: collapse; }
#timeClockMyPanel .time-clock-my-archive-table th { position: sticky; top: 0; z-index: 1; background: #f7f9fc; color: #526174; font-size: 11px; font-weight: 800; text-align: left; }
#timeClockMyPanel .time-clock-my-archive-table th, #timeClockMyPanel .time-clock-my-archive-table td { padding: 9px 10px; border-bottom: 1px solid #e7ecf2; white-space: nowrap; }
#timeClockMyPanel .time-clock-my-archive-row { cursor: pointer; }
#timeClockMyPanel .time-clock-my-archive-row:hover td, #timeClockMyPanel .time-clock-my-archive-row:focus td { background: #f6f9fd; }
#timeClockMyPanel .time-clock-my-archive-row:focus { outline: 2px solid #9db9f6; outline-offset: -2px; }
#timeClockMyPanel .time-clock-my-archive-detail-table { margin-top: 14px; max-height: 420px; overflow: auto; border: 1px solid #e3e9f1; border-radius: 8px; }
#timeClockMyPanel .time-clock-my-archive-detail-table table { width: 100%; border-collapse: collapse; font-size: .82rem; }
#timeClockMyPanel .time-clock-my-archive-detail-table th { position: sticky; top: 0; background: #f7f9fc; color: #526174; font-size: 11px; font-weight: 800; text-align: left; }
#timeClockMyPanel .time-clock-my-archive-detail-table th, #timeClockMyPanel .time-clock-my-archive-detail-table td { padding: 8px 9px; border-bottom: 1px solid #e7ecf2; white-space: nowrap; }

/* CEA My Time tabbed history standard - 2026-09-07 */
#timeClockMyPanel .time-clock-my-subtabs {
  justify-content: flex-start;
  margin: 0 0 10px;
}
#timeClockMyPanel .time-clock-my-subtabs .time-clock-workspace-tab {
  min-width: 150px;
}
#timeClockMyPanel .time-clock-my-subtab-panel[hidden] { display: none !important; }
#timeClockMyPanel .time-clock-my-subtab-panel > .panel { margin: 0; }
#timeClockMyPanel .time-clock-my-subtab-panel .time-clock-minimal-panel-header p {
  margin: 3px 0 0;
  color: #748095;
  font-size: 11px;
  line-height: 1.35;
}
#timeClockMyPanel .time-clock-my-archive-workspace {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
#timeClockMyPanel .time-clock-my-archive-filter-rail {
  display: flex;
  flex-direction: column;
  min-height: 438px;
  padding: 12px;
  border-radius: 9px;
  background: #14263d;
  color: #fff;
}
#timeClockMyPanel .time-clock-my-archive-filter-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
#timeClockMyPanel .time-clock-my-archive-filter-heading strong { font-size: 14px; }
#timeClockMyPanel .time-clock-my-archive-filter-heading span { color: #aebbd0; font-size: 10px; font-weight: 700; }
#timeClockMyPanel .time-clock-my-archive-filter-rail label {
  margin: 0 0 5px;
  color: #d9e2ef;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  text-transform: uppercase;
}
#timeClockMyPanel .time-clock-my-archive-filter-rail select {
  width: 100%;
  min-height: 36px;
  margin: 0 0 12px;
  padding: 7px 9px;
  border: 1px solid #52657c;
  border-radius: 7px;
  background: #fff;
  color: #1f3552;
  font-size: 12px;
  font-weight: 700;
}
#timeClockMyPanel .time-clock-my-archive-filter-rail #timeClockMyArchiveReset {
  width: 100%;
  margin-top: auto;
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff;
}
#timeClockMyPanel .time-clock-my-archive-filter-rail #timeClockMyArchiveReset:hover,
#timeClockMyPanel .time-clock-my-archive-filter-rail #timeClockMyArchiveReset:focus-visible {
  background: rgba(255,255,255,.16);
}
#timeClockMyPanel .time-clock-my-archive-main { min-width: 0; }
#timeClockMyPanel .time-clock-my-archive-main > .cea-time-active-filter-bar {
  width: 100%;
  margin: 0 0 8px;
}
#timeClockMyPanel .time-clock-my-archive-table-wrapper {
  max-height: 438px;
  overflow-y: auto;
  overflow-x: auto;
}
#timeClockMyPanel .time-clock-my-archive-table th,
#timeClockMyPanel .time-clock-my-archive-table td {
  height: 40px;
  box-sizing: border-box;
}
#timeClockMyPanel .time-clock-my-archive-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
#timeClockMyPanel .time-clock-my-archive-panel-card { overflow: hidden; }
@media (max-width: 900px) {
  #timeClockMyPanel .time-clock-my-subtabs { overflow-x: auto; }
  #timeClockMyPanel .time-clock-my-subtabs .time-clock-workspace-tab { min-width: 135px; }
  #timeClockMyPanel .time-clock-my-archive-workspace { grid-template-columns: 1fr; }
  #timeClockMyPanel .time-clock-my-archive-filter-rail { min-height: 0; }
  #timeClockMyPanel .time-clock-my-archive-filter-rail #timeClockMyArchiveReset { margin-top: 4px; }
}


/* CEA My Workforce My Time personal route - 2026-09-07 */
#timeClockMyPanel.my-time-personal-view {
  width: 100%;
  min-width: 0;
}
#timeClockMyPanel.my-time-personal-view > #timeClockEmployeeContent {
  width: 100%;
}
#timeClockMyPanel .my-time-personal-tab-title {
  display: flex;
  flex: 0 0 190px;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 7px 16px;
  border-right: 1px solid var(--cea-border);
  background: #fff;
}
#timeClockMyPanel .my-time-personal-tab-title strong {
  color: #20334f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.05;
}
#timeClockMyPanel .my-time-personal-tab-title span {
  margin-top: 2px;
  color: #7a8799;
  font-size: 10px;
  font-weight: 700;
}
#timeClockMyPanel.my-time-personal-view .time-clock-my-overview {
  margin-top: 0;
}
#timeClockMyPanel.my-time-personal-view .time-clock-my-subtabs {
  justify-content: flex-start;
}
body.stage38f1-my-time-clock-active #timeClockView {
  display: none !important;
}
@media (max-width: 900px) {
  #timeClockMyPanel .my-time-personal-tab-title {
    flex-basis: 150px;
    min-width: 150px;
  }
}


/* CEA My Workforce My Time CEA layout parity - 2026-09-07 */
#timeClockMyPanel.my-time-personal-view > #timeClockEmployeeContent {
  width: 100%;
}
#timeClockMyPanel #timeClockMySubtabs {
  position: relative;
  justify-content: center !important;
  margin: 0 0 10px;
}
#timeClockMyPanel .my-time-personal-tab-title {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 2;
  display: block;
  min-height: 0;
  max-width: 330px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  pointer-events: none;
}
#timeClockMyPanel .my-time-personal-tab-title strong {
  display: block;
  overflow: hidden;
  color: #172033;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#timeClockMyPanel .my-time-personal-tab-title span { display: none !important; }
#timeClockMyPanel .time-clock-my-browser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: calc(100vh - 178px);
  overflow: hidden;
  border: 1px solid #d8e1ed;
  border-radius: 10px;
  background: #f7f9fc;
}
#timeClockMyPanel .time-clock-my-browser.has-filter-rail { grid-template-columns: 216px minmax(0, 1fr); }
#timeClockMyPanel .time-clock-my-browser-main {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
#timeClockMyPanel .time-clock-my-summary-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 8px 10px 6px;
  border: 0;
  border-bottom: 1px solid #e0e5ef;
  border-radius: 0;
  background: #fff;
}
#timeClockMyPanel .time-clock-my-summary-row .time-clock-compact-pill {
  min-height: 27px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}
#timeClockMyPanel .time-clock-my-subtab-panel {
  min-width: 0;
  padding: 8px 10px 10px;
  background: #fff;
}
#timeClockMyPanel .time-clock-my-subtab-panel > .panel {
  margin: 0;
}
#timeClockMyPanel .time-clock-my-filter-rail {
  position: relative;
  z-index: 8;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: visible;
  border-right: 1px solid #41464c;
  background: #25282b;
  color: #fff;
}
#timeClockMyPanel .time-clock-my-filter-rail[hidden] { display: none !important; }
#timeClockMyPanel .time-clock-my-rail-menu { display: grid; border-top: 1px solid #40454a; }
#timeClockMyPanel .time-clock-my-rail-menu[hidden],
#timeClockMyPanel .time-clock-my-rail-footer[hidden] { display: none !important; }
#timeClockMyPanel .time-clock-my-rail-menu > button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #40454a;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  text-align: left;
}
#timeClockMyPanel .time-clock-my-rail-menu > button:hover,
#timeClockMyPanel .time-clock-my-rail-menu > button[aria-expanded="true"] { background: #31353a; }
#timeClockMyPanel .time-clock-my-rail-menu > button.has-filter::before {
  content: "";
  position: absolute;
  right: 27px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5d91ff;
}
#timeClockMyPanel .time-clock-my-rail-menu > button i {
  color: #aeb7c2;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
}
#timeClockMyPanel .time-clock-my-rail-footer { margin-top: auto; padding: 10px; }
#timeClockMyPanel .time-clock-my-rail-footer button {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #4a5057;
  border-radius: 6px;
  background: #303438;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}
#timeClockMyPanel .time-clock-my-rail-footer button:disabled { color: #7f8892; cursor: default; }
#timeClockMyPanel .time-clock-my-filter-backing-select { display: none !important; }
#timeClockMyPanel .time-clock-my-filter-flyout {
  position: absolute;
  z-index: 20;
  top: 0;
  bottom: 0;
  left: 216px;
  width: min(360px, 32vw);
  min-width: 290px;
  overflow: auto;
  border-right: 1px solid #d7dee8;
  background: #fff;
  color: #172033;
  box-shadow: 16px 0 30px rgba(15,23,42,.16);
}
#timeClockMyPanel .time-clock-my-filter-flyout[hidden] { display: none !important; }
#timeClockMyPanel .time-clock-my-filter-flyout-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #dce3ec;
  background: #fff;
}
#timeClockMyPanel .time-clock-my-filter-flyout-head h4 {
  margin: 0;
  color: #334155;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#timeClockMyPanel .time-clock-my-filter-flyout-head button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.2rem;
}
#timeClockMyPanel .time-clock-my-filter-flyout-body { display: grid; gap: 2px; padding: 8px; }
#timeClockMyPanel .time-clock-my-filter-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #172033;
  font-size: .8rem;
  font-weight: 700;
  text-align: left;
}
#timeClockMyPanel .time-clock-my-filter-option:hover { background: #f1f5f9; }
#timeClockMyPanel .time-clock-my-filter-option.is-selected {
  border-color: #a9c0ff;
  background: #edf3ff;
  color: #1d4ed8;
}
#timeClockMyPanel .time-clock-my-filter-option-check { min-width: 18px; text-align: center; }
#timeClockMyPanel #timeClockMyArchivesPanel > .cea-time-active-filter-bar {
  width: calc(100% - 0px);
  margin: 0 0 8px;
}
#timeClockMyPanel .time-clock-my-archive-table-wrapper {
  max-height: 438px;
  overflow-y: auto;
  overflow-x: auto;
}
@media (max-width: 1180px) {
  #timeClockMyPanel .my-time-personal-tab-title { display: none; }
}
@media (max-width: 1100px) {
  #timeClockMyPanel .time-clock-my-browser.has-filter-rail { display: block; min-height: auto; }
  #timeClockMyPanel .time-clock-my-filter-rail { display: block; border-right: 0; }
  #timeClockMyPanel .time-clock-my-rail-menu { display: flex; }
  #timeClockMyPanel .time-clock-my-rail-menu > button { flex: 1; border-right: 1px solid #40454a; }
  #timeClockMyPanel .time-clock-my-rail-footer { display: none; }
  #timeClockMyPanel .time-clock-my-filter-flyout {
    top: 44px;
    left: 0;
    bottom: auto;
    width: min(100%, 420px);
    min-width: 0;
    max-height: 420px;
  }
}


/* CEA My Workforce My Time compact adjustment rows - 2026-09-07 */
#timeClockMyPanel #timeClockMyAdjustmentsPanel .time-clock-request-list {
  gap: 6px;
  margin-top: 6px;
}
#timeClockMyPanel #timeClockMyAdjustmentsPanel .time-clock-my-request-item {
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
  grid-template-areas:
    "header header"
    "meta reason";
  column-gap: 16px;
  row-gap: 3px;
  min-height: 0;
  padding: 8px 12px;
  border-radius: 8px;
}
#timeClockMyPanel #timeClockMyAdjustmentsPanel .time-clock-my-request-item > div {
  grid-area: header;
  min-width: 0;
  gap: 10px;
}
#timeClockMyPanel #timeClockMyAdjustmentsPanel .time-clock-my-request-item > div > strong {
  font-size: 14px;
  line-height: 1.2;
}
#timeClockMyPanel #timeClockMyAdjustmentsPanel .time-clock-my-request-item > p {
  min-width: 0;
  font-size: 11px;
  line-height: 1.25;
}
#timeClockMyPanel #timeClockMyAdjustmentsPanel .time-clock-my-request-item > p:not(.time-clock-request-reason) {
  grid-area: meta;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#timeClockMyPanel #timeClockMyAdjustmentsPanel .time-clock-my-request-item .time-clock-request-reason {
  grid-area: reason;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#timeClockMyPanel #timeClockMyAdjustmentsPanel .time-clock-my-request-item .status-badge {
  min-height: 24px;
  padding: 4px 9px;
  font-size: 11px;
}
@media (max-width: 900px) {
  #timeClockMyPanel #timeClockMyAdjustmentsPanel .time-clock-my-request-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "header"
      "meta"
      "reason";
  }
  #timeClockMyPanel #timeClockMyAdjustmentsPanel .time-clock-my-request-item .time-clock-request-reason {
    text-align: left;
  }
}


/* My Time owned status shortcuts - Phase 2E. Scheduling styles belong to My Shifts. */
#timeClockMyPanel .time-clock-my-summary-row button.time-clock-compact-pill {
  appearance: none;
  -webkit-appearance: none;
  justify-content: center;
  margin: 0;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}
#timeClockMyPanel .time-clock-my-summary-row button.time-clock-compact-pill:hover,
#timeClockMyPanel .time-clock-my-summary-row .time-clock-my-hotlink-pill:hover { filter: brightness(.965); transform: translateY(-1px); }
#timeClockMyPanel .time-clock-my-summary-row .time-clock-my-hotlink-pill { cursor: pointer; transition: filter .12s ease, transform .12s ease; }
#timeClockMyPanel .time-clock-my-summary-row button.time-clock-compact-pill:focus-visible {
  outline: 2px solid rgba(59,130,246,.28);
  outline-offset: 1px;
}


/* CEA Phase 8L.4 - Payroll adjustment traceability and actionable review focus */
.approvals-request-submitted {
  display: block;
  margin-top: 0.28rem;
  color: #66758a;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
}

.approval-adjustment-applied-row td {
  background: #fff1f2 !important;
  box-shadow: inset 0 1px 0 #efb7bd, inset 0 -1px 0 #efb7bd;
}

.approval-adjustment-applied-badge {
  display: block;
  margin: 0 0 4px;
  padding: 3px 4px;
  border-radius: 7px;
  background: #c95d69;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}


/* CEA Phase 8L.5 - guided payroll approval workflow foundation */
.approvals-workflow { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin:0 0 12px; }
.approvals-workflow-step { display:flex; align-items:center; gap:9px; min-width:0; padding:10px 12px; background:#fff; border:1px solid #cbd5e1; border-radius:10px; color:#1e293b; text-align:left; }
.approvals-workflow-step > span:last-child { display:grid; min-width:0; gap:2px; }
.approvals-workflow-step strong { font-size:.83rem; line-height:1.12; }
.approvals-workflow-step small { color:#64748b; font-size:.72rem; line-height:1.1; }
.approvals-workflow-number { display:grid; place-items:center; width:28px; height:28px; flex:0 0 28px; border-radius:50%; background:#e2e8f0; color:#334155; font-weight:800; }
.approvals-workflow-step.has-work { border-color:#f59e0b; background:#fffbeb; }
.approvals-workflow-step.has-work .approvals-workflow-number { background:#c56a00; color:#fff; }
.approvals-workflow-step.is-complete { border-color:#86efac; background:#f0fdf4; }
.approvals-workflow-step.is-complete .approvals-workflow-number { background:#22a364; color:#fff; }
.approvals-workflow-step:disabled { opacity:.58; cursor:not-allowed; }
@media (max-width: 980px) { .approvals-workflow { grid-template-columns:1fr 1fr; } }
@media (max-width: 620px) { .approvals-workflow { grid-template-columns:1fr; } }
