
/* ============================================================================================================ */
/* KMS - UKLAD STRONY                                                                                           */
/* Systemowy assets/css/main.css ustawia #wrapper jako flex. W naszym ukladzie header/main/footer sa             */
/* jeden pod drugim, wiec nadpisujemy to tylko w kms.css.                                                        */
/* ============================================================================================================ */
#wrapper {
    display: block;
    width: 100%;
}

/* KMS - korekty dla layoutu HTML5 UP Editorial */

#header .kms-icons {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin: 0;
}

#header .kms-icons a {
    border-bottom: 0;
    color: #7f888f;
    font-size: 1.15em;
}

#header .kms-icons a:hover {
    color: #f56a6a;
}

#header .kms-user {
    color: #7f888f;
    font-size: 0.9em;
    margin-right: 0.75em;
}

.kms-mainmenu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5em;
}

.kms-mainmenu-card {
    display: block;
    border: solid 1px rgba(160, 190, 220, 0.95);
    background: #DDEEFF;
    padding: 1.5em;
    min-height: 10em;
    color: inherit;
    text-decoration: none;
    border-bottom-width: 1px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.kms-mainmenu-card:hover {
    background: #CFE4F8;
    border-color: rgba(120, 165, 205, 1);
}

.kms-mainmenu-card:focus {
    outline: 2px solid #5b9bd5;
    outline-offset: 2px;
}

.kms-mainmenu-card h3 {
    margin-bottom: 0.6em;
}

.kms-mainmenu-card h3,
.kms-mainmenu-card p {
    color: inherit;
}


.kms-access-denied {
    border: solid 1px #f56a6a;
    padding: 1em 1.25em;
    margin-bottom: 2em;
}

@media screen and (max-width: 980px) {
    .kms-mainmenu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 736px) {
    #header {
        align-items: flex-start;
    }

    #header .kms-icons {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    #header .kms-user {
        width: 100%;
        margin-right: 0;
        text-align: right;
    }

    .kms-mainmenu-grid {
        grid-template-columns: 1fr;
    }
}


/* KMS - kompaktowe skróty jak w v1.88 */
.skroty-section {
    margin: 0 0 0.75em 0;
}

.skroty-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.skroty-head h2 {
    margin: 0;
    font-size: 1.35em;
}

.skroty-szukaj {
    width: 180px;
    max-width: 42vw;
    height: 30px;
    padding: 3px 8px;
    box-sizing: border-box;
    font-size: 12px;
}

.skroty-grupa {
    display: block;
    width: 100%;
    margin: 12px 0 0;
    clear: both;
}

.skroty-grupa[hidden],
.skrot-kafelek[hidden] {
    display: none !important;
}

.skroty-grupa-tytul {
    margin: 0;
    text-align: center;
    padding: 6px 8px;
    color: #fff;
    font: bold 12px Verdana, Geneva, Arial, Helvetica, sans-serif;
    background: #4a4a4a;
    border: 1px solid #777;
    border-bottom: 0;
}

.skroty-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    border-top: 1px solid #777;
    border-left: 1px solid #999;
}

.skrot-kafelek {
    min-width: 0;
    background: #fff;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
}

.skrot-tytul {
    min-height: 33px;
    padding: 7px 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.25;
    font-weight: bold;
    background: #d9d9d9;
}

.skrot-logo {
    height: 98px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.skrot-logo a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 0;
}

.skrot-logo img {
    display: block;
    width: 68% !important;
    height: 68% !important;
    max-width: 68%;
    max-height: 68%;
    object-fit: contain;
}

@media screen and (max-width: 980px) {
    .skroty-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 736px) {
    .skroty-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .skroty-szukaj {
        width: 100%;
        max-width: none;
    }

    .skroty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .skroty-grid {
        grid-template-columns: 1fr;
    }

    .skrot-logo {
        height: 84px;
    }

}

/* ============================================================================================================ */
/* KMS - HEADER SOCHOCKI.EU                                                                                     */
/* Nadpisania tylko dla layoutu KMS. Systemowego assets/css/main.css nie zmieniamy.                             */
/* ============================================================================================================ */

#header.kms-header {
    display: block;
    width: 100%;
    margin: 6px 0 1.25em 0;
    padding: 0;
    border: 0;
}

/* ============================================================================================================ */
/* KMS 5.60u - TYMCZASOWA LINIA DIAGNOSTYCZNA HEADER BOTTOM                                                    */
/* ============================================================================================================ */
#header.kms-header {
    border-bottom: 0px solid #0000ff !important;
}

#header.kms-header #logo_napis {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 10px;
    border: 1px solid #D87136;
    background: #FFFFFF;
    color: #004000;
    text-align: center;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 1px;
    line-height: 22px;
}

#header.kms-header .kms-header-version {
    color: #5f8f73;
    white-space: nowrap;
}

