﻿/* ============================================= */
/* ORIGINAL STYLES (LIGHT MODE) - UNCHANGED      */
/* ============================================= */

.container {
    display: flex;
    flex-flow: wrap;
    overflow: visible;
    box-sizing: border-box;
    width: calc(100% + 20px);
    max-width: 100vw;
    min-height: calc(100% + 30px);
    border-radius: 12px;
    gap: 10px;
    justify-content: space-around;
}

.containerTD {
    vertical-align: top;
}

.contentDiv {
    border-style: solid;
    border-width: 1px;
    border-color: rgb(223, 223, 223);
    background-color: rgb(255, 255, 255);
    width: 300px;
    height: 300px;
    cursor: pointer;
}

    .contentDiv:hover {
        box-shadow: 3px 2px 10px rgba(0,0,0,0.1);
    }

.contentChart {
    width: 299px;
    overflow: hidden;
    border-color: rgb(223, 223, 223);
    background-color: rgb(255, 255, 255);
    min-width: 140px;
    border-top: 1px solid lightgray;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .contentChart:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

.workitem {
    line-height: 22px;
    overflow: hidden;
    font-size: 12px;
    padding-left: 6px;
}

.dataGroup {
    position: relative;
}

    .dataGroup fieldset {
        *padding: 0;
        border: 0 none;
    }

.RadForm.rfdFieldset table.rfdRoundedWrapper_fieldset fieldset,
.RadForm.rfdFieldset fieldset {
    border: 0 none !important;
}

.dataGroup fieldset .menu_img {
    position: absolute;
    left: 5px;
    top: 10px;
    max-height: 16px;
    max-width: 16px;
    vertical-align: middle;
    padding-right: 5px;
}

.dataGroup fieldset legend {
    width: 97%;
    height: 28px;
    *margin: 0 0 20px -7px;
    padding-right: 0;
    padding-left: 18px;
    line-height: 35px;
    font-size: 13px;
    border-bottom: 1px solid #cecdf0;
}

.rlvI {
    float: left;
    margin: 2px;
    overflow: hidden;
    border: 1px solid #F4F4F4;
}

    .rlvI:hover {
        box-shadow: 0 0 5px #0078d7;
        border-radius: 4px;
        transition: box-shadow 1.0s;
        transition: border-radius 1.0s;
    }

    .rlvI .cat {
        line-height: 22px;
        overflow: hidden;
        font-size: 10px;
    }

.tile {
    float: left;
    padding: 2px;
    cursor: pointer;
}

.actionItem {
    display: flex;
    align-items: center;
    padding-right: 2px;
    padding-bottom: 5px;
    padding-top: 5px;
    width: 294px;
    text-decoration: none;
    cursor: pointer;
    color: black;
    border-bottom: 0px solid #F4F4F4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .actionItem:hover {
        border: 1px solid #F4F4F4;
        color: green;
        box-shadow: 0 0 5px #0078d7;
        border-radius: 2px;
        transition: box-shadow 0.2s;
    }

.workflowItem {
    display: flex;
    align-items: center;
    padding-right: 2px;
    padding-bottom: 5px;
    padding-top: 5px;
    width: 294px;
    text-decoration: none;
    color: black;
    border-bottom: 0px solid #F4F4F4;
}

.top {
    vertical-align: top;
}

.fav {
    float: right;
    padding: 2px;
    color: lightgray;
}

    .fav:hover {
        color: #f3c103 !important;
    }

.favgroup {
    color: orange;
}

.subMenu {
    text-decoration: none;
    color: black;
}

    .subMenu:hover {
        font-weight: bold;
        color: #0078d7;
        transition: color 1.0s;
    }

.sectionImage {
    max-height: 20px;
    max-width: 20px;
}

.menu_img2 {
    max-height: 16px;
    max-width: 16px;
}

.disabled {
    color: gray;
    font-style: italic;
    pointer-events: none;
    cursor: not-allowed;
}

.btnSearch {
    background-color: #fff;
    vertical-align: bottom;
    cursor: pointer;
    height: 25px;
    text-align: center;
    border-radius: 2px;
}

    .btnSearch:hover {
        transition: background-color .5s;
        background-color: DodgerBlue;
    }

.dvDashbaord {
    color: White;
    background-color: DodgerBlue;
    border-width: 1px;
    border-style: solid;
    padding: 8px;
    cursor: pointer;
    margin: 1px;
    width: 80px;
    text-align: center !important;
}

    .dvDashbaord:hover {
        transition: background-color .5s;
        background-color: #0071E1;
        border-color: darkgray;
    }

.counterTitle {
    padding: 0 !important;
    font-size: 10px !important;
    margin: 0 !important;
}

.counterValue {
    font-size: 22px !important;
    padding: 0 2px 2px 5px;
    font-weight: 200 !important;
}

.widget-description {
    line-height: 13px;
    height: 9px !important;
}

.widget-preview-image {
    max-height: 24px !important;
}

.iDate {
    font-size: 9px;
    text-align: center;
    width: 20px;
    padding: 3px;
    background-color: #d3f3f8;
    border: 1px solid powderblue;
    margin: 4px;
}

.tblDates {
    border-collapse: collapse;
    border-spacing: 0;
    padding: 1px;
    border: none;
}

.colDate {
    vertical-align: top;
    border-bottom: 1px solid lightgray;
}

.iEventDesc {
    font-size: 11px;
    color: #212121 !important;
    padding: 0 0 0 0;
}

.dateList-Item {
    font-size: 11px !important;
}

.imageList-name {
    font-size: 12px !important;
}

    .imageList-name .awhite {
        text-decoration: none !important;
    }

.sectionHeadingImg {
    max-height: 16px;
    max-width: 16px;
}

.heading {
    display: block;
    flex-flow: row;
    width: auto;
    height: 60px;
    box-sizing: border-box;
    align-items: center;
    background-color: rgb(243, 242, 241);
}

.card {
    background-color: rgb(255, 255, 255);
    border-style: solid;
    border-width: 1px;
    border-color: rgb(223, 223, 223);
    border-radius: 12px;
    margin: 2px;
    width: 300px;
    max-width: 90vw;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cardBig {
    background-color: rgb(255, 255, 255);
    border-style: solid;
    border-width: 1px;
    border-color: rgb(223, 223, 223);
    border-radius: 12px;
    margin: 2px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heading {
    display: block;
    flex-flow: row;
    width: auto;
    height: 60px;
    box-sizing: border-box;
    align-items: center;
    background-color: rgb(243, 242, 241);
    border-color: rgb(223, 223, 223);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.headingHeader {
    display: flex;
    position: relative;
    align-items: center;
    height: 60px;
}

.headingTitle {
    width: 200px;
    display: flex;
    align-items: center;
}

.fxcIcon {
    font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 13px;
    font-weight: 400;
    overflow: hidden;
    animation-name: css-1;
    animation-duration: 0.367s;
    animation-timing-function: cubic-bezier(0.1, 0.25, 0.75, 0.9);
    animation-fill-mode: both;
    padding-left: 20px;
    height: 25px;
    width: 25px;
    display: flex;
    align-items: center;
}

.fxcCategoryNameText {
    font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    font-weight: 400;
    color: rgb(41, 40, 39);
    display: inline;
    padding-left: 10px;
    float: left;
}

.fxcScoreContainer {
    position: absolute;
    top: 0px;
    right: 16px;
    display: flex;
    align-items: center;
    height: 60px;
}

.fxcScoreVerticalBarGreen {
    background-color: rgb(16, 124, 16);
    height: 40px;
    width: 6px;
    margin-right: 5px;
}

.fxcScoreVerticalBarOrange {
    background-color: rgb(255, 140, 0);
    height: 40px;
    width: 6px;
    margin-right: 5px;
}

.fxcScoreVerticalBarRed {
    background-color: rgb(221 11 11);
    height: 40px;
    width: 6px;
    margin-right: 5px;
}

.fxcScoreLabel {
    font-weight: 100;
    font-size: 13px;
    padding-bottom: 5px;
}

.fxcScore {
    display: flex;
}

.fxcScorePercentage {
    float: left;
    font-weight: 600;
    font-size: 20px;
    margin-right: 2px;
    margin-top: -5px;
}

.fxcPercentSymbol {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    padding-top: 8px;
}

.fxcItemDetailContainer {
    width: 300px;
    /*height: 265px;*/
    align-items: flex-start;
    display: flex;
    text-align: left;
    flex-grow: 1;
    margin-bottom: 10px;
}

.fxcItemDetailContainerBig {
    width: 300px;
    min-height: 200px;
    align-items: flex-start;
    display: flex;
    text-align: left;
    margin-bottom: 10px;
}

.fxcNoRecommendationContainer {
    width: 300px;
    height: 230px;
    align-items: center;
    display: flex;
    text-align: center;
}

.css-189 {
    display: flex;
    flex-flow: column;
    width: auto;
    height: auto;
    box-sizing: border-box;
    overflow-y: auto;
}

.fxcNoRecommendationText {
    padding-top: 10px;
    width: 280px;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 13px;
}

.fxcImpactedResourcesCount {
    display: flex;
    flex-flow: row;
    width: auto;
    height: 50px;
    box-sizing: border-box;
    border-top: 1px solid rgb(223, 223, 223);
    align-items: center;
    padding-left: 20px;
}

.RadProgressBar.rpbHorizontal {
    width: 100% !important;
}

.user-card {
    height: 100%;
    background-color: #f3f2f1;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .user-card:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

.user-card-header {
    display: flex;
    align-items: center;
}

.user-card-image {
    border-radius: 12px;
    height: 100px;
    max-width: 100px;
    object-fit: cover;
    margin-right: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .user-card-image:hover {
        transform: scale(1.4);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

.user-card-info {
    display: flex;
    flex-direction: column;
}

.user-card-name {
    color: var(--header);
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.user-card-job-title,
.user-card-department,
.user-card-location,
.user-card-empno {
    font-size: 12px;
    margin: 2px 0;
    margin-bottom: 5px;
}

.user-card-body {
    flex-grow: 1;
    font-size: 12px;
    margin-bottom: 20px;
}

.user-card-birthday,
.user-card-leave-balance,
.user-card-contact-details,
.user-card-manager-name {
    margin-bottom: 5px;
}

.user-card-footer {
    display: flex;
    justify-content: space-between;
}

.user-card-button {
    background-color: var(--subheader1);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

    .user-card-button:hover {
        background-color: var(--subheader2);
    }

.hrf-important-dates-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #6a11cb 0%, #ff8a00 100%);
    color: white;
    font-size: 17px;
    font-weight: 600;
    flex-shrink: 0;
}

    .hrf-important-dates-card .card-header .icon {
        width: 26px;
        height: 26px;
        filter: brightness(0) invert(1);
    }

.hrf-important-dates-card .card-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 5px;
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 transparent;
}

    .hrf-important-dates-card .card-body::-webkit-scrollbar {
        width: 6px;
    }

    .hrf-important-dates-card .card-body::-webkit-scrollbar-thumb {
        background: #c0c0c0;
        border-radius: 3px;
    }

.hrf-important-dates-card .date-row {
    display: flex;
    gap: 6px;
    margin-bottom: 3px;
    align-items: flex-start;
    margin-top: 2px;
}

.hrf-important-dates-card .day-box {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.2;
    margin-left: 5px;
}

    .hrf-important-dates-card .day-box span {
        font-size: 10px;
        text-transform: uppercase;
        font-weight: normal;
    }

.hrf-important-dates-card .event-text {
    flex: 1;
    font-size: 11px;
    line-height: 1.45;
    color: #444;
    padding-top: 3px;
}

    .hrf-important-dates-card .event-text.holiday {
        color: #d32f2f;
        font-weight: 600;
    }

.hrf-important-dates-card .card-more {
    text-align: center;
    padding: 8px 0 4px;
    color: #777;
    font-style: italic;
    font-size: 13px;
    flex-shrink: 0;
}

.hrf-important-dates-card .card-footer {
    padding: 12px 18px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: right;
    flex-shrink: 0;
}

/* ============================================= */
/* DARK MODE STYLES (matches hrf.copilot.v1.css) */
/* ============================================= */

.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}

    .dark-mode .container,
    .dark-mode .containerTD,
    .dark-mode .contentDiv,
    .dark-mode .contentChart,
    .dark-mode .card,
    .dark-mode .cardBig,
    .dark-mode .rlvI,
    .dark-mode .tile,
    .dark-mode .user-card,
    .dark-mode .heading,
    .dark-mode .hrf-important-dates-card {
        background-color: #1e2937;
        border-color: #475569;
    }

    .dark-mode .contentDiv {
        background-color: #334155;
        border-color: #475569;
    }

        .dark-mode .contentDiv:hover {
            box-shadow: 3px 2px 10px rgba(0,0,0,0.3);
        }

    .dark-mode .contentChart {
        background-color: #1e2937;
        border-top-color: #475569;
    }

        .dark-mode .contentChart:hover {
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
        }

    .dark-mode .workitem,
    .dark-mode .rlvI .cat,
    .dark-mode .actionItem,
    .dark-mode .workflowItem,
    .dark-mode .subMenu,
    .dark-mode .iEventDesc,
    .dark-mode .dateList-Item,
    .dark-mode .imageList-name {
        color: #cbd5e1;
    }

    .dark-mode .actionItem {
        color: #e2e8f0;
        border-bottom-color: #475569;
    }

        .dark-mode .actionItem:hover {
            border-color: #6366f1;
            color: #a3e635;
            box-shadow: 0 0 5px #6366f1;
        }

    .dark-mode .workflowItem {
        color: #e2e8f0;
    }

    .dark-mode .dataGroup fieldset legend {
        border-bottom-color: #475569;
        color: #cbd5e1;
    }

    .dark-mode .rlvI {
        border-color: #475569;
        background-color: #334155;
    }

        .dark-mode .rlvI:hover {
            box-shadow: 0 0 5px #6366f1;
        }

    .dark-mode .fav {
        color: #64748b;
    }

        .dark-mode .fav:hover {
            color: #f3c103 !important;
        }

    .dark-mode .favgroup {
        color: #fbbf24;
    }

    .dark-mode .subMenu {
        color: #cbd5e1;
    }

        .dark-mode .subMenu:hover {
            color: #6366f1;
        }

    .dark-mode .btnSearch {
        background-color: #334155;
        color: #e2e8f0;
        border-color: #475569;
    }

        .dark-mode .btnSearch:hover {
            background-color: #6366f1;
        }

    .dark-mode .dvDashbaord {
        background-color: #6366f1;
        border-color: #4f46e5;
        color: white;
    }

        .dark-mode .dvDashbaord:hover {
            background-color: #4f46e5;
            border-color: #818cf8;
        }

    .dark-mode .iDate {
        background-color: #1e2937;
        border-color: #475569;
        color: #e2e8f0;
    }

    .dark-mode .tblDates,
    .dark-mode .colDate {
        border-bottom-color: #475569;
    }

    .dark-mode .iEventDesc {
        color: #cbd5e1 !important;
    }

    .dark-mode .heading {
        background-color: #0f172a;
        border-color: #475569;
    }

    .dark-mode .headingTitle,
    .dark-mode .fxcCategoryNameText {
        color: #f1f5f9;
    }

    .dark-mode .fxcIcon,
    .dark-mode .fxcScoreLabel {
        color: #cbd5e1;
    }

    .dark-mode .fxcScorePercentage,
    .dark-mode .fxcPercentSymbol {
        color: #f8fafc;
    }

    .dark-mode .fxcItemDetailContainer,
    .dark-mode .fxcItemDetailContainerBig,
    .dark-mode .fxcNoRecommendationContainer {
        background-color: #1e2937;
    }

    .dark-mode .fxcNoRecommendationText {
        color: #94a3b8;
    }

    .dark-mode .fxcImpactedResourcesCount {
        border-top-color: #475569;
        color: #cbd5e1;
    }

    .dark-mode .user-card {
        background-color: #1e2937;
    }

    .dark-mode .user-card-name,
    .dark-mode .user-card-job-title,
    .dark-mode .user-card-department,
    .dark-mode .user-card-location,
    .dark-mode .user-card-empno,
    .dark-mode .user-card-birthday,
    .dark-mode .user-card-leave-balance,
    .dark-mode .user-card-contact-details,
    .dark-mode .user-card-manager-name {
        color: #e2e8f0;
    }

    .dark-mode .user-card-button {
        background-color: #6366f1;
    }

        .dark-mode .user-card-button:hover {
            background-color: #4f46e5;
        }

    .dark-mode .hrf-important-dates-card .card-header {
        background: linear-gradient(135deg, #4f46e5, #06b6d4);
    }

    .dark-mode .hrf-important-dates-card .day-box {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }

    .dark-mode .hrf-important-dates-card .event-text {
        color: #cbd5e1;
    }

        .dark-mode .hrf-important-dates-card .event-text.holiday {
            color: #f87171;
        }

    .dark-mode .hrf-important-dates-card .card-more {
        color: #94a3b8;
    }

    .dark-mode .hrf-important-dates-card .card-footer {
        background: #0f172a;
        border-top-color: #475569;
    }

    .dark-mode .RadProgressBar.rpbHorizontal {
        background-color: #334155;
    }

    .dark-mode .disabled {
        color: #64748b;
    }

    .dark-mode .menu_img2,
    .dark-mode .sectionImage,
    .dark-mode .sectionHeadingImg {
        filter: brightness(0) invert(0.8);
    }

/* Remove white background from all dynamic panel content divs */
div[id$="_pnlContent"] {
    background-color: transparent !important;
}

.dark-mode span[id$="_lblValue"],
.dark-mode span[id$="_lblHeader"],
.dark-mode span[id$="_lblFooter"] {
    color: #e2e8f0 !important;
}

/* Telerik Grid Rows - Dark Mode */
.dark-mode .rgRow,
.dark-mode .rgAltRow {
    background-color: #1e2937 !important;
    color: #e2e8f0 !important;
}

    .dark-mode .rgRow a,
    .dark-mode .rgAltRow a,
    .dark-mode .rgRow .awhite,
    .dark-mode .rgAltRow .awhite {
        color: #93c5fd !important;
        text-decoration: none;
    }

        .dark-mode .rgRow a:hover,
        .dark-mode .rgAltRow a:hover,
        .dark-mode .rgRow .awhite:hover,
        .dark-mode .rgAltRow .awhite:hover {
            color: #60a5fa !important;
            text-decoration: underline;
        }

/* Optional: alternate row subtle difference (if needed) */
.dark-mode .rgAltRow {
    background-color: #2d3a4f !important;
}

/* Telerik Grid Header - Dark Mode */
.dark-mode .rgHeader {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: #475569 !important;
    font-weight: bold;
}

/* Make widget-container rows behave like .workitem */
.widget-container,
tr.widget-container {
    display: table-row;
    width: 100%;
}

    .widget-container td,
    tr.widget-container td {
        padding: 4px 4px;
        font-size: 12px;
        line-height: 22px;
        color: inherit;
        transition: background 0.2s ease;
    }

    /* Light mode */
    .widget-container td {
        background-color: #ffffff;
        color: #000000;
    }

    .widget-container:hover td {
        background-color: #f8f9fa;
    }

/* Dark mode */
.dark-mode .widget-container td {
    background-color: #1e2937;
    color: #e2e8f0;
}

.dark-mode .widget-container:hover td {
    background-color: #334155;
}

/* Optional: rounded corners for first and last cell if needed */
.widget-container:first-child td:first-child {
    border-top-left-radius: 8px;
}

.widget-container:first-child td:last-child {
    border-top-right-radius: 8px;
}

.widget-container:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.widget-container:last-child td:last-child {
    border-bottom-right-radius: 8px;
}