.project-tabs>a { display: flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent; color: #6f7b87; padding: 10px 17px; font-size: 12px; white-space: nowrap; }
.project-tabs>a:first-child { padding-left: 0; padding-right: 22px; }
.project-tabs>a.active { color: var(--red-dark); border-bottom-color: var(--red); font-weight: 650; }
.project-tabs>a>span { font-size: 9px; padding: 1px 5px; background: #e9edf0; border-radius: 3px; color: #7b8791; }
.project-summary.with-picture { margin-bottom: 0; border: 0; border-bottom: 1px solid var(--line); }
.project-team-table td:first-child { width: 260px; }
.project-team-table td:nth-child(2) { width: 280px; }
.team-additional { display: flex; gap: 16px; padding: 14px 18px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }
.project-team-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.phase-plan { display: grid; grid-template-columns: repeat(6,minmax(100px,1fr)); overflow-x: auto; }
.phase-plan>div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; border-right: 1px solid var(--line); font-size: 11px; }
.phase-plan>div:last-child { border-right: 0; }
.section-empty { padding: 16px 18px; margin: 0; font-size: 12px; }
.sub-heading { background: #fafbfc; border-top: 1px solid var(--line); }
.sub-heading h3 { font-size: 12px; }
.timeline-scroll { overflow-x: auto; }
.project-timelines { min-width: 850px; padding: 18px 20px 10px; }
.timeline-group { display: grid; grid-template-columns: 90px 1fr; gap: 18px; font-size: 11px; align-items: start; }
.timeline-group>strong { padding-top: 10px; }
.timeline-track { position: relative; border-top: 1px solid #cfd6dc; margin-top: 12px; }
.timeline-point { position: absolute; transform: translateX(-50%); width: 102px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; padding: 0; background: transparent; font-size: 10px; color: #52616d; }
.timeline-point i { width: 7px; height: 7px; background: #8593a1; border-radius: 50%; }
.timeline-point.done i { background: #198055; }
.timeline-point span { white-space: nowrap; max-width: 102px; overflow: hidden; text-overflow: ellipsis; }
.timeline-point small { color: #7b8791; font-size: 9px; }
.timeline-point:hover span { color: var(--red-dark); }
.timeline-axis { margin-left: 108px; display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.timeline-empty { margin: 4px 0 14px; }
.workspace-project-scroll { max-height: 270px; }
/* Keep the workspace summary within its panel, regardless of project-name length. */
.workspace-project-table { width: 100%; min-width: 0; table-layout: fixed; }
.workspace-project-table .workspace-project-number { width: 13%; }
.workspace-project-table .workspace-project-name { width: 25%; }
.workspace-project-table .workspace-project-plant { width: 6%; }
.workspace-project-table .workspace-project-pm { width: 13%; }
.workspace-project-table .workspace-project-status { width: 12%; }
.workspace-project-table .workspace-project-sop { width: 8%; }
.workspace-project-table .workspace-project-phase { width: 11%; }
.workspace-project-table .workspace-project-ics { width: 5%; }
.workspace-project-table .workspace-project-opls { width: 7%; }
.workspace-project-table th { white-space: normal; overflow-wrap: anywhere; }
.workspace-project-table th, .workspace-project-table td { padding-left: 7px; padding-right: 7px; }
.workspace-project-table td { overflow: hidden; text-overflow: ellipsis; }
.workspace-project-table .badge { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.workspace-project-table .badge i { display: inline-block; margin-right: 5px; }
.workspace-project-table thead { position: sticky; top: 0; z-index: 1; }
@media(max-width:760px) { .workspace-project-table th, .workspace-project-table td { padding-left: 4px; padding-right: 4px; } }
.workspace-task-group .panel-heading { padding-top: 12px; padding-bottom: 12px; }
.pending-module { padding: 12px 18px; font-size: 11px; color: var(--muted); }
@media(max-width:760px) { .project-team-form { grid-template-columns: 1fr; } .project-tabs>a { padding: 10px 12px; } .team-additional { flex-direction: column; gap: 6px; } }

.timeline-point i{width:16px;height:16px}.timeline-point.overdue i{background:#c62939;border-color:#c62939}.timeline-today{position:absolute;top:0;bottom:0;border-left:1px dashed #e30613;z-index:1;pointer-events:none}.timeline-today span{position:absolute;top:-14px;color:#bc1726;font-size:9px;font-weight:700}.milestone-alert{background:#b32336!important;color:#fff!important}.milestone-maintenance-alert{margin:12px 0;padding:8px 12px;background:#fff0f0;border:1px solid #e6b8bd;color:#a72836}

.apqp-management{width:105px}.opl-function{min-width:160px}
.calendar-week{display:block;color:var(--muted,#748390);font-size:10px;margin-top:3px;white-space:nowrap}.timeline-period{height:10px!important;border-radius:5px;background:#8796a4!important;min-width:8px}.timeline-period i{display:none!important}.timeline-period.done{background:#168459!important}.timeline-period.overdue{background:#c9293d!important}.timeline-period span,.timeline-period small{left:50%!important;transform:translateX(-50%);width:170px!important;text-align:center}.timeline-period span{top:17px!important}.timeline-period small{top:32px!important;line-height:13px!important}.timeline-today span{white-space:nowrap;background:white;z-index:3}.copy-areas{display:flex;gap:20px;margin-bottom:16px;border:1px solid #dce3e9;padding:12px}.copy-areas input{width:14px;height:14px;margin-right:5px}.pm-comment-entry{padding:10px 0;border-top:1px solid #dce3e9}.pm-comment-entry p{white-space:pre-wrap}.project-team-table td:first-child{white-space:normal}
.timeline-period{transform:none!important;display:block!important;overflow:visible!important}.timeline-period span,.timeline-period small{position:absolute!important;max-width:180px!important;pointer-events:none}.timeline-period span{white-space:nowrap;line-height:13px}.timeline-period small{white-space:nowrap}.project-timelines{min-width:760px}
.milestone-na{background:#edf0f3!important;color:#87939c}.milestone-visibility{display:flex;gap:16px;padding:10px 0;font-size:11px}.milestone-visibility label{display:flex;align-items:center;gap:5px}.cash-scroll{max-height:540px;border:1px solid var(--line)}.cash-table{width:3440px;table-layout:fixed;border-collapse:separate;border-spacing:0}.cash-table th{position:sticky;top:0;z-index:4;height:37px;font-size:10px;background:#f3f5f7}.cash-table td,.cash-table th{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:4px 6px;font-size:11px}.cash-table td{height:34px;background:white}.cash-table th:first-child,.cash-table td:first-child{position:sticky;left:0;z-index:2}.cash-table th:last-child,.cash-table td:last-child{position:sticky;right:0;z-index:3}.cash-table th:first-child,.cash-table th:last-child{z-index:5}.cash-table input,.cash-table select,.cash-table textarea{width:100%;height:27px;min-height:27px;padding:3px;border:1px solid transparent;background:transparent;border-radius:2px;font-size:11px}.cash-table textarea{resize:vertical;white-space:pre-wrap}.cash-table input:focus,.cash-table select:focus,.cash-table textarea:focus{border-color:#93a5b6;outline:1px solid #93a5b6}.cash-table .cash-calculated{background:#edf0f3;color:#647583}.cash-table .is-dirty td{background:#fffdf4}.cash-table .row-save{font-size:10px;padding:3px 5px;min-height:25px}.cash-table .icon-button{width:auto;font-size:10px;padding:3px}.finance-tabs{margin-bottom:14px}.phase-review-opl .back-link,.phase-review-opl .opl-heading .eyebrow{display:none}.phase-review-opl .opl-heading h1{font-size:16px}.phase-review-opl{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.apqp-tabs .tab.active{color:var(--red)!important;border-bottom-color:var(--red)!important;background:#fff4f5}

.cash-actions{display:flex;align-items:center;gap:4px;white-space:nowrap}.cash-table th{white-space:normal!important;line-height:1.3}.cash-table td{height:34px;padding-top:2px;padding-bottom:2px}.cash-table .cash-actions .icon-button{min-width:23px;width:23px;height:25px}.cash-flow>.table-note{padding:0 0 8px}.cash-table th:last-child,.cash-table td:last-child{background:#fff;border-left:1px solid var(--line)}
.milestone-edit-table{min-width:1900px}.milestone-edit-table input,.milestone-edit-table select{font-size:11px;height:29px;min-width:108px;padding:3px 5px}.milestone-edit-table td{padding:3px 7px}.milestone-edit-table td:first-child{min-width:250px}.milestone-edit-table .row-name{text-align:left;font-size:12px}.milestone-edit-table td:last-child{position:sticky;right:0;background:white;white-space:nowrap}.milestone-edit-table tr.is-dirty td{background:#fffdf2}.milestone-archive{margin:16px;padding:10px;border-top:1px solid #dce3e9}.milestone-na{background:#f1f3f5;color:#8794a1}.timeline-point.soon i{background:#d5901a}.timeline-period.soon{background:#f6dfad;border-color:#d5901a}.timeline-point.done i{background:#27835f}[aria-invalid=true]{border-color:#d51b2c!important;background:#fff3f4!important;outline-color:#d51b2c!important}
.milestone-edit-table td:last-child{min-width:136px}.milestone-edit-table .row-save,.milestone-edit-table td:last-child .button{display:inline-flex;vertical-align:middle;margin-right:4px;height:25px;min-height:25px}.milestone-edit-table input,.milestone-edit-table select{height:27px;min-height:27px;border-color:transparent;background:transparent}.milestone-edit-table input:focus,.milestone-edit-table select:focus{border-color:#94a4b5;background:#fff}.milestone-edit-table .calendar-week{display:none}.milestone-edit-table td{height:34px}.milestone-visibility{padding:10px 14px}
/* 26 October feedback: readable names, signals and content-driven task rows. */
.timeline-period.soon{background:#d5901a!important;border-color:#d5901a}.timeline-period.done{background:#27835f!important}.timeline-period span{display:block!important;visibility:visible!important;color:#334b5d!important;opacity:1!important;max-width:240px!important;width:240px!important;font-size:11px!important;overflow:visible!important}.timeline-point:disabled{opacity:1!important;color:#52616d!important}.facts-grid [data-action=workspace-pm-comments]{font-size:24px;line-height:1.4;text-align:left;white-space:normal}.workspace-priority.overdue>.panel-heading{background:#fff0f1}.workspace-priority.soon>.panel-heading{background:#fff4df}.team-assignment{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-bottom:1px solid #e0e5e9;padding:8px 0}.team-assignment>label{grid-column:1/-1}.operation-pending:after{content:'Saving changes…';position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#203544;color:#fff;padding:11px 19px;border-radius:4px;z-index:20000;box-shadow:0 3px 16px #0003}.operation-pending:before{content:'';position:fixed;left:0;top:0;height:3px;width:100%;background:linear-gradient(90deg,transparent,#e50020,transparent);animation:pli-saving 1s linear infinite;z-index:20001}@keyframes pli-saving{from{background-position:-100vw 0}to{background-position:100vw 0}}
.opl-table td,.apqp-table td,.work-table td{height:auto!important;white-space:normal;vertical-align:top}.opl-table textarea[data-opl-field=name]{height:auto;min-height:29px;field-sizing:content}.opl-table .opl-task-name,.apqp-table .row-name,.work-table .row-name{white-space:pre-wrap!important;overflow-wrap:anywhere;max-height:none!important;line-height:1.4}.opl-table tr[data-opl-parent]{background:#f5f8fa}.opl-table tr[data-opl-parent] td:first-child{padding-left:18px;border-left:3px solid #bdcbd6}
.timeline-period>span{top:16px!important}.timeline-period span span{position:static!important;left:auto!important;top:auto!important;transform:none!important;width:auto!important;max-width:none!important;display:inline!important;font-size:inherit!important}.timeline-period>small{top:32px!important}
.unsaved-overlay{position:fixed;inset:0;z-index:30000;display:flex;align-items:center;justify-content:center;background:#16263477;padding:24px}.unsaved-dialog{width:min(1250px,100%);max-height:88vh;background:#fff;border:1px solid #cdd7df;border-radius:5px;box-shadow:0 12px 60px #14233133;display:flex;flex-direction:column;color:#253746}.unsaved-dialog>header{display:flex;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #dbe2e8}.unsaved-dialog h2{font-size:21px;margin:4px 0}.unsaved-dialog header small{font-size:9px;letter-spacing:1px;color:#6b7e8c}.unsaved-dialog p{font-size:12px;margin:6px 0}.unsaved-dialog header>button{border:0;background:transparent;font-size:25px;align-self:flex-start;color:#718390}.unsaved-scroll{overflow:auto;min-height:80px}.unsaved-dialog table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.unsaved-dialog th{position:sticky;top:0;background:#edf1f5;text-align:left;padding:10px;border-bottom:1px solid #cdd7df}.unsaved-dialog th:nth-child(1){width:19%}.unsaved-dialog th:nth-child(2){width:23%}.unsaved-dialog th:last-child{width:85px}.unsaved-dialog td{padding:10px;vertical-align:top;border-bottom:1px solid #e0e6eb;overflow-wrap:anywhere;white-space:normal}.unsaved-dialog td>small{display:block;color:#6b7e8c;margin-top:5px}.unsaved-dialog tr:nth-child(even){background:#fafbfc}.unsaved-field{margin-bottom:6px}.unsaved-field>strong{display:block;font-size:10px;text-transform:capitalize;color:#627583}.unsaved-field>span{white-space:pre-wrap}.unsaved-field b{color:#d40020;padding:0 4px}.unsaved-dialog td label{display:block;font-size:11px;margin-top:10px}.unsaved-dialog td input{display:block;width:100%;margin-top:4px;padding:7px;border:1px solid #cbd6df;border-radius:3px}.unsaved-error{color:#b42035!important;padding:7px;background:#fff0f2}.unsaved-dialog>footer{padding:13px 18px;border-top:1px solid #dbe2e8;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.unsaved-dialog footer>span{margin-right:auto;font-size:11px;color:#6b7e8c}
/* Feedback 30 Oct: product/status rail and aligned register tables. */
.project-overview-body{display:grid;grid-template-columns:230px minmax(0,1fr)}.project-overview-rail{padding:16px;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-start;gap:9px}.overview-label{font-size:10px;color:var(--muted);font-weight:600;letter-spacing:.025em}.project-overview-rail .project-picture.large,.project-overview-rail .picture-empty.large{width:196px;height:124px;max-width:100%}.project-overview-rail .project-picture img{object-fit:contain}.overview-status{width:100%}.overview-status .badge{font-size:13px;line-height:20px;padding:5px 9px;white-space:normal;display:flex}.overview-pm-comment{border:0;background:transparent;text-align:left;padding:0;color:#243845;font:inherit;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;cursor:pointer}.project-overview-rail>small{font-size:10px;color:var(--muted)}.project-overview-details{min-width:0}.project-overview-details .project-summary{border:0;border-bottom:1px solid var(--line);grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:0;min-height:90px}.project-overview-details .facts-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pm-team-table{width:100%;table-layout:fixed}.pm-team-table td,.pm-team-table th{overflow:hidden;text-overflow:ellipsis}.pm-team-table td:last-child{white-space:nowrap}.workspace-width-controls{display:flex;align-items:center;gap:12px;margin:18px 0 8px;font-size:11px;color:#647786}.workspace-width-controls label{display:flex;gap:6px;align-items:center}.workspace-task-table th{position:sticky}.workspace-task-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-task-table td small{display:block;font-size:10px;color:#71818e;margin-top:2px}.workspace-task-table .row-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;display:block;white-space:nowrap}.workspace-task-table .table-column-grip{z-index:2}.workspace-task-group .table-scroll,.workspace-priority .table-scroll{max-height:420px;overflow:auto}.project-overview-body .facts-grid>div{min-width:0}@media(max-width:850px){.project-overview-body{grid-template-columns:190px minmax(0,1fr)}.project-overview-rail .project-picture.large{width:158px;height:104px}.project-overview-details .facts-grid,.project-overview-details .project-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.project-overview-body{grid-template-columns:1fr}.project-overview-rail{border-right:0;border-bottom:1px solid var(--line)}.project-overview-details .project-summary,.project-overview-details .facts-grid{grid-template-columns:1fr 1fr}}

.workspace-task-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-subtle, #f2f5f7); }
.sop-timing-line { display: block; }
