﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

textarea {
    padding: 10px;
    line-height: 1.5;
    border-radius: 5px;
}
.requirements{
    font-size: 13px;
    color: dimgrey;
}
.required{
    color: red;
}
/*Right click icons*/
#context-menu {
    border: solid;
    border-color: lightslategray;
    position: fixed;
    z-index: 10000;
    width: 200px;
    background: white;
    transform: scale(0);
    transform-origin: top left;
}

    #context-menu hr {
    margin:2px 0px;
    border-color:#555;
}

#context-menu.active {
    transform:scale(1) !important;
    transition:transform 200ms ease-in-out
}

#context-menu .item {
    padding:8px 10px;
    font-size: 15px;
    color: black;
}

#context-menu .item.disabled {
    background:#dddddd;
    pointer-events: none
}

#context-menu .item:hover {
    background:#91ccff;
}

#context-menu .item i {
    display:inline-block;
    margin-right:5px;
}

/*Overlay*/
#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.2);
    z-index: 4;
    cursor: pointer;
}

div #editForm {
    z-index:5;
}

.ui.search.selection.dropdown {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 50px !important;
    padding-top: 16px;
    padding-bottom: 5px;
    margin-bottom: 10px
}

.Actions {
    text-align: center;
}

.ui.search.selection.dropdown .search {
    padding-top: 15px !important;
    padding-bottom: 5px !important;
}

.ui.search.selection.dropdown.multiple {
    min-height: 50px !important;
    padding-top: 0px !important;
}

    .ui.search.selection.dropdown.multiple .search {
        padding-top: 0px !important;
    }

.filter-option {
    width: 100% !important;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

@media all and (max-width: 1790px) {
    #table, #creationButton, #heading {
        margin-left: 0px;
    }

    #contragTable, #taskTable, #entityTable, #maintenanceTable, #knowledgeBaseTable, #invocingTable, #improvementTable, .horizontalLine {
        width: 100% !important;
    }

    #contragTable, #taskTable, #entityTable, #maintenanceTable, #knowledgeBaseTable, invocingTable, improvementTable {
        max-height: 500px;
    }

    #logo {
        display: none !important;
    }

    .sideSearch {
        width: 80%;
        margin-left: auto !important;
        margin-right: auto !important;
        top: 0px;
    }

    .sideFormNavigation input label {
        display: flex !important;
        flex-direction: row !important;
    }

    #hideColumns {
        position: relative;
        float: right;
        right: 10px;
        margin-left: 15px
    }

    #formNavigationHeading {
        text-align: center;
    }

    #showColumns {
        float: right;
    }

    #sideNavigation {
        height: 20% !important;
        padding-top: 10px;
        width: 100% !important;
        position: relative;
        z-index: 3 !important;
        top: auto;
        background-color: #f3f4f5;
        overflow-x: hidden;
        transition: 0.5s;
    }
}

/*@media all and (max-width: 1550px) {
    #table, #creationButton, #heading {
        margin-left: 0px;
    }

    #contragTable, #taskTable, #entityTable, .horizontalLine {
        width: 100% !important;
        height: 20% !important;
    }

    #logo {
        display: none !important;
    }

    .sideSearch {
        width: 80%;
        margin-left: auto !important;
        margin-right: auto !important;
        top: 0px;
    }

    .sideFormNavigation input label {
        display: flex !important;
        flex-direction: row !important;
    }

    #hideColumns {
        position: relative;
        float: right;
        right: 10px;
        margin-left: 15px
    }

    #formNavigationHeading {
        text-align: center;
    }

    #showColumns {
        float: right;
    }

    #sideNavigation {
        height: 20% !important;
        padding-top: 10px;
        width: 100% !important;
        position: relative;
        z-index: 99 !important;
        top: auto;
        background-color: #f3f4f5;
        overflow-x: hidden;
        transition: 0.5s;
    }
}*/

/* The sticky class is added to the header with JS when it reaches its scroll position */
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
    }

    .navbar .nav-item:hover .nav-link {
        color: #fff;
    }

    .navbar .nav-item:hover .dropdown-menu {
        display: block;
    }

    .navbar .nav-item .dropdown-menu {
        margin-top: 0;
    }
}

columnSelector : hover {
    border-right: 2px solid black;
}

.form .field-validation-error {
    color: #dc3545;
    position: relative;
    bottom: 10px;
    left: 5px;
}

.hidden {
    display: none;
}

.selectedButton {
    border-style: solid inset solid solid !important;
    border-width: 3px !important;
    border-top-color: #003969 !important;
    border-left-color: #003969 !important;
    border-right-color: #0a8eff !important;
    border-bottom-color: #0a8eff !important;
}

.horizontalLine {
    width: 130%;
}

form.sideSearch input[type=text] {
    padding: 10px;
    font-size: 17px;
    border: 1px solid grey;
    float: left;
    width: 80%;
    background: #f1f1f1;
}

