/* ==========================================================================
   My Desklog (admin) - Work/Task figures in the dashboard style.
   Only the left figures (At Work / Task Spent / Billable Hour, or Productive /
   Focus) are restyled; the chart and header keep My Desklog's own look.
   Scoped to .wt-mx, which common/work_task_barChart.blade.php adds on
   /admin/my_desklog, /admin/view_employee and the user My Desklog. Values match dashboard-worktask.css.
   ========================================================================== */

@font-face {
    font-family: "Poppins TM Label";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.wt-mx {
    --wt-ink: #1f2a33;
    --wt-muted: #5f6b75;
    --wt-line: #e6ebef;
    --wt-up-bg: #eef6dc;
    --wt-up-ink: #3f6212;
    --wt-down-bg: #fdecec;
    --wt-down-ink: #b42318;
    --wt-font: "Poppins", sans-serif;
    --wt-font-strong: "Poppins TM Label", "Poppins", sans-serif;
    --wt-work: #81B504;
    --wt-task: #045ba0;
    --wt-billable: #049fb5;
    --wt-productive: #0489a0;
    --wt-focus: #0474a0;
}

.dark-mode .wt-mx {
    --wt-ink: #e6edf1;
    --wt-muted: #8b98a1;
    --wt-line: #0b2c40;
    --wt-up-bg: rgba(129, 181, 4, .14);
    --wt-up-ink: #a3cf4a;
    --wt-down-bg: rgba(240, 68, 56, .14);
    --wt-down-ink: #f97066;
    --wt-work: #8fc31a;
    --wt-task: #3b8fd6;
    --wt-billable: #22b8cc;
    --wt-productive: #22a9c0;
    --wt-focus: #3a9bc8;
}

.wt-mx .work_task_rprt_box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 150px;
    width: 150px;
    max-width: none;
}

.wt-mx .work_task_rprt_box_cnt {
    display: block;
    width: 100%;
    margin: 0;
    padding: 22px 0;
}

.wt-mx .work_task_rprt_box_cnt:first-child { padding-top: 0; }
.wt-mx .work_task_rprt_box_cnt:last-child { padding-bottom: 0; }

.wt-mx .work_task_rprt_box_cnt + .work_task_rprt_box_cnt {
    border-top: 1px solid var(--wt-line);
}

.wt-mx .work_task_rprt_box_cnt p {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0 0 4px;
    font-family: var(--wt-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    color: var(--wt-muted);
    white-space: nowrap;
}

.wt-mx .wt-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--wt-dot, var(--wt-work));
}

.wt-mx .wt-dot--work       { --wt-dot: var(--wt-work); }
.wt-mx .wt-dot--task       { --wt-dot: var(--wt-task); }
.wt-mx .wt-dot--billable   { --wt-dot: var(--wt-billable); }
.wt-mx .wt-dot--productive { --wt-dot: var(--wt-productive); }
.wt-mx .wt-dot--focus      { --wt-dot: var(--wt-focus); }

/* Two ids so the inline colours and the per-id !important rules in
   new_theme.css / dark_mode.css give way to one ink colour. */
.wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt h5,
.wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_time_at_work,
.wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_task_spend,
.wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_billable_task,
.wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_productive,
.wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_focus {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    row-gap: 4px;
    width: 100%;
    margin: 0;
    font-family: var(--wt-font-strong);
    font-size: 26px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--wt-ink) !important;
}

.wt-mx .work_task_rprt_box_cnt h5 .wt-unit {
    margin-left: 2px;
    font-family: var(--wt-font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--wt-muted);
}

.wt-mx .work_task_rprt_box_cnt h5 span {
    position: static;
    top: auto;
    align-self: center;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: transparent !important;
    font-family: var(--wt-font);
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0;
    color: var(--wt-muted);
    opacity: 1 !important;
}

.wt-mx .work_task_rprt_box_cnt h5 span[style*="81B504"],
.wt-mx .work_task_rprt_box_cnt h5 span[style*="81b504"] {
    background-color: var(--wt-up-bg) !important;
    color: var(--wt-up-ink);
}

.wt-mx .work_task_rprt_box_cnt h5 span[style*="F27B7B"],
.wt-mx .work_task_rprt_box_cnt h5 span[style*="f27b7b"] {
    background-color: var(--wt-down-bg) !important;
    color: var(--wt-down-ink);
}

