@import url("/css/pages/default.css");



.daily-reports-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: clip;
}

.daily-reports-main {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-direction: column;
  gap: 24px;
  padding: 32px 32px 48px;
}

.daily-reports-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.daily-reports-page-head__title {
  max-width: 640px;
}

.daily-reports-page-head__title h1 {
  margin: 0;
}

.daily-reports-page-head__title p {
  margin: 4px 0 0;
  color: #41484c;
  font-size: 16px;
  line-height: 24px;
}

.daily-reports-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #c0c7cc;
  border-radius: 10px;
  background: #ffffff;
  color: #00658f;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease;
}

.daily-reports-refresh img,
.daily-reports-refresh svg {
  width: 14px;
  height: 14px;
}

.daily-reports-refresh:hover:not(:disabled) {
  background: rgba(0, 101, 143, 0.06);
  border-color: #00658f;
}

.daily-reports-refresh:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.daily-reports-status {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #dcfce7;
  color: #166534;
  font-size: 14px;
  font-weight: 500;
}

.daily-reports-status.is-error {
  background: #fee2e2;
  color: #b91c1c;
}



.daily-reports-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.daily-reports-stat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  border: 1px solid #c0c7cc;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(12, 174, 242, 0.05);
}

.daily-reports-stat-card__label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.daily-reports-stat-card h2 {
  margin: 0;
  min-width: 0;
  color: #41484c;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.35px;
  line-height: 20px;
}

.daily-reports-stat-card strong {
  display: block;
  color: #191c1d;
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.insight-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

.insight-icon svg,
.insight-icon img {
  width: 20px;
  height: 20px;
}

.insight-icon svg {
  fill: currentColor;
}

.insight-icon img {
  display: block;
}

.insight-icon--blue {
  background: #c7e7ff;
  color: #00658f;
}

.insight-icon--purple {
  background: #dfe0ff;
  color: #4455ba;
}

.insight-icon--green {
  background: #d8f3e3;
  color: #1f7a47;
}

.insight-icon--orange {
  background: #ffedd5;
  color: #c2410c;
}



.daily-reports-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #c0c7cc;
  border-radius: 12px;
  background: #f3f3f5;
  width: fit-content;
}

.daily-reports-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #41484c;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 20px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.daily-reports-tab img {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
}

.daily-reports-tab:hover {
  background: rgba(0, 101, 143, 0.07);
  color: #00658f;
}

.daily-reports-tab.is-active {
  background: #00658f;
  box-shadow: 0 1px 4px rgba(0, 101, 143, 0.22);
  color: #ffffff;
}

.daily-reports-tab.is-active img {
  filter: brightness(0) invert(1);
}

.daily-reports-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: dailyReportsPanelIn 180ms ease;
}

.daily-reports-panel[hidden] {
  display: none !important;
}

@keyframes dailyReportsPanelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.health-filters.daily-reports-filters,
.health-filters.daily-reports-entry-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
  position: relative;
  z-index: 3;
  overflow: visible;
}

.daily-reports-page .health-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daily-reports-page .health-filter > span {
  padding: 0 4px;
  color: #41484c;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.daily-reports-page .health-filter .custom-select {
  position: relative;
  z-index: 1;
  width: 220px;
}

.daily-reports-page .health-filter .custom-select.is-open {
  z-index: 120;
}

.daily-reports-page .health-filter .custom-select__menu {
  z-index: 1000;
}

.daily-reports-page .health-filter--search {
  min-width: 240px;
}

.daily-reports-entry-filters .daily-reports-entry-date {
  position: relative;
  min-width: 220px;
  width: 220px;
}

.daily-reports-entry-filters .beugem-date-picker.is-open {
  z-index: 9999;
}

.daily-reports-entry-filters .beugem-date-picker--block {
  width: 100%;
}

.daily-reports-entry-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d7dde2;
  border-radius: 10px;
  background: #f8fafc;
}

.daily-reports-entry-selector__summary {
  margin: 0;
  color: #41484c;
  font-size: 14px;
  line-height: 20px;
  flex: 1;
  min-width: 0;
}

