.emp-short-report-body {
  background: #fff;
  color: #000;
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

.esr-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #000;
  padding: 10px 16px;
}

.esr-toolbar-actions { display: flex; gap: 8px; }
.esr-toolbar-title { font-weight: 700; }

.esr-error {
  margin: 12px 16px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  border-radius: 10px;
  padding: 10px 12px;
}

.esr-page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 9mm 9mm 8mm;
  box-sizing: border-box;
  display: grid;
  gap: 7px;
}

.esr-header {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.esr-company { font-weight: 800; font-size: 13px; color: #000; }
.esr-title { font-weight: 800; font-size: 17px; margin-top: 2px; }
.esr-header-meta { font-size: 12px; line-height: 1.7; text-align: left; color: #000; }
.esr-header-meta span { color: #000; }

.esr-meta-grid {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
  font-size: 12px;
}
.esr-meta-grid span { color: #64748b; }
.esr-meta-grid span { color: #000; }
.esr-meta-grid strong { color: #000; }

.esr-period-strip {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  background: #fafafa;
}
.esr-period-strip-label { font-weight: 700; color: #000; }
.esr-period-strip strong { font-family: ui-monospace, monospace; font-size: 13px; color: #000; }

.esr-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.esr-stat {
  border: 1px solid #000;
  border-radius: 9px;
  background: #fff;
  text-align: center;
  padding: 7px 4px;
}
.esr-stat span { display: block; font-size: 10px; color: #000; }
.esr-stat strong { display: block; margin-top: 3px; font-size: 14px; color: #000; }

.esr-months-root {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.esr-calendar-wrap {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 7px 8px;
}
.esr-calendar-wrap h3 { margin: 0 0 6px; font-size: 13px; }

.esr-month-page {
  page-break-after: always;
  break-after: page;
}
.esr-month-page:last-child {
  page-break-after: auto;
  break-after: auto;
}
.esr-month-slice {
  margin: 0 0 8px;
  font-size: 11px;
  color: #000;
  font-family: ui-monospace, monospace;
}
.esr-month-subtitle {
  margin: 6px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #000;
}
.esr-month-perf {
  margin-top: 8px;
  border-top: 1px dashed #000;
  padding-top: 6px;
}
.esr-month-perf .esr-performance div:last-child {
  border-bottom: none;
}
.esr-calendar-head,
.esr-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.esr-calendar-head span {
  text-align: center;
  font-size: 10px;
  color: #000;
}
.esr-day {
  position: relative;
  border: 1px solid #000;
  border-radius: 7px;
  min-height: 50px;
  padding: 3px 4px;
  font-size: 9px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  overflow: hidden;
}
.esr-day.empty { border-style: dashed; background: #fff; }
.esr-day .d { font-weight: 700; }
.esr-day .s {
  font-size: 8.5px;
  color: #000;
  font-style: italic;
  line-height: 1.2;
  min-height: 10px;
}
.esr-day .t {
  font-size: 8px;
  color: #000;
  line-height: 1.2;
}
.st-present { background: #fff; }
.st-late { background: #fff; }
.st-absent { background: #fff; }
.st-official { background: #fff; }
.st-leave { background: #fff; }
.st-weekend { background: #fff; }
.esr-official-slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 46%, rgba(0, 0, 0, 0.35) 49%, rgba(0, 0, 0, 0.35) 51%, transparent 54%);
  pointer-events: none;
}

.esr-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  border: 1px solid #000;
  border-radius: 9px;
  padding: 6px 8px;
}
.esr-legend .k {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 2px;
  border: 1px solid #000;
  margin-inline-end: 4px;
}
.k.present { background: #fff; }
.k.late { background: #fff; }
.k.absent { background: #fff; }
.k.official { background: #fff; }
.k.leave { background: #fff; }
.k.weekend { background: #fff; }

.esr-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.esr-box {
  border: 1px solid #000;
  border-radius: 9px;
  padding: 6px 8px;
}
.esr-box h4 { margin: 0 0 5px; font-size: 12px; }

.esr-performance {
  font-size: 11px;
  line-height: 1.8;
}
.esr-performance div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #000;
}

.esr-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.esr-signatures div {
  border: 1px solid #000;
  border-radius: 8px;
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 11px;
  padding-bottom: 5px;
}

.esr-footer {
  border-top: 1px solid #000;
  margin-top: 2px;
  padding-top: 5px;
  font-size: 10px;
  color: #000;
}

@page {
  size: A4 portrait;
  margin: 6mm;
}

@media print {
  * {
    color: #000 !important;
    background-color: #fff !important;
    border-color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .no-print { display: none !important; }
  .esr-page {
    margin: 0;
    width: auto;
    min-height: auto;
    padding: 0;
  }
  #esrMonthsRoot[hidden] {
    display: none !important;
  }
  #esrMonthsRoot:not([hidden]) {
    display: flex !important;
  }
}