#header.kms-header #logo_flash {
    box-sizing: border-box;
    width: 100%;
    height: 102px;
    margin-top: 2px;
    border: 1px solid #D87136;
    background: #D87136 url('/stale/glowa.jpg') repeat-x center center;
    text-align: center;
}

#header.kms-header #logo_menu {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
    padding: 0 16px;
    border-bottom: 1px solid #D87136;
    background: #3f3f3f;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#header.kms-header #logo_menu .kms-icons {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin: 0;
}

#header.kms-header #logo_menu .kms-icons a {
    border: 0;
    color: #FFFFFF;
    font-size: 19px;
    line-height: 1;
    text-decoration: none;
}

#header.kms-header #logo_menu .kms-icons a:hover {
    color: #D87136;
}

#header.kms-header #logo_menu .kms-user {
    margin-right: auto;
    color: #FFFFFF;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 11px;
}

@media screen and (max-width: 736px) {
    #header.kms-header #logo_flash {
        height: 80px;
    }

    #header.kms-header #logo_menu,
    #header.kms-header #logo_menu .kms-icons {
        min-height: 46px;
    }

    #header.kms-header #logo_menu {
        padding: 0 12px;
    }

    #header.kms-header #logo_menu .kms-user {
        display: none;
    }
}
\n\n/* ============================================================================================================ */\n/* KMS v3.15 - korekta ukladu glownego, bez zmian w systemowym main.css                                        */\n/* ============================================================================================================ */\n\n#header.kms-header {\n    margin-bottom: 0;\n}\n\n#main > .inner > .skroty-section {\n    padding-top: 2em !important;\n    padding-bottom: 1em !important;\n    border-top: 0 !important;\n}\n\n#footer {\n    width: 100%;\n    margin: 0;\n    padding: 0;\n    background: #FFFFFF;\n}\n\n#footer > .inner {\n    width: 100%;\n    max-width: 110em;\n    margin: 0 auto;\n    padding: 0 6em 1em 6em;\n    box-sizing: border-box;\n}\n\n#footer #stopka {\n    width: 100%;\n    box-sizing: border-box;\n    margin: 0;\n    padding: 10px 5px;\n    border-top: 1px solid #D87136;\n    color: #7f888f;\n    text-align: center;\n    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;\n    font-size: 11px;\n}\n\n#footer #stopka a {\n    color: #004000;\n    border-bottom: 0;\n    text-decoration: none;\n}\n\n@media screen and (max-width: 1680px) {\n    #footer > .inner {\n        padding-left: 5em;\n        padding-right: 5em;\n    }\n}\n\n@media screen and (max-width: 1280px) {\n    #footer > .inner {\n        padding-left: 4em;\n        padding-right: 4em;\n    }\n}\n\n@media screen and (max-width: 736px) {\n    #main > .inner > .skroty-section {\n        padding-top: 1.25em !important;\n    }\n\n    #footer > .inner {\n        padding-left: 2em;\n        padding-right: 2em;\n    }\n}\n

/* ============================================================================================================ */
/* KMS v3.17 - menu otwierane wylacznie z ikony w ciemnym pasku headera                                         */
/* ============================================================================================================ */
body > .kms-sidebar-toggle {
    display: none !important;
}

#header.kms-header #kms-menuopen {
    display: inline-block;
}

#sidebar {
    z-index: 10000;
}


/* ============================================================================================================ */
/* KMS v3.18 - naprawa headera i otwierania menu                                                               */
/* ============================================================================================================ */

#header.kms-header {
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

#header.kms-header > .inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#header.kms-header #logo_napis {
    height: 44px !important;
    padding: 10px !important;
    line-height: 22px !important;
}

#header.kms-header #logo_flash {
    margin-top: 2px !important;
    height: 80px !important;
    background: url('/stale/glowa.jpg') repeat-x !important;
    border: 1px solid #D87136 !important;
    text-align: center !important;
}

#header.kms-header #logo_menu,
#header.kms-header #logo_menu .kms-icons {
    height: 52px !important;
    min-height: 52px !important;
}

#header.kms-header #logo_menu {
    margin-top: 2px !important;
    padding: 0 16px !important;
}

#header.kms-header .kms-user {
    display: none !important;
}

body > .kms-sidebar-toggle {
    display: none !important;
}

#header.kms-header #kms-menuopen {
    display: inline-block !important;
    cursor: pointer;
}


/* ============================================================================================================ */
/* KMS v3.20 - przywrocenie duzego systemowego hamburgera menu                                                  */
/* Ten sam przycisk otwiera i zamyka #sidebar.                                                                  */
/* ============================================================================================================ */

#sidebar > .toggle {
    display: block !important;
    z-index: 20001 !important;
}



/* ============================================================================================================ */
/* KMS v3.21 - szerokosc headera taka sama jak body                                                             */
/* ============================================================================================================ */

