:root {
    --pf-main: #56b3ff;
    --pf-main-light: #9bd2ff;
    --pf-main-bg: #050505;
    --pf-container-bg: #101010;
    --pf-small-container-bg: #191919;
    --pf-border: #212121;
    --pf-icon-bg: #282828;

    --pf-header-text: #e6e6e6;
    --pf-paragraph-text: #999999;
    --pf-button-text: #cccccc;
}

* {
    box-sizing: border-box;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
    -webkit-text-fill-color: inherit !important;
    box-shadow: none !important;
    font-size: 14px;
}

select {
    width: 100%;
    height: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 8px;
    border: 1px solid var(--pf-border);
    border-radius: 5px;
    cursor: pointer;
}

.select {
    position: relative;
    display: inline-block;
}

.select i {
    position: absolute;
    right: 10px;
    top: calc(50% - 7.5px);
    pointer-events: none;
}

.multiCounting select {
    width: 100px !important;
    min-width: unset;
    text-align: center;
    padding-right: 35px !important;
}

[name="operator"] {
    width: 50px !important;
    min-width: unset;
    padding: 4px 10px !important;
    text-align: center;
}


.flex {
    display: flex;
}

.col {
    flex-direction: column;
}

.center {
    align-items: center;
    justify-content: center;
}

.flex-start {
    align-items: flex-start !important;
}

.text-secondary {
    color: var(--pf-main) !important;
}

body {
    background: var(--pf-main-bg);
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--pf-paragraph-text);
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--pf-header-text);
}

h1 {
    font-size: 28px;
    font-weight: 200;
    padding: 0 3vh;
    margin-bottom: 3vh;
    color: var(--pf-main);
}

h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 5px;
}


a {
    text-decoration: none;
    color: var(--pf-main);
    cursor: pointer;
    transition: ease 0.3s;
}

a:hover {
    color: var(--pf-main-light);
}

i {
    color: var(--pf-main);
    margin-right: 5px;
}

h1 i {
    margin-right: 15px;
}

h1 p {
    font-size: 16px;
    color: var(--pf-paragraph-text);
    font-weight: 400;
    padding-left: 3.5vh;
}

.gap-10 {
    gap: 10px;
}

hr {
    border: none;
    height: 1px;
    background-color: var(--pf-border);
    margin: 10px 0;
}

input,
textarea,
select {
    font-family: Manrope;
    font-weight: 500;
    background-color: var(--pf-small-container-bg);
    border: solid 1px var(--pf-border);
    min-height: 20px;
    min-width: 200px;
    width: 100%;
    color: var(--pf-paragraph-text);
    border-radius: 10px;
    font-size: 14px;
    padding: 10px;
}

.w-80 textarea {
    height: 70px;
}

input.label {
    font-size: 12px !important;
    margin-left: 5px;
    margin-bottom: 0;
    color: #545555 !important;
    overflow: hidden;
    line-height: normal !important;
    white-space: nowrap;
    min-width: unset !important;
    min-height: unset !important;
    padding: 0px !important;
    border: none !important;
    width: 60px !important;
}

.small-container .entry-line {
    display: block;
}

.disabled.small-container .entry-line {
    display: flex;
}


@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 102, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 195, 255, 0);
    }
}

button {
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    align-content: center;
    align-items: center;
    display: flex;
    flex: none;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    height: min-content;
    justify-content: center;
    overflow: hidden;
    padding: 10px 20px;
    position: relative;
    /* z-index: 1; */
    background: radial-gradient(73.9583% 281.25% at 19.1667% 82.2917%, rgb(164, 185, 253) 0%, rgb(144, 164, 252) 49.3123%);
    border-radius: 12px;
    box-shadow: rgb(164, 192, 253) 2px 2px 2px 0px inset;
    opacity: 1;
    cursor: pointer;
    min-width: 200px;
    margin-top: 20px;
    font-size: 14px;
}

button:hover {
    transform: scale(1);
    animation: pulse 2s infinite;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
}

