﻿.fnd-pend-v2 {
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #1a2233;
    background: #f6f8fb;
    padding: 18px 20px 28px;
    border-radius: 12px;
}
    .fnd-pend-v2 * { box-sizing: border-box; }
    .fnd-pend-title { margin: 0 0 8px; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: 0; color: #0b1f35; }
    .fnd-pend-subtitle { margin: 0; max-width: 780px; font-size: 13px; line-height: 1.55; color: #5c6370; }

    .fnd-pend-top { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
    .fnd-pend-role { margin: 0; font-size: 12px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #6b7280; }
    .fnd-pend-counters { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 12px; min-width: 420px; }
    .fnd-counter { min-height: 72px; padding: 14px 14px 10px; border: 1px solid #dfe6ef; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
    .fnd-counter-value { display: block; font-size: 26px; font-weight: 760; line-height: 1; color: #152033; }
    .fnd-counter-label { display: block; margin-top: 4px; font-size: 12px; color: #5c6370; text-transform: uppercase; letter-spacing: .03em; }

    .fnd-legacy-filters { display: none; }

    .fnd-columns { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 16px; align-items: stretch; }
    .fnd-column { background: #fff; border: 1px solid #dfe6ef; border-radius: 12px; padding: 16px; min-height: 540px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
    .fnd-column h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.35; font-weight: 700; color: #111f36; }
    .fnd-col-empty { margin: 8px 0 0; color: #6b7488; font-size: 13px; }

    .fnd-list { display: flex; flex-direction: column; gap: 22px; }
    .fnd-iwf-group { border: 1px solid #dfe6ef; border-radius: 10px; background: #f9fbfe; padding: 14px; }
    .fnd-iwf-group[open] { display: flex; flex-direction: column; gap: 16px; }
    .fnd-iwf-summary { display: block; min-height: 32px; color: #263852; font-size: 13px; font-weight: 760; cursor: pointer; list-style-position: inside; }
    .fnd-iwf-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; color: #0f1f35; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
    .fnd-iwf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .fnd-iwf-code { display: block; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
    .fnd-iwf-fund { display: block; font-size: 11px; line-height: 1.3; font-weight: 600; letter-spacing: .04em; color: #344054; }
    .fnd-iwf-count { color: #6b7488; font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
    .fnd-card { margin-top: 5px; border: 1px solid #dfe6ef; border-radius: 10px; padding: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
    .fnd-card:hover { border-color: #0397d5; box-shadow: 0 3px 10px rgba(15, 23, 42, .08); transform: translateY(-1px); }
    .fnd-card--history { border-color: #cbd5e1; background: #f8fafc; box-shadow: none; }
    .fnd-card--history:hover { border-color: #94a3b8; box-shadow: 0 2px 8px rgba(15, 23, 42, .05); }
    .fnd-card-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
    .fnd-card-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5f6980; }
    .fnd-card-date { font-size: 11px; color: #5c6a82; white-space: nowrap; }
    .fnd-card-kicker:empty { display: none; }
    .fnd-column-questions .fnd-card-date { margin-left: auto; text-align: right; }
    .fnd-card-title { margin: 0; font-size: 15px; line-height: 1.25; font-weight: 600; color: #1a2233; word-break: break-word; }
    .fnd-card-sub { margin: 8px 0 0; font-size: 13px; color: #4f5a6e; }
    .fnd-card-meta { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #616e86; }
    .fnd-card-sub:empty,
    .fnd-card-meta:empty { display: none; }

    .fnd-card-foot { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
    .fnd-state { font-size: 13px; font-weight: 700; }
    .fnd-state-wait { color: #0397d5; }
    .fnd-state-review { color: #7d3f00; }
    .fnd-state-action { color: #6b4b0e; }
    .fnd-card--history .fnd-state { color: #64748b; }
    .fnd-column-plans .fnd-state-review,
    .fnd-column-plans .fnd-state-action { color: #0397d5; }

    .fnd-btn-open,
    .fnd-btn-open:visited,
    .fnd-btn-open:hover,
    .fnd-btn-open:active,
    .fnd-btn-open:focus {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        min-width: 56px;
        padding: 0 12px;
        border-radius: 8px;
        border: 1px solid #0397d5;
        background: #0397d5;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
    }

    .fnd-card--history .fnd-btn-open,
    .fnd-card--history .fnd-btn-open:visited,
    .fnd-card--history .fnd-btn-open:hover,
    .fnd-card--history .fnd-btn-open:active,
    .fnd-card--history .fnd-btn-open:focus {
        border-color: #94a3b8;
        background: #94a3b8;
        color: #fff;
    }

    .fnd-pend-modal {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: rgba(15, 23, 42, .55);
    }
    .fnd-pend-modal[hidden] { display: none; }
    .fnd-pend-dialog {
        width: min(720px, calc(100vw - 48px));
        max-height: calc(100vh - 48px);
        overflow: auto;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 18px 46px rgba(15, 23, 42, .25);
        padding: 18px;
    }
    .fnd-pend-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
    .fnd-pend-modal-title { margin: 0; color: #172033; font-size: 16px; line-height: 1.35; font-weight: 760; letter-spacing: 0; }
    .fnd-pend-modal-close {
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 8px;
        background: #eef2f7;
        color: #5f6b7c;
        font-size: 16px;
        line-height: 1;
        cursor: pointer;
    }
    .fnd-pend-modal-meta { display: grid; grid-template-columns: 120px 1fr; gap: 12px 16px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; font-size: 13px; align-items: center; }
    .fnd-pend-modal-meta dt { margin: 0; color: #6b7280; font-weight: 700; }
    .fnd-pend-modal-meta dd { margin: 0; color: #344054; }
    .fnd-pend-upload h4 { margin: 0 0 10px; color: #6b7280; font-size: 12px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
    .fnd-pend-upload p { margin: 0 0 12px; color: #6b7280; font-size: 12px; line-height: 1.5; }
    .fnd-pend-comment,
    .fnd-pend-file { width: 100%; border: 1px solid #dbe3ed; border-radius: 8px; background: #fff; color: #172033; font: inherit; }
    .fnd-pend-comment { min-height: 68px; margin-bottom: 12px; padding: 10px 12px; resize: vertical; }
    .fnd-pend-file { min-height: 38px; margin-bottom: 8px; padding: 7px 10px; }
    .fnd-pend-send {
        min-height: 36px;
        padding: 0 14px;
        border: 1px solid #0397d5;
        border-radius: 8px;
        background: #0397d5;
        color: #fff;
        font-weight: 760;
        cursor: pointer;
    }
    .fnd-pend-footnote { margin-top: 10px; color: #6b7280; font-size: 12px; }

    .fnd-pend-loading-overlay {
        position: fixed;
        inset: 0;
        z-index: 2500;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: rgba(246, 248, 251, .72);
    }

    .fnd-pend-loading-overlay[hidden] {
        display: none;
    }

    .fnd-pend-loading-box {
        min-width: 220px;
        min-height: 72px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 16px 20px;
        border: 1px solid #dfe6ef;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
        color: #172033;
        font-size: 13px;
        font-weight: 700;
    }

    .fnd-pend-loading-spinner {
        width: 22px;
        height: 22px;
        border: 3px solid #dbe8f2;
        border-top-color: #0397d5;
        border-radius: 50%;
        animation: fnd-pend-loading-spin .8s linear infinite;
    }

    @keyframes fnd-pend-loading-spin {
        to { transform: rotate(360deg); }
    }

.fnd-empty-message { margin: 0; font-size: 14px; color: #687486; text-align: center; }

    .fnd-empty-message-wrap {
        flex: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 160px;
        text-align: center;
    }

    .fnd-btn-lite {
        min-height: 34px;
        padding: 0 12px;
        border: 1px solid #d9e1eb;
        border-radius: 9px;
        background: #fff;
        color: #23334b;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    @media (max-width: 1200px) {
        .fnd-pend-top { grid-template-columns: 1fr; }
        .fnd-pend-counters { min-width: 0; }
    }

    @media (max-width: 980px) {
        .fnd-columns { grid-template-columns: 1fr; }
        .fnd-column { min-height: 280px; }
        .fnd-pend-counters { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
    }

    @media (max-width: 680px) {
    .fnd-pend-title { font-size: 24px; }
    .fnd-pend-role { font-size: 12px; }
    .fnd-column h3 { font-size: 18px; }
        .fnd-pend-counters { grid-template-columns: 1fr; }
    }
