/* Отчёт ученика в стиле Google Таблиц: всегда светлый «лист», независимо от темы CRM */
.sheet {
  --sh-bg: #ffffff;
  --sh-alt: #f6f8fc;
  --sh-line: #b7b7b7;
  --sh-text: #1f1f1f;
  --sh-muted: #5f6368;
  --sh-info: #2d5f45;      /* зелёная шапка «Информация» */
  --sh-info-tab: #3c7a59;
  --sh-log: #4a56a6;       /* фиолетовая шапка журнала */
  --sh-log-tab: #5b67b8;
  color-scheme: light;
  background: var(--sh-bg);
  color: var(--sh-text);
  font: 13px/1.35 Roboto, Arial, "Segoe UI", sans-serif;
  border-radius: 10px;
  padding: 14px 14px 18px;
  border: 1px solid #dadce0;
}
.sheet-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sheet-block + .sheet-block { margin-top: 22px; }

/* «вкладка» над таблицей, как у именованных таблиц в Google Sheets */
.sheet-tab {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; font-size: 13px;
  padding: 6px 12px; border-radius: 10px 10px 0 0;
}
.sheet-tab svg { width: 14px; height: 14px; opacity: .85; }
.sheet-tab.info { background: var(--sh-info-tab); }
.sheet-tab.log { background: var(--sh-log-tab); }

.sheet table { border-collapse: collapse; width: 100%; min-width: 760px; background: var(--sh-bg); }
.sheet th, .sheet td {
  border: 1px dashed var(--sh-line); padding: 6px 8px; text-align: left; vertical-align: middle;
  color: var(--sh-text); font-size: 13px; text-transform: none; letter-spacing: 0;
}
.sheet thead th { color: #fff; font-weight: 600; border-color: rgba(255, 255, 255, .25); white-space: nowrap; }
.sheet thead th .th { display: flex; align-items: center; gap: 6px; }
.sheet thead th .th .caret { margin-left: auto; opacity: .8; font-size: 11px; }
.sheet thead th svg { width: 14px; height: 14px; flex-shrink: 0; }
.sheet .info-table thead th { background: var(--sh-info); }
.sheet .log-table thead th { background: var(--sh-log); }
.sheet .info-table td { padding: 10px 8px; white-space: pre-line; }
.sheet .log-table tbody tr:nth-child(even) td { background: var(--sh-alt); }
.sheet td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet td.date { text-align: right; white-space: nowrap; width: 120px; }
.sheet td.att { text-align: center; font-size: 15px; width: 110px; }
.sheet td.topic { min-width: 200px; white-space: pre-wrap; }
.sheet td.comment { min-width: 160px; white-space: pre-wrap; }
.sheet td .sub { display: block; color: var(--sh-muted); font-size: 11.5px; margin-top: 2px; }
.sheet tr.upcoming td { color: var(--sh-muted); }
.sheet tr.cancel td.att { color: var(--sh-muted); font-size: 12px; }
.sheet tr.clickable { cursor: pointer; }
.sheet tr.clickable:hover td { background: #e8f0fe; }

/* «чипы» выпадающих списков Google Sheets */
.sh-chip {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
  min-width: 96px; max-width: 170px; padding: 2px 8px 2px 10px; border-radius: 12px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: #e8eaed; color: #3c4043;
}
.sh-chip::after { content: "▾"; font-size: 10px; opacity: .7; }
.sh-chip.empty { color: transparent; }
.sh-chip.green { background: #d4edbc; color: #11734b; }
.sh-chip.yellow { background: #ffe5a0; color: #7a4f01; }
.sh-chip.red { background: #ffcfc9; color: #b10202; }
.sh-chip.gray { background: #e8eaed; color: #3c4043; }

.sheet-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sheet-head h1 { font-size: 20px; margin: 0; color: var(--sh-text); }
.sheet-head .muted { color: var(--sh-muted); }
.sheet-head img { width: 34px; height: 34px; border-radius: 8px; }
.sheet-foot { color: var(--sh-muted); font-size: 12px; margin-top: 12px; }

@media print {
  .no-print { display: none !important; }
  .sheet { border: none; padding: 0; }
  .sheet table { min-width: 0; }
}
