/* Raporty: klikalne kafelki, lista z kafelka i zestawienie godzin (grafik / system / lista fizyczna) */

.reports-premium a.report-kpi.is-link {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.reports-premium a.report-kpi.is-link:hover,
.reports-premium a.report-kpi.is-link:focus-visible {
    border-color: #93c5fd;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .12);
    transform: translateY(-2px);
}

.reports-premium a.report-kpi.is-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.reports-premium a.report-kpi.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .18), 0 14px 30px rgba(37, 99, 235, .12);
}

.report-kpi-cta {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    margin-top: 10px;
    color: #2563eb;
    font-size: 8px;
    font-weight: 800;
}

.report-kpi-cta .icon {
    width: 11px;
    height: 11px;
}

.report-kpi.is-active .report-kpi-cta .icon {
    transform: rotate(90deg);
}

/* Lista z kafelka */
.report-focus {
    padding: 0;
    overflow: hidden;
    border-radius: 17px;
    scroll-margin-top: 90px;
}

.report-focus-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #e8eef6;
    background: linear-gradient(145deg, #fff, #f8fbff);
}

.report-focus-head h2 {
    margin: 0;
    color: #172033;
    font-size: 16px;
}

.report-focus-head p {
    margin: 3px 0 0;
    color: #708096;
    font-size: 9px;
}

.report-focus-head .eyebrow {
    margin: 0 0 3px;
    color: #2563eb;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.report-focus-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #2563eb;
    background: #eaf2ff;
}

