﻿/* JavaScript => dolphin.js */

table {
    border: 1px solid #00000022 !important;
    border-radius: 10px 10px 0 0;
}

.filter-group, .border {
    border-radius: 5px;
}

.dt-buttons > button {
    margin: 0 .25rem;
}

.dol-hide-after::after {
    display: none !important;
}
.dol-hide-before::before {
    display: none !important;
}
.dol-hide-before-after::after{
    display: none!important;
}
.dol-hide-before-after::before {
    display: none !important;
}

.dol-hide-before-after::before {
    display: none !important;
}

span.dol-input-autogrow {
    position: absolute;
    left: -9999px;
    display: inline-block;
}

/* Only barcode input */
button.dol-onlyvonalkod {
    text-align: left;
}

    button.dol-onlyvonalkod mark {
        background-color: rgba(51, 144, 255, 1);
        color: white;
    }

.fakefocus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Not ready */
.not-ready {
    display: none !important;
}

#cikkmodal [data-toggle="pill"]:hover {
    outline: 1px solid;
}

/* min-content */
.dol-min-content {
    width: -moz-min-content; /* Firefox */
    width: -webkit-min-content; /* Chrome */
    width: min-content;
}

/* Font Size */
.dol-size-1 {
    font-size: 1.1rem !important;
}

/* Disabled */
.dol-disabled {
    pointer-events: none;
    user-select: none;
    opacity: 0.9;
}

    .dol-disabled * {
        pointer-events: none;
        user-select: none;
    }

    .dol-disabled .selectize-input.items {
        background-color: #00000088;
        color: white;
    }

/* CÍM */
.dol-title {
    background-color: #fff;
    box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .dol-title h1, .dol-title h2, .dol-title h3, .dol-title h4, .dol-title h5, .dol-title h6 {
        margin: 0;
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

/* Separator */
.dol-separator {
    display: flex;
    align-items: center;
    text-align: center;
}

    .dol-separator::after {
        content: '';
        margin-top: -5px;
        flex: 1;
        border-bottom: 1px solid rgba(27, 110, 194, 0.5);
    }

    .dol-separator::before {
        margin-right: .25em;
    }

    .dol-separator::after {
        margin-left: .25em;
    }

/* Label */
.dol-label, .dol-label-need {
    font-size: small;
    font-weight: 600;
    padding-left: 2px;
    margin: 0;
}

    .dol-label-need:before {
        content: "\2736"; /* star */
        color: orangered;
    }

/* Dolphin container (card) */
.dol-container {
    box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: lightgray;
    background-image: linear-gradient(120deg, #fefefeee 70%, #ffffffaa 80%);
}

    .dol-container .dol-span {
        height: auto;
        margin: 0;
    }

/* Collapsable panael */
.dol-collapsable {
    cursor: pointer;
    padding: 0px;
    width: 100%;
    border-bottom: 1px solid #00000022;
    text-align: left;
    outline: none;
}

    .dol-collapsable h6:hover {
        color: crimson !important;
    }

.dol-content {
    display: block;
    padding: 0px;
    overflow: visible;
    transition: height 0.3s ease-out;
}

.dol-collapsable h6::after {
    content: "\27A4"; /* - */
    text-align: right;
    float: right;
    transform: rotate(90deg);
    transition: transform 0.3s ease-out;
}

.dol-collapsable.dol-active h6::after {
    transform: rotate(0deg);
}

/* Dolphin Bootstrap Alert Type */
.dol-alert-dark {
    color: #1b1e21 !important;
    background-color: #d6d8d9 !important;
    border-color: #c6c8ca !important;
}

.dol-alert-danger {
    color: #721c24 !important;
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
}

.dol-alert-info {
    color: #0c5460 !important;
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
}

.dol-alert-light {
    color: #818182 !important;
    background-color: #fefefe !important;
    border-color: #fdfdfe !important;
}

.dol-alert-primary {
    color: #004085 !important;
    background-color: #cce5ff !important;
    border-color: #b8daff !important;
}

.dol-alert-secondary {
    color: #383d41 !important;
    background-color: #e2e3e5 !important;
    border-color: #d6d8db !important;
}

.dol-alert-success {
    color: #155724 !important;
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}

.dol-alert-warning {
    color: #856404 !important;
    background-color: #fff3cd !important;
    border-color: #ffeeba !important;
}

/* Bootstrap switch extend */
/* for sm */

.custom-switch.custom-switch-sm .custom-control-label {
    padding-left: 1rem;
    padding-bottom: 1rem;
}

    .custom-switch.custom-switch-sm .custom-control-label::before {
        height: 1rem;
        width: calc(1rem + 0.75rem);
        border-radius: 2rem;
    }

    .custom-switch.custom-switch-sm .custom-control-label::after {
        width: calc(1rem - 4px);
        height: calc(1rem - 4px);
        border-radius: calc(1rem - (1rem / 2));
    }

.custom-switch.custom-switch-sm .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(calc(1rem - 0.25rem));
}

/* for md */

.custom-switch.custom-switch-md .custom-control-label {
    padding-left: 2rem;
}

    .custom-switch.custom-switch-md .custom-control-label::before {
        height: 1.5rem;
        width: calc(2rem + 0.75rem);
        border-radius: 3rem;
    }

    .custom-switch.custom-switch-md .custom-control-label::after {
        width: calc(1.5rem - 4px);
        height: calc(1.5rem - 4px);
        border-radius: calc(2rem - (1.5rem / 2));
    }

.custom-switch.custom-switch-md .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(calc(1.5rem - 0.25rem));
}

/* for lg */

.custom-switch.custom-switch-lg .custom-control-label {
    padding-left: 3rem;
    padding-bottom: 2rem;
}

    .custom-switch.custom-switch-lg .custom-control-label::before {
        height: 2rem;
        width: calc(3rem + 0.75rem);
        border-radius: 4rem;
    }

    .custom-switch.custom-switch-lg .custom-control-label::after {
        width: calc(2rem - 4px);
        height: calc(2rem - 4px);
        border-radius: calc(3rem - (2rem / 2));
    }

.custom-switch.custom-switch-lg .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(calc(2rem - 0.25rem));
}

