/* ============================================================
   Planning — Completed Archive  css/completed.css
   ============================================================ */

.pl-completed-page {
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 13px;
}

.pl-completed-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-style: italic;
    font-size: 14px;
}

/* ── Table wrapper ───────────────────────────────────────── */
.pl-completed-wrap {
    overflow-x: auto;
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
}

.pl-completed-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}

/* ── Column header ───────────────────────────────────────── */
.pl-completed-table thead th {
    background: #2c3e6b;
    color: #fff;
    padding: 7px 8px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #1f2e52;
    position: sticky;
    top: 0;
    z-index: 2;
}

.pl-completed-table thead th.pl-ct-qty,
.pl-completed-table thead th.pl-ct-dur {
    text-align: right;
}

/* ── Week group header row ───────────────────────────────── */
.pl-ct-week-hdr td {
    background: #1f3864;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 5px 10px;
    letter-spacing: 0.3px;
    border-top: 2px solid #0d1f40;
}

.pl-ct-week-count {
    float: right;
    font-weight: 400;
    opacity: 0.72;
}

/* ── Data rows ───────────────────────────────────────────── */
.pl-ct-row td {
    border: 1px solid #e0e0e0;
    padding: 5px 8px;
    vertical-align: middle;
    white-space: nowrap;
    color: #333;
}

.pl-ct-row:nth-child(even) td {
    background: #f8f8f8;
}

.pl-ct-row:hover td {
    background: #eef4ff;
}

/* Partially produced (Left > 0) */
.pl-ct-row-partial td {
    background: #fff8f0;
}
.pl-ct-row-partial:hover td {
    background: #fde9d9;
}

/* ── Column widths ───────────────────────────────────────── */
.pl-ct-job     { width: 65px; }
.pl-ct-mo      { width: 115px; }
.pl-ct-product { min-width: 180px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.pl-ct-station { width: 90px; }
.pl-ct-qty     { width: 46px; text-align: right; }
.pl-ct-date    { width: 128px; }
.pl-ct-dur     { width: 68px; text-align: right; }

/* ── Cell content ────────────────────────────────────────── */
.pl-ct-mo a {
    color: #1f3864;
    font-weight: 700;
    text-decoration: none;
}
.pl-ct-mo a:hover {
    text-decoration: underline;
}

.pl-ct-prod-label {
    color: #888;
    font-size: 0.9em;
    margin-left: 3px;
}

.pl-ct-station {
    color: #555;
    font-size: 11px;
}
