﻿/* sticky header and sticky footer start */

header.sticky {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color: darkslategray;
}

/*needed for sticky bottom*/
html {
    position: relative;
    min-height: 100%;
}

form {
    /*margin-top: 60px;*/
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: #f5f5f5;
}

body {
    margin-bottom: 80px; /* put some space between bottom of form and content */
}

/* sticky header and sticky footer end */

/* bootstrap modifiers */
.flex-basis-0 {
    flex-basis: 0;
}

.alert-sm {
    display: inline-block;
    padding: 0.125rem 0.25rem;
}
/* bootstrap modifiers - end*/

.has-error label {
    font-weight: bold;
    color: #721c24;
}

/* radiobuttonlist */

.ccdc-rbl-v input[type="radio"],
.ccdc-rbl-h input[type="radio"],
.ccdc-rbl-h-table input[type="radio"],
.enlarge-cb input[type="checkbox"], 
.enlarge-rb input[type="radio"] {
    transform: scale(1.4) !important;
}

.enlarge-cb-fixLabel label {
    display: inline !important;
}



.enlarge-cb input,
.enlarge-cb label,
.enlarge-rb input,
.enlarge-rb label {
    margin-left: 0.5rem;
}

.ccdc-rbl-v input,
.ccdc-rbl-v label {
    margin-left: 0.5rem;
}

.ccdc-rbl-h > input,
.ccdc-rbl-h > label {
    margin-right: 0.5rem;
}

.ccdc-rbl-h input[type="radio"],
.ccdc-rbl-h label {
    margin-right: 0.5rem;
}

.ccdc-rbl-h-table input,
.ccdc-rbl-h-table label {
    margin-right: 0.5rem;
}

.ccdc-rbl-h-table-header input {
    display: none;
}

.ccdc-rbl-h-table-header td {
    width: 75px;
    text-align: center;
}

table.ccdc-rbl-multicol label {
    margin-left: 10px;
    margin-right: 20px;
}

@media only screen and (min-width: 768px) {
    .ccdc-rbl-h-table label {
        display: none;
    }

    .ccdc-rbl-h-table td {
        width: 75px;
        text-align:center;
    }

    .ccdc-rbl-h-table input {
        margin-right: 0;
    }
}

.login-card {
    width: 350px;
    margin-top: 10vh;
    margin-bottom: 50px;
}

.alert-sm {
    padding: 3px 5px;
}

/* checkbox */
span.ccdc-cb > label {
    margin-left: 10px;
    margin-right: 10px;
}

span.ccdc-cb > input[type="checkbox"] {
    transform: scale(1.25) !important;
}

.form-check-inline {
    display: inline;
}

/* textbox */
.ccdc-tb-inline {
    display: inline !important;
}

.ccdc-tb-w300 {
    width: 300px !important;
}

.form-control-short,
.form-select-short{
    width: auto;
    display: inline-block;
}

/* other */
.td-strikethrough{
    text-decoration: line-through;
}

/* Tooltip */
/* modified from https://www.w3schools.com/css/css_tooltip.asp */

/* Tooltip container */
.ccdc-tooltip {
    position: relative;
    display: inline-block;
}

/* Tooltip text */
    .ccdc-tooltip .ccdc-tooltiptext {
        visibility: hidden;
        width: 120px;
        background-color: black;
        color: #fff;
        text-align: center;
        padding: 5px 0;
        border-radius: 6px;
        /* Position the tooltip text - see examples below! */
        position: absolute;
        z-index: 1;
    }

/* Show the tooltip text when you mouse over the tooltip container */
/* trying active for touch screen */
    .ccdc-tooltip:hover .ccdc-tooltiptext, .ccdc-tooltip:active .ccdc-tooltiptext {
        visibility: visible;
    }

    /* tooltip on right of text */
    .ccdc-tooltip-right .ccdc-tooltiptext {
        top: -5px;
        left: 105%;
    }

    /* place arrow on left of tooltip */
    .ccdc-tooltip-right .ccdc-tooltiptext::after { 
        content: " ";
        position: absolute;
        top: 50%;
        right: 100%; /* To the left of the tooltip */
        margin-top: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: transparent black transparent transparent;
    }

.table-fixed {
    table-layout: fixed;
}