/* for xl */

.custom-switch.custom-switch-xl .custom-control-label {
    padding-left: 4rem;
    padding-bottom: 2.5rem;
}

    .custom-switch.custom-switch-xl .custom-control-label::before {
        height: 2.5rem;
        width: calc(4rem + 0.75rem);
        border-radius: 5rem;
    }

    .custom-switch.custom-switch-xl .custom-control-label::after {
        width: calc(2.5rem - 4px);
        height: calc(2.5rem - 4px);
        border-radius: calc(4rem - (2.5rem / 2));
    }

.custom-switch.custom-switch-xl .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(calc(2.5rem - 0.25rem));
}


/* Checkbox */
.dol-check-container {
    display: inline-block;
}

.dol-checkbox {
    margin: 0;
}

    .dol-checkbox input[type=checkbox] {
        position: absolute;
        width: 0;
        height: 0;
        opacity: 0;
    }

        .dol-checkbox input[type=checkbox] ~ span {
            margin: 1px;
            padding: 3px;
            cursor: pointer;
            box-shadow: black 0 0 3px 0px;
            transition: all .3s ease-in-out;
        }

        .dol-checkbox input[type=checkbox]:checked ~ span {
            background: #3390FF;
            color: white;
        }

        .dol-checkbox input[type=checkbox]:hover ~ span {
            box-shadow: #3390FF 0 0 3px 0px;
        }

.dol-ok {
    background-color: rgba(0,255,0,0.2) !important;
    border: 1px solid rgba(0,255,0,.5) !important;
    border-left: .3rem solid rgba(0,255,0,.5) !important;
}

.dol-not {
    background-color: rgba(30,200,255,0.1) !important;
    border: 1px solid rgba(30,200,255,.5) !important;
    border-left: .3rem solid rgba(30,200,255,.5) !important;
}

.dol-err {
    background-color: rgba(255,30,0,0.1) !important;
    border: 1px solid rgba(255,30,0,.5) !important;
    border-left: .3rem solid rgba(255,30,0,.5) !important;
}

/* shadows */
.dol-shadow {
    box-shadow: 0 0 5px 0px;
}

/* scroll */
.dol-smallscroll {
    overflow: auto;
}

    .dol-smallscroll::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .dol-smallscroll::-webkit-scrollbar-track {
        background-color: transparent;
    }

    .dol-smallscroll::-webkit-scrollbar-corner {
        width: 0px;
        height: 0px;
        background-color: transparent;
    }

    .dol-smallscroll::-webkit-scrollbar-thumb {
        height: 6px;
        border: 2px solid rgba(0, 0, 0, 0);
        background-clip: padding-box;
        -webkit-border-radius: 7px;
        background-color: rgba(0, 0, 0, 0.15);
        -webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05);
    }

        .dol-smallscroll::-webkit-scrollbar-thumb:hover {
            background-color: #555;
        }

.dol-smallscroll-v-none {
    overflow-y: hidden;
}

.dol-smallscroll-h-none {
    overflow-x: hidden;
}


.dol-scroll-hide::-webkit-scrollbar {
    display: none !important;
}
/* Hide scrollbar for IE, Edge and Firefox */
.dol-scroll-hide {
    -ms-overflow-style: none !important; /* IE and Edge */
    scrollbar-width: none !important; /* Firefox */
}

/* UserControls */
.doluc-partner-title {
    font-weight: 600;
    color: #17A2B8;
}

.doluc-partner-data {
    display: block;
    color: gray;
    font-size: small;
}

/* MODAL */
#modal_area-v2 {
    z-index: 20000;
    width: auto;
    height: auto;
    margin: auto;
}

