﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    margin: 0;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 10px 5px;
    background: #fff;
    border: none;
    border-radius: 0;
    /*margin-bottom: 40px;*/
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

.wrapper {
    display: block;
}

.page-header {
    font-size: x-large;
    background: #eaeaea;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: .25rem;
    padding-top: .25rem;
    margin: 0;
}

/* ---------------------------------------------------
    Styl przycisków w tabeli (drzewie) z ewidencą zabiegów gosp. Przyciski pokazują rozwinięcie gałęzi drzewa albo jej zwinięcie.
----------------------------------------------------- */
button.parcel-job-done-expand-button[aria-expanded="true"] .not-expanded {
    display: none;
}

/* ---------------------------------------------------
    Ustawia dla elementu th stałą szerokość dopasowaną do zawartości.
----------------------------------------------------- */
table th.fit {
    width: 1px !important;
}

button.parcel-job-done-expand-button:not([aria-expanded="true"]) .expanded {
    display: none;
}

/* ---------------------------------------------------
    Ustawia długość przycisku na 30 px.
----------------------------------------------------- */
.btn-w30 {
    width: 30px;
}

.btn-w40 {
    width: 40px;
}

/* Styl wiersza z danymi archiwalnymi. */
.archival-data-row {
    background-color: #dbdbdb;
}
/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */
#sidebar {
    width: 350px;
    position: fixed;
    top: 0;
    left: -350px;
    height: 100vh;
    z-index: 999;
    /*background: #7386D5;*/
    background: #21619b;
    color: #fff;
    transition: all 0.3s;
    overflow-y: scroll;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
}

#sidebar.active {
    left: 0;
}

#sidebar h4 {
    background: #14467b;
}

#dismiss {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #7386D5;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

#dismiss:hover {
    background: #fff;
    /*color: #7386D5;*/
    color: #21619a;
}

.overlay {
    top: 0;
    left: 0;
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    z-index: 998;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

/* display .overlay when it has the .active class */
.overlay.active {
    display: block;
    opacity: 1;
}


#sidebar .sidebar-header {
    padding: 5px;
    background: #fff;
    margin-bottom: 1px;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1em;
    font-weight: 200;
    display: block;
    border-bottom: 1px solid #93B0CE;
}

#sidebar ul li a:hover {
    /*color: #7386D5;*/
    color: #21619a;
    background: #fff;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
    color: #fff;
    background: #6d7fcc;
}

#sidebar ul li a.nav-bold {
    font-weight: bold;
}

#sidebar ul li div.nav-item-div {
    border-bottom: 1px solid #93B0CE;
}

#sidebar ul li div.nav-item-div-label {
    padding: 10px;
    font-weight: bold;
}

#sidebar ul li div .btn:focus {
    box-shadow: none;
}

a [data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 40px !important;
    /*background: #6d7fcc;*/
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    display: flex;
    flex-direction: column;
    width: 100%;
    /*padding: 20px;*/
    min-height: 100vh;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }

        #sidebar.active {
            margin-left: 0;
        }

    #sidebarCollapse span {
        display: none;
    }
}


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ---------------------------------------------------
    Map
----------------------------------------------------- */
.ol-zoom {
    display: none;
}

.ui-dialog {
    padding: 0 !important;
    
}

.ui-dialog-titlebar {
    padding: 0 0 0 0.25rem !important;
}
.ui-dialog-title {
    width: auto !important;
}

.ui-dialog-titlebar-close {
    position: relative !important;
    float: right !important;
    top: 0 !important;
    right: 0 !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    border: none !important;
}
/* ---------------------------------------------------
    EwidencyNavigation component
----------------------------------------------------- */
.ewidency-nav-container {
    position: absolute;
    height: 38px;
    bottom: 41px;
    left: 0;
    right: 0;
    z-index: 1;
    background: rgba(108, 117,125,0.1);
    pointer-events: none;
}

.ewidency-nav-container > div {
    pointer-events: auto;
}

.ewidency-nav-container > div:nth-child(2) {
    margin-top: 50px;
}

.ewidency-nav-container button {
    margin-bottom: 3px;
}

/* ---------------------------------------------------
    Testowe do usunięcia
----------------------------------------------------- */
#ewidencyParcels {
    top: 100px;
    left: 100px;
    width: 200px;
    height: 300px;
    padding: 0.5em;
    background: green;
    position: absolute;
    z-index: 0
}

#cadastralParcelDescription {
    top: 200px;
    left: 200px;
    width: 200px;
    height: 300px;
    padding: 0.5em;
    background: green;
    position: absolute;
    z-index: 0
}

/*#ewidencyParcels h3 {
    text-align: center;
    margin: 0;
}*/

#ewidencyReports {
    top: 100px;
    left: 300px;
    width: 200px;
    height: 300px;
    padding: 0.5em;
    background: green;
    position: absolute;
    z-index: 0
}

#ewidencyReports h3 {
    text-align: center;
    margin: 0;
} 
 

.floating-view-top {
    z-index: 50 !important;
    position: relative
}

.floating-view-bottom {
    z-index: 10 !important;
    position: relative
}

.floating-view-body 
{
    overflow-y: auto;
}

