/* =============================================================================
   LW EBC Phases — Plugin Styles
   Version 2.0
   ============================================================================= */

:root {
    --ebc-p1-bg:     #f0e6f7; --ebc-p1-text:   #822ebf;
    --ebc-p2-bg:     #e0f5fd; --ebc-p2-text:   #00aeef;
    --ebc-p3-bg:     #eff6e8; --ebc-p3-text:   #7eb142;
    --ebc-p4-bg:     #ffeee6; --ebc-p4-text:   #ff732b;
    --ebc-p5-bg:     #ffe4e9; --ebc-p5-text:   #ff2147;
    --ebc-oe-color:  #ff2147;
    --ebc-border:    #ebebeb;
    --ebc-font:      'Roboto', sans-serif;
}


/* =============================================================================
   Calculator Widget
   ============================================================================= */

.ebc-calendar-widget {
    font-family: var(--ebc-font);
    width: 100%;
    max-width: 520px;
    background: #fff;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid var(--ebc-border);
    border-radius: 12px;
    margin: 20px auto;
}

.ebc-widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 6px;
    line-height: 1.2;
}

.ebc-widget-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 0;
}
.ebc-widget-footnote {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 20px;
}


/* --- Controls ---------------------------------------------------------------- */

.ebc-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.ebc-control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ebc-control-group label {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.ebc-label-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    color: #bbb;
}

.ebc-control-group select,
.ebc-control-group input[type="date"] {
    padding: 11px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 15px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--ebc-font);
    color: #1d2327;
    transition: border-color 0.15s;
}

.ebc-control-group select:focus,
.ebc-control-group input[type="date"]:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3);
}


/* --- And/Or Divider --------------------------------------------------------- */

.ebc-controls-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -2px 0;
}

.ebc-controls-divider::before,
.ebc-controls-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.ebc-controls-divider span {
    font-size: 10px;
    color: #bbb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}


/* --- OE Estimate Hint ------------------------------------------------------- */

.ebc-oe-estimate {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin-top: 5px;
    padding: 6px 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #ddd;
}


/* --- Project Needs Checkboxes ----------------------------------------------- */

.ebc-checkbox-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ebc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #1d2327;
    cursor: pointer;
}

.ebc-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1d2327;
    cursor: pointer;
    flex-shrink: 0;
}


/* --- Critical Deadlines ----------------------------------------------------- */

.ebc-deadlines {
    margin-top: 24px;
    border-top: 2px solid var(--ebc-border);
    padding-top: 16px;
}

.ebc-deadlines-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin: 0 0 12px;
}

.ebc-deadlines-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ebc-deadline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1d2327;
}

.ebc-deadline-item--production {
    color: #f97316;
}

.ebc-deadline-item--approval .ebc-deadline-label,
.ebc-deadline-item--approval .ebc-deadline-date {
    color: #700000;
}

.ebc-deadline-phase {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f3f4f6;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    min-width: 26px;
    text-align: center;
    flex-shrink: 0;
}

/* Per-phase badge colors */
.ebc-deadline-phase--p1 { background: var(--ebc-p1-text); }
.ebc-deadline-phase--p2 { background: var(--ebc-p2-text); }
.ebc-deadline-phase--p3 { background: var(--ebc-p3-text); }
.ebc-deadline-phase--p4 { background: var(--ebc-p4-text); }
.ebc-deadline-phase--p5 { background: var(--ebc-p5-text); }

.ebc-deadline-phase--prod {
    background: #FFD534;
    color: #1d2327;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    padding: 0;
    letter-spacing: 0;
}

/* Final approval badge — dark red, bold X */
.ebc-deadline-phase--approval {
    background: #700000;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.ebc-deadline-label {
    flex: 1;
    font-size: 12px;
    color: inherit;
}

.ebc-deadline-date {
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    color: inherit;
}

.ebc-deadline-est {
    font-weight: 400;
    font-size: 10px;
    color: #bbb;
}

.ebc-deadlines-note {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
    margin: 10px 0 0;
    padding: 6px 10px;
    background: #fff7ed;
    border-radius: 4px;
    border-left: 3px solid #f97316;
}

/* OE Start Date row — goal/anchor, styled distinctly at the end of the list */
.ebc-deadline-item--oe {
    font-weight: 700;
    border-top: 1px solid var(--ebc-border);
    padding-top: 8px;
    margin-top: 4px;
}

