﻿
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');


/* UWAGA - po wprowadzeniu zmian należy podnieść wersję w pliku _Layout.cshtml

     <link href="css/site.css?version= * " rel="stylesheet" />

    w celu aktualizacji cache przegladarek
*/

html {
    /* wymagane do poprawnego zwiekszania rozmiaru dialogow gdy rosnie dialog content */
    height: 100%;
    font-size: 14px;
}

body {
    /* wymagane do poprawnego zwiekszania rozmiaru dialogów gdy rosnie dialog content */
    min-height: 100%;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 4.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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: 1200;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        min-width: 250px;
        height: auto;
        min-height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 20rem !important;
        padding-right: 1.5rem !important;
        padding-top: 1.1rem;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

/** ***************** **/
/* Naglowki dialogów (bez tekstu) */
.e-dialog .e-dlg-header-content {
    background-color: none; /*#eeeeff; #9dd1fa;*/
    padding-top: 12px;
    padding-bottom: 4px;
    /*border-bottom: 2px solid #ddf*/;
}
/* Naglowki dialogów - tekst */
.e-dialog .e-dlg-header {
    font-size: 1.31rem;
    color: #236db7;
    /*font-weight: 400;*/
}
/* odstep tekstu (zwartosci) od naglówka dialogu */
.e-dialog .e-dlg-header-content + .e-dlg-content {
    padding-top: 6px;
}

/* ##################################################################### */
/* container szerszy niz w bootstrap (90% - tak jak w sharepoint)        */
/* ##################################################################### */
@media (min-width: 576px) {
    .container-g60 {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .container-g60 {
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .container-g60 {
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .container-g60 {
        max-width: 100%;
    }
}

.container-g60 {
    background-color: rgba(255,255,255,0.8);
    padding-right: 12px;
    padding-left: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-right: auto;
    margin-left: auto;
    height: 92vh;
}

.g-foother {
    font-size: 0.6em;
    color: gray;
    margin-top: 5px;
    margin-right: auto;
    margin-left: auto;
    /*height: 10vh;*/
}

/* ######################################################################## */
/* tlo jak w Gladius 5.0                                                    */
/* ######################################################################## */
body {
    background-image: url("/images/gladius-background.jpg");
    background-color: #cee3ff;
    background-size: cover;
    background-repeat: no-repeat;
}


/* ########################################################################### */
.g-label {
    padding-top: calc(0.375rem + 1px);
    /*padding-bottom: calc(0.375rem + 1px);*/

    margin-bottom: 0;
    font-size: 14px; /*inherit;*/
    line-height: 1.5;
    color: #006666;
}

.g-value {
    /*padding-top: calc(0.375rem + 1px);*/
    padding-bottom: calc(0.375rem + 1px);
    width: 100%;
    padding-left: 10px;
    line-height: 1.5;
    text-indent: 0;
    background-color: #F5FAFF;
    color: #000;
    border: none;
    /*overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;*/
    vertical-align: middle;
    font-weight: normal;
    /* margin-top: 1px;*/
    /*margin-bottom: 10px;*/
    min-height: calc(0.7rem + 1.3em + 2px);
    /*border-bottom: 1px dashed #83d6d6;*/
    font-size: 14px;
}

/* Lista w GRowLabelList – ma wyglądać jak standardowe .g-value */
    .g-value.g-list {
        list-style-position: inside;
        padding-left: 8px;
    }

/* Li w tej liście – delikatne odstępy jak w tekście */
.g-value.g-list > li {
    margin: 2px 0;
    padding: 0;
}

/* Jeśli używasz horizontal i chcesz żeby lista nie “odjeżdżała” w dół */
.g-label + div > .g-value.g-list {
    vertical-align: top;
}


.g-multiline {
    white-space: pre-line;
    /* minimalna wysokoœc to 2 line (2*1.3em) */
    min-height: calc(0.7rem + 2.6em + 2px);
    /* maksymalna wysokosæ to 5 linii (5*1.3em), powy¿ej w³¹cza sie pionowy scroll */
    max-height: calc(0.7rem + 5.6em + 2px);
    /*border-bottom: 1px dashed #83d6d6;*/
    overflow-y: scroll;
}

.g-object-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* TreeGrid z lista OrgUnit - symbol jednostki */
.g-tree-orgunit-sign {
    font-size: 10px;
    font-weight: bold;
    background-Color: #ddd;
    border-radius: 2px;
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: 2px;
    margin-right: 4px;
}

/* tytul na górze kazdego komponentu/strony - z GPageTitle */
.g-page-title {
    font-size: 1.2rem;
    color: #339999;
}

    .g-page-title:focus-visible {
        outline: none;
    }

.g-section-title {
    font-weight: 700;
}

/* korekta odstepu float-label (z -41px na -38px) */
.e-float-input input:focus ~ label.e-float-text, .e-float-input input:valid ~ label.e-float-text, .e-float-input input ~ label.e-label-top.e-float-text, .e-float-input input[readonly] ~ label.e-label-top.e-float-text, .e-float-input input[disabled] ~ label.e-label-top.e-float-text, .e-float-input input label.e-float-text.e-label-top, .e-float-input.e-control-wrapper input:focus ~ label.e-float-text, .e-float-input.e-control-wrapper input:valid ~ label.e-float-text, .e-float-input.e-control-wrapper input ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper input[readonly] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper input[disabled] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper input label.e-float-text.e-label-top, .e-float-input.e-control-wrapper.e-input-focus input ~ label.e-float-text, .e-float-input.e-input-focus input ~ label.e-float-text {
    transform: translate3d(-10px, -38px, 0) scale(1);
}
textarea ~ label.e-label-top.e-float-text, .e-float-input textarea[readonly] ~ label.e-label-top.e-float-text, .e-float-input textarea[disabled] ~ label.e-label-top.e-float-text, .e-float-input textarea label.e-float-text.e-label-top, .e-float-input.e-control-wrapper textarea:focus ~ label.e-float-text, .e-float-input.e-control-wrapper textarea:valid ~ label.e-float-text, .e-float-input.e-control-wrapper textarea ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper textarea[readonly] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper textarea[disabled] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper textarea label.e-float-text.e-label-top {
    transform: translate3d(-10px, -38px, 0) scale(1);
}


/* lista UL w komórce grida (np. lista wielu orgunit bedacych wlascicielem kontraktu */
.cell-grid-ul {
    margin-bottom: 0;
}

/* lista UL w komorce grida - kazdy element na liscie ma ikonke grupy uzytkownikow;
   uwaga! uzywac razem z .cell-grid-ul, np. class="cell-grid-ul ul-groups" */
ul.ul-groups li {
    list-style-type: none;
}
ul.ul-groups li:before {
    font-family: 'e-icons';
    content: '\e7b9';
    margin: 0 5px 0 -26px;
}

/* lista UL w komorce grida - kazdy element na liscie ma ikonke uzytkownika;
   uwaga! uzywany razem z .cell-grid-ul, np. class="cell-grid-ul ul-users" */
ul.ul-users li {
    list-style-type: none;
}
ul.ul-users li:before {
    font-family: 'e-icons';
    content: '\e7b4';
    margin: 0 5px 0 -26px;
}


/* zdjecie na liscie pracowników */
.g-contactsAvatar {
    position: relative;
    width: 45px;
    height: 45px;
    overflow: hidden;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}
    .g-contactsAvatar img {
        width: 100%;
        height: auto;
        border-radius: 50px;
    }


/* zdjecie w ksiązce  */
.g-phoneBookAvatar {
    position: relative;
    width: 45px;
    height: 45px;
    overflow: hidden;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}

    .g-phoneBookAvatar img {
        width: 100%;
        height: auto;
        border-radius: 50px;
    }



.cursor-pointer {
    cursor: pointer;
}

/* rozszerzenie zakladek w pionowym SfTab do 350px (domyslnie jest max 150px) */
.e-tab-header.e-vertical.e-vertical-left.e-vertical-left {
    max-width: 350px !important;
}


/* dodanie marginesu w zawartości Tab */
.e-tab.e-vertical-tab .e-content .e-item,
.e-tab.e-vertical-tab .e-content .e-item > :first-child {
    width: 100%;
    margin-left: 5px;
}

.e-tab .e-tab-header.e-vertical.e-vertical-left .e-toolbar-items .e-toolbar-item.e-active::before {
    background-color: #0078d4;
    bottom: 10px;
    content: "";
    height: 60%;
    left: 98%;
    position: absolute;
    right: 0;
    transition: bottom .267s cubic-bezier(0.1, 0.25, 0.75, 0.9) 0s,height .267s cubic-bezier(0.1, 0.25, 0.75, 0.9) 0s;
    width: 2px;
}

/* zeby tooltipy z grid elipssis pokazywaly sie nad dialogiem a nie pod nim (https://www.syncfusion.com/forums/161332/how-to-display-the-tooltip-when-using-datagrid-inside-the-dialog-component) */
.e-tooltip-wrap {
    z-index: 9000 !important;
}

/* ciemniejszy tekst na kontrolkach w stanie Disabled */
.e-input-group.e-control-wrapper .e-input[disabled] {
    -webkit-text-fill-color: #484848;
    color: #484848;
   background: #ffffff !important;
  
   
}

.e-input-group.e-control-wrapper .e-datepicker[disabled] {
    -webkit-text-fill-color: #484848;
    color: #484848;
   
}
textarea[disabled].e-input {
    -webkit-text-fill-color: #484848 !important;
    color: #484848 !important;
    
}
.e-input-group.e-control-wrapper .e-textbox[disabled] {
    -webkit-text-fill-color: #484848 !important;
    color: #484848 !important;
    
}

.e-control.e-dropdownlist.e-lib.e-disabled {
    -webkit-text-fill-color: #484848 !important;
    color: #484848 !important;
    
}

/* usuniecie obramowania dla inputow disabled */
.e-input-group:not(.e-success):not(.e-warning):not(.e-error).e-disabled,
.e-input-group.e-control-wrapper:not(.e-success):not(.e-warning):not(.e-error).e-disabled {
    border-style: none !important;
}

/* zmiana koloru labeli zablokowanych (disabled) kontrolek */
/*.e-disabled label.e-label-top {
    color: #326591;
    -webkit-text-fill-color: #326591;
}*/

/* wieksza czcionka w komponencie SfMessage */
.message-bigger .e-msg-content {
    font-size: 16px !important;
    line-height: 22px !important;
}

.g-section {
    width: 100%;
    padding: 2px 8px;
    background: #eeeeee;
    font-weight: 600;
}



.g-tab-header {
    /*border-bottom-style: solid;
    border-width: 2px;*/
    /*border-bottom-color: #0078d4;*/
    /*border-bottom-color: #008080;*/
    /* border-bottom-style: dashed; */
    /*border-bottom-width: thin;*/
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 0px;
    color: #006666;
    background-color: rgb(215,215,255,0.3);
    padding-left: 15px;
}

.g-tab .e-tab.e-vertical-tab .e-content {
    padding-top: 10px;
    padding-right: 15px;
}

.g-tab .e-tab .e-content {
    /*background-color: #e6f4ff;*/
    /*background-color: rgba(137,186,219,0.09);*/
}

.g-tab .e-tab .e-tab-header.e-vertical.e-vertical-left .e-toolbar-items .e-toolbar-item.e-active::before {
    width: 0px;
}


.g-tab .e-tab .e-tab-header .e-toolbar-item.e-active {
    border-radius: 0;
    border-right: 0;
    /*background-color: #e6f4ff;*/
    /*background-color: rgb(137 186 219 / 9%);*/
}

.g-tab .e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-text {
    font-weight: 500;
    /*display: block;*/
}

.g-selected-header {
    font-size: 20px;
    margin-bottom: 5px;
}

.g-selected-header-over-tab {
    font-size: 18px;
    margin-left: 5px;
    
}

.g-bottom-line {
    border-bottom-style: solid;
    border-width: 2px;
    border-bottom-color: #e2eef7;
}


.g-intab-block {
    border-bottom-style: solid;
    border-width: 2px;
    border-bottom-color: #e2eef7;
    margin-left: 40px;
    border-left-style: solid;
    padding-left: 20px;
    border-left-color: #e2eef7;
    margin-bottom: 10px;
    padding-bottom: 10px;
    padding-right:40px;
}

.g-intab-bottomline {
    border-bottom-style: solid;
    border-width: 2px;
    border-bottom-color: #e2eef7;
    margin-bottom: 5px;
    margin-left: 0px;
}


/* list box z selectem sie rozjezdzal */
.e-hidden-select {
    display: none !important;
}

/* zmiana koloru nagłówków w tabie */
.e-tab .e-tab-header .e-toolbar-item .e-tab-wrap {
    color: #0078d4 !important;
}

.e-tab .e-tab-header .e-toolbar-item.e-active.e-ileft .e-tab-text, .e-tab .e-tab-header .e-toolbar-item.e-active.e-iright .e-tab-text {
    color: #0078d4 !important;
}

.e-bigger .e-float-input.e-control-wrapper:not(.e-error) textarea[disabled] ~ label.e-label-top.e-float-text {
    color:#0078d4 !important;
}

/* nagłówki kolumn w gridzie */
.e-headertext {
    color: #5374ac;
}

.g-grid .e-altrow {
    background-color: #e6f4ff;
}

.g-grid .e-toolbar  {
    background:none;
}

.g-grid .e-toolbar .e-toolbar-items {
    background: none;
}

.g-grid .e-grid .e-rowcell {
    border-style: none;
    padding-bottom: 2px;
    padding-top: 2px;
}

/* wyłączenie irytującej ramki w komórce */
.e-grid .e-focused:not(.e-menu-item):not(.e-editedbatchcell) {
    box-shadow: none !important;
}


.maincontent {
    padding-top: 10px;
    height: calc(90vh - 60px)
}

.g-grid td.e-active {
    border-style: none;
    /*padding-bottom: 2px;
    padding-top: 2px;*/
    background: #cce9ff;
}

.g-menu {
    background: none !important;
}

    .g-menu .e-toolbar {
        background: #bad9ff !important;
    }

    .g-menu .e-toolbar .e-toolbar-items {
        background: #bad9ff !important;
    }





.e-menu-container {
    background-color: #bad9ff;
    font-weight: bold;
    font-size: x-large;
}

    .e-menu-container .e-menu .e-menu-item.e-selected {
        background-color: #8ec6fe;
    }

    .e-menu-container .e-ul .e-menu-item.e-focused {
        background-color: #b3d9ff;
    }


/*.e-menu-container {
    background-color: #bad9ff;
    font-weight: bold;
    font-size: x-large;
}

    .e-menu-container .e-menu .e-menu-item.e-selected {
        background-color: #8ec6fe;
    }

    .e-menu-container .e-ul .e-menu-item.e-focused {
        background-color: #b3d9ff;
    }*/
.g-treegrid .e-grid .e-rowcell {
    border-style: none;
    padding-bottom: 4px;
    padding-top: 4px;
}

.g-treegrid .e-grid .e-gridheader {
    display:none;
}

.g-treegrid .e-grid td.e-active {
   background: #e6f4ff;
}

/* nprawia błąd Grida umieszczonego w pionowym tabie - wysokość wierszy "rozciąga się" żeby zająć całą wysokośc grida (wystąpiło w AdminDictionaries / RiskFactorCategoryDict / PurposesList) */
.e-tab.e-vertical-tab .e-content {
    flex-direction: column;
}

/* ukrywa nagłówek Grida - trzeba dla komponentu SfGrid dodać klasę g-grid-hide-header */
.e-grid.g-grid-hide-header .e-gridheader .e-columnheader {
    display: none;
}

/* styl do dropdowna w template ItemTemplate zeby dlugie pozycje zawijaly sie do nowego wiersza */
.g-dropdown-item-wrap {
    white-space: normal;
    text-indent: 0;
    padding: 5px;
    display: block;
    line-height: 1.6;
}
/* dla template ValueTemplate */
.g-dropdown-value-wrap {
    padding: 5px;
}

/* kolory ryzyk */
.risk-0 {
    background-color: #BBBBBB;
}
.risk-1-3 {
    background-color: #66FF99;
}
.risk-4-7 {
    background-color: #FFFF99;
}
.risk-8-10 {
    background-color: #FF9999;
}

/* do zawiajania wartości w kolumnie grida (należy dodać klasę g-cell-wrap przez atrybuty kolumny) */
.e-grid .e-rowcell.g-cell-wrap {
    white-space: normal;
}

/* jaśniejszy spinner typu overlay - używany na formularzach */
.e-spinner-pane.e-spin-overlay-form {
    background-color: rgba(0, 0, 0, .05) !important;
}

.g-main-page-section-title {
    font-size: 18px;
    width: 100%;
    border-bottom: 1px solid #a0a0a0;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/*.g-badge{
    color:orangered;
    font-weight:bold;
    padding-left:5px;
}
*/
.g-badge {
    background-color: #ca5010;
    color: #ffffff;
    border-radius: 3px;
    display: inline-block;
    margin-left: 4px;
    margin-right: 4px;
    padding: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    height: 20px;
    overflow: hidden;
    vertical-align: middle;
    margin-top: -10px;
}

.g-badge-warning {
    background-color: rgb(255, 242.6, 205.4);
    color: rgb(134.5, 100.875, 0);
    border-radius: 3px;
    display: inline-block;
    margin-left: 4px;
    margin-right: 4px;
    padding: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    height: 20px;
    overflow: hidden;
    vertical-align: middle;
    margin-top: -10px;
}

/* <hr> (HorizontalRule) używany do oddzielenia sekcji w oknach zadań */
.g-hr-task {
    margin-bottom: 8px;
}

/* do przycisków w komórce grida, żeby były mniejsze paddingi po lewej i prawej */
.g-icon-btn-small-padding {
    padding-left: 6px !important;
    margin-right: 6px !important;
}

.g-main-top-panel {
    height: 75px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    border-bottom: solid;
    border-bottom-style: ridge;
    border-bottom-color: lightgray;
}
    .g-main-top-panel .e-rte-table td {
        border: none;
    }

.g-main-top-right-panel {
    height: 75px;
    margin-bottom: 20px;
}

.g-main-left-panel {
    height: calc(90vh - 100px);
    flex-direction:column;
    padding-left: 5px;
    margin-bottom: 20px;
}
    .g-main-left-panel .e-rte-table td {
        border: none;
    }

/* standardowe przyciski syncfusion są "no wrap" i potrafią wystawać poza div gdy div jest za wąski 
   ta klasa włącza "zawijanie" tekstu na przycisku */
.btn-wrap {
    white-space: normal !important;
}

/* TODO: chyba dubel klasy wyżej - do sprawdzenia i ewentualnego usunięcia */
.g-btn-wrap {
    white-space:normal;
    word-wrap:break-word;
    text-align:left;
}

.risk-table {
    border-collapse: collapse;
    margin-top: 20px;
}

    .risk-table td {
        width: 40px;
        height: 40px;
        border: 1px solid #333;
        text-align: center;
        font-weight: bold;
        font-family: monospace;
        color: #000;
    }

/* Skala kolorów 0–9 (dla wartości 0–9, 10–19, ..., 90–100) */
.risk-0 {
    background-color: #e0f7fa;
}
/* błękit bardzo jasny */
.risk-1 {
    background-color: #b2ebf2;
}

.risk-2 {
    background-color: #80deea;
}

.risk-3 {
    background-color: #4dd0e1;
}

.risk-4 {
    background-color: #26c6da;
}

.risk-5 {
    background-color: #ffeb3b;
}
/* żółty (środek skali) */
.risk-6 {
    background-color: #ffc107;
}

.risk-7 {
    background-color: #ff9800;
}

.risk-8 {
    background-color: #ff5722;
}

.risk-9 {
    background-color: #f44336;
}
/* ciemna czerwień */
}

/* angaże do zwolnienia (w statusie ToRelease) na pomarańczowo */
.g-job-torelease {
    color: #F48C06;
}