.pf-edit-line {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.input-line {
    width: 100%;
}

.input-line input {
    min-width: unset;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.input-group div {
    width: 50%;
}

.login {
    max-width: 400px;
}

.register {
    width: 60%;
    min-width: 400px;
}

.big-container {
    background-color: var(--pf-container-bg);
    border-radius: 20px;
    border: solid 1px var(--pf-border);
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

.big-container.full.editor {
    width: 100%;
    flex: unset;
}

.big-container.full.editor .data-container {
    height: unset;
}

.center-all {
    position: absolute;
    display: flex;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: center;
}

.container-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container-header h1,
.container-header p,
.big-container p {
    margin: 0;
}

.top-bar {
    width: 100%;
    border-bottom: 1px solid var(--pf-border);
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    min-height: 48px;
}

.top-bar p {
    margin: 0;
    align-items: center;

}

.top-bar img {
    margin-right: 15px;
}

.element-menu i {
    cursor: pointer;
    transition: ease 0.3s;
    font-family: Manrope;
    font-weight: 500;
}


.sub-menu li:hover,
.element-menu i:hover {
    color: var(--pf-main);
}

.element-menu i:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
}

#logOut {
    margin-left: 15px;
}

ul {
    padding: 0;
    margin: 0;
    width: 100%;
}

ul li {
    list-style-type: none;
    font-weight: 600;
    line-height: 175%;
}

#template-menu li,
.pf-trumbowyg-editor li {
    list-style-type: square;
    list-style-position: inside;
}

.flex.header {
    align-items: center;
}

.top-menu {
    display: flex;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid var(--pf-border);
    width: unset;
}

.top-menu li {
    margin: 0 10px;
    position: relative;
    padding: 10px;
}

.top-menu i {
    color: var(--pf-paragraph-text);
}

.element-menu .sub-menu {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background-color: #101010c7;
    z-index: 100;
    min-width: 300px;
    border: 1px solid var(--pf-border);
}

.element-menu:hover,
.element-menu:hover .sub-menu {
    display: block;
}

.sub-menu li {
    cursor: pointer;
}


#page-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

.main-content {
    display: flex;
    gap: 0;
    padding: 15px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.left-column {
    width: 300px;
}

.right-column {
    width: calc(100% - 300px);
}

.main-content .big-container {
    flex: 1 1 calc(33.333% - 30px);
    min-width: 280px;
    margin: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.edit,
.unblock-edit {
    position: absolute;
    right: 15px;
    left: auto;
    top: 15px;
    bottom: auto;
    font-size: 18px;
    cursor: pointer;
    transition: ease 0.3s;
}


.edit:hover,
.unblock-edit:hover {
    color: var(--pf-main-light);
}



.active,
.active i {
    color: var(--pf-main) !important;
}

.small-container,
.array-element {
    background: var(--pf-small-container-bg);
    padding: 10px;
    border-radius: 7px;
    border: 1px solid var(--pf-border);
}


.pf-array {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pf-array.small-container {
    height: 200px;
    overflow-y: auto;
}

.array-element {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 40px;
    padding: 5px 10px;
    width: 100px;
    max-height: 30px;
}



li label,
.form-element label {
    font-size: 12px;
    margin-left: 5px;
    margin-bottom: 0;
    color: #545555;
}

.form-element select,
.form-element input {
    height: 30px;
    padding: 5px 15px;
    font-size: 12px;
}

.form-element .number-input input {
    width: 100px;
}

.form-element .number-input button {
    font-size: 14px;
    height: 12px;
    right: 2px;
}

.form-element .number-input .minus {
    bottom: 2px;
}

.form-element .number-input .plus {
    top: 2px;
}

.disabled input {
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    outline: none;
    cursor: default;
    padding: 0px;
    min-width: unset;
    min-height: unset;
}

.disabled li {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.disabled label {
    min-width: 80px;
    max-width: 130px;
    overflow: hidden;
    line-height: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.disabled.small-container {
    max-height: 212px;
    overflow: auto;
}

[type="checkbox"] {
    min-width: unset;
}

.checkbox {
    width: 14px;
    height: 14px;
    border: 1px solid var(--pf-main);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s;
    padding: 3px 9px;
}

.checkbox:checked {
    background-color: var(--pf-main);
    border-color: var(--pf-main);
    position: relative;
}

.checkbox:checked::after {
    content: '✔';
    color: var(--pf-icon-bg);
    font-size: 12px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.tripple-switch {
    display: flex;
    position: relative;
    width: 80px;
    background: var(--pf-icon-bg);
    border-radius: 20px;
    padding: 7px;
    justify-content: space-between;
    align-items: center;
    color: var(--pf-header-text);
    line-height: 100%;
    gap: 7px;
}

.tripple-switch input {
    display: none;
}

.tripple-switch .option {
    flex: 1;
    text-align: center;
    padding: 1px;
    cursor: pointer;
    font-size: 12px;
    position: relative;
    z-index: 2;
    color: #545555;
    margin: 0;
}

.tripple-slider {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--pf-main);
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
    z-index: 1;
}

/* Pozycjonowanie suwaka w zależności od zaznaczonego inputa */
.switch-off:checked~.tripple-slider {
    left: 4px;
    background-color: var(--pf-small-container-bg)
}

.switch-neutral:checked~.tripple-slider {
    left: 29px;
    background-color: var(--pf-paragraph-text);
}

.switch-on:checked~.tripple-slider {
    left: 52px;
}


.array-element label {
    width: unset;
    display: flex;
    position: relative;
    justify-content: center;
    gap: 10px;
    align-items: center;
    padding-left: 30px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;

}

.array-element label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.array-element label .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #252525;
    border-radius: 7px;
}

.array-element label:hover input~.checkmark {
    background-color: #707070;
}

.array-element label input:checked~.checkmark {
    background-color: #252525;
}

.disabled .array-element label:hover input~.checkmark {
    background-color: #252525;
}

.array-element label .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.array-element label input:checked~.checkmark:after {
    display: block;
}

.array-element label .checkmark:after {
    left: 7px;
    top: 4px;
    width: 4px;
    height: 8px;
    border: solid var(--pf-main);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.disabled .array-element label .checkmark:after {
    left: 7px;
    top: 4px;
    width: 4px;
    height: 8px;
    border: solid var(--pf-paragraph-text);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/*-----------slider switch----------*/
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--pf-icon-bg);
    /* border: 2px solid var(--pf-border); */
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 2px;
    background-color: var(--pf-paragraph-text);
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--pf-main);
    /* border: 2px solid var(--pf-main); */
}

/* input:focus+.slider {
    box-shadow: 0 0 5px var(--pf-main-light);
} */

input:checked+.slider:before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
    background-color: var(--pf-small-container-bg);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/*-----------koniec slider switcha----------*/
.w-auto {
    width: auto !important;
}

.w-100 {
    width: 100% !important;
}

.w-80 {
    width: 80%;
}

.w-70 {
    width: 70%;
}

.w-50 {
    width: 50%;
}

.w-45 {
    width: 45%;
}

.w-40 {
    width: 40%;
}

.w-33 {
    width: 33.3333%;
}

.w-30 {
    width: 30%;
}

.w-20 {
    width: 20%;
}

.w-10 {
    width: 10%;
}

.w-5 {
    width: 5%;
}

i p {
    font-family: "Manrope", sans-serif;
}

.remove,
.remove i,
.close,
.removeParam,
.removeInfo {
    color: var(--pf-paragraph-text);
    transition: 0.3s ease;
}

.remove {
    text-align: center;
}

.remove:hover,
.remove i:hover .remove p:hover,
.close:hover,
.removeParam:hover,
.removeInfo:hover {
    color: #f749a8;
}

.remove p {
    font-size: 12px;
    font-weight: 500;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.pointer {
    cursor: pointer;
}

.text-center {
    text-align: center;
}

.entry-line,
.entry-line-header {
    width: 100% !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entry-line li,
.entry-line-header li {
    text-align: center;
    margin: 4px 5px;
}

.entry-line-header {
    margin-bottom: 4px;
}

.entry-line .fa-chevron-down {
    text-align: center;
}

.entry-line-header li:not(.remove) {
    cursor: pointer;
}

.sort-indicator {
    display: inline-block;
    margin-left: 6px;
    opacity: 0.45;
    font-weight: 700;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.sort-indicator.active {
    opacity: 1;
}

.entry-line.settings {
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--pf-border);
    padding: 12px 14px;
    margin: 8px 0;
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.entry-line.settings.expanded {
    border: 1px solid var(--pf-main)
}

.settings-header {
    display: grid;
    grid-template-columns: 1fr 10% 10% 4%;
    gap: 2%;
    width: 100%;
    align-items: center;
    cursor: pointer;
}

[editor="settings.products"] .settings-header {
    grid-template-columns: 1fr 10% 10% 10% 4%;
}

[editor="settings.products"] > .settings-header {
    padding: 0px 26px 0px 11px;
}

[editor="settings.products"] > .settings-header > li:not(:first-of-type) {
    text-align: end;
    padding-right: 10px;
}

[editor="settings.products"] select {
    min-width: unset;
}

[editor="settings.products"] .form-element select,
[editor="settings.products"] .form-element input {
    padding: 5px 30px 5px 10px;
}

[editor="settings.products"] .form-element {
    display: grid;
    grid-template-columns: 100px calc(100% - 100px);
}

.exeptions {
    grid-template-columns: 10px 1fr 90px 90px 30px;
    gap: 5px;
}

.settings-header .fa-chevron-down {
    text-align: center;
    margin: 0;
    transition: 0.3s ease;
}

.expanded .settings-header .fa-chevron-down {
    transform: rotate(180deg);
}

.more-settings {
    margin: 10px -14px -12px -14px;
    padding: 16px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    position: relative;
    flex-wrap: wrap;
    border-top: 1px solid var(--pf-border);
}

.more-settings>div,
.more-settings>form {
    flex: 1 1 calc(50% - 12px);
    min-width: 250px;
}

.more-settings .remove {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.more-settings form {
    gap: 0;
}

.form-element {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 2px 0;
}

.added-info {
    width: calc(100% - 260px);
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.added-info .form-element.disabled {
    justify-content: end !important;
    width: unset;
    /* border: 1px solid var(--pf-main); */
    border-radius: 50px;
    padding: 0px 10px !important;
    margin: 0 5px;
    background: var(--pf-small-container-bg);
    border: 1px solid var(--pf-border);
}

.added-info .form-element.disabled li {
    margin: 0;
}

.added-info .form-element input {
    width: 100px;
    height: 25px;
}

.entry-line input,
.double-line input {
    min-width: unset;
}

.data-container {
    width: 100%;
    height: 600px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 8px;
}

.double-line {
    display: flex;
    gap: 10px;
}

.double-line>* {
    width: 50%;
    padding: 0;
}

.inline-adder {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}


.inline-adder li {
    width: calc(100% - 50px);
}

.inline-adder button {
    padding: 10px;
    min-width: unset;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    font-size: 24px;
    margin: 0;
}

.inline-adder-small {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    margin-bottom: 5px;
}

.inline-adder-small button {
    padding: 2px 10px;
    min-width: unset;
    border-radius: 10px;
    font-size: 12px;
    margin: 0;
}

#test-connection {
    display: none;
}

.disabled #test-connection {
    display: flex;
    margin: 10px auto;
    padding: 3px 10px !important;
    min-width: unset;
}

.disabled #test-connection i {
    color: var(--pf-main-bg);
}

[editor="settings.substrates"] .entry-line,
[editor="settings.print"] .entry-line,
[editor="settings.print"] .entry-line-header {
    grid-template-columns: minmax(120px, 1fr) 100px 100px 100px 100px 40px;
    display: grid;
    gap: 5px;
    margin: 4px 0;
    align-items: center;
}

[editor="settings.pages"] .entry-line,
[editor="settings.pages"] .entry-line-header {
    grid-template-columns: minmax(100px, 1fr) 100px 210px 40px;
    display: grid;
    gap: 5px;
    margin: 4px 0;
    align-items: center;
}

[editor="settings.substrates"] .entry-line-header {
    grid-template-columns: minmax(120px, 1fr) 200px 200px 40px;
    display: grid;
    gap: 5px;
    margin: 4px 0;
    align-items: center;
}

/***************SCROLL BAR ****************/

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--pf-border);
}

::-webkit-scrollbar-thumb {
    background: var(--pf-main);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pf-main-light);
}

/* Dialog box */

.pf-dialog {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    background: var(--pf-main-bg);
    z-index: 1000;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    display: flex;
    width: 500px;
    height: fit-content;
    border: 1px solid var(--pf-border);
    border-radius: 20px;
}

.blocker {
    padding: 0;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    z-index: 15;
}

.pf-dialog div {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin-bottom: 30px;
}

.pf-dialog button {
    min-width: 100px;
}

h2.pf-dialog-header {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    background-color: var(--pf-container-bg);
    margin: 0;
    border-radius: 20px 20px 0px 0px;
}

.pf-dialog p {
    margin-top: 90px;
    font-size: larger;
    margin-bottom: 50px;
    padding: 0 25px;
    overflow-wrap: anywhere;
}

.ip-download-icon {
    width: 40px;
    height: 30px;
    position: absolute;
    background-image: url('https://nexelior.preflight.co.pl/administration/assets/ucp-ip-download.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    right: 20px;
    transition: 0.3s ease;
    cursor: pointer;

}

.ip-download-icon:hover {
    background-image: url('https://nexelior.preflight.co.pl/administration/assets/ucp-ip-download-hover.svg');
}

/******* loader ***********/

.loader {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    color: var(--pf-header-text);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.loader:before,
.loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
}

.loader:after {
    color: var(--pf-main);
    transform: rotateY(70deg);
    animation-delay: .4s;
}


@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spin {

    0%,
    100% {
        box-shadow: .2em 0px 0 0px currentcolor;
    }

    12% {
        box-shadow: .2em .2em 0 0 currentcolor;
    }

    25% {
        box-shadow: 0 .2em 0 0px currentcolor;
    }

    37% {
        box-shadow: -.2em .2em 0 0 currentcolor;
    }

    50% {
        box-shadow: -.2em 0 0 0 currentcolor;
    }

    62% {
        box-shadow: -.2em -.2em 0 0 currentcolor;
    }

    75% {
        box-shadow: 0px -.2em 0 0 currentcolor;
    }

    87% {
        box-shadow: .2em -.2em 0 0 currentcolor;
    }
}

/****************** mobilne menu **************/
.top-menu.mobile-menu {
    display: block;
    width: 300px;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background: var(--pf-main-bg);
    border: 1px solid var(--pf-border);
    height: 100%;
    margin: 0;
}

.mobile-menu .element-menu {
    text-align: left;
}

.mobile-menu .sub-menu {
    display: block;
    position: inherit;
    border: none;
    background: unset;
    top: 10px;
}

/************end loader **************/

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;

}

.entry-line [type="number"] {
    text-align: center;
    padding-right: 35px;
}

.number-input {
    position: relative;
}

.number-input button {
    padding: 0;
    color: var(--pf-main);
    cursor: pointer;
    box-shadow: none;
    border: none;
    font-size: 16px;
}

.plus,
.minus {
    background: var(--pf-border);
    cursor: pointer;
    gap: 0;
    position: absolute;
    width: 25px;
    min-width: unset;
    left: auto;
    right: 4px;
    height: 15px;
    margin: 0
}

.plus {
    top: 4px;
    bottom: auto;
    border-radius: 0px 8px 0 0;
}

.minus {
    top: auto;
    bottom: 4px;
    border-radius: 0 0 8px 0;
}

.minus:hover {
    z-index: 100;
}

input[type="search"] {
    min-width: unset;
    width: 100px;
    position: absolute;
    left: 20px;
    right: auto;
    height: 30px;
}

.separator:before {
    content: ' & ';
    font-size: 14px;
    margin-left: 10px;
    margin-right: 10px;
    color: var(--pf-main)
}

.stiffly-h-300 {
    height: 300px;
    overflow: auto;
}

.stiffly-h-210 {
    height: 210px;
    overflow: auto;
}



/* UPLOADER */



.file-input {
    display: none;
}

#progressBar {
    width: 100%;
    background-color: var(--pf-small-container-bg);
    border: var(--pf-border) 1px solid;
    border-radius: 8px;
    margin-top: 20px
}

#progressBar div {
    width: 0;
    height: 2px;
    background-color: var(--pf-main);
    text-align: center;
    line-height: 2px;
    color: var(--pf-button-text);
    border-radius: 8px;
}

#status {
    margin-top: 10px;
    text-align: center;
}

