html {
    font-family: Arial;
    font-size: 14px;
}

body {
    margin: 0;
    padding: 0;
}

h3 {
    color: #444;
    font-size: 18px;
    margin: 10px 0;
}

h5 {
    margin: 0;
    color: #545454;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #235a81;
    text-shadow: 0 1px 0 #fff;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    padding: 0 0 5px 0;
    display: flex;
}

input {
    border: 1px solid #7a7a7a;
    padding: 7px 5px;
}

input:read-only {
    background: #e3e3e3;
}

select:disabled {
    background: #e3e3e3;
}

button {
    cursor: pointer;
    max-width: fit-content;
    padding: 5px 12px;
    margin: 0 5px 0 0;
    text-shadow: 0 1px 0 #fff;
    border: 1px solid #aaa;
    background: linear-gradient(#f8f8f8, #d8d8d8);
    text-decoration: none;
    color: #000; 
}

button:hover {
    background: linear-gradient(#cccccc, #dddddd);
}

button:disabled {
    background: linear-gradient(#cccccc, #dddddd);
    color: #666666;
}

button i {
    font-size: 16px;
    padding: 0 5px 0 0;
    text-shadow: 0 1px 0 #bbb;
}

button:disabled i {
    color: #666666;
}

.button {
    cursor: pointer;
    max-width: fit-content;
    padding: 5px 12px;
    margin: 0 5px 0 0;
    text-shadow: 0 1px 0 #fff;
    border: 1px solid #aaa;
    background: linear-gradient(#f8f8f8, #d8d8d8);
    text-decoration: none;
    color: #000;
    
}

.button:hover {
    background: linear-gradient(#cccccc, #dddddd);
    text-decoration: none;
}

.button_disabled {
    background: linear-gradient(#cccccc, #dddddd);
    color: #666666;
}

input[type=submit] {
    cursor: pointer;
    max-width: fit-content;
    padding: 6px 12px;
    text-shadow: 0 1px 0 #fff;
    border-color: #aaa;
    background: linear-gradient(#f8f8f8, #d8d8d8);
}

input[type=submit]:hover {
    background: linear-gradient(#cccccc, #dddddd);
}

/*** Barvy ***/
.zelena {
    color: #009640;
}

.modra {
    color: #005999;
}

.cervena {
    color: #c51b17;
}

.seda {
    color: #ababab;
}

.zluta {
    color: #ffca00 ;
}

.bila {
    color: #fff;
}

.error {
    color: #c51b17;
    text-align: center;
    padding: 5px 0;
}

.ok {
    color: #009640;
    text-align: center;
    padding: 5px 0;
}

form .item {
    display: flex;
    padding: 5px 0;
}

.col {
    flex-direction: column;
}

.row {
    flex-direction: row;
}

.center {
    text-align: center;
}

/*** Tooltip ***/
.tooltip {
    position: relative;
    display: flex;
    color: #235a81;
    font-size: 14px;
    padding-left: 5px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    background: #333 !important;
    opacity: 0.8;
    color: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 0.3em !important;
    text-shadow: -1px -1px #000 !important;
    padding: 5px !important;
    
}

.tooltip .tooltiptext {
    visibility: hidden;
    position: absolute;
    z-index: 9999;
    width: max-content;
    max-width: 280px;
    opacity: 0;
    left: 30px;
    bottom: 100%;

}

/*** Login ***/
.login {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.login_box {
    width: 400px;
    background: #eee;
    border: 1px solid #aaa;
    padding: 20px;
}

/*** Evidence zakazek ***/
.top_lista {
    background: #888;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 5px 20px;
}

.top_lista a {
    color: #fff;
    text-shadow: 0 1px 0 #000;
    padding: 0 15px;
}

.top_lista a:hover {
    text-decoration: underline;
}

.top_lista a i {
    padding: 0 5px;
    font-size: 13px;
}

.top_lista_leva {
    text-shadow: 0 1px 0 #000;
}

/*** Hlavní menu ***/
.menu {
    background: linear-gradient(#fff, #dcdcdc);
    border-bottom: 1px solid #ccc;
}

.menu ul {
    list-style: none;
    margin: 0;
    display: flex;
    padding: 0;
}

.menu ul li {
    display: flex;
    border-right: 1px solid #fff;
    border-left: 1px solid #ccc;
}

.menu ul li a {
    text-decoration: none;
    padding: 10px 20px;
}

.menu ul li a:hover {
    background: linear-gradient(#fff, #e7e7e7);
}

/*** Sub menu ***/
.sub_menu {
    display: flex;
    padding: 0 10px;
}

.sub_menu ul {
    display: flex;
    padding: 0;
}

.sub_menu ul li {
    list-style: none;
    padding-right: 10px;
}

.sub_menu a {
    cursor: pointer;
    max-width: fit-content;
    padding: 6px 12px;
    text-shadow: 0 1px 0 #fff;
    border: 1px solid #aaa;
    background: linear-gradient(#f8f8f8, #d8d8d8);
    text-decoration: none;
    color: #000;
}

.sub_menu a:hover {
    background: linear-gradient(#cccccc, #dddddd);
}

/*** Stránky ***/
.stranka {

}

.obsah {
    padding: 10px 5px;
}

.title {
    background: #e5e5e5;
    padding: 15px;
    font-size: 110%;
    font-weight: bold;
}

/*** Seznam ***/
.seznam {

}

.seznam table {
    border-collapse: collapse;
    width: 100%;
}

.seznam table thead th {
    background: linear-gradient(#fff, #ccc);
    border-right: 1px solid #fff;
    line-height: 25px;
}

.seznam table thead i {
    padding: 0 5px; 
}

.seznam table thead span {
    font-size: 13px;
    text-shadow: 0 1px 0 #fff;
    padding: 0 5px;
}

.seznam table tbody tr {
    line-height: 30px;
}

.seznam table tbody tr:hover {
    background: linear-gradient(#ced6df, #b6c6d7);
}

.seznam table tbody tr td {
    padding: 0 5px;
    color: #444444;
    font-size: 15px;
    text-shadow: 0 1px 0 #fff;
}

.seznam table tbody tr td i {
    font-size: 10px;
}


/*** Záznam ***/
.zaznam {
    display: flex;
    justify-content: center;
    width: 100%;
}

.zaznam .formular {
    width: 800px;
    padding: 20px;
    border: 1px solid #abadb3;
    background: #f9f9f9;
}

.zaznam .formular h3 {
    width: auto;
    margin: -20px -20px 0;
    padding: 10px;
    text-align: center;
    font-weight: normal;
    color: #545454;
    background: linear-gradient(90deg, #d4d8e0, #e8eaee, #d4d8e0);
    text-shadow: 0 1px 0 #fff;
    border-bottom: 2px solid #123e77;
}

.zaznam .formular .buttony {
    padding: 10px 0;
}


/*** Nový zákazník ***/
.novy_zakaznik {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.novy_zakaznik fieldset {
    width: 60%;
    display: flex;
    flex-direction: column;
    border: 1px solid #abadb3;
    margin: 5px 0;
}

.novy_zakaznik fieldset span {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    line-height: 30px;
}

.novy_zakaznik fieldset span .input-box {
    width: 70%;
}

.novy_zakaznik select {
    padding: 5px 15px;
    width: 50%;
}

.novy_zakaznik textarea {
    resize: none;
    
}

/*** Poptávka ***/
.poptavka {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poptavka fieldset {
    width: 85%;
    display: flex;
    flex-direction: column;
    border: 1px solid #abadb3;
    margin: 5px 0;
}

.poptavka .poptavka_2_sloupce {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1.0rem;

}

.poptavka .poptavka_2_sloupce span {
    display: flex;
    flex-direction: column;
}

.poptavka .poptavka_3_sloupce {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 1.0rem;
}

.poptavka .poptavka_3_sloupce span {
    display: flex;
    flex-direction: column;
}

.poptavka select {
    border: 1px solid #7a7a7a;
    padding: 7px 5px;
}

.poptavka input[type="date"] {
    width: 75%;
}

.poptavka textarea {
    width: 100%;
    height: 250px;
    border: 1px solid #7a7a7a;
    padding: 7px 5px;
    resize: none;
    font-family: Arial;
    font-size: 14px;
}

/*** Zakázka ***/
.zakazka {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zakazka fieldset {
    width: 85%;
    display: flex;
    flex-direction: column;
    border: 1px solid #abadb3;
    margin: 5px 0;
}

.zakazka .zakazka_2_sloupce {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1.0rem;
}

.zakazka .zakazka_2_sloupce span {
    display: flex;
    flex-direction: column;
}

.zakazka .zakazka_3_sloupce {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 1.0rem;
}

.zakazka .zakazka_3_sloupce span {
    display: flex;
    flex-direction: column;
}

.zakazka input[type="date"] {
    width: 75%;
}

.zakazka select {
    border: 1px solid #7a7a7a;
    padding: 7px 5px;
    background: #fff;
}

.zakazka select:disabled {
    background: #e3e3e3;
    color: #000;
}

.zakazka textarea {
    width: 100%;
    height: 75px;
    border: 1px solid #7a7a7a;
    padding: 7px 5px;
    resize: none;
}




/*** Dialogové okno ***/
.dialogove_okno_bg {
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialogove_okno {
    max-width: 350px;
    /**max-height: 100px; **/  
    background: #fff;
    border: 1px solid #abadb3;
    border-radius: 4px;
    padding: 20px;
}

.dialogove_okno .dialogove_okno_text {
    color: #222222;
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #abadb3;
}

.dialogove_okno .dialogove_okno_buttony {
    padding-top: 10px;
}


/*** Filtrování ***/
.filtrovani {
    border: #aaa solid 1px;
    border-radius: 4px;
    background: #eee;
    margin: 5px 0 20px 0;
    padding: 5px;
}

.filtrovani .filtr_item {
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.filtrovani .filtr_item label {
    width: 150px;
}

.filtrovani .filtr_item input {
    width: 250px;
}

.filtrovani .filtr_item select {
    height: 31px;
    width: 250px;
}

.filtrovani .filtr_item input[type=date]  {
    width: 120px;
}

.filtrovani .filtr_item span {
    padding: 0 5px;
}

.filtrovani .filtrovani_bttony {
    padding: 10px 0 0 0;
}