@import url("open-iconic/font/css/open-iconic-bootstrap.min.css");

.k-focus.k-selected.k-calendar-td.k-today {
    color: #fff !important;
}
.text-required {
    color: #ff6358 !important;
}
.mr-1 {
    margin-right: 0.6em;
}

.savesearch sup {
    top: 30%;
    position: absolute;
}

.savesearch td {
    position: relative;
}

html,
body {
    font-family: var(--tv-font-family-body);
    height: 100%;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mtr-1 {
    margin: 7px 10px;
}

.searchShare {
    width: 100% !important;
}

body {
    background-color: whitesmoke;
}

.header-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-site-logo {
    max-width: 100%;
    max-height: 102px;
    cursor: pointer;
}

.icon-after-input {
    position: absolute;
    top: 10px;
    left: auto;
    right: 10px;
}

.left {
    width: 25%;
}

.right {
    width: 33%;
}

.middle {
    width: 33%;
    text-align: center;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

a,
.btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.top-row {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    height: auto;
}

.main {
    overflow-x: hidden;
    height: 100%;
    min-width: 284px;
}

    .main .top-row {
        border-bottom: 1px solid #d6d5d5;
        /*justify-content: flex-end;*/
    }

        .main .top-row > a {
            margin-left: 0.6rem;
        }

#main-content {
    min-height: 100%;
    padding-bottom: 100px;
    margin-bottom: -100px;
}
/*changed this to match the other headers. It was way huge before*/
.tasksFont {
    font-size: 20px;
}

.sidebar {
    background-color: #f8f9fa;
    box-shadow: 2px 2px 2px #aaaaaa;
}

    .sidebar .top-row {
        /*background-color: rgba(0,0,0,0.4);*/
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
        color: #424242;
    }

        .sidebar .navbar-brand:hover {
            color: #ad0000;
        }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.staticheader {
    margin-top: -1rem;
}

.hideGreenValidation *.valid.modified:not([type="checkbox"]) {
    outline: grey solid 0px;
}

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.centerContent {
    text-align: center;
}

.smallFont {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.smallRelativeFont {
    font-size: 0.875rem;
}

.removeTelerikGridFilterButtons
div.k-filtercell-wrapper
div.k-filtercell-operator {
    display: none;
}

div.k-dialog-wrapper .k-window .k-form .validation-errors {
    display: none;
}

.btnLightGray {
    background-color: lightgrey;
    transition: 0.3s;
}

    .btnLightGray:hover {
        filter: brightness(85%);
    }

div.smallerFont,
div.smallerFont .k-filtercell * {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

    div.smallerFont .k-grid-edit-cell input {
        font-size: 12px;
        font-weight: bold;
        text-align: center;
    }

#footer-content {
    height: 100px;
}

.footer-version {
    font-size: 0.9em;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.footer-logo-container {
    display: flex;
    justify-content: center;
}

.menu-style {
    background-color: #f8f9fa;
    border-bottom: 1px solid #d6d5d5;
}

.Typeahead *,
.Typeahead *:before,
.Typeahead *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Utilities */

.u-cf:before,
.u-cf:after {
    content: " ";
    display: table;
}

.u-cf:after {
    clear: both;
}

.u-hidden {
    display: none !important;
}

.u-posRelative {
    position: relative;
}

/* Typeahead */

.Typeahead {
    position: relative;
    *z-index: 1;
    min-width: 198px;
    max-width: 320px;
    text-align: left;
}

.Typeahead-spinner {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 20px;
    height: 20px;
}

.Typeahead-hint,
.Typeahead-input {
    /*width: 100%;
    padding: 5px 8px;
    font-size: 24px;
    line-height: 30px;
    border: 1px solid #024e6a;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;*/
}

.Typeahead-hint {
    position: absolute;
    top: 0;
    left: 0;
    color: #ccd6dd;
    opacity: 1;
}

.Typeahead-input {
    /*position: relative;
    background-color: transparent;
    background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
    outline: none;*/
}

.Typeahead-menu {
    margin-top: 10px;
    position: absolute;
    top: 95%;
    max-height: 400px;
    z-index: 100;
    width: 300px;
    margin-bottom: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fff;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    box-shadow: 0px 0px 0px 1px green;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

    .Typeahead-menu.is-open {
        display: block;
    }

.Typeahead-selectable {
    cursor: pointer;
}

    .Typeahead-selectable + .Typeahead-selectable {
        border-top: 1px solid #ccd6dd;
    }

/* ProfileCard */

.ProfileCard {
    position: relative;
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid lightgray;
}

.ProfileCard-avatar {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 52px;
    height: 52px;
}

.ProfileCard:hover .ProfileCard-avatar {
    border-color: #f5f8fa;
}

.ProfileCard-details {
    min-height: 60px;
    padding-left: 60px;
}

.ProfileCard-realName,
.ProfileCard-screenName {
    display: block;
}

.ProfileCard-realName {
    font-weight: 700;
}

.ProfileCard-screenName {
    color: #8899a6;
}

.ProfileCard-description {
    margin-top: 5px;
    font-size: 14px;
    line-height: 18px;
}

.ProfileCard-stats {
    float: left;
    text-align: left;
    white-space: nowrap;
}

.ProfileCard-stat {
    display: inline-block;
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
}

.ProfileCard-stat-label {
    color: #8899a6;
    font-weight: 500;
}

.ProfileCard:focus {
    color: #fff;
    background: #55acee;
}

.ProfileCard:hover,
.ProfileCard.is-active {
    color: #fff;
    background: #55acee;
}

    .ProfileCard:hover .ProfileCard-screenName,
    .ProfileCard:hover .ProfileCard-stat-label,
    .ProfileCard.is-active .ProfileCard-screenName,
    .ProfileCard.is-active .ProfileCard-stat-label {
        color: #fff;
    }

    .ProfileCard:focus .ProfileCard-screenName,
    .ProfileCard:focus .ProfileCard-stat-label,
    .ProfileCard.is-active .ProfileCard-screenName,
    .ProfileCard.is-active .ProfileCard-stat-label {
        color: #fff;
    }
/* EmptyMessage */

.EmptyMessage {
    position: relative;
    padding: 10px;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
}
/*.CheckStatus {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 52px;
    height: 52px;
}*/

/* CONTROLS - FORM  */
.FormLabelInside {
    position: absolute;
    background-color: var(--bg-color);
    margin-left: 18px;
    margin-top: -9px;
    font-size: small;
    padding: 0 2px;
}

.FormTextRequired {
    font-size: 9px;
    color: grey;
}

.CheckStatus {
    width: 52px;
    height: 52px;
    -ms-transform: rotate(45deg); /* IE 9 */
    -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
    transform: rotate(45deg);
    position: absolute;
    margin-top: 5px;
}

.checkmark_circle {
    position: absolute;
    width: 52px;
    height: 52px;
    background-color: #347d94;
    border: 1px solid #9e9e9e;
    border-radius: 30px;
    left: 0;
    top: 0;
}

.checkmark_stem {
    position: absolute;
    width: 7px;
    height: 21px;
    background-color: #fff;
    left: 25px;
    top: 14px;
}

.checkmark_kick {
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: #fff;
    left: 19px;
    top: 28px;
}

.AddressSearch {
    height: 23.5px !important;
}

.addressSearch {
    width: 280px !important;
}

.ProfileCard-details-address {
    min-height: 0px !important;
    padding-left: 0px !important;
}

.ProfileAddress {
    height: 25px;
    overflow-y: hidden;
    transition: height 0.3s;
    -webkit-transition: height 0.5s;
    overflow-x: hidden;
}

    .ProfileAddress:hover {
        height: 75px !important;
    }

.Typeahead-spinner-address {
    position: absolute;
    top: 2px;
    right: 7px;
    display: none;
    width: 20px;
    height: 20px;
}

.ProfileAddress > .ProfileCard-details-address > .ProfileCard-realName {
    font-size: small !important;
    font-weight: normal !important;
}
/*.addressDetails{
    height:0px;
}*/
.addresslabel {
    color: black !important;
    font-size: small;
    white-space: nowrap;
}

    .addresslabel > .ProfileCard-stat-label {
        font-size: small;
        white-space: nowrap;
    }

.addressMenu {
    margin-top: 2px !important;
}

.gmaplink {
    font-size: small;
}

.ProfileAddress > .ProfileCard-details-address > .ProfileCard-realName {
    font-size: small !important;
    white-space: nowrap;
}

.file-row {
    background-color: #e4e4e4;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    border-radius: 0.6rem;
    color: #555;
    display: flex;
    align-items: center;
}

    .file-row h2 {
        margin: 0.3rem 0 0.6rem 0;
        font-weight: bold;
        color: black;
        font-size: 1.1rem;
    }

    .file-row > div {
        flex-grow: 1;
    }

    .file-row button {
        padding: 0.5rem 1rem;
    }

.drag-drop-zone {
    border: 3px dashed #aeb3ff;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background-color: #eee;*/
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
    color: #aeaeae;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 1.5rem 0 2rem 0;
    position: relative;
}

    .drag-drop-zone:hover {
        background-color: #f5f5f5;
    }

    .drag-drop-zone input[type="file"] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

pre {
    background-color: #f0f0f0;
    overflow: auto;
    padding: 1rem;
    height: 10rem;
}

.customModal {
    max-width: 1000px !important;
}

.modal-dialog {
    outline: 0 !important;
}

.pdf-modal-dialog {
    min-width: 800px;
    overflow-x: hidden;
    margin-top: 0;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 0.25rem 0.4rem;
    font-size: 0.875rem;
    line-height: 0.5;
    border-radius: 0.2rem;
}

.swal2-title {
    font-size: 1.2em !important;
}

.swal2-container {
    z-index: 2500 !important;
}

.card-horizontal {
    display: flex;
    flex: 1 1 auto;
}

input.clickable {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin-top: -20px;
    margin-left: -20px;
    cursor: pointer;
}

.completeStepper {
    background-color: #28a745;
    color: white;
}

.incompleteStepper {
    background-color: cornflowerblue;
    color: white;
}

.big-check input {
    height: 25px;
    width: 25px;
}

.bigger-check input {
    height: 35px;
    width: 35px;
}

.checkbox-bottom {
    bottom: 0;
    position: absolute;
}

.hr-mt-0 {
    margin-top: 0;
}

.bs-stepper {
    margin-bottom: 20px;
}

.step {
    border: 1px solid #d6d4d4;
    border-radius: 6px;
    background-color: whitesmoke;
}

    .step.active {
        background-color: #2e4882;
    }

        .step.active > .step-trigger > .bs-stepper-label {
            color: white;
        }

.bs-stepper .step-trigger {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 2px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #6c757d;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: none;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

    .bs-stepper .step-trigger:disabled,
    .bs-stepper .step-trigger.disabled {
        pointer-events: none;
        opacity: 0.65;
    }

    .bs-stepper .step-trigger:focus {
        color: #007bff;
        outline: none;
    }

.bs-stepper-label {
    display: inline-block;
    margin: 0.25rem;
}

.bs-stepper-header {
    display: flex;
    align-items: center;
}

.bs-stepper-line,
.bs-stepper .line {
    flex: 1 0 32px;
    min-width: 1px;
    min-height: 1px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.12);
    height: 5px;
}

.bs-stepper-circle {
    display: inline-flex;
    align-content: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    padding: 0.5em 0;
    margin: 0.25rem;
    line-height: 1em;
    color: #fff;
    background-color: #6c757d;
    border-radius: 1em;
}

.active .bs-stepper-circle {
    background-color: #007bff;
}

.bs-stepper-content {
    padding: 0 20px 20px;
}

.bs-stepper.vertical {
    display: flex;
}

    .bs-stepper.vertical .bs-stepper-header {
        flex-direction: column;
        align-items: stretch;
        margin: 0;
    }

    .bs-stepper.vertical .bs-stepper-pane,
    .bs-stepper.vertical .content {
        display: block;
    }

        .bs-stepper.vertical .bs-stepper-pane:not(.fade),
        .bs-stepper.vertical .content:not(.fade) {
            display: block;
            visibility: hidden;
        }

.bs-stepper-pane:not(.fade),
.bs-stepper .content:not(.fade) {
    display: none;
}

.bs-stepper .content.fade,
.bs-stepper-pane.fade {
    visibility: hidden;
    transition-duration: 0.3s;
    transition-property: opacity;
}

    .bs-stepper-pane.fade.active,
    .bs-stepper .content.fade.active {
        visibility: visible;
        opacity: 1;
    }

.bs-stepper-pane.active:not(.fade),
.bs-stepper .content.active:not(.fade) {
    display: block;
    visibility: visible;
}

.bs-stepper-pane.dstepper-block,
.bs-stepper .content.dstepper-block {
    display: block;
}

.bs-stepper:not(.vertical) .bs-stepper-pane.dstepper-none,
.bs-stepper:not(.vertical) .content.dstepper-none {
    display: none;
}

.bs-stepper-label {
    font-size: smaller;
}

.vertical .bs-stepper-pane.fade.dstepper-none,
.vertical .content.fade.dstepper-none {
    visibility: hidden;
}

.tv-alert {
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
        0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12) !important;
    background-color: #fff;
    border-color: #fff;
    color: rgba(0, 0, 0, 0.87);
    display: block;
    font-size: 16px;
    /*margin-bottom: 16px;*/
    padding: 16px;
    position: relative;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
    min-height: 70px;
    background-repeat: no-repeat;
    margin-right: 5px;
    margin-left: 5px;
}

.tv-alert-wrapper {
    align-items: center;
    border-radius: inherit;
    display: flex;
}

.tv-alert-content {
    flex: 1 1 auto;
}

.tv-alert-danger {
    background-color: #ff5252 !important;
    border-color: #ff5252 !important;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    top: 0;
    left: 0;
    right: 0;
    border-style: solid;
    border-width: 4px;
    content: "";
    position: absolute;
}

.tv-alert-warning {
    background-color: #ff9d09 !important;
    border-color: #ff9d09 !important;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    top: 0;
    left: 0;
    right: 0;
    border-style: solid;
    border-width: 4px;
    content: "";
    position: absolute;
}

.cursor-pointer,
.pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

#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: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.swal2-backdrop-show {
    z-index: 900;
}

.text-required {
    font-size: 9px;
    color: grey;
}

.profile {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

    .profile .image {
        display: block;
        position: relative;
        z-index: 1;
        overflow: hidden;
        text-align: center;
        border: 5px solid #fff;
    }

    .profile .user {
        position: relative;
        padding: 0px 5px 5px;
        padding-bottom: 0px !important;
    }

        .profile .user .avatar {
            position: absolute;
            left: 20px;
            top: -45px;
            z-index: 2;
        }

        .profile .user h2 {
            font-size: 16px;
            line-height: 20px;
            display: block;
            float: left;
            margin: 4px 0px 0px 5px;
            font-weight: bold;
        }

        .profile .user .actions {
            float: right;
        }

            .profile .user .actions .btn {
                margin-bottom: 0px;
            }

    .profile .info {
        float: left;
        margin-left: 20px;
        font-size: smaller;
    }

.img-profile {
    height: 50px;
    width: 50px !important;
}

.ActiveClass {
    background-color: #05c500;
    color: #ffffff;
}

.InactiveClass {
    background-color: #fd9f00;
    color: #ffffff;
}

.CanceledClass {
    background-color: #c12101;
    color: #ffffff;
}

.PendingClass {
    background-color: #e0e002;
    color: #000000;
}

.DefaultClass {
    color: #000000;
    background-color: #347d94;
}

.ActiveReasonClass {
    background-color: #05c500;
    color: #ffffff;
}

.DefaultReasonClass {
    background-color: #347d94;
    color: #fff;
}

.smallplace::placeholder {
    font-size: smaller;
}

.forUpper {
    text-transform: uppercase;
}

.dropbtn {
    background-color: #ffffff;
    color: black;
    /*   padding: 16px;*/
    font-size: 14px;
    border: none;
}

.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

    .dropdown-content a {
        display: block;
        color: #000000;
        padding: 5px;
        text-decoration: none;
    }

        .dropdown-content a:hover {
            background-color: #ddd;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #ddd;
}

.dropdown-submenu a::after {
    transform: rotate(-90deg);
    position: absolute;
    right: 6px;
    top: 0.8em;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    margin-right: 0.1rem;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #003961 !important;
    color: white !important;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: #003961 !important;
    color: white !important;
}

.navbar-light .navbar-nav .nav-link {
}

.nav-link {
    cursor: pointer;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: rgba(0, 0, 0, 0.7);
    background-color: #003961;
    color: white !important;
    border-radius: 3px;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff !important;
}

header {
    padding: 20px;
}

.shadow-effect {
    transition: 0.1s;
}

    .shadow-effect:hover {
        -webkit-box-shadow: 0px 4px 15px -6px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px 4px 15px -6px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 4px 15px -6px rgba(0, 0, 0, 0.75);
    }

.card-content {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.navbar-light .navbar-nav .nav-link {
    font-size: smaller;
}

.dropdown-item.disabled {
    pointer-events: none;
    background-color: transparent;
}

:root {
    --tv-font-family-body: "Nunito Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --tv-font-family-headers: "DM Sans", var(--tv-font-family-body);
    --input-padding-x: 1.5rem;
    --input-padding-y: 0.75rem;
}

.min400 {
    min-height: 400px;
}

.modal-dialog {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto;
}

.split-button {
    margin-right: 5px;
    position: fixed;
    right: 0;
    bottom: 10px;
    z-index: 900;
}

.fade-component {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-duration: var(--animate-duration);
    animation-duration: var(--animate-duration);
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 25%;
    position: relative;
    height: 0;
}

    .map-responsive iframe {
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        position: absolute;
    }

.list-group-item.active {
    z-index: 0;
}

.font-sm {
    font-size: small;
}

.chart-card-container {
    min-height: 556px;
}

.card-header-content {
    vertical-align: middle;
    height: 30px;
    margin-bottom: 6px;
}

.card-header-icon {
    color: #5e5e5e;
    position: relative;
    top: -1px;
}

.card-header-badge {
    position: relative;
    top: -4px;
    font-size: 0.625em;
}

.card-header-title {
    font-size: 1.25em;
}

.search-barcode-id {
    min-width: 124px;
    max-width: 228px;
}

.label-big {
    /*    font-size:large;
*/
    font-weight: bold;
}

.big-check-box {
    margin-right: 0.25rem !important;
    vertical-align: middle !important;
}

.big-check > .k-checkbox::before {
    transform: scale(2) translate(-25%, -25%);
}

.hide {
    display: none !important;
}

/* Confirm Dialog */
.confirm-dialog-container {
    position: relative;
}

.confirm-dialog-message {
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: lightblue;
    width: 250px;
    position: absolute;
    top: -50px;
    padding: 10px;
    border-radius: 8px;
}

.dateformatmask::placeholder {
    font-style: italic;
    color: gray;
}

.dateformatmask:-ms-input-placeholder {
    font-style: italic;
    color: gray;
}

.k-datepicker .k-input {
    text-transform: lowercase;
}

.k-datepicker .k-input {
    text-transform: lowercase;
}

fieldset.scheduler-border {
    border: 1px groove #ddd !important;
    padding: 0 1.4em 1.4em 1.4em !important;
    margin: 0 0 1.5em 0 !important;
    -webkit-box-shadow: 0px 0px 0px 0px #000;
    box-shadow: 0px 0px 0px 0px #000;
}

legend.scheduler-border {
    width: auto; /* Or auto */
    padding: 0 10px; /* To give a bit of padding on the left and right */
    border-bottom: none;
    margin-bottom: 0px;
    /*position: relative;
    bottom: 25px;*/
}

.translate {
    float: right;
}

.fa.fa-translate {
    color: transparent;
    -webkit-text-stroke-color: blue;
}

.btn-tabs button:first-child {
    border-bottom-left-radius: 0;
}

.btn-tabs button:last-child {
    border-bottom-right-radius: 0;
}

.btn-block {
    display: block;
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
}

.text-right {
    text-align: right !important;
}

.float-left {
    float: left !important;
}

.float-right {
    float: right !important;
}

.card-space {
    padding: 12px 15px !important;
}

.alert-primary {
    background-color: #d3dfee;
    color: #c2d2e7;
}

.modal-header button.close {
    font-size: 1.25rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.swal-list {
    list-style: initial;
}

.swal-sub-list {
    list-style: square;
}

@media (max-width: 400px) {
    .bs-stepper-line,
    .bs-stepper .line {
        flex-basis: 20px;
    }
}

@media (max-width: 520px) {
    .bs-stepper-content {
        padding: 0;
    }

    .bs-stepper-header {
        margin: 0 -10px;
        text-align: center;
    }

    .bs-stepper .step-trigger {
        flex-direction: column;
        padding: 10px;
    }
}

@media (min-width: 575.98px) {
    .header-image-container,
    .footer-logo-container {
        justify-content: start;
    }

    .footer-version {
        align-items: end;
    }
}

@media (min-width: 575.98px) {
    .swal-wide {
        min-width: 65vw !important;
    }
}

@media (min-width: 767.98px) {
    .modal-dialog {
        min-height: calc(100vh - 20px);
    }

    .swal-wide {
        min-width: 60vw !important;
    }
}

@media (min-width: 991.98px) {
    .swal-wide {
        min-width: 55vw !important;
    }
}

@media (min-width: 1199.98px) {
    .swal-wide {
        min-width: 50vw !important;
    }
}

@media (min-width: 1399.98px) {
    .swal-wide {
        min-width: 45vw !important;
    }
}

@media print {
    .noprint {
        visibility: hidden;
    }

    .pagebreak {
        page-break-after: always;
    }
}
/*@media (max-width: 767.98px) {
    .main .top-row {
        display: none;
    }
}*/
.overflowEllipsis {
    overflow: hidden !important;
    -ms-text-overflow: ellipsis !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

    .overflowEllipsis:hover {
        overflow: visible !important;
    }

        .overflowEllipsis:hover span {
            position: absolute !important;
            background-color: white !important;
            box-shadow: 0 0 6px 0 black !important;
            border-radius: 3px !important;
            z-index: 10;
        }

/** TV Grid Styles */
table.tv-grid {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif !important;
    font-size: 0.875rem !important;
    background: var(--bs-body-bg) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px -1px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

.table-responsive {
    border-radius: 8px !important;
    background: var(--bs-body-bg) !important;
}

.elections-grid-container .table-responsive {
    overflow: visible;
}

.elections-grid-container table.tv-grid {
    overflow: visible !important;
}
table.tv-grid > :not(caption) > * > * {
    padding: 0 !important;
    background-color: transparent !important;
    border-bottom-width: 0 !important;
    box-shadow: none !important;
}

table.tv-grid thead {
    background-color: var(--bs-body-bg) !important;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

table.tv-grid > thead > tr > th {
    color: var(--bs-body-color) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 16px !important;
    text-align: left !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
    letter-spacing: 0.05em !important;
    background-color: var(--bs-body-bg) !important;
    position: relative;
    user-select: none;
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
}

    table.tv-grid > thead > tr > th[data-sort] {
        cursor: pointer;
        padding-right: 32px !important;
    }

        table.tv-grid > thead > tr > th[data-sort]:hover {
            background-color: var(--bs-tertiary-bg) !important;
            color: var(--bs-primary) !important;
        }

        table.tv-grid > thead > tr > th[data-sort]::after {
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            position: absolute;
            right: 12px;
            font-size: 0.75rem;
            opacity: 0.5;
            margin-left: 8px;
            transition: all 0.2s ease-in-out;
            top: 50%;
            transform: translateY(-50%);
        }

        table.tv-grid > thead > tr > th[data-sort]:hover::after {
            opacity: 1;
            color: var(--bs-primary) !important;
        }

    table.tv-grid > thead > tr > th[data-sort="asc"]::after {
        content: "\f0d8";
        opacity: 1;
        color: var(--bs-primary) !important;
    }

    table.tv-grid > thead > tr > th[data-sort="desc"]::after {
        content: "\f0d7";
        opacity: 1;
        color: var(--bs-primary) !important;
    }

table.tv-grid > tbody > tr:not(.table-success) > td {
    padding: 12px 16px !important;
    color: var(--bs-body-color) !important;
    font-size: 0.875rem !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
    vertical-align: middle !important;
    background-color: var(--bs-body-bg) !important;
    transition: background-color 0.15s ease-in-out !important;
}

table.tv-grid > tbody > tr:nth-child(even):not(.table-success) > td {
    background-color: var(--bs-secondary-bg) !important;
}

table.tv-grid > tbody > tr.table-success > td {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
    padding: 12px 16px !important;
    font-size: 0.875rem !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
    vertical-align: middle !important;
}

table.tv-grid tbody tr:not(.table-success):hover > td {
    background-color: rgba(var(--bs-primary-rgb), 0.04) !important;
}

table.tv-grid .search-row td {
    padding: 12px 16px !important;
    background-color: var(--bs-body-bg) !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
}

table.tv-grid input.form-control {
    border: 1px solid var(--bs-border-color) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

    table.tv-grid input.form-control:focus {
        border-color: var(--bs-primary) !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1) !important;
    }

table.tv-grid .btn-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
}

table.tv-grid > tfoot > tr > td {
    border-bottom: none !important;
    padding: 12px 16px !important;
    background-color: var(--bs-body-bg) !important;
}

/* Loading overlay styles */
.tv-grid-loading {
    background-color: var(--bs-body-bg) !important;
    opacity: 0.7 !important;
    z-index: 3;
    backdrop-filter: blur(2px);
    border-radius: 8px !important;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    overflow-y: hidden;
}

/* Empty state styling */
table.tv-grid tbody tr td.justify-content-center {
    padding: 32px !important;
    text-align: center !important;
    color: var(--bs-secondary-color) !important;
    font-size: 0.875rem !important;
}

/* Card Styles */
.tv-card {
    background: var(--bs-body-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--bs-border-color);
    transition: all 0.2s ease-in-out;
}

    .tv-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

.tv-card-header {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--tv-font-family-headers);
    letter-spacing: -0.01em;
}

    .tv-card-header h4,
    .tv-card-header h5 {
        font-size: 0.9375rem;
        margin: 0;
        font-weight: 700;
        font-family: inherit;
        letter-spacing: inherit;
    }

    .tv-card-header i {
        font-size: 0.875rem;
        opacity: 0.9;
    }

    .tv-card-header.primary {
        background: var(--bs-primary);
        color: white;
        border-radius: 12px 12px 0 0;
    }

    .tv-card-header.secondary {
        background: var(--bs-secondary);
        color: white;
        border-radius: 12px 12px 0 0;
    }

.tv-card-body {
    padding: 1.5rem;
    background: var(--bs-body-bg);
    border-radius: 0 0 12px 12px;
}

.tv-search-form .form-floating {
    margin-bottom: 1rem;
    position: relative;
}

.tv-search-form .form-control {
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
    padding: 1rem 0.75rem 0.375rem;
    height: 3.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: var(--bs-body-bg);
}

.tv-search-form .form-floating label {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--bs-secondary);
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.tv-search-form .form-floating > .form-control:focus ~ label,
.tv-search-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
.tv-search-form .form-floating > .form-control:-webkit-autofill ~ label {
    transform: scale(0.85) translateY(-1.5rem);
    background: transparent;
    height: auto;
    padding: 0 0.5rem;
    color: var(--bs-primary);
    opacity: 1;
}

.tv-search-form .row {
    --bs-gutter-y: 0.75rem;
}

.tv-search-form :deep(.form-control) {
    height: 3.5rem;
    padding: 1rem 0.75rem 0.375rem;
}

.tv-btn-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tv-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tv-btn-primary {
    background: var(--bs-primary);
    color: white;
    border: none;
}

    .tv-btn-primary:hover {
        background: var(--bs-primary-dark, #0056b3);
        transform: translateY(-1px);
    }

.tv-btn-secondary {
    background: transparent;
    color: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

    .tv-btn-secondary:hover {
        background: var(--bs-secondary);
        color: white;
    }

.tv-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 800;
}

/* Custom styles for standalone primary buttons */
.btn-primary-standalone {
    background-color: #1976d2;
    border-color: #1565c0;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

    .btn-primary-standalone:hover,
    .btn-primary-standalone:focus {
        background-color: #1565c0;
        border-color: #0d47a1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        color: #ffffff;
    }

    .btn-primary-standalone:active {
        background-color: #0d47a1;
        border-color: #0a3880;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        color: #ffffff;
    }

table.tv-grid-sm {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif !important;
    font-size: 0.875rem !important;
    background: var(--bs-body-bg) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

    table.tv-grid-sm > :not(caption) > * > * {
        background-color: transparent !important;
        border-bottom-width: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    table.tv-grid-sm thead {
        background-color: var(--bs-body-bg) !important;
        position: sticky;
        top: 0;
        z-index: 2;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    table.tv-grid-sm > thead > tr > th {
        color: var(--bs-body-color) !important;
        font-weight: 600 !important;
        font-size: 0.75rem !important;
        text-align: left !important;
        border-bottom: 1px solid var(--bs-border-color) !important;
        letter-spacing: 0.05em !important;
        background-color: var(--bs-body-bg) !important;
        position: relative;
        user-select: none;
        transition: all 0.2s ease-in-out;
        text-transform: uppercase;
        margin: 0 !important;
        padding: 0 !important;
    }

        table.tv-grid-sm > thead > tr > th[data-sort] {
            cursor: pointer;
            margin: 0 !important;
            padding: 0 !important;
        }

            table.tv-grid-sm > thead > tr > th[data-sort]:hover {
                background-color: var(--bs-tertiary-bg) !important;
                color: var(--bs-primary) !important;
            }

            table.tv-grid-sm > thead > tr > th[data-sort]::after {
                font-family: "Font Awesome 5 Free";
                font-weight: 900;
                position: absolute;
                right: 12px;
                font-size: 0.75rem;
                opacity: 0.5;
                transition: all 0.2s ease-in-out;
                top: 50%;
                transform: translateY(-50%);
                margin: 0 !important;
                padding: 0 !important;
            }

            table.tv-grid-sm > thead > tr > th[data-sort]:hover::after {
                opacity: 1;
                color: var(--bs-primary) !important;
            }

        table.tv-grid-sm > thead > tr > th[data-sort="asc"]::after {
            content: "\f0d8";
            opacity: 1;
            color: var(--bs-primary) !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        table.tv-grid-sm > thead > tr > th[data-sort="desc"]::after {
            content: "\f0d7";
            opacity: 1;
            color: var(--bs-primary) !important;
            margin: 0 !important;
            padding: 0 !important;
        }

    table.tv-grid-sm > tbody > tr:not(.table-success) > td {
        color: var(--bs-body-color) !important;
        font-size: 0.875rem !important;
        border-bottom: 1px solid var(--bs-border-color) !important;
        vertical-align: middle !important;
        background-color: var(--bs-body-bg) !important;
        transition: background-color 0.15s ease-in-out !important;
        margin: 0 !important;
        padding: 2px !important;
    }

    table.tv-grid-sm > tbody > tr:nth-child(even):not(.table-success) > td {
        background-color: var(--bs-secondary-bg) !important;
        margin: 0 !important;
        padding: 2px !important;
    }

    table.tv-grid-sm > tbody > tr.table-success > td {
        background-color: rgba(var(--bs-success-rgb), 0.1) !important;
        font-size: 0.875rem !important;
        border-bottom: 1px solid var(--bs-border-color) !important;
        vertical-align: middle !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    table.tv-grid-sm tbody tr:not(.table-success):hover > td {
        background-color: rgba(var(--bs-primary-rgb), 0.04) !important;
    }

    table.tv-grid-sm .search-row td {
        background-color: var(--bs-body-bg) !important;
        border-bottom: 1px solid var(--bs-border-color) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    table.tv-grid-sm input.form-control {
        border: 1px solid var(--bs-border-color) !important;
        border-radius: 6px !important;
        font-size: 0.875rem !important;
        transition: all 0.2s ease !important;
        background-color: var(--bs-body-bg) !important;
        color: var(--bs-body-color) !important;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

        table.tv-grid-sm input.form-control:focus {
            border-color: var(--bs-primary) !important;
            outline: none !important;
            box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.1) !important;
            margin: 0 !important;
            padding: 0 !important;
        }

    table.tv-grid-sm .btn-primary:hover {
        background-color: #0b5ed7 !important;
        border-color: #0a58ca !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
    }

    table.tv-grid-sm > tfoot > tr > td {
        border-bottom: none !important;
        background-color: var(--bs-body-bg) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    table.tv-grid-sm tbody tr td.justify-content-center {
        text-align: center !important;
        color: var(--bs-secondary-color) !important;
        font-size: 0.875rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hyperlink {
        color: #0b5ed7; /* Bootstrap primary blue */
        text-decoration: underline; /* Underlined by default */
        background-color: transparent; /* No background */
        cursor: pointer;
    }

    .page-link {
        text-decoration: none;
    }

    .hideSpinners::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
        -moz-appearance: textfield;
    }

    .hideSpinners::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
        -moz-appearance: textfield;
    }

    .width80px{
        width: 80px;
    }
