/* 
    Author     : wat
*/

:root {
    --window-width: calc(100vw - 50px); /*1250px;*/
    /*--background-color: #deffe0;*/
    --background-color: #fff;
    /*poniższy kolor mógłby być docelowy*/
    /*--background-color: #84ba54;*/
    --color: black;
}

html {
    font-size: 12pt;
    margin: 0px auto;
    width: var(--window-width);
    color: var(--color);
    background-color: var(--background-color);
    border: #f3F7F0;
}

* {
    margin: 0px;
    padding: 0px;
    font-family: Verdana, sans-serif;
    font-size: inherit;
    color: inherit;
    background-color: inherit;
    opacity: 1;
}

#body h1 {
    font-size: 14pt;
    margin-top: 15px;
    margin-bottom: 10px;
}

#body h2 {
    margin-top: 10px;
}

#header {
    padding: 10px 0px;
    border-bottom: solid 1px;
    margin-bottom: 10px;
    /*width: 100%;*/
    height: 100px;
    vertical-align: bottom;
    font-size: 18pt;
    font-weight: bold;
    font-variant: small-caps;
    width: var(--window-width);
    position: fixed;
    z-index: 1001;
    /*    display: grid;
        grid-gap: 20px;
        grid-template-columns:60px auto;*/
}

#loading  {
    width: 100vw;
    height: 100vh;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    vertical-align: middle;
    display: block;
}

#loading img {
    height: 100px;
    margin-top: calc(100vh/2 - 50px);
}

#content {
    padding-top: 130px;
    margin-bottom: 160px;
}

.tytul {
    font-size: 18pt;
    font-weight: bold;
    font-variant: small-caps;
}

.podtytul {
    padding-top:5px;
    /*font-style: italic;*/
    font-size: 14pt;
    font-variant: small-caps;
}


#body {
    clear: both;
    min-height: 350px;
    max-width: calc(100vw - 70px);/*1240px;*/
}

.lewa_strona {
    float: left;
    width: 240px;
    /*width: 25%;*/
    display: block;
    position:fixed;

}

.prawa_strona {
    width: calc(100vw - 350px); /*980px;*/
    /*float: left;*/
    float: right;
    display: block;
    margin-left: 20px;
}

.prawa_strona ol {
    margin-left: 20px;
}

#footer {
    padding: 10px 0px;
    border-top: solid 1px;
    margin-top: 10px;
    text-align: right;
    font-style: italic;
    font-size: 8pt;
    position: fixed;
    bottom: 0px;
    width: var(--window-width);
    z-index: 1001;
}

fieldset {
    margin-top: 10px;
    padding: 10px;
}

/*FORMS*/

input, select, textarea {
    border: solid 1px darkgray;
    /*color: var(--background-color);*/
    background-color: #eee;
    padding: 2px;
    width: 100%;
}

input[type=submit], input[type=button] {
    margin: 2px;
    min-width: 150px;
    width: auto;
    padding: 3px 30px;
}

input[type=date] {
    width: 150px;
}

input[type=time] {
    width: 80px;
}

textarea {
    height: 150px;
}

input:read-only,
/*select:read-only,*/
textarea:read-only,
.read-only {
    background-color: darkgray;
    color: black;
    /*-webkit-appearance: none;*/
    -moz-appearance: textfield;

}

input[type=checkbox], input[type=radio] {
    width: 30px;
    margin: 10px;
}

input[type=file] {
    background-color: #eee;
}

input[type=number] {
    text-align: right;
}

.inputerror, .error, input:invalid, select:invalid, textarea:invalid {
    border: solid 1px red;
    background-color: #FFE0E0;
}

input:not([type="button"]):disabled, select:disabled, textarea:disabled, .disabled {
    padding: 2px;
    background-color: darkgray;
    /*color: black;*/
}

input:disabled:not([type="submit"]):not([type="button"]),
select:disabled
/*, textarea:disabled, .disabled {*/
{
    padding: 2px;
    background-color: transparent;
    /*color: black;*/
    /*font-weight: bold;*/
    border: none;
    -webkit-appearance: none;
}


a.button, button {
    border: solid 1px black;
    padding: 4px 30px;
    background-color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}


p {
    margin-top: 0.5em;
    line-height: 1.3em;
}