.ebc-deadline-item--oe .ebc-deadline-label,
.ebc-deadline-item--oe .ebc-deadline-date {
    color: var(--ebc-oe-color);
}

.ebc-deadline-phase--oe {
    background: #fff7ed;
    color: var(--ebc-oe-color) !important;
}


/* =============================================================================
   [ebc_timeline] and [ebc_deadlines] Shortcode Wrappers
   These are thin wrappers so each shortcode can live in its own Divi module.
   ============================================================================= */

.ebc-timeline-widget {
    /* No visual styling — purely structural */
}

.ebc-deadlines-widget {
    /* No visual styling — purely structural */
}


/* --- Timeline Container ------------------------------------------------------ */

.ebc-timeline-container {
    display: none;
    flex-direction: column;
    border-left: 2px solid var(--ebc-border);
    margin-left: 15px;
    padding-left: 15px;
    padding-right: 90px; /* space for OE bracket label */
    position: relative;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ebc-timeline-container.ebc-timeline--visible {
    display: flex;
    opacity: 1;
}


/* --- Month Rows -------------------------------------------------------------- */

.ebc-month-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    min-height: 40px;
}

/* Timeline dot */
.ebc-month-row::before {
    content: '';
    position: absolute;
    left: -21px;
    width: 10px;
    height: 10px;
    background: #1d2327;
    border-radius: 50%;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.ebc-month-name {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 90px;
    flex-shrink: 0;
    color: #333;
}


/* --- Phase Pills ------------------------------------------------------------- */

.ebc-phase-pill {
    flex-grow: 1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 38px;
    text-decoration: none;
    transition: filter 0.15s, transform 0.15s;
}

.ebc-phase-pill:hover {
    filter: brightness(0.95);
}

.ebc-phase-pill:active {
    filter: brightness(0.88);
    transform: scale(0.98);
}

/* Continuation months (not the first month of a phase) */
.ebc-phase-pill.ebc-pill--continuation {
    opacity: 0.22;
    pointer-events: none;
}

.ebc-pill-content {
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.ebc-pill-title {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ebc-pill-desc {
    font-size: 9px;
    font-weight: 400;
    margin-top: 2px;
    text-transform: none;
    opacity: 0.85;
}

.ebc-pill-p1 { background-color: var(--ebc-p1-bg); color: var(--ebc-p1-text); }
.ebc-pill-p2 { background-color: var(--ebc-p2-bg); color: var(--ebc-p2-text); }
.ebc-pill-p3 { background-color: var(--ebc-p3-bg); color: var(--ebc-p3-text); }
.ebc-pill-p4 { background-color: var(--ebc-p4-bg); color: var(--ebc-p4-text); }
.ebc-pill-p5 { background-color: var(--ebc-p5-bg); color: var(--ebc-p5-text); }


/* --- OE Bracket ------------------------------------------------------------- */

.ebc-oe-bracket {
    position: absolute;
    right: -15px;
    top: 0;
    width: 12px;
    border: 2px solid var(--ebc-oe-color);
    border-left: none;
    z-index: 5;
    pointer-events: none;
    /* Height is set dynamically by JS */
}

.ebc-oe-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ebc-oe-color);
    font-weight: 900;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 68px;
    line-height: 1.2;
}

/* Shown in place of the bracket when an actual OE date is entered */
.ebc-oe-marker {
    position: absolute;
    right: -86px;
    top: 50%;
    transform: translateY(-50%);
    width: 66px;
    text-align: center;
    color: var(--ebc-oe-color);
    font-weight: 700;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    background: #fff7ed;
    border: 1.5px solid var(--ebc-oe-color);
    border-radius: 3px;
    padding: 3px 4px;
    box-sizing: border-box;
}


/* --- Print Button ------------------------------------------------------------ */

.ebc-print-btn {
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #1d2327;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--ebc-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background 0.15s;
}

.ebc-print-btn:hover {
    background: #3a4856;
}

.ebc-print-btn:active {
    background: #0f1619;
}


/* --- Clear OE Date button --------------------------------------------------- */

.ebc-clear-oe-btn {
    background: none;
    border: none;
    color: #bbb;
    font-size: 11px;
    font-family: var(--ebc-font);
    cursor: pointer;
    padding: 2px 0;
    display: block;
    text-align: left;
}

.ebc-clear-oe-btn:hover {
    color: #888;
}


/* =============================================================================
   [ebc_var] Inline Dynamic Text
   ============================================================================= */

.ebc-var {
    /* Default: inherits surrounding text styles */
    display: inline;
    color: inherit;
    font-weight: inherit;
}

/* Optional: give filled values a subtle highlight to show they're dynamic.
   Comment out if you prefer no visual distinction. */
.ebc-var--filled {
    /* Example subtle treatment — uncomment to activate:
    font-weight: 700;
    color: #f97316;
    */
}


/* =============================================================================
   [ebc_if] Conditional Content
   Hidden by default; JS sets display to '' (block) when condition matches.
   ============================================================================= */

.ebc-conditional {
    display: none;
}


/* =============================================================================
   Divi Module Show/Hide via Body CSS Classes
   =============================================================================

   HOW TO USE IN DIVI:
   1. Place [ebc_calendar] on your page.
   2. In any Divi module > Advanced > CSS Class, add one of these classes:

      ebc-show-for-january    — visible ONLY when January is selected
      ebc-show-for-february   — visible ONLY when February is selected
      … (all 12 months)

      ebc-hide-for-january    — hidden ONLY when January is selected
      … (all 12 months)

      ebc-show-when-selected  — visible once ANY month is selected
      ebc-hide-when-selected  — hidden once ANY month is selected

      ebc-show-in-phase-1     — visible when today falls within Phase 1 of the chosen cycle
      ebc-show-in-phase-2     — … Phase 2
      ebc-show-in-phase-3     — … Phase 3
      ebc-show-in-phase-4     — … Phase 4
      ebc-show-in-phase-5     — … Phase 5

   PRINT TIP:
      Add class "ebc-print-region" to any Divi Section you want included when
      the user clicks "Print My Timeline". Sections without this class are hidden
      from the printed output by the @media print rules below.

   NOTE: Divi wraps modules in extra divs, so display: block !important is used
   to ensure visibility overrides Divi's own display rules.
   ============================================================================= */

/* --- Show for specific months (hidden by default) ---------------------------- */

.ebc-show-for-january,
.ebc-show-for-february,
.ebc-show-for-march,
.ebc-show-for-april,
.ebc-show-for-may,
.ebc-show-for-june,
.ebc-show-for-july,
.ebc-show-for-august,
.ebc-show-for-september,
.ebc-show-for-october,
.ebc-show-for-november,
.ebc-show-for-december {
    display: none !important;
}

body.ebc-renewal-january    .ebc-show-for-january    { display: block !important; }
body.ebc-renewal-february   .ebc-show-for-february   { display: block !important; }
body.ebc-renewal-march      .ebc-show-for-march      { display: block !important; }
body.ebc-renewal-april      .ebc-show-for-april      { display: block !important; }
body.ebc-renewal-may        .ebc-show-for-may        { display: block !important; }
body.ebc-renewal-june       .ebc-show-for-june       { display: block !important; }
body.ebc-renewal-july       .ebc-show-for-july       { display: block !important; }
body.ebc-renewal-august     .ebc-show-for-august     { display: block !important; }
body.ebc-renewal-september  .ebc-show-for-september  { display: block !important; }
body.ebc-renewal-october    .ebc-show-for-october    { display: block !important; }
body.ebc-renewal-november   .ebc-show-for-november   { display: block !important; }
body.ebc-renewal-december   .ebc-show-for-december   { display: block !important; }


/* --- Hide for specific months (visible by default, hidden on match) ---------- */

body.ebc-renewal-january    .ebc-hide-for-january    { display: none !important; }
body.ebc-renewal-february   .ebc-hide-for-february   { display: none !important; }
body.ebc-renewal-march      .ebc-hide-for-march      { display: none !important; }
body.ebc-renewal-april      .ebc-hide-for-april      { display: none !important; }
body.ebc-renewal-may        .ebc-hide-for-may        { display: none !important; }
body.ebc-renewal-june       .ebc-hide-for-june       { display: none !important; }
body.ebc-renewal-july       .ebc-hide-for-july       { display: none !important; }
body.ebc-renewal-august     .ebc-hide-for-august     { display: none !important; }
body.ebc-renewal-september  .ebc-hide-for-september  { display: none !important; }
body.ebc-renewal-october    .ebc-hide-for-october    { display: none !important; }
body.ebc-renewal-november   .ebc-hide-for-november   { display: none !important; }
body.ebc-renewal-december   .ebc-hide-for-december   { display: none !important; }


/* --- Show/hide based on whether ANY selection has been made ----------------- */

.ebc-show-when-selected { display: none !important; }
.ebc-hide-when-selected { }

body.ebc-selected .ebc-show-when-selected { display: block !important; }
body.ebc-selected .ebc-hide-when-selected { display: none !important; }


/* --- Show for current phase (based on today's date vs cycle start) ---------- */

.ebc-show-in-phase-1,
.ebc-show-in-phase-2,
.ebc-show-in-phase-3,
.ebc-show-in-phase-4,
.ebc-show-in-phase-5 {
    display: none !important;
}

body.ebc-in-phase-1 .ebc-show-in-phase-1 { display: block !important; }
body.ebc-in-phase-2 .ebc-show-in-phase-2 { display: block !important; }
body.ebc-in-phase-3 .ebc-show-in-phase-3 { display: block !important; }
body.ebc-in-phase-4 .ebc-show-in-phase-4 { display: block !important; }
body.ebc-in-phase-5 .ebc-show-in-phase-5 { display: block !important; }


/* =============================================================================
   [ebc_sidebar] — Fixed dockable sidebar widget
   ============================================================================= */

/* Outer container: fixed positioning + slide animation only.
   No overflow set here — that lets the toggle tab poke out to the right
   without triggering a scrollbar (position:fixed elements don't cause
   page scroll, and overflow:visible is the default). */
.ebc-sidebar {
    font-family: var(--ebc-font);
    width: 300px;
    background: #fff;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    border-radius: 0 15px 15px 0;
    position: fixed;
    left: 0;
    top: 15%;
    max-height: 80vh;
    box-sizing: border-box;
    z-index: 999999;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.ebc-sidebar--docked {
    transform: translateX(calc(-100% + 32px));
}

/* Inner body: this is the scrolling surface. Overflow is fine here because
   the toggle tab lives outside this div, on the outer container. */
.ebc-sidebar-body {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 20px 16px;
    box-sizing: border-box;
}

.ebc-sidebar-toggle {
    position: absolute;
    right: -32px;
    top: 40px;
    width: 32px;
    height: 50px;
    background: #1d2327;
    color: #fff;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.15);
    user-select: none;
}

/* Strip the standalone widget card styling when inside the sidebar */
.ebc-sidebar .ebc-calendar-widget {
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    max-width: none;
}

/* Compact control inputs */
.ebc-sidebar .ebc-widget-title { font-size: 16px; margin-bottom: 4px; }
.ebc-sidebar .ebc-widget-desc  { font-size: 12px; margin-bottom: 12px; }
.ebc-sidebar .ebc-controls     { gap: 8px; margin-bottom: 12px; }

.ebc-sidebar .ebc-control-group select,
.ebc-sidebar .ebc-control-group input[type="date"] {
    padding: 7px 10px;
    font-size: 13px;
}

/* Hide the estimated OE hint — not enough room in the sidebar */
.ebc-sidebar .ebc-oe-estimate { display: none !important; }

/* Timeline: right padding holds the OE bracket label inside the sidebar body */
.ebc-sidebar .ebc-timeline-container {
    padding-right: 72px;
    margin-top: 12px;
    margin-left: 6px;
}

/* Compact month rows */
.ebc-sidebar .ebc-month-name {
    width: 62px;
    font-size: 9px;
}

.ebc-sidebar .ebc-month-row {
    min-height: 26px;
    margin-bottom: 3px;
}

/* Compact OE label to fit in 72px */
.ebc-sidebar .ebc-oe-label {
    font-size: 7px;
    width: 56px;
}

/* Sidebar footer — link to full calculator page */
.ebc-sidebar-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ebc-border);
}