#header.kms-header > .inner {
    width: 100% !important;
    max-width: 110em !important;
    margin: 0 auto !important;
    padding: 0 6em !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 1680px) {
    #header.kms-header > .inner {
        padding-left: 5em !important;
        padding-right: 5em !important;
    }
}

@media screen and (max-width: 1280px) {
    #header.kms-header > .inner {
        padding-left: 4em !important;
        padding-right: 4em !important;
    }
}

@media screen and (max-width: 736px) {
    #header.kms-header > .inner {
        padding-left: 2em !important;
        padding-right: 2em !important;
    }
}
\n\n/* ============================================================================================================ */
/* KMS v3.23 - wizytowka z seo_wizytowka.json w inc_header.php                                                */
/* ============================================================================================================ */

#header .seo-wizytowka {
    width: 100%;
    box-sizing: border-box;
    margin: 18px 0 0;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-top: 5px solid #ff6a61;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    color: #222;
}

#header .seo-wizytowka > .row {
    align-items: stretch;
}

#header .seo-main {
    padding-right: 24px;
}

#header .seo-kicker {
    margin: 0 0 7px;
    color: #666;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#header .seo-wizytowka h1 {
    margin: 0 0 12px;
    color: #252525;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.15;
}

#header .seo-lead {
    margin: 0;
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.65;
}

#header .seo-uslugi {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

#header .seo-uslugi span {
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid #dedede;
    border-radius: 4px;
    background: #f6f6f6;
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

#header .seo-kontakt {
    padding: 18px;
    background: #f6f6f6;
    border-left: 4px solid #555;
    line-height: 1.55;
}

#header .seo-kontakt h2 {
    margin: 0 0 10px;
    color: #222;
    font-size: 18px;
}

#header .seo-kontakt address {
    margin: 0;
    font-style: normal;
}

#header .seo-kontakt p {
    margin: 0;
}

#header .seo-kontakt a {
    color: #1b4f8a;
}

@media (max-width: 980px) {
    #header .seo-wizytowka {
        padding: 20px;
    }

    #header .seo-main {
        padding-right: 0;
        margin-bottom: 18px;
    }

    #header .seo-kontakt {
        border-left: 0;
        border-top: 4px solid #555;
    }
}


/* ============================================================================================================ */
/* KMS v3.29 - kompaktowy odstep nad sekcja skrotow                                                            */
/* main.css daje #main > .inner > section duzy padding-top; tutaj nadpisujemy tylko skroty.                    */
/* ============================================================================================================ */

#main > .inner > section.skroty-section {
    padding-top: 1.25em !important;
    padding-bottom: 1em !important;
    border-top: 0 !important;
}

@media screen and (max-width: 736px) {
    #main > .inner > section.skroty-section {
        padding-top: 0.75em !important;
    }
}

/* ============================================================================================================ */
/* KMS v3.30 - stopka: admin z diagnostyka, pozostali tylko pasek copyright                                   */
/* ============================================================================================================ */

#footer .kms-footer {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ef6b57;
    background: #fff;
    color: #111;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

#footer .kms-footer-copy {
    padding: 8px 10px 7px;
    line-height: 1.35;
}

#footer .kms-footer-copy a {
    color: #111;
    text-decoration: none;
}

#footer .kms-footer-adminbox {
    margin: 0 8px;
    padding: 9px 0 8px;
    border-top: 1px solid #777;
}

#footer .kms-footer-device {
    margin-bottom: 6px;
    line-height: 1.35;
}

#footer .kms-footer-tests {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.2;
}

#footer .kms-footer-tests button.kms-test-viewport {
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 3px 10px;
    border: 1px solid #999;
    border-radius: 2px;
    background: #f5f5f5;
    box-shadow: none;
    color: #111 !important;
    font: 13px/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: normal;
    text-transform: none;
}

#footer .kms-footer-tests button.kms-test-viewport:hover {
    background: #e9e9e9;
}

/* ============================================================================================================ */
/* KMS v3.45 - zachowany ciemny styl przycisku                                                                 */
/* ============================================================================================================ */
.kms-button-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #333;
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.kms-button-dark:hover {
    background: #555;
    color: #fff !important;
}

/* ============================================================================================================ */
/* KMS v3.50 - footer: szerokosc zgodna z headerem i body                                                       */
/* ============================================================================================================ */
#footer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

#footer > .inner {
    width: 100%;
    max-width: 110em;
    margin: 0 auto;
    padding: 0 6em 1em 6em;
    box-sizing: border-box;
}

@media screen and (max-width: 1680px) {
    #footer > .inner {
        padding-left: 5em;
        padding-right: 5em;
    }
}

@media screen and (max-width: 1280px) {
    #footer > .inner {
        padding-left: 4em;
        padding-right: 4em;
    }
}