@media (max-width: 767px) {
    .wt-mx .work_task_rprt_box {
        flex: none;
        flex-direction: row;
        width: 100%;
    }

    .wt-mx .work_task_rprt_box_cnt,
    .wt-mx .work_task_rprt_box_cnt:first-child,
    .wt-mx .work_task_rprt_box_cnt:last-child {
        flex: 1 1 0;
        min-width: 0;
        padding: 4px 10px;
        text-align: left;
    }

    .wt-mx .work_task_rprt_box_cnt:first-child {
        padding-left: 0;
    }

    .wt-mx .work_task_rprt_box_cnt + .work_task_rprt_box_cnt {
        border-top: 0;
        border-left: 1px solid var(--wt-line);
    }

    .wt-mx .work_task_rprt_box_cnt p {
        font-size: 12px;
        white-space: normal;
    }

    .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt h5 {
        font-size: 20px;
        line-height: 24px;
    }
}

/* This row's page styles force a system font on every descendant with
   !important; the figures keep the dashboard faces. */
html body .wt-mx .work_task_rprt_box_cnt p,
html body .wt-mx .work_task_rprt_box_cnt h5 .wt-unit,
html body .wt-mx .work_task_rprt_box_cnt h5 span {
    font-family: "Poppins", sans-serif !important;
}

html body .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt h5 {
    font-family: "Poppins TM Label", "Poppins", sans-serif !important;
}

/* --- Chart chrome on the My Desklog card ---------------------------------------
   The left figures carry series markers, so the bottom legend goes (as on the
   dashboard). The per-day At Work labels above the chart were 13px bright green
   (#81B504; dark #55730e) and competed with the line; now quiet, tabular, muted,
   with zero days a step lighter so worked days stand out. */
.wt-mx .work_prj_cm_chart_btm_legnd {
    display: none !important;
}

html body .wt-mx .workTask_box_top_time {
    font-family: "Poppins", sans-serif !important;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 16px;
    font-variant-numeric: tabular-nums;
    color: #5b6872 !important;
}

html body .wt-mx .workTask_box_top_time > div {
    font: inherit;
    color: inherit;
}

html body .wt-mx .workTask_box_top_time > div.is-zero {
    font-weight: 400;
    color: #9aa5ad;
}

/* Bar charts (admin dashboard): worktask-chart.js pads this row to the plot and
   adds .is-slotted, so each day's hours take one equal slot over its bars. */
.wt-mx .workTask_box_top_time.is-slotted {
    justify-content: flex-start;
}

