html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    transition: margin-left .3s;
}

.loaderbody {
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    position: absolute;
    background-color: rgba(128,128,128,0.2);
    z-index: 2147483647;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 45%;
    left: 40%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hide {
    display: none;
}

.disable {
    pointer-events: none;
    opacity: 0.5;
}

a.glyphicon {
    cursor:pointer;
    text-decoration:none;
}

.order-status-added {
    color: green;
}

.order-status-veryfication {
    color: yellow;
}

.order-status-accepted {
    color: darkgreen;
}

.order-status-rejected {
    color: red;
}

.order-status-assigned {
    color: blue;
}

.order-status-inprogres {
    color: yellowgreen;
}

.order-status-presentation {
    color: green;
}

.order-status-clientaccepted {
    color: green;
}

.order-status-clientrejected {
    color: darkred;
}

.order-status-settled {
color:green;
}

.order-status-shared {
    color: green;
}

.orderarea-status-pending{
    color: darkorange
}

.orderarea-status-accepted {
    color: green
}

.orderarea-status-rejected {
    color: red
}

.dropdown-menu {
    min-width: 200px;
}

    .dropdown-menu.columns-2 {
        min-width: 400px;
    }

    .dropdown-menu.columns-3 {
        min-width: 600px;
    }

    .dropdown-menu li a {
        padding: 5px 15px;
    }

.multi-column-dropdown {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

    .multi-column-dropdown li a {
        display: block;
        clear: both;
        line-height: 1.428571429;
        color: #333;
        white-space: normal;
    }

@media (max-width: 767px) {
    .dropdown-menu.multi-column {
        min-width: 240px !important;
        overflow-x: hidden;
    }
}

.toggle-vis:link,
.toggle-vis-es:link {
    display: inline-block;
    background-color: green;
    color: white;
    margin: 1px 1px 3px 1px;
    padding: 3px 4px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.toggle-vis:hover,
.toggle-vis-es:hover {
    background-color: green;
    text-decoration: none;
    cursor: pointer;
}

.toggle-vis:visited,
.toggle-vis-es:visited {
    background-color: green;
    color: white;
    cursor: pointer;
}

.toggle-vis:active,
.toggle-vis-es:active {
    background-color: green;
    cursor: pointer;
}


.error {
    border: 2px solid red;
}

input:invalid {
    border: 2px solid red;
    animation: shake 0.2s 2;
}
@keyframes shake {
    25% {
        translate: 6px 0;
    }

    50% {
        translate: -6px 0;
    }

    25% {
        translate: 6px 0;
    }
}

.szukaj + .select2-container .select2-selection {
    height: 38px;
    border: 1px solid lightgrey;
}

.szukaj + .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: black;
    line-height: 34px;
}

#messageArea{
    padding: 10px;
}
.highlight {
    border: 1px solid black;
    background-color: lightgreen;
    color: black;
}
.errormessage {
    border: 1px solid black;
    background-color: red;
    color: black;
}
#navbarDropdownCon{
    top: 100%;
    margin-top: -30px;
}

#main-map {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 50px 1fr;
    grid-gap: 1px;
    height: 80vh;
}



#map {
    grid-row: 2 / 3;
}

#tableMap {
    flex: 1;
    margin-right: 10px;
    overflow: auto;
}

    #tableMap td {
        padding: 2px;
    }

    #tableMap tr {
        text-align: left;
    }

    #tableMap td {
        display: inline-block;
        margin-right: 2px;
    }

#map {
    grid-row: 2 / 3;
    z-index: 0;
}

/* przyciski navbar mapa */
.transparencyButton {
    background-color: none;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid black;
    height: 27px;
}

    .transparencyButton .glyphicon {
        margin-right: 5px;
    }

.popover {
    max-width: 600px;
    height: auto;
}

/*zawiajnie tekstu w dzienniku systemowym*/
.wrap-text {
    max-width: 200px;
    position: relative;
}

.short-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#svg {
    max-width: 100%;
    height: auto;
    min-height: 700px;
    transform-origin: center center;
    transform: scale(1);
}

#svgInnerContainer {
    transform-origin: center center;
    transform: scale(1);
}

#tableBox {
    display: flex;
    gap: 10px;
}

.icon-group {
    width: auto;
}

.icon-group a {
    margin-top: 3px;
    font-size: 24px;
}

.modal-body2 {
    height: 90vh;
    overflow-y: auto;
}

