﻿.tab-content {
    min-height: 57vh;
    max-height: 57vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-bottom: 5px;
    margin-top: 10px;
}

.my-tabs {
    position: relative;
    padding: 1rem 1rem 0.5rem 1rem;
    margin: .5rem -.75rem 0;
    border: solid #dee2e6;
    border-width: 1px 0 0;
}


@media (min-width: 576px) {
    .my-tabs {
        padding: 1rem 1rem 0.5rem 1rem;
        margin-right: 0;
        margin-left: 0;
        border-width: 1px;
        border-top-left-radius: .25rem;
        border-top-right-radius: .25rem
    }
}


/*** PANEL PRIMARY ***/
.my-tabs-header.nav-tabs {
    background-color: #004080;
    border-color: transparent;
    border-radius: .25rem;
    padding-top: 10px;
    padding-left: 10px;
}

.my-tabs-header button.nav-link[role="tab"]:disabled {
    cursor: not-allowed; /* Change cursor to indicate it's disabled */
    /*opacity: 0.5;*/ /*Make it slightly transparent */
}


.my-tabs-header.nav-tabs > li > button.nav-link[role="tab"],
.my-tabs-header.nav-tabs > li > button.nav-link[role="tab"]:hover,
.my-tabs-header.nav-tabs > li > button.nav-link[role="tab"]:focus {
    color: #fff;
    background-color: #004080;
    border-color: transparent;
}


.my-tabs-header.nav-tabs > li > button.nav-link[role="tab"].active,
.my-tabs-header.nav-tabs > li > button.nav-link[role="tab"].active:hover,
.my-tabs-header.nav-tabs > li > button.nav-link[role="tab"].active:focus {
    color: #004080;
    background-color: #fff;
    border-color: #004080;
    border-bottom-color: transparent;
}

/*calendar css*/
#calendar_time_picker {
    display: none;
}

#time-picker-title {
    margin: 1em;
}

#continue-btn {
    display: none;
}

#calendar-legend-container {
    display: flex;
}

#calendar-legend {
    display: flex;
}

#calendar-legend > * {
    margin-right: 1em;
}

#calendar-legend > div {
    display: flex;
    align-items: center;
}

#calendar-legend > div > div {
    height: 20px;
    width: 20px;
    border: solid black 2px;
    margin-right: 0.5em;
}

#calendar-legend > div > p {
    margin: 0px;
}

advanced-timespan {
    font-size: small;
}
/*calendar end css*/

/*jquery upload*/
.drag-drop-upload {
    width: 500px;
    height: 200px;
    border: solid #dee2e6;
    border-width: 1px 1px 1px 1px;
    border-color: black;
}

.my-upload-btn {
    display: none;
}

.box {
    font-size: 1.25rem; /* 20 */
    background-color: #c8dadf;
    position: relative;
    padding: 10px 20px;
}

    .box.has-advanced-upload {
        width: 100%;
        max-width: 900px;
        min-width: 350px;
        outline: 2px dashed #92b0b3;
        outline-offset: -10px;
        -webkit-transition: outline-offset .15s ease-in-out, background-color .15s linear;
        transition: outline-offset .15s ease-in-out, background-color .15s linear;
    }

    .box.is-dragover {
        outline-offset: -20px;
        outline-color: #c8dadf;
        background-color: #fff;
    }

.box__dragndrop,
.box__icon {
    display: none;
}

.box.has-advanced-upload .box__dragndrop {
    display: inline;
}

.box.has-advanced-upload .box__icon {
    width: 100%;
    height: 30px;
    fill: #92b0b3;
    display: block;
    /*margin-bottom: 20px;*/
}

.box__input {
    text-align: center !important;
}


.box.is-uploading .box__input,
.box.is-success .box__input,
.box.is-error .box__input {
    visibility: hidden;
}

.box__uploading,
.box__success,
.box__error {
    display: none;
}

.box.is-uploading .box__uploading,
.box.is-success .box__success,
.box.is-error .box__error {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    -webkit-transform: translateY( -50% );
    transform: translateY( -50% );
}

