/* Układ główny Master Page — spójny z paletą HFS (#006633, #00923f) */

:root {
    --hfs-green: #006633;
    --hfs-green-dark: #004d26;
    --hfs-accent: #00923f;
    --hfs-logo-light: #86bc2e;
    --hfs-logo-mid: #50ad39;
    --hfs-hover: #7c6f57;
    --hfs-bg: #f5f7f6;
    --hfs-border: #d4e0d8;
    --hfs-text: #1a1a1a;
    --hfs-muted: #5a5a5a;
}

.hfs-body {
    margin: 0;
    min-height: 100vh;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 9pt;
    color: var(--hfs-text);
    background: var(--hfs-bg);
}

.hfs-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Nagłówek nad treścią — dropdown Menu musi być wyżej niż z-index z treści (Grid, panele) */
.hfs-header {
    flex-shrink: 0;
    position: relative;
    z-index: 500;
    background: #fff;
    border-bottom: 1px solid rgba(80, 173, 57, 0.22);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.hfs-header__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    max-width: 100%;
    overflow: visible;
}

.hfs-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 6px 14px 6px 12px;
}

.hfs-brand__link {
    display: flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    outline: none;
}

    .hfs-brand__link:hover .hfs-logo-svg,
    .hfs-brand__link:focus .hfs-logo-svg {
        filter: brightness(1.05);
    }

    .hfs-brand__link:focus-visible {
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hfs-logo-mid);
        border-radius: 4px;
    }

.hfs-logo-svg {
    display: block;
    height: 32px;
    width: auto;
    max-width: 100%;
}

    .hfs-brand img {
        display: block;
        max-height: 52px;
        width: auto;
    }

/* padding-bottom kompensuje ujemny margin .hfs-nav — całkowita wysokość belki ~bez zmian */
.hfs-header__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 4px 10px 9px 4px;
    overflow: visible;
}

/* Pasek: szkolenie + linki użytkownika */
.hfs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 12px;
    margin-bottom: 0;
}

.hfs-pill--training {
    width: auto !important;
    min-height: 0 !important;
    padding: 6px 14px !important;
    background: linear-gradient(180deg, #c62828 0%, #b71c1c 100%) !important;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

    .hfs-pill--training a {
        color: #fff !important;
        font-weight: 600;
        text-decoration: none !important;
    }

    .hfs-pill--training a:hover {
        text-decoration: underline !important;
    }

.hfs-toolbar__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 4px;
    font-size: 9pt;
}

    .hfs-toolbar__links a,
    .hfs-toolbar__links .hfs-contact-btn,
    .hfs-toolbar__links input[type="submit"],
    .hfs-toolbar__links input[type="button"] {
        color: var(--hfs-green);
        font-weight: bold;
        text-decoration: none;
        padding: 2px 6px;
        border-radius: 4px;
        border: none;
        background: transparent;
        cursor: pointer;
        font: inherit;
    }

        .hfs-toolbar__links a:hover,
        .hfs-toolbar__links .hfs-contact-btn:hover,
        .hfs-toolbar__links input[type="submit"]:hover {
            color: var(--hfs-hover);
            background: rgba(0, 102, 51, 0.06);
        }

    .hfs-toolbar__links span[id*="hUserName"] {
        color: var(--hfs-muted);
        font-weight: 600;
    }

/* Menu poziome ASP.NET — lekko wyżej w belce; margin kompensowany paddingiem na .hfs-header__main */
/* margin-top -4px: cienka kreska 2px niżej niż przy -6px (więcej oddechu pod linkami kontakt / wiadomości) */
.hfs-nav {
    margin-top: -4px;
    padding-top: 0;
    border-top: 1px solid rgba(134, 188, 46, 0.35);
    position: relative;
    z-index: 10060;
    overflow: visible;
}

#oTopMenu {
    font-family: Verdana, Arial, sans-serif !important;
    line-height: 1.2;
    position: relative;
    z-index: 10061;
}

    #oTopMenu > table,
    #oTopMenu table {
        border-collapse: collapse !important;
    }

    #oTopMenu > table > tbody > tr > td,
    #oTopMenu table td {
        vertical-align: middle !important;
    }

    /* Jedna linia poziomych pozycji — stała wysokość „rzędu” menu */
    #oTopMenu > table > tbody > tr > td > table > tbody > tr > td {
        vertical-align: middle !important;
        height: 30px;
    }

    #oTopMenu a,
    #oTopMenu span {
        border-radius: 4px;
        transition: background 0.15s ease, color 0.15s ease;
    }

    #oTopMenu a {
        display: inline-flex;
        align-items: center;
        min-height: 26px;
        box-sizing: border-box;
    }

    #oTopMenu ul li ul {
        display: none;
    }

    #oTopMenu ul li {
        position: relative;
        float: left;
        list-style: none;
    }

/* Rozwijane podmenu ASP.NET Menu — ponad gridami / panelami treści */
.dynamicMenu {
    text-align: left;
    padding-left: 0;
    font-size: 12px;
    margin-left: 8px;
    margin-top: 4px;
    position: relative;
    z-index: 10100 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden;
}

/* Klik działa na całym wierszu, nie tylko na tekście (link = blok na całą komórkę) */
.dynamicMenu table {
    width: 100%;
    border-collapse: collapse;
}

.dynamicMenu td {
    padding: 0 !important;
    vertical-align: middle;
}

.dynamicMenu a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 7px 12px !important;
    min-height: 30px;
    line-height: 1.35;
}

/* Treść stron — niższa warstwa; isolation ogranicza z-index dzieci (nie wychodzą nad header) */
.hfs-content {
    flex: 1 0 auto;
    padding: 16px 18px 24px;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

/* Wersja mobilna — pasek u góry (istniejący .dmobile) */
.dmobile {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: linear-gradient(180deg, #1565c0 0%, #0d47a1 100%);
    padding: 10px 22px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 14px !important;
}

    .dmobile a {
      
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0.35;
    }
}

@media screen and (max-width: 900px) {
    .hfs-header__inner {
        flex-direction: column;
    }

    .hfs-brand {
        justify-content: center;
        padding-bottom: 4px;
    }

    .hfs-toolbar {
        justify-content: center;
    }

    .hfs-toolbar__links {
        justify-content: center;
    }
}





/* DevExtreme DataGrid (dx.light.css) — nadpisanie domyślnego #fff na .dx-datagrid / .dx-toolbar */
.dx-datagrid {
    background-color: transparent !important;
}

.dx-datagrid-header-panel,
.dx-toolbar {
    background-color: transparent !important;
    background-image: none !important;
}

