/* iSeal Solution brand layer (Brand Management Guidelines): orange #f59122 and white primary,
   navy #002366, soft yellow #fff0b6 and charcoal #2c2c2c secondary, Poppins type. Loaded last, colours and type only. */
:root{--brand-orange:#f59122;--brand-orange-hover:#e3800f;--brand-orange-text:#a4560a;--brand-navy:#002366;--brand-yellow:#fff0b6;--brand-charcoal:#2c2c2c;
  --app-font:'Poppins','Segoe UI',sans-serif;font-family:var(--app-font)}
body{font-family:var(--app-font)}
h1,h2,h3,h4{font-weight:700}
.plain:hover,.secondary:hover{border-color:#f7c88d}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-color:var(--brand-orange)}
/* Sidebar: white, navy text on the open item and a thin orange edge. */
#sidebar .nav-link.active{position:relative;color:var(--brand-navy);font-weight:600;box-shadow:none}
#sidebar .nav-link.active::before{content:'';display:block;position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--brand-orange)}
.sidebar-project.active{border-color:#f7c88d}
.sidebar-search:focus-within{border-color:var(--brand-orange);box-shadow:0 0 0 3px #f591222b}
/* The portfolio contract value shrinks to fit its card instead of running past the edge. */
.portfolio-value-kpi{container-type:inline-size}
.portfolio-value-kpi strong{font-size:min(39px,9.5cqi)}
/* No underlines anywhere: links and buttons stay plain on hover and focus, the colour change is enough. */
a,a:hover,a:focus,a:focus-visible,a:active,button,button:hover,button:focus,summary,summary:hover{text-decoration:none!important}
/* Every table keeps its heading row in view: a long table scrolls inside its frame and the header row sticks to the top. */
:is(.table-wrap,.planning-table-wrap,.portfolio-table-scroll,.shared-scurve-table,[class*="tableWrap"],[class*="detailTableWrap"]){max-height:min(72vh,760px);overflow:auto!important}
:is(.table-wrap,.planning-table-wrap,.portfolio-table-scroll,.shared-scurve-table,[class*="tableWrap"],[class*="detailTableWrap"]) thead th{position:sticky;top:0;z-index:3;background:#fff;box-shadow:inset 0 -1px 0 #e3e6ee}
/* Deliverables: the Bill of Quantities upload bar. */
.bq-upload-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:14px 16px;border:1px solid #e3e6ee;border-radius:15px;background:#fff}
.bq-upload-bar strong{display:block;font-size:14px;color:#2c2c2c}
.bq-upload-bar small{display:block;margin-top:2px;font-size:12px;color:#6d7890;line-height:1.4}
.bq-upload-bar button{flex:none}
@media(max-width:560px){.bq-upload-bar{flex-direction:column;align-items:stretch}}
/* Viewers are read only: no add, edit, archive or upload controls anywhere. */
html[data-viewer] :is([data-act="new-milestone"],[data-act="new-task"],[data-act="edit-record"],[data-act="remove-record"],[data-act="upload-bq"],[data-ux="edit-task"],[data-form-open],.bq-upload-bar,form[data-form]:not([data-form="profile"])){display:none!important}
/* Dashboard, Projects by Portfolio: fixed columns so headers, rows and the Total line up, and one full-width line above Total. */
.portfolio-table-panel table{table-layout:fixed}
.portfolio-table-panel .portfolio-col-name{width:34%}.portfolio-table-panel .portfolio-col-status{width:20%}.portfolio-table-panel .portfolio-col-money{width:23%}
.portfolio-table-panel thead th{white-space:nowrap}.portfolio-table-panel tbody th{min-width:0!important}
.portfolio-table-panel :is(th,td){text-align:right;vertical-align:middle}
.portfolio-table-panel :is(thead th:first-child,tbody th,tfoot th){text-align:left}
.portfolio-table-panel :is(td:nth-child(2),th:nth-child(2)){text-align:left;white-space:normal}
.portfolio-table-panel tfoot tr,.portfolio-table-panel tfoot :is(th,td){border-top:1px solid #aebdd6!important}
.portfolio-table-panel tbody tr:last-child :is(th,td){border-bottom:0!important}
/* Words wrap only between words, never in the middle of a word. */
#app,#dialog,.eva-page{word-break:normal}
/* Deliverable status labels: each status has its own background colour (requested by the owner for these labels only). */
.badge.deliverable-status{display:inline-flex;align-items:center;min-height:26px;padding:3px 11px;border:0;border-radius:15px;font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap}
.badge.deliverable-status[data-status="waiting-approval"]{background:#fff4e0;color:#9a5b00}
.badge.deliverable-status[data-status="ordered"]{background:#e6efff;color:#1d4ed8}
.badge.deliverable-status[data-status="in-progress"]{background:#efe9ff;color:#5b21b6}
.badge.deliverable-status[data-status="partially-delivered"]{background:#e0f4fb;color:#0e6a8c}
.badge.deliverable-status[data-status="delivered"]{background:#e3f7ea;color:#15803d}
.badge.deliverable-status[data-status="accepted"]{background:#15803d;color:#fff}
.badge.deliverable-status[data-status="issue-replacement"]{background:#fde8e8;color:#b42318}
/* Schedule tree (list and timeline): indented by level, ▸/▾ on summary rows, like Microsoft Project. */
.schedule-tree{border:1px solid #e3e6ee;border-radius:15px;overflow:auto;max-height:min(72vh,760px);background:#fff}
.schedule-tree-head,.schedule-tree-row{display:grid;grid-template-columns:72px minmax(260px,1fr) 118px 118px 96px 70px 150px 44px;align-items:center;gap:10px;padding:0 14px;min-width:970px}
.schedule-tree-head{position:sticky;top:0;z-index:2;min-height:42px;background:#fff;border-bottom:1px solid #e3e6ee;font-size:13px;font-weight:600;color:#5f687d}
.schedule-tree-row{min-height:44px;border-bottom:1px solid #f0f2f6;font-size:14px;color:#2c2c2c}
.schedule-tree-row:hover{background:#fafbfc}
.schedule-tree-row.is-summary{font-weight:600}
.schedule-tree-row .wbs{color:#6d7890;font-size:13px}
.schedule-tree-row .tree-name,.gantt-task-name{display:flex;align-items:center;gap:6px;min-width:0;padding-left:calc(var(--depth,0) * 18px)}
.schedule-tree-row .task-name{overflow-wrap:break-word;word-break:normal}
.schedule-tree-row .tree-percent{font-variant-numeric:tabular-nums}
.tree-toggle{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:8px;background:transparent;color:#002366;font-size:13px;line-height:1;cursor:pointer}
.tree-toggle:hover{background:#f2f4f8}
.tree-toggle-space{flex:none;width:24px}
.gantt-row.is-summary .gantt-task-name strong{font-weight:700}
@media(max-width:760px){.schedule-tree-head{display:none}.schedule-tree-row{grid-template-columns:1fr auto;min-width:0;padding:10px 12px;gap:4px 10px}.schedule-tree-row .wbs,.schedule-tree-row .task-date{font-size:12px}}
.gantt-row .gantt-task-name{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;gap:6px;padding-left:calc(12px + var(--depth,0) * 18px)!important}
.gantt-row .gantt-task-name strong{text-align:left}
.shared-scurve-tooltip.is-pinned{pointer-events:auto;border-color:#002366}
.shared-scurve-tooltip strong{display:flex;align-items:center;justify-content:space-between;gap:8px}
.shared-scurve-tooltip-close{display:inline-grid;place-items:center;width:22px;height:22px;padding:0;border:1px solid #d9deea;border-radius:15px;background:#fff;color:#002366;font-size:14px;line-height:1;cursor:pointer}
/* Project Health in the project header: colour coded by state. */
.context-meta .context-health{display:inline-flex;align-items:center;min-height:26px;padding:3px 12px;border-radius:15px;font-size:13px;font-weight:600}
.context-meta .context-health[data-health="on-track"]{background:#e3f7ea;color:#15803d}
.context-meta .context-health[data-health="at-risk"]{background:#fff4e0;color:#9a5b00}
.context-meta .context-health[data-health="delayed"],.context-meta .context-health[data-health="critical"]{background:#fde8e8;color:#b42318}
/* Risk Registry: the team's mitigation and AiNA's proposed solution. */
.risk-mitigation{display:block;min-width:200px;font-size:13px;line-height:1.5;color:#2c2c2c}
.risk-solution{min-width:240px;max-width:380px}
.risk-solution p{margin:4px 0 0;font-size:13px;line-height:1.5;color:#2c2c2c;overflow-wrap:break-word}
.risk-solution-tag{display:inline-block;font-size:11px;font-weight:700;color:#5b21b6}
.risk-solution-empty{font-size:13px;color:#6d7890}
/* Documents register: file type label, coloured text only. */
.file-type{font-size:13px;font-weight:600;color:#2c2c2c;white-space:nowrap}
.file-type[data-file-type="pdf"]{color:#b42318}
.file-type[data-file-type="word"]{color:#1d4ed8}
.file-type[data-file-type="excel"]{color:#15803d}
.file-type[data-file-type="image"]{color:#5b21b6}
.file-type[data-file-type="dwg"]{color:#9a5b00}
/* Register summary counts: one compact row of chips sized to their content, not wide empty boxes. */
.panel .stats,.panel .delivery-stages{display:flex!important;flex-wrap:wrap;gap:8px;margin:12px 0 16px!important;grid-template-columns:none!important}
.panel .stats>.stat,.panel .delivery-stages>.delivery-stage{display:inline-flex!important;align-items:baseline;gap:8px;flex:0 0 auto;min-height:0!important;padding:7px 14px!important;border:1px solid #e3e6ee!important;border-radius:15px!important;background:#fff!important;container-type:normal}
.panel .stats>.stat>small,.panel .delivery-stages>.delivery-stage{font-size:12px!important;font-weight:600;letter-spacing:.02em;color:#5f687d;text-transform:none;padding:0}
.panel .stats>.stat>b,.panel .delivery-stages>.delivery-stage>b{margin:0!important;font-size:16px!important;font-weight:700;color:#002366;line-height:1.2}
.panel .stats>.stat>.stat-icon,.panel .stats>.stat>.stat-foot{display:none}
.risk-solution-use{margin-top:8px;min-height:32px;padding:0 12px;border:1px solid #d9deea;border-radius:15px;background:#fff;color:#002366;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.risk-solution-use:hover{border-color:#f7c88d}
.panel .stats>.stat>small,.panel .stats>.stat>b{white-space:nowrap}
.panel .stats>.stat>small{flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:max-content!important;overflow:visible!important}
.panel .stats>.stat>b{flex:0 0 auto!important;width:auto!important;min-width:0!important}
/* Documents folders: breadcrumb, folder tools and folder rows. White surfaces, navy text. */
.doc-folder-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0 10px}
.doc-crumbs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:14px;color:#6d7890}
.doc-crumb{padding:4px 6px;border:0;border-radius:15px;background:none;color:#002366;font:inherit;font-weight:600;cursor:pointer}
.doc-crumb:hover{color:#f59122}
.doc-crumb[aria-current="page"]{color:#2c2c2c;cursor:default}
.doc-folder-tools{display:flex;gap:8px;flex-wrap:wrap}
.doc-upload-folder{display:inline-flex;align-items:center;cursor:pointer}
.doc-folder-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin:0 0 16px}
.doc-folder{display:flex;align-items:center;gap:6px;padding:4px 6px 4px 4px;border:1px solid #e3e6ee;border-radius:15px;background:#fff}
.doc-folder:hover{border-color:#f7c88d}
.doc-folder-open{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:10px 10px;border:0;border-radius:15px;background:none;color:#002366;font:inherit;text-align:left;cursor:pointer}
.doc-folder-open svg{flex:none;width:22px;height:22px;color:#f59122}
.doc-folder-open span{flex:1;min-width:0;font-size:14px;font-weight:600;overflow-wrap:break-word}
.doc-folder-open small{flex:none;font-size:12px;color:#6d7890}
/* Folder cards v2: the name has the whole card width and only wraps between words. */
.doc-folder-bar{align-items:center}
.doc-crumbs{flex:1 1 280px;min-width:0}
.doc-folder-tools{flex:0 1 auto;justify-content:flex-end}
.doc-folder-tools>button,.doc-folder-tools>.doc-upload-folder{display:inline-flex;align-items:center;justify-content:center;min-height:40px;height:40px;padding:0 16px;border:1px solid #d9deea;border-radius:15px;background:#fff;color:#002366;font:inherit;font-size:14px;font-weight:700;white-space:nowrap;box-sizing:border-box;margin:0}
.doc-folder-tools>button:hover,.doc-folder-tools>.doc-upload-folder:hover{border-color:#f7c88d}
.doc-folder-list{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.doc-folder{position:relative;padding:0;align-items:stretch}
.doc-folder-open{align-items:flex-start;padding:14px 16px;gap:12px}
.doc-folder-open svg{margin-top:1px}
.doc-folder-text{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.doc-folder-text .doc-folder-name{font-size:14px;font-weight:600;line-height:1.35;color:#002366;overflow-wrap:normal!important;word-break:normal!important;hyphens:none}
.doc-folder-text small{font-size:12px;color:#6d7890}
.doc-folder-archive{position:absolute;right:12px;bottom:10px;padding:2px 4px;border:0;border-radius:15px;background:none;color:#6d7890;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.doc-folder-archive:hover{color:#b42318}
@media(max-width:640px){.doc-folder-tools{width:100%;justify-content:flex-start}}
.doc-folder:has(.doc-folder-archive) .doc-folder-open{padding-right:76px}
/* AiNA highlights colour coded by tone: a coloured edge and label, white surface. */
.eva-highlight[data-tone]{border-left:4px solid #c9d0dd}
.eva-highlight[data-tone="good"]{border-left-color:#15803d}.eva-highlight[data-tone="good"] strong{color:#15803d}
.eva-highlight[data-tone="watch"]{border-left-color:#d97706}.eva-highlight[data-tone="watch"] strong{color:#9a5b00}
.eva-highlight[data-tone="risk"]{border-left-color:#b42318}.eva-highlight[data-tone="risk"] strong{color:#b42318}
.eva-highlight[data-tone="info"]{border-left-color:#002366}
.doc-folder-rename{position:absolute;right:12px;top:10px;padding:2px 4px;border:0;border-radius:15px;background:none;color:#6d7890;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.doc-folder-rename:hover{color:#002366}
.doc-folder:has(.doc-folder-rename) .doc-folder-open{padding-right:76px}
/* AiNA voice call: the microphone button in the composer and the floating call panel. */
/* The call button sits in the bottom right corner of the composer. Send takes no room until there is text,
   then appears beside it. */
.eva-composer-tools>.eva-call-button{margin-left:auto}
.eva-composer-tools>button[type=submit]:not(.is-ready){width:0!important;min-width:0!important;margin-left:-10px;border-width:0!important;overflow:hidden}
.eva-call-button{display:inline-grid;place-items:center;width:38px;height:38px;flex:none;padding:0;border:1px solid #d9deea;border-radius:15px;background:#fff;color:#002366;cursor:pointer}
.eva-call-button svg{width:19px;height:19px}
.eva-call-button:hover{border-color:#f7c88d;color:#f59122}
.aina-call{position:fixed;right:20px;bottom:20px;z-index:60;width:min(340px,calc(100vw - 32px));display:grid;gap:10px;padding:16px 18px;border:1px solid #e3e6ee;border-radius:20px;background:#fff;box-shadow:0 16px 40px rgba(16,24,40,.14);font-family:var(--app-font)}
.aina-call-head{display:flex;align-items:center;gap:12px}
.aina-call-head strong{display:block;font-size:15px;color:#002366}
.aina-call-status{display:block;font-size:13px;font-weight:600;color:#5f687d}
.aina-call[data-state="listening"] .aina-call-status{color:#15803d}
.aina-call[data-state="thinking"] .aina-call-status,.aina-call[data-state="transcribing"] .aina-call-status{color:#5b21b6}
.aina-call[data-state="speaking"] .aina-call-status{color:#f59122}
.aina-call[data-state="error"] .aina-call-status{color:#b42318}
.aina-call-level{height:6px;border-radius:15px;border:1px solid #e3e6ee;overflow:hidden;background:#fff}
.aina-call-level i{display:block;height:100%;width:0;border-radius:15px;background:#15803d;transition:width .08s linear}
.aina-call[data-state="speaking"] .aina-call-level i{background:#f59122}
.aina-call-heard{margin:0;font-size:14px;line-height:1.45;color:#2c2c2c;overflow-wrap:break-word}
.aina-call-heard:empty{display:none}
.aina-call-hint{margin:0;font-size:12px;line-height:1.45;color:#6d7890}
.aina-call-actions{display:flex;gap:8px;justify-content:flex-end}
.aina-call-actions button{min-height:38px;padding:0 14px;border-radius:15px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.aina-call-end{border:1px solid #b42318;background:#fff;color:#b42318}
.aina-call-end:hover{border-color:#7a1a12;color:#7a1a12}
@media(max-width:640px){.aina-call{right:16px;bottom:16px}}
/* AiNA data analysis in the chat: charts from the sandbox, generated files and the script, for checking. */
.eva-analysis{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.eva-analysis-chart{margin:0;padding:10px;border:1px solid #e3e6ee;border-radius:15px;background:#fff}
.eva-analysis-chart img{display:block;width:100%;height:auto;min-height:60px;border-radius:15px}
.eva-analysis-chart figcaption{margin-top:6px;font-size:12px;color:#6d7890;text-align:center}
.eva-analysis-files{display:flex;flex-wrap:wrap;gap:8px}
.eva-analysis-code{border:1px solid #e3e6ee;border-radius:15px;background:#fff}
.eva-analysis-code summary{padding:10px 14px;font-size:13px;font-weight:600;color:#002366;cursor:pointer}
.eva-analysis-code p{margin:0 14px 8px;font-size:13px;color:#2c2c2c}
.eva-analysis-code pre{max-height:360px;margin:0 14px 14px;padding:12px;overflow:auto;border:1px solid #e3e6ee;border-radius:15px;background:#fff;font-size:12px;line-height:1.5;color:#2c2c2c;white-space:pre}
/* Document row actions: icon buttons with a coloured background (requested 2026-11-22). */
.table-actions .doc-icon-action{display:inline-grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:15px;cursor:pointer;transition:filter .15s,transform .15s}
.table-actions .doc-icon-action svg{width:18px;height:18px}
.table-actions .doc-icon-action[data-tone=view],.table-actions .doc-icon-action[data-tone=download]{background:#e8eefc;color:#002366}
.table-actions .doc-icon-action[data-tone=edit]{background:#fff1dc;color:#a15c07}
.table-actions .doc-icon-action[data-tone=archive]{background:#fde8e8;color:#b42318}
.table-actions .doc-icon-action:hover{filter:brightness(.95);transform:translateY(-1px)}
.table-actions .doc-icon-action:focus-visible{outline:2px solid #002366;outline-offset:2px}
.table-actions:has(.doc-icon-action){gap:8px}
/* Short forms (new folder, rename, edit document) open as a compact centred dialog instead of a full-height panel. */
dialog:has(form[data-compact-dialog]){inset:0;margin:auto;width:min(480px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 32px);padding:28px 28px 24px;border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 60px #0818362e}
dialog:has(form[data-compact-dialog]) h2{margin:0 36px 18px 0}
form[data-compact-dialog]{display:flex;flex-direction:column;gap:14px}
form[data-compact-dialog] .field{margin:0}
.compact-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
.compact-actions button{min-height:40px;padding:0 18px;border-radius:15px;font-weight:700}
.compact-actions button[type=submit]{border:1px solid #002366;background:#002366;color:#fff}
.compact-actions button[type=submit]:hover{background:#001a4d}
/* Documents right-click menu, also opened by the New button. */
.doc-menu{position:fixed;z-index:1200;min-width:220px;max-width:280px;padding:6px;border:1px solid #e3e6ee;border-radius:15px;background:#fff;box-shadow:0 14px 36px #0818362b;font-family:var(--app-font)}
.doc-menu [role=menuitem]{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:38px;padding:0 12px;border:0;border-radius:15px;background:transparent;color:#20283d;font:inherit;font-size:14px;font-weight:500;text-align:left;cursor:pointer}
.doc-menu [role=menuitem] svg{width:18px;height:18px;flex:none;color:#002366}
.doc-menu [role=menuitem]:hover,.doc-menu [role=menuitem]:focus-visible{background:#f2f4f8;outline:none}
.doc-menu [role=menuitem][data-danger],.doc-menu [role=menuitem][data-danger] svg{color:#b42318}
.doc-menu-separator{height:1px;margin:6px 8px;background:#e3e6ee}
.doc-menu-hint{margin:0;font-size:12px;color:#6d7890}
/* Documents: folders and files in one table, like a file explorer. */
.doc-name{display:inline-flex;align-items:center;gap:10px;min-width:0;font-weight:600;color:#20283d}
.doc-name-icon{display:inline-grid;place-items:center;width:32px;height:32px;flex:none;border-radius:15px}
.doc-name-icon svg{width:18px;height:18px}
.doc-name-icon[data-kind=folder]{background:#fff1dc;color:#c46a00}
.doc-name-icon[data-kind=file]{background:#eef1f7;color:#52607a}
button.doc-folder-link{min-height:0;padding:0;border:0;background:none;font:inherit;font-weight:700;color:#002366;text-align:left;cursor:pointer}
button.doc-folder-link:hover span:last-child{color:#f59122}
tr[data-folder-row]{cursor:default}
.doc-category{font-size:13px;font-weight:500;color:#52607a}
.doc-muted{color:#6d7890}
.file-type[data-file-type=folder]{color:#c46a00}
.table-actions .doc-icon-action[data-tone=open]{background:#e8eefc;color:#002366}
.doc-folder-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:4px 0 8px}
/* Register tables reach both edges of their card evenly (the width cap left a gap on the right). */
.panel>.table-wrap,.panel .table-wrap:not(.planning-table-wrap){max-width:none}
/* Status chips are colour coded: green done, blue under way, amber waiting, red late or at risk, grey not started. */
body .badge.status-chip{display:inline-flex;align-items:center;min-height:26px;padding:3px 11px;border:0;border-radius:15px;font-weight:600;line-height:1.3;white-space:nowrap}
body .badge.status-chip[data-tone="green"]{background:#e3f7ea;color:#15803d}
body .badge.status-chip[data-tone="blue"]{background:#e6efff;color:#1d4ed8}
body .badge.status-chip[data-tone="amber"]{background:#fff4e0;color:#9a5b00}
body .badge.status-chip[data-tone="red"]{background:#fde8e8;color:#b42318}
body .badge.status-chip[data-tone="purple"]{background:#efe9ff;color:#5b21b6}
body .badge.status-chip[data-tone="neutral"]{background:#f1f3f6;color:#475467}
/* Every table header is centred. */
body table thead th,body table thead th button{text-align:center !important}
/* Profile pictures set by the admin. */
.account>b.has-avatar,.profile-avatar.has-avatar{padding:0;overflow:hidden;background:#fff}
.account>b.has-avatar img,.profile-avatar.has-avatar img{display:block;width:100%;height:100%;object-fit:cover}
/* My Profile */
.profile .profile-section{display:grid;gap:14px;margin-bottom:16px}
.profile .profile-section h3{margin:0}
.profile .profile-section>p{margin:-6px 0 0;color:#667188;font-size:13px}
.profile-picture-actions{display:flex;flex-wrap:wrap;gap:8px}
.profile-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.profile-form label{display:grid;gap:6px;min-width:220px;flex:1 1 220px;max-width:360px;font-size:13px;font-weight:600;color:#002366}
.profile-form label small{font-weight:500;color:#667188}
.profile-form input{min-height:42px;padding:0 12px;border:1px solid #d9deea;border-radius:15px;font:inherit;font-size:14px}
.profile-form.profile-password{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:start;max-width:900px}
.profile-form.profile-password label{max-width:none}
.profile-form.profile-password button{grid-column:1/-1;justify-self:start}
.profile-form.profile-password{gap:12px 16px}.profile-form.profile-password label{min-width:0}.profile-form.profile-password input{width:100%;min-width:0;box-sizing:border-box}
/* Table data is centred like the headers. */
body table tbody td,body table tfoot td,body table tbody th{text-align:center !important}
/* Bank Guarantee tab: the form opens in the dialog as a compact two-column grid. */
.guarantee-panel{margin-bottom:16px}
.guarantee-panel .panel-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.guarantee-panel [data-guarantee-add]{display:inline-flex;align-items:center;gap:6px;flex:none}
.guarantee-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;width:100%;min-width:0;box-sizing:border-box}
.guarantee-form .wide{grid-column:1/-1}
.guarantee-form label{display:grid;gap:5px;font-size:13px;font-weight:600;color:#002366}
.guarantee-form input:not([type=file]),.guarantee-form select,.guarantee-form textarea{width:100%;min-height:40px;padding:7px 12px;border:1px solid #d9deea;border-radius:15px;font:inherit;font-size:14px;box-sizing:border-box}
.guarantee-form textarea{min-height:60px;resize:vertical}
.guarantee-file{display:grid;gap:4px;justify-items:start}
.guarantee-file small{color:#667188;font-size:12px;font-weight:500}
.guarantee-actions{display:flex;gap:8px;margin-top:4px}
@media(max-width:700px){.guarantee-form{grid-template-columns:1fr;width:100%}}
/* Documents table: the title column reads from the left, the actions sit in the centre. */
body table:has(.doc-name) :is(thead th,tbody td,tbody th):first-child{text-align:left !important}
body table:has(.doc-name) .table-actions{justify-content:center}
/* Milestone and item columns read from the left. Long item text is clamped to two lines with View more. */
body table[data-first-left] :is(thead th,tbody td,tbody th):first-child{text-align:left !important}
.cell-clamp{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cell-clamp.is-open{display:block;-webkit-line-clamp:unset}
body .cell-more{min-height:0;margin-top:4px;padding:0;border:0;background:none;color:#002366;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
body .cell-more:hover{color:#f59122}

/* Critical path (from MS Project) */
.critical-tag{flex:none;display:inline-flex;align-items:center;min-height:20px;padding:1px 8px;border-radius:15px;background:#fde8e8;color:#b42318;font-size:11px;font-weight:700;white-space:nowrap}
.schedule-tree-row .tree-float{font-variant-numeric:tabular-nums;color:#5f687d}
.gantt-bar.is-critical{outline:2px solid #d92d20;outline-offset:1px}
.gantt-legend-swatch.status-critical{background:#fff;border:2px solid #d92d20}
.critical-toggle[aria-pressed="true"]{border-color:#d92d20;color:#b42318}
/* Several action owners, one per line */
.owner-list{display:inline-flex;flex-direction:column;align-items:center;gap:2px}
/* Critical path rows stand out in the Schedule list and timeline */
.schedule-tree-row.is-critical,.gantt-row.is-critical{background:#fff4f2}
.schedule-tree-row.is-critical:hover{background:#ffe9e5}
/* Critical path only: an on/off switch */
.critical-switch{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid #d9deea;border-radius:15px;background:#fff;font:inherit;font-size:14px;font-weight:600;color:#2c2c2c;cursor:pointer}
.critical-switch-track{position:relative;display:inline-block;width:34px;height:20px;border-radius:15px;background:#d0d5dd;transition:background .15s}
.critical-switch-track>span{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.2);transition:transform .15s}
.critical-switch[aria-checked="true"]{border-color:#d92d20;color:#b42318}
.critical-switch[aria-checked="true"] .critical-switch-track{background:#d92d20}
.critical-switch[aria-checked="true"] .critical-switch-track>span{transform:translateX(14px)}
/* Approved actions for viewers */
.approved-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.approved-list li{display:grid;gap:4px;padding:10px 14px;border:1px solid #eef1f5;border-left:4px solid #15803d;border-radius:15px}
.approved-list b{font-size:14px;color:#0b214a}
.approved-list p{margin:0;font-size:13px;line-height:1.55;color:#2c2c2c}
.approved-list small{font-size:12px;color:#60677b}
/* AiNA tables: the first column (project, task, item) reads from the left, the figures stay centred. */
body table.eva-matrix:not(.eva-viz-pivot) :is(thead th,tbody td,tbody th):first-child{text-align:left !important}
/* A critical task that has not started is orange on the timeline, not grey, so the critical path stands out. */
.gantt-track .gantt-bar.is-critical:is(.status-not-started,.status-unrecorded){background:#f59122}
.gantt-legend-swatch.status-critical{background:#f59122;border:2px solid #d92d20}
.gantt-track .gantt-bar.is-critical:is(.status-not-started,.status-unrecorded)>span{background:#c2410c}
/* Footer on every page: iSeal Solution logo and copyright */
.site-footer{margin-left:0;width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;padding:18px 16px 22px;color:#667188;font-size:12px;text-align:center}
.site-footer img{display:block;width:auto;height:22px}
.app-footer{gap:12px;border-top:1px solid #e3e6ee;padding-top:16px}
.app-footer>span:first-child,.app-footer #save-status{flex:1 1 0}
.app-footer #save-status{text-align:right}
.app-footer-brand{display:inline-flex;align-items:center;gap:12px;color:#667188;font-size:12px;white-space:nowrap}
.app-footer-brand img{display:block;width:auto;height:22px}
@media(max-width:700px){.app-footer{flex-wrap:wrap}.app-footer-brand{order:-1;flex:1 1 100%;flex-direction:column;gap:6px;white-space:normal;text-align:center;padding-bottom:6px}}
.auth-page{grid-template-rows:1fr auto}
.auth-page .site-footer{padding-bottom:0}
/* Donut legends (Business Unit, Impact): the legend sits under the donut and uses the full card width, so names stay on one line */
.portfolio-graph.business .portfolio-donut-wrap,.portfolio-graph.impact .portfolio-donut-wrap{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:14px}
.portfolio-graph.business .portfolio-donut,.portfolio-graph.impact .portfolio-donut{align-self:center}
.portfolio-graph.business .portfolio-legend,.portfolio-graph.impact .portfolio-legend{width:100%;max-width:none}
.portfolio-graph.business .portfolio-legend>button,.portfolio-graph.impact .portfolio-legend>button{grid-template-columns:8px minmax(0,1fr) auto;column-gap:8px;text-align:left}
.portfolio-graph.business .portfolio-legend span,.portfolio-graph.impact .portfolio-legend span{white-space:normal;overflow:visible}
.portfolio-graph.business .portfolio-legend b,.portfolio-graph.impact .portfolio-legend b{white-space:nowrap}
.portfolio-graph.business .portfolio-donut-wrap,.portfolio-graph.impact .portfolio-donut-wrap{justify-content:center}
.portfolio-graph.business .portfolio-legend,.portfolio-graph.impact .portfolio-legend{flex:none;display:grid;align-content:start;gap:4px}
.portfolio-graph.business .portfolio-legend>button,.portfolio-graph.impact .portfolio-legend>button{min-height:0;height:auto;padding:4px 0}
/* Projects by Portfolio: the Portfolio column reads from the left, and project statuses are colour coded chips */
.portfolio-table-panel :is(thead th:first-child,tbody th,tfoot th){text-align:left!important}
.portfolio-table-panel tbody th button{display:block;width:100%;text-align:left!important;justify-content:flex-start}
.portfolio-table-panel .portfolio-status-cell{white-space:normal}
.portfolio-table-panel .portfolio-status-cell .status-chip{margin:2px 4px 2px 0}
/* S-Curve Progress Variance: the figure stays in the normal text colour, only the On time label is green */
.shared-scurve-position>div.is-on-time strong{color:#101828}