.daily-reports-entry-selector .daily-reports-entry-btn {
  flex-shrink: 0;
  height: auto;
  min-height: 42px;
  padding: 10px 14px;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
}

.daily-reports-page .health-search-input,
.daily-reports-entry-note-input {
  width: 220px;
  min-height: 42px;
  padding: 8px 12px 8px 16px;
  border: 1px solid #c0c7cc;
  border-radius: 8px;
  background: #f3f3f5;
  color: #191c1d;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}

.daily-reports-page .health-search-input {
  width: 260px;
}

.daily-reports-page .health-search-input:focus,
.daily-reports-entry-note-input:focus {
  outline: none;
  border-color: #00658f;
  box-shadow: 0 0 0 2px rgba(0, 101, 143, 0.12);
}



.daily-reports-entry-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border: 1px solid #c0c7cc;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(12, 174, 242, 0.05);
  overflow: visible;
}

.daily-reports-entry-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.daily-reports-entry-card__head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

.daily-reports-entry-card__head p {
  margin: 4px 0 0;
  color: #41484c;
  font-size: 14px;
  line-height: 20px;
}

.daily-reports-entry-card__status {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.daily-reports-entry-card__status.is-new {
  background: #e0f2fe;
  color: #0369a1;
}

.daily-reports-entry-card__status.is-draft {
  background: #fef3c7;
  color: #92400e;
}

.daily-reports-entry-card__status.is-published {
  background: #dcfce7;
  color: #166534;
}

.daily-reports-entry-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  overflow: visible;
}

.daily-reports-entry-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  overflow: visible;
  position: relative;
}

.daily-reports-entry-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.daily-reports-entry-row__optional {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.daily-reports-entry-row__menu {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef6fb;
  color: #0f4c6e;
  font-size: 13px;
  line-height: 18px;
}

.daily-reports-entry-row__menu span {
  font-weight: 600;
}

.daily-reports-entry-row__menu.is-missing {
  background: #f8fafc;
  color: #6b7280;
}

.daily-reports-entry-row__head strong {
  display: block;
  font-size: 15px;
  line-height: 22px;
}

.daily-reports-entry-row__head p {
  width: 100%;
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
}

.daily-reports-entry-row__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.daily-reports-entry-row .health-filter .custom-select,
.daily-reports-entry-row .daily-reports-entry-note-input {
  width: 100%;
}

.daily-reports-entry-row .health-filter .custom-select.is-open {
  z-index: 130;
}

.daily-reports-entry-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daily-reports-entry-note > span {
  padding: 0 4px;
  color: #41484c;
  font-size: 12px;
  font-weight: 500;
}

.daily-reports-entry-note textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 16px;
  border: 1px solid #c0c7cc;
  border-radius: 8px;
  background: #f3f3f5;
  color: #191c1d;
  font-size: 15px;
  line-height: 24px;
  resize: vertical;
}

.daily-reports-entry-note textarea:focus {
  outline: none;
  border-color: #00658f;
  box-shadow: 0 0 0 2px rgba(0, 101, 143, 0.12);
}

.daily-reports-entry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.daily-reports-entry-actions__notice {
  margin-right: auto;
  align-self: center;
  color: #15803d;
  font-size: 14px;
  font-weight: 600;
}

.daily-reports-entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #c0c7cc;
  border-radius: 10px;
  background: #ffffff;
  color: #00658f;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.daily-reports-entry-btn:hover:not(:disabled) {
  background: rgba(0, 101, 143, 0.06);
  border-color: #00658f;
}

.daily-reports-entry-btn--primary {
  border-color: #00658f;
  background: #00658f;
  color: #ffffff;
}

.daily-reports-entry-btn--primary:hover:not(:disabled) {
  background: #005577;
}

.daily-reports-entry-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}



.daily-reports-table-card {
  border: 1px solid #c0c7cc;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(12, 174, 242, 0.05);
  overflow: hidden;
}

.daily-reports-table-wrap {
  overflow-x: auto;
}

.daily-reports-table-wrap.is-refreshing {
  opacity: 0.55;
  pointer-events: none;
}

.daily-reports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.daily-reports-table thead {
  background: #f3f3f5;
}