@media screen and (max-width: 736px) {
    #footer > .inner {
        padding-left: 2em;
        padding-right: 2em;
    }
}

/* ============================================================================================================ */
/* KMS v3.51 - popup bieżącej sesji w panelu administratora                                                    */
/* ============================================================================================================ */
.kms-session-popup {
    display: none;
    position: fixed;
    z-index: 30000;
    inset: 0;
    padding: 4em 2em;
    background: rgba(0, 0, 0, 0.55);
    overflow: auto;
}

.kms-session-popup.active {
    display: block;
}

.kms-session-popup-box {
    width: min(1100px, 100%);
    max-height: calc(100vh - 8em);
    margin: 0 auto;
    background: #fff;
    border: 1px solid #cfcfcf;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.kms-session-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: 0.9em 1em;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
}

.kms-session-popup-body {
    max-height: calc(100vh - 14em);
    padding: 1em;
    overflow: auto;
}

.kms-session-popup-body pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font: 13px/1.5 Consolas, Monaco, monospace;
    color: #222;
}

@media screen and (max-width: 736px) {
    .kms-session-popup {
        padding: 1em;
    }

    .kms-session-popup-box {
        max-height: calc(100vh - 2em);
    }

    .kms-session-popup-body {
        max-height: calc(100vh - 8em);
    }
}



/* ============================================================================================================ */
/* KMS v3.78 - boczne menu: 25% przezroczystosci                                                               */
/* ============================================================================================================ */

#sidebar {
    background-color: rgba(245, 246, 247, 0.75) !important;
}


/* ============================================================================================================ */
/* KMS v3.79 - ciemniejsze napisy w bocznym menu                                                               */
/* ============================================================================================================ */

#sidebar,
#sidebar a,
#sidebar .opener,
#sidebar #menu ul a,
#sidebar #menu ul span {
    color: #2f3438 !important;
}

#sidebar #menu ul a:hover,
#sidebar #menu ul span.opener:hover {
    color: #111 !important;
}


/* ============================================================================================================ */
/* KMS v3.80 - boczne menu: 10% przezroczystosci, mocniejsze odciecie od tresci                                */
/* ============================================================================================================ */

#sidebar {
    background-color: rgba(245, 246, 247, 0.90) !important;
    z-index: 20000 !important;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.16);
}

#sidebar,
#sidebar a,
#sidebar .opener,
#sidebar #menu ul a,
#sidebar #menu ul span {
    color: #23272b !important;
}

#sidebar #menu ul a:hover,
#sidebar #menu ul span.opener:hover {
    color: #000 !important;
}


/* ============================================================================================================ */
/* KMS v3.94 - tekstowa nawigacja awaryjna, gdy Font Awesome 5 nie jest zainstalowany                           */
/* ============================================================================================================ */

.kms-icons.kms-icons-no-fa .icon:before {
    display: none !important;
}

.kms-icons.kms-icons-no-fa .icon > .label {
    display: inline-block !important;
}

.kms-icons.kms-icons-no-fa .icon {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 0.55em !important;
    font-family: inherit !important;
    font-size: 0.82em !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
}




/* ============================================================================================================ */
/* KMS v4.04 - wygląd ikony wynika wyłącznie z CSS aktywnego zestawu                                          */
/* ============================================================================================================ */

.kms-icons .kms-icon-link-text > .label {
    display: inline-block !important;
}

.kms-icons .kms-icon-link-text {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 0.55em !important;
    font-family: inherit !important;
    font-size: 0.82em !important;
    font-weight: 600 !important;
    white-space: nowrap;
}


/* ============================================================================================================ */
/* KMS v4.21 - ikony systemowe renderowane przez <i>, bez pseudo-elementu .icon:before                         */
/* ============================================================================================================ */

#header.kms-header #logo_menu .kms-icons a.kms-link-ikona > i {
    display: inline-block;
    font-size: 1em;
    line-height: 1;
}

#header.kms-header #logo_menu .kms-icons a.kms-link-ikona > .label {
    display: none;
}

/* ============================================================================================================ */
/* KMS v4.30 - globalne wyrownanie standardowych malych przyciskow systemowych                                 */
/* ============================================================================================================ */

input[type="submit"].small,
input[type="reset"].small,
input[type="button"].small,
button.small,
.button.small {
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    line-height: 40px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}

/* ============================================================================================================ */
/* KMS v4.38 - boczne menu: ciemne tlo i jasne napisy                                                         */
/* ============================================================================================================ */

#sidebar {
    background-color: rgba(31, 35, 39, 0.98) !important;
    color: #f1f3f5 !important;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.28);
}

#sidebar,
#sidebar a,
#sidebar .opener,
#sidebar #menu ul a,
#sidebar #menu ul span,
#sidebar #menu > ul > li > a,
#sidebar #menu > ul > li > span {
    color: #f1f3f5 !important;
}

