/* Powłoka EnergyApp i style wspólne, przeniesione z index_string paneli. */

html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; background: #eef2f5; font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; color: #15212b; }
* { box-sizing: border-box; }
.num { font-variant-numeric: tabular-nums; }
:root { --Dash-Fill-Interactive-Strong: #0e4d64; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd8e0; border-radius: 6px; }

/* Listy rozwijane: własne przewijanie i pierwszeństwo nad sąsiadami (panel PV standalone). */
.Select-menu-outer, .VirtualizedSelectFocusedOption { max-height: 280px; overflow-y: auto; z-index: 60; }
.Select-menu { max-height: 276px; }
.Select.is-open { position: relative; z-index: 60; }

/* Wybór dat (panele danych i prognozy). */
.DateInput_input { font-size: 13px; padding: 6px 8px; font-family: Inter, 'Segoe UI', system-ui, sans-serif; }
.DateRangePickerInput { border-radius: 7px; border: 1px solid #e5ebf0; }

/* Menu górne */
.ea-menu { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 22px;
  padding: 0 24px; height: 46px; background: #ffffff; border-bottom: 1px solid #e5ebf0; }
.ea-logo { font-size: 16px; color: #15212b; text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.ea-logo b { color: #0e4d64; }
.ea-nawigacja { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; flex: 1; min-width: 0; }
.ea-link { padding: 6px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: #5f6f7c;
  text-decoration: none; white-space: nowrap; }
.ea-link:hover { background: #f4f7f9; color: #15212b; }
.ea-link.ea-aktywny { background: #0e4d64; color: #ffffff; }
.ea-obiekt { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ea-obiekt-lista { width: 230px; font-size: 13px; }
.ea-obiekt-lista .Select-control { height: 32px; border-radius: 7px; border-color: #e5ebf0; }
@media (max-width: 760px) { .ea-obiekt-lista { width: 150px; } .ea-menu { gap: 12px; padding: 0 12px; } }

/* Strona startowa */
.ea-start { max-width: 1180px; margin: 0 auto; padding: 40px 24px 56px; }
.ea-start-tytul { margin: 0 0 6px; font-size: 28px; font-weight: 700; }
.ea-start-opis { color: #5f6f7c; font-size: 14px; margin-bottom: 28px; }
.ea-kafle { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ea-kafel { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 16px; background: #ffffff;
  border-radius: 12px; text-decoration: none; color: #15212b; border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(21,33,43,0.06), 0 1px 2px rgba(21,33,43,0.04); transition: border-color 0.12s, transform 0.12s; }
.ea-kafel:hover { border-color: #3d8ea6; transform: translateY(-1px); }
.ea-kafel-nr { font-size: 11px; font-weight: 600; color: #3d8ea6; letter-spacing: 0.08em; }
.ea-kafel-nazwa { font-size: 16px; font-weight: 600; }
.ea-kafel-opis { font-size: 13px; line-height: 1.5; color: #5f6f7c; flex: 1; }
.ea-kafel-stopka { font-size: 12.5px; font-weight: 600; color: #0e4d64; margin-top: 4px; }
.ea-kafel-blad { color: #b23a48; }

/* Przycisk eksportu tabel (DataTable): wygląd przycisku drugorzędnego. */
button.export { padding: 5px 12px; background: #ffffff; color: #0e4d64; border: 1px solid #0e4d64;
  border-radius: 7px; font-family: Inter, 'Segoe UI', system-ui, sans-serif; font-size: 12px; font-weight: 600;
  cursor: pointer; margin-bottom: 8px; }
button.export:hover { background: #f4f7f9; }