.floating-view-titlebar {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*.stat-pos {
    position: static !important;
}*/
/*.list-item-with-dropdown-overflow > .dropdown {
    position: static !important;
}*/
/* ---------------------------------------------------
    TreeView
----------------------------------------------------- */
ul, .treeview {
    list-style-type: none;
}

.treeview {
    margin: 0;
    padding: 0;
}

    .treeview-caret {
        cursor: pointer;
        -webkit-user-select: none; /* Safari 3.1+ */
        -moz-user-select: none; /* Firefox 2+ */
        -ms-user-select: none; /* IE 10+ */
        user-select: none;
    }

        .treeview-caret::before {
            content: "\25B6";
            color: black;
            display: inline-block;
            margin-right: 6px;
        }

    .treeview-caret-down::before {
        -ms-transform: rotate(90deg); /* IE 9 */
        -webkit-transform: rotate(90deg); /* Safari */
        /* transform: rotate(90deg); */
    }

    .treeview-nested {
        display: none;
    }

    .treeview-active {
        display: block;
    }

/* ---------------------------------------------------
    Tabele z nieruchmym (sticky) nagłówkiem
----------------------------------------------------- */
.table-sticky-header thead tr th {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ---------------------------------------------------
    Toasts
----------------------------------------------------- */

.my-toast {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem !important;
    opacity: 1 !important;
    width: auto !important;
    margin: 10px !important;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important
}

.my-toast > button {
    color: inherit !important;
}

.my-toast:hover {
    opacity: 0.98 !important;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}


.my-toast-type-success {
    color: #155724 !important;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.my-toast-type-info {
    color: #0c5460 !important;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
.my-toast-type-warning {
    color: #856404 !important;
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.my-toast-type-danger {
    color: #721c24 !important;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.my-toast-type-primary {
    color: #004085 !important;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.my-toast-type-secondary {
    color: #383d41 !important;
    background-color: #e2e3e5;
    border-color: #d6d8db;
}

.my-toast-type-dark {
    color: #1b1e21 !important;
    background-color: #d6d8d9;
    border-color: #c6c8ca;
}

.my-toast-type-light {
    color: #818182 !important;
    background-color: #fefefe;
    border-color: #fdfdfe;
}

.my-toast-title {
    font-weight: bolder;
}
.my-toast-message {
}
.my-toast-close-icon {
}
.my-toast-progress-bar {
}


/* ---------------------------------------------------
    Modals
----------------------------------------------------- */
/*.my-modal {
    pointer-events: auto!important;
}*/

.my-modal .blazored-modal-header {
    display: none;
}

/*.my-modal .blazored-modal-header p {
    word-wrap: break-word;
}*/



/* ---------------------------------------------------
    Inputs
----------------------------------------------------- */

.my-input-inline-auto-width {
    display: inline !important;
    width: auto !important;
}

.cell-input {
    /*border: none !important;*/
}


.input-warning {
    color: #856404 !important;
    background-color: #fff3cd !important;
    border-color: #ffeeba;
}

.input-error {
    color: #721c24 !important;
    background-color: #f8d7da !important;
    border-color: #f5c6cb;
}

/* Tryb do odczytu dla elementu input typu checkbox. Dodawkowo trzeba ustawić w tym elemencie tabindex="-1" */
input[type="checkbox"][readonly] {
    pointer-events: none;
}

/* ---------------------------------------------------
    Inputs
----------------------------------------------------- */
.pointer-events-none {
    pointer-events: none;
}


/* ---------------------------------------------------
    Misc
----------------------------------------------------- */
/*.max-width-250 {
    max-width: 250px;
}*/


.table-selected-row {
    background-color: #e9ecef
}

td.unbound-cell {
    background-color: #e9ecef
}


/* ---------------------------------------------------
    Okno blokowania interfejsu (z jQuery)
----------------------------------------------------- */
div.blockMsg {
    border: none !important;
    background-color: #fff !important;
    padding: 10px !important;
    /*    width: 40%;
    top: 30%;
    left: 30%;
    text-align: center;
    background-color: #f00 !important;
    border: 1px solid #ddd;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
    -moz-opacity: .70;
    opacity: .70;
    padding: 15px;
    color: #fff;*/
}


/* ---------------------------------------------------
    TreeView
----------------------------------------------------- */
.tree-row-height {
    height: 46px;
}

pre.my-pre {
    display:inline;
    font:inherit;
    color:inherit;
    vertical-align:inherit;
}

hr.my-hr {
    border-top-color: white;
    margin : 0;
}


/* -----------------------------------------------------
    Style dla tabel z ŚLPD
--------------------------------------------------------*/

.planned-option {
    font-weight: bold;
}

#wood-table a,
a[aria-expanded="true"] {
    color: #fff;
    background: transparent !important;
}

#slpd-table .table-active {
    background-color: #007bff;
    color: #fff;
}

#wood-table .table-active {
    background-color: transparent;
}

#wood-table .table-active td {
    background-color: transparent;
}

/* -----------------------------------------------------
    Style dla okna logowania
--------------------------------------------------------*/

#account ul {
    padding-left: 0;
}