#sidebar #menu ul a:hover,
#sidebar #menu ul span.opener:hover,
#sidebar #menu > ul > li > a:hover,
#sidebar #menu > ul > li > span:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

#sidebar #menu ul,
#sidebar #menu > ul > li {
    border-color: rgba(255, 255, 255, 0.14) !important;
}

#sidebar .opener:before,
#sidebar #menu .opener:before {
    color: #dfe3e6 !important;
}

/* ============================================================================================================ */
/* KMS v4.39 - hamburger: jasne tlo, ciemna ikona                                                             */
/* ============================================================================================================ */

#sidebar > .toggle {
    background-color: rgba(255, 255, 255, 0.90) !important;
    color: #202428 !important;
}

#sidebar > .toggle:before {
    color: #202428 !important;
}

#sidebar > .toggle:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #111111 !important;
}

#sidebar > .toggle:hover:before {
    color: #111111 !important;
}


/* ============================================================================================================ */
/* KMS v4.57 - kompaktowy pasek ikon                                                                           */
/* ============================================================================================================ */

#header.kms-header #logo_menu,
#header.kms-header #logo_menu .kms-icons {
    height: 44px !important;
    min-height: 44px !important;
}

#header.kms-header #logo_menu {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

#header.kms-header #logo_menu .kms-icons {
    gap: 10px !important;
}

#header.kms-header #logo_menu .kms-icons a.kms-link-ikona {
    padding: 2px 3px !important;
}


/*============================================================================================================*/
/* v5.40 - Deszyfrator w Fancybox / iframe */
/*============================================================================================================*/
.kms-deszyfrator-popup{
    width:min(1200px,94vw);
    height:min(860px,92vh);
    padding:0;
    overflow:hidden;
}
.kms-deszyfrator-frame{
    display:block;
    width:100%;
    height:100%;
    min-height:70vh;
    border:0;
    background:#fff;
}
html.kms-in-iframe #logo_napis,
html.kms-in-iframe #logo_flash,
html.kms-in-iframe .seo-wizytowka,
html.kms-in-iframe #footer,
html.kms-in-iframe #sidebar,
html.kms-in-iframe body > .kms-sidebar-toggle{
    display:none !important;
}


/* ============================================================================================================ */
/* KMS v5.51 - kompatybilnosc layoutu legacy dla $menuObj->menu_print()                                        */
/* Stare moduly moga pozostawic samo <nav id="menu">. main.js opakowuje je w standardowy #sidebar.            */
/* ============================================================================================================ */
#sidebar.kms-legacy-sidebar > .inner {
    box-sizing: border-box;
}

#sidebar.kms-legacy-sidebar #menu {
    margin: 0;
    width: 100%;
}


/* ============================================================================================================ */
/* KMS v5.56l - Deszyfrator w iframe: pasek ikon na pelna szerokosc, bez szarego marginesu                     */
/* ============================================================================================================ */
html.kms-in-iframe body {
    background: #FFFFFF !important;
}

html.kms-in-iframe #header.kms-header {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
}

html.kms-in-iframe #header.kms-header > .inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.kms-in-iframe #header.kms-header #logo_menu {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

html.kms-in-iframe #main > .inner {
    max-width: none !important;
}

/* ============================================================================================================ */
/* KMS v5.56m - Deszyfrator w iframe: pasek ikon 10px nizej                                                       */
/* ============================================================================================================ */
html.kms-in-iframe body.kms-deszyfrator-page #header.kms-header {
    margin-top: 10px !important;
}


/* ============================================================================================================ */
/* KMS v5.56n - Deszyfrator w iframe: pasek ikon ma dokladnie te same krawedzie co tresc strony             */
/* ============================================================================================================ */
html.kms-in-iframe body.kms-deszyfrator-page #header.kms-header > .inner {
    width: 100% !important;
    max-width: 90em !important;
    margin: 0 auto !important;
    padding: 0 2.5em !important;
    box-sizing: border-box !important;
}

html.kms-in-iframe body.kms-deszyfrator-page #main > .inner {
    width: 100% !important;
    max-width: 90em !important;
    margin: 0 auto !important;
    padding: 0 2.5em !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 736px) {
    html.kms-in-iframe body.kms-deszyfrator-page #header.kms-header > .inner,
    html.kms-in-iframe body.kms-deszyfrator-page #main > .inner {
        padding-left: 1.25em !important;
        padding-right: 1.25em !important;
    }
}

/* ============================================================================================================ */
/* KMS v5.58t - wspolny wymiar header / main / footer                                                         */
/* KMS v5.61k - usunieto globalne nadpisanie max-width:90em; szerokosc bierze wartosc z bazowego layoutu.      */
/* ============================================================================================================ */