.dol-modal, .dol-modal-v2 {
    z-index: 20000;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .5rem;
    background-color: rgba(0, 0, 0, 0.5);
}

.dol-modal-content, .dol-modal-content-v2 {
    background-color: transparent;
    padding: .5rem;
    max-height: 95%;
    margin: auto;
    overflow-y: auto;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
}

.dol-modal-close, .dol-modal-close-v2 {
    position: sticky;
    top: 3px;
    right: 4px;
    margin: 3px;
    float: right;
}

/* Search Input */
input.dol-search {
    border: 1px solid #555;
    padding: .1rem .3rem .1rem 25px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E") no-repeat 6px center;
    margin: 0;
    width: 100%;
}

    input.dol-search:focus {
        box-shadow: 0 0 3px 0 #1183d6;
        border-color: #1183d6;
        outline: none;
    }

/* Loading ... */
#dol-ajax-loader {
    position: fixed;
    right: 0;
    margin-top: 0;
    z-index: 22000;
    box-shadow: -5px 5px 5px 0px rgba(0, 0, 0, 0.3);
}

/* Dropdown contextmenu */
.custom-contextmenu {
    display: none;
    z-index: 1000;
    position: absolute;
    overflow: hidden;
    white-space: nowrap;
    background: #FFF;
    color: #333;
    border: 1px solid #CCC;
    font-size: medium;
    padding: 0;
    margin: 0;
    box-shadow: 5px 5px 2px -3px rgba(0, 0, 0, .4);
}

    .custom-contextmenu li {
        padding: 3px 8px;
        cursor: pointer;
        list-style-type: none;
        transition: all .3s ease;
        user-select: none;
    }

        .custom-contextmenu li:hover {
            background-color: #EEE;
        }

/* Autocomplete */

.acresults.positon-fixed-sm {
    position: fixed !important;
    top: 0;
    left: 0;
}

    .acresults.positon-fixed-sm .d-position-fixed {
        display: block !important;
    }

    .acresults.positon-fixed-sm input.autocomplete-text-copy {
    }

.acresultstable {
    max-height: 40vh;
}

.acresults.positon-fixed-sm .acresultstable {
    max-height: 30vh;
}

@media (min-width: 576px) {
    .acresults.positon-fixed-sm {
        position: absolute !important;
        top: unset;
        left: unset;
    }

        .acresults.positon-fixed-sm input.autocomplete-text-copy {
            display: none !important;
        }
}

.acresultstable .acresultrow {
    cursor: pointer !important;
}

    .acresultstable .acresultrow:nth-child(even) {
        background-color: rgba(0,0,0,.05);
    }

    .acresultstable .acresultrow:hover {
        background-color: rgba(0,0,0,.1);
    }

    .acresultstable .acresultrow:focus {
        background-color: rgba(0,0,0,.2) !important;
    }

input[dol-api-url] {
    /*box-shadow: 0 0 1px 1px #007BFF;*/
}

button[btn-onlykeyboard] {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-left: 1px solid #ced4da;
    box-shadow: none !important;
}

    button[btn-onlykeyboard]:hover {
        box-shadow: none !important;
    }

/* Notify */
#dropdownMenuButton:hover {
    animation: pulsate 2s ease-out infinite;
}

@-webkit-keyframes pulsate {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.01);
    }

    20% {
        transform: scale(1.02);
    }

    30% {
        transform: scale(1.03);
    }

    40% {
        transform: scale(1.04);
    }

    50% {
        transform: scale(1.05);
    }

    60% {
        transform: scale(1.04);
    }

    70% {
        transform: scale(1.03);
    }

    80% {
        transform: scale(1.02);
    }

    90% {
        transform: scale(1.01);
    }

    100% {
        transform: scale(1);
    }
}


/* dol button area */
.dol-buttonarea {
    position: sticky !important;
    bottom: 0;
    z-index: 2000;
    padding: 0.5rem;
    background-color: white;
    border-top: 2px solid gray;
    border-radius: 5px;
}

@media (min-width: 576px) {
    .dol-buttonarea {
        /*position: relative !important;*/
        border-top: 2px solid gray;
        /*border-radius: 5px 5px 0 0;*/
        background-color: white;
        box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 3px 2px;
        background-color: lightgray;
        background-image: linear-gradient(120deg, rgba(254, 254, 254, 0.933) 70%, rgba(255, 255, 255, 0.667) 80%);
    }
}

input[type=button]:hover, input[type=submit]:hover, a.btn:hover, button:hover {
    box-shadow: 0 0 1px 1px black !important;
    cursor: pointer;
}

.dol-hover:hover {
    opacity: .8;
}

@media (min-width: 576px) {
    .text-nowrap-sm {
        white-space: nowrap !important;
    }
}

/* Webmunka dropdown */
#webmunka-menu {
    display: none !important;
    position: absolute;
    right: 0;
    left: auto;
}
#webmunka-menu.show {
    display: block !important;
}