/*popover na planie schematycznym*/
.custom-popover .popover-header {
    background-color: blue;
    color: white;
}

/*Sidebar edycji EIK w CPS*/
.custom-sidebar-link {
    font-size: 20px !important;
    margin-left: 2px !important;
    color: blue !important;
    text-decoration: underline !important;
    cursor: pointer;
}


.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    overflow-x: hidden;
    padding-top: 12px;
    transition: 0.3s;
    z-index: 1;
}
    .red-marker {
        background-color: red;
        border-radius: 0 0 50% 50%;
        width: 30px;
        height: 150px;
        position: relative;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 20px solid red;
        cursor: pointer;
        border: 1px solid white; /* Add white stroke */
    }

    .sidebar a {
        display: block;
        transition: 0.3s;
    }
        .sidebar a:hover {
            color: #f1f1f1;
        }

.sidebar .closebtn {
    position: absolute;
    text-decoration: none;
    color: #818181;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    
}
    .sidebar-title {
        padding-left: 4px;
    }
    .sidebar-title2 {
        padding-left: 4px;
        padding-top: 12px;
        margin-bottom: -10px;
    }

.nav-tabs {
    padding-left: 3px;
}

/*Style dla input�w w sidebarze elementy EIK i ES*/
.input-group-small input,
.input-group-small select,
.input-group-small textarea {
    width: 97%;
    margin: 0px 5px -2px 5px;
}
.input-group-small > .form-control {
    padding: 0.05rem 0.1rem;
    font-size: .800rem;
    border-radius: 0.2rem;
}
.input-group-small > .form-select {
    padding: 0.05rem 0.1rem;
    font-size: .800rem;
    border-radius: 0.2rem;
}
.input-group-small > .form-check {
    padding: 0.05rem 0.1rem;
    font-size: .800rem;
    border-radius: 0.2rem;
}
.input-group-small label {
    width: 95%;
    text-align: left;
    padding-left: 5px;
    font-size: 13px;
}

.input-group-small .form-check-input {
    width: 13px;
    margin-right: 5px;
}
.input-group-small .form-check-label {
    display: flex; 
    padding-top: 7px;
    margin-bottom: -3px;
    align-items: center; 
    width: 100%; 
}    
    .input-group-small .form-check-label span {
        width: 80%;
        text-align: left;
    }
    .input-group-small .form-check-input,
    .input-group-small .form-check-label span {
        padding: 0.05rem 0.1rem;
        font-size: .800rem;
        border-radius: 0.2rem;
    }

.custom-form-group textarea.form-control {
    height: 1px;
}

/* Styl dla element�w sieciowych w sidebarze */
.sidebar-view {
    margin-right: 5px;
}

    .sidebar-view form {
        margin-top: 55px;
    }

    .sidebar-view .form-group {
        position: relative;
    }

    .sidebar-view input {
        width: 100%;
        margin: 0px 5px -2px 5px;
        padding: 0.05rem 0.1rem;
        font-size: .800rem;
        border-radius: 0.2rem;
    }

    .sidebar-view label {
        width: 95%;
        text-align: left;
        padding-left: 5px;
        font-size: 13px;
    }

    .sidebar-view .form-group input[type="submit"] {
        /* Styl dla przycisku w sideberze */
        width: 28%;
        padding: 5px;
        font-size: 14px;
        box-sizing: border-box;
        position: absolute;
        bottom: 463px;
        left: 0;
        z-index: 1;
    }

#locationTitle{
    font-size: 13px;
    padding-top: 5px;
}

/*Style dla tabeli z obszarami modelu*/
#InfModelTable th {
    vertical-align: bottom;
    border-color: black;
}
#PosSysTable {
    border-bottom: none;    
}
#PosSysTable,
#PosSysData th,
#InfModelTable tbody td:nth-child(4),
#InfModelTable tbody td:nth-child(5),
#InfModelTable tbody td:nth-child(6) {
    width: 150px;
}

.link-styled {
    margin-left: -155px;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

/*Checkboxy i akordeony dla r�l*/
.masterCheckbox {
    margin-right: 5px;
    margin-top: 3px;
}

#tabelaEIF td:nth-child(3),
#tabelaEIF td:nth-child(4),
#tabelaEIF td:nth-child(5) {    
    font-size: 14px;
    vertical-align: top;
    text-align: left;
}

#area {
    position: fixed;
    right: 0;
    bottom: 0;
    width: auto;
}