#header.kms-header > .inner,
#main > .inner,
#footer > .inner {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2.5em !important;
    padding-right: 2.5em !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 736px) {
    #header.kms-header > .inner,
    #main > .inner,
    #footer > .inner {
        padding-left: 1.25em !important;
        padding-right: 1.25em !important;
    }
}

/* =========================================================================================================
   GLOBALNE CHECKBOX / RADIO
   Nadpisanie ukrywania kontrolek z main_kms.css.
   Kontrolki mają być natywnie widoczne w całym CRM-Sochocki.
   ========================================================================================================= */
input[type="checkbox"],
input[type="radio"] {
    -moz-appearance: auto !important;
    -webkit-appearance: auto !important;
    -ms-appearance: auto !important;
    appearance: auto !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 0.45em 0 0 !important;
    padding: 0 !important;
    z-index: auto !important;
    vertical-align: middle !important;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
    padding-left: 0 !important;
}

input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
    display: none !important;
    content: none !important;
}



/* ============================================================================================================ */
/* KMS v5.60w - panel logowania                                                                                 */
/* Wyglad panelu login.php przeniesiony z assets/css/login.css.                                                 */
/* Reguly dotycza wylacznie #kms-login-panel i jego elementow.                                                 */
/* ============================================================================================================ */
#kms-login-panel {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
    background: #efefef;
    border: 1px solid #cfcfcf;
    border-top: 5px solid #ff6a61;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    box-sizing: border-box;
}

#kms-login-panel .login-logo {
    margin-bottom: 22px;
    font-weight: bold;
    font-size: 16px;
}

#kms-login-panel .login-logo span {
    font-size: 11px;
    font-weight: normal;
    color: #777;
}

#kms-login-panel h1 {
    margin: 0 0 18px;
    font-size: 26px;
}

#kms-login-panel .login-mode {
    margin-bottom: 18px;
    padding: 10px 12px;
    background: #f6f6f6;
    border-left: 4px solid #777;
    font-size: 12px;
}

#kms-login-panel .login-error {
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid #d8a1a1;
    background: #fff3f3;
    color: #8d1e1e;
    font-size: 13px;
}

#kms-login-panel label {
    display: block;
    margin: 12px 0 6px;
    font-weight: bold;
    font-size: 13px;
}

#kms-login-panel input[type="text"],
#kms-login-panel input[type="password"] {
    width: 100%;
    height: 42px;
    padding: 8px 10px;
    border: 1px solid #aaa;
    font-size: 15px;
    box-sizing: border-box;
}

#kms-login-panel button {
    width: 100%;
    min-height: 40px;
    margin-top: 18px;
    padding: 0 18px;
    border: 0;
    background: #4b4b4b;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

#kms-login-panel button:hover {
    background: #606060;
}

#kms-login-panel .login-home {
    display: inline-block;
    margin-top: 18px;
    color: #444;
}

#kms-login-panel .login-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 18px;
}

#kms-login-panel .login-switch-btn {
    width: 100%;
    margin: 0;
    min-height: 42px;
    background: #e8e8e8;
    color: #333;
    border: 1px solid #bdbdbd;
}

#kms-login-panel .login-switch-btn.active {
    background: #4b4b4b;
    color: #fff;
}

#kms-login-panel .login-code-view {
    max-width: 360px;
    margin: 0 auto;
}

#kms-login-panel .login-code-display {
    height: 58px;
    margin: 4px 0 14px;
    border: 1px solid #aaa;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    letter-spacing: 10px;
    font-weight: bold;
}

#kms-login-panel .login-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

#kms-login-panel .login-keypad button {
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 0;
    font-size: 22px;
    background: #555;
}

#kms-login-panel .login-keypad button:hover {
    background: #666;
}

#kms-login-panel .login-code-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    background: #ff6a61;
    color: #fff !important;
}

#kms-login-panel .login-code-submit:hover {
    background: #ff7e76;
    color: #fff !important;
}

@media (max-width: 640px) {
    #kms-login-panel {
        margin-top: 0;
        padding: 20px 16px;
        box-shadow: none;
    }
}


/* ============================================================================================================ */
/* KMS v5.60y - globalny odstep header/body/footer                                                             */
/* ============================================================================================================ */
#header.kms-header {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

#footer {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

/* ============================================================================================================ */
/* KMS v5.61a - tymczasowy tester szerokosci layoutu w footerze admina                                       */
/* ============================================================================================================ */
#footer .kms-footer-layouttest {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 7px 0;
    line-height: 1.2;
}

#footer .kms-footer-layouttest select,
#footer .kms-footer-layouttest input[type="text"] {
    width: auto;
    min-width: 0;
    height: 28px;
    margin: 0;
    padding: 2px 7px;
    border: 1px solid #999;
    border-radius: 2px;
    background: #fff;
    color: #111;
    font: 13px/1.2 Arial, Helvetica, sans-serif;
}

