@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@100;200;300;400;600;700&display=swap');

*, *:before, *:after {
    box-sizing: border-box;
}


html, BODY {
    font-size:12px;
    font-family: "Roboto", sans-serif;
    background-color: #FFFFFF;
    height: 100%;
    margin: 0;
}

/* Nadpisanie `bold` na wagę 600 */
strong, b, [style*="font-weight: bold"] {
    font-weight: 600 !important; /* Ustawienie wagi 600 dla wszystkich elementów z `bold` */
}

input, textarea {
    border-width:1px;
}

input:focus, textarea:focus {
    border-width:1px;
}

select {
    border-width:1px;
}

select.ModalSelect {
    pointer-events: none;
    cursor: pointer;
}

.mSelect {
    padding: 0.3em;
    background-color: #F5F5F5;
    border: 1px solid #CCCCCC;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mSelectList {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    overflow-y: auto;
    flex-grow: 1;
}
.mSelectListItem {
    background-color: #E0E0E0;
    padding: 0.2em 0.5em;
    border-radius: 0.3em;
    font-size: 0.9em;
    display: flex;
    align-items: center;
}
.mSelectFooter {
    display: flex;
    flex-direction: column;
    margin-top: 0.5em;
}

.mSelectError {
    color: red;
    padding: 0.5em 0 0.5em 0;
    height: 2em;
    width: 100%;
    overflow: hidden;
    text-wrap: none;
}

/* lista błędów znika jak jest pusta */
.mSelectError:empty {
    display: none;
}

.mSelectResults {
    margin-top: 0.5em;
}

.mSelectResults ul {
    padding: 0;
    margin-top: 0.5em;
    margin-bottom: 1em;
}

.mSelectResults li {
    display: flex;
    align-items: stretch;
    list-style: none;
    color: #000000;
    padding: 0.4em 0.2em 0.4em 0.2em;

    /* Ramka pokazująca hover na opcji (na początku jest przezroczysta)*/
    border: 2px solid transparent;
    box-sizing: border-box;
    margin-bottom: 0.3em;

    transition: background-color 0.2s ease, opacity 0.2s ease, border-color 0.5s ease;
    opacity: 0.7;
}

/* główna treść opcji w select */
.mSelectResults .select-value {
    font-size: 1em;
}

/* opis pod główną treścią */
.mSelectResults .select-description {
    font-size: 0.8em;
}

/* styl zaznaczonej opcji */
.mSelectResults li.selected {
    background-color: lightgreen;
    opacity: 1;
}

/* highlight new */
.mSelectResults li.highlight-new {
    background-color: #E0F5FF;
}

/* highlight warn */
.mSelectResults li.highlight-warn {
    background-color: #FFF4D6;
}

/* highlight info */
.mSelectResults li.highlight-info {
    background-color: #EDF4FF;
}

/* highlight danger */
.mSelectResults li.highlight-danger {
    background-color: #FFE0E0;
}

/* highlight muted */
.mSelectResults li.highlight-muted {
    opacity: 0.5;
}

/* Styl po najechaniu myszką na opcję */
.mSelectResults li:hover {
    border-color: #007bff;  /* Zmiana koloru ramki na widoczny */
    cursor: pointer;
    color: #444;
}

.mSelectResults li label:has(input[type="checkbox"]:disabled) {
    text-decoration: line-through;
}

.modal-sticky .no-selection-option {
    list-style: none;
    padding: 0.4em 0.2em 0.4em 0.2em;
}

.modal-sticky .no-selection-option:hover {
    background-color: #f0f0f0; /* Zmieniamy tło na szare */
    cursor: pointer; /* Dodajemy wskaźnik kursora */
    color: #333; /* Opcjonalnie zmieniamy kolor tekstu */
}

.modal-sticky .no-selection-option.selected {
    background-color: lightgreen;
}


.mSelectGroupLabel {
    font-weight: bold;
    margin-top: 0.8em;
}


.cardUI-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    overflow-y: auto;
    flex-grow: 1;
}