form.sideSearch button {
    float: left;
    width: 20%;
    padding: 10px;
    background: #0275d8;
    color: white;
    font-size: 17px;
    border: 1px solid grey;
    border-left: none;
    cursor: pointer;
}

    form.sideSearch button:hover {
        background: #2e9eff;
    }

form.sideSearch::after {
    content: "";
    clear: both;
    display: table;
}

.sideNavigation {
    height: 100%;
    width: 17%;
    position: fixed;
    z-index: 3 !important;
    top: 0;
    left: 0;
    background-color: #f3f4f5;
    overflow-x: hidden;
    transition: 0.5s;
}

.form-check-input {
    left: 3px;
    bottom: 5px
}

.sideNavigation .sideFormNavigation {
    position: relative;
    top: 15px;
    left: 10px;
}

.wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.form input {
    width: 100%;
    padding: 12px 20px;
    margin: 0px 0px 10px 0px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.ql-toolbar.ql-snow {
    background-color: white;
}

#editor {
    background-color: white;
    height:auto;
}

div.form textarea {
    width: 100%;
    padding: 12px 20px;
    margin: 0px 0px 10px 0px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

div.form select {
    width: 100%;
    padding: 12px 20px;
    margin: 0px 0px 10px 0px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

div.iti.iti--allow-dropdown {
    width: 100%;
}

.selectize-input {
    padding: 12px 20px;
    height: 50px;
}

.form-inline {
    padding-top: 4px
}

div.form button[type=submit] {
    width: 100%;
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
    padding: 14px 20px;
    margin: 16px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    div.form button[type=submit]:hover {
        background-color: #1861ac;
    }

div.form button.editForm {
    width:45% !important;
}
    div .form a.editForm {
    width: 45% !important;
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
    padding: 14px 20px;
    margin: 16px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align:center;
}

    div.form a.editForm:hover {
        background-color: #1861ac;
        color:white;
    }

div.form a.btn-danger {
    width: 45%;
    padding: 14px 20px;
    margin: 16px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

div.form button.formButton[type=button] {
    width: auto;
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
    padding: 7px 10px;
    margin: 0px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    div.form button.formButton[type=button]:hover {
        background-color: #1861ac;
    }

div.form .row {
    border-radius: 5px;
    background-color: #d2e6fc !important;
    padding: 20px;
}

:root {
    --colapsibleColor: rgba(0,0,0,.03)
}

.collapsible {
    background-color: var(--colapsibleColor);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    border: 1px solid #989898;
}

    .active, .collapsible:hover {
        background-color: #dddddd;
    }

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
}

.collapsible:after {
    content: '\02795'; /* Unicode character for "plus" sign (+) */
    font-size: 13px;
    color: white;
    float: right;
    margin-left: 5px;
}

.collapsible.active:after {
    content: "\2796"; /* Unicode character for "minus" sign (-) */
}

p {
    margin-top: 1rem;
}

/*** Table Styles **/

.scrollit {
    overflow: scroll;
    height: 630px;
    width: auto;
}

th {
    color: white;
    background: #337ab7;
    position: sticky !important;
    top: 0 !important;
    border-bottom: 4px solid black;
    border-right: 1px solid black;
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
    text-align: center;
}

    th:first-child {
        border-top-left-radius: 3px;
    }

    th:last-child {
        border-top-right-radius: 3px;
        border-right: none;
    }

tr {
    border-top: 1px solid #C1C3D1;
    border-bottom: 1px solid #C1C3D1;
    color: black;
    font-size: 14px;
    font-weight: normal;
    text-shadow: 0 1px 1px rgba(256, 256, 256, 0.1);
}

    tr:hover td {
        background: #95ceff;
        color: black;
        border-top: 1px solid #22262e;
    }

    tr:first-child {
        border-top: none;
    }

    tr:last-child {
        border-bottom: none;
    }

    tr:nth-child(odd) td {
        background: #edf7ff;
    }

    tr.redDeadline td {
        background-color: #f8d7da;
        color: #721c24;
    }

    tr.yellowDeadline td {
        background-color: #fff3cd;
        color: #856404;
    }

    tr.greenDeadline td {
        background-color: #d4edda;
        color: #155724;
    }

    tr:hover td {
        border-right: 1px solid black;
    }

    tr:nth-child(odd):hover td {
        background: #98cfff;
        border-right: 1px solid black;
    }

    tr:last-child td:first-child {
        border-bottom-left-radius: 3px;
    }

    tr:last-child td:last-child {
        border-bottom-right-radius: 3px;
    }

td {
    background: #FFFFFF;
    padding: 3px;
    text-align: left;
    vertical-align: middle;
    font-weight: 300;
    font-size: 15px;
    text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1);
    border-right: 1px solid #C1C3D1;
    border-left: 1px solid #C1C3D1;
}

    td:last-child {
        border-right: 0px;
    }

th.text-left {
    text-align: left;
}

th.text-center {
    text-align: center;
}

th.text-right {
    text-align: right;
}

td.text-left {
    text-align: left;
}

td.text-center {
    text-align: center;
}

td.text-right {
    text-align: right;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.description {
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.problem-description {
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.solution-description {
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}