#footer .kms-footer-layouttest select {
    min-width: 190px;
}

#footer .kms-footer-layouttest input[type="text"] {
    width: 78px;
    text-align: center;
}



#footer .kms-footer-layoutslider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: -2px 0 7px 0;
    line-height: 1;
}

#footer .kms-footer-layoutslider input[type="range"] {
    width: 320px;
    max-width: 70vw;
    height: 22px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: #e5e5e5;
    box-sizing: border-box;
}

#footer .kms-footer-layoutslider span {
    font: 12px/1 Arial, Helvetica, sans-serif;
    color: #333;
}

#footer .kms-footer-layouttest button {
    width: auto;
    min-width: 0;
    height: 28px;
    margin: 0;
    padding: 2px 10px;
    border: 1px solid #999;
    border-radius: 2px;
    background: #f5f5f5;
    box-shadow: none;
    color: #111 !important;
    font: 13px/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: normal;
    text-transform: none;
}

#footer .kms-footer-layouttest button:hover {
    background: #e9e9e9;
}

#footer #kms_layout_result {
    white-space: nowrap;
}

/* ============================================================================================================ */
/* KMS v5.61c - hamburger: tylko bialy przycisk jest obiektem i obszarem klikalnym                              */
/* ============================================================================================================ */

#sidebar > .toggle {
    background: #ffffff !important;
    border-radius: 0.375em !important;
    width: 5em !important;
    height: 3.75em !important;
    line-height: 3.75em !important;
    top: 0.75em !important;
    color: #666666 !important;
    overflow: hidden !important;
}

#sidebar > .toggle:after {
    content: none !important;
    display: none !important;
}

#sidebar > .toggle:before {
    color: #666666 !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 3.75em !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    z-index: 1 !important;
}

#sidebar > .toggle:hover {
    background: #ffffff !important;
    color: #444444 !important;
}

#sidebar > .toggle:hover:before {
    color: #444444 !important;
}


/* ============================================================================================================ */
/* KMS v5.61d - wycentrowanie ikony hamburgera w bialym przycisku                                              */
/* ============================================================================================================ */

#sidebar > .toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#sidebar > .toggle:before {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
}


/*============================================================================================================*/
/* KMS v5.61h - DEV: style przeniesione z assets/css/dev.css                                              */
/*============================================================================================================*/

/*============================================================================================================*/
/* KMS - wspólny layout stron /admin/dev                                                                      */
/*============================================================================================================*/

body.kms-dev-page {
    margin: 0;
    background: #efefef;
    color: #222;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
}

body.kms-dev-page #container {
    min-height: 100vh;
}

.kms-dev-content {
    width: 100%;
    padding: 12px 0 28px;
    box-sizing: border-box;
}

.kms-dev-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    margin: 0 0 12px;
    padding: 0 14px;
    border: 1px solid #c9c9c9;
    background: #e4e4e4;
    color: #222;
    font-size: 18px;
    font-weight: bold;
    box-sizing: border-box;
}

.kms-dev-title .kms-dev-version {
    margin-left: 3px;
    color: #666;
    font-size: 11px;
    font-weight: normal;
}