.daily-reports-table th,
.daily-reports-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e3e6e8;
  text-align: left;
  vertical-align: middle;
}

.daily-reports-table th {
  color: #41484c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.daily-reports-table tbody tr:last-child td {
  border-bottom: 0;
}

.daily-reports-table__empty td {
  padding: 32px 16px;
  color: #6f7885;
  text-align: center;
}

.daily-reports-table__col-edit {
  width: 52px;
}

.daily-reports-table__col-expand {
  width: 44px;
}

.daily-reports-collapse-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d8dde2;
  border-radius: 8px;
  background: #ffffff;
  color: #41484c;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.daily-reports-collapse-all svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-reports-collapse-all:hover {
  background: #eef6fb;
  border-color: #2f94c3;
  color: #00658f;
}

.daily-reports-table__col-expand .daily-reports-collapse-all {
  margin: 0 auto;
}

.daily-reports-row {
  transition: background 150ms ease;
}

.daily-reports-row:hover {
  background: #f8fbfd;
}

.daily-reports-row.is-expanded {
  background: #f4f9fc;
}

.daily-reports-expand-btn.health-med-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d8dde2;
  border-radius: 8px;
  background: #fff;
  color: #41484c;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.daily-reports-expand-btn.health-med-expand svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 150ms ease;
}

.daily-reports-row.is-expanded .daily-reports-expand-btn.health-med-expand svg {
  transform: rotate(180deg);
}

.daily-reports-expand-btn.health-med-expand:hover {
  background: #eef6fb;
  border-color: #2f94c3;
  color: #00658f;
}

.daily-reports-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.daily-reports-modal[hidden] {
  display: none !important;
}

.daily-reports-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 28, 29, 0.45);
}

.daily-reports-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(25, 28, 29, 0.18);
}

.daily-reports-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 0;
  flex-shrink: 0;
}

.daily-reports-modal__header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

.daily-reports-modal__subtitle {
  margin: 4px 0 0;
  color: #6f7885;
  font-size: 14px;
  line-height: 20px;
}

.daily-reports-modal__close {
  border: 0;
  background: transparent;
  color: #71787d;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

.daily-reports-modal__body {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 20px;
  padding: 20px 24px;
  overflow: auto;
  overflow-anchor: none;
}

.daily-reports-modal__loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #ffffff;
}

.daily-reports-modal__loading[hidden] {
  display: none !important;
}

.daily-reports-modal.is-preparing .daily-reports-modal__body {
  overflow: hidden;
}

.daily-reports-modal__categories {
  max-height: none;
}

.daily-reports-modal__note textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid #c0c7cc;
  border-radius: 8px;
  background: #f3f3f5;
  color: #191c1d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  resize: vertical;
}

.daily-reports-modal__note textarea:focus {
  outline: none;
  border-color: #00658f;
  box-shadow: 0 0 0 2px rgba(0, 101, 143, 0.12);
}

.daily-reports-modal__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 500;
}

.daily-reports-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e3e6e8;
  background: #f9fafb;
  flex-shrink: 0;
}

.daily-reports-modal__footer--edit {
  justify-content: space-between;
}

.daily-reports-entry-btn--danger {
  border-color: #ba1a1a;
  background: #ffffff;
  color: #ba1a1a;
  box-shadow: none;
}

.daily-reports-entry-btn--danger:hover:not(:disabled) {
  background: rgba(186, 26, 26, 0.06);
  border-color: #93000a;
  color: #93000a;
}

.daily-reports-entry-btn--danger:disabled,
.daily-reports-entry-btn--danger-solid:disabled {
  opacity: 0.55;
  cursor: wait;
}

.daily-reports-entry-btn--danger-solid {
  border-color: #ba1a1a;
  background: #ba1a1a;
  color: #ffffff;
}

.daily-reports-entry-btn--danger-solid:hover {
  border-color: #93000a;
  background: #93000a;
  color: #ffffff;
}

.daily-reports-modal__panel--confirm {
  width: min(420px, 100%);
}

.daily-reports-confirm-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 24px 24px;
  text-align: center;
}

.daily-reports-confirm-dialog__icon svg {
  width: 48px;
  height: 48px;
}

