.timeline {
    margin-top: 10px;
}

#tabTimeLine-1,
#Timeline {
    background-color: white !important;
}

#tabTimeLine {
    padding-top: 20px;
}

.timelineTitle {
    width: 105.2% !important;
    margin-left: -42px !important;
}

#timelineTitle {
    font-weight: 600;
    /* bolder if not already */
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    margin-top: -10px;
    color: #FFA48C;
    box-shadow: 0 5px 5px -5px #FFA48C;
}

.timelineHeaders {
    width: 102.25%;
    margin-top: 40px;
    margin-bottom: -35px;
    margin-left: -24px;
    z-index: 2;
    position: relative;
}

.timelineHeaders table {
    width: 100%;
    table-layout: fixed;
    /* ensures column widths match */
    border-collapse: collapse;
}

.timelineHeaders thead tr {
    display: grid;
    grid-template-columns: 45% 12% 35% 10%;
    /* match your data layout */
}


.timelineHeaders th:first-child {
    padding-left: 55px;
}

.timelineHeaders th:nth-child(2) {
    padding-left: 35px;
}

.timelineHeaders th:nth-child(3) {
    padding-left: 20px;
}

.timelineHeaders th {
    background-color: white;
    padding: 10px;
    font-weight: bold;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 2px solid #f5f5f5;
}

.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 5px;
    padding-top: 0 !important;
    gap: 10px;
}

.left-group,
.right-group {
    display: flex;
    align-items: center;
}

.left-group {
    gap: 5px;
}

.right-group {
    gap: 10px;
}

.left-group input.modern-search {
    width: 320px !important;
}

#helpLink:hover {
    opacity: 1 !important;
}

.container.common {
    margin-top: 0px !important;
}

.k-tabstrip>.k-content,
.k-panelbar .k-tabstrip>.k-content {
    border: 0px;
    box-shadow: 0 0 5px #b5b5b5;
}

.jumbotron-fluid {
    box-shadow: 0 4px 6px -2px #8E91F6;
    height: 172px !important;
}

.jumbotron-fluid>h2 {
    font-size: 32px !important;
}

.main {
    margin-top: -50px !important;
    margin-bottom: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
}

.topdiv:hover {
    position: relative !important;
    z-index: 9999 !important;
    cursor: pointer;
}

.timelineinner {
    transition: all 0.2s ease !important;
}

.timelineinner:hover {
    cursor: pointer !important;
    transform: scale(1.015) !important;
    box-shadow:
        -0.75px 0px 0.75px var(--shadow-color),
        /* Left */
        0.75px 0px 0.75px var(--shadow-color),
        /* Right */
        0px -0.75px 0.75px var(--shadow-color),
        /* Top */
        0px 1px 1px var(--shadow-color) !important;
    /* Bottom */
}

.timelineinner {
    box-shadow: 0 0 5px lightgrey;
}

.datediv>b {
    padding-left: 10px !important;
}

.timecontent>.row>.col-md-5 {
    margin-top: 10px !important
}

.timecontent>.row>.col-md-5>.company {
    display: none !important;
}


.timecontent::before {
    content: none !important;
    display: none !important;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    display: inline-block;
    cursor: pointer;
    padding-left: 50px;
    position: relative;
    font-size: 13px;
}

.toggle-label span {
    display: inline-block;
    margin-top: 4px;
    /* Adjust this value as needed */
    vertical-align: middle;
}

.toggle-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.toggle-label::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 4px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-checkbox:checked+.toggle-label::before {
    background-color: #27CC81;
}

.toggle-checkbox:checked+.toggle-label::after {
    transform: translateX(20px);
}

.modal-header {
    padding: 16px;
}

