/*
 * Samariteanul UI Design System v2.14.2
 * Visual reset for the internal CRM, authentication and public portal.
 * No external font dependency. Explicit Romanian/Latin Extended compatible stack.
 */
:root {
    --sam-font-sans: "Segoe UI", "Noto Sans", Arial, "Helvetica Neue", sans-serif;
    --sam-font-mono: Consolas, "Liberation Mono", monospace;

    --sam-fs-micro: 11px;
    --sam-fs-meta: 12px;
    --sam-fs-small: 13px;
    --sam-fs-ui: 14px;
    --sam-fs-medium: 15px;
    --sam-fs-title-sm: 17px;
    --sam-fs-title: 20px;
    --sam-fs-page: 28px;
    --sam-fs-public: 38px;

    --sam-line-tight: 1.25;
    --sam-line-ui: 1.5;
    --sam-line-copy: 1.65;

    --sam-w-normal: 400;
    --sam-w-medium: 500;
    --sam-w-semibold: 600;
    --sam-w-bold: 700;

    --sam-border: #dce5ef;
    --sam-border-soft: #e9eef5;
    --sam-text: #10233f;
    --sam-muted: #66768d;
    --sam-subtle: #8492a6;
    --sam-blue: #1769e0;
    --sam-surface: #ffffff;
    --sam-page: #f6f8fb;
}

html {
    font-family: var(--sam-font-sans) !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-synthesis: none;
    font-kerning: normal;
}

body,
button,
input,
select,
textarea,
optgroup,
table,
a,
p,
label,
summary,
[role="button"],
[role="menuitem"],
[role="option"],
.font-sans {
    font-family: var(--sam-font-sans) !important;
    font-synthesis: none;
}

body {
    font-size: var(--sam-fs-ui) !important;
    line-height: var(--sam-line-ui) !important;
    font-weight: var(--sam-w-normal);
    font-variant-numeric: tabular-nums;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::placeholder {
    font-family: var(--sam-font-sans) !important;
    font-size: var(--sam-fs-small) !important;
}

/* Tailwind typography helpers: one scale across old and new screens. */
.text-xs { font-size: var(--sam-fs-meta) !important; line-height: 1.45 !important; }
.text-sm { font-size: var(--sam-fs-small) !important; line-height: 1.5 !important; }
.text-base { font-size: var(--sam-fs-ui) !important; line-height: 1.5 !important; }
.text-lg { font-size: var(--sam-fs-title-sm) !important; line-height: 1.4 !important; }
.text-xl { font-size: 19px !important; line-height: 1.35 !important; }
.text-2xl { font-size: 24px !important; line-height: 1.3 !important; }
.text-3xl { font-size: 28px !important; line-height: 1.2 !important; }

.font-medium { font-weight: var(--sam-w-medium) !important; }
.font-semibold { font-weight: var(--sam-w-semibold) !important; }
.font-bold,
.font-extrabold,
.font-black { font-weight: var(--sam-w-bold) !important; }

button,
[role="button"] {
    font-size: var(--sam-fs-small) !important;
    font-weight: var(--sam-w-semibold) !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

input,
select,
textarea {
    font-size: var(--sam-fs-ui) !important;
    line-height: 1.45 !important;
}

label {
    font-size: var(--sam-fs-small) !important;
    line-height: 1.4 !important;
    font-weight: var(--sam-w-medium) !important;
}

table { font-size: var(--sam-fs-small) !important; }
th {
    font-size: var(--sam-fs-meta) !important;
    line-height: 1.35 !important;
    font-weight: var(--sam-w-semibold) !important;
    letter-spacing: .01em !important;
}
td { line-height: 1.5 !important; }

/* Internal application shell */
.sam-app-body,
.sam-auth-body {
    font-family: var(--sam-font-sans) !important;
    font-size: var(--sam-fs-ui) !important;
    line-height: var(--sam-line-ui) !important;
}

.sam-nav-item,
.sam-nav-collapsible summary,
.sam-sidebar-role-card,
.sam-portal-launcher {
    font-family: var(--sam-font-sans) !important;
    font-size: var(--sam-fs-ui) !important;
    font-weight: var(--sam-w-semibold) !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

.sam-sidebar-role-card small,
.sam-portal-launcher small {
    font-size: var(--sam-fs-meta) !important;
    font-weight: var(--sam-w-normal) !important;
}

.sam-topbar-kicker {
    font-size: var(--sam-fs-meta) !important;
    line-height: 1.35 !important;
    font-weight: var(--sam-w-semibold) !important;
    letter-spacing: .02em !important;
}

.sam-topbar-title {
    font-size: var(--sam-fs-small) !important;
    line-height: 1.35 !important;
    font-weight: var(--sam-w-semibold) !important;
}

.sam-global-search input,
.sam-topbar-profile,
.sam-profile-menu-head {
    font-size: var(--sam-fs-ui) !important;
}

.sam-search-shortcut {
    font-family: var(--sam-font-sans) !important;
    font-size: var(--sam-fs-micro) !important;
}

/* Person 360 / CRM: deliberately less cramped and closer to the reference CRM. */
.person360 { gap: 16px !important; }
.p360-shell {
    border-color: var(--sam-border) !important;
    border-radius: 15px !important;
    box-shadow: 0 1px 2px rgba(15, 35, 63, .035) !important;
}
.p360-profile {
    gap: 18px !important;
    padding: 20px 22px !important;
    min-height: 126px !important;
}
.p360-avatar {
    width: 78px !important;
    height: 78px !important;
    flex-basis: 78px !important;
    font-size: 25px !important;
    font-weight: var(--sam-w-semibold) !important;
}
.p360-name {
    font-family: var(--sam-font-sans) !important;
    font-size: var(--sam-fs-page) !important;
    font-weight: var(--sam-w-bold) !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em !important;
}
.p360-submeta,
.p360-contact {
    font-size: var(--sam-fs-small) !important;
    line-height: 1.5 !important;
    gap: 8px 16px !important;
}
.p360-pill {
    padding: 4px 9px !important;
    font-size: var(--sam-fs-meta) !important;
    font-weight: var(--sam-w-semibold) !important;
}
.p360-actions { gap: 9px !important; }
.p360-btn {
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: var(--sam-fs-small) !important;
    font-weight: var(--sam-w-semibold) !important;
}
.p360-btn.icon { width: 42px !important; }
.p360-quick-menu { top: 48px !important; width: 250px !important; }
.p360-quick-menu a {
    padding: 10px 11px !important;
    font-size: var(--sam-fs-small) !important;
}
.p360-tabs {
    height: 50px !important;
    padding: 0 12px !important;
    gap: 6px !important;
}
.p360-tab {
    height: 50px !important;
    padding: 0 15px !important;
    font-size: var(--sam-fs-small) !important;
    font-weight: var(--sam-w-semibold) !important;
}
.p360-workspace {
    grid-template-columns: minmax(0, 1fr) 304px !important;
    gap: 16px !important;
}
.p360-main { gap: 14px !important; }
.p360-card {
    border-color: var(--sam-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(15, 35, 63, .02) !important;
}
.p360-card-head {
    gap: 10px !important;
    padding: 15px 16px 11px !important;
}
.p360-card-icon {
    width: 31px !important;
    height: 31px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
}
.p360-card-title,
.p360-section-title {
    font-size: var(--sam-fs-ui) !important;
    font-weight: var(--sam-w-bold) !important;
    line-height: 1.35 !important;
}
.p360-card-body { padding: 4px 16px 16px !important; }
.p360-kv {
    grid-template-columns: minmax(92px, .9fr) minmax(0, 1.1fr) !important;
    gap: 10px 12px !important;
    font-size: var(--sam-fs-small) !important;
    line-height: 1.45 !important;
}
.p360-kv dt { color: #74839a !important; }
.p360-kv dd { font-weight: var(--sam-w-semibold) !important; }
.p360-card-link {
    margin-top: 12px !important;
    font-size: var(--sam-fs-small) !important;
    font-weight: var(--sam-w-semibold) !important;
}
.p360-section-head { padding: 14px 16px !important; }
.p360-count {
    min-width: 23px !important;
    height: 23px !important;
    font-size: var(--sam-fs-meta) !important;
    font-weight: var(--sam-w-semibold) !important;
}
.p360-record {
    gap: 10px !important;
    padding: 12px 16px !important;
}
.p360-record-title {
    font-size: var(--sam-fs-small) !important;
    font-weight: var(--sam-w-semibold) !important;
    line-height: 1.35 !important;
}
.p360-record-meta {
    margin-top: 4px !important;
    font-size: var(--sam-fs-meta) !important;
    line-height: 1.45 !important;
}
.p360-record-state {
    padding: 4px 8px !important;
    font-size: var(--sam-fs-micro) !important;
    font-weight: var(--sam-w-semibold) !important;
}
.p360-empty { padding: 18px 16px !important; font-size: var(--sam-fs-meta) !important; }
.p360-related { top: 18px !important; }
.p360-related-head { padding: 15px 16px !important; }
.p360-related-title { font-size: var(--sam-fs-small) !important; font-weight: var(--sam-w-bold) !important; }
.p360-related-group { padding: 11px 0 !important; }
.p360-related-label {
    padding: 0 16px 7px !important;
    font-size: var(--sam-fs-micro) !important;
    font-weight: var(--sam-w-bold) !important;
    letter-spacing: .06em !important;
}
.p360-related-row {
    grid-template-columns: 24px minmax(0, 1fr) auto 14px !important;
    gap: 8px !important;
    padding: 9px 16px !important;
    font-size: var(--sam-fs-small) !important;
    line-height: 1.4 !important;
}
.p360-related-number { font-weight: var(--sam-w-semibold) !important; }
.p360-next { padding: 12px 14px !important; }
.p360-next small { font-size: var(--sam-fs-micro) !important; }
.p360-next strong { font-size: var(--sam-fs-small) !important; }
.p360-next span { font-size: var(--sam-fs-meta) !important; }
.p360-event { padding: 8px 0 !important; }
.p360-event strong { font-size: var(--sam-fs-meta) !important; }
.p360-event span { font-size: var(--sam-fs-micro) !important; }

/* Public portal: ensure the same font actually loads even when the portal uses
   a different layout, then normalize the visual hierarchy. */
.sam-portal-shell,
.sam-public-case-layout,
.sam-public-case-hero,
.sam-public-org-progress,
.sam-portal-section,
[class^="sam-public-"],
[class*=" sam-public-"],
[class^="sam-portal-"],
[class*=" sam-portal-"] {
    font-family: var(--sam-font-sans) !important;
    font-synthesis: none !important;
}

.sam-portal-shell nav a,
.sam-portal-shell header a,
.sam-portal-shell button,
.sam-portal-shell input {
    font-family: var(--sam-font-sans) !important;
    font-size: var(--sam-fs-ui) !important;
}

.sam-public-case-hero { padding-top: 34px !important; padding-bottom: 24px !important; }
.sam-public-case-hero-inner,
.sam-public-case-layout,
.sam-portal-section {
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.sam-public-case-hero-inner { gap: 28px !important; }
.sam-public-case-hero h1 {
    font-size: var(--sam-fs-public) !important;
    line-height: 1.12 !important;
    font-weight: var(--sam-w-bold) !important;
    letter-spacing: -.025em !important;
}
.sam-public-case-hero p {
    font-size: var(--sam-fs-medium) !important;
    line-height: var(--sam-line-copy) !important;
}
.sam-public-case-hero-meta {
    font-size: var(--sam-fs-small) !important;
    line-height: 1.5 !important;
}
.sam-public-case-hero-badge {
    border-radius: 16px !important;
    padding: 16px !important;
}
.sam-public-case-hero-badge strong { font-size: var(--sam-fs-small) !important; }
.sam-public-case-hero-badge small { font-size: var(--sam-fs-meta) !important; line-height: 1.45 !important; }
.sam-portal-eyebrow,
.sam-public-back,
.sam-public-priority {
    font-size: var(--sam-fs-meta) !important;
    font-weight: var(--sam-w-semibold) !important;
    letter-spacing: .02em !important;
}
.sam-public-case-layout { gap: 24px !important; }
.sam-public-section-head,
.sam-portal-section-head { margin-bottom: 18px !important; }
.sam-public-section-head h2,
.sam-portal-section-head h2 {
    font-size: 28px !important;
    line-height: 1.2 !important;
    font-weight: var(--sam-w-bold) !important;
    letter-spacing: -.02em !important;
}
.sam-portal-section-head p {
    font-size: var(--sam-fs-ui) !important;
    line-height: 1.6 !important;
}
.sam-public-needs-stack { gap: 14px !important; }
.sam-public-need-card {
    border-radius: 18px !important;
    padding: 18px 20px !important;
    min-height: 0 !important;
    box-shadow: 0 1px 2px rgba(15,35,63,.025) !important;
}
.sam-public-need-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 14px !important;
}
.sam-public-need-top h3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: var(--sam-w-semibold) !important;
}
.sam-public-need-top small {
    font-size: var(--sam-fs-meta) !important;
    line-height: 1.4 !important;
}
.sam-public-need-main > p,
.sam-public-progress-note p,
.sam-public-safety-card p,
.sam-public-action-card p {
    font-size: var(--sam-fs-ui) !important;
    line-height: 1.6 !important;
}
.sam-public-safety-card,
.sam-public-action-card {
    border-radius: 16px !important;
    padding: 18px !important;
}
.sam-public-safety-card h3,
.sam-public-action-card h3 {
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: var(--sam-w-bold) !important;
}
.sam-portal-button {
    min-height: 42px !important;
    padding: 0 15px !important;
    border-radius: 10px !important;
    font-size: var(--sam-fs-small) !important;
    font-weight: var(--sam-w-semibold) !important;
}
.sam-portal-section { margin-top: 42px !important; margin-bottom: 42px !important; }

/* Never use synthetic ultra-heavy text; this was the most visible source of
   mismatched Romanian diacritics on some browsers. */
.sam-app-body strong,
.sam-auth-body strong,
.sam-portal-shell strong,
[class^="sam-public-"] strong,
[class*=" sam-public-"] strong,
[class^="sam-portal-"] strong,
[class*=" sam-portal-"] strong {
    font-weight: var(--sam-w-bold) !important;
}

@media (max-width: 1280px) {
    .p360-workspace { grid-template-columns: minmax(0,1fr) 286px !important; }
}

@media (max-width: 980px) {
    .p360-workspace { grid-template-columns: 1fr !important; }
    .sam-public-case-layout { gap: 18px !important; }
}

@media (max-width: 680px) {
    :root { --sam-fs-ui: 14px; }
    .p360-profile { padding: 16px !important; }
    .p360-avatar { width: 64px !important; height: 64px !important; flex-basis: 64px !important; }
    .p360-name { font-size: 22px !important; }
    .p360-btn { min-height: 40px !important; }
    .p360-tab { font-size: var(--sam-fs-small) !important; }
    .p360-kv { grid-template-columns: 1fr 1.15fr !important; }
    .sam-public-case-hero h1 { font-size: 30px !important; }
    .sam-public-section-head h2,
    .sam-portal-section-head h2 { font-size: 24px !important; }
    .sam-public-need-card { padding: 16px !important; }
}

/* v2.14.2 - Case needs CRM cards */
.sam-needs-section {
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(15, 35, 63, .025);
}
.sam-needs-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.sam-needs-title-row { display: flex; align-items: center; gap: 9px; }
.sam-needs-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef4ff;
    color: #165dcc;
    font-size: 12px;
    font-weight: 700;
}
.sam-needs-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.sam-needs-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 11px 14px;
    border: 1px solid #e3eaf3;
    border-radius: 13px;
    background: #fbfdff;
}
.sam-needs-summary-item span { color: #65758b; font-size: 12px; font-weight: 600; }
.sam-needs-summary-item strong { font-size: 20px; line-height: 1; font-weight: 700; color: #12233e; }
.sam-needs-summary-item.is-blue { border-color: #d8e6ff; background: #f7faff; }
.sam-needs-summary-item.is-amber { border-color: #f6e1bc; background: #fffaf1; }
.sam-needs-summary-item.is-green { border-color: #d1eddc; background: #f6fcf8; }
.sam-needs-summary-item.is-gray { background: #fafbfc; }
.sam-needs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f6;
}
.sam-needs-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.sam-needs-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #dbe4ef;
    border-radius: 9px;
    color: #56667d;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.sam-needs-filter span {
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f0f3f7;
    font-size: 10px;
}
.sam-needs-filter:hover { border-color: #b9c9dc; color: #135fca; }
.sam-needs-filter.is-active { border-color: #8bb9f8; background: #eef6ff; color: #0f63d6; }
.sam-needs-filter.is-active span { background: #dbeeff; color: #0f63d6; }
.sam-needs-filter-note { color: #8794a7; font-size: 11px; }
.sam-needs-stack { display: grid; gap: 12px; margin-top: 14px; }
.sam-need-card {
    position: relative;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    background: #fff;
    padding: 17px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.sam-need-card:hover { border-color: #c5d3e4; box-shadow: 0 6px 20px rgba(15, 35, 63, .045); }
.sam-need-card.is-resolved { background: linear-gradient(180deg, #fbfffc 0%, #fff 100%); border-color: #d7ebdf; }
.sam-need-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.sam-need-card-main { min-width: 0; }
.sam-need-eyebrow { display: flex; align-items: center; gap: 8px; color: #607087; font-size: 10px; font-weight: 700; letter-spacing: .045em; }
.sam-need-eyebrow span:first-child { color: #0f65cf; }
.sam-need-eyebrow i { width: 3px; height: 3px; border-radius: 50%; background: #a8b4c4; }
.sam-need-card h3 { margin: 5px 0 0; color: #10233f; font-size: 16px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.sam-need-meta { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 7px; color: #78869a; font-size: 11px; }
.sam-need-meta strong { color: #53647b; font-weight: 600; }
.sam-need-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 42%; }
.sam-need-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.sam-need-pill.is-blue { background: #edf5ff; color: #165fbd; }
.sam-need-pill.is-amber { background: #fff5df; color: #a45a00; }
.sam-need-pill.is-green { background: #eaf9f0; color: #117445; }
.sam-need-pill.is-gray { background: #f2f4f7; color: #5e6b7d; }
.sam-need-description { margin: 11px 0 0; max-width: 920px; color: #5d6d83; font-size: 12px; line-height: 1.6; }
.sam-need-result {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #d3ecdd;
    border-radius: 12px;
    background: #f5fcf8;
}
.sam-need-result-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #dff5e8; color: #16814d; font-size: 13px; font-weight: 800; }
.sam-need-result small { display: block; color: #4a7a5f; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sam-need-result p { margin: 2px 0 0; color: #315c45; font-size: 12px; line-height: 1.5; }
.sam-need-plan {
    margin-top: 13px;
    padding: 13px 14px;
    border: 1px solid #d9e6fa;
    border-radius: 13px;
    background: #f8fbff;
}
.sam-need-plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sam-need-plan-head small { display: block; color: #5d76a0; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.sam-need-plan-head strong { display: block; margin-top: 2px; color: #19365e; font-size: 13px; font-weight: 700; }
.sam-need-plan-head > span { color: #71839d; font-size: 10px; }
.sam-need-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.sam-need-plan-grid > div { padding: 8px 9px; border-radius: 9px; background: #fff; border: 1px solid #e6edf7; }
.sam-need-plan-grid small { display: block; color: #8391a5; font-size: 9px; }
.sam-need-plan-grid strong { display: block; margin-top: 3px; color: #172d4b; font-size: 12px; font-weight: 700; }
.sam-need-progress-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 11px; }
.sam-need-progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e7edf5; }
.sam-need-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1674e8, #2d91f1); }
.sam-need-progress-row > strong { color: #1b5fab; font-size: 11px; }
.sam-need-progress-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; color: #73839a; font-size: 10px; }
.sam-need-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sam-need-facts > div { min-width: 150px; padding: 9px 11px; border: 1px solid #e8edf3; border-radius: 10px; background: #fbfcfd; }
.sam-need-facts small { display: block; color: #8895a7; font-size: 9px; }
.sam-need-facts strong { display: block; margin-top: 3px; color: #223750; font-size: 11px; font-weight: 700; }
.sam-need-context { margin-top: 10px; color: #8a96a7; font-size: 10px; line-height: 1.45; }
.sam-need-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.sam-need-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
    color: #1d5fae;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}
.sam-need-action span { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 999px; background: #edf3fa; color: #57708f; font-size: 9px; }
.sam-need-action:hover { border-color: #a9c3e3; background: #f8fbff; }
.sam-need-action-menu { position: relative; }
.sam-need-action-menu > summary { list-style: none; cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #dbe4ef; border-radius: 8px; background: #fff; color: #53647a; font-size: 11px; font-weight: 600; }
.sam-need-action-menu > summary::-webkit-details-marker { display: none; }
.sam-need-action-popover { position: absolute; z-index: 20; left: 0; top: 38px; width: min(440px, calc(100vw - 48px)); padding: 13px; border: 1px solid #d8e1ec; border-radius: 12px; background: #fff; box-shadow: 0 18px 45px rgba(15, 35, 63, .15); }
.sam-need-action-form + .sam-need-action-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf1f5; }
.sam-need-action-form { display: grid; gap: 7px; }
.sam-need-action-form label { color: #53647a; font-size: 10px; font-weight: 700; }
.sam-need-action-form-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.sam-need-support-details { margin-top: 12px; border-top: 1px solid #edf1f5; }
.sam-need-support-details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 0; color: #28435f; font-size: 11px; font-weight: 700; }
.sam-need-support-details > summary::-webkit-details-marker { display: none; }
.sam-need-support-summary-meta { display: inline-flex; align-items: center; gap: 7px; color: #8090a5; font-size: 10px; font-weight: 500; }
.sam-need-support-summary-meta b { color: #4f75a0; font-size: 15px; transition: transform .15s ease; }
.sam-need-support-details[open] .sam-need-support-summary-meta b { transform: rotate(90deg); }
.sam-need-support-body { margin-top: 10px; }
.sam-need-support-body > * { margin-top: 0 !important; }
.sam-needs-empty { display: grid; gap: 4px; padding: 28px 18px; border: 1px dashed #ccd7e4; border-radius: 14px; text-align: center; color: #7c899b; }
.sam-needs-empty strong { color: #43536a; font-size: 13px; }
.sam-needs-empty span { font-size: 11px; }

.dark .sam-needs-section,
.dark .sam-need-card,
.dark .sam-needs-filter,
.dark .sam-need-action,
.dark .sam-need-action-menu > summary,
.dark .sam-need-action-popover { background: #111827; border-color: #334155; }
.dark .sam-need-card h3,
.dark .sam-needs-summary-item strong,
.dark .sam-need-plan-grid strong,
.dark .sam-need-facts strong { color: #f1f5f9; }
.dark .sam-needs-summary-item,
.dark .sam-need-plan-grid > div,
.dark .sam-need-facts > div { background: #0f172a; border-color: #334155; }
.dark .sam-needs-toolbar,
.dark .sam-need-support-details { border-color: #293548; }
.dark .sam-need-plan { background: #101b2d; border-color: #284365; }
.dark .sam-need-plan-head strong { color: #dcecff; }
.dark .sam-need-action-popover { box-shadow: 0 18px 45px rgba(0, 0, 0, .35); }

@media (max-width: 900px) {
    .sam-needs-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sam-need-card-head { flex-direction: column; }
    .sam-need-badges { justify-content: flex-start; max-width: none; }
    .sam-need-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .sam-needs-section { padding: 14px; border-radius: 14px; }
    .sam-needs-head, .sam-needs-toolbar { align-items: stretch; flex-direction: column; }
    .sam-needs-summary { grid-template-columns: 1fr 1fr; }
    .sam-needs-summary-item { min-height: 50px; padding: 9px 10px; }
    .sam-needs-summary-item strong { font-size: 17px; }
    .sam-need-card { padding: 14px; }
    .sam-need-plan-grid { grid-template-columns: 1fr 1fr; }
    .sam-need-progress-foot { align-items: flex-start; flex-direction: column; gap: 3px; }
    .sam-need-action-popover { position: fixed; left: 14px; right: 14px; top: auto; bottom: 14px; width: auto; max-height: 72vh; overflow: auto; }
}

/* v2.15.0 - probleme identificate / lifecycle public */
.sam-public-problems-section {
    margin-bottom: 30px;
}
.sam-public-problem-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.sam-public-problem-counts span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #1764c1;
    font-size: 11px;
    font-weight: 700;
}
.sam-public-problem-counts span.is-resolved {
    background: #edf9f1;
    color: #167247;
}
.sam-public-problem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.sam-public-problem-card {
    border: 1px solid #dce5ef;
    border-radius: 16px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(15, 35, 63, .025);
}
.sam-public-problem-card.is-resolved {
    border-color: #d4ebdd;
    background: linear-gradient(180deg, #f8fdf9 0%, #fff 100%);
}
.sam-public-problem-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.sam-public-problem-card small {
    color: #8b98aa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.sam-public-problem-card h3 {
    margin: 5px 0 0;
    color: #10233f;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.01em;
}
.sam-public-problem-card p {
    margin: 11px 0 0;
    color: #5d6d83;
    font-size: 13px;
    line-height: 1.65;
}
.sam-public-problem-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}
.sam-public-problem-badges span,
.sam-public-problem-resolved-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.sam-public-problem-badges .is-priority {
    background: #fff5df;
    color: #a45a00;
}
.sam-public-problem-badges .is-active {
    background: #edf5ff;
    color: #165fbd;
}
.sam-public-problem-badges .is-monitoring {
    background: #f2efff;
    color: #6647b8;
}
.sam-public-problem-resolved-badge {
    background: #eaf9f0;
    color: #117445;
}
.sam-public-problem-empty {
    margin-top: 14px;
    padding: 16px;
    border: 1px dashed #cfe7d8;
    border-radius: 14px;
    background: #f8fcf9;
    color: #49745d;
    font-size: 12px;
}
.sam-public-resolved-problems {
    margin-top: 14px;
    border: 1px solid #d7ebdf;
    border-radius: 16px;
    background: #f8fcf9;
    overflow: hidden;
}
.sam-public-resolved-problems > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    cursor: pointer;
    list-style: none;
    color: #176c45;
    font-size: 12px;
    font-weight: 700;
}
.sam-public-resolved-problems > summary::-webkit-details-marker { display: none; }
.sam-public-resolved-problems > summary strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 35, 63, .05);
    font-size: 10px;
}
.sam-public-resolved-problems > .sam-public-problem-grid {
    margin: 0;
    padding: 12px;
    border-top: 1px solid #e0f0e6;
}
.sam-public-problem-resolved-date {
    margin-top: 10px;
    color: #5c8b70;
    font-size: 10px;
    font-weight: 600;
}
.dark .sam-public-problem-card,
.dark .sam-public-resolved-problems > summary strong {
    background: #111827;
    border-color: #334155;
}
.dark .sam-public-problem-card.is-resolved,
.dark .sam-public-resolved-problems {
    background: #0d1b15;
    border-color: #28523d;
}
.dark .sam-public-problem-card h3 { color: #f1f5f9; }
.dark .sam-public-problem-card p { color: #a7b4c5; }
.dark .sam-public-problem-empty { background: #0d1b15; border-color: #28523d; color: #9bc8ae; }
.dark .sam-public-resolved-problems > .sam-public-problem-grid { border-color: #28523d; }

@media (max-width: 900px) {
    .sam-public-problem-grid { grid-template-columns: 1fr; }
    .sam-public-problem-counts { justify-content: flex-start; }
}
@media (max-width: 620px) {
    .sam-public-problem-card-top { flex-direction: column; }
    .sam-public-problem-badges { justify-content: flex-start; }
}

/* v2.16.0 - filtre publice pentru situatii identificate */
.sam-public-problem-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}
.sam-public-problem-filters {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    background: #f7f9fc;
}
.sam-public-problem-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 9px;
    color: #65758b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: .16s ease;
}
.sam-public-problem-filter:hover {
    color: #185fb8;
    background: #eef5ff;
}
.sam-public-problem-filter.is-active {
    color: #0f5fbf;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 35, 63, .08);
}
.sam-public-problem-filter span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: #edf2f8;
    color: #718096;
    font-size: 10px;
}
.sam-public-problem-filter.is-active span {
    background: #e7f1ff;
    color: #0f5fbf;
}
.sam-public-problem-filter-note {
    color: #8b98aa;
    font-size: 11px;
    font-weight: 600;
}
.sam-public-problem-grid > .sam-public-problem-empty {
    grid-column: 1 / -1;
    margin-top: 0;
}
.dark .sam-public-problem-filters {
    border-color: #334155;
    background: #0f172a;
}
.dark .sam-public-problem-filter { color: #94a3b8; }
.dark .sam-public-problem-filter:hover { background: #172554; color: #bfdbfe; }
.dark .sam-public-problem-filter.is-active { background: #111827; color: #93c5fd; }
.dark .sam-public-problem-filter span { background: #1f2937; color: #9ca3af; }
.dark .sam-public-problem-filter.is-active span { background: #172554; color: #bfdbfe; }

@media (max-width: 720px) {
    .sam-public-problem-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .sam-public-problem-filters {
        display: flex;
        width: 100%;
        overflow-x: auto;
    }
    .sam-public-problem-filter { flex: 1 0 auto; justify-content: center; }
}

/* v2.17.0 - finisare navigatie, necesar financiar si jurnal de versiuni */
.sam-sidebar-version-only { padding-top: 10px; }
.sam-sidebar-version-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    background: #f8fafc;
    color: #607086;
}
.sam-sidebar-version-card > span { display:inline-flex; width:28px; height:28px; align-items:center; justify-content:center; border-radius:9px; background:#edf5ff; color:#1876c8; }
.sam-sidebar-version-card svg { width:15px; height:15px; }
.sam-sidebar-version-card strong { display:block; color:#2f4157; font-size:11px; line-height:1.25; }
.sam-sidebar-version-card small { display:block; margin-top:2px; font-size:10px; color:#8b98aa; }
.sam-topbar-portal-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
    background: #fff;
    color: #52657d;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.sam-topbar-portal-link:hover { color:#0f6dc7; background:#f5f9ff; border-color:#cfe1f7; }
.sam-topbar-portal-link svg { width:16px; height:16px; }

.sam-case-financial-summary {
    padding: 18px;
    border: 1px solid #d7e6f5;
    border-radius: 18px;
    background: linear-gradient(135deg,#f8fbff 0%,#ffffff 60%);
    box-shadow: 0 8px 24px rgba(15,35,63,.045);
}
.sam-case-financial-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.sam-case-financial-kicker { display:flex; align-items:center; gap:7px; color:#1c6fc0; font-size:11px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
.sam-case-financial-kicker svg { width:15px; height:15px; }
.sam-case-financial-head h2 { margin:5px 0 4px; color:#102a46; font-size:18px; font-weight:750; }
.sam-case-financial-head p { margin:0; max-width:760px; color:#6f7f92; font-size:12px; line-height:1.55; }
.sam-case-financial-currencies { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; margin-top:15px; }
.sam-case-financial-currency { padding:14px; border:1px solid #e0e8f1; border-radius:14px; background:#fff; }
.sam-case-financial-currency-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.sam-case-financial-currency-top small { display:block; color:#7e8da0; font-size:10px; font-weight:700; text-transform:uppercase; }
.sam-case-financial-currency-top strong { display:block; margin-top:3px; color:#102a46; font-size:18px; }
.sam-case-financial-currency-top > span { padding:5px 8px; border-radius:999px; background:#eaf4ff; color:#1169bf; font-size:11px; font-weight:800; }
.sam-case-financial-progress { height:8px; margin-top:12px; overflow:hidden; border-radius:999px; background:#eaf0f6; }
.sam-case-financial-progress i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#1d7ad2,#2aa779); }
.sam-case-financial-meta { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:9px; color:#75859a; font-size:11px; }
.sam-case-financial-meta strong { color:#33485f; }

.sam-public-funding-card { border-color:#d8e7f6; background:linear-gradient(180deg,#f8fbff 0%,#fff 72%); }
.sam-public-funding-totals { display:grid; gap:10px; margin-top:14px; }
.sam-public-funding-total { padding:12px; border:1px solid #dfe8f2; border-radius:13px; background:#fff; }
.sam-public-funding-total-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.sam-public-funding-total-top small { display:block; color:#7c899b; font-size:10px; font-weight:700; text-transform:uppercase; }
.sam-public-funding-total-top strong { display:block; margin-top:3px; color:#102a46; font-size:18px; }
.sam-public-funding-total-top > span { padding:4px 7px; border-radius:999px; background:#eaf4ff; color:#0f67bb; font-size:10px; font-weight:800; }
.sam-public-funding-progress { height:8px; margin-top:10px; overflow:hidden; border-radius:999px; background:#e9eff5; }
.sam-public-funding-progress i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#1b77cf,#2aa779); }
.sam-public-funding-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 10px; margin-top:8px; color:#748398; font-size:10px; }
.sam-public-funding-full { margin-top:9px; padding:8px 9px; border-radius:9px; background:#f1f7ff; color:#42566f; font-size:11px; }
.sam-public-funding-needs,.sam-public-funding-bank { margin-top:12px; padding:0; border:1px solid #dfe7f1; border-radius:12px; background:#fff; overflow:hidden; }
.sam-public-funding-needs > summary,.sam-public-funding-bank > summary { cursor:pointer; padding:11px 12px; color:#29435f; font-size:11px; font-weight:800; }
.sam-public-funding-needs > div,.sam-public-funding-bank > div { border-top:1px solid #edf1f5; }
.sam-public-funding-needs article { padding:11px 12px; border-bottom:1px solid #edf1f5; }
.sam-public-funding-needs article:last-child { border-bottom:0; }
.sam-public-funding-needs article small { display:block; color:#7d8b9c; font-size:9px; font-weight:700; }
.sam-public-funding-needs article strong { display:block; margin-top:2px; color:#18344f; font-size:11px; }
.sam-public-funding-needs article p { margin:6px 0 0; color:#748398; font-size:10px; line-height:1.45; }
.sam-public-funding-need-amounts { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.sam-public-funding-need-amounts span { padding:4px 7px; border-radius:999px; background:#fff3dd; color:#a45a00; font-size:9px; font-weight:800; }
.sam-public-funding-reference { margin-top:12px; padding:10px 11px; border-radius:11px; background:#102a46; color:#fff; }
.sam-public-funding-reference small { display:block; color:#cbd8e7; font-size:9px; font-weight:700; text-transform:uppercase; }
.sam-public-funding-reference strong { display:block; margin-top:3px; font-size:13px; letter-spacing:.02em; }
.sam-public-funding-bank article { padding:9px 12px; border-bottom:1px solid #edf1f5; }
.sam-public-funding-bank article:last-child { border-bottom:0; }
.sam-public-funding-bank small { display:block; color:#7e8c9d; font-size:9px; font-weight:700; }
.sam-public-funding-bank strong { display:block; margin-top:2px; color:#213b55; font-size:10px; word-break:break-all; }

.sam-changelog-page { max-width:1180px; }
.sam-changelog-hero { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; padding:22px; border:1px solid #dfe7f1; border-radius:18px; background:#fff; }
.sam-changelog-kicker { color:#1a71c3; font-size:10px; font-weight:800; letter-spacing:.08em; }
.sam-changelog-hero h1 { margin:4px 0; color:#122b46; font-size:26px; font-weight:750; }
.sam-changelog-hero p { margin:0; max-width:720px; color:#718096; font-size:12px; line-height:1.55; }
.sam-changelog-current { padding:10px 12px; border-radius:12px; background:#f1f7ff; color:#61738a; font-size:11px; white-space:nowrap; }
.sam-changelog-current strong { color:#105fb6; }
.sam-changelog-filters { display:flex; flex-wrap:wrap; gap:7px; align-items:center; padding:10px; border:1px solid #dfe7f1; border-radius:14px; background:#fff; }
.sam-changelog-filter { display:inline-flex; align-items:center; min-height:34px; padding:0 11px; border-radius:9px; color:#63748b; font-size:11px; font-weight:750; text-decoration:none; }
.sam-changelog-filter:hover { background:#f2f7fd; color:#1269bc; }
.sam-changelog-filter.is-active { background:#eaf4ff; color:#0f64b8; }
.sam-changelog-version-filter { margin-left:auto; display:flex; align-items:center; gap:7px; }
.sam-changelog-version-filter label { color:#7f8da0; font-size:10px; font-weight:700; }
.sam-changelog-version-filter select { min-height:34px; border:1px solid #dfe7f1; border-radius:9px; background:#fff; padding:0 28px 0 9px; color:#33485f; font-size:11px; }
.sam-changelog-version-card { border:1px solid #dfe7f1; border-radius:16px; overflow:hidden; background:#fff; }
.sam-changelog-version-card > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-bottom:1px solid #e9eef4; background:#f8fafc; color:#8290a1; font-size:10px; }
.sam-changelog-version-card > header span { display:block; color:#94a3b5; font-size:9px; font-weight:800; letter-spacing:.08em; }
.sam-changelog-version-card > header h2 { margin:2px 0 0; color:#17344f; font-size:17px; }
.sam-changelog-list { display:grid; }
.sam-changelog-entry { display:grid; grid-template-columns:145px 1fr; gap:16px; padding:15px 16px; border-bottom:1px solid #edf1f5; }
.sam-changelog-entry:last-child { border-bottom:0; }
.sam-changelog-entry-meta { display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.sam-change-type,.sam-change-category { display:inline-flex; align-items:center; min-height:23px; padding:0 8px; border-radius:999px; font-size:9px; font-weight:800; }
.sam-change-type.is-new { background:#e8f7ef; color:#157a4b; }
.sam-change-type.is-improved { background:#eaf4ff; color:#1267b8; }
.sam-change-type.is-fixed { background:#fff0e8; color:#b64b13; }
.sam-change-type.is-security { background:#f2eafe; color:#7042b7; }
.sam-change-type.is-technical { background:#eef1f4; color:#596879; }
.sam-change-category { background:#f7f8fa; color:#77869a; }
.sam-changelog-entry h3 { margin:0; color:#18344f; font-size:13px; font-weight:750; }
.sam-changelog-entry p { margin:5px 0 0; color:#718096; font-size:11px; line-height:1.55; }

.dark .sam-sidebar-version-card,.dark .sam-changelog-hero,.dark .sam-changelog-filters,.dark .sam-changelog-version-card,.dark .sam-case-financial-currency,.dark .sam-public-funding-total,.dark .sam-public-funding-needs,.dark .sam-public-funding-bank { background:#111827; border-color:#334155; }
.dark .sam-case-financial-summary,.dark .sam-public-funding-card { background:#0f172a; border-color:#334155; }
.dark .sam-case-financial-head h2,.dark .sam-case-financial-currency-top strong,.dark .sam-changelog-hero h1,.dark .sam-changelog-version-card > header h2,.dark .sam-changelog-entry h3,.dark .sam-public-funding-total-top strong { color:#f1f5f9; }

@media (max-width:760px) {
    .sam-topbar-portal-link span { display:none; }
    .sam-topbar-portal-link { width:36px; padding:0; justify-content:center; }
    .sam-case-financial-head,.sam-changelog-hero { flex-direction:column; }
    .sam-changelog-current { white-space:normal; }
    .sam-changelog-version-filter { width:100%; margin-left:0; }
    .sam-changelog-version-filter select { flex:1; }
    .sam-changelog-entry { grid-template-columns:1fr; gap:8px; }
    .sam-changelog-entry-meta { flex-direction:row; flex-wrap:wrap; }
}
.sam-public-funding-full { display:flex; flex-direction:column; gap:7px; }
.sam-public-funding-full a,.sam-public-funding-need-link { display:inline-flex; align-items:center; gap:5px; width:max-content; color:#0f67bb; font-size:10px; font-weight:800; text-decoration:none; }
.sam-public-funding-full a:hover,.sam-public-funding-need-link:hover { text-decoration:underline; }
.sam-public-funding-full a svg,.sam-public-funding-need-link svg { width:13px; height:13px; }
.sam-public-funding-need-link { margin-top:8px; }

/* v2.17.1 - card public clar, contact si anulare verificare */
.sam-button-danger {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:38px;
    padding:0 13px;
    border:1px solid #fecaca;
    border-radius:10px;
    background:#fff;
    color:#b42318;
    font-size:12px;
    font-weight:750;
    cursor:pointer;
    transition:.16s ease;
}
.sam-button-danger:hover { background:#fff1f1; border-color:#fda4af; color:#991b1b; }
.sam-button-danger span[aria-hidden="true"] { font-size:12px; line-height:1; }

.sam-public-contact-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 10px;
    border-radius:9px;
    color:#5d6d83;
    font-size:12px;
    font-weight:700;
    text-decoration:none;
    transition:.16s ease;
}
.sam-public-contact-link:hover { color:#0f67bb; background:#eef5ff; }

.sam-public-cases-page { max-width:1260px; margin:0 auto; padding:42px 24px 64px; }
.sam-public-cases-heading { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; }
.sam-public-cases-heading h1 { margin:7px 0 6px; max-width:900px; color:#10233f; font-size:30px; line-height:1.18; font-weight:750; letter-spacing:-.025em; }
.sam-public-cases-heading p { margin:0; max-width:760px; color:#687a91; font-size:13px; line-height:1.65; }
.sam-public-case-state-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-top:22px; padding:5px; width:max-content; max-width:100%; border:1px solid #dfe7f1; border-radius:13px; background:#f7f9fc; }
.sam-public-case-state-tabs a { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0 12px; border-radius:9px; color:#687a91; font-size:12px; font-weight:750; text-decoration:none; }
.sam-public-case-state-tabs a:hover { color:#0f67bb; background:#eef5ff; }
.sam-public-case-state-tabs a.is-active { color:#0f67bb; background:#fff; box-shadow:0 1px 4px rgba(15,35,63,.08); }
.sam-public-case-state-tabs span { display:inline-flex; min-width:21px; height:21px; align-items:center; justify-content:center; padding:0 6px; border-radius:999px; background:#edf2f8; color:#718096; font-size:10px; }
.sam-public-case-state-tabs a.is-active span { background:#e7f1ff; color:#0f5fbf; }

.sam-public-case-filters { display:grid; grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(145px,.72fr)) auto auto; gap:10px; align-items:end; margin-top:16px; padding:14px; border:1px solid #dfe7f1; border-radius:16px; background:#fff; }
.sam-public-case-filters label { display:block; min-width:0; }
.sam-public-case-filters label > span { display:block; margin-bottom:5px; color:#7d8b9e; font-size:10px; font-weight:750; }
.sam-public-case-filters input,.sam-public-case-filters select { width:100%; min-height:38px; border:1px solid #d8e1eb; border-radius:10px; background:#fff; padding:0 10px; color:#20364f; font-size:12px; outline:none; }
.sam-public-case-filters input:focus,.sam-public-case-filters select:focus { border-color:#7ab6eb; box-shadow:0 0 0 3px rgba(45,134,216,.09); }
.sam-public-case-filters button { min-height:38px; padding:0 14px; border:0; border-radius:10px; background:#1479d5; color:#fff; font-size:12px; font-weight:800; cursor:pointer; }
.sam-public-case-filters button:hover { background:#0f69bd; }
.sam-public-case-reset { display:inline-flex; min-height:38px; align-items:center; padding:0 8px; color:#64758a; font-size:11px; font-weight:700; text-decoration:none; }
.sam-public-case-reset:hover { color:#0f67bb; }

.sam-public-case-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:22px; }
.sam-public-case-list-card { overflow:hidden; border:1px solid #dbe4ee; border-radius:18px; background:#fff; box-shadow:0 9px 28px rgba(15,35,63,.045); transition:.18s ease; }
.sam-public-case-list-card:hover { transform:translateY(-2px); border-color:#c7d9ec; box-shadow:0 14px 34px rgba(15,35,63,.075); }
.sam-public-case-list-card.is-resolved { border-color:#d9eadf; }
.sam-public-case-card-cover { position:relative; min-height:112px; padding:18px; background:linear-gradient(135deg,#f1f7ff 0%,#f8fbff 50%,#eef6ff 100%); }
.sam-public-case-list-card.is-resolved .sam-public-case-card-cover { background:linear-gradient(135deg,#f1faf5,#f8fcfa); }
.sam-public-case-card-icon { display:flex; width:48px; height:48px; align-items:center; justify-content:center; border-radius:14px; background:#fff; color:#1479d5; box-shadow:0 5px 16px rgba(15,35,63,.07); }
.sam-public-case-card-icon svg { width:22px; height:22px; }
.sam-public-case-status { position:absolute; top:16px; right:16px; display:inline-flex; min-height:24px; align-items:center; padding:0 8px; border-radius:999px; background:#e7f3ff; color:#0d69bc; font-size:9px; font-weight:800; }
.sam-public-case-status.is-resolved { background:#e8f7ef; color:#147748; }
.sam-public-case-card-body { padding:16px 17px 17px; }
.sam-public-case-card-meta { display:flex; flex-wrap:wrap; gap:5px 10px; align-items:center; color:#8290a3; font-size:9px; }
.sam-public-case-card-meta span { display:inline-flex; align-items:center; gap:4px; }
.sam-public-case-card-meta svg { width:11px; height:11px; }
.sam-public-case-card-body h2 { margin:8px 0 0; color:#10233f; font-size:15px; line-height:1.4; font-weight:700; }
.sam-public-case-card-body > p { margin:8px 0 0; min-height:56px; color:#607187; font-size:11px; line-height:1.6; }
.sam-public-case-need-counts { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.sam-public-case-need-counts span { display:inline-flex; min-height:24px; align-items:center; padding:0 8px; border-radius:999px; background:#eef5ff; color:#2868a8; font-size:9px; font-weight:800; }
.sam-public-case-need-counts span.is-resolved { background:#edf8f1; color:#23764c; }
.sam-public-case-category-list { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }
.sam-public-case-category-list span { display:inline-flex; min-height:23px; align-items:center; padding:0 7px; border-radius:999px; background:#f4f7fa; color:#607187; font-size:9px; font-weight:700; }

.sam-public-case-card-finance { margin-top:13px; padding:12px; border:1px solid #dbe8f4; border-radius:13px; background:#f8fbff; }
.sam-public-case-card-finance-row + .sam-public-case-card-finance-row { margin-top:12px; padding-top:12px; border-top:1px solid #e5edf5; }
.sam-public-case-card-finance-main small { display:block; color:#7890a7; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.035em; }
.sam-public-case-card-finance-main strong { display:block; margin-top:3px; color:#102d49; font-size:14px; line-height:1.35; font-weight:800; }
.sam-public-case-card-finance-main strong em { color:#687b91; font-size:10px; font-style:normal; font-weight:650; }
.sam-public-case-card-progress { height:7px; margin-top:9px; overflow:hidden; border-radius:999px; background:#e5edf5; }
.sam-public-case-card-progress i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#177bd4,#2aa779); }
.sam-public-case-card-finance-meta { display:flex; justify-content:space-between; gap:8px; margin-top:6px; color:#6f8196; font-size:9px; font-weight:650; }
.sam-public-case-card-actions { display:flex; justify-content:space-between; gap:8px; align-items:center; margin-top:14px; padding-top:13px; border-top:1px solid #edf1f5; }
.sam-public-case-card-actions a { display:inline-flex; align-items:center; gap:5px; color:#0969bd; font-size:10px; font-weight:800; text-decoration:none; }
.sam-public-case-card-actions a svg { width:13px; height:13px; }
.sam-public-case-card-actions a:hover { text-decoration:underline; }
.sam-public-case-card-actions a.is-support { min-height:32px; padding:0 10px; border-radius:9px; background:#1479d5; color:#fff; text-decoration:none; }
.sam-public-case-card-actions a.is-support:hover { background:#0f69bd; }
.sam-public-case-empty { grid-column:1/-1; padding:30px; border:1px dashed #d5e0eb; border-radius:16px; background:#fff; text-align:center; }
.sam-public-case-empty strong { color:#253d57; font-size:13px; }
.sam-public-case-empty p { margin:5px 0 0; color:#7a899b; font-size:11px; }
.sam-public-case-pagination { margin-top:20px; }

.dark .sam-button-danger { background:#111827; border-color:#7f1d1d; color:#fca5a5; }
.dark .sam-button-danger:hover { background:#2a1115; }
.dark .sam-public-case-filters,.dark .sam-public-case-list-card,.dark .sam-public-case-state-tabs a.is-active,.dark .sam-public-case-empty { background:#111827; border-color:#334155; }
.dark .sam-public-case-state-tabs { background:#0f172a; border-color:#334155; }
.dark .sam-public-case-card-cover { background:#0f1d2e; }
.dark .sam-public-case-card-body h2,.dark .sam-public-cases-heading h1,.dark .sam-public-case-card-finance-main strong { color:#f1f5f9; }
.dark .sam-public-case-card-body > p,.dark .sam-public-cases-heading p { color:#a7b4c5; }
.dark .sam-public-case-card-finance { background:#0f172a; border-color:#334155; }
.dark .sam-public-case-filters input,.dark .sam-public-case-filters select { background:#0f172a; border-color:#334155; color:#e5edf6; }

@media (max-width:1100px) {
    .sam-public-case-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .sam-public-case-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .sam-public-case-filters button,.sam-public-case-reset { width:100%; justify-content:center; }
}
@media (max-width:680px) {
    .sam-public-cases-page { padding:28px 15px 48px; }
    .sam-public-cases-heading h1 { font-size:25px; }
    .sam-public-case-grid,.sam-public-case-filters { grid-template-columns:1fr; }
    .sam-public-case-state-tabs { width:100%; overflow-x:auto; flex-wrap:nowrap; }
    .sam-public-case-state-tabs a { flex:1 0 auto; justify-content:center; }
    .sam-public-case-card-body > p { min-height:0; }
    .sam-public-case-card-actions { align-items:stretch; flex-direction:column; }
    .sam-public-case-card-actions a.is-support { justify-content:center; }
}

/* v2.17.2 - portal polish, carduri publice si sumar financiar featured */
.sam-public-case-need-counts a {
    display:inline-flex;
    min-height:24px;
    align-items:center;
    padding:0 8px;
    border-radius:999px;
    background:#eef5ff;
    color:#2868a8;
    font-size:9px;
    font-weight:800;
    text-decoration:none;
}
.sam-public-case-need-counts a:hover { background:#e3f0ff; color:#0f67bb; }
.sam-public-case-need-counts a.is-resolved { background:#edf8f1; color:#23764c; }
.sam-public-case-priority {
    display:inline-flex;
    margin-top:8px;
    min-height:23px;
    align-items:center;
    padding:0 8px;
    border-radius:999px;
    background:#f3f6f9;
    color:#66788d;
    font-size:9px;
    font-weight:800;
}
.sam-public-case-priority.is-critical { background:#fff0f0; color:#b42318; }
.sam-public-case-priority.is-high { background:#fff5e5; color:#a85b00; }
.sam-public-case-priority.is-medium { background:#fff9e8; color:#8f6700; }
.sam-public-case-help { margin-top:10px; padding:9px 10px; border:1px dashed #d8e3ee; border-radius:11px; background:#fbfdff; }
.sam-public-case-help > small { display:block; margin-bottom:6px; color:#7b8ba0; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.035em; }
.sam-public-case-help > div { display:flex; flex-wrap:wrap; gap:5px; }
.sam-public-case-help span { display:inline-flex; min-height:23px; align-items:center; padding:0 7px; border-radius:999px; background:#eaf4ff; color:#1766ad; font-size:9px; font-weight:750; }

.sam-featured-case-finance {
    margin-top:12px;
    padding:11px;
    border:1px solid #dbe8f4;
    border-radius:12px;
    background:#f8fbff;
}
.sam-featured-case-finance-row + .sam-featured-case-finance-row { margin-top:11px; padding-top:11px; border-top:1px solid #e5edf5; }
.sam-featured-case-finance small { display:block; color:#7890a7; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.035em; }
.sam-featured-case-finance strong { display:block; margin-top:3px; color:#102d49; font-size:13px; line-height:1.35; font-weight:800; }
.sam-featured-case-finance strong em { color:#687b91; font-size:9px; font-style:normal; font-weight:650; }
.sam-featured-case-progress { height:7px; margin-top:8px; overflow:hidden; border-radius:999px; background:#e5edf5; }
.sam-featured-case-progress i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#177bd4,#2aa779); }
.sam-featured-case-finance-meta { display:flex; justify-content:space-between; gap:8px; margin-top:6px; color:#6f8196; font-size:9px; font-weight:650; }
.sam-featured-case-support {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    margin-top:10px;
    padding:0 11px;
    border-radius:9px;
    background:#1479d5;
    color:#fff !important;
    font-size:10px;
    font-weight:800;
    text-decoration:none !important;
}
.sam-featured-case-support:hover { background:#0f69bd; }
.dark .sam-public-case-help,.dark .sam-featured-case-finance { background:#0f172a; border-color:#334155; }
.dark .sam-featured-case-finance strong { color:#f1f5f9; }

@media (max-width:680px) {
    .sam-featured-case-finance-meta { flex-direction:column; gap:3px; }
}

/* v2.17.2 - CRM caz: filtre activitati si stare sarcini */
.sam-case-activity-filters { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.sam-case-activity-filters a { display:inline-flex; min-height:32px; align-items:center; padding:0 10px; border:1px solid #e0e7ef; border-radius:9px; background:#fff; color:#687a90; font-size:10px; font-weight:750; text-decoration:none; }
.sam-case-activity-filters a:hover { background:#f3f8fd; color:#0f67bb; }
.sam-case-activity-filters a.is-active { border-color:#b9d7f3; background:#eaf4ff; color:#0f67bb; }
.sam-case-task-summary { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.sam-case-task-summary span { display:inline-flex; min-height:31px; align-items:center; gap:5px; padding:0 10px; border-radius:9px; background:#f5f7fa; color:#68788c; font-size:10px; font-weight:700; }
.sam-case-task-summary span strong { color:#20364f; font-size:11px; }
.sam-case-task-summary span.is-overdue { background:#fff0f0; color:#a9443b; }
.sam-case-task-summary span.is-overdue strong { color:#b42318; }
.sam-case-task-summary span.is-today { background:#fff8e7; color:#876600; }
.sam-case-task-summary span.is-today strong { color:#8f6700; }
.sam-case-last-activity { grid-column:1/-1; padding-top:8px !important; border-top:1px solid #edf1f5; }
.sam-case-last-activity strong { font-size:11px !important; }
.dark .sam-case-activity-filters a { background:#111827; border-color:#334155; color:#aab6c5; }
.dark .sam-case-activity-filters a.is-active { background:#0f2942; border-color:#245b86; color:#7dc4ff; }
.dark .sam-case-task-summary span { background:#172033; color:#aab6c5; }

/* === Samariteanul Network v2.18.0: centru operational + matching hub === */
.sam-ops-page,.sam-match-hub{max-width:1560px;margin:0 auto;padding-bottom:36px}
.sam-ops-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 26px;border:1px solid #dbe5f1;border-radius:22px;background:linear-gradient(135deg,#fff 0%,#f6fbff 58%,#eef8ff 100%);box-shadow:0 12px 32px rgba(15,23,42,.05)}
.sam-ops-kicker{margin:0 0 7px;color:#1478c7;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.sam-ops-hero h1{margin:0;color:#0b2f4b;font-size:clamp(28px,3.2vw,42px);line-height:1.06;letter-spacing:-.025em}
.sam-ops-hero p:not(.sam-ops-kicker){max-width:790px;margin:10px 0 0;color:#60748a;font-size:14px;line-height:1.6}
.sam-ops-hero-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.sam-ops-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.sam-ops-metrics article{position:relative;overflow:hidden;min-height:118px;padding:17px;border:1px solid #dce5ef;border-radius:18px;background:#fff;box-shadow:0 7px 22px rgba(15,23,42,.035)}
.sam-ops-metrics article:before{content:"";position:absolute;left:0;top:0;width:4px;height:100%;background:#94a3b8}
.sam-ops-metrics article.is-red:before{background:#ef4444}.sam-ops-metrics article.is-amber:before{background:#f59e0b}.sam-ops-metrics article.is-blue:before{background:#2f80ed}.sam-ops-metrics article.is-violet:before{background:#7c3aed}.sam-ops-metrics article.is-green:before{background:#10b981}
.sam-ops-metrics small{display:block;color:#718096;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.055em}.sam-ops-metrics strong{display:block;margin:4px 0;color:#0b2f4b;font-size:30px;line-height:1}.sam-ops-metrics span{color:#8290a3;font-size:12px}
.sam-ops-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sam-ops-panel{overflow:hidden;border:1px solid #dce5ef;border-radius:19px;background:#fff;box-shadow:0 8px 26px rgba(15,23,42,.035)}
.sam-ops-panel-wide{grid-column:1/-1}
.sam-ops-panel>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px;border-bottom:1px solid #edf2f7;background:#fbfdff}.sam-ops-panel>header>div{display:flex;align-items:center;gap:11px;min-width:0}.sam-ops-panel header h2{margin:0;color:#0b2f4b;font-size:15px;font-weight:800}.sam-ops-panel header p{margin:2px 0 0;color:#8a99aa;font-size:11px}.sam-ops-panel header>a{flex:0 0 auto;color:#176fc0;font-size:12px;font-weight:700}
.sam-ops-list{display:flex;flex-direction:column}.sam-ops-list.compact .sam-ops-row{padding:12px 15px}.sam-ops-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 17px;border-bottom:1px solid #edf2f7;color:inherit;text-decoration:none;transition:.16s ease}.sam-ops-row:last-child{border-bottom:0}.sam-ops-row:not(.is-static):hover{background:#f7fbff}.sam-ops-row-main{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.sam-ops-row-main>strong{overflow:hidden;color:#172b3e;font-size:13px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.sam-ops-row-main>small{overflow:hidden;color:#8090a3;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.sam-ops-row>span:last-child{color:#9eacbc;font-size:20px}.sam-ops-row .sam-badge{font-size:10px;align-self:flex-start}.sam-ops-empty{padding:20px;color:#8c9bac;font-size:12px;text-align:center}
.sam-ops-chip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px}.sam-ops-chip-grid>span{display:flex;align-items:center;gap:8px;padding:10px 11px;border:1px solid #e7edf4;border-radius:12px;background:#f8fafc;color:#586b80;font-size:11px}.sam-ops-chip-grid>span strong{display:grid;width:28px;height:28px;place-items:center;border-radius:9px;background:#e8f4ff;color:#126fbd;font-size:12px}

.sam-match-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sam-match-summary>div{padding:15px 17px;border:1px solid #dce5ef;border-radius:16px;background:#fff}.sam-match-summary small{display:block;color:#8492a4;font-size:11px}.sam-match-summary strong{display:block;margin-top:4px;color:#0b2f4b;font-size:25px}
.sam-match-toolbar{padding:14px 16px;border:1px solid #dce5ef;border-radius:18px;background:#fff}.sam-match-toolbar form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.sam-match-toolbar label{display:flex;min-width:170px;flex:1;flex-direction:column;gap:5px;color:#64748b;font-size:11px;font-weight:700}.sam-match-toolbar .sam-input{min-height:41px}
.sam-match-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,.75fr);gap:14px;align-items:start}.sam-match-needs{min-width:0}.sam-match-need-list{display:flex;flex-direction:column;gap:10px;padding:12px}.sam-match-need-card{padding:15px;border:1px solid #dfe7f0;border-radius:16px;background:#fff}.sam-match-need-card.needs-match{border-color:#f3d897;background:linear-gradient(135deg,#fff 0%,#fffbef 100%)}.sam-match-need-top{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.sam-match-need-top h3{margin:6px 0 4px;color:#102c45;font-size:15px;font-weight:800}.sam-match-need-top p{margin:0;color:#8391a3;font-size:11px}.sam-match-need-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid #edf2f7}.sam-match-need-bottom>div{display:flex;align-items:baseline;gap:6px}.sam-match-need-bottom>div strong{color:#0b2f4b;font-size:19px}.sam-match-need-bottom>div span{color:#8492a3;font-size:11px}.sam-match-resources{position:sticky;top:82px}.sam-match-all-resources{margin:12px;width:calc(100% - 24px);justify-content:center}

.sam-case-operations{padding:18px;border:1px solid #dbe5ef;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f8fbff 100%);box-shadow:0 8px 24px rgba(15,23,42,.035)}.sam-case-operations-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.sam-case-operations-head h2{margin:4px 0 5px;color:#0b2f4b;font-size:20px}.sam-case-operations-head p{margin:0;color:#75869a;font-size:12px}.sam-case-operations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sam-case-ops-card{padding:15px;border:1px solid #e1e8f0;border-radius:16px;background:#fff}.sam-case-ops-card>header{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.sam-case-ops-card>header small{display:block;color:#8a98aa;font-size:10px;text-transform:uppercase;letter-spacing:.055em}.sam-case-ops-card>header strong{display:block;margin-top:3px;color:#16324a;font-size:14px}.sam-case-ops-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.sam-case-ops-card dl>div{padding:9px;border-radius:11px;background:#f7f9fc}.sam-case-ops-card dt{color:#8b99aa;font-size:10px}.sam-case-ops-card dd{margin:3px 0 0;color:#20384e;font-size:11px;font-weight:700}.sam-case-ops-note{margin:10px 0 0;padding:10px;border-left:3px solid #7cb9ee;border-radius:0 9px 9px 0;background:#f4f9ff;color:#64788e;font-size:11px}.sam-case-ops-edit{margin-top:12px;border-top:1px solid #edf2f7;padding-top:10px}.sam-case-ops-edit>summary{cursor:pointer;color:#176fc0;font-size:11px;font-weight:750}.sam-case-ops-edit form{display:flex;flex-direction:column;gap:9px;margin-top:10px}.sam-case-ops-edit label{display:flex;flex-direction:column;gap:4px;color:#64748b;font-size:10px;font-weight:700}.sam-case-ops-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sam-case-team-list{display:flex;flex-direction:column;gap:7px}.sam-case-team-member{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid #ebeff5;border-radius:11px;background:#fbfcfe}.sam-case-team-avatar{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;border-radius:9px;background:#e9f4ff;color:#176fc0;font-size:11px;font-weight:800}.sam-case-team-member>div{display:flex;min-width:0;flex:1;flex-direction:column}.sam-case-team-member strong{overflow:hidden;color:#20384e;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.sam-case-team-member small{overflow:hidden;color:#8795a7;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.sam-case-team-member form button{width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:#9aa8b7;font-size:18px;cursor:pointer}.sam-case-team-member form button:hover{background:#fff1f2;color:#dc2626}

@media (max-width:1180px){.sam-ops-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.sam-match-layout{grid-template-columns:1fr}.sam-match-resources{position:static}.sam-case-ops-card dl{grid-template-columns:1fr}}
@media (max-width:820px){.sam-ops-hero{flex-direction:column}.sam-ops-hero-actions{justify-content:flex-start}.sam-ops-metrics,.sam-match-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.sam-ops-grid,.sam-case-operations-grid{grid-template-columns:1fr}.sam-ops-panel-wide{grid-column:auto}.sam-case-operations-head{flex-direction:column}.sam-match-toolbar form{align-items:stretch}.sam-match-toolbar label{min-width:100%}}
@media (max-width:520px){.sam-ops-metrics,.sam-match-summary{grid-template-columns:1fr 1fr}.sam-ops-metrics article{min-height:100px}.sam-match-need-top,.sam-match-need-bottom{flex-direction:column;align-items:stretch}.sam-match-need-bottom .sam-button{justify-content:center}.sam-case-ops-form-grid{grid-template-columns:1fr}}

/* === Samariteanul Network v2.19.0: oferte publice de ajutor === */
.sam-ops-metrics article.is-cyan:before{background:#06b6d4}
.sam-public-offer-cta{display:flex;align-items:center;gap:10px;min-width:220px;padding:12px 14px;border:1px solid #cfe2f4;border-radius:14px;background:#fff;color:#0f67bb;text-decoration:none;box-shadow:0 7px 20px rgba(15,35,63,.04);transition:.16s ease}
.sam-public-offer-cta:hover{transform:translateY(-1px);border-color:#9fc9ed;box-shadow:0 10px 24px rgba(15,35,63,.07)}
.sam-public-offer-cta>svg{width:20px;height:20px;flex:0 0 auto}.sam-public-offer-cta>span{display:flex;min-width:0;flex:1;flex-direction:column}.sam-public-offer-cta strong{color:#14334f;font-size:11px}.sam-public-offer-cta small{color:#7b8ca0;font-size:9px}.sam-public-offer-cta.is-compact{min-width:0;width:100%}
.sam-public-case-hero-side{display:flex;min-width:270px;max-width:330px;flex-direction:column;gap:10px}

.sam-public-offer-page{max-width:1260px;margin:0 auto;padding:42px 24px 72px}.sam-public-offer-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:30px}.sam-public-offer-hero h1{margin:8px 0 10px;max-width:760px;color:#10233f;font-size:clamp(28px,4vw,44px);line-height:1.08;letter-spacing:-.03em}.sam-public-offer-hero p{max-width:760px;margin:0;color:#65788f;font-size:13px;line-height:1.7}.sam-public-offer-note{display:flex;max-width:320px;gap:10px;padding:14px;border:1px solid #d9e7f3;border-radius:14px;background:#f8fbff}.sam-public-offer-note>svg{width:20px;height:20px;color:#1678c8;flex:0 0 auto}.sam-public-offer-note>div{display:flex;flex-direction:column;gap:3px}.sam-public-offer-note strong{color:#24415c;font-size:11px}.sam-public-offer-note span{color:#7a8a9d;font-size:10px;line-height:1.5}
.sam-public-offer-success,.sam-public-offer-errors{display:flex;gap:12px;margin-top:20px;padding:15px 16px;border-radius:15px}.sam-public-offer-success{border:1px solid #cfe9d8;background:#f2fbf6}.sam-public-offer-success>span{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#dff6e8;color:#188754}.sam-public-offer-success svg{width:18px;height:18px}.sam-public-offer-success strong{color:#1d5c3d;font-size:12px}.sam-public-offer-success p{margin:4px 0 0;color:#577466;font-size:11px}.sam-public-offer-errors{display:block;border:1px solid #f3caca;background:#fff6f6;color:#8f2f2f}.sam-public-offer-errors strong{font-size:12px}.sam-public-offer-errors ul{margin:7px 0 0 18px;padding:0;font-size:11px}
.sam-public-offer-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start;margin-top:22px}.sam-public-offer-form{overflow:hidden;border:1px solid #dce5ef;border-radius:19px;background:#fff;box-shadow:0 10px 28px rgba(15,35,63,.04)}.sam-public-offer-form>section{padding:20px;border-bottom:1px solid #edf2f7}.sam-public-offer-section-title{display:flex;align-items:flex-start;gap:10px;margin-bottom:15px}.sam-public-offer-section-title>span{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#eaf5ff;color:#1171c1;font-size:10px;font-weight:800}.sam-public-offer-section-title h2{margin:0;color:#18344f;font-size:15px}.sam-public-offer-section-title p{margin:3px 0 0;color:#8392a5;font-size:10px}.sam-public-offer-grid{display:grid;gap:11px}.sam-public-offer-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.sam-public-offer-form label{display:flex;flex-direction:column;gap:5px}.sam-public-offer-form label>span{color:#607187;font-size:10px;font-weight:750}.sam-public-offer-form input:not([type=checkbox]),.sam-public-offer-form select,.sam-public-offer-form textarea{width:100%;border:1px solid #d8e1eb;border-radius:10px;background:#fff;padding:9px 10px;color:#20364f;font-size:12px;outline:none}.sam-public-offer-form input:not([type=checkbox]),.sam-public-offer-form select{min-height:40px}.sam-public-offer-form textarea{resize:vertical;line-height:1.55}.sam-public-offer-form input:focus,.sam-public-offer-form select:focus,.sam-public-offer-form textarea:focus{border-color:#7ab6eb;box-shadow:0 0 0 3px rgba(45,134,216,.09)}.sam-public-offer-wide{margin-top:11px}.sam-public-offer-transport{display:grid;grid-template-columns:1fr 1fr;gap:11px;align-items:end;margin-top:11px}.sam-public-offer-check{display:flex!important;min-height:40px;flex-direction:row!important;align-items:center!important;gap:8px!important;padding:0 10px;border:1px solid #dfe7f0;border-radius:10px;background:#f8fafc}.sam-public-offer-check input,.sam-public-offer-consent input{width:16px;height:16px;accent-color:#1479d5}.sam-public-offer-consent{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:9px!important;margin:16px 20px 0;padding:13px;border:1px solid #d9e6f1;border-radius:12px;background:#f8fbff}.sam-public-offer-consent span{font-size:10px!important;line-height:1.55!important}.sam-public-offer-submit{display:flex;align-items:center;gap:12px;padding:18px 20px 20px}.sam-public-offer-submit button{min-height:42px;padding:0 16px;border:0;border-radius:10px;background:#1479d5;color:#fff;font-size:12px;font-weight:800;cursor:pointer}.sam-public-offer-submit button:hover{background:#0f69bd}.sam-public-offer-submit a{color:#677a8f;font-size:11px;font-weight:700;text-decoration:none}.sam-public-offer-submit a:hover{color:#0f67bb}.sam-offer-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}.sam-public-offer-aside{display:flex;flex-direction:column;gap:12px;position:sticky;top:90px}.sam-public-offer-aside-card{padding:17px;border:1px solid #dfe7f0;border-radius:16px;background:#fff}.sam-public-offer-aside-card.is-blue{background:#f5faff}.sam-public-offer-aside-card h2{margin:0 0 10px;color:#18344f;font-size:13px}.sam-public-offer-aside-card ul,.sam-public-offer-aside-card ol{margin:0;padding-left:18px;color:#687b91;font-size:10px;line-height:1.75}

.sam-offers-page,.sam-offer-show-page{max-width:1560px;margin:0 auto;padding-bottom:36px}.sam-offer-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:10px}.sam-offer-metrics article{padding:14px 16px;border:1px solid #dce5ef;border-radius:15px;background:#fff}.sam-offer-metrics small{display:block;color:#8391a3;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.sam-offer-metrics strong{display:block;margin-top:3px;color:#0b2f4b;font-size:24px}.sam-offer-metrics span{color:#8694a5;font-size:10px}.sam-offer-table-card{overflow:hidden;border:1px solid #dce5ef;border-radius:18px;background:#fff}.sam-offer-table-head,.sam-offer-table-row{display:grid;grid-template-columns:minmax(260px,1.35fr) minmax(190px,.9fr) minmax(150px,.7fr) 150px 20px;gap:12px;align-items:center}.sam-offer-table-head{padding:10px 14px;border-bottom:1px solid #e9eef4;background:#f8fafc;color:#8795a6;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.sam-offer-table-row{padding:13px 14px;border-bottom:1px solid #edf2f7;color:inherit;text-decoration:none}.sam-offer-table-row:last-child{border-bottom:0}.sam-offer-table-row:hover{background:#f8fbff}.sam-offer-table-row>div{display:flex;min-width:0;flex-direction:column;gap:2px}.sam-offer-table-row strong,.sam-offer-table-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sam-offer-table-row strong{color:#60758a;font-size:9px}.sam-offer-table-row b{color:#19344e;font-size:12px}.sam-offer-table-row small{overflow:hidden;color:#8a98aa;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.sam-offer-arrow{color:#a4b0bd;font-size:20px}.sam-offer-status{display:inline-flex;width:max-content;min-height:23px;align-items:center;padding:0 8px;border-radius:999px;background:#eef2f6;color:#607087;font-size:9px;font-weight:800}.sam-offer-status.is-new{background:#e9f5ff;color:#0e6eba}.sam-offer-status.is-reviewing{background:#fff6dd;color:#8b6500}.sam-offer-status.is-accepted{background:#eaf9f0;color:#177449}.sam-offer-status.is-rejected{background:#fff0f0;color:#b42318}.sam-offer-status.is-converted{background:#ecebfd;color:#5b4bc1}.sam-offer-status.is-closed{background:#eef1f4;color:#5d6876}.sam-offer-pagination{margin-top:14px}
.sam-inline-success,.sam-inline-error{margin-bottom:12px;padding:12px 14px;border-radius:12px;font-size:11px}.sam-inline-success{border:1px solid #cfe7d8;background:#f2fbf6;color:#236443}.sam-inline-error{border:1px solid #f0cccc;background:#fff5f5;color:#8c3030}.sam-back-link{display:inline-flex;margin-bottom:8px;color:#6d7f93;font-size:11px;text-decoration:none}.sam-back-link:hover{color:#0f67bb}.sam-offer-show-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border:1px solid #dce5ef;border-radius:19px;background:linear-gradient(135deg,#fff,#f7fbff)}.sam-offer-show-hero h1{margin:4px 0 8px;color:#0b2f4b;font-size:28px}.sam-offer-show-meta{display:flex;flex-wrap:wrap;gap:7px;align-items:center;color:#7a899c;font-size:10px}.sam-offer-show-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr);gap:14px;align-items:start;margin-top:14px}.sam-offer-show-grid main,.sam-offer-show-grid aside{display:flex;flex-direction:column;gap:14px}.sam-offer-detail-card{overflow:hidden;border:1px solid #dce5ef;border-radius:17px;background:#fff}.sam-offer-detail-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid #edf2f7;background:#fbfdff}.sam-offer-detail-card>header>div{display:flex;align-items:center;gap:10px}.sam-offer-detail-card header h2{margin:0;color:#18344f;font-size:13px}.sam-offer-detail-card header p{margin:2px 0 0;color:#8a98aa;font-size:9px}.sam-offer-detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px;margin:0}.sam-offer-detail-list.single{grid-template-columns:1fr}.sam-offer-detail-list>div{padding:9px 10px;border-radius:10px;background:#f8fafc}.sam-offer-detail-list dt{color:#8795a6;font-size:9px}.sam-offer-detail-list dd{margin:3px 0 0;color:#233c53;font-size:10px;font-weight:750}.sam-offer-detail-list a{color:#0f67bb}.sam-offer-copy{padding:0 14px 14px}.sam-offer-copy strong{color:#607187;font-size:9px;text-transform:uppercase;letter-spacing:.04em}.sam-offer-copy p{margin:5px 0 0;color:#51677e;font-size:11px;line-height:1.6;white-space:pre-line}.sam-offer-side-form{display:flex;flex-direction:column;gap:9px;padding:14px}.sam-offer-side-form label{display:flex;flex-direction:column;gap:4px;color:#66788c;font-size:9px;font-weight:750}.sam-offer-side-form textarea.sam-input{min-height:105px;padding-top:9px}.sam-offer-reviewed{margin:0;padding:0 14px 14px;color:#8b98a8;font-size:9px}

.dark .sam-public-offer-form,.dark .sam-public-offer-aside-card,.dark .sam-offer-table-card,.dark .sam-offer-metrics article,.dark .sam-offer-show-hero,.dark .sam-offer-detail-card{background:#111827;border-color:#334155}.dark .sam-public-offer-form input:not([type=checkbox]),.dark .sam-public-offer-form select,.dark .sam-public-offer-form textarea{background:#0f172a;border-color:#334155;color:#e5edf7}.dark .sam-public-offer-check,.dark .sam-public-offer-consent{background:#0f172a;border-color:#334155}.dark .sam-offer-table-row:hover{background:#132035}.dark .sam-offer-table-head{background:#0f172a;border-color:#334155}.dark .sam-offer-detail-list>div{background:#172033}.dark .sam-offer-side-form .sam-input{background:#0f172a;border-color:#334155;color:#e5edf7}

@media (max-width:1050px){.sam-public-offer-layout,.sam-offer-show-grid{grid-template-columns:1fr}.sam-public-offer-aside{position:static;display:grid;grid-template-columns:1fr 1fr}.sam-public-case-hero-side{min-width:0;max-width:none}.sam-offer-table-head{display:none}.sam-offer-table-row{grid-template-columns:1fr 1fr 24px}.sam-offer-table-row>div:nth-child(3),.sam-offer-table-row>div:nth-child(4){grid-column:auto}}
@media (max-width:760px){.sam-public-offer-hero,.sam-public-cases-heading,.sam-offer-show-hero{flex-direction:column}.sam-public-offer-note{max-width:none;width:100%}.sam-public-offer-grid.two,.sam-public-offer-transport,.sam-public-offer-aside,.sam-offer-detail-list{grid-template-columns:1fr}.sam-public-offer-submit{align-items:stretch;flex-direction:column}.sam-public-offer-submit button{width:100%}.sam-offer-table-row{grid-template-columns:1fr 24px}.sam-offer-table-row>div{grid-column:1}.sam-offer-arrow{grid-column:2;grid-row:1/5}.sam-offer-show-hero h1{font-size:23px}}
@media (min-width:1181px){.sam-ops-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (min-width:821px){.sam-match-summary{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* v2.19.1 - dashboard vs centru operational */
.sam-dashboard-page{padding-bottom:28px}
.sam-dashboard-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 26px;border:1px solid #dbe5f1;border-radius:22px;background:linear-gradient(135deg,#fff 0%,#f8fbff 60%,#eef6ff 100%);box-shadow:0 12px 32px rgba(15,23,42,.05)}
.sam-dashboard-hero h1{margin:0;color:#0b2f4b;font-size:clamp(30px,3.4vw,44px);line-height:1.05;letter-spacing:-.028em}
.sam-dashboard-hero p:not(.sam-ops-kicker){max-width:790px;margin:10px 0 0;color:#60748a;font-size:14px;line-height:1.6}
.sam-dashboard-hero-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.sam-dashboard-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sam-dashboard-kpis article{display:flex;gap:14px;align-items:center;min-height:112px;padding:17px;border:1px solid #dce5ef;border-radius:18px;background:#fff;box-shadow:0 7px 22px rgba(15,23,42,.035)}
.sam-dashboard-kpi-icon,.sam-dashboard-trend-icon{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:13px;background:#edf5ff;color:#176fc0}
.sam-dashboard-kpi-icon svg,.sam-dashboard-trend-icon svg{width:20px;height:20px}
.sam-dashboard-kpis article.is-rose .sam-dashboard-kpi-icon{background:#fff0f4;color:#db2777}.sam-dashboard-kpis article.is-violet .sam-dashboard-kpi-icon{background:#f4f0ff;color:#7c3aed}.sam-dashboard-kpis article.is-indigo .sam-dashboard-kpi-icon{background:#eef2ff;color:#4f46e5}.sam-dashboard-kpis article.is-green .sam-dashboard-kpi-icon{background:#ecfdf5;color:#059669}.sam-dashboard-kpis article.is-cyan .sam-dashboard-kpi-icon{background:#ecfeff;color:#0891b2}
.sam-dashboard-kpis small{display:block;color:#728197;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.sam-dashboard-kpis strong{display:block;margin:2px 0;color:#0b2f4b;font-size:28px;line-height:1}.sam-dashboard-kpis span{color:#8794a5;font-size:12px}
.sam-dashboard-section{padding:20px;border:1px solid #dce5ef;border-radius:20px;background:#fff;box-shadow:0 8px 26px rgba(15,23,42,.035)}
.sam-dashboard-section-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:15px}.sam-dashboard-section-head h2{margin:0;color:#0b2f4b;font-size:18px}.sam-dashboard-section-head p:not(.sam-ops-kicker){margin:4px 0 0;color:#8290a3;font-size:12px}
.sam-dashboard-trends{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sam-dashboard-trends article{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:14px;border:1px solid #e4ebf3;border-radius:16px;background:#fbfdff}.sam-dashboard-trends small{display:block;color:#7f8da0;font-size:11px}.sam-dashboard-trends strong{display:block;color:#0b2f4b;font-size:24px}.sam-dashboard-delta{padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800}.sam-dashboard-delta.is-up{background:#ecfdf5;color:#047857}.sam-dashboard-delta.is-down{background:#fff7ed;color:#c2410c}.sam-dashboard-delta.is-flat{background:#f1f5f9;color:#64748b}
.sam-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sam-dashboard-card{overflow:hidden;border:1px solid #dce5ef;border-radius:19px;background:#fff;box-shadow:0 8px 26px rgba(15,23,42,.035)}.sam-dashboard-card-wide{grid-column:1/-1}.sam-dashboard-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px 17px;border-bottom:1px solid #edf2f7;background:#fbfdff}.sam-dashboard-card header h2{margin:0;color:#0b2f4b;font-size:15px;font-weight:800}.sam-dashboard-card header p{margin:3px 0 0;color:#8a99aa;font-size:11px}.sam-dashboard-card header a{color:#176fc0;font-size:12px;font-weight:700;white-space:nowrap}
.sam-dashboard-bars{padding:15px 17px}.sam-dashboard-bar-row+.sam-dashboard-bar-row{margin-top:12px}.sam-dashboard-bar-row>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px;color:#53677d;font-size:12px}.sam-dashboard-bar-row strong{color:#0b2f4b}.sam-dashboard-bar{height:7px;border-radius:999px;background:#edf2f7;overflow:hidden}.sam-dashboard-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2f80ed,#06b6d4)}
.sam-dashboard-status-list{padding:8px 17px}.sam-dashboard-status-list>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #eef2f6;color:#60748a;font-size:12px}.sam-dashboard-status-list>div:last-child{border-bottom:0}.sam-dashboard-status-list strong{color:#0b2f4b}
.sam-dashboard-recent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:6px 17px 12px}.sam-dashboard-recent-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 8px;border-bottom:1px solid #edf2f7}.sam-dashboard-recent-item:nth-last-child(-n+2){border-bottom:0}.sam-dashboard-recent-item div{min-width:0}.sam-dashboard-recent-item strong{display:block;color:#0b2f4b;font-size:12px}.sam-dashboard-recent-item div span{display:block;margin-top:2px;color:#7e8ca0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sam-ops-focus{padding:18px;border:1px solid #dce5ef;border-radius:20px;background:#fff;box-shadow:0 8px 26px rgba(15,23,42,.035)}.sam-ops-focus-head{margin-bottom:14px}.sam-ops-focus-head h2{margin:0;color:#0b2f4b;font-size:20px}.sam-ops-focus-head p:not(.sam-ops-kicker){margin:4px 0 0;color:#8290a3;font-size:12px}.sam-ops-focus-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.sam-ops-focus-grid>a{position:relative;overflow:hidden;display:block;min-height:102px;padding:13px;border:1px solid #e2e8f0;border-radius:15px;background:#fbfdff}.sam-ops-focus-grid>a:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#94a3b8}.sam-ops-focus-grid>a.is-red:before{background:#ef4444}.sam-ops-focus-grid>a.is-amber:before{background:#f59e0b}.sam-ops-focus-grid>a.is-cyan:before{background:#06b6d4}.sam-ops-focus-grid>a.is-violet:before{background:#7c3aed}.sam-ops-focus-grid>a.is-green:before{background:#10b981}.sam-ops-focus-grid small{display:block;color:#748397;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.sam-ops-focus-grid strong{display:block;margin:5px 0 3px;color:#0b2f4b;font-size:28px;line-height:1}.sam-ops-focus-grid span{color:#8794a5;font-size:11px}
.sam-ops-callout{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px}.sam-ops-callout strong{color:#0b2f4b}.sam-ops-callout p{margin:4px 0 0;color:#73849a;font-size:12px}
@media(max-width:1180px){.sam-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sam-dashboard-trends{grid-template-columns:repeat(2,minmax(0,1fr))}.sam-ops-focus-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.sam-dashboard-hero{flex-direction:column}.sam-dashboard-hero-actions{justify-content:flex-start}.sam-dashboard-grid{grid-template-columns:1fr}.sam-dashboard-card-wide{grid-column:auto}.sam-dashboard-recent-grid{grid-template-columns:1fr}.sam-dashboard-recent-item:nth-last-child(-n+2){border-bottom:1px solid #edf2f7}.sam-dashboard-recent-item:last-child{border-bottom:0}.sam-ops-focus-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sam-ops-callout{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.sam-dashboard-kpis,.sam-dashboard-trends,.sam-ops-focus-grid{grid-template-columns:1fr}.sam-dashboard-kpis article{min-height:96px}}

/* v2.20.0 — resource fulfillment flow */
.sam-flow-page{--flow-border:#e4ebf2;--flow-muted:#6f8194;--flow-ink:#172b3e}
.sam-flow-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.sam-flow-kpis>a{display:flex;min-width:0;flex-direction:column;gap:4px;padding:16px 17px;border:1px solid var(--flow-border);border-radius:16px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 4px 16px rgba(28,48,68,.04);transition:.16s ease}.sam-flow-kpis>a:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(28,48,68,.08)}.sam-flow-kpis small{color:#718296;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.sam-flow-kpis strong{color:var(--flow-ink);font-size:26px;line-height:1}.sam-flow-kpis span{color:#8797a9;font-size:11px}
.sam-flow-toolbar form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.sam-flow-toolbar label{display:flex;min-width:220px;flex-direction:column;gap:5px;color:#607387;font-size:11px;font-weight:700}
.sam-flow-list-panel{overflow:hidden}.sam-flow-list{display:flex;flex-direction:column}.sam-flow-row{display:flex;align-items:center;gap:14px;padding:15px 18px;border-top:1px solid #edf2f7;color:inherit;text-decoration:none;transition:.15s ease}.sam-flow-row:hover{background:#f8fbfe}.sam-flow-row-main{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}.sam-flow-row-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.sam-flow-row-main strong{overflow:hidden;color:var(--flow-ink);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.sam-flow-row-main>span{overflow:hidden;color:#53687d;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.sam-flow-row-main>small{color:#8a99a9;font-size:11px}.sam-flow-row-arrow{color:#9daaba;font-size:22px}
.sam-flow-stepper{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;border:1px solid var(--flow-border);border-radius:18px;background:#fff}.sam-flow-stepper>div{position:relative;display:flex;align-items:center;gap:9px;padding:14px;border-right:1px solid var(--flow-border);color:#8a99a9}.sam-flow-stepper>div:last-child{border-right:0}.sam-flow-stepper>div>span{display:grid;width:28px;height:28px;place-items:center;border-radius:999px;background:#eef3f7;font-size:11px;font-weight:800}.sam-flow-stepper>div>strong{font-size:11px}.sam-flow-stepper>div.is-done{color:#16835f;background:#f3fbf8}.sam-flow-stepper>div.is-done>span{background:#dff5ec}.sam-flow-stepper>div.is-current{color:#155a91;background:#f2f8fd}.sam-flow-stepper>div.is-current>span{background:#dcecf8}
.sam-flow-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.sam-flow-summary-grid article{display:flex;min-width:0;flex-direction:column;gap:4px;padding:16px 17px;border:1px solid var(--flow-border);border-radius:16px;background:#fff}.sam-flow-summary-grid small{color:#8090a2;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}.sam-flow-summary-grid strong{overflow:hidden;color:var(--flow-ink);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.sam-flow-summary-grid span{overflow:hidden;color:#7a8c9f;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.sam-flow-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.sam-flow-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px}.sam-flow-actions form{margin:0}.sam-button-danger{border-color:#f3c5c5!important;background:#fff4f4!important;color:#ad3131!important}
.sam-flow-progress-block{padding:18px}.sam-flow-progress-head,.sam-flow-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.sam-flow-progress-head span,.sam-flow-progress-meta{color:#728397;font-size:11px}.sam-flow-progress-head strong{color:var(--flow-ink);font-size:13px}.sam-flow-progress-track{height:9px;margin:12px 0;border-radius:999px;background:#edf2f6;overflow:hidden}.sam-flow-progress-track>span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2f7ab2,#3c9c7e)}
.sam-flow-success,.sam-flow-warning,.sam-flow-confirmed,.sam-flow-flash{display:flex;flex-direction:column;gap:4px;margin:14px 18px;padding:13px 14px;border-radius:13px;font-size:12px}.sam-flow-success{border:1px solid #ccebdc;background:#f1fbf6;color:#286e56}.sam-flow-warning{border:1px solid #f3dfb2;background:#fff9eb;color:#8a6622}.sam-flow-warning.is-gray{border-color:#dde4eb;background:#f7f9fb;color:#667789}.sam-flow-confirmed{border:1px solid #d8e4f0;background:#f5f9fd;color:#3a5f7f}.sam-flow-flash{margin:0;border:1px solid #ccebdc;background:#f1fbf6;color:#286e56}.sam-flow-success a{margin-top:4px;color:inherit;font-weight:800}
.sam-flow-form{display:flex;flex-direction:column;gap:12px;padding:18px}.sam-flow-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.sam-flow-form label{display:flex;flex-direction:column;gap:5px;color:#5f7287;font-size:11px;font-weight:700}.sam-flow-form textarea.sam-input{min-height:88px;resize:vertical}
.sam-flow-timeline{display:flex;flex-direction:column;padding:8px 18px 18px}.sam-flow-timeline>div{display:grid;grid-template-columns:16px 1fr;gap:10px;position:relative;padding:10px 0}.sam-flow-timeline>div>span{width:9px;height:9px;margin-top:4px;border:2px solid #5d8fb5;border-radius:999px;background:#fff}.sam-flow-timeline>div:not(:last-child):before{content:"";position:absolute;left:4px;top:22px;bottom:-8px;width:1px;background:#dfe7ee}.sam-flow-timeline article{display:flex;flex-direction:column;gap:3px}.sam-flow-timeline strong{color:var(--flow-ink);font-size:12px}.sam-flow-timeline small{color:#8696a7;font-size:10px}
.sam-flow-inventory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px}.sam-flow-inventory-card{display:flex;min-width:0;flex-direction:column;gap:14px;padding:16px;border:1px solid var(--flow-border);border-radius:15px;background:#fff}.sam-flow-inventory-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.sam-flow-inventory-head>div{min-width:0}.sam-flow-inventory-head small{display:block;color:#8b9aaa;font-size:10px}.sam-flow-inventory-head h3{overflow:hidden;margin:3px 0 0;color:var(--flow-ink);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.sam-flow-inventory-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.sam-flow-inventory-stats>div{display:flex;flex-direction:column;gap:3px;padding:10px;border-radius:11px;background:#f7f9fb}.sam-flow-inventory-stats small{color:#8797a8;font-size:9px;text-transform:uppercase}.sam-flow-inventory-stats strong{color:#273d51;font-size:11px}.sam-flow-inventory-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8292a3;font-size:10px}.sam-flow-inventory-foot a{color:#356f9e;font-weight:750;text-decoration:none}
@media (max-width:1100px){.sam-flow-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.sam-flow-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sam-flow-layout{grid-template-columns:1fr}.sam-flow-inventory-grid{grid-template-columns:1fr}}
@media (max-width:720px){.sam-flow-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sam-flow-stepper{grid-template-columns:1fr}.sam-flow-stepper>div{border-right:0;border-bottom:1px solid var(--flow-border)}.sam-flow-stepper>div:last-child{border-bottom:0}.sam-flow-summary-grid,.sam-flow-form-grid{grid-template-columns:1fr}.sam-flow-inventory-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sam-flow-row-top{align-items:flex-start;flex-direction:column}.sam-flow-row-main>span,.sam-flow-row-main strong{white-space:normal}.sam-flow-toolbar form,.sam-flow-toolbar label{width:100%;min-width:0}}

/* v2.20.1 — centru de testare */
.sam-nav-mini-badge{margin-left:auto;padding:2px 6px;border-radius:999px;background:#e8f7ef;color:#19805c;font-size:8px;font-weight:850;letter-spacing:.07em}
.sam-test-center{--test-border:#dfe8f1;--test-muted:#74869a;--test-ink:#142f47}.sam-test-hero{background:linear-gradient(135deg,#ffffff 0%,#f6fbff 72%,#eef8f3 100%)}.sam-test-hero-badge{display:grid;grid-template-columns:auto auto;align-items:center;gap:2px 9px;min-width:160px;padding:13px 15px;border:1px solid #cfe4d9;border-radius:16px;background:#f5fcf8}.sam-test-hero-badge>span{grid-row:1/3;display:grid;width:44px;height:44px;place-items:center;border-radius:12px;background:#dff5e9;color:#177653;font-size:10px;font-weight:900;letter-spacing:.08em}.sam-test-hero-badge strong{color:#173b30;font-size:23px;line-height:1}.sam-test-hero-badge small{color:#729083;font-size:10px}.sam-test-safety{display:flex;align-items:flex-start;gap:12px;padding:15px 17px;border:1px solid #d5e8dd;border-radius:16px;background:#f6fcf8}.sam-test-safety strong{display:block;color:#205d47;font-size:12px}.sam-test-safety p{margin:3px 0 0;color:#658072;font-size:11px;line-height:1.55}.sam-test-error,.sam-test-success{padding:13px 15px;border-radius:14px;font-size:12px}.sam-test-error{border:1px solid #f2c7c7;background:#fff5f5;color:#9c3535}.sam-test-error p{margin:4px 0 0}.sam-test-success{border:1px solid #cce8d9;background:#f3fbf7;color:#226c51}
.sam-test-scenario-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px}.sam-test-template-card{display:flex;min-width:0;flex-direction:column;justify-content:space-between;gap:16px;padding:17px;border:1px solid var(--test-border);border-radius:16px;background:#fff}.sam-test-template-head h3{margin:8px 0 5px;color:var(--test-ink);font-size:16px}.sam-test-template-head p{margin:0;color:var(--test-muted);font-size:11px;line-height:1.55}.sam-test-template-card form{display:flex}.sam-test-template-card .sam-button{justify-content:center;width:100%}
.sam-test-list{display:flex;flex-direction:column;gap:12px;padding:14px}.sam-test-run{padding:16px;border:1px solid var(--test-border);border-radius:17px;background:#fff}.sam-test-run.is-selected{border-color:#9dc7e9;box-shadow:0 0 0 3px rgba(64,139,194,.08)}.sam-test-run.is-cleaned{background:#f8fafc;opacity:.78}.sam-test-run-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.sam-test-run-eyebrow{display:flex;align-items:center;gap:8px;color:#8494a6;font-size:9px;text-transform:uppercase;letter-spacing:.04em}.sam-test-run h3{margin:6px 0 3px;color:var(--test-ink);font-size:15px}.sam-test-run-head p{margin:0;color:#8191a3;font-size:10px}.sam-test-entities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:14px}.sam-test-entities>div{display:flex;min-width:0;flex-direction:column;gap:3px;padding:11px;border-radius:12px;background:#f7f9fc}.sam-test-entities small{color:#8a99aa;font-size:9px;text-transform:uppercase}.sam-test-entities strong{overflow:hidden;color:#21394e;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.sam-test-entities span{overflow:hidden;color:#788b9d;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.sam-test-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}.sam-test-progress>span{display:flex;justify-content:space-between;gap:6px;padding:9px 10px;border:1px solid #e6edf3;border-radius:10px;color:#7a8a9c;font-size:9px}.sam-test-progress strong{color:#26435b}.sam-test-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.sam-test-status-line{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px;padding-top:11px;border-top:1px solid #edf2f6;color:#8090a2;font-size:10px}.sam-test-status-line strong{color:#345067}.sam-test-cleaned-note{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px;border-radius:12px;background:#eef2f6;color:#67788b;font-size:11px}.sam-test-error-small{margin-top:10px;padding:10px;border-radius:10px;background:#fff4f4;color:#9a3e3e;font-size:10px}
@media(max-width:920px){.sam-test-scenario-grid{grid-template-columns:1fr}.sam-test-entities,.sam-test-progress{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.sam-test-run-head{flex-direction:column}.sam-test-entities,.sam-test-progress{grid-template-columns:1fr}.sam-test-actions .sam-button{width:100%;justify-content:center}.sam-test-hero-badge{width:100%}}