.box__uploading {
    font-style: italic;
}

.box__success {
    -webkit-animation: appear-from-inside .25s ease-in-out;
    animation: appear-from-inside .25s ease-in-out;
}

.box__restart {
    font-weight: 700;
}

    .box__restart:focus,
    .box__restart:hover {
        color: #39bfd3;
    }

.js .box__file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

    .js .box__file + label {
        max-width: 80%;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: pointer;
        display: inline-block;
        overflow: hidden;
    }

        .js .box__file + label:hover strong,
        .box__file:focus + label strong,
        .box__file.has-focus + label strong {
            color: #39bfd3;
        }

    .js .box__file:focus + label,
    .js .box__file.has-focus + label {
        outline: 1px dotted #000;
        outline: -webkit-focus-ring-color auto 5px;
    }

    .js .box__file + label * {
        /* pointer-events: none; */ /* in case of FastClick lib use */
    }

.no-js .box__file + label {
    display: none;
}

.no-js .box__button {
    display: block;
}

.box__button {
    font-weight: 700;
    color: #e5edf1;
    background-color: #39bfd3;
    display: none;
    padding: 8px 16px;
    margin: 40px auto 0;
}

.box__button:hover,
.box__button:focus {
    background-color: #0f3c4b;
}

tr.template-upload.fade.in {
    opacity: initial;
}

tr.template-download.fade.in {
    opacity: initial;
}
/*jquery upload end*/

/*Hold Activity modal — tab nav*/
#holdHistoryTabs .nav-link {
    color: #495057;
    padding: .45rem .9rem;
    border-radius: 6px 6px 0 0;
    transition: background .15s;
}

#holdHistoryTabs .nav-link.active {
    color: #004080;
    font-weight: 600;
    border-bottom: 2px solid #004080;
    background: #fff;
}

#holdHistoryTabs .nav-link:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/*Hold Activity modal — history table*/
.hold-history-table thead tr {
    background: #004080;
    color: #fff;
}

.hold-history-table thead th {
    font-weight: 600;
    white-space: nowrap;
    border-color: #003366;
}

.hold-history-table tbody tr:hover td {
    background-color: #f0f4ff;
}

.hold-history-table td {
    vertical-align: middle;
}

/*Hold Activity modal — status & days badges*/
.badge-still-on-hold {
    background-color: #856404 !important;
    color: #fff !important;
}

.days-pill {
    display: inline-block;
    min-width: 36px;
    padding: .2em .55em;
    border-radius: 20px;
    font-weight: 600;
    background: #e9ecef;
    color: #495057;
}

.days-pill.active-hold {
    background: #fff3cd;
    color: #856404;
}

/*Hold Activity modal — comments thread*/
.comment-thread {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.comment-bubble {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: .65rem .9rem;
}

.comment-bubble.is-original {
    border-left: 3px solid #004080;
    background: #f0f4ff;
}

.comment-bubble.is-resolution {
    border-left: 3px solid #198754;
    background: #f0faf4;
}

.comment-bubble .bubble-reason {
    color: #6c757d;
    margin-bottom: .3rem;
}

.comment-bubble .bubble-reason span {
    font-weight: 600;
    color: #004080;
}

.comment-bubble .bubble-body {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.comment-bubble .bubble-text {
    flex: 1;
    min-width: 0;
    color: #212529;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
}

.comment-bubble .bubble-meta {
    flex-shrink: 0;
    max-width: 40%;
    color: #495057;
    text-align: right;
    word-break: break-word;
}

#new-hold-comment {
    border-radius: 8px;
    resize: none;
}

#new-hold-comment:focus {
    box-shadow: 0 0 0 .2rem rgba(0, 64, 128, .15);
    border-color: #004080;
}

#hold-comment-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* WCAG AA compliant badge colors (contrast >= 4.5:1) */
.badge-original {
    background-color: #004080 !important;
    color: #fff !important;
}

.badge-resolution {
    background-color: #146c43 !important;
    color: #fff !important;
}

.comment-bubble .badge {
}
