/* styles-equipment-report.css — «Отчеты → Отчет оборудования» (владелец 29.09.2026).
   Рамка, тулбар, фильтр, панели — классы «Отчёта по целям» (styles-report-fact*.css);
   здесь только своё: плитки часов, экономика, рекомендации, причины, таблица станков.
   Цвета — как в отчёте на телефоне: зелёный = заработали, жёлтый = можно вернуть. */

/* Лист на весь экран (высота — report-fact-mode): таблица станков тянется до низа и листается
   внутри; на низком экране листается весь лист. */
.eqd-shell { gap: 8px; overflow-y: auto; }
.eqd-shell > * { flex: 0 0 auto; }

/* Календарь в чипе: нажатие открывает выбор месяца / дня. */
.eqd-cal { position: relative; cursor: pointer; }
.eqd-cal:hover { filter: brightness(1.14); }
.eqd-cal input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; color-scheme: dark; }

.eqd-crumb { display: flex; align-items: center; gap: 12px; padding: 2px 4px; font-size: 14px; color: #eef3fb; }

/* Плитки: Загрузка / Простой / Ремонт / Работа. */
.eqd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.eqd-kpi {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 86px; padding: 12px 16px;
  border-radius: 14px; border: 1px solid rgba(106, 141, 204, 0.45); background: linear-gradient(180deg, #233f78, #203763);
  box-shadow: inset 0 1px 0 rgba(204, 223, 255, 0.08); color: #eef3fb;
}
.eqd-kpi-label { font-size: 12px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: #a3cbff; }
.eqd-kpi-n { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.eqd-kpi.is-green { background: linear-gradient(135deg, #2f5d4d, #25463f); border-color: rgba(114, 155, 135, 0.7); color: #8fe0b0; }
.eqd-kpi.is-green .eqd-kpi-label { color: #8fe0b0; }
.eqd-kpi.is-amber { background: linear-gradient(135deg, #574a2f, #3e3a33); border-color: rgba(154, 133, 93, 0.7); color: #f3cd85; }
.eqd-kpi.is-amber .eqd-kpi-label { color: #f3cd85; }

/* Экономика · Рекомендации · Причины простоя. */
.eqd-panels { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 8px; }
.eqd-panel { gap: 10px; overflow: visible; }
.eqd-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: #a3cbff; }
.eqd-good { color: #8fe0b0 !important; }
.eqd-soft { color: #f3cd85 !important; }

.eqd-eco { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: baseline; font-size: 13px; }
.eqd-eco span { color: #a7bde0; }
.eqd-eco b { text-align: right; font-weight: 700; color: #eef3fb; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eqd-sep { grid-column: 1 / -1; border-top: 1px solid rgba(120, 150, 210, 0.22); }
.eqd-eco .eqd-total { font-size: 14.5px; font-weight: 800; color: #eef3fb; }

/* Рекомендация: текст на всю ширину (переносится), сумма отдельной строкой справа — не наезжают. */
.eqd-recs { margin: 0; padding-left: 18px; display: grid; gap: 9px; font-size: 13px; color: #eef3fb; }
.eqd-recs li > b { display: block; text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eqd-rec-total { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid rgba(120, 150, 210, 0.22); font-weight: 800; color: #eef3fb; }

.eqd-reasons { display: grid; gap: 10px; }
.eqd-reason { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; color: #eef3fb; }
.eqd-rb { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgba(8, 18, 36, 0.6); overflow: hidden; }
.eqd-rb i { display: block; height: 100%; background: #e0555f; }

/* «!» — пояснение к экономике по нажатию. */
.eqd-q { position: relative; text-transform: none; letter-spacing: 0; }
.eqd-q summary { list-style: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(122, 171, 240, 0.5); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #daebff; cursor: pointer; }
.eqd-q summary::-webkit-details-marker { display: none; }
.eqd-q[open] summary { background: rgba(58, 127, 212, 0.35); }
.eqd-q ul { position: absolute; right: 0; top: 30px; z-index: 20; width: 300px; margin: 0; padding: 10px 12px 10px 26px; display: flex; flex-direction: column; gap: 5px; border: 1px solid rgba(106, 141, 204, 0.45); border-radius: 12px; background: #0b1834; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); font-size: 12px; font-weight: 500; color: #a7bde0; }
.eqd-q ul b { color: #eef3fb; }

/* Загрузка станков — строка нажимается (подсветка + «›»), открывает отчёт по станку. */
.eqd-legend { display: inline-flex; gap: 14px; font-size: 11.5px; font-weight: 600; color: #a7bde0; text-transform: none; letter-spacing: 0; }
.eqd-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
.eqd-legend i.w, .eqd-track i.w { background: #3fbf7f; }
.eqd-legend i.i, .eqd-track i.i { background: #e0555f; }
.eqd-legend i.r, .eqd-track i.r { background: #e7a93a; }
.eqd-shell > .eqd-machines { flex: 1 1 0; min-height: 240px; }
.eqd-shell > .eqd-panels:last-child { flex: 1 1 auto; }
.eqd-table-wrap { flex: 1 1 0; min-height: 0; overflow: auto; }
.eqd-table thead th { position: sticky; top: 0; z-index: 1; }
.eqd-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 12.5px; }
.eqd-table th { padding: 8px 10px; text-align: left; white-space: nowrap; font-size: 11px; font-weight: 700; color: #a7bde0; background: #233f78; border-bottom: 1px solid rgba(120, 150, 210, 0.22); }
.eqd-table td { padding: 9px 10px; white-space: nowrap; color: #eef3fb; border-bottom: 1px solid rgba(120, 150, 210, 0.22); }
.eqd-table .t-right { text-align: right; font-variant-numeric: tabular-nums; }
.eqd-row { cursor: pointer; }
.eqd-row:hover td { background: rgba(47, 111, 208, 0.18); }
.eqd-go { width: 30px; text-align: right; color: #7f95b8; font-size: 15px; }
.eqd-row:hover .eqd-go { color: #eef3fb; }
.eqd-sum td { font-weight: 800; background: rgba(8, 18, 36, 0.45); }
.eqd-load { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.eqd-load > span { flex: 1; }
.eqd-load b { width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.eqd-track { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: rgba(8, 18, 36, 0.6); }
.eqd-track i { display: block; height: 100%; }
.eqd-low { color: #f3cd85; }

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