.wt-mx .workTask_box_top_time.is-slotted > div {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

html body.dark-mode .wt-mx .workTask_box_top_time {
    color: #9aa7b0 !important;
}

html body.dark-mode .wt-mx .workTask_box_top_time > div.is-zero {
    color: #5e6f7b;
}

/* Figures a step softer than the card ink in both modes (light #34444e ~10:1 on
   white, dark #b9c4cc ~11:1 on the card), matching the dashboard card. */
html body.dark-mode .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt h5,
html body.dark-mode .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_time_at_work,
html body.dark-mode .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_task_spend,
html body.dark-mode .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_billable_task,
html body.dark-mode .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_productive,
html body.dark-mode .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_focus {
    color: #b9c4cc !important;
}

/* --- Figures centred on the chart's plot area (desktop) ----------------------
   The chart column keeps a fixed height; the figures get a top offset
   (--wt-mtop, set by worktask-chart.js after each draw) that puts their centre
   on the centre of the plot area, between the top gridline and the 0 line. */
.wt-mx .work_task_main_section {
    align-items: flex-start !important;
}

.wt-mx .work_task_main_section .work_task_rprt_box {
    justify-content: flex-start;
    margin-top: var(--wt-mtop, 0px);
}

.wt-mx .work_task_main_section .workTask_graphbox {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    height: 280px !important;
    min-height: 0 !important;
    margin: 0 !important;
}

html body .wt-mx .workTask_box_top_time {
    flex: none;
    margin: 0 0 6px 0;
    padding-left: 34px;
    width: auto;
}

.wt-mx .wt-mx-plot {
    position: relative;
    flex: 1 1 auto;
    min-height: 150px;
}

.wt-mx .wt-mx-plot canvas {
    position: absolute;
    inset: 0;
}

/* --- Header row -------------------------------------------------------------
   Title and date controls on one centre line. The title was an inline label on
   the baseline of a 30px line box sized for the legend's 21px font, and the
   controls an absolutely positioned 34px flex box centred on its own, so the
   title sat 1.5-2px low. One flex row centres both. Phones keep their stacked
   header. .wt-head gives another dashboard card (At Work) the same header:
   title, centre line and date pill. */
@media (min-width: 768px) {
    .wt-mx .H-selectR,
    .wt-head .H-selectR {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    /* 34px: the height of Work/Task's arrow buttons, so both headers in the
       dashboard row share one centre line. */
    .wt-head .H-selectR {
        min-height: 34px;
        margin-bottom: 8px;
    }

    .wt-mx .H-selectR > legend,
    .wt-head .H-selectR > legend {
        display: flex;
        align-items: center;
        float: none;
        width: auto;
        min-width: 0;
        margin: 0;
        line-height: 20px;
    }

    .wt-mx .H-selectR > legend .fieldset-legend,
    .wt-head .H-selectR > legend .fieldset-legend {
        display: block;
    }

    .wt-head .H-selectR > div.range-picker-right {
        flex: none;
        float: none;
        margin-left: auto;
    }

    /* margin-right keeps the controls where new_theme.css's absolute
       right: -15px put them. */
    .wt-mx .H-selectR > .task_filter_btn {
        position: static;
        flex: none;
        margin-left: auto;
        margin-right: -15px;
    }
}

/* --- Card title on .wt-head ---------------------------------------------------
   Work/Task's title is a legend span inside .panel-body and takes its look from
   new_theme.css (".panel-body legend span": Poppins 500 #58666e, 17px, 14px at
   1450px and under) and dark_mode.css (#ccc). A .wt-head card has no
   .panel-body, so the same values are set here. */
.wt-head .H-selectR > legend {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
    line-height: 20px;
}

.wt-head .H-selectR > legend .fieldset-legend {
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 20px;
    color: #58666e;
}

.dark-mode .wt-head .H-selectR > legend .fieldset-legend {
    color: #ccc;
}

@media (max-width: 1450px) {
    .wt-head .H-selectR > legend .fieldset-legend {
        font-size: 14px;
    }
}

/* --- (i) button + tooltip on .wt-head ----------------------------------------
   The My Desklog Efficiency tile's (mydesklog-effact.css, .ea-info): a 24px
   icon button and an opaque panel that opens below it, 13px Poppins, hairline
   border and soft shadow; shown on hover and keyboard focus, Esc hides it
   (worktask-chart.js). Left-aligned to the icon: the title sits at the card's
   left edge, so the panel opens into the card. */
.wt-head {
    --wt-tip-bg: #ffffff;
    --wt-tip-ink: #1f2a33;
    --wt-tip-line: #e6ebef;
    --wt-tip-shadow: 0 8px 24px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .06);
    --wt-info-ink: #8b98a1;
    --wt-info-hover-bg: #f3f6f8;
    --wt-info-hover-ink: #34444e;
    --wt-info-focus: #045ba0;
    --wt-info-halo: rgba(4, 91, 160, .18);
}

.dark-mode .wt-head {
    --wt-tip-bg: #0b1f2e;
    --wt-tip-ink: #e6edf1;
    --wt-tip-line: #12344a;
    --wt-tip-shadow: 0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35);
    --wt-info-ink: #7d909c;
    --wt-info-hover-bg: #04192a;
    --wt-info-hover-ink: #cfd8de;
    --wt-info-focus: #6aa8dc;
    --wt-info-halo: rgba(106, 168, 220, .22);
}

.wt-head .H-selectR > legend .fieldset-legend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.wt-head .wt-info {
    position: relative;
    display: inline-flex;
    flex: none;
}

.wt-head .wt-info__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--wt-info-ink);
    cursor: help;
    transition: background-color .15s ease, color .15s ease;
}

.wt-head .wt-info__btn svg {
    display: block;
    width: 15px;
    height: 15px;
}

.wt-head .wt-info__btn:hover {
    background: var(--wt-info-hover-bg);
    color: var(--wt-info-hover-ink);
}

.wt-head .wt-info__btn:focus {
    outline: none;
}

.wt-head .wt-info__btn:focus-visible {
    border-color: var(--wt-info-focus);
    box-shadow: 0 0 0 3px var(--wt-info-halo);
    color: var(--wt-info-hover-ink);
}

.wt-head .wt-info__tip {
    position: absolute;
    top: calc(100% + 8px);
    left: -6px;
    z-index: 30;
    box-sizing: border-box;
    width: 260px;
    max-width: calc(100vw - 32px);
    padding: 10px 12px;
    border: 1px solid var(--wt-tip-line);
    border-radius: 6px;
    background: var(--wt-tip-bg);
    box-shadow: var(--wt-tip-shadow);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    color: var(--wt-tip-ink);
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2px);
    transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
    pointer-events: none;
}

/* Hover bridge across the gap so the tip stays while the pointer moves to it. */
.wt-head .wt-info__tip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 10px;
}

.wt-head .wt-info:hover .wt-info__tip,
.wt-head .wt-info__btn:focus-visible + .wt-info__tip {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .12s ease, transform .12s ease;
    pointer-events: auto;
}

.wt-head .wt-info.is-dismissed .wt-info__tip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Above the list rows below the header. */
.wt-head .H-selectR {
    position: relative;
    z-index: 5;
}