/*MENU*/
.menu > li {
    width: 230px;
    /*border: solid 1px white;*/
    border: none;
    list-style: none;
    /*margin-bottom: 5px;*/
    margin: 0px;
    /*background-color: #E0E0E0;*/
}

.menu > li:hover, .tdlink {
    background-color: lightgrey;
    color: black;
}

.menu a {
    padding: 3px;
    background-color: inherit;
    text-decoration: none;
    display: block;
}

.menu .wybrane {
    background-color: #eee;
}


/*TABELE*/
table {
    margin-top: 10px;
    width: 100%;
    border-collapse:collapse;
}

th, td {
    padding: 5px;
    border: solid 1px gray;
    vertical-align: top;
    background-color: inherit;
}

th {
    vertical-align: middle;
}

.right {
    text-align: right;
}

table .button {
    width: auto;
    max-width: 80px;
    padding: 2px;
    margin: 2px;
    display: block;
}

tbody tr:hover {
    background: lightgrey;
    cursor: pointer;
}

tbody.nohover tr:hover {
    background: inherit;
    cursor: auto;
}
/*
table.pointer tbody tr:hover {
    background: lightgrey;
}

table.pointer tbody tr {
    cursor: pointer;
} */
/*/TABLE*/

.center {
    text-align: center;
}

/*label {
    display: block;
    float: left;
    margin-top: 4px;
}*/
/*
option:nth-child(even) {
    background-color: #c0c0c0;
}
*/

.errormsg {
    color: red;
}

.lp {
    width: 60px;
}
/*

#body > .left {
}




.przekresl {
    text-decoration: line-through;
}


.italic {
    font-style: italic;
}

 MENU 
#subpage {
    clear: both;
    padding-top: 10px;
}

#grant_menu > div {
    border: solid 1px black;
    list-style: none;
    background-color: #E0E0E0;
    float: left;
    min-width:  103px;
    text-align: center;
    padding: 0px 5px;
    padding: 2px;
}

#wnioski_menu > div {
    border: solid 1px black;
    list-style: none;
    background-color: #E0E0E0;
    float: left;
    min-width:  120px;
    text-align: center;
    padding: 0px 5px;
    padding: 2px;
}

#subpage p, #subpage h1 {
    margin-top: 1em;
    margin-bottom: 0;
}

#subpage h1 {
    margin-top: 1em;
    margin-bottom: 0;
    font-size: 14pt;
}

#protokol h2 {
    margin-top: 1em;
    text-align: center;
    text-decoration: underline;
}


#grant_menu > div:hover, #wnioski_menu > div:hover  {
    background-color: #b0c4de;
}

#grant_menu a, #wnioski_menu a {
    padding: 3px;
    background-color: inherit;
    text-decoration: none;
    display: block;
}

#grant_menu .wybrane, #wnioski_menu .wybrane {
    background-color: #FFFFa0;
}


ol {
    margin-left: 30px;
}

#subpage ul, #wiadomosc_systemowa ul {
    margin-left: 40px;
}

ol>li, #subpage ul li {
    margin-top: 15px;
    padding-left: 20px;
}

 start: UMOŻLIWIENIE NUMERACJI PODPUNKTÓW 
#protokol ol {
    counter-reset: licznik; 
}

#protokol ol>li{
    list-style-type: none;   
    text-indent: -20px;
}

#protokol ol>li:before {
    content: counters(licznik,".") ". ";
    counter-increment: licznik;
}
 koniec: UMOŻLIWIENIE NUMERACJI PODPUNKTÓW 

hr {
    border: none;
    border-bottom: solid 1px black;
}
*/

ul li {
    margin-left: 20px;
}

#login {
    margin-top: 20px;
}

#login span {
    width: 200px;
    display: inline-block;
}

#login input:not([type=button]) {
    width: 200px;
}

.important {
    /*font-size: 16px;*/
    color: #a22347;
    text-align: left;
    border: solid 1px #800;
    padding: 10px 10px;
    background-color: #ffEFd2;
    margin-bottom: 10px;
}

.komunikat {
    padding: 10px 0px;
}

/* do pozycjonowania buttonów */
#buttons {
    text-align: center;
}

#buttons input {
    margin-top: 20px;
    min-width: 200px;
}