/* =========================================================
   SHIFTLYNX EMPLOYEE REPORTS
========================================================= */

:root {
  --report-bg: #07101c;
  --report-surface: rgba(14, 26, 42, 0.92);
  --report-surface-soft: rgba(255, 255, 255, 0.035);
  --report-border: rgba(255, 255, 255, 0.085);
  --report-border-strong: rgba(255, 255, 255, 0.14);

  --report-text: #f4f8ff;
  --report-muted: #8fa0b7;
  --report-subtle: #65758c;

  --report-blue: #20b9ff;
  --report-cyan: #36d9ff;
  --report-purple: #9f7cff;
  --report-orange: #ffae5b;
  --report-green: #3bd890;
  --report-red: #ff637b;
  --report-teal: #30d4c6;
  --report-pink: #ff7eca;

  --report-radius: 22px;
  --report-radius-small: 14px;

  --report-shadow:
    0 22px 55px rgba(0, 0, 0, 0.28);
}

/* =========================================================
   PAGE
========================================================= */

.employee-report-page {
  position: relative;
  min-height: 100vh;
  padding: 34px 38px 60px;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 80% 4%,
      rgba(32, 185, 255, 0.11),
      transparent 30%
    ),
    radial-gradient(
      circle at 42% 38%,
      rgba(72, 91, 255, 0.06),
      transparent 34%
    ),
    var(--report-bg);
}

.employee-report-page::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background:
    rgba(32, 185, 255, 0.07);
  filter: blur(110px);
}

/* =========================================================
   TOPBAR
========================================================= */

.report-topbar {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 26px;
}

.report-topbar h1 {
  margin: 4px 0 8px;
  color: var(--report-text);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.report-topbar p {
  margin: 0;
  color: var(--report-muted);
  line-height: 1.6;
}

.report-eyebrow {
  margin: 0 !important;
  color: var(--report-blue) !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.report-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-print-button,
.report-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 46px;
  padding: 0 17px;

  border: 1px solid rgba(32, 185, 255, 0.28);
  border-radius: 14px;

  color: #eaf8ff;
  background:
    linear-gradient(
      145deg,
      rgba(32, 185, 255, 0.18),
      rgba(32, 185, 255, 0.07)
    );

  font: inherit;
  font-weight: 750;
  cursor: pointer;

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.report-print-button:hover,
.report-refresh-button:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 185, 255, 0.5);
  background:
    linear-gradient(
      145deg,
      rgba(32, 185, 255, 0.25),
      rgba(32, 185, 255, 0.1)
    );
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(32, 185, 255, 0.08);
}

.report-print-button svg,
.report-refresh-button svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   FILTER PANEL
========================================================= */

.report-filter-panel {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 25px;
  padding: 18px 20px;

  border: 1px solid var(--report-border);
  border-radius: var(--report-radius);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    );

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.report-filter-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.report-filter-heading > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.report-filter-heading strong {
  color: var(--report-text);
  font-size: 0.96rem;
}

.report-filter-heading span {
  color: var(--report-muted);
  font-size: 0.82rem;
}

.report-filter-icon {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;
  flex: 0 0 auto;

  border: 1px solid rgba(32, 185, 255, 0.22);
  border-radius: 13px;

  color: var(--report-blue);
  background: rgba(32, 185, 255, 0.09);
}

.report-filter-icon svg {
  width: 19px;
  height: 19px;
}

