/* === Leave Calculator. Adds to payroll-calculator.css + hsp-points-calculator.css === */

/* "Days" suffix on the primary metric */
.lc-days-suffix {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 6px;
    letter-spacing: 0;
}

/* Pattern badge. Same look as HSP status, but colour-coded by state */
.lc-pattern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: var(--small);
    font-weight: 800;
    line-height: 1.2;
    border: 1px solid transparent;
}
.lc-pattern[data-state="eligible"] {
    background: var(--green); color: #fff; border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 154, 68, 0.28);
}
.lc-pattern[data-state="pending"] {
    background: #f4f5f7; color: var(--text-muted); border-color: var(--border-default);
}
.lc-pattern[data-state="failed"] {
    background: var(--red); color: #fff; border-color: transparent;
    box-shadow: 0 4px 14px rgba(235, 0, 58, 0.28);
}
.lc-pattern::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.lc-pattern[data-state="eligible"]::before,
.lc-pattern[data-state="failed"]::before {
    background: rgba(255, 255, 255, .9);
}

/* Mandatory-usage notice + carryover note */
.lc-notice {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: var(--extra-small);
    line-height: 1.55;
    color: var(--text-muted);
    background: #f5f8ff;
    border: 1px solid rgba(0, 113, 235, .14);
}
.lc-notice strong { color: var(--text-main); }
.lc-notice + .lc-notice { margin-top: 8px; }

/* Projection table. Highlight the current row */
.lc-row-current {
    background: rgba(0, 113, 235, .08);
}
.lc-row-current th, .lc-row-current td {
    color: var(--text-main) !important;
    font-weight: 700 !important;
}
.lc-row-current th:first-child::before {
    content: '▶ ';
    color: var(--blue);
    margin-right: 2px;
}

/* Two-column meta grid for the result panel (years served, recent grant, next grant) */
.lc-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 113, 235, .14);
}
.lc-meta-item {}
.lc-meta-label {
    margin: 0 0 2px;
    font-size: var(--extra-small);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}
.lc-meta-value {
    margin: 0;
    font-size: var(--default);
    font-weight: 700;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
    .lc-meta { grid-template-columns: 1fr; }
}

/* Date inputs styled to match other inputs */
.pc-form input[type="date"] {
    font-family: inherit;
    color-scheme: light;
}