.daily-reports-confirm-dialog__title {
  margin: 0;
  color: #191c1d;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.daily-reports-confirm-dialog__message {
  margin: 0;
  color: #41484c;
  font-size: 14px;
  line-height: 20px;
}

.daily-reports-confirm-dialog__actions {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.daily-reports-modal__footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.daily-reports-modal--entry-selector .daily-reports-modal__panel {
  width: min(680px, 100%);
  overflow: visible;
}

.daily-reports-modal--entry-selector .daily-reports-modal__body {
  padding-top: 12px;
  overflow: visible;
}

.daily-reports-modal--entry-selector .daily-reports-modal__footer {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.daily-reports-modal--entry-selector .daily-reports-entry-filters {
  width: 100%;
  gap: 14px;
}

.daily-reports-modal--entry-selector .daily-reports-entry-filters .health-filter {
  flex: 1 1 260px;
}

.daily-reports-edit-date {
  display: block;
  margin-bottom: 16px;
}

.daily-reports-edit-date .beugem-date-picker {
  display: block;
  width: 100%;
}

.daily-reports-edit-date .beugem-date-picker__trigger {
  width: 100%;
  min-width: 0;
}

[data-daily-reports-edit-modal] .beugem-calendar {
  width: min(300px, calc(100vw - 32px));
  padding: 10px;
}

.daily-reports-modal--entry-selector .daily-reports-entry-date .beugem-date-picker {
  display: block;
  width: 100%;
}

.daily-reports-modal--entry-selector .daily-reports-entry-date .beugem-date-picker__trigger {
  width: 100%;
  min-width: 0;
}

.daily-reports-modal--entry-selector .beugem-calendar {
  width: min(300px, calc(100vw - 32px));
  padding: 10px;
}

.daily-reports-modal--entry-selector .beugem-calendar__header {
  grid-template-columns: 28px 1fr 28px;
  gap: 2px;
  margin-bottom: 8px;
}

.daily-reports-modal--entry-selector .beugem-calendar__title {
  font-size: 13px;
  line-height: 18px;
}

.daily-reports-modal--entry-selector .beugem-calendar__nav {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.daily-reports-modal--entry-selector .beugem-calendar__nav svg {
  width: 16px;
  height: 16px;
}

.daily-reports-modal--entry-selector .beugem-calendar__weekdays {
  gap: 1px;
  margin-bottom: 4px;
}

.daily-reports-modal--entry-selector .beugem-calendar__weekdays span {
  font-size: 10px;
  line-height: 14px;
}

.daily-reports-modal--entry-selector .beugem-calendar__days {
  gap: 2px;
}

.daily-reports-modal--entry-selector .beugem-calendar__day {
  height: 32px;
  aspect-ratio: auto;
  font-size: 12px;
  border-radius: 7px;
}

.daily-reports-modal--entry-selector .beugem-calendar__footer {
  margin-top: 8px;
  padding-top: 8px;
}

.daily-reports-modal--entry-selector .beugem-calendar__action {
  font-size: 12px;
  line-height: 18px;
  padding: 6px 10px;
}

body.daily-reports-modal-open {
  overflow: hidden;
}

.daily-reports-meal-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.daily-reports-meal-overview[hidden] {
  display: none !important;
}

.daily-reports-medication-overview {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.daily-reports-medication-overview[hidden] {
  display: none !important;
}

.daily-reports-medication-panel {
  padding: 12px 14px;
  border: 1px solid #dbe8f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8fc 100%);
}

.daily-reports-medication-panel__main {
  display: flex;
  align-items: flex-end;
  gap: 14px 18px;
}

.daily-reports-medication-panel__info {
  flex: 1 1 auto;
  min-width: 0;
}

.daily-reports-medication-panel__status-field {
  flex: 0 0 220px;
  width: 220px;
  max-width: 100%;
  margin: 0;
}

.daily-reports-medication-panel .health-filter {
  width: 100%;
  max-width: none;
}

.daily-reports-medication-panel .custom-select {
  width: 100%;
}

.daily-reports-medication-panel--readonly .custom-select.is-readonly .custom-select__button {
  cursor: default;
  background: #fff;
}

.daily-reports-medication-panel__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2933;
}

.daily-reports-medication-panel__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #5c6870;
}

.daily-reports-medication-panel__meta span + span::before {
  content: ' · ';
}

.daily-reports-detail-medications {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.daily-reports-allergy-banner[hidden] {
  display: none !important;
}

.daily-reports-allergy-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #f0caca;
  border-radius: 12px;
  background: #fff4f4;
  color: #8f2d2d;
  font-size: 14px;
  line-height: 20px;
}

.daily-reports-meal-panel.has-allergy-warning {
  border-color: #efb4b4;
  background: #fff8f8;
}

.daily-reports-meal-panel__allergy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daily-reports-meal-panel__allergy-label {
  margin: 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

.daily-reports-meal-panel__allergy-list {
  margin: 0;
  padding-left: 18px;
  color: #8f2d2d;
  font-size: 13px;
  line-height: 18px;
}

.daily-reports-meal-panel__allergy-list li + li {
  margin-top: 4px;
}

.daily-reports-meal-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #dbe4ea;
  border-radius: 12px;
  background: #f8fbfd;
}

.daily-reports-meal-panel__title {
  margin: 0;
  color: #0f4c6e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.daily-reports-meal-panel__menu {
  margin: 0;
  color: #191c1d;
  font-size: 14px;
  line-height: 20px;
}

.daily-reports-meal-panel__menu span {
  color: #6f7885;
  font-weight: 600;
}

.daily-reports-meal-panel__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #41484c;
  font-size: 13px;
  line-height: 18px;
}

.daily-reports-meal-panel__status strong {
  color: #191c1d;
  font-weight: 600;
}

.daily-reports-meal-panel__status-control {
  flex: 1 1 auto;
  min-width: 0;
}

.daily-reports-meal-panel__status-control .custom-select {
  width: 100%;
  max-width: 220px;
}

.daily-reports-meal-panel--medication .daily-reports-meal-panel__status {
  flex-wrap: wrap;
}

.daily-reports-meal-panel.is-missing {
  background: #f8fafc;
  border-color: #e5e7eb;
}

.daily-reports-meal-panel.is-missing .daily-reports-meal-panel__title {
  color: #6b7280;
}

.daily-reports-detail-meals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.daily-reports-student {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.daily-reports-student strong {
  color: #191c1d;
  font-weight: 600;
}

.daily-reports-student small {
  color: #6f7885;
  font-size: 12px;
}

.daily-reports-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.daily-reports-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: normal;
}

.daily-reports-chip.is-positive {
  background: #dcfce7;
  color: #166534;
}

.daily-reports-chip.is-caution {
  background: #ffedd5;
  color: #c2410c;
}

.daily-reports-chip.is-negative {
  background: #fee2e2;
  color: #b91c1c;
}

.daily-reports-chip.is-neutral {
  background: #eef2f6;
  color: #41484c;
}

.daily-reports-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.daily-reports-badge.is-positive {
  background: #dcfce7;
  color: #166534;
}

.daily-reports-badge.is-caution {
  background: #ffedd5;
  color: #c2410c;
}

.daily-reports-badge.is-negative {
  background: #fee2e2;
  color: #b91c1c;
}

.daily-reports-badge.is-neutral {
  background: #eef2f6;
  color: #41484c;
}

.daily-reports-note {
  max-width: 280px;
  color: #41484c;
  line-height: 20px;
}

.daily-reports-note.is-muted {
  color: #9aa3ad;
}

.daily-reports-detail-row td {
  padding: 0;
  background: #f8fafb;
}

.daily-reports-detail-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.daily-reports-detail-row.is-collapsed .daily-reports-detail-panel {
  grid-template-rows: 0fr;
}

.daily-reports-detail-panel__inner {
  min-height: 0;
  overflow: hidden;
}

.daily-reports-detail-row.is-open .daily-reports-detail-panel__inner > .daily-reports-detail {
  opacity: 1;
  transform: translateY(0);
}

.daily-reports-detail-panel__inner > .daily-reports-detail {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.daily-reports-detail-row.is-collapsed .daily-reports-detail-panel__inner > .daily-reports-detail {
  opacity: 0;
  transform: translateY(-6px);
}

.daily-reports-detail {
  padding: 16px 20px 20px 56px;
}

.daily-reports-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.daily-reports-detail-card {
  padding: 14px 16px;
  border: 1px solid #dbe1e6;
  border-radius: 10px;
  background: #ffffff;
}

.daily-reports-detail-card__category {
  margin: 0 0 8px;
  color: #6f7885;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.daily-reports-detail-card__value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.daily-reports-detail-card__note {
  margin: 8px 0 0;
  color: #41484c;
  font-size: 13px;
  line-height: 18px;
}

.daily-reports-detail-card__menu {
  margin: 0;
  color: #5f6b76;
  font-size: 12px;
  line-height: 17px;
}

.daily-reports-detail-card__menu::before {
  content: '·';
  margin: 0 6px 0 2px;
  color: #9aa3ad;
}

.daily-reports-detail-card__activity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: #41484c;
  font-size: 13px;
  line-height: 1;
}

.daily-reports-detail-card__activity-label {
  color: #71787d;
  font-weight: 600;
}

.daily-reports-muted-code {
  color: #9aa3ad;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.daily-reports-enabled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.daily-reports-enabled::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.daily-reports-enabled.is-on {
  color: #166534;
}

.daily-reports-enabled.is-on::before {
  background: #22c55e;
}

.daily-reports-enabled.is-off {
  color: #9aa3ad;
}

.daily-reports-enabled.is-off::before {
  background: #c0c7cc;
}





@media (max-width: 1100px) {
  .daily-reports-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .daily-reports-main {
    padding: 20px 16px 96px;
    gap: 16px;
  }

  .daily-reports-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .daily-reports-page-head__title p {
    font-size: 14px;
    line-height: 20px;
  }

  .daily-reports-refresh {
    align-self: stretch;
    width: 100%;
    justify-content: center;
    min-height: 44px;
    height: 44px;
  }

  .daily-reports-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .daily-reports-stat-card {
    padding: 14px;
    border-radius: 14px;
    gap: 8px;
  }

  .daily-reports-stat-card__label {
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
  }

  .daily-reports-stat-card__label .insight-icon {
    width: 36px;
    height: 36px;
  }

  .daily-reports-stat-card__label h2 {
    min-width: 0;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
  }

  .daily-reports-stat-card strong {
    font-size: 22px;
    line-height: 28px;
  }

  .daily-reports-tabs {
    width: 100%;
    padding: 4px;
    border-radius: 14px;
    background: #eef1f3;
  }

  .daily-reports-tab {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    border-radius: 10px;
    font-size: 14px;
  }

  .daily-reports-entry-card {
    padding: 16px;
    border-radius: 16px;
    gap: 16px;
  }

  .daily-reports-entry-card__head h2 {
    font-size: 18px;
  }

  .daily-reports-entry-selector {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #f3f3f5;
  }

  .daily-reports-entry-selector__summary {
    font-size: 14px;
  }

  .daily-reports-entry-selector .daily-reports-entry-btn {
    width: 100%;
    min-width: 0;
  }

  .daily-reports-entry-row {
    padding: 14px;
    border-radius: 14px;
  }

  .daily-reports-entry-row__fields {
    gap: 10px;
  }

  .daily-reports-entry-actions {
    position: static;
    z-index: auto;
    margin: 0;
    padding: 0;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
    flex-direction: column;
    align-items: stretch;
  }

  .daily-reports-entry-actions__notice {
    margin-right: 0;
    width: 100%;
    order: -1;
  }

  .daily-reports-entry-actions .daily-reports-entry-btn,
  .daily-reports-entry-actions .save-btn {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .health-filters.daily-reports-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .daily-reports-page .health-filter,
  .daily-reports-page .health-filter--search {
    width: 100%;
    min-width: 0;
  }

  .daily-reports-page .health-filter .custom-select,
  .daily-reports-page .health-search-input,
  .daily-reports-entry-filters .daily-reports-entry-date,
  .daily-reports-entry-filters .beugem-date-picker--block {
    width: 100%;
    max-width: none;
  }

  .daily-reports-medication-overview {
    margin-bottom: 12px;
  }

  .daily-reports-meal-panel__status-control,
  .daily-reports-meal-panel__status-control .custom-select {
    max-width: none;
    width: 100%;
  }

  .daily-reports-modal__body .daily-reports-meal-overview {
    grid-template-columns: 1fr;
  }


  .daily-reports-modal:not(.daily-reports-modal--entry-selector) {
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top, 0px)) 12px max(20px, env(safe-area-inset-bottom, 0px));
  }

  .daily-reports-modal:not(.daily-reports-modal--entry-selector) .daily-reports-modal__panel {
    width: 100%;
    max-height: calc(100vh - 64px);
    max-height: min(82dvh, calc(100dvh - 64px));
  }

  .daily-reports-modal:not(.daily-reports-modal--entry-selector) .daily-reports-modal__header {
    padding: 16px 16px 0;
  }

  .daily-reports-modal:not(.daily-reports-modal--entry-selector) .daily-reports-modal__body {
    padding: 16px;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .daily-reports-modal:not(.daily-reports-modal--entry-selector) .daily-reports-modal__footer {
    padding: 12px 16px;
  }

  .daily-reports-table-card {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .daily-reports-table-wrap {
    display: none !important;
  }

  .daily-reports-mobile-list {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  .daily-reports-mobile-empty {
    margin: 0;
    padding: 24px 16px;
    border-radius: 14px;
    background: #ffffff;
    color: #71787d;
    text-align: center;
  }

  .daily-reports-mobile-card {
    overflow: hidden;
    border: 1px solid #e2e8ec;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(25, 28, 29, 0.04);
  }

  .daily-reports-mobile-card__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 10px;
  }

  .daily-reports-mobile-card__head .daily-reports-expand-btn {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .daily-reports-mobile-card__intro {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
  }

  .daily-reports-mobile-card__date {
    color: #71787d;
    font-size: 13px;
    font-weight: 500;
  }

  .daily-reports-mobile-card__student {
    color: #191c1d;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    overflow-wrap: anywhere;
  }

  .daily-reports-mobile-card__head-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .daily-reports-mobile-card__head-actions .edit-btn,
  .daily-reports-mobile-card__head-actions .daily-reports-badge {
    flex-shrink: 0;
  }

  .daily-reports-mobile-card.is-expanded .daily-reports-expand-btn svg {
    transform: rotate(180deg);
  }

  .daily-reports-mobile-card__summary {
    padding: 0 14px 14px;
  }

  .daily-reports-mobile-card__summary-label {
    display: block;
    margin-bottom: 8px;
    color: #71787d;
    font-size: 12px;
    font-weight: 600;
  }

  .daily-reports-mobile-card__body {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    border-top: 1px solid #eef1f3;
  }

  .daily-reports-mobile-card:not(.is-expanded) .daily-reports-mobile-card__body {
    grid-template-rows: 0fr;
    border-top-color: transparent;
  }

  .daily-reports-mobile-card__body-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 14px 14px;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .daily-reports-mobile-card.is-expanded .daily-reports-mobile-card__body-inner {
    padding-top: 14px;
    opacity: 1;
    transform: translateY(0);
  }

  .daily-reports-mobile-card:not(.is-expanded) .daily-reports-mobile-card__body-inner {
    opacity: 0;
    transform: translateY(-6px);
  }

  .daily-reports-mobile-card__detail .daily-reports-detail-grid {
    grid-template-columns: 1fr;
  }

  .daily-reports-mobile-card__note,
  .daily-reports-mobile-card__meta-line {
    margin: 12px 0 0;
    color: #41484c;
    font-size: 14px;
    line-height: 20px;
  }

  .daily-reports-entry-card__head {
    flex-direction: column;
  }

  .daily-reports-pagination {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 28px;
  }

  .daily-reports-pagination .table-pagination-footer__meta {
    align-self: auto;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .daily-reports-pagination .table-pagination-footer__controls {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-self: auto;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    width: auto;
    max-width: 100%;
  }

  .daily-reports-pagination nav {
    margin-left: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .daily-reports-insights {
    grid-template-columns: 1fr;
  }

  .daily-reports-stat-card__label {
    align-items: center;
  }

  .daily-reports-stat-card__label h2 {
    font-size: 14px;
    line-height: 20px;
  }
}

.daily-reports-entry-image {
  grid-column: 1 / -1;
}

.daily-reports-image-upload {
  display: grid;
  gap: 10px;
}

.daily-reports-image-upload__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.daily-reports-image-upload__hint {
  margin: 0;
  font-size: 12px;
  color: #71787d;
}

.daily-reports-image-upload__description {
  display: grid;
  gap: 6px;
}

.daily-reports-image-upload__description > span {
  font-size: 12px;
  font-weight: 500;
  color: #41484c;
}

.daily-reports-image-upload__description textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #c0c7cc;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
}

.daily-reports-image-upload__error {
  margin: 0;
  font-size: 13px;
  color: #ba1a1a;
}

.daily-reports-image-upload__preview {
  margin-top: 2px;
}

.daily-reports-image-upload__preview-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  max-width: 360px;
  padding: 12px;
  border: 1px solid #dbe2e8;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.daily-reports-image-upload__preview-media {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 84px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #dbe2e8;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(241, 245, 247, 0.95)),
    linear-gradient(135deg, #eef3f6 0%, #e7eef2 100%);
}

.daily-reports-image-upload__preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.daily-reports-image-upload__preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8a97a3;
}

.daily-reports-image-upload__preview-fallback svg {
  width: 34px;
  height: 34px;
}

.daily-reports-image-upload__preview-media.has-image .daily-reports-image-upload__preview-fallback {
  display: none;
}

.daily-reports-image-upload__preview-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.daily-reports-image-upload__preview-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #71787d;
}

.daily-reports-image-upload__preview-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #1f2933;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-reports-table__col-image {
  min-width: 88px;
}

.daily-reports-table-image-thumb {
  display: inline-flex;
  padding: 0;
  border: 1px solid #dbe2e8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  vertical-align: middle;
}

.daily-reports-table-image-thumb img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.daily-reports-table-image-thumb:hover,
.daily-reports-table-image-thumb:focus-visible {
  border-color: #7a8a96;
  box-shadow: 0 0 0 2px rgba(122, 138, 150, 0.18);
}

.daily-reports-image-name {
  display: inline-block;
  max-width: 160px;
  font-size: 13px;
  color: #334047;
  word-break: break-all;
}

.daily-reports-detail-image {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #e2e8ec;
  border-radius: 14px;
  background: #f8fafb;
}

.daily-reports-detail-image__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #71787d;
}

