/* POM v1.1.4.17 — Navy Signature with the original v1.1.4.15 banner.
   A visual refinement of the existing operational screens. Content, controls,
   table geometry, measured sticky offsets and print output remain authoritative.
   This file adds no external resources, animation or repeated rendering work. */
@media screen {
  body.pom-signature {
    --bg: #f0f4f9;
    --panel: #fff;
    --surface: #fff;
    --text: #1a2e49;
    --muted: #556981;
    --line: #dce5ef;
    --primary: #2b5dcc;
    --primary2: #204ba6;
    --navy: #15365d;
    --signature-soft: #eef4ff;
    --signature-green: #14664f;
    background: var(--bg);
    color: var(--text);
  }

  /* Brand chrome. Its height is still measured by operational-layout.js. */
  body.pom-signature header {
    background: #fff;
    border-bottom-color: #e8edf5;
    padding: 15px 24px;
    box-shadow: none;
  }
  body.pom-signature .head { gap: 12px 22px; }
  body.pom-signature .brand { align-items: center; gap: 8px 14px; }
  body.pom-signature .brand-main {
    position: relative;
    padding-left: 12px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.045em;
    color: #2559c9;
  }
  body.pom-signature .brand-main::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 2px;
    width: 4px;
    border-radius: 3px;
    background: #356ade;
  }
  body.pom-signature .brand small {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #596d87;
    font-size: 11px;
    line-height: 1.45;
  }
  body.pom-signature .brand-desc { color: #263d5c; font-size: 12px; font-weight: 650; }
  body.pom-signature .brand-en { color: #5b708b; font-size: 11px; font-weight: 400; letter-spacing: .015em; }
  body.pom-signature .admin-user-box,
  body.pom-signature .reviewer-user-box { gap: 8px; color: #425b7a; }
  body.pom-signature .admin-user-box .role,
  body.pom-signature .reviewer-user-box .role {
    background: #f1f5fb;
    color: #476181;
    border-color: #dee7f3;
    border-radius: 5px;
    font-weight: 600;
  }
  body.pom-signature .admin-user-box .btn,
  body.pom-signature .reviewer-user-box .btn {
    background: #fff;
    border-color: #d5dfed;
    border-radius: 7px;
    color: #35547a;
    font-weight: 650;
  }
  body.pom-signature > .tabs,
  body.pom-signature .reviewer-tabs { border-bottom-color: #d7e1ed; }
  body.pom-signature .tab,
  body.pom-signature .reviewer-tab { color: #526984; font-weight: 650; letter-spacing: -.015em; }
  body.pom-signature .tab.active,
  body.pom-signature .reviewer-tab.active {
    color: #2454b7;
    background: #f0f5ff;
    border-bottom-color: #3265d9;
    font-weight: 750;
  }




























  /* Shared surfaces. Retain the existing card padding so dense tables keep width. */
  body.pom-signature main .card {
    background: #fff;
    border-color: #dce5ef;
    border-radius: 13px;
    box-shadow: 0 4px 13px #193b6408;
  }
  body.pom-signature main .card h2 { color: #203a5b; font-size: 21px; font-weight: 750; line-height: 1.4; letter-spacing: -.025em; }
  body.pom-signature main .card h3 { color: #294465; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
  body.pom-signature main .section-head .small,
  body.pom-signature main .section-head .muted { color: #5a6f8b; }
  body.pom-signature .setup-stepbar,
  body.pom-signature .result-subtabs { border-color: #dae4f0; box-shadow: 0 3px 10px #193b6406; }
  body.pom-signature .setup-step.active,
  body.pom-signature .result-subtab.active { background: #edf3ff; color: #2355b8; box-shadow: inset 0 0 0 1px #c4d6f3; }
  body.pom-signature .setup-step.done .setup-step-index { background: #e4f4ed; }
  body.pom-signature .setup-step.done.active .setup-step-index { background: #2b5dcc; }

  /* Existing summary cards are retained; labels, numerals and icons form a set. */
  body.pom-signature .kpi,
  body.pom-signature .action-kpi,
  body.pom-signature .summary-item,
  body.pom-signature .funding-budget-metric {
    background: #fff !important;
    border: 1px solid #dce5f1;
    border-radius: 10px !important;
    box-shadow: 0 3px 11px #193b6406;
  }
  body.pom-signature .kpi .n,
  body.pom-signature .kpi > b,
  body.pom-signature .summary-item > b {
    color: #223d61;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.025em;
  }
  body.pom-signature .kpi .n { font-size: 29px; }
  /* v1.1.4.19: keep admin scoring summary text inside its card borders. */
  body.pom-signature .admin-score-summary > .kpi {
    min-width: 0;
    padding: 14px 16px;
  }
  body.pom-signature .admin-score-summary > .kpi .n { overflow-wrap: anywhere; }
  body.pom-signature .kpi > b,
  body.pom-signature .summary-item > b { font-size: 25px; }
  body.pom-signature .action-kpi b { color: #284b79; font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
  body.pom-signature .action-kpi.attention b { color: #895b14; }
  body.pom-signature .action-kpi.danger b { color: #a1343d; }
  body.pom-signature .summary-item:first-child { background: #f6f9ff !important; border-color: #bfd1ee; }
  body.pom-signature .pom-metric-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    margin-bottom: 6px;
    color: #526b8c;
    font-size: 12px;
    font-weight: 600;
  }
  body.pom-signature .pom-metric-heading > span:not(.pom-metric-icon) { min-width: 0; overflow-wrap: anywhere; }
  body.pom-signature .pom-metric-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: #2c61c9;
    background: #edf3ff;
  }
  body.pom-signature .pom-metric-icon svg,
  body.pom-signature .pom-metric-icon img { display: block; width: 18px; height: 18px; }
  body.pom-signature .pom-metric-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  body.pom-signature .funding-budget-summary { background: #f5f8fd; border-color: #d7e2f1; border-radius: 12px; }
  body.pom-signature .funding-budget-metric:first-child { background: #f9fbff !important; border-color: #bdd0ef; }
  body.pom-signature .funding-budget-metric > span { color: #526b8b; font-weight: 600; }
  body.pom-signature .funding-budget-metric > strong {
    color: #233c5f;
    font-size: clamp(19px, 1.8vw, 27px);
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.025em;
  }
  body.pom-signature .funding-budget-metric > small { color: #596e88; }
  body.pom-signature .funding-budget-metric[data-funding-metric="remaining"] > strong { color: #14664f; }
  body.pom-signature .funding-budget-metric.funding-budget-excess { border-color: #e5b6b8; background: #fff6f6 !important; }
  body.pom-signature .funding-budget-metric.funding-budget-excess > strong,
  body.pom-signature .funding-budget-metric.funding-budget-excess > span { color: #a1353d; }
  body.pom-signature .pom-money { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; min-width: 0; }
  body.pom-signature .pom-money-number { min-width: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  body.pom-signature .pom-money-unit { color: #566d89; font-size: 12px; font-weight: 500; letter-spacing: 0; }
  body.pom-signature .funding-budget-stage { border-radius: 6px; font-weight: 650; }
  body.pom-signature .funding-budget-stage.confirmed { color: #14664f; background: #e8f6ef; border-color: #bddfce; }
  body.pom-signature .funding-budget-progress::-webkit-progress-value { background: #3568d0; }
  body.pom-signature .funding-budget-progress::-moz-progress-bar { background: #3568d0; }
  body.pom-signature .funding-budget-over .funding-budget-progress::-webkit-progress-value { background: #ad414a; }
  body.pom-signature .funding-budget-over .funding-budget-progress::-moz-progress-bar { background: #ad414a; }

  body.pom-signature .reviewer-status-card { border-color: #dce5ef; background: #fff; }
  body.pom-signature .reviewer-status-tile { border-color: #dce5f1; border-radius: 11px; box-shadow: 0 3px 10px #193b6406; }
  body.pom-signature .reviewer-status-tile.identity { background: #f0f5ff; border-color: #c4d6f1; color: #1b426f; }
  body.pom-signature .status-icon { border-radius: 10px; color: #2b61cd; background: #edf3ff; }
  body.pom-signature .reviewer-status-tile.identity .status-icon { background: #dce9fc; color: #2b5794; }
  body.pom-signature .status-label { color: #536a87; font-weight: 650; }
  body.pom-signature .status-value { color: #1f3757; font-size: 28px; font-weight: 750; letter-spacing: -.03em; }
  body.pom-signature .status-note { color: #596d87; }
  body.pom-signature .reviewer-status-tile.identity .status-value { color: #1b426f; font-size: 22px; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
  body.pom-signature .reviewer-status-tile.identity .status-label,
  body.pom-signature .reviewer-status-tile.identity .status-note { color: #4f6a8b; }
  body.pom-signature .reviewer-status-state { border-radius: 6px; font-weight: 650; background: #f1f4f9; color: #566a85; }
  body.pom-signature .reviewer-status-state.ready { color: #14664f; background: #e1f4ea; }
  body.pom-signature .reviewer-status-card.compact { border-color: #ccdced; box-shadow: 0 5px 16px #173b621a; }

  /* Controls: decorative changes only, with compact table controls untouched. */
  body.pom-signature :is(main, #modalRoot, .ux-dialog) .btn {
    border-color: #ccd9e9;
    border-radius: 7px;
    color: #2c486d;
    font-weight: 650;
    box-shadow: 0 1px 2px #173b6205;
  }
  body.pom-signature :is(main, #modalRoot, .ux-dialog) .btn:hover { background: #f5f8fd; border-color: #a9bfdf; }
  body.pom-signature :is(main, #modalRoot, .ux-dialog) .btn-primary { background: #2b5dcc; border-color: #2b5dcc; color: #fff; box-shadow: 0 2px 5px #204c9f20; }
  body.pom-signature :is(main, #modalRoot, .ux-dialog) .btn-primary:hover { background: #214da9; border-color: #214da9; color: #fff; }
  body.pom-signature :is(main, #modalRoot, .ux-dialog) .btn-success { color: #14664f; background: #eaf7f0; border-color: #bcddcd; }
  body.pom-signature :is(main, #modalRoot, .ux-dialog) .btn-danger { color: #a1343e; background: #fff5f5; border-color: #e9c6ca; }
  body.pom-signature :is(main, #modalRoot, .ux-dialog) .btn-danger:hover { background: #ffeded; border-color: #d8a6ad; }
  body.pom-signature :is(main, #modalRoot, .ux-dialog) input,
  body.pom-signature :is(main, #modalRoot, .ux-dialog) select,
  body.pom-signature :is(main, #modalRoot, .ux-dialog) textarea { border-color: #c9d7e9; border-radius: 7px; color: #203b5b; }


  body.pom-signature :is(main, #modalRoot, .ux-dialog) :is(input, select, textarea):focus-visible { outline-color: #608ed8; outline-offset: 2px; }
  body.pom-signature main .field label { color: #486381; font-weight: 650; }
  body.pom-signature .filter-chip { border-color: #d5e0ed; color: #526a88; border-radius: 7px; font-weight: 650; }
  body.pom-signature .filter-chip.active { border-color: #bbcff0; color: #2759bd; background: #edf3ff; box-shadow: 0 1px 3px #193b6408; }
  body.pom-signature .choice-card { border-color: #d2deee; border-radius: 9px; }
  body.pom-signature .choice-card.selected { background: #f2f7ff; border-color: #86a7de; box-shadow: 0 0 0 2px #e0ebfd; }
  body.pom-signature .choice-card strong { color: #29496f; font-weight: 700; }
  body.pom-signature .company-btn { border-color: #d7e2ef; border-radius: 9px; }
  body.pom-signature .company-btn.active { border-color: #bdd0ef; background: #edf4ff; box-shadow: inset 3px 0 #2f65d4; }
  body.pom-signature .company-btn:hover { border-color: #aac1e2; background: #f5f8fe; }
  body.pom-signature .company-btn.active:hover { background: #eaf2ff; }

  /* Status colors are limited to badges; score-high/score-low keep their meaning. */
  body.pom-signature main .card .badge,
  body.pom-signature #modalRoot .badge,
  body.pom-signature .ux-dialog .badge { border-radius: 5px; font-weight: 650; }
  body.pom-signature main .card .badge.blue,
  body.pom-signature main .card .badge.status-active { color: #2457b7; background: #eaf2ff; }
  body.pom-signature main .card .badge.green { color: #14664f; background: #e4f4eb; }
  body.pom-signature main .card .badge.gray,
  body.pom-signature main .card .badge.status-past { color: #52677f; background: #edf2f7; }
  body.pom-signature main .card .badge.orange,
  body.pom-signature main .card .badge.status-scheduled { color: #835912; background: #fff3db; }
  body.pom-signature main .card .badge.red { color: #a03742; background: #fdecef; }
  body.pom-signature .admin-save-status,
  body.pom-signature .save-state { border-radius: 6px; font-weight: 650; }
  body.pom-signature .admin-save-status.saved,
  body.pom-signature .save-state.saved { color: #14664f; background: #e3f4eb; }
  body.pom-signature .setup-savebar .inner,
  body.pom-signature .reviewer-bottom-actions .inner { background: #183453f5; border-color: #b8cfea2e; box-shadow: 0 7px 21px #102a4624; border-radius: 10px; }
  body.pom-signature .setup-savebar .btn:not(.btn-primary):not(.btn-danger),
  body.pom-signature .reviewer-bottom-actions .btn:not(.btn-primary):not(.btn-danger) { background: #fff; color: #284d80; border-color: #d9e4f4; }

  /* Table typography and dimensions stay with the existing domain styles. */
  body.pom-signature main .table-wrap table thead th { background: #f1f5fb; color: #465f7e; border-bottom-color: #d4e0ee; }
  body.pom-signature main .table-wrap table tbody td { border-bottom-color: #e1e8f2; }
  body.pom-signature .admin-scorecard-table tbody tr:not(.score-row-missing):focus-within > td,
  body.pom-signature .reviewer-scorecard-table tbody tr:not(.score-row-missing):focus-within > td { background: #f0f5fe; }
  body.pom-signature .admin-scorecard-table .score-content-cell,
  body.pom-signature .reviewer-scorecard-table .score-content-cell { color: #415d7c; }
  body.pom-signature .admin-scorecard-table .score-indicator-cell,
  body.pom-signature .reviewer-scorecard-table .score-indicator-cell { color: #213c60; }
  body.pom-signature .result-final-score-table tbody td:nth-child(10) { color: #1d477b; font-weight: 750; background: #f3f7fe; }
  body.pom-signature .result-final-score-table tbody tr:hover td:nth-child(10) { background: #edf4ff; }
  body.pom-signature .total { background: #edf4ff; border-color: #cbdcf4; border-radius: 8px; color: #29466d; }
  body.pom-signature .total strong { color: #214f96; font-variant-numeric: tabular-nums; }
  body.pom-signature .funding-status-ratio-note { background: #f4f7fc; color: #536b88; border-radius: 7px; }
  body.pom-signature .funding-status-results .funding-status-table-wrap { border-color: #d6e1ee; }
  body.pom-signature .funding-status-table .funding-status-company-name { color: #23466f; }
  body.pom-signature .funding-status-table .funding-status-stage-label { color: #4b6584; }
  body.pom-signature .funding-status-table .funding-status-ratio .funding-status-value { color: #60728b; }
  body.pom-signature .funding-status-table .funding-status-recognized > .funding-status-stage-label,
  body.pom-signature .funding-status-table .funding-status-recognized > .funding-status-money,
  body.pom-signature .funding-status-table .funding-status-recognized > .funding-status-ratio { background: #edf4ff; }
  body.pom-signature .funding-status-table .funding-status-recognized > .funding-status-money { color: #264c7e; }
  body.pom-signature .funding-status-table .funding-status-subtotal > tr > th,
  body.pom-signature .funding-status-table .funding-status-subtotal > tr > td { background: #edf3fb; }
  body.pom-signature .funding-status-table .funding-status-subtotal > tr.funding-status-recognized > th,
  body.pom-signature .funding-status-table .funding-status-subtotal > tr.funding-status-recognized > td { background: #e2edfc; }
  body.pom-signature .funding-status-subtotal-title > b { color: #254d7e; }
  body.pom-signature .funding-status-controls .sort-head { border-color: #d6e1ef; border-radius: 6px; color: #476483; }

  /* File rows preserve the original link and full filename, without previews. */
  body.pom-signature .file-list {
    min-width: 0;
    max-width: 100%;
    border: 1px solid #dce5f1;
    border-radius: 9px;
    padding: 12px;
    background: #f8fafd;
  }
  body.pom-signature .file-list > b { flex-basis: 100%; color: #365578; font-size: 13px; font-weight: 650; }
  body.pom-signature .file-list > a.btn { max-width: 100%; min-width: 0; background: #fff; border-color: #d6e1ef; color: #2c4d76; font-weight: 600; overflow-wrap: anywhere; }
  body.pom-signature .pom-file-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-width: 0;
    width: 100%;
    border: 1px solid #d9e3ef;
    border-radius: 7px;
    padding: 10px 12px;
    color: #294c76;
    background: #fff;
    text-decoration: none;
  }
  body.pom-signature .pom-file-row:hover { background: #f2f7ff; border-color: #b7cdec; }
  body.pom-signature .pom-file-type { flex: 0 0 auto; padding: 3px 6px; border-radius: 4px; background: #edf3ff; color: #3e608c; font-size: 11px; font-weight: 700; }
  body.pom-signature .pom-file-name { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
  body.pom-signature .pom-file-size { color: #5e718b; font-size: 11px; white-space: nowrap; }
  body.pom-signature .pom-file-action { flex: 0 0 auto; color: #2d5ca4; font-size: 12px; font-weight: 650; }

  /* Supporting screens share the same finish without adding effects or motion. */
  body.pom-signature .modal,
  body.pom-signature .ux-dialog { border: 1px solid #d3dfed; border-radius: 13px; box-shadow: 0 16px 42px #1732512d; color: #203a58; }
  body.pom-signature .modal h2,
  body.pom-signature .ux-dialog h2 { color: #203c61; font-weight: 750; letter-spacing: -.02em; }
  body.pom-signature .ux-dialog-actions { border-top: 1px solid #e2e9f2; padding-top: 16px; }
  body.pom-signature .modal-bg { background: #0c23416b; }
  body.pom-signature .ux-dialog::backdrop { background: #0c23416b; }
  body.pom-signature .ux-details-grid dt { color: #57708e; }
  body.pom-signature main .notice,
  body.pom-signature .ux-flow-note { border-radius: 8px; background: #eef4ff; color: #355886; }
  body.pom-signature main .notice.warn,
  body.pom-signature .ux-flow-note.warn { background: #fff6e7; color: #805a19; }
  body.pom-signature main .notice.danger,
  body.pom-signature .ux-flow-note.error { background: #fff0f1; color: #94343f; }
  body.pom-signature .ux-flow-note.success { background: #eaf7f0; color: #246750; }
  body.pom-signature .toast { border: 1px solid #ffffff24; border-radius: 9px; background: #193757; font-weight: 600; box-shadow: 0 7px 22px #10243e26; }
  body.pom-signature .toast.success { background: #1a694f; }
  body.pom-signature .toast.warn { background: #805b1b; }
  body.pom-signature .toast.danger { background: #9c3542; }
  body.pom-signature main .empty,
  body.pom-signature .document-grid-empty { color: #566e8b; background: #fafcff; }
  body.pom-signature .document-grid-empty { border-color: #cddced; border-radius: 10px; }
  body.pom-signature .submitted-box { border-color: #badcca; background: #edf8f2; color: #205f49; border-radius: 9px; }

  @media (max-width: 1100px) {
    body.pom-signature .funding-status-table .funding-status-recognized { background: #edf4ff; }
    body.pom-signature .funding-status-table .funding-status-subtotal > tr.funding-status-recognized { background: #e2edfc; }
  }
  @media (max-width: 900px) {
    body.pom-signature .head { align-items: flex-start; }
    body.pom-signature .brand small { flex-basis: auto; }




  }
  @media (max-width: 720px) {
    body.pom-signature header { padding: 13px 16px; }
    body.pom-signature .brand { gap: 8px 12px; }
    body.pom-signature .brand-main { font-size: 27px; }








    body.pom-signature .funding-budget-metric > strong { font-size: 23px; }
    body.pom-signature .file-list { padding: 10px; }
  }
  @media (max-width: 420px) {
    body.pom-signature .brand { align-items: flex-start; }
    body.pom-signature .brand-main { font-size: 25px; padding-left: 10px; }
    body.pom-signature .brand small { flex-basis: 100%; padding-left: 10px; }
    body.pom-signature .brand-desc { font-size: 12px; }
    body.pom-signature .brand-en { font-size: 11px; }








    body.pom-signature .pom-file-name { flex-basis: calc(100% - 65px); }
    body.pom-signature .pom-file-row { padding: 9px 10px; gap: 7px; }
    body.pom-signature .pom-file-size { margin-left: auto; }
  }
}

/* The v15 banner renderer and v15 banner stylesheet supply its exact layout.
   Keep the v16 generic form/badge rules from changing banner control colors. */
@media screen {
  body.pom-signature .pom-evaluation-picker #reviewerProjectSelect {
    color: #fff; background: #214970; border-color: #557494;
  }
  body.pom-signature .pom-evaluation-picker #reviewerProjectSelect option { color: #172b44; background: #fff; }
  body.pom-signature .score-scale-settings { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 12px 18px; align-items: center; padding: 14px 16px; margin: 0 0 12px; border: 1px solid #dce5ef; border-radius: 9px; background: #f7f9fd; }
  body.pom-signature .score-scale-settings[hidden] { display: none; }
  body.pom-signature .score-scale-settings .field { min-width: 0; }
  body.pom-signature .score-scale-help { color: #526984; font-size: 12px; line-height: 1.6; }
  body.pom-signature .score-scale-preview { display: block; margin-top: 5px; color: #315c93; font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: normal; }
  @media (max-width: 720px) { body.pom-signature .score-scale-settings { grid-template-columns: minmax(0, 1fr); } }
}