/* --- Efficiency / Activity tiles on the admin dashboard (.wt-head.ea-dash) ---
   Top-right: the date pill and the (i) button side by side, replacing the
   absolutely placed text picker and the old fa-info-circle hover tooltip.
   The tooltip opens leftwards from the right edge, into the tile. Change
   chips: the Work/Task tints. The server and the range reload
   (dashboard_ajax.js) both paint them with an inline #81B504 / #F27B7B, which
   is what the attribute selectors key on. */
.wt-head.ea-dash {
    position: relative;
}

/* left: 60px keeps the controls clear of the tile icon (34px from 12px in);
   a label too long for what is left ends in an ellipsis instead of running
   over it. */
.wt-head.ea-dash .ea-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 60px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    pointer-events: none;
}

.wt-head.ea-dash .ea-tools > * {
    pointer-events: auto;
}

.wt-head.ea-dash .ea-tools > div.range-picker-right {
    position: static;
    top: auto;
    right: auto;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.wt-head.ea-dash .ea-tools > div.range-picker-right > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wt-head.ea-dash .ea-tools > .wt-info {
    flex: none;
}

/* Under 1450px the tiles are ~210px wide: the pill drops its calendar glyph
   (the caret still marks it as a picker) so a range label fits. */
@media (max-width: 1450px) {
    .wt-head.ea-dash .ea-tools {
        left: 54px;
    }

    .wt-head.ea-dash .ea-tools > div.range-picker-right {
        padding: 0 8px;
    }

    .wt-head.ea-dash .ea-tools > div.range-picker-right > span {
        font-size: 12px !important;
    }

    .wt-head.ea-dash .ea-tools > div.range-picker-right > .fa-calendar {
        display: none;
    }

    .wt-head.ea-dash .ea-tools > div.range-picker-right > .fa-caret-down {
        margin-left: 6px;
    }
}

/* 1156-1300px: the tiles column is at its narrowest (~160px tiles); a few
   pixels more for the label so "Today" is not cut to "Tod...". */
@media (min-width: 1156px) and (max-width: 1300px) {
    .wt-head.ea-dash .ea-tools {
        left: 50px;
        right: 8px;
        gap: 2px;
    }

    .wt-head.ea-dash .ea-tools > div.range-picker-right {
        padding: 0 6px;
    }

    .wt-head.ea-dash .ea-tools > div.range-picker-right > .fa-caret-down {
        margin-left: 4px;
    }
}

.wt-head.ea-dash .ea-tools .wt-info__tip {
    left: auto;
    right: -4px;
    width: 250px;
}

.wt-head.ea-dash:hover,
.wt-head.ea-dash:focus-within {
    z-index: 20;
}

.wt-head.ea-dash .acteff_content h2 span {
    position: static;
    top: auto;
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0;
    vertical-align: middle;
    opacity: 1 !important;
}

.wt-head.ea-dash .acteff_content h2 span[style*="81B504"],
.wt-head.ea-dash .acteff_content h2 span[style*="81b504"] {
    background-color: #eef6dc !important;
    color: #3f6212;
}

.wt-head.ea-dash .acteff_content h2 span[style*="F27B7B"],
.wt-head.ea-dash .acteff_content h2 span[style*="f27b7b"] {
    background-color: #fdecec !important;
    color: #b42318;
}

.dark-mode .wt-head.ea-dash .acteff_content h2 span[style*="81B504"],
.dark-mode .wt-head.ea-dash .acteff_content h2 span[style*="81b504"] {
    background-color: rgba(129, 181, 4, .14) !important;
    color: #a3cf4a;
}

.dark-mode .wt-head.ea-dash .acteff_content h2 span[style*="F27B7B"],
.dark-mode .wt-head.ea-dash .acteff_content h2 span[style*="f27b7b"] {
    background-color: rgba(240, 68, 56, .14) !important;
    color: #f97066;
}

/* --- Work Report change chips (.wt-head.wr-head) ------------------------------
   The Work/Task tints in place of solid green / red blocks. Painted inline
   with #81B504 / #F27B7B by the server and by the range reload
   (dashboard_ajax.js); a zero change leaves an empty, unpainted span. */
.wt-head.wr-head .working_hr_box h3 .lastday_compare {
    display: inline-block;
    top: -4px;
    margin-left: 6px;
    padding: 2px 6px !important;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    font-size: 11px !important;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0;
    opacity: 1 !important;
}

.wt-head.wr-head .working_hr_box h3 .lastday_compare[style*="81B504"],
.wt-head.wr-head .working_hr_box h3 .lastday_compare[style*="81b504"] {
    background-color: #eef6dc !important;
    color: #3f6212;
}

.wt-head.wr-head .working_hr_box h3 .lastday_compare[style*="F27B7B"],
.wt-head.wr-head .working_hr_box h3 .lastday_compare[style*="f27b7b"] {
    background-color: #fdecec !important;
    color: #b42318;
}

.dark-mode .wt-head.wr-head .working_hr_box h3 .lastday_compare[style*="81B504"],
.dark-mode .wt-head.wr-head .working_hr_box h3 .lastday_compare[style*="81b504"] {
    background-color: rgba(129, 181, 4, .14) !important;
    color: #a3cf4a;
}

.dark-mode .wt-head.wr-head .working_hr_box h3 .lastday_compare[style*="F27B7B"],
.dark-mode .wt-head.wr-head .working_hr_box h3 .lastday_compare[style*="f27b7b"] {
    background-color: rgba(240, 68, 56, .14) !important;
    color: #f97066;
}

/* Unpainted (no change): no empty pill. */
.wt-head.wr-head .working_hr_box h3 .lastday_compare:not([style*="#"]) {
    display: none;
}

/* --- Work Report: "Timeline" subheading and the Focused ring ----------------
   The subheading takes the card title's style (17px / 14px under 1450px,
   Poppins 500, #58666e; #ccc on dark). dark_mode.css set the ring's canvas to
   opacity .7, which dimmed its green and yellow on dark; full strength here. */
.wt-head.wr-head .dashboard_top_hourly_graph_head {
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 20px;
    color: #58666e;
}

.dark-mode .wt-head.wr-head .dashboard_top_hourly_graph_head {
    color: #ccc;
}

@media (max-width: 1450px) {
    .wt-head.wr-head .dashboard_top_hourly_graph_head {
        font-size: 14px;
    }
}

.dark-mode .wt-head.wr-head .work-report-graph-container #myChart {
    opacity: 1;
}