.report-focus.is-late .report-focus-icon { color: #ea580c; background: #fff7ed; }
.report-focus.is-overtime .report-focus-icon { color: #7c3aed; background: #f5f3ff; }
.report-focus.is-attention .report-focus-icon { color: #dc2626; background: #fef2f2; }
.report-focus.is-early .report-focus-icon { color: #059669; background: #ecfdf5; }
.report-focus.is-breaks .report-focus-icon { color: #0284c7; background: #f0f9ff; }

.report-focus-list {
    display: grid;
}

.report-focus-row + .report-focus-row {
    border-top: 1px solid #eef2f7;
}

.report-focus-row summary {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto 16px;
    gap: 12px;
    align-items: center;
    padding: 11px 18px;
    cursor: pointer;
    list-style: none;
}

.report-focus-row summary::-webkit-details-marker { display: none; }

.report-focus-row summary:hover { background: #f8fbff; }

.report-focus-row[open] summary > .icon { transform: rotate(180deg); }

.report-focus-row summary > .icon {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    transition: transform .15s ease;
}

.report-focus-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #1d4ed8;
    background: #eaf2ff;
    font-size: 10px;
    font-weight: 800;
}

.report-focus-name strong,
.report-focus-name small,
.report-focus-value small,
.report-focus-value strong {
    display: block;
}

.report-focus-name strong { color: #1e293b; font-size: 11px; }
.report-focus-name small,
.report-focus-value small { color: #8492a6; font-size: 8px; }
.report-focus-value { text-align: right; }
.report-focus-value strong { color: #172033; font-size: 13px; }

.report-focus-employee {
    padding: 5px 9px;
    border: 1px solid #dbe5f2;
    border-radius: 999px;
    color: #1d4ed8;
    background: #fff;
    font-size: 8px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.report-focus-days {
    display: grid;
    gap: 1px;
    margin: 0 18px 12px 64px;
    overflow: hidden;
    border: 1px solid #e8eef6;
    border-radius: 10px;
    background: #e8eef6;
}

.report-focus-day {
    display: grid;
    grid-template-columns: 80px 150px 90px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    font-size: 10px;
}

.report-focus-day small { color: #8492a6; }
.report-focus-day strong { text-align: right; }

/* Zakładki karty pracy */
.report-card-tabs {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 12px;
    padding: 4px;
    border-radius: 11px;
    background: #f1f5f9;
}

.report-card-tabs a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    color: #475569;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.report-card-tabs a .icon { width: 14px; height: 14px; }

.report-card-tabs a.is-active {
    color: #1d4ed8;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

.report-card-tabs-badge {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #dc2626;
    font-size: 9px;
    font-style: normal;
}

/* Zestawienie godzin */
.hours-recon {
    scroll-margin-top: 90px;
}

.report-grid.lower-grid.is-hours-card {
    grid-template-columns: minmax(0, 1fr);
}

.hours-recon-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.hours-recon-kpis article {
    position: relative;
    padding: 13px 15px;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #f8fafc;
}

.hours-recon-kpis article > small,
.hours-recon-kpis article > strong,
.hours-recon-kpis article > span { display: block; }
.hours-recon-kpis article > small { color: #64748b; font-size: 11px; font-weight: 700; }
.hours-recon-kpis article > strong { margin-top: 4px; color: #173a8f; font-size: 21px; line-height: 1.15; }
.hours-recon-kpis article > span { margin-top: 3px; color: #8492a6; font-size: 11px; }
.hours-recon-kpis .is-alert { border-color: #fecaca; background: #fef2f2; }
.hours-recon-kpis .is-alert > strong { color: #b91c1c; }
.hours-recon-kpis .is-ok { border-color: #bbf7d0; background: #f0fdf4; }
.hours-recon-kpis .is-ok > strong { color: #047857; }

/* Próg schowany w karcie „Do sprawdzenia” – tam, gdzie działa */
.hours-recon-threshold { margin-top: 8px; }

.hours-recon-threshold summary {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.hours-recon-threshold summary::-webkit-details-marker { display: none; }
.hours-recon-threshold summary::after { content: "›"; transition: transform .15s ease; }
.hours-recon-threshold[open] summary::after { transform: rotate(90deg); }

.hours-recon-threshold form {
    position: absolute;
    z-index: 5;
    top: calc(100% + 6px);
    right: 0;
    display: grid;
    gap: 8px;
    width: 250px;
    padding: 14px;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.hours-recon-threshold label { color: #334155; font-size: 12px; font-weight: 700; }
.hours-recon-threshold-field { display: flex; gap: 8px; align-items: center; color: #64748b; font-size: 12px; }
.hours-recon-threshold-field input {
    width: 72px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}
.hours-recon-threshold form .button { justify-content: center; min-height: 38px; }
.hours-recon-threshold form small { color: #8492a6; font-size: 10px; }

/* Pasek: szukaj | filtr | pobierz – jedna wysokość, wyrównane grupy */
.hours-recon-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.hours-recon-search {
    display: flex;
    flex: 1 1 220px;
    gap: 8px;
    align-items: center;
    max-width: 320px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #fff;
}

.hours-recon-search:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.hours-recon-search .icon { flex: none; width: 16px; height: 16px; color: #94a3b8; }
.hours-recon-search input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }

.hours-recon-segment {
    display: inline-flex;
    height: 40px;
    padding: 3px;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #fff;
}

.hours-recon-segment label {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 0 12px;
    border-radius: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.hours-recon-segment input { position: absolute; opacity: 0; pointer-events: none; }
.hours-recon-segment label i {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 11px;
    font-style: normal;
}

.hours-recon-segment label:has(input:checked) { color: #fff; background: #1d4ed8; }
.hours-recon-segment label:has(input:checked) i { color: #1d4ed8; background: #fff; }
.hours-recon-segment label.is-alert i { color: #b91c1c; background: #fee2e2; }
.hours-recon-segment label.is-alert:has(input:checked) { background: #dc2626; }
.hours-recon-segment label.is-alert:has(input:checked) i { color: #b91c1c; background: #fff; }
.hours-recon-segment label:has(input:focus-visible) { outline: 2px solid #2563eb; outline-offset: 1px; }

.hours-recon-downloads {
    display: inline-flex;
    align-items: center;
    height: 40px;
    margin-left: auto;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #fff;
}

.hours-recon-downloads > span {
    padding: 0 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.hours-recon-downloads a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    border-left: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.hours-recon-downloads a:hover { color: #1d4ed8; background: #eff6ff; }
.hours-recon-downloads a:last-child { border-radius: 0 9px 9px 0; }
.hours-recon-downloads > span { display: inline-flex; gap: 2px; align-items: center; }
.hours-recon-downloads .icon { width: 15px; height: 15px; }

.hours-recon-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0 2px 12px;
    color: #64748b;
    font-size: 11px;
}

.hours-recon-legend span { display: inline-flex; gap: 6px; align-items: center; }
.hours-recon-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.hours-recon-legend i.is-red { border-left: 3px solid #dc2626; background: #fee2e2; }
.hours-recon-legend i.is-yellow { border: 1px solid #fcd34d; background: #fffbeb; }
.hours-recon-legend b { color: #334155; }
.hours-recon-locked {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 12px;
    padding: 9px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: #1e3a8a;
    background: #eff6ff;
    font-size: 12px;
}

.hours-recon-scroll {
    max-height: none;
}

.hours-recon-table th small {
    color: inherit;
    font-size: 9px;
    font-weight: 500;
    opacity: .75;
}

.hours-recon-table .num {
    text-align: right;
    white-space: nowrap;
}

.hours-recon-table td small {
    display: block;
    color: #8492a6;
    font-size: 10px;
}

.hours-recon-table td small.is-warn { color: #c2410c; }

.hours-recon-person strong { color: #1e293b; }

.hours-recon-table tr.is-flagged td {
    background: #fef2f2;
}

.hours-recon-table tr.is-flagged td:first-child {
    box-shadow: inset 4px 0 0 #dc2626;
}

.hours-recon-table .is-bad {
    color: #b91c1c;
    font-weight: 800;
}

.hours-recon-paper-head { background: #fef3c7 !important; color: #78350f !important; }

.hours-recon-paper input {
    width: 92px;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    background: #fffbeb;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.hours-recon-paper input:focus {
    border-color: #2563eb;
    outline: 2px solid rgba(37, 99, 235, .2);
    background: #fff;
}

.hours-recon-paper input.is-invalid { border-color: #dc2626; }

.hours-recon-table tfoot td {
    border-top: 2px solid #cbd5e1;
    font-weight: 800;
    background: #f8fafc;
}

.hours-recon-table tr[hidden] { display: none; }

.hours-recon-save {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    padding: 10px 0 2px;
    background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0));
}

.hours-recon-save p { display: grid; gap: 2px; margin: 0; text-align: right; }
.hours-recon-save p strong { color: #334155; font-size: 12px; }
.hours-recon-save p small { color: #8492a6; font-size: 11px; }
.hours-recon-save.is-dirty p strong { color: #b45309; }
.hours-recon-save.is-dirty .button { box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.hours-recon-paper input.is-changed { border-color: #2563eb; background: #fff; }
.reports-premium .hours-recon-table td.hours-recon-diff small { font-size: 10px; font-weight: 500; }
.reports-premium .hours-recon-table td.hours-recon-diff.is-bad small { color: #b91c1c; }
.hours-recon-empty td { padding: 18px !important; color: #64748b; text-align: center; }

.hours-recon-days {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #dbe5f2;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff, #fff 120px);
}

.hours-recon-days-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.hours-recon-days-head h4 { margin: 0; color: #172033; font-size: 17px; }
.hours-recon-days-head p { margin: 4px 0 0; color: #64748b; font-size: 12px; }
.hours-recon-days-head .eyebrow { margin: 0 0 4px; color: #2563eb; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hours-recon-days-head .button { flex: none; }

.hours-recon-days-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hours-recon-days-chips span {
    padding: 6px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    background: #fff;
    font-size: 12px;
}

.hours-recon-days-chips b { color: #172033; }
.hours-recon-days-chips .is-bad { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.hours-recon-days-chips .is-bad b { color: #b91c1c; }
.hours-recon-days-chips .is-warn { border-color: #fed7aa; color: #c2410c; background: #fff7ed; }
.hours-recon-days-chips .is-muted { color: #64748b; background: #f8fafc; }

.hours-recon-days-table td { vertical-align: middle; }
.reports-premium .hours-recon-days-table td strong { display: block; }
.hours-recon-day small::first-letter { text-transform: uppercase; }
.hours-recon-none { color: #94a3b8; font-size: 12px; }
.hours-recon-note {
    display: inline-block;
    margin: 1px 4px 1px 0;
    padding: 3px 8px;
    border-radius: 6px;
    color: #475569;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 650;
}
.hours-recon-note.is-bad { color: #b91c1c; background: #fee2e2; }
.hours-recon-days-table tr.is-future td { color: #94a3b8; background: #fafbfc; }
.hours-recon-days-table tr.is-future td strong { color: #64748b; }
/* Nadpisanie globalnych stylów tabel raportu (inaczej numer pracownika jest większy niż nazwisko). */
.reports-premium .hours-recon-table td strong {
    display: inline;
    color: #1e293b;
    font-size: 12px;
}

.reports-premium .hours-recon-table td small {
    display: block;
    margin-top: 2px;
    color: #8492a6;
    font-size: 10px;
    font-weight: 500;
}

.reports-premium .hours-recon-table td small.is-warn { color: #c2410c; }
.reports-premium .hours-recon-table td small.is-bad { color: #b91c1c; }
.reports-premium .hours-recon-table td.hours-recon-person strong { display: block; }

/* Ikonki „i” (komponent x-help) */
.help-tip {
    width: 16px;
    height: 16px;
    margin-left: 3px;
    vertical-align: -3px;
    cursor: help;
}

.help-tip .icon { width: 10px; height: 10px; }
.help-tip:hover,
.help-tip:focus-visible { border-color: #2563eb; background: #eff6ff; }

.help-tip::after {
    width: min(270px, 78vw);
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.5;
    text-align: left;
    text-transform: none;
    transition-delay: 150ms;
}

.help-tip.is-left::after { left: -6px; transform: translate(0, 4px); }
.help-tip.is-right::after { right: -6px; left: auto; transform: translate(0, 4px); }
.help-tip.is-below::after { top: calc(100% + 9px); bottom: auto; }
.help-tip.is-left:hover::after,
.help-tip.is-left:focus::after,
.help-tip.is-right:hover::after,
.help-tip.is-right:focus::after { transform: translate(0, 0); }

/* Nagłówki tabeli: dymek w dół, żeby nie ucinał go przewijany kontener. */
.hours-recon-toolbar { position: relative; z-index: 9; }
.hours-recon-table thead th { overflow: visible; vertical-align: middle; white-space: nowrap; }
.hours-recon-table thead th:has(.help-tip:hover),
.hours-recon-table thead th:has(.help-tip:focus) { z-index: 8; }
.hours-recon-kpis article:has(.help-tip:hover),
.hours-recon-kpis article:has(.help-tip:focus) { z-index: 8; }
.hours-recon-scroll { padding-bottom: 2px; }

@media (max-width: 900px) {
    .hours-recon-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hours-recon-downloads { margin-left: 0; }
    .hours-recon-threshold form { right: auto; left: 0; }
    .report-focus-day { grid-template-columns: 60px minmax(0, 1fr) auto; }
    .report-focus-day > span:nth-child(4) { display: none; }
    .report-focus-day .report-day-link { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 560px) {
    .report-focus-head { grid-template-columns: 36px minmax(0, 1fr); }
    .report-focus-head .button { grid-column: 1 / -1; justify-self: start; }
    .report-focus-row summary { grid-template-columns: 30px minmax(0, 1fr) auto 14px; gap: 8px; padding: 10px 12px; }
    .report-focus-employee { display: none; }
    .report-focus-days { margin: 0 12px 10px; }
    .report-card-tabs { display: flex; }
    .report-card-tabs a { flex: 1; justify-content: center; padding: 0 8px; }
    .hours-recon-search { flex: 1 1 100%; max-width: none; }
    .hours-recon-segment, .hours-recon-downloads { flex: 1 1 100%; }
    .hours-recon-segment label { flex: 1; justify-content: center; }
    .hours-recon-downloads a { flex: 1; justify-content: center; }
    .hours-recon-save p { text-align: left; }
    .hours-recon-save { flex-direction: column; align-items: stretch; }
    .hours-recon-save .button { justify-content: center; }
    .hours-recon-days { padding: 14px; }
    .hours-recon-days-head { flex-direction: column; }
}

@media print {
    .hours-recon-toolbar,
    .hours-recon-save,
    .report-card-tabs,
    .report-kpi-cta { display: none !important; }
    .hours-recon-paper input { border: 0; background: transparent; }
}

/* Zakładki raportu */
.reports-tabs {
    position: sticky;
    z-index: 20;
    top: var(--reports-tabs-top, 78px);
    display: flex;
    gap: 4px;
    margin: -4px 0 0;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid #dce6f2;
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 26px rgba(25, 51, 85, .07);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
}

.reports-tabs::-webkit-scrollbar { display: none; }

.reports-tabs a {
    position: relative;
    display: inline-flex;
    flex: 1 0 auto;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 11px;
    color: #475569;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.reports-tabs a .icon { width: 17px; height: 17px; color: #94a3b8; }
.reports-tabs a:hover { color: #1d4ed8; background: #f1f5ff; }
.reports-tabs a:hover .icon { color: #2563eb; }
.reports-tabs a:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }

.reports-tabs a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}

.reports-tabs a.is-active .icon { color: #fff; }

.reports-tab-badge {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #dc2626;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.reports-tabs a.is-active .reports-tab-badge { color: #dc2626; background: #fff; }

.reports-tab-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .7);
}

.reports-tab-dot.is-ready { background: #16a34a; }
.reports-tab-dot.is-pending { background: #f59e0b; }
.reports-tab-dot.is-closed { background: #64748b; }

/* Do decyzji */
.report-decisions { padding: 18px 20px; border-radius: 17px; }
.report-decisions-head { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; }
.report-decisions-head h2 { margin: 0; color: #172033; font-size: 18px; }
.report-decisions-head p { margin: 3px 0 0; color: #64748b; font-size: 12px; }
.report-decisions-head .eyebrow { margin: 0 0 3px; color: #2563eb; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.report-decisions-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; }
.report-decisions-icon.is-ok { color: #047857; background: #dcfce7; }
.report-decisions-icon.is-alert { color: #b91c1c; background: #fee2e2; }
.report-decisions-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.report-decisions-chips > a,
.report-decisions-chips > span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    background: #fff;
    font-size: 12px;
    text-decoration: none;
}
.report-decisions-chips b { color: #172033; font-size: 14px; }
.report-decisions-chips .is-alert { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.report-decisions-chips .is-alert b { color: #b91c1c; }
.report-decisions-empty {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 18px;
    border-color: #bbf7d0;
    border-radius: 14px;
    color: #166534;
    background: #f0fdf4;
    font-size: 13px;
}
.report-decisions-empty .icon { width: 18px; height: 18px; }
#do-sprawdzenia, #rozliczenie-nadgodzin, #nieobecnosci, #karta-pracy { scroll-margin-top: 150px; }
.report-day-card { margin-top: 0; }

@media (max-width: 720px) {
    .reports-tabs { --reports-tabs-top: 64px; border-radius: 14px; }
    .reports-tabs a { flex: 0 0 auto; padding: 0 13px; font-size: 12px; }
}

/* Dymek „i” rysowany nad stroną (JS). Wbudowany ::after zostaje tylko jako zapas bez JS. */
html.has-help-pop .help-tip::after { display: none; }

.help-pop {
    position: fixed;
    z-index: 1000;
    max-width: min(300px, calc(100vw - 20px));
    padding: 10px 13px;
    border-radius: 10px;
    color: #fff;
    background: #172033;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .28);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    pointer-events: none;
    animation: help-pop-in .12s ease;
}

.help-pop[hidden] { display: none; }

.help-pop::before {
    position: absolute;
    left: calc(var(--arrow-left, 50%) - 6px);
    width: 12px;
    height: 12px;
    background: #172033;
    content: "";
    transform: rotate(45deg);
}

.help-pop[data-side="below"]::before { top: -5px; }
.help-pop[data-side="above"]::before { bottom: -5px; }

@keyframes help-pop-in { from { opacity: 0; transform: translateY(3px); } }

/* Do decyzji – marginesy (globalnie .reports-premium .report-section ma padding: 0) */
.reports-premium .report-decisions { padding: 20px 22px; border-radius: 17px; }
.reports-premium .report-decisions-empty { padding: 14px 18px; }
.reports-premium .report-decisions-chips { margin-top: 16px; }
.report-decisions-chips .help-tip { margin-left: 2px; }
.report-decisions-done {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 16px;
}
.report-decisions-done > div {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    color: #166534;
    background: #f0fdf4;
    font-size: 13px;
    font-weight: 650;
}
.report-decisions-done .icon { flex: none; width: 18px; height: 18px; }
.report-decisions-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }