/* SIGMA internal interface. Load after portal/workspace/trials styles.
 * Only presentation: no new workflows, permission changes or data mutations.
 * The approved top navigation and public survey pages are deliberately untouched.
 */
#scenc-portal {
    --sigma-ui-control: 44px;
    --sigma-ui-compact: 36px;
    --sigma-ui-panel: 24px;
    --sigma-ui-tint: #f1f6fc;
    --sigma-ui-shadow: 0 12px 32px #17375318, 0 2px 8px #1737530a;
    --sigma-ui-success: #1c704c;
    --sigma-ui-danger: #a53e3e;
}

/* Layout: allow content to shrink before it can push a page beyond the viewport. */
#scenc-portal .scenc-main {
    width: 100%;
    min-width: 0;
    max-width: 1680px;
    margin-inline: auto;
    padding: 32px clamp(16px, 2.5vw, 40px);
}
#scenc-portal .scenc-page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px 24px;
    margin-bottom: 24px;
}
#scenc-portal .scenc-page-head > div:first-child {
    flex: 1 1 22rem;
    min-width: 0;
}
#scenc-portal .scenc-page-head h1,
#scenc-portal .scenc-panel-heading h2 {
    overflow-wrap: anywhere;
    text-wrap: pretty;
}
#scenc-portal .sigma-crm-page-head { position: relative; padding: clamp(20px, 2vw, 28px); border: 1px solid #d7e5f1; border-radius: 18px; background: radial-gradient(circle at 94% 9%, #dceefb 0, transparent 29%), linear-gradient(120deg, #fff 0%, #f5faff 100%); box-shadow: 0 12px 28px #1737530b, inset 0 1px #fff; }
#scenc-portal .sigma-crm-page-head::before { content: ''; position: absolute; inset-inline-start: 0; top: 20px; bottom: 20px; width: 4px; border-radius: 0 99px 99px 0; background: linear-gradient(#2777ba, #72b4d8); }
#scenc-portal .sigma-crm-page-head h1 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.14; font-weight: 750; letter-spacing: -.035em; color: #0d3055; }
#scenc-portal .sigma-crm-page-head p { max-width: 720px; margin-top: 9px; font-size: 13.5px; line-height: 1.5; color: #56718c; }
#scenc-portal .scenc-main[data-module=crm] .scenc-panel-heading h2 { font-size: clamp(20px, 1.7vw, 24px) !important; line-height: 1.25; font-weight: 730; letter-spacing: -.025em; color: #14395c; }
#scenc-portal .scenc-main[data-module=crm] .scenc-panel > h2 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; letter-spacing: -.025em; }
#scenc-portal .scenc-heading-actions {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
#scenc-portal .scenc-panel {
    padding: var(--sigma-ui-panel);
    border-radius: 14px;
    min-width: 0;
}
#scenc-portal :is(.scenc-panel-heading, .scenc-spread, .scenc-context-line,
    .scenc-results-heading, .scenc-catalog-toolbar, .sigma-company-command-top,
    .sigma-certified-card-bottom, .sigma-certified-card-stats,
    .sigma-certified-selection) {
    min-width: 0;
    flex-wrap: wrap;
    gap: 12px;
}
#scenc-portal .scenc-panel-heading > div:first-child {
    flex: 1 1 15rem;
    min-width: 0;
}
#scenc-portal :is(.scenc-two, .scenc-three, .scenc-editor,
    .scenc-dashboard-grid, .sigma-crm-detail-grid, .sigma-client-detail-grid,
    .sigma-certified-grid, .sigma-catalog-grid, .sigma-notary-grid) > * {
    min-width: 0;
}
#scenc-portal .scenc-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#scenc-portal .scenc-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* One control rhythm. Destructive/primary colors and disabled semantics stay intact. */
#scenc-portal :is(.scenc-main, .scenc-dialog) .scenc-btn {
    min-height: var(--sigma-ui-control);
    height: auto;
    min-width: 0;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    border-radius: 9px;
}
#scenc-portal :is(.scenc-main, .scenc-dialog) .scenc-btn.small {
    min-height: var(--sigma-ui-compact);
    padding: 7px 11px;
    font-size: 12px;
}
#scenc-portal :is(.scenc-main, .scenc-dialog) .scenc-btn.icon-only {
    flex: 0 0 auto;
    width: var(--sigma-ui-compact);
    min-width: var(--sigma-ui-compact);
    min-height: var(--sigma-ui-compact);
    padding: 8px;
}
#scenc-portal :is(.scenc-main, .scenc-dialog) .scenc-btn .scenc-icon { width: 17px; height: 17px; }
#scenc-portal :is(.scenc-help, .scenc-kpi-link) {
    min-width: 32px;
    min-height: 32px;
    justify-content: center;
    align-items: center;
}
#scenc-portal :is(.scenc-main, .scenc-dialog) :is(.scenc-btn, .scenc-row-link, .sigma-workspace-link,
    .sigma-calendar-add, .sigma-calendar-views button, summary):focus-visible {
    outline: 2px solid #0b5fb4;
    outline-offset: 3px;
}
#scenc-portal :is(.scenc-card-actions, .sigma-company-quick,
    .sigma-contact-actions, .sigma-followup-actions) {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
}

/* Forms and filters share heights; preserve hidden, checkbox/radio and native file/range/color controls. */
#scenc-portal .scenc-field {
    min-width: 0;
    font-size: 13px;
    line-height: 1.45;
    gap: 7px;
    overflow-wrap: anywhere;
}
#scenc-portal input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]):not([type=range]):not([type=color]),
#scenc-portal select:not([multiple]) {
    min-height: var(--sigma-ui-control);
    height: var(--sigma-ui-control);
    min-width: 0;
    max-width: 100%;
    padding-block: 10px;
    font-size: 14px;
    line-height: 1.5;
}
#scenc-portal textarea {
    min-width: 0;
    max-width: 100%;
    min-height: 112px;
    font-size: 14px;
    line-height: 1.6;
}
#scenc-portal .scenc-field small { font-size: 12px; line-height: 1.5; }
#scenc-portal :is(.scenc-filters, .scenc-filter-primary, .scenc-filter-secondary) {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}
#scenc-portal .scenc-filters > .scenc-field,
#scenc-portal .sigma-certified-filters .scenc-field:nth-child(2) {
    flex: 1 1 190px;
    width: auto;
    min-width: min(100%, 180px);
    max-width: 360px;
}
#scenc-portal .sigma-certified-filters .scenc-field:first-child {
    flex: 2 1 260px;
    min-width: min(100%, 220px);
    max-width: none;
}
#scenc-portal .scenc-searchbox { max-width: 100%; }
#scenc-portal .scenc-searchbox input { height: var(--sigma-ui-control); }
#scenc-portal .scenc-check { line-height: 1.5; }

/* Text pagers must not inherit the historic fixed 29px icon box. These important
 * declarations only neutralize the existing important rules in portal.css. */
#scenc-portal .scenc-pager {
    min-width: 0;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    font-size: 12px;
}
#scenc-portal .scenc-pager > .scenc-btn:first-of-type { margin-inline-start: auto; }
#scenc-portal .scenc-pager > .scenc-flex {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
}
#scenc-portal .scenc-pager .scenc-btn {
    width: auto !important;
    min-width: var(--sigma-ui-compact) !important;
    min-height: var(--sigma-ui-compact) !important;
    height: auto;
    padding: 7px 12px !important;
}
#scenc-portal .scenc-pager .scenc-btn.icon-only {
    width: var(--sigma-ui-compact) !important;
    padding: 7px !important;
}
#scenc-portal .scenc-pager select {
    width: auto;
    min-width: 64px;
    min-height: var(--sigma-ui-compact);
    height: var(--sigma-ui-compact);
    padding: 6px 8px;
    font-size: 13px;
}
#scenc-portal .scenc-pager label { min-width: 0; flex-wrap: wrap; }

/* Tables keep their own scroll, not a clipped or horizontally scrolling page. */
#scenc-portal :is(.scenc-table-shell, .scenc-table-scroll, .sigma-report-table-wrap) {
    min-width: 0;
    max-width: 100%;
}
#scenc-portal :is(.scenc-table-scroll, .sigma-report-table-wrap) {
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}
#scenc-portal .sigma-report-table-wrap {
    overflow: auto;
    max-height: min(680px, 72vh);
}
#scenc-portal .sigma-cert-report-table { width: max-content; min-width: 100%; }
#scenc-portal table th { font-size: 11px; line-height: 1.5; }
#scenc-portal table td { line-height: 1.6; }
#scenc-portal :is(.scenc-table-title, .scenc-row-link) {
    white-space: normal;
    overflow-wrap: anywhere;
}
#scenc-portal :is(.scenc-inbox-tabs > button, .sigma-cert-nav a,
    .sigma-report-sort, .sigma-report-columns summary) {
    min-height: var(--sigma-ui-compact);
}
#scenc-portal .sigma-report-sort { padding-block: 6px; }
#scenc-portal .sigma-report-columns summary { align-content: center; }

/* Contacts: an absolute edit button must not cover an email or a long name. */
#scenc-portal .sigma-contact-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 14px 18px;
}
#scenc-portal .sigma-contact-edit {
    position: static;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: end;
}
#scenc-portal .sigma-contact-card .sigma-contact-actions {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
}
#scenc-portal :is(.sigma-company-meta b, .sigma-company-meta a,
    .sigma-contact-details span, .sigma-contact-details a,
    .sigma-contact-identity b, .sigma-contact-identity small) {
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
}
#scenc-portal :is(.sigma-certified-card-stats, .sigma-certified-card-bottom,
    .sigma-workspace-flow) { overflow-wrap: anywhere; }

/* Keep each certification process readable as one unit in the supplier detail. */
#scenc-portal .sigma-client-history .sigma-cert-record {
    min-width: 0;
    margin-block: 12px;
    padding: 18px;
    gap: 16px;
    border: 1px solid #e2e9ec;
    border-radius: 12px;
    background: #fbfcfd;
}
#scenc-portal .sigma-client-history .sigma-cert-record > div:last-child { min-width: 0; }
#scenc-portal .sigma-client-history .sigma-cert-date b { line-height: 1.5; }
#scenc-portal .sigma-client-history .sigma-cert-record > div:last-child > .scenc-flex:first-child {
    margin-top: 0;
    gap: 6px;
}
#scenc-portal .sigma-client-history .sigma-cert-tags { margin-top: 10px; }
#scenc-portal .sigma-client-history .sigma-cert-record > div:last-child > .scenc-flex:last-child {
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e7edef;
}

/* Dialogs: the body is the only scrolling region; header/close stay reachable.
 * Footer remains inside its form, preserving validation, Enter and submission. */
#scenc-portal .scenc-dialog[open] {
    display: flex;
    flex-direction: column;
    width: min(800px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: hidden;
}
#scenc-portal .scenc-dialog-head {
    flex: 0 0 auto;
    position: static;
    align-items: flex-start;
    padding: 20px 24px;
}
#scenc-portal .scenc-dialog-head h2 {
    min-width: 0;
    overflow-wrap: anywhere;
    align-self: center;
}
#scenc-portal .scenc-dialog-body {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 24px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scroll-padding-block: 16px;
}
#scenc-portal .scenc-dialog-body form { min-width: 0; }
#scenc-portal .scenc-dialog-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
    padding: 20px 0 0;
    background: #fff;
}
#scenc-portal .scenc-dialog-footer .scenc-btn { flex: 0 1 auto; }
#scenc-portal .scenc-dialog.drawer[open] {
    width: min(840px, 100vw);
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 0 0 auto;
    border-radius: 16px 0 0 16px;
}
#scenc-portal .scenc-dialog.drawer .scenc-dialog-body { padding: 24px; }

/* Calendar: month labels survive tablet breakpoints; creation is discoverable
 * without hover. In narrow months the day button and Agenda remain the compact
 * entry points; the stacked week keeps its explicit add button. */
#scenc-portal .sigma-calendar-shell:has(.sigma-calendar-month) .sigma-calendar-weekdays {
    display: grid;
}
#scenc-portal .sigma-calendar-toolbar { gap: 16px; padding: 20px 24px; }
#scenc-portal .sigma-calendar-navigation { max-width: 100%; gap: 8px; }
#scenc-portal .sigma-calendar-navigation h2 {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 20px;
}
#scenc-portal .sigma-calendar-views { max-width: 100%; }
#scenc-portal .sigma-calendar-views button {
    min-height: var(--sigma-ui-compact);
    font-size: 13px;
    padding: 8px 14px;
}
#scenc-portal .sigma-calendar-day-head { gap: 4px; flex-wrap: wrap; }
#scenc-portal .sigma-calendar-day-head > button:first-child {
    min-width: 32px;
    min-height: 32px;
}
#scenc-portal .sigma-calendar-day-head .sigma-calendar-add {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    width: 28px;
    min-width: 28px;
    min-height: 28px;
    height: 28px;
    padding: 0;
    gap: 0;
    font-size: 0;
    line-height: 0;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    color: #527084;
    border-radius: 7px;
}
#scenc-portal .sigma-calendar-add:hover { background: #edf4f7; }
#scenc-portal .sigma-calendar-entry { max-width: 100%; }
#scenc-portal .sigma-calendar-entry-copy { overflow-wrap: anywhere; }

/* Detail-component regressions, reproduced with all portal styles.
 * busy() inserts a spinner and text into icon actions. Keep the spinner visible
 * without growing the button; its existing aria-label and disabled state remain.
 */
#scenc-portal :is(.scenc-main, .scenc-dialog) .scenc-btn.icon-only:has(> .scenc-spinner) {
    font-size: 0;
    gap: 0;
}
#scenc-portal :is(.scenc-main, .scenc-dialog) .scenc-btn.icon-only > .scenc-spinner {
    width: 16px;
    height: 16px;
}
#scenc-portal .scenc-notice > div {
    min-width: 0;
    overflow-wrap: anywhere;
}
#scenc-portal .sigma-opportunity-head > div:first-child {
    max-width: min(760px, 100%);
}
#scenc-portal :is(.sigma-opportunity-head h2, .sigma-opportunity-head p,
    .sigma-agenda-open b) {
    overflow-wrap: anywhere;
}
#scenc-portal .sigma-report-provider-head > div {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
#scenc-portal .sigma-file-picker:focus-within {
    outline: 2px solid #0b5fb4;
    outline-offset: 3px;
}
#scenc-portal .sigma-catalog-grid > article > div:nth-child(2) {
    margin-top: auto;
}

@media (max-width: 1100px) {
    #scenc-portal .sigma-contact-card { grid-template-columns: minmax(0, 1fr); }
    #scenc-portal .sigma-contact-card .sigma-contact-actions,
    #scenc-portal .sigma-contact-edit { grid-column: 1; grid-row: auto; }
}
@media (max-width: 900px) {
    #scenc-portal .scenc-heading-actions { justify-content: flex-start; }
    #scenc-portal :is(.scenc-dashboard-grid, .sigma-crm-detail-grid,
        .sigma-client-detail-grid) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    #scenc-portal { --sigma-ui-panel: 16px; }
    #scenc-portal .scenc-main { padding: 24px 16px; }
    #scenc-portal .scenc-page-head { flex-direction: column; align-items: stretch; }
    #scenc-portal .scenc-page-head > div:first-child { flex-basis: auto; }
    #scenc-portal .scenc-page-head h1 { font-size: 26px; line-height: 1.25; }
    #scenc-portal .scenc-heading-actions { width: 100%; }
    #scenc-portal .scenc-heading-actions .scenc-btn:not(.icon-only) { flex: 1 1 auto; }
    #scenc-portal :is(.scenc-two, .scenc-three) { grid-template-columns: minmax(0, 1fr); }
    #scenc-portal .scenc-filters > .scenc-field,
    #scenc-portal .sigma-certified-filters .scenc-field:nth-child(2) {
        min-width: 0;
        max-width: none;
        flex: 1 1 100%;
    }
    #scenc-portal .sigma-certified-filters .scenc-field:first-child { min-width: 0; }
    #scenc-portal .scenc-dialog-head { padding: 16px; }
    #scenc-portal .scenc-dialog-body,
    #scenc-portal .scenc-dialog.drawer .scenc-dialog-body { padding: 16px; }
    #scenc-portal .scenc-dialog-footer .scenc-btn { flex: 1 1 auto; }
    #scenc-portal .sigma-calendar-toolbar { padding: 16px; }
    #scenc-portal .sigma-calendar-navigation h2 { margin-left: 0; }
}
@media (max-width: 600px) {
    #scenc-portal .sigma-calendar-navigation { width: 100%; }
    #scenc-portal .sigma-calendar-navigation h2 { flex: 1 1 100%; margin-top: 4px; }
    #scenc-portal .sigma-calendar-views { width: 100%; }
    #scenc-portal .sigma-calendar-views button { flex: 1 1 0; min-width: 0; padding-inline: 8px; }
    #scenc-portal .sigma-calendar-month .sigma-calendar-add { display: none; }
    #scenc-portal .sigma-calendar-week .sigma-calendar-add {
        display: inline-flex;
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        height: 44px;
    }
    #scenc-portal .sigma-calendar-week .sigma-calendar-day-head { justify-content: flex-start; }
    #scenc-portal .sigma-calendar-weekdays span { padding-inline: 2px; }
}
@media (pointer: coarse) {
    #scenc-portal { --sigma-ui-compact: 44px; }
    #scenc-portal .sigma-calendar-day-head .sigma-calendar-add {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        height: 44px;
    }
    #scenc-portal input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]):not([type=range]):not([type=color]),
    #scenc-portal select, #scenc-portal textarea { font-size: 16px; }
}
@media (pointer: coarse) and (max-width: 760px) {
    /* The calendar header cannot fit a 44px action beside the day number. */
    #scenc-portal .sigma-calendar-month .sigma-calendar-add { display: none; }
}
@media print {
    #scenc-portal .scenc-main { max-width: none; padding: 0; }
    #scenc-portal .scenc-dialog[open],
    #scenc-portal .scenc-dialog.drawer[open] {
        display: block;
        position: static;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
        overflow: visible;
        margin: 0;
        border: 0;
        box-shadow: none;
    }
    #scenc-portal .scenc-dialog-body,
    #scenc-portal .sigma-report-table-wrap,
    #scenc-portal .scenc-table-scroll { max-height: none; overflow: visible; }
    #scenc-portal .scenc-dialog-head { position: static; }
}

/* Field dictionary sits above the import form without discarding the chosen file. */
#scenc-portal .sigma-import-help-dialog {
    width: min(960px, calc(100vw - 28px)); max-width: 960px; max-height: min(88vh, 900px);
    margin: auto; padding: 0; border: 1px solid #d7e3ee; border-radius: 18px;
    background: #fff; color: #17334e; box-shadow: 0 24px 72px rgb(20 49 78 / 22%);
    overflow: hidden;
}
#scenc-portal .sigma-import-help-dialog::backdrop { background: rgb(23 45 69 / 54%); backdrop-filter: blur(3px); }
#scenc-portal .sigma-import-help-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 30px 20px; border-bottom: 1px solid #e3ebf2; background: linear-gradient(112deg,#f7fbff,#fff 64%); }
#scenc-portal .sigma-import-help-head h2 { margin: 5px 0 7px; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.2; letter-spacing: -.025em; color: #17334e; }
#scenc-portal .sigma-import-help-head p { margin: 0; font-size: 13px; line-height: 1.55; color: #56708a; }
#scenc-portal .sigma-import-help-body { max-height: calc(min(88vh, 900px) - 135px); overflow: auto; padding: 18px 30px 30px; }
#scenc-portal .sigma-import-help-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; font-size: 12px; color: #627b92; }
#scenc-portal .sigma-import-help-summary b { color: #1765a9; font-size: 17px; }
#scenc-portal .sigma-import-help-body .scenc-table-scroll { max-height: none; border: 1px solid #dde8f0; border-radius: 12px; }
#scenc-portal .sigma-import-help-body table { width: 100%; min-width: 660px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
#scenc-portal .sigma-import-help-body :is(th,td) { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #e8eff5; line-height: 1.45; }
#scenc-portal .sigma-import-help-body thead th { position: sticky; top: 0; z-index: 1; background: #f3f7fb; color: #365b7a; font-weight: 700; }
#scenc-portal .sigma-import-help-body tbody th { color: #14334f; font-weight: 700; white-space: nowrap; }
#scenc-portal .sigma-import-help-body tbody tr:last-child :is(th,td) { border-bottom: 0; }
#scenc-portal .sigma-import-help-body tbody tr:hover { background: #f6faff; }
#scenc-portal .sigma-import-error-panel { border: 1px solid #f0c8bd; border-radius: 12px; padding: 16px 18px; background: #fff8f5; color: #823c31; }
#scenc-portal .sigma-import-error-panel ul { margin: 10px 0 0; padding-left: 20px; max-height: 220px; overflow: auto; line-height: 1.6; }
#scenc-portal .sigma-commercial-cuit-review { display: grid; gap: 9px; padding: 16px 18px; border: 1px solid #ebd29c; border-radius: 12px; background: #fffaf0; }
#scenc-portal .sigma-commercial-cuit-review h3 { margin: 0; color: #6e4a10; font-size: 14px; }
#scenc-portal .sigma-commercial-cuit-review p { margin: 0 0 3px; color: #745b34; font-size: 12px; line-height: 1.5; }
#scenc-portal .sigma-commercial-cuit-review label { display: grid; grid-template-columns: minmax(140px,1fr) minmax(150px,220px); align-items: center; gap: 12px; color: #5e431b; font-size: 12px; font-weight: 650; }
#scenc-portal .sigma-commercial-cuit-review input { width: 100%; padding: 9px 11px; border: 1px solid #d9bd84; border-radius: 8px; background: #fff; color: #17334e; font: inherit; }
#scenc-portal .sigma-commercial-cuit-review input:focus { outline: 2px solid #4282be; outline-offset: 2px; }
#scenc-portal .sigma-commercial-sources { margin-bottom: 16px; padding: 0; overflow: hidden; }
#scenc-portal .sigma-commercial-sources > summary, #scenc-portal .sigma-commercial-source-card > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; }
#scenc-portal .sigma-commercial-sources > summary { padding: 15px 18px; }
#scenc-portal .sigma-commercial-sources > summary::-webkit-details-marker, #scenc-portal .sigma-commercial-source-card > summary::-webkit-details-marker { display: none; }
#scenc-portal .sigma-commercial-sources > summary > span { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; }
#scenc-portal .sigma-commercial-sources > summary b { color: #203f59; font-size: 13px; }
#scenc-portal .sigma-commercial-sources > summary small { color: #70879a; font-size: 11px; }
#scenc-portal .sigma-commercial-source-list { display: grid; gap: 8px; padding: 0 14px 14px; }
#scenc-portal .sigma-commercial-source-card { border: 1px solid #e0eaf2; border-radius: 10px; background: #fbfdff; }
#scenc-portal .sigma-commercial-source-card > summary { padding: 12px 14px; }
#scenc-portal .sigma-commercial-source-card > summary span { display: grid; gap: 2px; min-width: 0; }
#scenc-portal .sigma-commercial-source-card > summary b { color: #173a58; font-size: 12px; }
#scenc-portal .sigma-commercial-source-card > summary small { color: #6b8296; overflow-wrap: anywhere; }
#scenc-portal .sigma-commercial-source-card dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 0; margin: 0; padding: 4px 14px 14px; }
#scenc-portal .sigma-commercial-source-card dl div { min-width: 0; padding: 10px 8px; border-top: 1px solid #e7edf3; }
#scenc-portal .sigma-commercial-source-card dt { margin-bottom: 4px; color: #74899c; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
#scenc-portal .sigma-commercial-source-card dd { margin: 0; color: #213f58; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
    #scenc-portal .sigma-import-help-head { padding: 19px 18px 16px; gap: 10px; }
    #scenc-portal .sigma-import-help-body { padding: 14px 18px 22px; }
    #scenc-portal .sigma-commercial-cuit-review label { grid-template-columns: 1fr; gap: 5px; }
}

/* RC11: compact controls, data surfaces and progressive supplier detail.
 * The shared tokens and 44/36px rhythm above also apply to these new components. */
#scenc-portal :is(.scenc-btn, .sigma-detail-tabs button, .sigma-pin-filter,
    .sigma-active-filters button, .sigma-row-menu > summary) {
    align-items: center;
    justify-content: center;
}
#scenc-portal .scenc-btn > .scenc-icon { flex: 0 0 auto; vertical-align: middle; }
#scenc-portal :is(button, a, summary, input, select, textarea):focus-visible {
    outline: 2px solid var(--sc-blue);
    outline-offset: 3px;
}
#scenc-portal .scenc-main:focus { outline: none; }
#scenc-portal :is(.sigma-provider-table-wrap, .sigma-report-table-wrap):focus-visible {
    outline: 2px solid var(--sc-blue);
    outline-offset: -2px;
}

/* A single compact bar; advanced filters open inside the page width. */
#scenc-portal form.sigma-compact-filters {
    display: block;
    position: relative;
    min-width: 0;
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid var(--sc-line);
    border-radius: 14px;
    background: #fff;
}
#scenc-portal .sigma-filter-bar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    min-width: 0;
}
#scenc-portal .sigma-filter-primary {
    display: flex;
    flex: 1 1 440px;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
/* Searchable native selects retain their source field and accessible state. */
#scenc-portal .sigma-search-select { position: relative; min-width: 0; width: 100%; }
#scenc-portal .sigma-search-select-input { width: 100%; padding-inline-end: 30px; }
#scenc-portal .sigma-search-select::after { content: ''; position: absolute; pointer-events: none; inset-inline-end: 13px; top: 18px; width: 5px; height: 5px; border-inline-end: 1.5px solid var(--sc-muted); border-bottom: 1.5px solid var(--sc-muted); transform: rotate(45deg); }
#scenc-portal .sigma-search-select-list { position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 5px); max-height: min(280px, 45dvh); overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid #c5d6e8; border-radius: 10px; background: #fff; box-shadow: var(--sigma-ui-shadow); }
#scenc-portal .sigma-search-select-list[hidden] { display: none !important; }
#scenc-portal .sigma-search-select-option { display: block; width: 100%; min-height: 38px; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--sc-ink); font: inherit; font-size: 13px; line-height: 1.4; text-align: left; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
#scenc-portal .sigma-search-select-option:is(:hover, .is-active, [aria-selected=true]) { background: #edf4fc; color: #14579e; }
#scenc-portal .sigma-search-select-option.is-active { box-shadow: inset 2px 0 var(--sc-blue); }
#scenc-portal .sigma-search-select-option[aria-disabled=true] { background: transparent; color: #7b8796; cursor: not-allowed; }
#scenc-portal .sigma-search-select-empty { padding: 10px; color: var(--sc-muted); font-size: 12px; line-height: 1.5; }
#scenc-portal .sigma-compact-filters .scenc-field {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    font-size: 12px;
    gap: 6px;
}
#scenc-portal .sigma-filter-primary > .scenc-field { flex: 1 1 170px; }
#scenc-portal .sigma-filter-primary > .scenc-field:first-child { flex: 2 1 270px; }
#scenc-portal .sigma-filter-unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: end;
    gap: 6px;
    flex: 1 1 180px;
    min-width: 0;
}
#scenc-portal .sigma-filter-bar > .sigma-filter-unit { max-width: 250px; }
#scenc-portal .sigma-pin-filter {
    display: inline-flex;
    width: 30px;
    height: 44px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--sc-muted);
}
#scenc-portal .sigma-pin-filter .scenc-icon { width: 16px; height: 16px; }
#scenc-portal .sigma-pin-filter:hover { background: var(--sigma-ui-tint); color: var(--sc-blue); }
#scenc-portal .sigma-pin-filter[aria-pressed=true] { color: var(--sc-blue); background: var(--sigma-ui-tint); border-color: #d4e3f4; }
#scenc-portal .sigma-filter-popover { flex: 0 0 auto; margin-inline-start: auto; }
#scenc-portal :is(.sigma-filter-popover, .sigma-column-menu, .sigma-row-menu) > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
#scenc-portal :is(.sigma-filter-popover, .sigma-column-menu, .sigma-row-menu) > summary::-webkit-details-marker { display: none; }
#scenc-portal :is(.sigma-filter-popover, .sigma-column-menu)[open] > summary {
    color: var(--sc-blue);
    background: var(--sigma-ui-tint);
    border-color: #b9d0e9;
}
#scenc-portal .sigma-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding-inline: 5px;
    border-radius: 6px;
    background: var(--sc-blue);
    color: #fff;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
#scenc-portal .sigma-filter-popover-body {
    position: absolute;
    z-index: 35;
    inset-inline-end: 0;
    top: calc(100% + 12px);
    width: min(700px, 100%);
    max-height: min(520px, 65dvh);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 20px;
    border: 1px solid #d6e2ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--sigma-ui-shadow);
}
#scenc-portal .sigma-filter-popover-title { display: grid; gap: 3px; margin-bottom: 18px; }
#scenc-portal .sigma-filter-popover-title strong { font-size: 14px; color: var(--sc-navy); }
#scenc-portal .sigma-filter-popover-title small { font-size: 12px; color: var(--sc-muted); }
#scenc-portal .sigma-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
#scenc-portal .sigma-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf1f6; }
#scenc-portal .sigma-active-filters > button:not(.scenc-btn) {
    display: inline-flex;
    max-width: 100%;
    min-height: 32px;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid #d3e2f2;
    border-radius: 7px;
    background: var(--sigma-ui-tint);
    color: #3c5d7e;
    font-size: 12px;
    text-align: left;
}
#scenc-portal .sigma-active-filters > button > span { min-width: 0; overflow-wrap: anywhere; }
#scenc-portal .sigma-active-filters > button > .scenc-icon { width: 14px; height: 14px; flex: none; }
#scenc-portal .sigma-active-filters > button:hover { border-color: #a9c7e6; color: var(--sc-blue); }
#scenc-portal .sigma-active-filters > .scenc-btn { min-height: 32px; padding-block: 5px; }
#scenc-portal .sigma-selected-providers { margin-top: 6px; }
#scenc-portal .sigma-selected-providers:empty { display: none; }
#scenc-portal .sigma-suggest-options { z-index: 45; box-shadow: var(--sigma-ui-shadow); }