/* --- Work Report figures (.wt-head.wr-head) ---------------------------------
   Dividers: a solid hairline in the card line colour instead of new_theme's
   1px dashed #ccc, on boxes as tall as their label + value (not a fixed 70%
   of the row), so each line runs exactly from the label to the value.
   Focus / Productivity on dark: dark_mode.css paints the second figure
   #55730e (--darkPrimaryMain), a muted green next to At Work; they keep the
   light-mode #81B504 instead. By id, so it holds whichever column is second
   and whether the figure is the first-load .timer span or the range
   reload's bare text. */
.wt-head.wr-head .dash_top_work_1_row > .working_hr_box {
    align-self: start;
    height: auto;
}

.wt-head.wr-head .dash_top_work_1_row > .working_hr_box:nth-child(-n+3) {
    border-right: 1px solid #e6ebef;
}

.dark-mode .wt-head.wr-head .dash_top_work_1_row > .working_hr_box:nth-child(-n+3) {
    border-right-color: #0b2c40;
}

.dark-mode .wt-head.wr-head #total_focus_hour,
.dark-mode .wt-head.wr-head #total_focus_hour .timer,
.dark-mode .wt-head.wr-head #productive_hour,
.dark-mode .wt-head.wr-head #productive_hour .timer,
.dark-mode .wt-head.wr-head .work-report-graph-totalprdct-percntg strong {
    color: #81B504 !important;
}

/* Page skeleton (admin/dashboard_skelton_div, .loading-skeleton): the Focus /
   Productivity colour and the chip tints above out-rank the skeleton's
   transparent text, which left a green "0" and a red chip showing while the
   dashboard loads. Inside the skeleton they are blocks like everything else. */
.loading-skeleton .wt-head.wr-head #total_focus_hour,
.loading-skeleton .wt-head.wr-head #total_focus_hour .timer,
.loading-skeleton .wt-head.wr-head #productive_hour,
.loading-skeleton .wt-head.wr-head #productive_hour .timer,
.loading-skeleton .wt-head.ea-dash .acteff_content h2 span,
.dark-mode .loading-skeleton .wt-head.wr-head #total_focus_hour,
.dark-mode .loading-skeleton .wt-head.wr-head #total_focus_hour .timer,
.dark-mode .loading-skeleton .wt-head.wr-head #productive_hour,
.dark-mode .loading-skeleton .wt-head.wr-head #productive_hour .timer {
    color: transparent !important;
}

.loading-skeleton .wt-head.wr-head .working_hr_box h3 .lastday_compare,
.loading-skeleton .wt-head.ea-dash .acteff_content h2 span {
    background-color: #eee !important;
    color: transparent !important;
}

.dark-mode .loading-skeleton .wt-head.wr-head .working_hr_box h3 .lastday_compare,
.dark-mode .loading-skeleton .wt-head.ea-dash .acteff_content h2 span {
    background-color: #041724 !important;
}