.cardUI-footer {
    display: flex;
    flex-direction: column;
    margin-top: 0.5em;
}

.cardUI-error {
    color: red;
    padding: 0.5em 0 0.5em 0;
    height: 2em;
    width: 100%;
    overflow: hidden;
    text-wrap: none;
}

.cardUI-body {
    background-color: #FFFFFF;
    border: 1px solid #ddd;
    padding: 0.5em 0.5em 0 0.5em;
    margin: 0.3em;
    border-radius: 0.5em;
    box-shadow: 0 0.2em 0.3em rgba(0, 0, 0, 0.1);
}

.cardUI-title {
    background-color: #CCCCCC;
    font-size: 0.8em;
    font-weight: bold;
    padding: 0.3em 2em 0.3em 2em;
    display: grid;
    place-items: center;
}

.cardUI-value {
    font-size: 1em;
    font-weight: normal;
    margin: 0.3em 1em 0.5em 1em;
    display: grid;
    place-items: center;
}

/* Dla urządzeń o szerokości ekranu mniejszej niż 1280px poziomo */
@media (max-width: 1280px) and (orientation: landscape) {
    html, BODY {
        font-size: 16px;
        font-family: "Roboto", sans-serif;
        background-color: #FFFFFF;
        margin: 0;
    }

    input, textarea {
        border-width:1px;
    }

    input:focus, textarea:focus {
        border-width:1px;
    }

    select {
        border-width:1px;
    }
}

/* Dla urządzeń o szerokości ekranu mniejszej niż 1280px pionowo */
@media (max-width: 1280px) and (orientation: portrait) {
    html, BODY {
        font-size: 33px;
        font-family: "Roboto", sans-serif;
        background-color: #FFFFFF;
        margin: 0;
    }

    input, textarea {
        border-width:3px;
    }

    input:focus, textarea:focus {
        border-width:3px;
    }

    .mSelect {
        border-width:3px;
    }

    select {
        border-width:3px;
    }
}

form {
     display:inline;
     margin:0px;
     padding:0px;
}

TABLE {
    font-size: 1rem;
    background-color:transparent;
    border-style:solid;
    border-collapse:collapse;
    table-layout:auto;
    border-width:0;
}

TD {
    padding:0px;
    margin:0px;
    border-width:0;
    border-style:none;
    border-color:#000000;
    background-color:transparent;
}

input[type="checkbox"] {vertical-align: middle; position: relative; margin-left: 0.15em; width: 1.5em; height: 1.5em;}
input[type="radio"] {vertical-align: middle; position: relative; margin-bottom: 0.06em; margin-left: 0.15em; width: 1.5em; height: 1.5em;}


input, textarea {
    font-size: 1rem;
    color:#444444;
    vertical-align: middle;
    padding: 5px;
    position: relative;
    border-radius: 0.25em;
    background-color: #F5F5F5;
    border-style:solid;
    border-color:#CCCCCC;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

input[type="range"][orient="vertical"] {
    writing-mode: bt-lr;
    appearance: slider-vertical;
}


input:focus, textarea:focus {
    border-color:#000000;
    background-color: #FFFFFF;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #AAAAAA;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #AAAAAA;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #AAAAAA;
}

input:invalid {
  background: #FFE0E0;
}

.mSelect-invalid {
    background: #FFE0E0;
}

.cardUI-invalid {
    background: #FFE0E0;
}

select:invalid {
  background: #FFE0E0;
}

select {
    font-size: 1rem;
    color:#444444;
    vertical-align: middle;
    padding: 5px;
    position: relative;
    border-radius: 0.25em;
    border-style:solid;
    border-color:#CCCCCC;
    -webkit-transition: 0.5s;
    transition: 0.5s;

/*    appearance: none; *//* Ukrywa domyślną strzałkę */
/*    -webkit-appearance: none;*/
/*    -moz-appearance: none;*/
/*    outline: none;*/ /* Usuwa obramowanie przy focus */

/*    background-image: url('http://edmanet.edma.pl/styles/caret.png'); *//* Ścieżka do obrazu PNG */
/*    background-color: #F5F5F5;*/
/*    background-size: contain; *//* Dopasowuje rozmiar obrazu */
/*    background-repeat: no-repeat;*/
/*    background-position: right center;*/
}
/*
@media (orientation: landscape) {
    select {
        font-size: 15px;
        font-family: "Roboto", sans-serif;
    }
}
*/


select:focus {
    border-color:#000000;
    background-color: #FFFFFF;

}

select option {
    background: #FFFFFF;
    color: #000000;
    font-style: normal;
    font-weight: normal;
}

select optgroup {
    background: #AAAAAA;
    color: #FFFFFF;
    font-style: normal;
    font-weight: normal;
}



fieldset {
    display:inline;
    margin: 5px;
    vertical-align:top;
    border-style:solid;
    border-width:1px;
    border-color:#CCCCCC;
    background:#FAFAFA;
}

legend {
    font-size: 1rem;
    font-weight:bold;
    color:#444444;
    display: block;
    padding-left: 5px;
    padding-right: 5px;
    border: none;
}

acronym {
    font-variant: none;
    text-decoration: none;
}

a:link {
    text-decoration:none;
    color:#880000;
    display: inline-block;
    box-sizing: border-box;
}

a:visited {
    text-decoration:none;
    color:#880000;
    display: inline-block;
    box-sizing: border-box;
}

a:hover {
    text-decoration:underline;
    color:#880000;
    display: inline-block;
    box-sizing: border-box;
}

*:disabled {
    background-color: #E0E0E0;
    color: #AAAAAA;
    opacity: 1;
    cursor: not-allowed;
}

::-webkit-file-upload-button {
	text-align:center;
	background:#888888;
	color:#FFFFFF;
	font-size:1em;
	font-weight:bold;
	padding:3px 5px 3px 5px;
	border-width:1px 1px 1px 1px;
	border-color:#000000;
	border-style:solid;
	transition-duration: 0.4s;
}


input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 90%;
}

/* Removes default focus */
input[type="range"]:focus {
    outline: none;
}

/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
    background-color: #e3e3e3;
    border-radius: 0.5rem;
    height: 1rem;
}

/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    margin-top: 0px; /* Centers thumb on the track */
    background-color: #000000;
    border-radius: 0.5rem;
    height: 1rem;
    width: 1rem;
}

input[type="range"]:focus::-webkit-slider-thumb {
    outline: 2px solid #1622ff;
    outline-offset: 0.0rem;
}

/* Disabled version for Chrome, Safari, Opera, and Edge Chromium */
input[type="range"]:disabled::-webkit-slider-runnable-track {
    background-color: #d3d3d3; /* Szary kolor tła tracku */
}

input[type="range"]:disabled::-webkit-slider-thumb {
    background-color: #808080; /* Szary kolor thumb */
}

/*********** Firefox styles ***********/
/* slider track */
input[type="range"]::-moz-range-track {
    background-color: #e3e3e3;
    border-radius: 0.5rem;
    height: 1rem;
}

/* slider thumb */
input[type="range"]::-moz-range-thumb {
    background-color: #000000;
    border: none; /*Removes extra border that FF applies*/
    border-radius: 0.5rem;
    height: 1rem;
    width: 1rem;
}

input[type="range"]:focus::-moz-range-thumb{
    outline: 3px solid #000000;
    outline-offset: 0.125rem;
}

/* Disabled version for Firefox */
input[type="range"]:disabled::-moz-range-track {
    background-color: #d3d3d3; /* Szary kolor tła tracku */
}

input[type="range"]:disabled::-moz-range-thumb {
    background-color: #808080; /* Szary kolor thumb */
}

/*********** General styles ***********/
/* For all browsers, change the cursor to not-allowed when disabled */
input[type="range"]:disabled {
    cursor: not-allowed;
}

.wrap {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* to otrzymuje kontener który jest przewijany */
.scroll-container {
    position: relative;
}