/* ERP surfaces v20261005. Desktop applications only; mobile has its own design. */
.t-PageBody {
    --swf-surface-border: #d9e3e1;
    --swf-surface-ink: #23443f;
    --swf-surface-blue: #eef6fa;
    --swf-surface-green: #edf7f3;
}

/* Native framed tools, not structural/no-UI containers or the approved dashboard. */
.t-Region:not(.t-Region--noUI):not(.t-Region--carousel):not(.swf-dashboard-chart):not(.swf-alert-summary):not(.swf-people-highlights) {
    border: 1px solid var(--swf-surface-border);
    border-top: 3px solid #3886a8;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(28, 57, 50, .06);
}
.t-Region:not(.t-Region--noUI):not(.swf-dashboard-chart):not(.swf-alert-summary):not(.swf-people-highlights) > .t-Region-header {
    background: var(--swf-surface-blue) !important;
    color: var(--swf-surface-ink) !important;
    border-bottom: 1px solid var(--swf-surface-border);
    border-radius: 5px 5px 0 0;
}
.t-Region:not(.t-Region--noUI):not(.swf-dashboard-chart):not(.swf-alert-summary):not(.swf-people-highlights):has(.t-Form-fieldContainer) {
    border-top-color: #00846c;
}
.t-Region:not(.t-Region--noUI):not(.swf-dashboard-chart):not(.swf-alert-summary):not(.swf-people-highlights):has(.t-Form-fieldContainer) > .t-Region-header {
    background: var(--swf-surface-green) !important;
}
.t-Region:not(.t-Region--noUI) > .t-Region-header .t-Region-title {
    font-weight: 600;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
/* Nested regions stay flat; do not build layers of raised cards. */
.t-Region .t-Region:not(.t-Region--noUI):not(.swf-dashboard-chart) {
    border: 0;
    border-top: 1px solid var(--swf-surface-border);
    border-radius: 0;
    box-shadow: none;
}
.t-Region .t-Region:not(.t-Region--noUI):not(.swf-dashboard-chart) > .t-Region-header {
    border-radius: 0;
}

.t-BreadcrumbRegion {
    background: #f6f8f7;
    border-bottom: 1px solid var(--swf-surface-border);
    box-shadow: none;
}
.t-BreadcrumbRegion-titleText {
    color: #23443f;
    letter-spacing: 0;
}
.t-ButtonRegion {
    border-color: var(--swf-surface-border);
    border-radius: 6px;
    box-shadow: none;
}
.t-Body-content .t-Button,
.t-Body-side .t-Button,
.t-Dialog-body .t-Button {
    border-radius: 6px;
    letter-spacing: 0;
}
.t-Region-header .t-Button:focus-visible,
.t-Body-content .t-Button:focus-visible {
    outline: 2px solid #176a9b;
    outline-offset: 3px;
}

/* Keep report scrolling, frozen columns and menus under native APEX control. */
.a-IRR-toolbar,
.a-IG-header {
    background: #f7faf9;
    border-color: var(--swf-surface-border);
}
.a-IRR-header,
.t-Report-colHead {
    background: #f0f5f7;
    color: #29454d;
    font-weight: 600;
}
.a-IRR-table td,
.t-Report-cell {
    border-color: #e5ecea;
}
.a-IRR-paginationWrap {
    border-color: var(--swf-surface-border);
}
.t-Form-label {
    color: #344a46;
    letter-spacing: 0;
}
/* Legacy rules paint two required markers. Keep the item-wrapper marker only. */
.t-Form-fieldContainer.is-required:not(.t-Form-fieldContainer--floatingLabel) > .t-Form-inputContainer:has(> .t-Form-itemWrapper)::before {
    content: none;
}
.t-Form-inputContainer :is(input.apex-item-text, select.apex-item-select, textarea.apex-item-textarea):not(.apex-page-item-error):not([aria-invalid="true"]) {
    border-radius: 6px;
    border-color: #afbfba;
}
.t-Form-inputContainer :is(input.apex-item-text, select.apex-item-select, textarea.apex-item-textarea):focus {
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .t-Region-headerItems--title { min-width: 0; }
    .t-BreadcrumbRegion-titleText { overflow-wrap: anywhere; }
}
@media (forced-colors: active) {
    .t-Region:not(.t-Region--noUI) { border-color: CanvasText; box-shadow: none; }
    .t-Region:not(.t-Region--noUI) > .t-Region-header {
        background: Canvas !important;
        color: CanvasText !important;
    }
}

/* Reusable ERP component classes. No page or application IDs. */
:root {
    --erp-ink: #23443f;
    --erp-line: #dae5e1;
    --erp-green: #00846c;
    --erp-blue: #327ea2;
    --erp-rose: #b74772;
}
.erp-section { margin-block: .75rem; }
.erp-section > .t-Region-header { background: transparent !important; border: 0; color: var(--erp-ink) !important; }
.erp-section > .t-Region-header .t-Region-title { font-size: 1rem; font-weight: 650; }
.erp-cards .a-CardView {
    border: 1px solid var(--erp-line);
    border-inline-start: 3px solid var(--erp-blue);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(35,68,63,.05);
    min-width: 0;
    height: 100%;
}
.erp-cards--green .a-CardView { border-inline-start-color: var(--erp-green); background: #f3faf7; }
.erp-cards--blue .a-CardView { background: #f3f8fb; }
.erp-cards--rose .a-CardView { border-inline-start-color: var(--erp-rose); background: #fff5f8; }
.erp-cards .a-CardView-title { font-size: .8125rem; font-weight: 500; color: #49605a; letter-spacing: 0; }
.erp-cards .a-CardView-subTitle { font-size: .9375rem; font-weight: 600; color: var(--erp-ink); margin-top: .375rem; letter-spacing: 0; }
.erp-cards :is(.a-CardView-title,.a-CardView-subTitle,.a-CardView-mainContent) { overflow-wrap: anywhere; }
.erp-cards .a-CardView-icon { color: var(--erp-blue); background: #e5f1f6; }
.erp-cards--green .a-CardView-icon { color: #00715d; background: #dff2e9; }
.erp-cards--rose .a-CardView-icon { color: #a73561; background: #fce5ee; }
.erp-cards .a-CardView-header { padding: .875rem 1rem; }
.erp-cards .a-CardView-body:empty { display: none; }
.erp-profile-intro .a-CardView-items { grid-template-columns: minmax(0,1fr) !important; }
.erp-profile-intro .a-CardView {
    min-height: 0;
    display: grid;
    grid-template-columns: 5.5rem minmax(0,1fr);
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--erp-line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding-block: 1rem;
}
.erp-profile-intro .a-CardView-media {
    grid-column: 1; grid-row: 1 / span 3;
    width: 4.25rem; height: 4.25rem;
    margin: .25rem;
    padding: 3px;
    border: 2px solid var(--erp-green);
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
}
.erp-profile-intro .a-CardView-media img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.erp-profile-intro .a-CardView-header,
.erp-profile-intro .a-CardView-body { grid-column: 2; padding: .25rem .5rem; min-width: 0; }
.erp-profile-intro .a-CardView:not(:has(.a-CardView-media)) { grid-template-columns: minmax(0,1fr); }
.erp-profile-intro .a-CardView:not(:has(.a-CardView-media)) :is(.a-CardView-header,.a-CardView-body) { grid-column: 1; }
.erp-profile-intro .a-CardView-title { font-size: 1.375rem; color: var(--erp-ink); font-weight: 650; overflow-wrap: anywhere; }
.erp-profile-intro .a-CardView-subTitle { color: #50645e; font-size: .875rem; overflow-wrap: anywhere; }
.erp-profile-number { display: inline-flex; align-items: center; gap: .375rem; }
.erp-profile-number > .fa { color: var(--erp-green); }
.erp-profile-intro .a-CardView-badge { border-radius: 4px; color: #006550; background: #e1f3ea; }
.erp-profile-intro .a-CardView-body { color: #50645e; font-size: .875rem; }
.erp-profile-intro .a-CardView-icon { color: #00846c; background: #e1f3ea; }
.erp-note { padding: .75rem 1rem; border-inline-start: 3px solid #327ea2; background: #eef6fa; color: #294b5b; border-radius: 4px; }
@media(max-width:640px) {
    .erp-cards .a-CardView-items { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .erp-profile-intro .a-CardView-items { grid-template-columns: minmax(0,1fr) !important; }
    .erp-profile-intro .a-CardView-title { font-size: 1.125rem; }
    .erp-cards .a-CardView-header { padding: .75rem; }
    .erp-cards .a-CardView-header { grid-template-columns: minmax(0,1fr); gap: .5rem; }
    .erp-cards .a-CardView-iconWrap { grid-column: 1; grid-row: 1; }
    .erp-cards .a-CardView-headerBody { min-width: 0; grid-column: 1; grid-row: 2; }
}
@media(forced-colors:active) {
    .erp-cards .a-CardView { border: 1px solid CanvasText; box-shadow: none; }
}

.erp-news {display:flex;align-items:center;gap:12px;border-block:1px solid #dce7e3;background:#eff7f4;padding:10px 12px;color:#24483f;margin-bottom:16px;min-width:0;}
.erp-news-heading {display:flex;gap:8px;align-items:center;flex-shrink:0;font-size:14px;}
.erp-news-window {overflow:hidden;min-width:0;flex:1;}
.erp-news-track {display:flex;width:max-content;animation:erp-news-scroll 90s linear infinite;}
.erp-news ul {display:flex;align-items:center;gap:36px;list-style:none;margin:0;padding:0 36px 0 0;}
.erp-news li {display:flex;gap:10px;align-items:center;max-width:900px;white-space:nowrap;}
.erp-news li>span:last-child {max-width:600px;overflow:hidden;text-overflow:ellipsis;}
.erp-news:hover .erp-news-track,.erp-news:focus-within .erp-news-track,.erp-news.is-paused .erp-news-track {animation-play-state:paused;}
.erp-news-pause {flex-shrink:0;min-width:40px;min-height:40px;}
.erp-news-details {margin:-8px 0 18px;color:#315d51;}
.erp-news-details summary {cursor:pointer;padding:8px;font-weight:600;}
.erp-news-details ul {padding:0;list-style:none;}
.erp-news-details li {display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;padding:14px 8px;border-bottom:1px solid #dce7e3;overflow-wrap:anywhere;}
.erp-news-details li>span:last-child {grid-column:2;white-space:pre-wrap;}
.erp-news-empty {padding:12px;border-block:1px solid #dce7e3;color:#315d51;margin-bottom:16px;display:flex;gap:10px;flex-wrap:wrap;}
.erp-news-empty>span:last-child {color:#61746d;}
.erp-news-admin article {display:flex;justify-content:space-between;gap:12px;padding:14px 4px;border-bottom:1px solid #dce7e3;flex-wrap:wrap;}
.erp-news-admin article>a {font-weight:600;}
.erp-news-admin article>span {color:#61746d;}
@keyframes erp-news-scroll {to {transform:translateX(-50%);}}
@media(prefers-reduced-motion:reduce) {.erp-news-track {animation:none;}.erp-news-window {overflow-x:auto;}.erp-news-track ul[aria-hidden] {display:none;}}
@media(max-width:640px) {.erp-news {flex-wrap:wrap;gap:8px;}.erp-news-heading {flex:1;}.erp-news-window {order:3;flex-basis:100%;}.erp-news li {font-size:13px;}}

/* Keep native report data intact; wide results scroll within the report. */
.a-IRR-table th,
.a-IRR-table td {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}
.a-IRR-tableContainer { overflow-x: auto; }

/* All employee workspace sections use the same shared framed-tool treatment. */
/* The APEX region is a layout wrapper; its children own the visible borders. */
.t-Region:has(.swf-profile):has(.swf-grid) {
    border: 0 !important; box-shadow: none !important; background: transparent;
}
.t-Body-content .swf-grid { align-items: stretch; }
.swf-grid > .swf-section {
    --erp-section-accent: var(--erp-green); --erp-section-header: #edf7f3;
    border: 1px solid var(--erp-line); border-top: 3px solid var(--erp-section-accent);
    border-radius: 8px; box-shadow: 0 2px 7px rgba(35,68,63,.06); overflow: hidden;
    display: flex; flex-direction: column; min-width: 0;
}
.swf-grid > .swf-section:nth-child(4n+2) { --erp-section-accent: var(--erp-blue); --erp-section-header: #eef6fa; }
.swf-grid > .swf-section:nth-child(4n+3) { --erp-section-accent: #b57b12; --erp-section-header: #fcf7eb; }
.swf-grid > .swf-section:nth-child(4n+4) { --erp-section-accent: var(--erp-rose); --erp-section-header: #fcf0f5; }
.swf-grid .swf-section-head { background: var(--erp-section-header); color: var(--erp-ink); border-bottom-color: var(--erp-line); }
.swf-grid .swf-section-head h2 { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.swf-grid .swf-section-head h2 > .fa { color: var(--erp-section-accent); }
.swf-grid .swf-section-head > .t-Button { flex-shrink: 0; }
.swf-grid .swf-records { flex: 1; }
.swf-grid .swf-record { background: #fff; border-bottom-color: var(--erp-line); padding: 16px; }
.swf-grid .swf-record:nth-child(even) { background: #f6f9f8; }
.swf-grid .swf-record:hover { background: #edf5f2; }
.swf-grid .swf-record-copy > strong { color: var(--erp-ink); }
.swf-grid .swf-record-copy > span { font-variant-numeric: tabular-nums; }
.swf-grid .swf-record:focus-visible { outline: 2px solid var(--erp-green); outline-offset: -3px; }
.swf-grid .swf-empty { color: #61716b; padding: 18px 16px; }
.t-Body-content .swf-profile { border-color: var(--erp-line); border-top: 3px solid var(--erp-green); box-shadow: 0 2px 7px rgba(35,68,63,.06); }

/* Hide the public release label; retain footer navigation. */
.t-Footer-version { display: none !important; }

/* Remove the entire release footer, including its reserved space. */
.t-Footer { display: none !important; }