.file-name {
    margin-left: 10px;
    font-size: 14px;
    color: var(--pf-paragraph-text);
    text-align: center;
}

.custom-file-button {
    padding: 5px 15px;
    background: var(--pf-small-container-bg);
    color: var(--pf-main);
    box-shadow: rgb(64 64 64) 2px 2px 2px 0px inset;
    border: 1px solid var(--pf-main);
    min-width: unset;
    border-radius: 6px;
    margin-top: 0;
}

.file-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 7px;
    margin-top: 10px;
}

.column-array {
    flex-direction: column;
    justify-content: start;
    flex-wrap: nowrap;
}

.saved {
    position: absolute;
    left: auto;
    right: 20px;
    top: auto;
    bottom: 20px;
    padding: 10px 20px;
    background: #a7ffa0;
    border: 2px solid #164d12;
    border-radius: 5px;
    color: #164d12;
    transition: 0.3s ease;
}

.saved:before {
    content: '\f058';
    font-family: "Font Awesome 5 Free";
    color: #164d12;
    margin-right: 10px;
}

.saved:after {
    content: 'Saved';
}

/* trumbowyg editor */

.trumbowyg-box,
.trumbowyg-editor-box {
    border: 1px solid var(--pf-border);
    border-radius: 5px;
}

.trumbowyg-button-pane {
    background: var(--pf-small-container-bg);
    border-bottom: 1px solid var(--pf-border);
}