.ebc-sidebar-footer p {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin: 0 0 10px;
}

.ebc-sidebar-footer-btn {
    display: block;
    padding: 9px 16px;
    background: #1d2327;
    color: #fff;
    border-radius: 6px;
    font-family: var(--ebc-font);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s;
}

.ebc-sidebar-footer-btn:hover {
    background: #3a4856;
    color: #fff;
    text-decoration: none;
}

/* Hide print button inside sidebar — not relevant on this page type */
.ebc-sidebar .ebc-print-btn {
    display: none !important;
}


/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 600px) {
    .ebc-calendar-widget {
        padding: 16px;
        border-radius: 8px;
    }

    .ebc-timeline-container {
        padding-right: 70px;
    }

    .ebc-month-name {
        width: 70px;
    }

    .ebc-oe-label {
        font-size: 8px;
        width: 58px;
    }
}


/* =============================================================================
   Print Styles  (@media print)
   =============================================================================

   Triggered by the "Print My Timeline" button (window.print()).

   HOW TO MARK SECTIONS FOR PRINTING:
     [ebc_calendar] (controls/button) is hidden from print automatically.
     For [ebc_timeline] and [ebc_deadlines] sections — in Divi go to the
     Section > Advanced > CSS Class and add: ebc-print-region
     Any additional sections you want printed also get this class.

   OUTPUT ORIENTATION: defaults to landscape (set in @page below).
   ============================================================================= */