/* Work Report figure row (768px and up). new_theme.css lays it out as five
   equal columns for four items (three figures and the ring), so a fifth column
   always stood empty and each figure got ~100px on 1150-1450px screens: the
   change chip crowded the value or wrapped under it. Three equal figure columns
   plus one sized to the ring, with even gutters either side of each rule. */
/* The original compact arrangement: each figure up to 180px (about what it had
   before), packed to the left with its divider, the ring just after Task
   Spent; on narrow cards the three columns shrink together instead. */
@media (min-width: 768px) {
    .wt-head.wr-head .dash_top_work_1_row {
        grid-template-columns: repeat(3, minmax(0, 180px)) minmax(110px, 1fr) !important;
    }

    .wt-head.wr-head .dash_top_work_1_row > .working_hr_box {
        width: 100% !important;
        min-width: 0;
        padding: 0 16px;
    }

    .wt-head.wr-head .dash_top_work_1_row > .working_hr_box:first-child {
        padding-left: 0;
    }

    .wt-head.wr-head .dash_top_work_1_row > .working_hr_box h3 {
        white-space: nowrap;
    }

    .wt-head.wr-head .dash_top_work_1_row > :not(.working_hr_box) {
        justify-self: start;
        margin-left: 28px;
    }
}

/* Work Report figure labels (At Work / Focus / Task Spent): the Work/Task
   card's figure labels - 13px, 500, muted - instead of 14px / 400 near-black,
   which competed with the figures under them. */
html body .wt-head.wr-head .dash_top_work_1_row > .working_hr_box > p {
    font-family: "Poppins", sans-serif;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 18px;
    margin-bottom: 2px;
    color: #5f6b75;
}

html body.dark-mode .wt-head.wr-head .dash_top_work_1_row > .working_hr_box > p {
    color: #8b98a1;
}

.loading-skeleton .wt-head.wr-head .dash_top_work_1_row > .working_hr_box > p {
    color: transparent !important;
}

/* --- Date-range picker ------------------------------------------------------
   The My Desklog pill (appusage_individual.blade.php, "Card date pickers"), here
   so every .wt-mx card - the admin dashboard included - carries it: 32px, 1px
   border, Poppins 13px, icon / label / caret 8px apart. font-size 0 zeroes the
   &nbsp; in the markup so the icon margins alone space it. !important over the
   global ".range-picker-right { border: 0 !important }", the 13px !important
   under 1450px in new_theme.css and the label's inline 15px. */
