/* Nestaro Hub – motywy: jasny (domyślny, mieszany) i ciemny (html[data-theme=dark], kolory w theme-dark.css). */

/* ---------- jasny: ciepłe tło, białe boksy z wyraźną ramką ---------- */
body.nz-fullscreen, body.nu-staff-body, body.nu-guest-body { background: #efe7e0; }
.nz-app, .nu-staff, .nu-pg, .nu-day { --nz-bg: #efe7e0; --s-bg: #efe7e0; --g-bg: #efe7e0; }
.nu-guest-body { --nu-bg: #efe7e0; }

/* ---------- ciemny: poprawki ponad wygenerowane kolory ---------- */
html[data-theme=dark] { color-scheme: dark; }
html[data-theme=dark] body.nz-fullscreen, html[data-theme=dark] body.nu-staff-body, html[data-theme=dark] body.nu-guest-body,
html[data-theme=dark] .nz-app, html[data-theme=dark] .nu-staff, html[data-theme=dark] .nu-pg { background: #100708; }
html[data-theme=dark] .nz-app, html[data-theme=dark] .nu-staff, html[data-theme=dark] .nu-pg, html[data-theme=dark] .nu-day { --nz-bg: #100708; --s-bg: #100708; --g-bg: #100708; }
html[data-theme=dark] .nu-guest-body { --nu-bg: #100708; }

/* ---------- przełącznik motywu ---------- */
.nu-thm { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; padding: 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #f6ece6; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nu-thm svg { width: 18px; height: 18px; }
.nu-thm .sun, html[data-theme=dark] .nu-thm .moon { display: none; }
html[data-theme=dark] .nu-thm .sun { display: block; }
.nu-thm.is-light { border-color: #e2d6ce; background: #fff; color: #220204; }
html[data-theme=dark] .nu-thm.is-light { border-color: #4a3537; background: #2a1a1c; color: #f1e3d9; }
.nu-thm-abs { position: absolute; z-index: 2; right: 16px; top: calc(14px + env(safe-area-inset-top)); }
.nu-ab-r { display: flex; align-items: center; gap: 8px; }
.nu-appbar .nu-thm { width: 32px; height: 32px; border-radius: 4px; }
.nz-top .nu-thm, .nu-s-head .nu-thm { width: 36px; height: 36px; }

/* ciemny: pasek zakładek aplikacji zespołu */
html[data-theme=dark] body .ek-nav { background: rgba(42, 26, 28, .96); border-color: #4a3537; }
html[data-theme=dark] body .ek-name { color: #f1e3d9; }
html[data-theme=dark] body .ek-tab { background: transparent; border-color: #4a3537; color: #cdbcb8; }
html[data-theme=dark] body .ek-tab.is-on { background: #f1e3d9; border-color: #f1e3d9; color: #220204; }
html[data-theme=dark] .nu-s-mday.is-sel b { color: #220204; }
html[data-theme=dark] .nu-s-mday.is-sel .nu-s-mdots small { color: #5a3a32; }

/* telefon: tytuł w nagłówku zawsze w jednej linii (mniejsza czcionka, mniejsze przyciski) */
@media (max-width: 600px) {
	.nz-top { flex-wrap: nowrap; }
	.nz-top .nz-brand, .nu-s-head .nu-s-brand, .nu-day-brand { flex: 1 1 auto; min-width: 0; }
	.nz-top .nz-brand > div, .nu-s-brand > div, .nu-day-brand > div { min-width: 0; }
	.nz-top .nz-brand strong, .nu-s-head .nu-s-brand b, .nu-day-brand b { font-size: 19px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.nz-top .nz-brand small, .nu-s-brand small, .nu-day-brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.nz-top .nz-logo-img, .nu-s-brand img, .nu-day-brand img { height: 32px; }
	.nz-top .nz-top-actions, .nu-s-head .nu-s-actions, .nu-day-hacts { flex: none; gap: 5px; }
	.nz-top .nz-btn:not(.nz-fab), .nz-top .nu-thm, .nz-top .nz-avatar,
	.nu-s-head .nu-s-actions .nu-s-btn:not(.nu-s-fab), .nu-s-head .nu-thm,
	.nu-day-hbtn, .nu-day-head .nu-thm { width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; }
}
@media (max-width: 370px) {
	.nz-top .nz-brand strong, .nu-s-head .nu-s-brand b, .nu-day-brand b { font-size: 17px !important; }
}
/* Wspólne przyciski nagłówka we wszystkich zakładkach aplikacji (jak w Zadaniach) */
.hub-acts { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.hub-acts .hub-b, .hub-acts .nu-thm { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 0; margin: 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); color: #f6ece6; box-shadow: none; font: inherit; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hub-acts svg { width: 18px; height: 18px; }
.hub-acts .nz-bell-label, .hub-acts .nz-me-name, .hub-acts .nz-lbl { display: none; }
.hub-acts .nz-ico { display: inline-grid; place-items: center; font-style: normal; }
.hub-acts .nz-me.hub-b { border: 0; background: none; }
.hub-acts .nz-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #a8875a; color: #220204; font-weight: 700; font-size: 13px; }
.hub-acts .nz-me-lang { position: absolute; right: -5px; bottom: -4px; padding: 2px 3px; font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: .04em; border-radius: 5px; border: 1px solid #a8875a; background: #220204; color: #f6ece6; }
.hub-acts .nz-bell-on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #2e9d5b; }
.hub-on > .nu-lng, .hub-on > .nu-thm, .hub-on > .nu-thm-abs, .hub-on > .nu-day-hbtn, .hub-on > .nu-s-logout { display: none !important; }
.nu-pg-head > .hub-acts { position: absolute; z-index: 2; right: 16px; top: calc(14px + env(safe-area-inset-top)); }
.hub-on > #nu-block, .hub-on > #nu-push { display: none !important; }
/* Motyw i powiadomienia są w okienku profilu – w nagłówku Zadań ich nie pokazujemy */
.nz-top-actions .nu-thm, .nz-top-actions .nz-bell { display: none !important; }
.nu-lng-box .hub-prof h4 { margin: 20px 0 8px; }
.hub-prof-row { display: grid; }
.hub-prof-row .nu-lng-opt { width: 100%; text-align: left; }
/* Jednakowy baner na wszystkich zakładkach (Zadania, Usługi, Na jutro, Panel gościa) */
header.nz-top, header.nu-s-head, header.nu-day-head, header.nu-pg-head { box-sizing: border-box !important; min-height: 74px !important; padding: 14px 16px 16px !important; display: flex !important; align-items: center !important; }
.nz-brand, .nu-s-brand, .nu-day-brand, .nu-pg-brand { display: flex !important; align-items: center !important; gap: 10px !important; min-width: 0; margin: 0 !important; }
.nz-brand img, .nu-s-brand img, .nu-day-brand img, .nu-pg-brand img { width: auto !important; height: 32px !important; margin: 0 !important; flex: none; }
.nz-brand strong, .nu-s-brand b, .nu-day-brand b, .nu-pg-brand b { display: block !important; font-family: "Cormorant Garamond", Georgia, serif !important; font-size: 21px !important; line-height: 25px !important; font-weight: 600 !important; margin: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nz-brand small, .nu-s-brand small, .nu-day-brand small, .nu-pg-brand small { display: block !important; font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif !important; font-size: 11px !important; line-height: 15px !important; margin: 2px 0 0 !important; letter-spacing: .18em !important; text-transform: uppercase !important; }
