﻿/* 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. */

/*@import "../images/bootstrap-icons/font/bootstrap-icons.css";*/

.bi {
    color: var(--bs-dark);
}

    .bi:hover {
        color: var(--bs-gray);
    }

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);
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
    height: 60px;
}

/* OSBK added -------------------------------------------------- */

.customtextlist th.name {
    width: 60%;
    white-space: nowrap;
}

.customtextlist th.type {
    width: 40%;
    white-space: nowrap;
}

.customtextlist th.min {
    min-width: 58px;
    white-space: nowrap;
}

#div_login {
    width: 400px;
}

.FileInputLabel {
    width: 20rem;
    height: 2.5rem;
    border: 2px dashed;
    border-radius: 5px;
    display: block;
    padding: 0.5em;
    transition: border 300ms ease;
    cursor: pointer;
    text-align: center;
}

.FileInputTitle {
    transition: 200ms color;
}

.FileInputLabel:hover {
    border: 2px solid;
}

.form-check-inline {
    margin-bottom: 0.5rem;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-group .form-check {
    flex: 1 1 calc(33.33% - 10px);
}

.form-label {
    font-weight: bold;
    margin-right: 1rem;
}

/* Alert */
/*.alert {
    z-index: 1070;
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.alert.alert-default {
    background-color: var(--bs-default);
}

.alert.alert-primary {
    background-color: var(--bs-primary);
}

.alert.alert-secondary {
    background-color: var(--bs-secondary);
}

.alert.alert-success {
    background-color: var(--bs-success);
}

.alert.alert-danger {
    background-color: var(--bs-danger);
}

.alert.alert-warning {
    background-color: var(--bs-warning);
}

.alert.alert-info {
    background-color: var(--bs-info);
}

.alert.alert-light {
    background-color: var(--bs-light);
}

.alert.alert-dark {
    background-color: var(--bs-dark);
}*/


/* Toast */
.toast {
    z-index: 1070;
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

    .toast .toast-header {
        border-bottom: unset;
    }

    .toast.toast-default {
        background-color: var(--bs-default);
    }

    .toast.toast-primary {
        background-color: var(--bs-primary);
    }

    .toast.toast-secondary {
        background-color: var(--bs-secondary);
    }

    .toast.toast-success {
        background-color: var(--bs-success);
    }

    .toast.toast-danger {
        background-color: var(--bs-danger);
    }

    .toast.toast-warning {
        background-color: var(--bs-warning);
    }

    .toast.toast-info {
        background-color: var(--bs-info);
    }

    .toast.toast-light {
        background-color: var(--bs-light);
    }

    .toast.toast-dark {
        background-color: var(--bs-dark);
    }

/*drag'n drop*/

.dropzone {
    border: 1px dashed;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0px;
    min-height: 100px;
}

.dropzone-label {
    left: unset;
    height: unset;
}

.dropzone-action {
    position: absolute;
    top: 0;
    right: 0;
    padding-top: 1rem;
    padding-right: 0.75rem;
    border: 1px solid transparent;
    transform: scale(.85) translateY(-0.5rem) translateX(-0.15rem);
    transform-origin: 0 0;
}

.can-drop {
    border: 2px dashed green;
}

.not-dropzone {
    padding: 5px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0px;
    min-height: 56px;
}

.draggable {
    padding: 10px 20px;
    cursor: grab;
    background: #5c6b7f;
    color: #ffffff;
    border-radius: 5px;
    margin: 1px
}

.not-draggable {
    padding: 10px 20px;
    background: var(--bs-primary);
    color: #ffffff;
    border-radius: 5px;
    margin: 2px
}

.draggable:active {
    cursor: grabbing;
}

.dragging {
    cursor: grabbing;
}

/* content */

.content .widget-selection {
    position: sticky;
    top: 50px;
    align-self: flex-start;
}

.content #contentParentSelectContainer {
    min-width: 200px
}

.content .widget-edit,
.content .widget-delete,
.content .widget-add {
    color: var(--bs-black);
}

    .content .widget-edit:hover,
    .content .widget-delete:hover,
    .content .widget-add:hover {
        color: var(--bs-white);
    }

.content .widgetAttributePreview {
    font-size: smaller;
}

/* general */
.v-align-unset {
    vertical-align: unset;
}

input[required] + label::after {
    margin-left: 0.25rem;
    content: "*";
    font-weight: bold;
}

.form-floating > .form-select {
    /*padding-top: 1.625rem;*/
    padding-bottom: 0.5rem;
}

textarea.customtext-textarea {
    min-height: 200px;
}

.form-floating-fix {
    position: relative;
}

.form-floating-fix:before {
    content: '';
    position: absolute;
    top: 1px; /* border-width (default by BS) */
    left: 1px; /* border-width (default by BS) */
    width: calc(100% - 30px); /* to show scrollbar */
    height: 40px;
    border-radius: 4px; /* (default by BS) */
    background-color: #ffffff;
}

.form-floating-fix textarea.form-control {
    padding-top: 40px; /* height of pseudo element */
    min-height: 80px; /* not relevant */
}


.loading-indicator {
    filter: opacity(50%);
    height: 100%;
    width: 100%;
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

.tooltip {
    background-color: #0d6efd;
}

.tooltip-inner {
    background-color: #0d6efd;
}

.calendar-day.default {
    background-color: darkgray;
}

.calendar-day.workday {
    background-color: lightgray
}

.calendar-day.holiday {
    background-color: darkorange
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    position: relative;
    width: 100%;
    padding: 4px 12px;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
}

.toggle-content {
    display: flex;
    align-items: center;
}

.toggle-text {
    margin-right: 8px;
}

.toggle-icon {
    margin-left: 8px;
}

.dropdown-toggle:hover {
    background-color: #f8f9fa;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    display: none;
    min-width: 160px;
    padding: 8px 0;
    margin: 2px 0 0;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    color: #333333;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dropdown-item img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 8px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}