.trumbowyg-box svg,
.trumbowyg-modal svg {
    color: var(--pf-main);
    fill: var(--pf-main);
}

.trumbowyg-button-group button,
.trumbowyg-dropdown button {
    padding: 2px;
    min-width: unset;
    margin-top: 0px;
    box-shadow: none;
    border-radius: 0;
}

.trumbowyg-button-pane button.trumbowyg-active,
.trumbowyg-button-pane button:not(.trumbowyg-disable):focus,
.trumbowyg-button-pane button:not(.trumbowyg-disable):hover {
    background-color: var(--pf-container-bg)
}

.trumbowyg-button-pane::after,
.trumbowyg-button-pane::before {
    background: var(--pf-border);
}

.trumbowyg-button-pane .trumbowyg-button-group::after {
    background: var(--pf-border);
}

.trumbowyg-modal-box .trumbowyg-input-infos {
    background: var(--pf-small-container-bg);
    border-right: var(--pf-border);
}

.trumbowyg-modal-box {
    background-color: var(--pf-container-bg);
    border-radius: 12px;
}

.trumbowyg-dropdown {
    background-color: var(--pf-container-bg);
    border-color: var(--pf-border);
}

.trumbowyg-dropdown button {
    background-color: var(--pf-container-bg);
    color: var(--pf-paragraph-text);
}

.trumbowyg-modal-box .trumbowyg-input-row {
    border: 0;
}

.trumbowyg-modal-box .trumbowyg-input-html input:focus,
.trumbowyg-modal-box .trumbowyg-input-html select:focus,
.trumbowyg-modal-box .trumbowyg-input-html textarea:focus {
    background: unset;
}

.trumbowyg-modal-box .trumbowyg-input-html input,
.trumbowyg-modal-box .trumbowyg-input-html select,
.trumbowyg-modal-box .trumbowyg-input-html textarea {
    border: 1px solid var(--pf-border)
}

.trumbowyg-modal-box .trumbowyg-modal-button {
    min-width: unset;
    box-shadow: none;
    padding: unset;
}

.trumbowyg-dropdown button:focus,
.trumbowyg-dropdown button:hover {
    background: unset;
}

.pf-trumbowyg-title {
    width: 100%;
    margin-bottom: 20px;
}

.height-none {
    min-height: unset !important;
}

#aceContainer {
    display: none;
    height: 600px;
    width: 100%;
    border: 1px solid var(--pf-border);
    border-radius: 5px;
}

.ace-tomorrow-night {
    background-color: #181818;
}

.ace-tomorrow-night .ace_gutter {
    background: #181818;
    color: #474747;
}

.ace-tomorrow-night .ace_entity.ace_name.ace_tag,
.ace-tomorrow-night .ace_meta.ace_tag,
.ace-tomorrow-night .ace_string.ace_regexp,
.ace-tomorrow-night .ace_variable {
    color: var(--pf-main);
}

.ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name,
.ace-tomorrow-night .ace_keyword.ace_operator {
    color: #f25aae;
}

.ace-tomorrow-night .ace_heading,
.ace-tomorrow-night .ace_markup.ace_heading,
.ace-tomorrow-night .ace_string {
    color: #44da62
}


.ace_scrollbar-h {
    height: 6px !important;
}