/* Data surfaces: clear toolbar, restrained row rules, fixed context columns. */
#scenc-portal .sigma-data-surface { min-width: 0; border: 1px solid var(--sc-line); border-radius: 16px; background: #fff; box-shadow: 0 3px 12px #1b3f5c05; }
#scenc-portal .sigma-data-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    gap: 12px 18px;
    padding: 18px 20px;
    margin: 0;
}
#scenc-portal .sigma-data-toolbar > div:first-child { min-width: 0; }
#scenc-portal .sigma-data-toolbar strong { font-size: 14px; color: var(--sc-navy); }
#scenc-portal .sigma-data-toolbar > div > small { display: block; margin-top: 2px; font-size: 11px; color: var(--sc-muted); }
#scenc-portal .sigma-data-toolbar > .sigma-column-menu { margin-inline-start: auto; }
#scenc-portal .sigma-certified-list-heading.sigma-data-toolbar { padding: 0 0 14px; }
#scenc-portal .sigma-certified-list-heading > .sigma-provider-view-toggle { margin-inline-start: auto; }
#scenc-portal .sigma-provider-view-toggle { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--sc-line); border-radius: 10px; background: #edf2f7; }
#scenc-portal .sigma-provider-view-toggle > button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; gap: 6px; padding: 6px 11px; border: 0; border-radius: 7px; color: var(--sc-muted); background: transparent; font-size: 12px; font-weight: 600; }
#scenc-portal .sigma-provider-view-toggle > button[aria-pressed=true] { background: #fff; color: var(--sc-blue); box-shadow: 0 1px 4px #24496818; }
#scenc-portal .sigma-provider-view-toggle .scenc-icon { width: 15px; height: 15px; }
#scenc-portal .sigma-table-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-inline-start: auto; }
#scenc-portal .sigma-table-legend > span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--sc-muted); }
#scenc-portal .sigma-table-legend .scenc-icon { width: 14px; height: 14px; }
#scenc-portal .sigma-table-legend .is-green { color: var(--sigma-ui-success); }
#scenc-portal .sigma-table-legend .is-yellow { color: #836115; }
#scenc-portal .sigma-table-legend :is(.is-red,.is-rejected) { color: var(--sigma-ui-danger); }
#scenc-portal .sigma-table-legend :is(.is-red,.is-rejected) .scenc-icon { stroke-width: 3.4; }
#scenc-portal .sigma-column-menu { position: relative; min-width: 0; max-width: 100%; padding: 0; margin: 0; border: 0; background: transparent; }
#scenc-portal .sigma-column-menu > div {
    position: absolute;
    z-index: 30;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    width: 280px;
    max-width: calc(100vw - 48px);
    max-height: min(540px, 65dvh);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 16px;
    border: 1px solid #d6e2ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--sigma-ui-shadow);
}
#scenc-portal .sigma-column-menu > div > strong { font-size: 12px; color: var(--sc-navy); margin-bottom: 3px; }
#scenc-portal .sigma-column-menu label { display: flex; align-items: center; min-height: 30px; gap: 9px; font-size: 12px; cursor: pointer; }
#scenc-portal .sigma-column-menu > div > .scenc-btn { justify-content: flex-start; }
#scenc-portal .sigma-provider-context { display:flex; align-items:center; gap:16px; margin-bottom:16px; min-width:0; }
#scenc-portal .sigma-provider-context .sigma-breadcrumbs { margin:0; min-width:0; }
#scenc-portal .sigma-provider-context .sigma-provider-back { flex:none; min-height:34px; padding:6px 8px; color:#587083; font-size:12px; }
#scenc-portal .sigma-provider-toolbar { display:flex; align-items:center; justify-content:flex-end; gap:8px; max-width:100%; }
#scenc-portal .sigma-provider-toolbar > .scenc-btn,#scenc-portal .sigma-provider-more > summary { min-height:40px; border-radius:9px; padding:9px 13px; font-size:12px; font-weight:650; white-space:nowrap; }
#scenc-portal .sigma-provider-toolbar > .scenc-btn:not(.primary) { background:#fff; color:#315268; border-color:#d6e2e9; }
#scenc-portal .sigma-provider-toolbar > .scenc-btn:not(.primary):hover { background:#f3f7fa; border-color:#acc3d2; }
#scenc-portal .sigma-provider-more > summary { gap:6px; background:#f7f9fb; color:#526b7b; border:1px solid #dce5ec; }
#scenc-portal .sigma-provider-more > div { width:238px; padding:6px; gap:2px; border-radius:11px; }
#scenc-portal .sigma-provider-more > div > .scenc-btn { width:100%; min-height:39px; padding:10px 12px; border:0; border-radius:6px; font-size:12px; }
#scenc-portal .sigma-provider-more > div > [data-action="w-delete-provider"] { margin-top:4px; border-top:1px solid #e8edf1; border-radius:0 0 6px 6px; }
@media(max-width:600px){
  #scenc-portal .sigma-provider-context { gap:8px; align-items:flex-start; }
  #scenc-portal .sigma-provider-context .sigma-breadcrumbs { padding-top:8px; font-size:11px; }
  #scenc-portal .scenc-heading-actions:has(.sigma-provider-toolbar) { width:100%; }
  #scenc-portal .sigma-provider-toolbar { display:grid; width:100%; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  #scenc-portal .sigma-provider-toolbar > .primary { grid-column:1 / -1; width:100%; }
  #scenc-portal .sigma-provider-toolbar > .scenc-btn,#scenc-portal .sigma-provider-more > summary { min-height:44px; }
}
#scenc-portal .sigma-report-columns > .sigma-report-columns-body { width: 340px; padding: 14px; }
#scenc-portal .sigma-report-columns .sigma-report-fixed-columns,
#scenc-portal .sigma-report-columns .sigma-report-norm-group { padding: 12px; }
#scenc-portal .sigma-report-columns summary > small { font-size: 11px; font-weight: 400; }
#scenc-portal .sigma-provider-table-wrap { max-height: min(720px, 75dvh); margin: 0; overflow: auto; border-radius: 14px; scrollbar-gutter: auto; background: #f6f9fc; scrollbar-color: #b9cde0 #f6f9fc; }
#scenc-portal .sigma-data-surface .sigma-report-table-wrap { margin: 0; border: 0; border-top: 1px solid var(--sc-line); border-bottom: 1px solid var(--sc-line); border-radius: 0; }
#scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) { border-collapse: separate; border-spacing: 0; }
#scenc-portal .sigma-provider-table { --sigma-name-offset: 0px; min-width: 1100px; }
#scenc-portal .sigma-provider-table:has(.sigma-provider-check) { --sigma-name-offset: 58px; }
#scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) :is(th, td) { padding: 12px 16px; border: 0; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
#scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) th { position: sticky; top: 0; z-index: 3; height: 48px; background: #f6f9fc; color: #576f84; font-size: 11px; font-weight: 650; letter-spacing: .025em; white-space: nowrap; }
#scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) td { background: #fff; font-size: 12px; transition: background-color 120ms ease; }
#scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) tbody tr:hover > td { background: #f4f8fd; }
#scenc-portal .sigma-provider-table tbody tr:has(input:checked) > td { background: #edf5ff; }
#scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) tr:last-child > td { border-bottom: 0; }
#scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) .sigma-report-sort { min-height: 28px; padding: 4px 0; gap: 5px; font: inherit; color: inherit; }
#scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) th[aria-sort=ascending],
#scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) th[aria-sort=descending] { color: var(--sc-blue); background: #edf4fc; }
#scenc-portal .sigma-provider-table [data-col=name] { position: sticky; inset-inline-start: var(--sigma-name-offset); z-index: 2; min-width: 240px; max-width: 310px; }
#scenc-portal .sigma-provider-table th[data-col=name] { z-index: 5; }
#scenc-portal .sigma-provider-table th[data-col=name] { text-align:center; text-transform:uppercase; }
#scenc-portal .sigma-provider-table th[data-col=name] .sigma-report-sort { justify-content:center; text-transform:inherit; width:100%; }
#scenc-portal .sigma-provider-table td[data-col=name] > button { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; font-weight: 650; line-height: 1.45; text-align: left; }
#scenc-portal .sigma-provider-table .sigma-provider-check { position: sticky; inset-inline-start: 0; z-index: 2; width: 58px; min-width: 58px; padding-inline: 10px; }
#scenc-portal .sigma-provider-table th.sigma-provider-check { z-index: 5; }
#scenc-portal .sigma-provider-select-control { display:inline-flex; align-items:center; justify-content:center; gap:3px; min-height:28px; }
#scenc-portal .sigma-provider-select-page { display:inline-flex; align-items:center; justify-content:center; margin:0; cursor:pointer; }
#scenc-portal .sigma-provider-select-page input { width:16px; height:16px; margin:0; accent-color:#236db3; cursor:pointer; }
#scenc-portal .sigma-provider-selection-menu { position:relative; }
#scenc-portal .sigma-provider-selection-menu > summary { display:grid; place-items:center; width:20px; height:24px; padding:0; border:0; border-radius:5px; color:#637d93; background:transparent; cursor:pointer; list-style:none; }
#scenc-portal .sigma-provider-selection-menu > summary::-webkit-details-marker { display:none; }
#scenc-portal .sigma-provider-selection-menu > summary:hover,#scenc-portal .sigma-provider-selection-menu[open] > summary { color:#1e679c; background:#e7f2fb; }
#scenc-portal .sigma-provider-selection-menu > div { position:fixed; z-index:2800; display:grid; gap:6px; width:min(270px,calc(100vw - 24px)); padding:13px; border:1px solid #d5e3ee; border-radius:10px; background:#fff; box-shadow:0 14px 32px #17395628; text-align:left; white-space:normal; }
#scenc-portal .sigma-provider-selection-menu > div > strong { margin-bottom:3px; color:#244760; font-size:12px; }
#scenc-portal .sigma-provider-selection-menu > div > .scenc-btn { justify-content:flex-start; width:100%; min-height:33px; }
#scenc-portal .sigma-provider-selection-menu > div > small { color:#6b7f90; font-size:11px; line-height:1.4; }
#scenc-portal .sigma-data-toolbar > .sigma-provider-select-control { margin-inline-start:auto; }
#scenc-portal .sigma-provider-table :is([data-col=cuit], [data-col=last_certified_at], [data-col=arca_checked_at], [data-col=last_activity_at]) { white-space: nowrap; font-variant-numeric: tabular-nums; }
#scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) :is(th, td):is([data-col=cuit], [data-col=last_certified_at], [data-col=arca_checked_at], [data-col=last_activity_at]) { text-align: center; }
#scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) th:is([data-col=cuit], [data-col=last_certified_at], [data-col=arca_checked_at], [data-col=last_activity_at]) .sigma-report-sort { justify-content: center; }
#scenc-portal .sigma-provider-table :is([data-col=process_total], [data-col=active_process_count]) { text-align: center; font-variant-numeric: tabular-nums; }
#scenc-portal .sigma-provider-table .sigma-row-actions { position: sticky; inset-inline-end: 0; z-index: 2; min-width: 120px; box-shadow: -1px 0 #e5edf5; text-align: right; }
#scenc-portal .sigma-provider-table th.sigma-row-actions { z-index: 5; }
#scenc-portal .sigma-row-actions > div { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
#scenc-portal .sigma-provider-table :is(th,td).sigma-row-actions { text-align: center; }
#scenc-portal .sigma-provider-table .sigma-row-actions > div { justify-content: center; }
#scenc-portal .sigma-process-table :is(th,td):last-child { text-align: left;min-width:408px; }
#scenc-portal .sigma-process-table .sigma-process-row-actions { justify-content: start; }
#scenc-portal .sigma-process-row-actions { display:inline-grid;grid-template-columns:34px 70px 82px 84px 78px;justify-content:start;gap:6px;max-width:none; }
#scenc-portal .sigma-process-row-actions .scenc-btn { width:100%;justify-content:center; }
#scenc-portal .scenc-main .sigma-process-row-actions .scenc-btn:disabled { background:#eef1f4;border-color:#dce2e8;color:#8493a2;box-shadow:none;opacity:1;cursor:not-allowed; }
#scenc-portal .sigma-process-row-actions .scenc-btn:disabled:hover { background:#eef1f4;border-color:#dce2e8;color:#8493a2;box-shadow:none; }
#scenc-portal .sigma-provider-process-actions { justify-content:flex-start; }
@media(max-width:760px){#scenc-portal .sigma-process-row-actions{grid-template-columns:44px 70px 82px 84px 78px}#scenc-portal .sigma-process-table :is(th,td):last-child{min-width:418px}}
@media(max-width:600px){#scenc-portal .sigma-provider-process-actions .sigma-process-row-actions { width:100%;grid-template-columns:44px repeat(2,minmax(82px,1fr)); }}
#scenc-portal .sigma-process-row-actions .scenc-btn { flex-shrink: 0; white-space: nowrap; }
#scenc-portal .sigma-referral-table :is(th,td):last-child { position: sticky; inset-inline-end: 0; z-index: 2; box-sizing: border-box; min-width: 136px; width: 136px; max-width: 136px; text-align: center; background: #fff; box-shadow: -1px 0 #e5edf5; }
#scenc-portal .sigma-referral-table th:last-child { z-index: 4; background: #f6f9fc; }
#scenc-portal .sigma-referral-table tbody tr:hover > td:last-child { background: #f4f8fd; }
@media(min-width:901px) {
  #scenc-portal .sigma-referral-table :is(th,td).sigma-referral-status-cell:nth-last-child(2) { position: sticky; inset-inline-end: 136px; z-index: 2; box-sizing: border-box; min-width: 116px; width: 116px; max-width: 116px; text-align: center; background: #fff; box-shadow: -1px 0 #e5edf5; }
  #scenc-portal .sigma-referral-table th.sigma-referral-status-cell:nth-last-child(2) { z-index: 4; background: #f6f9fc; }
  #scenc-portal .sigma-referral-table tbody tr:hover > td.sigma-referral-status-cell:nth-last-child(2) { background: #f4f8fd; }
}
#scenc-portal .sigma-crm-table th:last-child > .scenc-screenreader { position: static; display: inline; width: auto; height: auto; overflow: visible; clip: auto; }
#scenc-portal .sigma-row-menu { position: relative; }
#scenc-portal .sigma-row-menu > summary { width: 32px; min-height: 36px; border: 1px solid transparent; border-radius: 8px; color: var(--sc-muted); }
#scenc-portal .sigma-row-menu > summary:hover, #scenc-portal .sigma-row-menu[open] > summary { border-color: #cdddeb; background: var(--sigma-ui-tint); color: var(--sc-blue); }
#scenc-portal .sigma-row-menu > div { position: absolute; z-index: 9; top: calc(100% + 4px); inset-inline-end: 0; display: grid; gap: 3px; width: 208px; padding: 8px; border: 1px solid var(--sc-line); border-radius: 10px; background: #fff; box-shadow: var(--sigma-ui-shadow); text-align: left; }
#scenc-portal .sigma-row-menu .scenc-btn { justify-content: flex-start; white-space: nowrap; }
#scenc-portal .sigma-referral-table .sigma-referral-action-menu > summary { box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%;font-weight:600; }
#scenc-portal .sigma-referral-action-menu > div { position:fixed;z-index:2800;box-sizing:border-box;width:min(208px,calc(100vw - 16px));min-width:0;max-height:calc(100dvh - 16px);overflow:auto; }
#scenc-portal .sigma-referral-table tbody td:last-child:has(.sigma-referral-action-menu[open]){z-index:30}
#scenc-portal .sigma-provider-table tr:has(.sigma-row-menu[open]) .sigma-row-actions { z-index: 8; }
#scenc-portal .sigma-provider-table .sigma-row-menu > div { display: none; }
#scenc-portal .sigma-certified-card .sigma-row-menu > div { display:none; }
#scenc-portal .sigma-certified-card .sigma-row-menu { flex:0 0 auto;align-self:flex-start; }
#scenc-portal .sigma-provider-floating-actions .scenc-btn:disabled { background:#eef1f4;color:#8493a2;border-color:#dce2e8;opacity:1;cursor:not-allowed; }
#scenc-portal .sigma-provider-floating-actions { position: fixed; z-index: 2800; display: grid; gap: 3px; width: 208px; padding: 8px; border: 1px solid var(--sc-line); border-radius: 10px; background: #fff; box-shadow: var(--sigma-ui-shadow); }
#scenc-portal .sigma-provider-floating-actions .scenc-btn { justify-content: flex-start; white-space: nowrap; }
#scenc-portal .sigma-provider-pager.is-top { margin: 0 0 10px; padding: 8px 14px; border: 1px solid #dce7ef; border-radius: 10px; background: #fff; }
#scenc-portal .sigma-entity-state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: #f0f3f6; color: var(--sc-muted); font-size: 11px; font-weight: 600; }
#scenc-portal .sigma-entity-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
#scenc-portal .sigma-entity-state.is-active { background: #ecf6f0; color: var(--sigma-ui-success); }
#scenc-portal .sigma-cert-report-table td[data-col=name] { min-width: 240px; max-width: 340px; font-weight: 600; font-size: 13px; color: var(--sc-navy); overflow-wrap: anywhere; }
#scenc-portal .sigma-cert-report-table td:is([data-col=cuit], [data-col=last_certified_at]) { white-space: nowrap; font-variant-numeric: tabular-nums; }
#scenc-portal .sigma-cert-report-table th[data-col^="standard:"] { text-align: center; }
#scenc-portal .sigma-cert-report-table th[data-col^="standard:"] .sigma-report-sort { justify-content: center; }
#scenc-portal .sigma-cert-report-table td[data-col^="standard:"] { text-align: center; min-width: 92px; }
#scenc-portal .sigma-cert-report-table .sigma-report-action { width: 92px; min-width: 92px; box-shadow: -1px 0 #e5edf5; }
#scenc-portal .sigma-cert-report-table .sigma-standard-state { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 1px 2px #1a3d4b05; }
#scenc-portal .sigma-data-surface .scenc-pager { margin: 0; padding: 16px 20px; background: transparent; border: 0; border-radius: 0 0 16px 16px; }
#scenc-portal .sigma-provider-pager { color: var(--sc-muted); font-variant-numeric: tabular-nums; }
#scenc-portal .sigma-provider-pager > .scenc-flex { margin-inline-start: auto; }
#scenc-portal .sigma-provider-pager label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; }

/* Supplier identity, tabs and content share one quiet hierarchy. */
#scenc-portal .sigma-breadcrumbs { display: flex; align-items: center; min-width: 0; gap: 8px; margin: 0 0 18px; font-size: 12px; color: #8090a1; }
#scenc-portal .sigma-breadcrumbs a { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sc-muted); }
#scenc-portal .sigma-breadcrumbs a:hover { color: var(--sc-blue); }
#scenc-portal .sigma-breadcrumbs [aria-current=page] { flex: 1 1 100px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #405c76; }
#scenc-portal .sigma-detail-tabs { display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; padding: 4px; margin: 0 0 20px; border: 1px solid var(--sc-line); border-radius: 12px; background: #eef3f8; }
#scenc-portal .sigma-detail-tabs > button { display: inline-flex; flex: 1 0 auto; gap: 7px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--sc-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
#scenc-portal .sigma-detail-tabs > button:hover { color: var(--sc-blue); background: #ffffff80; }
#scenc-portal .sigma-detail-tabs > button[aria-current=page] { background: #fff; color: var(--sc-blue); box-shadow: 0 1px 5px #254d7114; }
#scenc-portal .sigma-detail-tabs > button > span { padding: 1px 6px; border-radius: 5px; background: #e7eff8; color: #476b8d; font-size: 10px; font-variant-numeric: tabular-nums; }
#scenc-portal .sigma-provider-detail { display: grid; gap: 18px; min-width: 0; }
#scenc-portal .sigma-provider-detail > .scenc-panel { margin: 0; }
#scenc-portal .sigma-provider-detail h2 { font-size: 17px; }
#scenc-portal .sigma-provider-detail h3 { font-size: 14px; }
#scenc-portal .sigma-provider-detail .sigma-provider-profile-grid { gap: 20px 28px; margin-top: 22px; }
#scenc-portal .sigma-provider-profile-grid dt { margin-bottom: 5px; font-size: 11px; color: var(--sc-muted); }
#scenc-portal .sigma-provider-profile-grid dd { margin: 0; font-size: 13px; color: var(--sc-ink); overflow-wrap: anywhere; }
#scenc-portal .sigma-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-top: 18px; }
#scenc-portal .sigma-provider-detail .sigma-contact-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 12px; margin: 0; padding: 18px; border: 1px solid var(--sc-line); border-radius: 12px; background: #fbfcfe; }
#scenc-portal .sigma-provider-detail .sigma-contact-avatar { display: grid; place-items: center; width: 40px; height: 40px; margin: 0; border-radius: 11px; background: #e8f0fa; color: #35669a; font-size: 12px; font-weight: 700; }
#scenc-portal .sigma-provider-detail .sigma-contact-card > div:nth-child(2) { display: grid; gap: 7px; min-width: 0; }
#scenc-portal .sigma-provider-detail .sigma-contact-card h3 { margin: 0; line-height: 1.4; }
#scenc-portal .sigma-provider-detail .sigma-contact-card p { font-size: 12px; color: var(--sc-muted); }
#scenc-portal .sigma-provider-detail .sigma-contact-card a { display: flex; align-items: flex-start; gap: 7px; min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
#scenc-portal .sigma-provider-detail .sigma-contact-card a .scenc-icon { flex: none; width: 14px; height: 14px; margin-top: 2px; }
#scenc-portal .sigma-provider-detail .sigma-contact-card small { color: var(--sc-muted); }
#scenc-portal .sigma-provider-detail .sigma-contact-card > .scenc-btn { grid-column: 2; justify-self: start; margin-top: 3px; font-size: 11px; }
#scenc-portal .sigma-process-contacts { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--sc-line); }
#scenc-portal .sigma-process-contacts h4 { margin-top: 16px; font-size: 11px; font-weight: 600; color: var(--sc-muted); }
#scenc-portal .sigma-process-contacts .sigma-contact-grid { margin-top: 10px; }
#scenc-portal .sigma-provider-arca .sigma-arca-summary { margin-top: 18px; }
#scenc-portal .sigma-history-entry { position: relative; margin-top: 20px; padding: 0 0 20px 22px; border-bottom: 1px solid #edf1f6; }
#scenc-portal .sigma-history-entry::before { content: ''; position: absolute; inset-inline-start: 0; top: 5px; width: 7px; height: 7px; border: 2px solid #9cbadb; border-radius: 50%; background: #fff; }
#scenc-portal .sigma-history-entry > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--sc-muted); font-size: 11px; }
#scenc-portal .sigma-history-entry > div > .scenc-icon { width: 14px; height: 14px; }
#scenc-portal .sigma-history-entry > div > b { color: #3c5b77; }
#scenc-portal .sigma-history-entry > p { margin-top: 7px; font-size: 13px; }
#scenc-portal .sigma-history-diff { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--sc-line); border-radius: 9px; background: #f8fafc; font-size: 12px; }
#scenc-portal .sigma-history-diff summary { cursor: pointer; font-weight: 600; color: #456984; }
#scenc-portal .sigma-history-diff :is(p, h4, ul) { margin-top: 10px; overflow-wrap: anywhere; }

/* Local decisions sit in their own top-layer dialog and retain visible focus. */
#scenc-portal .scenc-dialog.sigma-decision[open] { width: min(470px, calc(100vw - 32px)); border-radius: 16px; box-shadow: 0 24px 90px #142d5359; }
#scenc-portal .sigma-decision-form { min-width: 0; min-height: 0; padding: 24px; overflow: auto; overscroll-behavior: contain; }
#scenc-portal .sigma-decision-form > header { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
#scenc-portal .sigma-decision-form h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
#scenc-portal .sigma-decision-icon { display: inline-grid; flex: none; place-items: center; width: 42px; height: 42px; border: 1px solid #d6e5f5; border-radius: 12px; background: var(--sigma-ui-tint); color: var(--sc-blue); }
#scenc-portal .sigma-decision-icon.is-danger { border-color: #efd3ce; background: #fff2ee; color: var(--sigma-ui-danger); }
#scenc-portal .sigma-decision-icon .scenc-icon { width: 21px; height: 21px; }
#scenc-portal .sigma-decision-form > p { font-size: 14px; line-height: 1.7; color: #4c647c; white-space: pre-wrap; overflow-wrap: anywhere; }
#scenc-portal .sigma-decision-form > .scenc-field { font-size: 13px; }
#scenc-portal .sigma-decision-form .scenc-dialog-footer { margin-top: 24px; padding-top: 18px; }
#scenc-portal .sigma-decision-form .scenc-dialog-footer .scenc-btn { min-width: 106px; }
#scenc-portal .sigma-panel-skeleton { display: grid; align-content: center; gap: 14px; min-height: 170px; padding: 24px 0; }
#scenc-portal .sigma-panel-skeleton > span:not(.scenc-screenreader) { display: block; height: 14px; width: 100%; border-radius: 6px; background: #e9eff5; animation: sigma-content-pulse 1.5s ease-in-out infinite alternate; }
#scenc-portal .sigma-panel-skeleton > span:first-child { width: 45%; height: 18px; }
#scenc-portal .sigma-panel-skeleton > span:nth-child(3) { width: 75%; }
#scenc-portal [data-provider-panel][aria-busy=true] { cursor: progress; }
@keyframes sigma-content-pulse { from { opacity: .55; } to { opacity: 1; } }

/* Global notices and CRM interactions use the same surfaces and state colors. */
#scenc-portal .sigma-notification-bell { position: relative; flex: 0 0 auto; overflow: visible; }
#scenc-portal .sigma-notification-bell > [data-notification-badge] { position: absolute; top: -4px; inset-inline-end: -5px; display: grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 4px; border: 2px solid #fff; border-radius: 10px; background: #b34b42; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
#scenc-portal .sigma-notification-bell > [hidden] { display: none; }
#scenc-portal .sigma-global-notifications > .scenc-spread { gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--sc-line); }
#scenc-portal .sigma-global-notifications [role=group] { display: inline-flex; gap: 5px; flex-wrap: wrap; }
#scenc-portal .sigma-notification-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid var(--sc-line); border-radius: 12px; overflow: hidden; background: #fff; }
#scenc-portal .sigma-notification-item.is-unread { border-color: #c8daef; border-inline-start: 3px solid var(--sc-blue); background: #f8fbff; }
#scenc-portal .sigma-notification-item .sigma-notification-row { min-width: 0; grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 10px; border: 0; border-radius: 0; background: transparent; padding: 11px 12px; }
#scenc-portal .sigma-notification-item.is-read .sigma-notification-row { grid-column: 1 / -1; }
#scenc-portal .sigma-notification-item .sigma-notification-row > span:nth-child(2) > small { white-space: normal; line-height: 1.5; overflow-wrap: anywhere; }
#scenc-portal .sigma-notification-item .sigma-notification-row > span:nth-child(2) > small:last-child { margin-top: 3px; font-size: 11px; }
#scenc-portal .sigma-notification-item.is-read .sigma-notification-row b { font-weight: 500; }
#scenc-portal .sigma-notification-item > .sigma-notification-read { margin: 0 12px 0 0; min-height: 32px; padding: 5px 9px; font-size: 11px; white-space: nowrap; }
#scenc-portal .sigma-notification-read .scenc-icon { width: 14px; height: 14px; }
@media (max-width: 560px) {
    #scenc-portal .sigma-notification-item { grid-template-columns: minmax(0, 1fr) 38px; }
    #scenc-portal .sigma-notification-item > .sigma-notification-read { width: 34px; min-width: 34px; margin-inline-end: 4px; padding: 6px; justify-content: center; }
    #scenc-portal .sigma-notification-read > span { display: none; }
}
#scenc-portal .sigma-activity-actions { gap: 6px; margin-top: 12px; }
#scenc-portal .sigma-pipeline-card[draggable=true] { cursor: grab; transition: box-shadow 140ms ease, border-color 140ms ease; }
#scenc-portal .sigma-pipeline-card.dragging { cursor: grabbing; opacity: .5; box-shadow: 0 10px 24px #18395424; }
#scenc-portal .sigma-pipeline-column.drag-over { outline: 2px dashed #92b7dd; outline-offset: -2px; background: #edf5ff; }
#scenc-portal .sigma-pipeline-card.is-saving { border-color: #91b4dc; box-shadow: inset 3px 0 var(--sc-blue); cursor: progress; }
#scenc-portal .sigma-pipeline-card.just-moved { border-color: #8fbca7; box-shadow: inset 3px 0 var(--sigma-ui-success); }
#scenc-portal .sigma-pipeline-drop-indicator { min-height: 5px; margin: 7px 1px; border: 1px dashed #75a5d7; border-radius: 5px; background: #d6e8fc; }
#scenc-portal .sigma-proposal-picker-results { display: grid; gap: 8px; max-height: 380px; overflow: auto; overscroll-behavior: contain; }
#scenc-portal .sigma-proposal-choice { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 12px; width: 100%; padding: 14px; border: 1px solid var(--sc-line); border-radius: 10px; background: #fff; color: var(--sc-ink); text-align: left; }
#scenc-portal .sigma-proposal-choice:hover { background: var(--sigma-ui-tint); border-color: #b8d1ec; }
#scenc-portal .sigma-proposal-choice :is(span, div) { min-width: 0; }
#scenc-portal .sigma-proposal-choice :is(b, small) { display: block; overflow-wrap: anywhere; }
#scenc-portal .sigma-proposal-choice small { margin-top: 4px; color: var(--sc-muted); font-size: 12px; }
#scenc-portal .sigma-calendar-legend :is(.is-activity, .is-followup, .is-manual),
#scenc-portal .sigma-origin-badge { display: inline-flex; align-items: center; gap: 6px; }
#scenc-portal .sigma-calendar-legend .scenc-icon { width: 13px; height: 13px; }
#scenc-portal .sigma-calendar-entry.is-activity { border-inline-start: 3px solid #8763a2; background: #f3eef8; color: #674881; }
#scenc-portal .sigma-calendar-entry.is-followup { border-inline-start: 3px solid #c38e3e; background: #fff6e5; color: #8a611e; }
#scenc-portal .sigma-calendar-entry.is-manual { border-inline-start: 3px solid #5a91c8; background: #edf5ff; color: #2b659c; }
#scenc-portal .sigma-calendar-legend .is-activity { color: #74538c; }
#scenc-portal .sigma-calendar-legend .is-followup { color: #8a611e; }
#scenc-portal .sigma-calendar-legend .is-manual { color: #2b659c; }
#scenc-portal .sigma-origin-badge { align-self: flex-start; padding: 6px 10px; border-radius: 7px; background: #eef4fb; color: #2b659c; font-size: 12px; font-weight: 600; }
#scenc-portal .sigma-origin-badge.is-activity { background: #f3eef8; color: #674881; }
#scenc-portal .sigma-origin-badge.is-followup { background: #fff6e5; color: #8a611e; }

/* RC12: quiet progress, consistent form semantics and premium data tables. */
#scenc-portal .sigma-network-progress { position: fixed; z-index: 2400; inset: 0 0 auto; height: 3px; overflow: hidden; background: #dbeafe; pointer-events: none; }
#scenc-portal .sigma-network-progress[hidden],
#scenc-portal .sigma-network-status[hidden] { display: none !important; }
#scenc-portal .sigma-network-progress > span { display: block; width: 34%; height: 100%; border-radius: 0 999px 999px 0; background: linear-gradient(90deg, #2f75bd, #65a9ec); animation: sigma-network-slide 1.05s cubic-bezier(.4,0,.2,1) infinite; }
#scenc-portal .sigma-network-status { position: fixed; z-index: 1700; inset-inline-end: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 14px 8px 9px; border: 1px solid #cbdff2; border-radius: 999px; background: linear-gradient(145deg, #fff, #f5faff); color: #24547f; box-shadow: 0 10px 30px #17395620, inset 0 1px #fff; font-size: 12px; font-weight: 650; letter-spacing: .01em; pointer-events: none; }
#scenc-portal:has(.sigma-network-status:not([hidden])) .scenc-toasts { bottom: max(82px, calc(env(safe-area-inset-bottom) + 82px)); }
#scenc-portal .scenc-dialog .sigma-network-status { z-index: 24; }
#scenc-portal .sigma-network-mark { position: relative; display: inline-grid; place-items: center; width: 25px; height: 25px; color: var(--sc-blue); }
#scenc-portal .sigma-network-mark svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; }
#scenc-portal .sigma-network-mark .sigma-loader-orbit { position: absolute; inset: 1px; border: 1px solid #c9ddf3; border-top-color: var(--sc-blue); border-radius: 50%; animation: sigma-network-spin .9s linear infinite; }
#scenc-portal .sigma-network-mark .sigma-loader-orbit-b { inset: 5px; border-color: transparent #6da5d9 transparent transparent; animation-direction: reverse; animation-duration: .7s; }
#scenc-portal .sigma-network-mark i { display: none; }
@keyframes sigma-network-slide { 0% { transform: translateX(-105%); } 100% { transform: translateX(300%); } }
@keyframes sigma-network-spin { to { transform: rotate(360deg); } }

#scenc-portal .sigma-field-label { display: inline-flex; align-items: baseline; gap: 4px; }
#scenc-portal .sigma-required-mark { color: #b33f49; font-size: 1.05em; font-weight: 750; }
#scenc-portal :is(th, td)[data-table-align=center] { text-align: center; }
#scenc-portal th[data-table-align=center] > :is(button, span) { justify-content: center; margin-inline: auto; }
#scenc-portal .sigma-columns-ready th:has([data-column-drag]) { padding-inline-end: 27px; }
#scenc-portal table.sigma-columns-ready:not(.sigma-provider-table):not(.sigma-cert-report-table) th:has([data-column-drag]) { position: sticky; top: 0; }
#scenc-portal .sigma-columns-ready th:not(:has([data-column-drag])) { cursor: default; }
#scenc-portal .sigma-column-handle { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center; width: 20px; height: 25px; border-radius: 6px; color: #8aa0b4; cursor: grab; opacity: .58; transition: color .15s, background .15s, opacity .15s, box-shadow .15s; touch-action: none; }
#scenc-portal .sigma-column-handle svg { width: 12px; height: 18px; fill: currentColor; }
#scenc-portal .sigma-columns-ready th:hover .sigma-column-handle, #scenc-portal .sigma-column-handle:focus-visible { color: #276aa3; background: #e7f2fc; opacity: 1; }
#scenc-portal .sigma-column-handle:active { cursor: grabbing; }
#scenc-portal .sigma-column-handle:focus-visible { outline: 2px solid #2878bb; outline-offset: 1px; }
#scenc-portal .sigma-column-reordering { cursor: grabbing; user-select: none; }
#scenc-portal .sigma-columns-ready :is(th, td).sigma-column-dragging { opacity: .32; background: #dcecfb; box-shadow: inset 1px 0 #8ab9dc, inset -1px 0 #8ab9dc; }
#scenc-portal .sigma-column-reordering .sigma-column-handle { cursor: grabbing; }
#scenc-portal .sigma-column-ghost { position: fixed; top: 0; left: 0; z-index: 2600; max-height: min(360px, 65vh); overflow: hidden; pointer-events: none; border: 1px solid #8eb9dd; border-radius: 9px; background: #fff; box-shadow: 0 18px 38px #153f6530, 0 4px 12px #153f6520; will-change: transform; }
#scenc-portal .sigma-column-ghost-cell { box-sizing: border-box; overflow: hidden; border-bottom: 1px solid #e6eef6; background: #fff; }
#scenc-portal .sigma-column-ghost-cell:nth-child(odd) { background: #f8fbfe; }
#scenc-portal .sigma-column-ghost-cell.sigma-column-ghost-head { background: #e9f4ff; border-bottom: 2px solid #72aada; color: #245c8e; }
#scenc-portal .sigma-column-ghost .sigma-report-sort { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
#scenc-portal .sigma-column-ghost :is(button, a) { pointer-events: none; }
#scenc-portal .sigma-columns-ready th.sigma-column-drop-before { box-shadow: inset 4px 0 #2386c8, -3px 0 10px #2386c844; background: #e9f5ff; }
#scenc-portal .sigma-columns-ready th.sigma-column-drop-after { box-shadow: inset -4px 0 #2386c8, 3px 0 10px #2386c844; background: #e9f5ff; }
#scenc-portal .sigma-provider-table.sigma-columns-ready [data-col=name] { position: static; }
#scenc-portal .sigma-provider-table.sigma-columns-ready :is(th,td):first-child:not(.sigma-provider-check) { position: sticky; inset-inline-start: 0; z-index: 3; background: #fff; }
#scenc-portal .sigma-provider-table.sigma-columns-ready .sigma-provider-check + :is(th,td) { position: sticky; inset-inline-start: 58px; z-index: 3; background: #fff; }
#scenc-portal .sigma-provider-table.sigma-columns-ready thead :is(th,td):first-child:not(.sigma-provider-check), #scenc-portal .sigma-provider-table.sigma-columns-ready thead .sigma-provider-check + :is(th,td) { z-index: 5; background: #f6f9fc; }
#scenc-portal .sigma-provider-table.sigma-columns-ready tbody tr:hover > td { background:#f4f8fd; }
#scenc-portal .sigma-provider-table.sigma-columns-ready tbody tr:has(input:checked) > td { background: #edf5ff; }
#scenc-portal .sigma-cert-nav a { display: inline-flex; align-items: center; gap: 7px; }
#scenc-portal .sigma-cert-nav .scenc-icon { width: 15px; height: 15px; color: #6f879e; }
#scenc-portal .sigma-cert-nav a[aria-current=page] .scenc-icon { color: currentColor; }

#scenc-portal .sigma-data-surface { box-shadow: 0 10px 30px #1739560b; }
#scenc-portal .sigma-data-surface .sigma-report-table-wrap { background: linear-gradient(90deg, #fff 0%, #fbfdff 50%, #fff 100%); scrollbar-color: #b9cde0 transparent; }
#scenc-portal .sigma-cert-report-table th { border-bottom: 1px solid #dfe9f3; background: linear-gradient(180deg, #f9fbfd, #f3f7fb); color: #4a657e; text-transform: none; letter-spacing: .015em; }
#scenc-portal .sigma-cert-report-table tbody tr:nth-child(even) > td { background: #fcfdff; }
#scenc-portal .sigma-cert-report-table tbody tr:hover > td { background: #f1f7fe; }
#scenc-portal .sigma-cert-report-table td { transition: none; }
#scenc-portal .sigma-cert-report-table .sigma-report-row-open { cursor: pointer; }
#scenc-portal .sigma-cert-report-table .sigma-report-row-open:focus-visible { outline: 2px solid #2d78b7; outline-offset: -2px; }
#scenc-portal .sigma-cert-report-table .sigma-report-row-open:focus-visible > td { background: #eaf4ff; }
#scenc-portal .sigma-cert-report-table .sigma-report-sort { width: 100%; justify-content: inherit; border-radius: 7px; }
#scenc-portal .sigma-cert-report-table .sigma-report-sort:hover { background: #e9f2fc; color: var(--sc-blue); }
#scenc-portal .sigma-cert-report-table :is(th,td).sigma-report-action { position: sticky; inset-inline-end: 0; z-index: 2; text-align: center; background: #fff; box-shadow: -7px 0 14px -12px #17395673, -1px 0 #e3ebf3; }
#scenc-portal .sigma-cert-report-table th.sigma-report-action { z-index: 5; background: linear-gradient(180deg, #f9fbfd, #f3f7fb); }
#scenc-portal .sigma-cert-report-table tr:nth-child(even) td.sigma-report-action { background: #fcfdff; }
#scenc-portal .sigma-cert-report-table tr:hover td.sigma-report-action { background: #f1f7fe; }
#scenc-portal .sigma-crm-contacts-table { min-width: 1110px; table-layout: fixed; }
#scenc-portal .sigma-crm-contacts-table :is(th,td):nth-child(1) { width: 185px; }
#scenc-portal .sigma-crm-contacts-table :is(th,td):nth-child(2) { width: 190px; }
#scenc-portal .sigma-crm-contacts-table :is(th,td):nth-child(3) { width: 135px; }
#scenc-portal .sigma-crm-contacts-table :is(th,td):nth-child(4) { width: 235px; overflow-wrap: anywhere; }
#scenc-portal .sigma-crm-contacts-table :is(th,td):nth-child(5) { width: 165px; }
#scenc-portal .sigma-crm-contacts-table :is(th,td):nth-child(6) { width: 95px; text-align: center; }
#scenc-portal .sigma-crm-contacts-table :is(th,td):nth-child(7) { width: 165px; text-align: center; white-space: nowrap; }
#scenc-portal .sigma-crm-contacts-table th:nth-child(7) .sigma-column-handle { display: none; }
#scenc-portal .sigma-search-select-error { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 11px 12px; color: #923b3b; background: #fff3f2; border-top: 1px solid #f0d6d3; font-size: 12px; line-height: 1.4; }
#scenc-portal .sigma-search-select-error button { min-height: 30px; padding: 4px 9px; border: 1px solid #d7a6a0; border-radius: 7px; background: #fff; color: #87332f; font: inherit; font-weight: 700; cursor: pointer; }
#scenc-portal .sigma-search-select-error button:hover { background: #fff8f7; }
#scenc-portal .sigma-calendar-filters > .scenc-field { flex: 1 1 230px; min-width: min(100%, 230px); max-width: none; }
#scenc-portal .sigma-calendar-filters > .scenc-check { flex: 0 1 auto; }
#scenc-portal .sigma-calendar-filters > button[type=submit] { flex: 0 0 auto; }
#scenc-portal .sigma-cert-report-table .sigma-standard-state { display: inline-grid; place-items: center; border-width: 1px; transition: none; }
#scenc-portal .sigma-cert-report-table .sigma-report-action .scenc-btn { border-radius: 9px; }
#scenc-portal .sigma-cert-report-table .sigma-report-action-content { display: flex; align-items: center; justify-content: center; gap: 8px; }
#scenc-portal .sigma-cert-report-table .sigma-report-row-identity,
#scenc-portal .sigma-cert-report-table .sigma-report-action-label-small { display: none; }
@media (max-width: 680px) {
    #scenc-portal .sigma-cert-report-table :is(th, td).sigma-report-action { width: 170px; min-width: 170px; max-width: 170px; padding-inline: 10px; }
    #scenc-portal .sigma-cert-report-table .sigma-report-action-content { justify-content: space-between; }
    #scenc-portal .sigma-cert-report-table .sigma-report-row-identity { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-width: 0; text-align: left; white-space: normal; color: #294b5e; font-size: 11px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
    #scenc-portal .sigma-cert-report-table .sigma-report-action-label-full { display: none; }
    #scenc-portal .sigma-cert-report-table .sigma-report-action-label-small { display: inline; }
}
#scenc-portal .scenc-main.is-refreshing { cursor: progress; }

@media (max-width: 1000px) {
    #scenc-portal .sigma-filter-primary { flex-basis: 100%; }
    #scenc-portal .sigma-filter-primary > .scenc-field:first-child { flex-basis: 300px; }
    #scenc-portal .sigma-filter-bar > .sigma-filter-unit { max-width: none; }
    #scenc-portal .sigma-data-toolbar { padding: 16px; gap: 12px; }
    #scenc-portal .sigma-table-legend { gap: 8px; }
}
@media (max-width: 600px) {
    #scenc-portal .sigma-calendar-filters { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; }
    #scenc-portal .sigma-calendar-filters > .scenc-field { width: 100%; min-width: 0; max-width: none; }
    #scenc-portal .sigma-calendar-filters > .scenc-check { max-width: none; }
    #scenc-portal .sigma-calendar-filters > button[type=submit] { justify-self: start; }
    #scenc-portal .sigma-crm-page-head { padding: 20px; border-radius: 15px; }
    #scenc-portal .sigma-crm-page-head h1 { font-size: clamp(25px, 7vw, 30px); line-height: 1.16; }
    #scenc-portal form.sigma-compact-filters { padding: 14px; }
    #scenc-portal .sigma-filter-primary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    #scenc-portal .sigma-filter-bar > .sigma-filter-unit { flex-basis: calc(100% - 112px); }
    #scenc-portal .sigma-filter-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    #scenc-portal .sigma-filter-popover-body { padding: 16px; max-height: 60dvh; }
    #scenc-portal .sigma-data-toolbar { gap: 12px 8px; }
    #scenc-portal .sigma-data-toolbar .sigma-table-legend { order: 3; flex-basis: 100%; margin: 0; }
    #scenc-portal .sigma-data-toolbar > .sigma-column-menu { margin-inline-start: auto; }
    #scenc-portal .sigma-certified-list-heading > .sigma-provider-view-toggle { margin-inline-start: auto; }
    #scenc-portal .sigma-certified-list-heading > .scenc-check { flex-basis: 100%; }
    #scenc-portal .sigma-provider-table [data-col=name] { position: static; min-width: 210px; max-width: 260px; }
    #scenc-portal .sigma-provider-table .sigma-provider-check { position: static; }
    #scenc-portal .sigma-provider-table .sigma-row-actions { position: static; min-width: 112px; padding-inline: 8px; }
    #scenc-portal .sigma-provider-table.sigma-columns-ready :is(th,td):first-child:not(.sigma-provider-check), #scenc-portal .sigma-provider-table.sigma-columns-ready .sigma-provider-check + :is(th,td) { position: static; }
    #scenc-portal .sigma-provider-pager { justify-content: center; padding-inline: 12px; gap: 10px; }
    #scenc-portal .sigma-provider-pager > .scenc-flex { margin-inline-start: 0; gap: 8px; }
    #scenc-portal .sigma-provider-pager > span { flex-basis: 100%; text-align: center; }
    #scenc-portal .sigma-detail-tabs { margin-inline: 0; }
    #scenc-portal .sigma-detail-tabs > button { min-height: 42px; padding-inline: 12px; }
    #scenc-portal .sigma-breadcrumbs { font-size: 11px; gap: 6px; }
    #scenc-portal .sigma-breadcrumbs [aria-current=page] { flex-basis: 70px; }
    #scenc-portal .sigma-contact-grid { grid-template-columns: minmax(0, 1fr); }
    #scenc-portal .sigma-provider-detail .sigma-contact-card { padding: 15px; }
    #scenc-portal .sigma-decision-form { padding: 20px; }
    #scenc-portal .sigma-decision-form .scenc-dialog-footer .scenc-btn { flex: 1 1 100px; }
    #scenc-portal .sigma-global-notifications > .scenc-spread { align-items: flex-start; }
    #scenc-portal .sigma-notification-item .sigma-notification-row { padding: 13px; gap: 10px; }
}
@media (pointer: coarse) {
    #scenc-portal .sigma-pin-filter { width: 36px; }
    #scenc-portal .sigma-filter-unit { grid-template-columns: minmax(0, 1fr) 36px; }
    #scenc-portal :is(.sigma-active-filters > button, .sigma-provider-view-toggle > button, .sigma-column-menu label) { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    #scenc-portal .sigma-column-handle { transition: none; }
    #scenc-portal :is(.sigma-panel-skeleton > span, .scenc-spinner, .sigma-network-progress > span, .sigma-network-mark .sigma-loader-orbit) { animation: none; }
    #scenc-portal :is(.sigma-pipeline-card, .sigma-provider-table td, .sigma-cert-report-table td) { transition: none; }
}
@media print {
    #scenc-portal :is(.sigma-filter-popover, .sigma-column-menu, .sigma-row-menu, .sigma-notification-bell, .sigma-decision) { display: none !important; }
    #scenc-portal .sigma-data-surface { border: 0; box-shadow: none; }
    #scenc-portal .sigma-provider-table-wrap { max-height: none; overflow: visible; }
    #scenc-portal :is(.sigma-provider-table, .sigma-cert-report-table) :is(th, td) { position: static !important; }
}
/* Consistent international phone entry in every portal form. */
.scenc .sigma-phone-field{display:grid;gap:6px;min-width:0;width:100%;font-weight:400}
.scenc .sigma-phone-parts{display:grid;grid-template-columns:minmax(54px,.65fr) minmax(54px,.65fr) minmax(88px,1.7fr);gap:8px}
.scenc .sigma-phone-part{position:relative;min-width:0}
.scenc .sigma-phone-part>span{position:absolute;top:4px;left:10px;font-size:10px;line-height:1.2;font-weight:500;color:#62778e;pointer-events:none}
.scenc .sigma-phone-part input{width:100%;min-width:0;font-size:13px;font-variant-numeric:tabular-nums;padding-inline:10px}
#scenc-portal .sigma-phone-part input{padding-block:17px 3px;font-size:13px}
.scenc .sigma-phone-mobile{display:flex;align-items:center;gap:6px;font-size:11px;color:#62778e;cursor:pointer;font-weight:400}
.scenc .sigma-phone-mobile input{width:14px;height:14px;margin:0;accent-color:#176ac0}
.scenc .sigma-phone-hint{font-size:11px;color:#71839a;line-height:1.5}
.scenc .sigma-phone-hint.is-error{color:#b52d36}
.scenc .sigma-phone-original{display:flex;align-items:center;gap:6px;min-height:44px;padding:5px 8px;border:1px solid #d8e3ef;border-radius:8px;background:#f8fafc;flex-wrap:wrap}
.scenc .sigma-phone-original>span{flex:1;min-width:80px;overflow-wrap:anywhere;font-size:13px;color:#34516e}
.scenc .sigma-phone-field [hidden]{display:none!important}