.report-filter-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.report-filter-controls label {
  display: flex;
  flex-direction: column;
  gap: 7px;

  color: var(--report-muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.report-filter-controls select {
  min-width: 190px;
  min-height: 46px;
  padding: 0 42px 0 14px;

  border: 1px solid var(--report-border);
  border-radius: 13px;
  outline: none;

  color: var(--report-text);
  background-color: rgba(7, 15, 27, 0.92);

  font: inherit;
  font-size: 0.9rem;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.report-filter-controls select:focus {
  border-color: rgba(32, 185, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(32, 185, 255, 0.09);
}

/* =========================================================
   PRINTABLE REPORT CONTAINER
========================================================= */

.printable-employee-report {
  position: relative;
  z-index: 1;
}

.print-report-header,
.print-report-footer {
  display: none;
}

/* =========================================================
   EMPLOYEE REPORT HERO
========================================================= */

.employee-report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 22px;
  padding: 26px 28px;

  border: 1px solid rgba(32, 185, 255, 0.16);
  border-radius: 26px;

  background:
    radial-gradient(
      circle at 82% 35%,
      rgba(32, 185, 255, 0.14),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      rgba(19, 36, 57, 0.95),
      rgba(10, 21, 35, 0.97)
    );

  box-shadow: var(--report-shadow);
  overflow: hidden;
}

.employee-report-person {
  display: flex;
  align-items: center;
  gap: 17px;
}

.employee-report-avatar {
  display: grid;
  place-items: center;

  width: 64px;
  height: 64px;
  flex: 0 0 auto;

  border: 1px solid rgba(32, 185, 255, 0.35);
  border-radius: 20px;

  color: white;
  background:
    linear-gradient(
      145deg,
      rgba(32, 185, 255, 0.34),
      rgba(37, 91, 255, 0.22)
    );

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.2);

  font-size: 1.3rem;
  font-weight: 850;
}

.employee-report-label {
  display: inline-block;
  margin-bottom: 5px;

  color: var(--report-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.employee-report-person h2 {
  margin: 0;
  color: var(--report-text);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.employee-report-person p {
  margin: 6px 0 0;
  color: var(--report-muted);
}

.employee-report-period {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;

  padding-left: 24px;
  border-left: 1px solid var(--report-border);
}

.employee-report-period span {
  color: var(--report-subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.employee-report-period strong {
  color: var(--report-text);
  font-size: 1.05rem;
}

.employee-report-period small {
  color: var(--report-muted);
}

/* =========================================================
   PRIMARY METRIC GRID
========================================================= */

.report-metric-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 14px;

  margin-bottom: 22px;
}

.report-metric-card {
  display: flex;
  align-items: center;
  gap: 14px;

  min-width: 0;
  padding: 19px;

  border: 1px solid var(--report-border);
  border-radius: 19px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    );

  box-shadow:
    0 17px 38px rgba(0, 0, 0, 0.18);

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.report-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(32, 185, 255, 0.2);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.025)
    );
}

.report-metric-icon {
  display: grid;
  place-items: center;

  width: 45px;
  height: 45px;
  flex: 0 0 auto;

  border-radius: 14px;
}

.report-metric-icon svg {
  width: 21px;
  height: 21px;
}

.report-metric-icon.blue {
  color: var(--report-blue);
  background: rgba(32, 185, 255, 0.1);
}

.report-metric-icon.cyan {
  color: var(--report-cyan);
  background: rgba(54, 217, 255, 0.1);
}

.report-metric-icon.purple {
  color: var(--report-purple);
  background: rgba(159, 124, 255, 0.1);
}

.report-metric-icon.orange {
  color: var(--report-orange);
  background: rgba(255, 174, 91, 0.1);
}

.report-metric-icon.green {
  color: var(--report-green);
  background: rgba(59, 216, 144, 0.1);
}

.report-metric-icon.red {
  color: var(--report-red);
  background: rgba(255, 99, 123, 0.1);
}

.report-metric-icon.teal {
  color: var(--report-teal);
  background: rgba(48, 212, 198, 0.1);
}

.report-metric-icon.pink {
  color: var(--report-pink);
  background: rgba(255, 126, 202, 0.1);
}

.report-metric-card p {
  margin: 0 0 5px;

  color: var(--report-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.report-metric-card strong {
  display: block;
  margin-bottom: 3px;

  color: var(--report-text);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.report-metric-card span {
  color: var(--report-subtle);
  font-size: 0.72rem;
  line-height: 1.35;
}

/* =========================================================
   REPORT PANELS
========================================================= */

.report-analysis-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 18px;

  margin-bottom: 20px;
}

.report-panel {
  min-width: 0;
  padding: 22px;

  border: 1px solid var(--report-border);
  border-radius: var(--report-radius);

  background:
    linear-gradient(
      145deg,
      rgba(17, 30, 48, 0.93),
      rgba(10, 20, 34, 0.96)
    );

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.2);
}

.report-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-bottom: 20px;
}

.report-panel-header h3 {
  margin: 4px 0 0;

  color: var(--report-text);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.report-panel-header > span {
  color: var(--report-muted);
  font-size: 0.78rem;
}

.report-panel-kicker {
  color: var(--report-blue);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.report-panel-icon {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  border: 1px solid rgba(32, 185, 255, 0.16);
  border-radius: 13px;

  color: var(--report-blue);
  background: rgba(32, 185, 255, 0.07);
}

.report-panel-icon svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   ATTENDANCE PROGRESS
========================================================= */

.attendance-progress {
  margin-bottom: 20px;
  padding: 16px;

  border: 1px solid var(--report-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.024);
}

.attendance-progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;

  margin-bottom: 10px;
}

.attendance-progress-heading span {
  color: var(--report-muted);
  font-size: 0.8rem;
}

.attendance-progress-heading strong {
  color: var(--report-text);
}

.attendance-progress-track {
  height: 9px;

  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.attendance-progress-bar {
  width: 0%;
  height: 100%;

  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--report-blue),
      var(--report-cyan)
    );

  box-shadow:
    0 0 18px rgba(32, 185, 255, 0.34);

  transition: width 450ms ease;
}

.report-detail-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-detail-grid > div {
  padding: 14px;

  border: 1px solid var(--report-border);
  border-radius: 13px;

  background: rgba(255, 255, 255, 0.025);
}

.report-detail-grid span {
  display: block;
  margin-bottom: 6px;

  color: var(--report-muted);
  font-size: 0.71rem;
  line-height: 1.3;
}

.report-detail-grid strong {
  color: var(--report-text);
  font-size: 1.12rem;
}

/* =========================================================
   LEAVE BREAKDOWN
========================================================= */

.leave-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leave-breakdown-row {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  padding: 13px 14px;

  border: 1px solid var(--report-border);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.025);
}

.leave-breakdown-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.leave-breakdown-row strong {
  color: var(--report-text);
}

.leave-breakdown-row small {
  color: var(--report-muted);
  font-size: 0.72rem;
}

.leave-dot {
  width: 10px;
  height: 10px;

  border-radius: 50%;
}

.leave-dot.vacation {
  background: var(--report-teal);
  box-shadow: 0 0 12px rgba(48, 212, 198, 0.32);
}

.leave-dot.sick {
  background: var(--report-orange);
  box-shadow: 0 0 12px rgba(255, 174, 91, 0.32);
}

.leave-dot.personal {
  background: var(--report-purple);
}

.leave-dot.stat {
  background: var(--report-blue);
}

.leave-dot.unpaid {
  background: var(--report-red);
}

/* =========================================================
   CHART
========================================================= */

.report-chart-panel {
  margin-bottom: 20px;
}

.report-chart-wrapper {
  position: relative;
  min-height: 330px;
}

.report-chart-wrapper canvas {
  width: 100% !important;
  max-height: 330px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;

  color: var(--report-muted);
  font-size: 0.73rem;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
}

.chart-dot.worked {
  background: var(--report-blue);
}

.chart-dot.overtime {
  background: var(--report-orange);
}

.chart-dot.pto {
  background: var(--report-purple);
}

/* =========================================================
   TIME CARD STATUS
========================================================= */

.timecard-status-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.timecard-status-grid > div,
.hours-breakdown-list > div {
  padding: 15px;

  border: 1px solid var(--report-border);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.025);
}

.timecard-status-grid span,
.hours-breakdown-list span {
  display: block;
  margin-bottom: 7px;

  color: var(--report-muted);
  font-size: 0.72rem;
}

.timecard-status-grid strong,
.hours-breakdown-list strong {
  color: var(--report-text);
  font-size: 1.16rem;
}

.hours-breakdown-list {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* =========================================================
   EMPLOYEE BREAKDOWN TABLE
========================================================= */

.employee-breakdown-panel {
  margin-bottom: 20px;
}

.employee-stats-table {
  overflow-x: auto;
}

.employee-stats-header,
.employee-stats-row {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.8fr)
    repeat(7, minmax(80px, 0.65fr));
  align-items: center;
  gap: 12px;

  min-width: 970px;
}

.employee-stats-header {
  padding: 0 14px 11px;

  color: var(--report-subtle);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.employee-stats-row {
  margin-bottom: 8px;
  padding: 13px 14px;

  border: 1px solid var(--report-border);
  border-radius: 14px;

  color: var(--report-muted);
  background: rgba(255, 255, 255, 0.025);

  cursor: pointer;

  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.employee-stats-row:hover {
  transform: translateY(-1px);
  border-color: rgba(32, 185, 255, 0.24);
  background: rgba(255, 255, 255, 0.042);
}

.employee-report-person {
  min-width: 0;
}

.employee-report-person > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.employee-report-person small {
  max-width: 100%;
  overflow: hidden;

  color: var(--report-muted);
  font-size: 0.73rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-stats-row > span,
.employee-stats-row > strong {
  color: var(--report-text);
  text-align: center;
}

.employee-stats-row .avatar {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;
  flex: 0 0 auto;

  border: 1px solid rgba(32, 185, 255, 0.2);
  border-radius: 12px;

  color: var(--report-blue);
  background: rgba(32, 185, 255, 0.08);

  font-size: 0.77rem;
  font-weight: 800;
}

.attendance-good {
  color: var(--report-green) !important;
}

.attendance-warning {
  color: var(--report-orange) !important;
}

.attendance-bad {
  color: var(--report-red) !important;
}

/* =========================================================
   ATTENDANCE RECORDS
========================================================= */

.attendance-records-panel {
  margin-bottom: 20px;
}

.attendance-records-table {
  overflow-x: auto;
}

.attendance-records-header,
.attendance-record-row {
  display: grid;
  grid-template-columns:
    minmax(130px, 1.2fr)
    minmax(150px, 1.2fr)
    minmax(150px, 1.2fr)
    minmax(100px, 0.8fr)
    minmax(120px, 0.9fr);
  gap: 14px;
  align-items: center;

  min-width: 760px;
}

.attendance-records-header {
  padding: 0 14px 11px;

  color: var(--report-subtle);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.attendance-record-row {
  margin-bottom: 8px;
  padding: 14px;

  border: 1px solid var(--report-border);
  border-radius: 14px;

  color: var(--report-muted);
  background: rgba(255, 255, 255, 0.025);
}

.attendance-record-row strong {
  color: var(--report-text);
}

.attendance-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  min-height: 29px;
  padding: 0 10px;

  border-radius: 99px;

  font-size: 0.69rem;
  font-weight: 800;
}

.attendance-status.complete,
.attendance-status.match {
  color: #a6f6ce;
  background: rgba(59, 216, 144, 0.1);
}

.attendance-status.modified {
  color: #ffe0ac;
  background: rgba(255, 174, 91, 0.1);
}

.attendance-status.missing {
  color: #ffb7c2;
  background: rgba(255, 99, 123, 0.1);
}

.attendance-status.leave {
  color: #cdbdff;
  background: rgba(159, 124, 255, 0.1);
}

/* =========================================================
   LOADING / EMPTY STATES
========================================================= */

.employee-report-page .empty-state {
  display: grid;
  place-items: center;

  min-height: 160px;
  padding: 26px;

  border: 1px dashed var(--report-border-strong);
  border-radius: 16px;

  color: var(--report-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.018);
}

.report-refresh-button.is-loading svg {
  animation: employee-report-spin 700ms linear infinite;
}

@keyframes employee-report-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1250px) {
  .report-metric-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .report-detail-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .employee-report-page {
    padding: 26px 22px 50px;
  }

  .report-topbar,
  .report-filter-panel,
  .employee-report-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .report-filter-controls {
    flex-wrap: wrap;
  }

  .report-filter-controls label {
    flex: 1 1 190px;
  }

  .report-filter-controls select {
    width: 100%;
    min-width: 0;
  }

  .employee-report-period {
    align-items: flex-start;
    padding-top: 18px;
    padding-left: 0;

    border-top: 1px solid var(--report-border);
    border-left: 0;
  }

  .report-analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .employee-report-page {
    padding:
      21px 14px
      calc(92px + env(safe-area-inset-bottom));
  }

  .report-topbar-actions {
    width: 100%;
  }

  .report-print-button {
    flex: 1;
  }

  .report-filter-controls {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .report-refresh-button {
    width: 100%;
  }

  .report-metric-grid {
    grid-template-columns: 1fr;
  }

  .employee-report-hero {
    padding: 21px 18px;
  }

  .employee-report-person {
    align-items: flex-start;
  }

  .employee-report-avatar {
    width: 54px;
    height: 54px;

    border-radius: 17px;
  }

  .report-panel {
    padding: 18px 15px;
  }

  .report-detail-grid,
  .timecard-status-grid,
  .hours-breakdown-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .chart-legend {
    display: none;
  }

  .report-chart-wrapper {
    min-height: 270px;
  }
}

/* =========================================================
   PRINT REPORT
========================================================= */

@media print {
  @page {
    size: letter portrait;
    margin: 0.45in;
  }

  * {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  html,
  body {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;

    color: #172033 !important;
    background: #ffffff !important;
  }

  body {
    font-family:
      Arial,
      Helvetica,
      sans-serif !important;
  }

  .sidebar,
  .report-topbar,
  .report-filter-panel,
  .notification-wrapper,
  .dashboard-toast {
    display: none !important;
  }

  .main,
  .employee-report-page {
    width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;
  }

  .employee-report-page::before {
    display: none !important;
  }

  .printable-employee-report {
    width: 100% !important;
  }

  .print-report-header {
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 18px;
    padding-bottom: 12px;

    border-bottom: 2px solid #1d2b42;
  }

  .print-brand,
  .print-report-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .print-brand strong {
    color: #10233b !important;
    font-size: 19px;
  }

  .print-brand span,
  .print-report-meta span {
    color: #66748a !important;
    font-size: 10px;
  }

  .print-report-meta {
    align-items: flex-end;
  }

  .print-report-meta strong {
    color: #1d2b42 !important;
    font-size: 11px;
  }

  .employee-report-hero,
  .report-metric-card,
  .report-panel,
  .attendance-progress,
  .report-detail-grid > div,
  .leave-breakdown-row,
  .timecard-status-grid > div,
  .hours-breakdown-list > div,
  .employee-stats-row,
  .attendance-record-row {
    color: #172033 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .employee-report-hero,
  .report-metric-card,
  .report-panel {
    border: 1px solid #d7deea !important;
  }

  .employee-report-hero {
    margin-bottom: 13px;
    padding: 17px 18px;
    border-radius: 10px;
  }

  .employee-report-avatar {
    color: #17314f !important;
    background: #edf6ff !important;
    box-shadow: none !important;
  }

  .employee-report-label,
  .report-panel-kicker {
    color: #087db3 !important;
  }

  .employee-report-person h2,
  .employee-report-period strong,
  .report-metric-card strong,
  .report-panel-header h3,
  .report-detail-grid strong,
  .leave-breakdown-row strong,
  .timecard-status-grid strong,
  .hours-breakdown-list strong,
  .employee-stats-row strong,
  .attendance-record-row strong {
    color: #172033 !important;
  }

  .employee-report-person p,
  .employee-report-period span,
  .employee-report-period small,
  .report-metric-card p,
  .report-metric-card span,
  .report-panel-header > span,
  .report-detail-grid span,
  .leave-breakdown-row small,
  .timecard-status-grid span,
  .hours-breakdown-list span,
  .employee-stats-row,
  .attendance-record-row {
    color: #5e6d82 !important;
  }

  .report-metric-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
    gap: 8px;

    margin-bottom: 13px;
  }

  .report-metric-card {
    padding: 11px;
    border-radius: 9px;
  }

  .report-metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .report-metric-icon svg {
    width: 15px;
    height: 15px;
  }

  .report-metric-card strong {
    font-size: 17px;
  }

  .report-analysis-grid {
    gap: 10px;
    margin-bottom: 12px;
  }

  .report-panel {
    padding: 14px;
    border-radius: 10px;

    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-panel-header {
    margin-bottom: 12px;
  }

  .report-detail-grid {
    gap: 6px;
  }

  .report-detail-grid > div,
  .leave-breakdown-row,
  .timecard-status-grid > div,
  .hours-breakdown-list > div {
    padding: 9px;
    border-color: #e0e5ed !important;
  }

  .report-chart-panel {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-chart-wrapper {
    min-height: 245px;
  }

  .report-chart-wrapper canvas {
    max-height: 245px !important;
  }

  .employee-stats-header,
  .employee-stats-row {
    grid-template-columns:
      minmax(180px, 1.5fr)
      repeat(7, minmax(50px, 0.55fr));
    min-width: 0;

    font-size: 9px;
  }

  .employee-stats-row {
    padding: 8px;
    border-color: #e0e5ed !important;
    border-radius: 7px;

    break-inside: avoid;
    page-break-inside: avoid;
  }

  .employee-stats-row .avatar {
    width: 27px;
    height: 27px;
    border-radius: 7px;
  }

  .attendance-records-header,
  .attendance-record-row {
    min-width: 0;
    font-size: 9px;
  }

  .attendance-record-row {
    padding: 8px;
    border-color: #e0e5ed !important;
    border-radius: 7px;

    break-inside: avoid;
    page-break-inside: avoid;
  }

  .attendance-status {
    min-height: 22px;
    padding: 0 7px;

    color: #172033 !important;
    background: #edf2f7 !important;
  }

  .print-report-footer {
    display: flex !important;
    justify-content: space-between;

    margin-top: 16px;
    padding-top: 9px;

    border-top: 1px solid #d7deea;

    color: #6e7c90 !important;
    font-size: 9px;
  }
}
/* Keep notifications above report content */
.report-topbar {
  position: relative;
  z-index: 1000;
}

.report-topbar-actions,
.notification-wrapper {
  position: relative;
  z-index: 1100;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;

  z-index: 9999;

  width: min(390px, calc(100vw - 28px));
  max-height: 520px;

  overflow-y: auto;
}

.report-filter-panel,
.printable-employee-report,
.employee-report-hero {
  position: relative;
  z-index: 1;
}