.wt-mx .task_filter_btn div.range-picker-right,
.wt-head .H-selectR > div.range-picker-right,
.wt-head .ea-tools > div.range-picker-right {
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 32px;
    padding: 0 11px;
    margin: 0;
    border: 1px solid #eaeff3 !important;
    border-radius: 7px;
    background: #fff;
    font-family: "Poppins", sans-serif !important;
    font-size: 0 !important;
    font-weight: 400 !important;
    line-height: 1;
    color: #58666e !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.wt-mx .task_filter_btn div.range-picker-right > span,
.wt-head .H-selectR > div.range-picker-right > span,
.wt-head .ea-tools > div.range-picker-right > span {
    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 19px;
    color: inherit !important;
}

.wt-mx .task_filter_btn div.range-picker-right > .fa-calendar,
.wt-head .H-selectR > div.range-picker-right > .fa-calendar,
.wt-head .ea-tools > div.range-picker-right > .fa-calendar {
    margin-right: 8px;
    font-size: 13px;
    line-height: 1;
    color: #7b8a94;
}

.wt-mx .task_filter_btn div.range-picker-right > .fa-caret-down,
.wt-head .H-selectR > div.range-picker-right > .fa-caret-down,
.wt-head .ea-tools > div.range-picker-right > .fa-caret-down {
    margin-left: 8px;
    font-size: 12px;
    line-height: 1;
    color: #aab7c0;
}

.wt-mx .task_filter_btn div.range-picker-right:hover,
.wt-head .H-selectR > div.range-picker-right:hover,
.wt-head .ea-tools > div.range-picker-right:hover {
    border-color: #cfe0ea !important;
    background: #f7fafc;
}

.dark-mode .wt-mx .task_filter_btn div.range-picker-right,
.dark-mode .wt-head .H-selectR > div.range-picker-right,
.dark-mode .wt-head .ea-tools > div.range-picker-right {
    background: #021520;
    border-color: #082838 !important;
    color: #b4c1c9 !important;
}

.dark-mode .wt-mx .task_filter_btn div.range-picker-right:hover,
.dark-mode .wt-head .H-selectR > div.range-picker-right:hover,
.dark-mode .wt-head .ea-tools > div.range-picker-right:hover {
    background: #052131;
    border-color: #0e3b57 !important;
}

/* In the page skeleton (admin/dashboard_skelton_div, .loading-skeleton) the pill
   keeps its outline and its label becomes the skeleton's grey bar: the label
   colour above out-ranks the skeleton's transparent text, the icons would be
   grey squares and the arrow buttons grey slabs. */
.loading-skeleton .wt-mx .task_filter_btn div.range-picker-right > span,
.loading-skeleton .wt-head .H-selectR > div.range-picker-right > span {
    color: transparent !important;
    border-radius: 4px;
}

.loading-skeleton .wt-mx .task_filter_btn div.range-picker-right > .fa,
.loading-skeleton .wt-head .H-selectR > div.range-picker-right > .fa {
    visibility: hidden;
}

.loading-skeleton .wt-mx .task_filter_btn .btn {
    background: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: var(--wt-sk-block) !important;
}

.loading-skeleton .wt-mx .task_filter_btn .btn .glyphicon {
    color: var(--wt-sk-block);
}

/* --- Tooltip ---------------------------------------------------------------- */
.wt-mx .wt-tip {
    position: absolute;
    z-index: 5;
    min-width: 170px;
    padding: 10px 12px;
    border: 1px solid #e6ebef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .06);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #1f2a33;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.wt-mx .wt-tip.is-on {
    opacity: 1;
    visibility: visible;
}

.wt-mx .wt-tip__title {
    margin-bottom: 6px;
    font-weight: 500;
    color: #1f2a33;
    white-space: nowrap;
}

.wt-mx .wt-tip__row {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.wt-mx .wt-tip__row + .wt-tip__row {
    margin-top: 2px;
}

.wt-mx .wt-tip__dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.wt-mx .wt-tip__label {
    flex: 1 1 auto;
    color: #5b6872;
}

.wt-mx .wt-tip__val {
    margin-left: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: #1f2a33;
}

.dark-mode .wt-mx .wt-tip {
    border-color: #13405c;
    background: #0c2233;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35);
    color: #e6edf1;
}

.dark-mode .wt-mx .wt-tip__title,
.dark-mode .wt-mx .wt-tip__val {
    color: #e6edf1;
}

.dark-mode .wt-mx .wt-tip__label {
    color: #9aa7b0;
}

/* Phones: figures stack above the chart; no alignment, just a fixed plot. */
@media (max-width: 767px) {
    .wt-mx .work_task_main_section .work_task_rprt_box {
        margin-top: 0;
    }

    /* The section stacks as a column with align-items:flex-start, which
       shrank the chart to its content (about 200px of a 340px card). */
    .wt-mx .work_task_main_section .workTask_graphbox {
        align-self: stretch;
        width: 100%;
        height: auto !important;
        margin: 0 !important;
    }

    .wt-mx .wt-mx-plot {
        min-height: 220px;
    }

    html body .wt-mx .workTask_box_top_time {
        padding-left: 28px;
    }
}

html body .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt h5,
html body .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_time_at_work,
html body .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_task_spend,
html body .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_billable_task,
html body .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_productive,
html body .wt-mx #block_workprojectbardiv .work_task_rprt_box .work_task_rprt_box_cnt #total_focus {
    color: #34444e !important;
}

/* --- Narrow card: figures in one row above the chart -------------------------
   On the user My Desklog the Work/Task card sits in a two-column row; on
   ~1200-1440px screens it is under 560px wide and the container query in
   user/dashboard.blade.php stacks the figures above the chart. The figures
   kept their desktop column (150px wide) and the plot-centre offset
   (--wt-mtop), which was measured against a chart that now sits below them,
   so they were pushed ~275px down and left a tall blank band in the card (and
   in the Productivity Graph card next to it, which stretches to match).
   Same treatment as phones: one row, no offset. The container is only
   declared on the user My Desklog, so admin pages are unaffected. */
@container work-task (max-width: 560px) {
    .wt-mx .work_task_main_section .work_task_rprt_box {
        flex: none;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
        margin-top: 0;
        margin-bottom: 14px;
    }

    .wt-mx .work_task_main_section .work_task_rprt_box_cnt,
    .wt-mx .work_task_main_section .work_task_rprt_box_cnt:first-child,
    .wt-mx .work_task_main_section .work_task_rprt_box_cnt:last-child {
        flex: 1 1 0;
        min-width: 0;
        padding: 2px 14px;
        text-align: left;
    }

    .wt-mx .work_task_main_section .work_task_rprt_box_cnt:first-child {
        padding-left: 0;
    }

    .wt-mx .work_task_main_section .work_task_rprt_box_cnt + .work_task_rprt_box_cnt {
        border-top: 0;
        border-left: 1px solid var(--wt-line);
    }

    .wt-mx .work_task_main_section .workTask_graphbox {
        flex: none;
        width: 100%;
    }
}

/* Below 992px Bootstrap's .col-md-12 has no width, and inside the flex
   .flx_algn_cnt row it shrank to its content: on ~768-991px screens the chart
   took ~1/3 of the card and left the rest blank. Fill the row. */
.wt-mx .work_prj_cm_chart_view > .flx_algn_cnt > .break_col_flwdth_sm {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

/* --- Skeleton (common/work_task_skeleton.blade.php) -------------------------
   The loaded card's layout in placeholder blocks: same figures column, hours
   row, plot and date row, inside the same .workTask_graphbox so it takes the
   page's chart height and the card does not grow or jump when data arrives.
   One slow pulse on the whole placeholder; none under reduced motion. */
.wt-mx {
    --wt-sk-block: #edf0f3;
    --wt-sk-grid: #f2f4f6;
}

.dark-mode .wt-mx {
    --wt-sk-block: #0a2131;
    --wt-sk-grid: #071a27;
}

.wt-mx .wt-sk {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    animation: wt-sk-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes wt-sk-pulse {
    from { opacity: 1; }
    to   { opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
    .wt-mx .wt-sk { animation: none; }
}

.wt-mx .wt-sk .wt-sk-bar,
.wt-mx .wt-sk .wt-sk-dot,
.wt-mx .wt-sk .wt-sk-col {
    background: var(--wt-sk-block);
}

.wt-mx .wt-sk .wt-sk-bar {
    border-radius: 4px;
}

/* Figures: centred on the plot (the hours row above it, the dates below). */
.wt-mx .wt-sk-figs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 150px;
    width: 150px;
    padding: 30px 0 20px;
}

.wt-mx .wt-sk-fig {
    padding: 22px 0;
}

.wt-mx .wt-sk-fig:first-child { padding-top: 0; }
.wt-mx .wt-sk-fig:last-child { padding-bottom: 0; }

.wt-mx .wt-sk-fig + .wt-sk-fig {
    border-top: 1px solid var(--wt-line);
}

.wt-mx .wt-sk-label {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 18px;
    margin-bottom: 4px;
}

.wt-mx .wt-sk .wt-sk-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.wt-mx .wt-sk-bar--label { width: 72px; height: 10px; }
.wt-mx .wt-sk-bar--value { width: 52px; height: 24px; margin-top: 3px; }
.wt-mx .wt-sk-bar--tick  { width: 26px; height: 10px; margin: 0 auto; }

/* Chart column: .workTask_graphbox already carries the page's height and the
   column layout; only the pieces inside are set here. */
.wt-mx .wt-sk-hours,
.wt-mx .wt-sk-dates {
    display: flex;
    flex: none;
    padding-left: 34px;
}

.wt-mx .wt-sk-hours { height: 16px; margin-bottom: 14px; }
.wt-mx .wt-sk-dates { height: 10px; margin-top: 10px; }

.wt-mx .wt-sk-hours > div,
.wt-mx .wt-sk-dates > div,
.wt-mx .wt-sk-day {
    flex: 1 1 0;
    min-width: 0;
}

/* Plot: faint rules like the chart's, and a baseline. */
.wt-mx .wt-sk-plot {
    display: flex;
    align-items: flex-end;
    flex: 1 1 auto;
    min-height: 0;
    margin-left: 34px;
    border-bottom: 1px solid var(--wt-sk-grid);
    background-image: linear-gradient(var(--wt-sk-grid) 1px, transparent 1px);
    background-size: 100% 25%;
}

.wt-mx .wt-sk-day {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.wt-mx .wt-sk .wt-sk-col {
    width: 10px;
    border-radius: 2px 2px 0 0;
}

/* Phones: figures in one row above the chart, as when loaded. */
@media (max-width: 767px) {
    .wt-mx .wt-sk {
        flex-direction: column;
    }

    .wt-mx .wt-sk-figs {
        flex: none;
        flex-direction: row;
        width: 100%;
        padding: 0;
        margin-bottom: 14px;
    }

    .wt-mx .wt-sk-fig,
    .wt-mx .wt-sk-fig:first-child,
    .wt-mx .wt-sk-fig:last-child {
        flex: 1 1 0;
        min-width: 0;
        padding: 4px 10px;
    }

    .wt-mx .wt-sk-fig:first-child { padding-left: 0; }

    .wt-mx .wt-sk-fig + .wt-sk-fig {
        border-top: 0;
        border-left: 1px solid var(--wt-line);
    }

    .wt-mx .wt-sk-bar--label { width: 60px; }

    .wt-mx .wt-sk .wt-sk-chart {
        height: 260px !important;
    }

    .wt-mx .wt-sk-hours,
    .wt-mx .wt-sk-dates { padding-left: 28px; }
    .wt-mx .wt-sk-plot { margin-left: 28px; }
}