.filterColumns {
    /*display: flex;*/
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.changecompany,
.switchtopersonal,
.switchtocompany {
    font-size: 14px !important;
}

.modern-btn {
    padding: 8px 16px;
    font-size: 14px;
    background: linear-gradient(135deg, #8350F6, #8E91F6);
    /* original and one shade lighter */
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modern-btn:hover {
    background: linear-gradient(135deg, #8E91F6, #8350F6);
    /* reverse gradient on hover */
    transform: translateY(-1px);
}

.modern-btn:active {
    transform: scale(0.98);
}

.modern-btn.red {
    background: linear-gradient(135deg, #9C1C28, #DA2F40) !important;
}

.modern-btn.red:hover {
    background: linear-gradient(135deg, #DA2F40, #9C1C28) !important;
}

.modern-btn.changecompany,
.modern-btn.switchtopersonal,
.modern-btn.switchtocompany {
    background: linear-gradient(135deg, white, #f5f5f5) !important;
    color: #8350F6 !important;
}

.modern-btn.changecompany:hover,
.modern-btn.switchtopersonal:hover,
.modern-btn.switchtocompany:hover {
    background: linear-gradient(135deg, #f5f5f5, white) !important;
    color: #B695FA !important;
}


.btn-sm.show {
    padding: 8px 16px;
    font-size: 14px;
    background: linear-gradient(135deg, #FF603F, #FF8870);
    /* original and one shade lighter */
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 50% !important;
    margin-bottom: 5px;
    margin-left: 30px;
    color: white;
}

.btn-sm.show:hover {
    /*background: linear-gradient(135deg, #FFA48C, #FF8261);*/
    /* reverse gradient on hover */
    transform: translateY(-1px);
    background: linear-gradient(135deg, #FF8870, #FF603F);
    opacity: 1 !important;
}

.btn-sm.show:active {
    transform: scale(0.98);
}

.modern-search {
    padding: 10px 16px;
    font-size: 14px;
    width: 100%;
    height: 34px;
    max-width: 320px;
    border: 2px solid #8E91F6;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    color: #333;
}

.modern-search::placeholder {
    color: #aaa;
    transition: color 0.3s ease;
}

.modern-search:focus {
    border-color: #8E91F6;
    box-shadow: 0 0 8px #8E91F6;
    background-color: #f6fff9;
}

.modern-search:focus::placeholder {
    color: #8E91F6;
}

.label-today {
    margin-bottom: 15px;
    width: 95%;
    background-color: white;
    color: #b5b5b5;
    text-align: center;
    position: relative;
    display: inline-block;
    padding: 0 25px;
    /* Optional: adds spacing around the content */
}

.label-today::before,
.label-today::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
}

.label-today::after {
    background: linear-gradient(135deg, #b5b5b5, #f5f5f5);
}

.label-today::before {
    left: 0;
    background: linear-gradient(135deg, #f5f5f5, #b5b5b5);
}

.label-today::after {
    right: 0;
}

.arrow-right {
    border-left-color: #FF8261 !important;
}

/* Grouping the button and ellipsis */
.action-button-group {
    align-items: center;
    gap: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Dropdown wrapper */
.custom-dropdown-wrapper {
    position: relative;
    display: none;
}

/* Toggle button */
.custom-dropdown-toggle {
    background: none;
    border: none;
    font-size: 18px;
    padding: 6px 10px;
    cursor: pointer;
    color: #333;
}

/* Dropdown menu */
.custom-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 140px;
    z-index: 1000;
    padding: 5px 0;
    list-style: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Dropdown items */
.custom-dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
}

.custom-dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

.overdue-warning {
    color: #d9534f;
    /* Bootstrap danger red */
    background-color: #f8d7da;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 14px;
    max-width: 100%;
    box-sizing: border-box;
    margin-right: 200px;
}

.overdueText {
    color: #9C1C28 !important;
}

.ignore-toggle {
    color: #8350f6 !important;
}

.statusdiv {
    font-weight: bold !important;
    margin-top: 8px;
    width: 90px !important;
}

.timelineinner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    /* changed from left: 0 */
    width: 15px;
    height: 100%;
    margin-left: 10px;
    /* optional spacing from content */
    border-top-right-radius: 10px;
    /* changed from left to right */
    border-bottom-right-radius: 10px;
    /* changed from left to right */
    z-index: 1;
}


.timelineinner.status-draft {
    --shadow-color: #B4B6F8;
}


.timelineinner.status-draft::before {
    background: linear-gradient(135deg, var(--shadow-color), var(--shadow-color));
}

.timelineinner.status-submitted {
    --shadow-color: #8350F6;
}

.timelineinner.status-submitted::before {
    background: linear-gradient(135deg, var(--shadow-color), var(--shadow-color)) !important;
    /* blue for draft/submitted */
}

.timelineinner.status-amendments.required,
.timelineinner.status-incomplete {
    --shadow-color: #FAC94C;
}

.timelineinner.status-amendments.required::before,
.timelineinner.status-incomplete::before {
    background: linear-gradient(135deg, var(--shadow-color), var(--shadow-color));
    /* yellow for amendments required/incomplete */
}

.timelineinner.status-rejected {
    --shadow-color: #A3A3A3;
}

.timelineinner.status-rejected::before {
    background: linear-gradient(135deg, var(--shadow-color), var(--shadow-color));
    /* grey for rejected */
}

.timelineinner.status-approved,
.timelineinner.status-completed {
    --shadow-color: #27CC81;
}

.timelineinner.status-approved::before,
.timelineinner.status-completed::before {
    background: linear-gradient(135deg, var(--shadow-color), var(--shadow-color));
    /* green for approved/completed */
}

.timelineinner:has(.dates span[style*="color: red"]) {
    --shadow-color: #9C1C28;
}

.timelineinner:has(.dates span[style*="color: red"])::before {

    background: linear-gradient(135deg, var(--shadow-color), var(--shadow-color));
    /* red for overdue */
}


.expand-details {
    margin-left: 10px;
}


.fa-question-circle::before {
    font-size: 30px;
    /* or larger, e.g., 24px, 32px */
}


.fa-question-circle {
    vertical-align: top;
}

.fa-question-circle:hover {
    color: #FFA48C !important;
    /* reverse gradient on hover */
    transform: translateY(-1px);
}

.fa-angle-up,
.fa-angle-down,
.fa-angle-double-down {
    display: none !important;
}


/* ----------------------------------------------------
   EXTRA SMALL DEVICES (Phones)
   Portrait phones, small devices
   0px – 575px
---------------------------------------------------- */
@media (max-width: 575px) {

    /* Small phones */
    #tabTimeLine {
        width: 390px !important;
    }

    .left-group {
        flex-direction: column !important;
    }

    .left-group input.modern-search {
        width: 300px !important;
    }

    .right-group{
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    #searchclear::before {
        left: 127px;
        transform: translateY(-230%);
    }

    .timelineHeaders {
        display: none;
    }

    .timelineinner{
        width: 275px !important;
        margin-left: 20px !important;
    }

    .timecontent>.row>.col-md-3 {
        margin-left: 10px !important;
    }

    .datediv{
        display: none !important;
    }

    .statusdiv{    
        padding-left: 50px !important;
        padding-right: 50px !important;
        margin-left: -20px !important;
    }

    .pull-right:has(.show) {
        right: 38% !important;
    }

    .label-today{
        margin-left: -20px !important;
    }
}

/* ----------------------------------------------------
   SMALL DEVICES (Large Phones)
   Landscape phones and larger
   576px – 767px
---------------------------------------------------- */
@media (min-width: 576px) and (max-width: 767px) {

    /* Large phones / small tablets */
    #tabTimeLine {
        width: 390px !important;
    }
}

/* ----------------------------------------------------
   MEDIUM DEVICES (Tablets)
   Tablets, iPads (portrait & landscape)
   768px – 991px
---------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991px) {

    /* Tablets */
    .timelineinner {
        margin-left: 0px !important;
        margin-top: 0px !important;
        width: 94% !important;
    }

    .left-group input.modern-search {
        width: 150px !important;
    }

    #searchclear::before {
        left: -28px !important;
        transform: translateY(-61%) !important;
    }

    .timelineHeaders thead tr {
        grid-template-columns: 34% 17% 23% 10% !important;
    }

    .timecontent>.row>.col-md-5 {
        width: 35% !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
    }

    .timecontent>.row>.datediv {
        width: 10% !important;
        padding-right: 10px !important;
        padding-left: 0 !important;
        font-size: 10px !important;
    }

    .timecontent>.row>.col-md-3 {
        width: 30% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .timecontent>.row>.col-md-3>.dates {
        font-size: 10px !important;
    }

    .dates>table>tbody>tr>td:first-child {
        width: 70% !important;
    }

    .dates>table>tbody>tr>td:nth-child(2) {
        width: 30% !important;
    }


    .timecontent>.row>.statusdiv {
        padding-left: 0 !important;
    }
}

/* ----------------------------------------------------
   LARGE DEVICES (Laptops / Small Desktops)
   Standard laptops and desktops
   992px – 1199px
---------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {

    /* Laptops */
    .timelineinner {
        margin-left: 0px !important;
        margin-top: 0px !important;
        width: 95% !important;
    }

    .timecontent>.row>.col-md-5 {
        width: 35% !important;
    }

    .timecontent>.row>.datediv {
        width: 10% !important;
        padding-right: 0 !important;
    }

    .timecontent>.row>.col-md-3 {
        width: 32% !important;
        padding-right: 0 !important;
    }

    .timecontent>.row>.statusdiv {
        padding-left: 0 !important;
    }

    .timelineHeaders thead tr {
        grid-template-columns: 39% 13% 26% 10% !important;
    }

    .left-group input.modern-search {
        width: 200px !important;
    }
}

/* ----------------------------------------------------
   EXTRA LARGE DEVICES (Desktops)
   Large desktops and monitors
   1200px – 1399px
---------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1399px) {

    /* Desktops */
    .timelineinner {
        margin-left: 0px !important;
        margin-top: 0px !important;
        width: 96% !important;
    }
}

/* ----------------------------------------------------
   XXL DEVICES (Ultra‑wide & 4K Screens)
   Very large screens
   1400px and up
---------------------------------------------------- */
@media (min-width: 1400px) {

    /* Ultra-wide monitors */
    .timelineinner {
        margin-left: 0px !important;
        margin-top: 0px !important;
        width: 96% !important;
    }
}


/*
@media (max-width: 900px) {
    div[style*="text-align: right"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 20px !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .modern-search {
        width: 90% !important;
        max-width: none !important;
        margin-bottom: 8px !important;
        position: relative !important;
        left: 5% !important;
        height: 50px !important;
    }


    .modern-btn {
        width: 60% !important;
        height: 30px;
        justify-content: center !important;
        margin-bottom: 8px !important;
        left: 15%;
        position: relative;
        font-size: 15px;
    }

    .datediv {
        font-size: 10px !important;
        position: relative !important;
        top: -10px !important;
        margin-bottom: 0 !important;
    }

    #MsgLink,
    #OverdueLink,
    .fa-question-circle {
        margin-top: 8px !important;
    }

}

@media(max-width: 600px){
    .overdue-warning {
        margin-left: 50px !important;
        margin-right: 0px !important;
    }
}


@media (max-width: 767px) {
    #searchclear::before {
        position: absolute;
        right: 15px;
        left: 275px !important;
        transform: translateY(-400%);
        color: #707070;
    }

    .btn-sm.show {
        position: relative;
        left: 5%;
        font-size: 15px;
    }

    .pull-right:has(.show) {
        right: 40% !important;
    }

    .overdue-warning {
        margin-left: 120px;
        margin-right: 0px;
    }
}

@media (min-width: 767px) and (max-width: 900px) {
    #searchclear::before {
        position: absolute;
        right: 15px;
        left: 550px;
        transform: translateY(-400%);
        color: #707070;
    }

    .overdue-warning {
        margin-right:0px;
        margin-left: 200px;
    }
}

@media (min-width: 901px) and (max-width: 990px) {
    .overdue-warning {
        margin-right:50px;
    }
}

@media (min-width: 991px) and (max-width: 1199px) {
    .overdue-warning {
        margin-right:90px;
    }
}

@media (max-width: 1199px) {
    .arrow-right {
        width: 0px;
        height: 0px;
        border-top: 13px solid transparent !important;
        border-bottom: 13px solid transparent !important;
        border-left: 20px solid #FF8261 !important;
        margin-left: 40px !important;
        margin-top: -29px !important;
    }

    .label-today {
        width: 40px !important;
        height: 26px !important;
    }


    .dates>table>tbody>tr>td:first-child {
        width: 60% !important;
    }

    .dates>table>tbody>tr>td:nth-child(2) {
        width: 40% !important;
    }
}

@media (min-width: 1199px) {
    .timelineinner {
        width: 95% !important;
        margin-right: 10px !important;
    }

    .ticon {
        margin-right: -45px !important;
    }
}*/