@media print {

    /* --- Page setup: landscape, no browser headers/footers ----------------- */
    /* margin: 0 removes the margin area where browsers print URL/date/page#  */
    @page {
        size: landscape;
        margin: 0;
    }

    /* Restore breathing room via body padding so content isn't edge-to-edge  */
    body {
        padding: 0.6cm 1cm !important;
        box-sizing: border-box !important;
    }

    /* --- Hide Divi chrome and floating UI elements --------------------------- */
    #wpadminbar,
    #main-header,
    .et-l--header,
    .et-l--footer,
    footer,
    #et-footer-nav,
    #et-pb-scroll-top,
    .et-pb-scroll-top,
    .et_pb_scroll_top,
    .lw-bubble,
    iframe,
    .et_pb_section:not(.ebc-print-region) {
        display: none !important;
    }

    /* --- Show ebc-print-region sections and their inner Divi wrappers ------- */
    .ebc-print-region {
        display: block !important;
    }

    /* Preserve Divi's flex row layout so columns stay side-by-side in print  */
    .ebc-print-region .et_pb_row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;   /* must not wrap — wrapping causes stacking */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hard-coded column split: left column fills remaining space, right column
       (timeline) is fixed at 1/3. :first-child = deadlines/content, :last-child
       = timeline. Works regardless of which Divi column preset is selected.      */
    .ebc-print-region .et_pb_row > .et_pb_column:first-child {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .ebc-print-region .et_pb_row > .et_pb_column:last-child {
        flex: 0 0 33.33% !important;
        width: 33.33% !important;
        max-width: 33.33% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .ebc-print-region .et_pb_module {
        display: block !important;
        box-sizing: border-box !important;
    }

    /* --- [ebc_calendar] controls widget: always hidden in print ------------- */
    /* Place [ebc_calendar] in its own section WITHOUT ebc-print-region.       */
    .ebc-calendar-widget {
        display: none !important;
    }

    /* --- Ensure timeline and deadlines render when in a print-region -------- */
    .ebc-timeline-widget,
    .ebc-deadlines-widget {
        display: block !important;
    }

    .ebc-timeline-container {
        display: flex !important;
        opacity: 1 !important;
    }

    .ebc-deadlines {
        display: block !important;
    }

    /* Suppress link styling on phase pills */
    .ebc-phase-pill {
        text-decoration: none !important;
    }

    .ebc-phase-pill::after {
        content: none !important;
    }

    /* Ensure phase colors print (some browsers suppress backgrounds by default) */
    .ebc-pill-p1,
    .ebc-pill-p2,
    .ebc-pill-p3,
    .ebc-pill-p4,
    .ebc-pill-p5,
    .ebc-deadline-phase--p1,
    .ebc-deadline-phase--p2,
    .ebc-deadline-phase--p3,
    .ebc-deadline-phase--p4,
    .ebc-deadline-phase--p5,
    .ebc-deadline-phase--oe,
    .ebc-deadline-phase--prod,
    .ebc-oe-marker {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Keep production row text orange in print */
    .ebc-deadline-item--production .ebc-deadline-label,
    .ebc-deadline-item--production .ebc-deadline-date {
        color: #ff732b !important;
    }

    /* Final approval overrides orange with dark red in print */
    .ebc-deadline-item--approval .ebc-deadline-label,
    .ebc-deadline-item--approval .ebc-deadline-date {
        color: #700000 !important;
    }

    .ebc-deadline-phase--approval {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

}