.kms-dev-content .admin-page,
.kms-dev-content .menu-edit-wrap {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.kms-dev-content .admin-card {
    margin-top: 12px;
}

.kms-dev-content .admin-menu {
    margin-top: 0;
}

@media (max-width: 768px) {
    .kms-dev-content {
        padding-top: 10px;
    }

    .kms-dev-title {
        margin-bottom: 10px;
    }
}

/*============================================================================================================*/
/* KMS v5.61h - DEV: style przeniesione z assets/css/menu_edit.css                                        */
/*============================================================================================================*/

.menu-edit-wrap{width:100%;max-width:none;margin:0 0 30px;font-family:Verdana,Geneva,Arial,sans-serif;color:#333}.menu-edit-top{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#585858;color:#fff;padding:10px 14px}.menu-edit-top a{color:#fff;text-decoration:none}.menu-edit-grid{display:grid;grid-template-columns:minmax(420px,46%) 1fr;gap:14px;margin-top:14px}.menu-list,.menu-form{border:1px solid #c9c9c9;background:#fff}.menu-list-head,.menu-form-head{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#e4e4e4;padding:9px 10px;font-weight:bold}.menu-head-left,.menu-head-right{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.menu-search{width:165px;padding:5px 7px;border:1px solid #aaa}.menu-filter{padding:5px 7px;border:1px solid #aaa;background:#fff;min-width:105px}.menu-table-wrap{max-height:72vh;overflow:auto}.menu-table{width:100%;border-collapse:collapse;font-size:12px}.menu-table th,.menu-table td{padding:6px 7px;border-bottom:1px solid #ddd;text-align:left;vertical-align:top}.menu-table th{position:sticky;top:0;background:#f3f3f3;z-index:1;cursor:pointer;user-select:none;white-space:nowrap}.menu-table th:hover{background:#e7e7e7}.menu-table th .sort-ind{display:inline-block;width:10px;margin-left:3px;color:#777;font-size:9px}.menu-table tr{cursor:pointer}.menu-table tr:hover,.menu-table tr.sel{background:#fff5cf}.menu-table tr.del{opacity:.5}.menu-form-body{padding:12px}.menu-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}.menu-field.full{grid-column:1/-1}.menu-field label{display:block;font-size:11px;font-weight:bold;margin-bottom:3px}.req{color:#b30000}.menu-required{font-size:11px;color:#555;margin:0 0 10px}.menu-type-help{font-size:11px;color:#555;background:#f5f5f5;border:1px solid #ddd;padding:7px 9px;margin-bottom:10px}.menu-field input,.menu-field select,.menu-field textarea{box-sizing:border-box;width:100%;padding:6px 7px;border:1px solid #aaa;background:#fff}.menu-field textarea{min-height:56px;resize:vertical}.menu-checks{display:flex;flex-wrap:wrap;gap:8px 16px;padding:10px 0;margin-left:7px}.menu-checks label{font-size:12px}.bt-del:disabled{opacity:.45;cursor:default}.menu-msg{display:none;margin:10px 0 0;padding:8px 10px}.menu-msg.ok{display:block;background:#e7f5e7;color:#286528}.menu-msg.err{display:block;background:#fde8e8;color:#9b2424}@media(max-width:900px){.menu-edit-grid{grid-template-columns:1fr}.menu-table-wrap{max-height:40vh}}@media(max-width:560px){.menu-fields{grid-template-columns:1fr}.menu-field.full{grid-column:auto}.menu-list-head,.menu-form-head{align-items:flex-start;flex-direction:column}.menu-head-right{width:100%}.menu-search,.menu-filter{flex:1;min-width:120px}}

/* KMS v3.41 - naglowek listy menu: przyciski w 1 wierszu, filtry w 2 wierszu */
.menu-list-head {
    display: block;
}

.menu-list-head .menu-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}

.menu-list-head .menu-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: auto;
}

.menu-list-head .menu-filter {
    width: 180px;
    min-width: 180px;
}

.menu-list-head .menu-search {
    width: 220px;
    min-width: 220px;
}

@media(max-width:560px) {
    .menu-list-head .menu-head-left,
    .menu-list-head .menu-head-right {
        flex-wrap: wrap;
    }

    .menu-list-head .menu-filter,
    .menu-list-head .menu-search {
        width: 100%;
        min-width: 0;
    }
}

.menu-checks>span{display:inline-flex;align-items:center;min-height:2.1em}.menu-checks>span>label{margin:0}


/* KMS v3.67 - grupy użytkowników w edycji menu */
.menu-groups-title {
    margin: 8px 0 0 7px;
    font-size: 11px;
    font-weight: bold;
}
.menu-group-checks {
    padding-top: 6px;
}

/* KMS v3.68 - brak wymaganego lokalnego pliku wykonywalnego */
.menu-table tbody tr.menu-file-missing > td {
    background: #ffd6d6 !important;
}
.menu-table tbody tr.menu-file-missing:hover > td {
    background: #ffc6c6 !important;
}
.menu-table tbody tr.menu-file-missing.sel > td {
    background: #ffbaba !important;
}

/* KMS v3.69 - generator pliku wykonawczego */
.menu-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-file-row select {
    flex: 1 1 auto;
}

.menu-file-row .button {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.menu-file-popup {
    display: none;
    position: fixed;
    z-index: 30000;
    inset: 0;
    padding: 4em 2em;
    background: rgba(0, 0, 0, 0.55);
    overflow: auto;
}

.menu-file-popup.active {
    display: block;
}

.menu-file-popup-box {
    width: min(620px, 100%);
    margin: 0 auto;
    background: #fff;
    border: 1px solid #cfcfcf;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
}

.menu-file-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: 0.9em 1em;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
}

.menu-file-popup-body {
    padding: 1em;
}

.menu-file-popup-body .menu-field {
    margin-bottom: 14px;
}

.menu-file-popup-actions {
    margin-top: 16px;
    text-align: right;
}

@media screen and (max-width: 736px) {
    .menu-file-row {
        align-items: stretch;
        flex-direction: column;
    }

    .menu-file-row .button {
        width: 100%;
    }

    .menu-file-popup {
        padding: 1em;
    }
}



/* KMS v4.34 - typ_menu 3: file_html tylko do odczytu */
.menu-file-row select:disabled {
    background: #eeeeee;
    color: #666666;
    cursor: not-allowed;
    opacity: 1;
}

.menu-file-row .button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
