.profile-x-page { padding: .8rem clamp(.75rem, 1.5vw, 1.5rem); color: #17313b; width: 100%; }
.profile-x-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #0b756d; padding-bottom: .7rem; }
.profile-x-head h1 { margin: .1rem 0; font-size: 1.4rem; }
.profile-x-head p { margin: .2rem 0; }
.profile-x-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin: .75rem 0; }
.profile-x-kpis > div { min-width: 0; padding: .55rem .7rem; border: 1px solid #c6d9d3; border-left: 3px solid #0b756d; background: #f4faf7; }
.profile-x-kpis span { display: block; font-size: .76rem; color: #48625d; }
.profile-x-kpis strong { display: block; font-size: 1.08rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile-x-total-chart { min-height: 220px; max-width: 100%; overflow: hidden; border: 1px solid #d7e1de; background: linear-gradient(180deg, #fbfdfc, #f3f8f6); }
.profile-x-total-chart svg { display: block; width: 100%; height: 220px; }
.profile-x-total-grid { fill: none; stroke: #d6e1dd; stroke-width: 1; }
.profile-x-total-actual, .profile-x-total-epys, .profile-x-total-partial, .profile-x-total-forecast { fill: none; stroke-width: 2.3; vector-effect: non-scaling-stroke; }
.profile-x-total-actual { stroke: #087d73; }
.profile-x-total-epys { stroke: #d48a20; }
.profile-x-total-partial { stroke: #71848b; stroke-dasharray: 5 4; }
.profile-x-total-forecast { stroke: #1769aa; stroke-dasharray: 8 4; }
.profile-x-total-legend { display: flex; flex-wrap: wrap; gap: .45rem 1rem; padding: .35rem .6rem; color: #37514c; font-size: .78rem; }
.profile-x-total-legend span::before { content: ""; display: inline-block; width: .75rem; height: .2rem; margin: 0 .35rem .15rem 0; background: #087d73; }
.profile-x-total-legend span:nth-child(2)::before { background: #d48a20; }
.profile-x-total-legend span:nth-child(3)::before { background: #71848b; }
.profile-x-total-legend span:nth-child(4)::before { background: #1769aa; }
.profile-x-total-empty { padding: .8rem; color: #526b65; }
.profile-x-section-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; max-width: 100%; padding: .6rem 0; }
.profile-x-section-nav button { min-width: 0; padding: .55rem .65rem; border: 1px solid #b7d4cc; border-radius: .45rem; background: #f7fbf9; color: #17313b; font-size: .9rem; cursor: pointer; }
.profile-x-section-nav button[aria-current="page"] { background: #0b756d; color: #fff; border-color: #0b756d; font-weight: 700; }
.profile-x-section-nav button:focus-visible, .profile-x-page button:focus-visible { outline: 2px solid #0b756d; outline-offset: 2px; }
.profile-x-module-section { margin-top: .75rem; padding: .75rem; border: 1px solid #cedbd8; border-radius: .55rem; background: #fff; }
.profile-x-module-section h2 { margin: 0 0 .5rem; font-size: 1.06rem; }
.profile-x-page { min-width: 0; max-width: 100%; box-sizing: border-box; overflow-x: hidden; }
.epias-module-card[data-epias-profile-link] { display: block; text-decoration: none; }
.epias-module-card[data-epias-profile-link]:focus-visible { outline: 3px solid #0b756d; outline-offset: 2px; }
.nav-menu .nav-link[aria-current="page"] { background: var(--nav-pill-hover); font-weight: 700; }
.profile-x-scope { background: #eef6f3; border-left: 3px solid #0b756d; padding: .6rem; }
.profile-x-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin: .7rem 0; }
.profile-x-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding: .45rem 0; font-size: .85rem; }
.profile-x-bulk button:disabled { opacity: .55; cursor: not-allowed; }
.profile-x-advanced { flex: 1 0 100%; }
.profile-x-advanced summary { cursor: pointer; color: #0b756d; font-weight: 700; }
.profile-x-filters-advanced { display: flex; flex-wrap: wrap; gap: .5rem; padding: .45rem 0; }
.profile-x-filters label { display: flex; flex-direction: column; min-width: 9rem; gap: .2rem; }
.profile-x-filters input { max-width: 16rem; }
.profile-x-table-wrap { overflow: auto; max-height: min(55vh, 570px); border: 1px solid #cedbd8; }
.profile-x-table-wrap table { border-collapse: collapse; min-width: 1250px; width: 100%; font-size: .84rem; }
.profile-x-table-wrap th { position: sticky; top: 0; background: #e7f0ed; z-index: 1; text-align: left; }
.profile-x-table-wrap th, .profile-x-table-wrap td { padding: .4rem .5rem; border-bottom: 1px solid #d7e1de; vertical-align: top; }
.profile-x-table-wrap td:last-child { min-width: 13rem; }
.profile-x-table-wrap td:last-child button { margin: .15rem; }
.profile-x-work-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.profile-x-work-actions label { display: inline-flex; align-items: center; gap: .4rem; }
#profileXApprovedStatus, #profileXExcelPreview { padding: .5rem 0; }
.profile-x-pages { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: .7rem; }
.profile-x-detail { margin-top: .9rem; padding: .8rem; border: 1px solid #b7d4cc; background: #f7fbf9; }
.profile-x-detail pre { white-space: pre-wrap; word-break: break-word; }
.profile-x-detail label { display: inline-flex; flex-direction: column; margin: .4rem; }
.profile-x-proposal-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .45rem; margin-top: .6rem; }
.profile-x-proposal-form label { display: flex; min-width: 0; margin: 0; }
.profile-x-proposal-form input, .profile-x-proposal-form textarea { min-width: 0; width: 100%; box-sizing: border-box; }
.profile-x-proposal-form button { align-self: end; }
.profile-x-membership { margin-top: 1rem; padding: .75rem; border: 1px solid #b7d4cc; border-radius: .5rem; background: #f7fbf9; }
.profile-x-membership .profile-x-proposal-form { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .65rem; align-items: end; }
.profile-x-membership .profile-x-proposal-form label { display: grid; gap: .25rem; align-content: start; }
.profile-x-membership .profile-x-proposal-form select,
.profile-x-membership .profile-x-proposal-form output { min-width: 0; width: 100%; box-sizing: border-box; }
.profile-x-membership .profile-x-proposal-form output { padding: .45rem .35rem; overflow-wrap: anywhere; }
.profile-x-membership .profile-x-work-actions { margin-top: .6rem; }
.profile-x-membership #profileXMembershipList { max-height: 15rem; overflow: auto; }
.profile-x-proposal-item { border-top: 1px solid #c8dcd5; padding: .6rem 0; overflow-wrap: anywhere; }
.profile-x-proposal-item button { margin-left: .4rem; }
.profile-x-launch { display: flex; align-items: center; gap: .7rem; padding: .5rem; }
.profile-x-toolbar { display: grid; grid-template-columns: minmax(145px, .75fr) minmax(210px, 1.1fr) minmax(250px, 1.4fr) auto; align-items: end; gap: .65rem; padding: .75rem 0 .25rem; }
.profile-x-toolbar label { display: grid; gap: .25rem; min-width: 0; font-weight: 650; }
.profile-x-toolbar input, .profile-x-toolbar select { width: 100%; min-width: 0; box-sizing: border-box; }
.profile-x-primary { min-height: 2.55rem; padding: .55rem 1rem; border: 1px solid #075f58; border-radius: .35rem; background: #087d73; color: #fff; font-weight: 700; cursor: pointer; }
.profile-x-primary:hover { background: #06685f; }
.profile-x-primary:disabled { opacity: .6; cursor: wait; }
.profile-x-section-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.profile-x-section-title h2 { margin: 0; }
.profile-x-section-title p { margin: .2rem 0; color: #48625d; }
.profile-x-advanced-operations, .profile-x-work-tools { margin: .65rem 0; padding: .55rem .7rem; border: 1px solid #cbd9d5; border-radius: .4rem; background: #f8fbfa; }
.profile-x-advanced-operations > summary, .profile-x-work-tools > summary { cursor: pointer; color: #285d57; font-weight: 700; }
.profile-x-advanced-subsection { margin: .5rem 0; padding: .45rem; border: 1px solid #d5e1dd; border-radius: .35rem; }
.profile-x-advanced-subsection > summary { cursor: pointer; color: #48625d; font-weight: 650; }
.profile-x-table-wrap table { min-width: 1040px; }
@media (max-width: 1000px) { .profile-x-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-x-toolbar .profile-x-primary { justify-self: start; } }
@media (max-width: 900px) { .profile-x-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .profile-x-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .profile-x-page { padding: .55rem; } .profile-x-head { align-items: flex-start; flex-direction: column; } .profile-x-toolbar { grid-template-columns: minmax(0, 1fr); } .profile-x-toolbar > * { width: 100%; } .profile-x-filters label, .profile-x-filters input { width: 100%; max-width: none; } .profile-x-proposal-form { grid-template-columns: 1fr; } .profile-x-table-wrap { max-width: 100%; } .profile-x-module-section { padding: .55rem; } .profile-x-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-x-kpis strong { font-size: .9rem; } .profile-x-section-title { align-items: flex-start; flex-direction: column; } }
.profile-x-hourly { min-width: 0; margin-top: 1rem; }
.profile-x-hourly-chart { width: 100%; height: 260px; min-width: 0; }
.profile-x-hourly-table { max-height: 320px; overflow: auto; max-width: 100%; }
.profile-x-hourly-table table { width: 100%; min-width: 620px; border-collapse: collapse; }
.profile-x-hourly-table th, .profile-x-hourly-table td { padding: .35rem .55rem; border-bottom: 1px solid #d5dedb; text-align: right; white-space: nowrap; }
.profile-x-hourly-table th:first-child, .profile-x-hourly-table td:first-child { text-align: left; }
.profile-x-scan-groups { width: 100%; }
.profile-x-scan-groups > div { max-height: 14rem; overflow: auto; white-space: pre-line; line-height: 1.5; }
.profile-x-plan-preview { margin: 8px 0; padding: 8px; border: 1px solid var(--border-color, #b4c7c2); border-radius: 6px; }
.profile-x-plan-preview > summary { cursor: pointer; font-weight: 700; }
.profile-x-plan-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.profile-x-plan-controls label { display: grid; gap: 3px; min-width: 130px; }
.profile-x-plan-controls input, .profile-x-plan-controls select { max-width: 220px; width: 100%; }
.profile-x-plan-chart { min-height: 230px; width: 100%; }
.profile-x-plan-table { max-height: 260px; overflow: auto; }
.profile-x-plan-table table { width: 100%; border-collapse: collapse; }
.profile-x-plan-table th, .profile-x-plan-table td { padding: 5px 8px; border-bottom: 1px solid var(--border-color, #d7e1de); text-align: left; }
@media (max-width: 600px) { .profile-x-plan-controls label, .profile-x-plan-controls input, .profile-x-plan-controls select { width: 100%; max-width: none; } }