.ace-tomorrow-night .ace_variable.ace_parameter,
.ace-tomorrow-night .ace_storage,
.ace-tomorrow-night .ace_storage.ace_type,
.ace-tomorrow-night .ace_support.ace_function {
    color: #707070;
}

/* end trumbowg editor*/

@media (max-width: 1200px) {
    .top-menu {
        display: none;
    }

    .top-menu-container {
        margin: 12px;
        cursor: pointer;
    }

    .top-menu-container.blocker {
        margin: 0;
    }

    .top-menu-container:before {
        content: "\f0c9";
        font-weight: 900;
        font-family: "Font Awesome 5 Free";
        font-size: 20px;
    }
}

@media (max-width: 950px) {
    .main-content {
        flex-direction: column;
    }

    .main-content .big-container {
        flex: 1 1 100%;
        width: 100%;
        min-width: unset;
        margin: 8px 0;
    }

    .left-column {
        display: flex;
        width: 100%;
        gap: 10px;
        justify-content: space-between;
    }

    .right-column {
        width: 100%;
    }

    .data-container {
        max-height: calc(100vh - 200px);
    }

    button {
        min-width: unset;
    }
}

@media (max-width: 777px) {
    h1 {
        padding: 0 1vh;
        margin-top: 0;
    }

    h1 p {
        padding-left: 0;
    }

    .main-content {
        padding: 0;
    }

    .main-content .big-container {
        padding: 10px;
    }

    li label,
    .form-element label {
        font-size: 10px;
    }

    .left-column {
        flex-direction: column;
    }

    .more-settings>div,
    .more-settings>form {
        width: 100%;
        flex: 1 1 100%;
        min-width: unset;
    }

    /* --- Produkty: 5 kolumn (nazwa + 3 switche + chevron) --- */
    [editor="settings.products"] .settings-header {
        grid-template-columns: 1fr 60px 60px 65px 20px;
        gap: 2px;
        padding: 0 !important;
    }

    [editor="settings.products"] > .settings-header > li:not(:first-of-type) {
        padding-right: 0;
        text-align: center;
        font-size: 10px;
    }

    [editor="settings.products"] .entry-line .settings-header {
        grid-template-columns: 1fr 50px 50px 50px 20px;
        gap: 2px;
    }

    [editor="settings.products"] .entry-line .settings-header li.disabled {
        min-width: 0;
        overflow: hidden;
    }

    [editor="settings.products"] .entry-line .settings-header li.disabled input {
        font-size: 13px;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    /* Rozwinięte ustawienia produktu: form-element label mniejszy */
    .more-settings .form-element label {
        font-size: 12px;
        white-space: nowrap;
    }

    /* --- Tabele z wieloma kolumnami: horizontal scroll --- */
    [editor="settings.substrates"] .data-container,
    [editor="settings.print"] .data-container,
    [editor="settings.formats"] .data-container,
    [editor="settings.pages"] .data-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    [editor="settings.substrates"] .data-container .entry-line,
    [editor="settings.substrates"] .data-container .entry-line-header {
        width: 680px !important;
        min-width: 680px;
    }

    [editor="settings.print"] .data-container .entry-line,
    [editor="settings.print"] .data-container .entry-line-header {
        width: 650px !important;
        min-width: 650px;
    }

    [editor="settings.formats"] .data-container .entry-line,
    [editor="settings.formats"] > .entry-line-header {
        display: grid !important;
        grid-template-columns: 1fr 90px 90px 30px;
        gap: 5px;
        width: 100% !important;
    }

    [editor="settings.pages"] .data-container .entry-line,
    [editor="settings.pages"] > .entry-line-header {
        display: grid !important;
        grid-template-columns: 1fr 80px 130px 30px;
        gap: 5px;
        width: 100% !important;
    }

    [editor="settings.formats"] .data-container .entry-line li,
    [editor="settings.pages"] .data-container .entry-line li {
        width: auto !important;
    }

    /* --- Wskaźnik scrolla: gradient na prawej krawędzi --- */
    [editor="settings.substrates"] .data-container,
    [editor="settings.print"] .data-container {
        position: relative;
    }

    .data-container::-webkit-scrollbar {
        height: 6px;
    }

    .data-container::-webkit-scrollbar-thumb {
        background: var(--pf-border);
        border-radius: 3px;
    }
}

@media (max-width: 500px) {
    .user-head p {
        display: none;
    }

    .header img {
        display: none;
    }

    .switch {
        width: 40px;
        height: 20px;
        margin-left: 0px;
    }

    .slider:before {
        width: 16px;
        height: 16px;
        left: 3px;
        bottom: 2px;
    }

    input:checked+.slider:before {
        -webkit-transform: translateX(17px);
        -ms-transform: translateX(17px);
        transform: translateX(17px);
        background-color: var(--pf-small-container-bg);
    }

    .exeptions .params-group span, .exeptions p {
        font-size: 12px;
        overflow: hidden;
        white-space: nowrap;
    }

    /* --- Wyjątki mobile: ukryj nagłówek tabeli, triple-switche pod nazwą --- */
    [editor="settings.exeptions"] > .settings-header.exeptions {
        display: none;
    }

    [editor="settings.exeptions"] .entry-line .settings-header.exeptions {
        display: grid;
        grid-template-columns: auto 1fr auto 1fr 18px;
        grid-template-rows: auto auto;
        gap: 4px 6px;
        margin: 0;
        align-items: center;
    }

    /* ID: ukryj na mobile */
    [editor="settings.exeptions"] .entry-line .settings-header.exeptions > p:first-child {
        display: none;
    }

    /* Nazwa: cały pierwszy wiersz */
    [editor="settings.exeptions"] .entry-line .settings-header.exeptions > p.params-group {
        grid-column: 1 / 5;
        grid-row: 1;
        white-space: normal;
        font-size: 14px;
        font-weight: 600;
    }

    /* Chevron: prawy, oba wiersze */
    [editor="settings.exeptions"] .entry-line .settings-header.exeptions > i {
        grid-column: 5;
        grid-row: 1 / 3;
        align-self: center;
    }

    /* Drugi wiersz: etykieta + switch | etykieta + switch */
    [editor="settings.exeptions"] .entry-line .settings-header.exeptions li.tripple-switch[name="preflight"] {
        grid-column: 2;
        grid-row: 2;
    }
    [editor="settings.exeptions"] .entry-line .settings-header.exeptions li.tripple-switch[name="to_print"] {
        grid-column: 4;
        grid-row: 2;
    }

    /* Etykiety jako pseudo-elementy w osobnych kolumnach gridu */
    [editor="settings.exeptions"] .entry-line .settings-header.exeptions::before {
        content: 'Preflight';
        grid-column: 1;
        grid-row: 2;
        font-size: 10px;
        color: var(--pf-paragraph-text);
        white-space: nowrap;
    }
    [editor="settings.exeptions"] .entry-line .settings-header.exeptions::after {
        content: 'Do druku';
        grid-column: 3;
        grid-row: 2;
        font-size: 10px;
        color: var(--pf-paragraph-text);
        white-space: nowrap;
    }

    /* --- Produkty mobile: ukryj nagłówek tabeli, switche pod nazwą --- */
    [editor="settings.products"] > .settings-header {
        display: none;
    }

    [editor="settings.products"] .entry-line .settings-header {
        grid-template-columns: 1fr 1fr 1fr 18px;
        grid-template-rows: auto auto;
        gap: 4px 2px;
        margin: 0;
    }

    /* Nazwa: cały pierwszy wiersz */
    [editor="settings.products"] .entry-line .settings-header li.disabled {
        grid-column: 1 / 4;
        grid-row: 1;
    }

    [editor="settings.products"] .entry-line .settings-header li.disabled input {
        font-size: 14px;
        font-weight: 600;
    }

    /* Chevron: prawy górny róg, oba wiersze */
    [editor="settings.products"] .entry-line .settings-header > i {
        grid-column: 4;
        grid-row: 1 / 3;
        align-self: center;
    }

    /* Switche: drugi wiersz, z ::before labelkami */
    [editor="settings.products"] .entry-line .settings-header li.preflight {
        grid-column: 1;
        grid-row: 2;
    }
    [editor="settings.products"] .entry-line .settings-header li.to_print {
        grid-column: 2;
        grid-row: 2;
    }
    [editor="settings.products"] .entry-line .settings-header li.uploader_enabled {
        grid-column: 3;
        grid-row: 2;
    }

    [editor="settings.products"] .entry-line .settings-header li.preflight,
    [editor="settings.products"] .entry-line .settings-header li.to_print,
    [editor="settings.products"] .entry-line .settings-header li.uploader_enabled {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    [editor="settings.products"] .entry-line .settings-header li.preflight::before {
        content: 'Preflight';
        font-size: 10px;
        color: var(--pf-paragraph-text);
    }
    [editor="settings.products"] .entry-line .settings-header li.to_print::before {
        content: 'Do druku';
        font-size: 10px;
        color: var(--pf-paragraph-text);
    }
    [editor="settings.products"] .entry-line .settings-header li.uploader_enabled::before {
        content: 'Uploader';
        font-size: 10px;
        color: var(--pf-paragraph-text);
    }

    .entry-line li,
    .entry-line-header li {
        align-items: center;
    }

    .entry-line li.tripple-switch {
        margin: 0;
    }

    [edit="settings.exeptions"] .more-settings {
        width: 100%;
        margin: 10px 0px;
        padding: 0px;
    }

    [groupname="exclusions_group"] {
        grid-template-columns: 10px 1fr 15px;
        display: grid;
        gap: 5px;
    }

    [edit="settings.exeptions"] li {
        margin: 5px 0;
        width: unset;
    }

    [edit="settings.exeptions"] .select i {
        right: 3px;
    }

    [edit="settings.exeptions"] select {
        min-width: unset;
        padding: 5px 25px 5px 10px;
    }

    .special-info-container > form > .form-element {
        flex-wrap: wrap;
    }

    .exeptions .inline-adder-small {
        margin-top: 10px;
    }

    /* --- Ustawienia "Pozostałe": stack na mobile --- */
    .big-container.editor .entry-line .w-50 {
        width: 100%;
    }

    .big-container.editor .entry-line {
        flex-wrap: wrap;
    }

    /* --- Profile/Kolekcje: nazwy z ellipsis --- */
    .entry-line .settings-header li.disabled {
        overflow: hidden;
        min-width: 0;
    }

    .entry-line .settings-header li.disabled input {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }
}

/* ======================== Table polish ======================== */

.entry-line-header li {
    font-weight: 600;
    font-size: 12px;
    color: var(--pf-paragraph-text);
    padding: 4px 0;
}

.entry-line .fa-chevron-down,
.entry-line .fa-xmark {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.stiffly-h-300,
.stiffly-h-210 {
    padding-right: 4px;
}

.pf-array.small-container {
    padding: 8px;
}

.array-element {
    transition: border-color 0.2s ease;
}

.array-element:hover {
    border-color: var(--pf-main);
}

/* ======================== Light Theme ======================== */

html.light {
    /* --- Zmienne --- */
    --pf-main: #5b80c7;
    --pf-main-light: #7a9dd6;
    --pf-main-bg: #f0f2f5;
    --pf-container-bg: #ffffff;
    --pf-small-container-bg: #f5f6f8;
    --pf-border: #e0e3e8;
    --pf-icon-bg: #e8eaef;
    --pf-header-text: #333840;
    --pf-paragraph-text: #6b7280;
    --pf-button-text: #3b4252;
}

/* --- Top bar (ciemny jak IwarePrint) --- */
html.light .top-bar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #3a3f4b;
    border-bottom: none;
    color: #c8cdd5;
}

html.light .top-bar p {
    color: #c8cdd5;
}

html.light .top-bar .header p {
    color: #e0e3e8;
    font-weight: 600;
}

html.light .top-menu {
    border-left-color: rgba(255, 255, 255, 0.12);
}

html.light .top-menu i {
    color: #b0b5bf;
}

html.light .top-menu i:hover,
html.light .sub-menu li:hover {
    color: #ffffff;
}

/* --- Ikony menu w pastelowych kwadracikach --- */
html.light .element-menu i:before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    margin-right: 8px;
    font-size: 13px;
}

html.light .element-menu:nth-child(1) i:before {
    background: rgba(91, 128, 199, 0.2);
    color: #7aa0e0;
}

html.light .element-menu:nth-child(2) i:before {
    background: rgba(76, 175, 122, 0.2);
    color: #6dd4a0;
}

html.light .element-menu:nth-child(3) i:before {
    background: rgba(168, 130, 214, 0.2);
    color: #b893e6;
}

html.light .element-menu:nth-child(4) i:before {
    background: rgba(240, 165, 80, 0.2);
    color: #f0a550;
}

html.light .element-menu:nth-child(5) i:before {
    background: rgba(240, 165, 80, 0.25);
    color: #f0a550;
}

/* --- Sub-menu dropdown --- */
html.light .element-menu .sub-menu {
    background-color: #3a3f4b;
    border-color: rgba(255, 255, 255, 0.1);
}

html.light .sub-menu li {
    color: #b0b5bf;
}

html.light .sub-menu li:hover {
    color: #ffffff;
}

/* --- User head (prawa strona headera) --- */
html.light .user-head a {
    color: #b0b5bf;
}

html.light .user-head a:hover {
    color: #ffffff;
}

html.light #logOut span {
    color: #b0b5bf;
}