.daily-reports-detail-image__description {
  font-size: 13px;
  color: #334047;
  line-height: 1.45;
}

.daily-reports-detail-image__thumb {
  display: inline-flex;
  padding: 0;
  border: 1px solid #dbe2e8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.daily-reports-detail-image__thumb img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.daily-reports-detail-image__thumb:hover,
.daily-reports-detail-image__thumb:focus-visible {
  border-color: #7a8a96;
  box-shadow: 0 0 0 2px rgba(122, 138, 150, 0.18);
}

.daily-reports-mobile-card__image {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.daily-reports-mobile-card__image .daily-reports-detail-image__thumb img {
  width: 56px;
  height: 56px;
}

.daily-reports-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.daily-reports-image-lightbox[hidden] {
  display: none;
}

.daily-reports-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 28, 0.72);
}

.daily-reports-image-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 960px);
  max-height: 90vh;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.daily-reports-image-lightbox__panel img {
  max-width: 100%;
  max-height: calc(90vh - 48px);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  background: #fff;
}

.daily-reports-image-lightbox__caption {
  margin: 0;
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 1.45;
}

.daily-reports-image-lightbox__caption[hidden] {
  display: none;
}

.daily-reports-image-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #334047;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .daily-reports-detail-panel,
  .daily-reports-detail-panel__inner > .daily-reports-detail,
  .daily-reports-mobile-card__body,
  .daily-reports-mobile-card__body-inner,
  .daily-reports-expand-btn.health-med-expand svg {
    transition: none;
  }
}
