.controls.cmsmc_main_page {
    padding-top: 40px;
}
.controls.cmsmc_main_page .col-md-6 h4 {
    padding-bottom: 20px;
}
.controls.cmsmc_main_page .col-md-6 a.btn {
    margin-top: 30px;
}
.controls.cmsmc_main_page .col-md-6 img {
    border: none;
    width: 150px;
    margin: auto;
    display: block;
}
.container.moveicon_top_add_article h4.panel-heading {
    padding-left: 0px;
}
.container.moveicon_top_add_article button {
    margin-top: 80px;
}
.moveicon_top_index_article table.table {
    margin-top: 20px;
}
form.label-del button,
form.article-del button,
form.user-del button,
form.role-del button,
form.permission-del button {
    background: none;
    border: none;
    color: red;
}
.card-footer.py-4 {
    text-align: right;
}
span.select2.select2-container.select2-container--default {
    width: 100% !important;
}
form.form-inline.labels-filter span.select2.select2-container.select2-container--default {
    width: 180px !important;
}
.card {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
}
.card-img-top {
    width: 100%;
    border-top-left-radius: calc(.25rem - 1px);
    border-top-right-radius: calc(.25rem - 1px);
}
.card.article_report .card-body {
    padding: 10px;
}
.card.article_report {
    margin-top: 20px;
}
a.navbar-brand {
    float: none;
}
a.navbar-brand img.logo-cms {
    width: 150px;
}
.navbar-right li.dropdown {
    margin-top: 25px;
}
.container.mc-outreach-form {
    margin-bottom: 40px;
}
.card.article_report p {
    text-align: center;
    padding-top: 12px;
}
p.colorlabel {
    color: white;
    text-align: center;
}
.main-menu-mcms {
    margin-top: 25px;
    padding-left: 50px;
}
.admin-movicon-actions a {
    padding-right: 5px;
}
.admin-movicon-actions {
    display: flex;
}
.cmsmc_404_page img {
    border: none;
}
.moveicon_cms_add_role {
    margin-bottom: 100px;
}

.timeline-date-col {
    width: 120px;
    color: black;
    font-size: 12px;
}
.timeline-total-col {
    font-size: 12px;
    color: black;
}
.timeline-hour {
    display: inline-block;
    width: 60px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}
.timeline-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: #28a745;
    border-radius: 4px;
    z-index: 2;
    color: white;
    font-size: 10px;
    text-align: center;
    line-height: 15px;
    height: 100%;
}
.timeline-checkout {
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: #dc3545; 
    z-index: 3;
}
.timeline-wrapper {
    position: relative;
    height: 15px;
}
.timeline-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #bed9f3;
    z-index: 1;
}
.d-flex.timeline-header .timeline-hour {
    color: white;
    font-size: 12px;
    text-align: center;
}
.d-flex.timeline-header.mb-2 {
    margin-top: 28px;
    background: #38ac36c7;
}
.timeline-minutes {
    display: inline-block;
    width: 100%;
    font-weight: 600;
}

/* Cumulative timeline row */
.cumulative-timeline {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
}
.cumulative-timeline .timeline-wrapper {
    position: relative;
    height: 20px;
}
.cumulative-timeline .timeline-bg {
    background-color: #a0c4ff;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    border-radius: 4px;
}
.cumulative-timeline .timeline-bar {
    background-color: #007bff;
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 4px;
    z-index: 2;
    color: white;
    font-size: 12px;
    text-align: center;
    line-height: 20px;
}
.cumulative-timeline .timeline-minutes {
    display: inline-block;
    width: 100%;
}
.cumulative-timeline .timeline-date-col,
.cumulative-timeline .timeline-total-col {
    font-weight: bold;
    font-size: 12px;
    color: black;
}

/* Hour overlay lines */
.timeline-hour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}
.timeline-hour-overlay .timeline-hour-line {
    display: inline-block;
    width: 60px;
    text-align: center;
    font-size: 10px;
    color: rgba(0,0,0,0.15);
    border-left: 1px solid rgba(0,0,0,0.1);
    height: 100%;
    vertical-align: top;
    position: relative;
}
.timeline-hour-overlay .timeline-hour-line:first-child {
    border-left: none;
}

/* Status badges */
.timeline-status-col span {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}
.timeline-status-col span:contains('Present') {
    background: #28a745;
    color: white;
}
.timeline-status-col span:contains('Absent') {
    background: #dc3545;
    color: white;
}
.timeline-status-col span:contains('Off') {
    background: #6c757d;
    color: white;
}

/* Off-day */
.off-day {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
}
.timeline-row.off-day {
    background-color: #f8d7da !important;
    color: #721c24;
}

/* Flex utilities */
.flex-grow-1.d-flex,
.timeline-hour-overlay.d-flex {
    display: flex;
}

/* Weekly Totals Card */
.weekly-totals {
    background: #f0f8ff;
    border: 1px solid #b0c4de;
    padding: 15px;
    border-radius: 6px;
    max-width: 650px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.weekly-totals h5 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}
.weekly-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.weekly-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 5px;
    font-size: 13px;
    transition: background 0.3s, color 0.3s;
    cursor: default;
}
.week-full {
    background-color: #d4edda;
    color: #155724;
}
.week-partial {
    background-color: #fff3cd;
    color: #856404;
}
.week-none {
    background-color: #f8d7da;
    color: #721c24;
}
.weekly-item:hover {
    background: #cce5ff;
}
.week-range {
    flex: 2;
    font-weight: 500;
}
.week-hours {
    flex: 1;
    text-align: center;
    font-weight: 600;
}
.week-summary {
    flex: 3;
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: #333;
}
.week-summary span {
    text-align: center;
    font-weight: 500;
}

/* Tooltip for missing hours */
.weekly-item[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    top: -28px;
    white-space: nowrap;
    z-index: 10;
}

/* Small responsive adjustments */
@media(max-width: 576px) {
    .weekly-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .week-summary {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .week-summary span {
        margin-right: 10px;
        margin-top: 4px;
    }
}

/* Updated: timeline-minutes now shows decimal hours correctly */
.timeline-minutes.decimal::after {
    content: attr(data-hours) 'h';
}