html.light #logOut:hover span {
    color: #ffffff;
}

/* --- Inputy --- */
html.light input.label {
    color: #8b92a0 !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
    color: #9ca3af !important;
}

html.light li label,
html.light .form-element label {
    color: #7b8494;
}

/* --- Entry lines --- */
html.light .entry-line.settings {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

html.light .entry-line.settings:hover {
    background: #f8f9fb;
}

html.light .entry-line.settings.expanded {
    border-color: var(--pf-main);
    background: #f8f9fb;
}

/* --- Blocker --- */
html.light .blocker {
    background-color: rgba(0, 0, 0, 0.3);
}

/* --- Scrollbar --- */
html.light ::-webkit-scrollbar-track {
    background: #f0f0f0;
}

html.light ::-webkit-scrollbar-thumb {
    background: #c8ccd2;
}

html.light ::-webkit-scrollbar-thumb:hover {
    background: #a8adb5;
}

/* --- Triple switch --- */
html.light .tripple-switch {
    background: #e5e7ec;
}

html.light .tripple-switch .option {
    color: #7b8494;
}

html.light .switch-off:checked ~ .tripple-slider {
    background-color: #d5d8de;
}

/* --- Trumbowyg --- */
html.light .trumbowyg-button-group button,
html.light .trumbowyg-dropdown button,
html.light .trumbowyg-modal-box .trumbowyg-modal-button {
    background: transparent;
    color: var(--pf-paragraph-text);
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: unset;
    margin-top: 0;
    padding: 2px;
    transition: none;
}

html.light .trumbowyg-button-group button:hover,
html.light .trumbowyg-dropdown button:hover {
    background-color: #e8eaef;
    transform: none;
    box-shadow: none;
}

html.light .trumbowyg-button-pane button.trumbowyg-active {
    background-color: #dde0e6;
    transform: none;
    box-shadow: none;
}

html.light .trumbowyg-dropdown {
    background-color: #ffffff;
}

html.light .trumbowyg-dropdown button {
    background-color: #ffffff;
    border-radius: 0;
}

html.light .trumbowyg-dropdown button:hover {
    background-color: #f0f2f5;
}

html.light .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit {
    background: var(--pf-main);
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 16px;
}

html.light .trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-reset {
    background: #e5e7ec;
    color: var(--pf-paragraph-text);
    border-radius: 6px;
    padding: 6px 16px;
}

/* --- Buttony --- */
html.light button {
    background: linear-gradient(180deg, #6b8fd4 0%, #5b80c7 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(91, 128, 199, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    animation: none;
    transition: all 0.2s ease;
}

html.light button:hover {
    animation: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(91, 128, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, #7a9dd6 0%, #6b8fd4 100%);
}

html.light button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(91, 128, 199, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* --- Buttony zielone (.add) --- */
html.light button.add {
    background: linear-gradient(180deg, #52b788 0%, #40a876 100%);
    box-shadow: 0 2px 4px rgba(64, 168, 118, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

html.light button.add:hover {
    background: linear-gradient(180deg, #62c796 0%, #52b788 100%);
    box-shadow: 0 4px 10px rgba(64, 168, 118, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* --- Plus/minus --- */
html.light .plus,
html.light .minus {
    background: linear-gradient(180deg, #52b788 0%, #40a876 100%);
    color: #ffffff;
    box-shadow: none;
}

html.light .plus:hover,
html.light .minus:hover {
    background: linear-gradient(180deg, #62c796 0%, #52b788 100%);
}

/* --- Checkmark (array-element) --- */
html.light .array-element label .checkmark {
    background-color: #d5d8de;
}

html.light .array-element label:hover input ~ .checkmark {
    background-color: #c0c4cc;
}

html.light .array-element label input:checked ~ .checkmark {
    background-color: #d5d8de;
}

html.light .disabled .array-element label:hover input ~ .checkmark {
    background-color: #d5d8de;
}

/* --- Custom file button shadow --- */
html.light .custom-file-button {
    box-shadow: rgba(180, 186, 198, 0.3) 2px 2px 2px 0px inset;
}

/* --- Ace editor --- */
html.light .ace-tomorrow-night {
    background-color: #f5f6f8;
}

html.light .ace-tomorrow-night .ace_gutter {
    background: #ecedf0;
    color: #9ca3af;
}

/* --- Logo: białe zostaje na ciemnym headerze --- */

/* --- Theme toggle button --- */
.theme-toggle {
    background: none;
    box-shadow: none;
    border: none;
    min-width: unset;
    padding: 5px 10px;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    color: var(--pf-paragraph-text);
    transition: color 0.3s ease;
    animation: none;
}

.theme-toggle:hover {
    color: var(--pf-main);
    animation: none;
    transform: none;
}

.theme-toggle i {
    color: inherit;
    margin: 0;
    transition: transform 0.3s ease;
}

html.light .theme-toggle {
    background: #2e333d;
    color: #c8cdd5;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

html.light .theme-toggle:hover {
    background: #3a4050;
    color: #ffffff;
    opacity: 1;
    transform: none;
}

html.light .theme-toggle i {
    color: #f0a550;
    font-size: 15px;
}

/* --- Loader --- */
html.light .loader {
    color: var(--pf-header-text);
}

/* --- Remove/close hover (magenta) --- */
html.light .remove:hover,
html.light .remove i:hover,
html.light .remove p:hover,
html.light .close:hover,
html.light .removeParam:hover,
html.light .removeInfo:hover {
    color: #d63384;
}

/* --- Saved notification --- */
html.light .saved {
    background: #d4edda;
    border-color: #155724;
    color: #155724;
}

html.light .saved:before {
    color: #155724;
}

/* --- ACE editor syntax (light mode) --- */
html.light .ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name,
html.light .ace-tomorrow-night .ace_keyword.ace_operator {
    color: #c7254e;
}

html.light .ace-tomorrow-night .ace_heading,
html.light .ace-tomorrow-night .ace_markup.ace_heading,
html.light .ace-tomorrow-night .ace_string {
    color: #0a7e32;
}

html.light .ace-tomorrow-night .ace_variable.ace_parameter,
html.light .ace-tomorrow-night .ace_storage,
html.light .ace-tomorrow-night .ace_storage.ace_type,
html.light .ace-tomorrow-night .ace_support.ace_function {
    color: #999;
}

html.light .ace-tomorrow-night .ace_entity.ace_name.ace_tag,
html.light .ace-tomorrow-night .ace_meta.ace_tag,
html.light .ace-tomorrow-night .ace_string.ace_regexp,
html.light .ace-tomorrow-night .ace_variable {
    color: var(--pf-main);
}

/* --- Button text (handled above) --- */

/* --- Pf-dialog --- */
html.light .pf-dialog {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    background: #ffffff;
}

/* --- Mobile menu --- */
html.light .top-menu.mobile-menu {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    background: #3a3f4b;
}

html.light .mobile-menu .sub-menu {
    background: unset;
}

/* --- User head gap --- */
.user-head {
    gap: 5px;
    align-items: center;
}

/* --- Entry line header (light) --- */
html.light .entry-line-header li {
    color: #7b8494;
}

/* --- Entry line settings hover (light) --- */
html.light .entry-line.settings:hover {
    border-color: var(--pf-main);
}

/* --- Big-container w light: bez ramki, wtapiający się w tło --- */
html.light .big-container {
    background-color: #f5f6f8;
    border-color: transparent;
    box-shadow: none;
}

html.light .main-content .big-container {
    background-color: #ffffff;
    border: 1px solid #e8eaef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html.light .left-column .big-container {
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(8px);
}

html.light .left-column .big-container .small-container,
html.light .left-column .big-container .array-element {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(224, 227, 232, 0.3);
}

html.light .left-column .big-container input,
html.light .left-column .big-container select,
html.light .left-column .big-container textarea {
    background-color: rgba(255, 255, 255, 0.35);
}

/* --- Ikonki sekcji w pastelowych kwadracikach --- */
html.light .big-container > p > i,
html.light h1 > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    margin-right: 8px;
    font-size: 14px;
    vertical-align: middle;
}

/* --- Kolory ikon per typ (FA class) --- */
/* Produkty: cubes */
html.light .big-container > p > i.fa-cubes,
html.light h1 > i.fa-cubes {
    background: rgba(91, 128, 199, 0.15);
    color: #5b80c7;
}

/* Formaty: ruler-combined */
html.light .big-container > p > i.fa-ruler-combined,
html.light h1 > i.fa-ruler-combined {
    background: rgba(240, 165, 80, 0.15);
    color: #e89840;
}

/* Podłoża: layer-group */
html.light .big-container > p > i.fa-layer-group,
html.light h1 > i.fa-layer-group {
    background: rgba(76, 175, 122, 0.15);
    color: #52b788;
}

/* Strony: file-alt */
html.light .big-container > p > i.fa-file-alt,
html.light h1 > i.fa-file-alt {
    background: rgba(168, 130, 214, 0.15);
    color: #b893e6;
}

/* Nadruki: palette */
html.light .big-container > p > i.fa-palette,
html.light h1 > i.fa-palette {
    background: rgba(220, 100, 140, 0.15);
    color: #dc648c;
}

/* Kontakt: address-card */
html.light .big-container > p > i.fa-address-card {
    background: rgba(91, 128, 199, 0.15);
    color: #5b80c7;
}

/* Kolekcje: folder-open */
html.light .big-container > p > i.fa-folder-open {
    background: rgba(240, 165, 80, 0.15);
    color: #e89840;
}

html.light .big-container > p > i.fa-gear,
html.light h1 > i.fa-gear {
    background: rgba(240, 165, 80, 0.15);
    color: #f0a550;
}

html.light .big-container > p > i.fa-envelope,
html.light h1 > i.fa-envelope {
    background: rgba(168, 130, 214, 0.15);
    color: #b893e6;
}

html.light .big-container > p > i.fa-box-open {
    background: rgba(76, 175, 122, 0.15);
    color: #52b788;
}

html.light .big-container > p > i.fa-file {
    background: rgba(91, 128, 199, 0.15);
    color: #5b80c7;
}

html.light .big-container > p > i.fa-bug {
    background: rgba(220, 80, 80, 0.15);
    color: #dc5050;
}

html.light .big-container > p > i.fa-door-open {
    background: rgba(76, 175, 122, 0.15);
    color: #52b788;
}

html.light .big-container > p > i.fa-plug-circle-exclamation,
html.light h1 > i.fa-plug-circle-exclamation {
    background: rgba(220, 80, 80, 0.15);
    color: #dc5050;
}

html.light .big-container > p > i.fa-code-branch,
html.light h1 > i.fa-code-branch {
    background: rgba(76, 175, 122, 0.15);
    color: #52b788;
}

html.light .big-container > p > i.fa-language,
html.light .big-container > p > i.fa-info-circle {
    background: rgba(168, 130, 214, 0.15);
    color: #b893e6;
}

html.light h1 > i.fa-language {
    background: rgba(168, 130, 214, 0.15);
    color: #b893e6;
}

/* --- Kropki przy elementach menu (sub-menu) --- */
html.light .sub-menu li:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

html.light .sub-menu li:nth-child(1):before { background: #5b80c7; }
html.light .sub-menu li:nth-child(2):before { background: #52b788; }
html.light .sub-menu li:nth-child(3):before { background: #f0a550; }
html.light .sub-menu li:nth-child(4):before { background: #b893e6; }
html.light .sub-menu li:nth-child(5):before { background: #dc5050; }
html.light .sub-menu li:nth-child(6):before { background: #5bb8d4; }
html.light .sub-menu li:nth-child(7):before { background: #e88ca5; }

html.light .sub-menu li {
    display: flex;
    align-items: center;
}
