/* FIX13: screen contrast only. Keep dimensions, focus, status and print styles. */
@media screen {
  :root {
    --line: #a8b7cb;
    --cmd-border-panel: #7b8faa;
    --cmd-border-inner: #a8b7cb;
    --cmd-border-control: #91a4bf;
  }

  body.cmd-p17-mobile {
    --cmd-color-border: #91a4bf;
  }

  /* Main sections and modal frames. Existing border widths are retained. */
  body .panel,
  body .stat-card:not(.v7-profit-card),
  body .project-card,
  body .login-card,
  body.cmd-p17-mobile .panel,
  body.cmd-p17-mobile .stat-card:not(.v7-profit-card),
  body.cmd-p17-mobile .project-card,
  body .b25-treasury-card,
  body .cmd-login-update-card,
  body .cmd-budget-card,
  body .cmd-8210-section,
  body .cmd-category-grant-section-8211,
  body .cmd-go-live-card-m49,
  body .cmd-go-live-section-m49,
  body .m50e1-restore-section,
  body .cmd-attachment-card-08b3,
  body .cmd-notification-options-8209 {
    border-color: var(--cmd-border-panel);
  }

  body dialog {
    outline: 2px solid var(--cmd-border-panel);
    outline-offset: -2px;
  }

  /* Dividers inside a section stay lighter than its perimeter. */
  body .panel-header,
  body .request-item-head,
  body .section-heading,
  body .sticky-actions,
  body .cmd-mobile-form-shell-p17h5 > .dialog-header,
  body .cmd-mobile-form-actions-p17h5,
  body .cmd-notification-options-8209 label + label {
    border-color: var(--cmd-border-inner);
  }

  body .request-item,
  body .attachment-row,
  body .existing-file,
  body .category-node,
  body .risk-item,
  body .numbering-chip,
  body .cmd-business-table-wrap-08b2,
  body .cmd-attachment-table-wrap-08b3,
  body .cmd-budget-table-wrap,
  body .cmd-category-tree-8211,
  body .cmd-category-grant-row-8211,
  body .cmd-8210-line,
  body .cmd-8210-proposal-row,
  body .cmd-8210-source,
  body .cmd-8211-attachment-group,
  body .cmd-8210-attachment:not(.is-unlinked):not(.is-pending),
  body .cmd-workspace-row-m48,
  body .b25-payment-info-table,
  body .b25-installment-table,
  body .qscm-payment-attachments > summary {
    border-color: var(--cmd-border-control);
  }

  /* The shared request form has older !important border rules. */
  #requestForm .request-item {
    border-color: var(--cmd-border-panel) !important;
  }
  #requestForm .request-item .invoice-options {
    border-color: #7caaa5 !important;
  }
  #requestForm .request-item .item-tax-row > .check-row,
  #requestForm .request-item .mini-kpi {
    border-color: var(--cmd-border-control) !important;
  }
  #requestForm.qscm-multi-supplier-mode .request-item:nth-child(odd) {
    border-color: #789ac5 !important;
  }
  #requestForm.qscm-multi-supplier-mode .request-item:nth-child(even) {
    border-color: #75a993 !important;
  }
  #requestForm.qscm-multi-supplier-mode .request-item:nth-child(odd) .request-item-head {
    border-bottom-color: #a1b9d7 !important;
  }
  #requestForm.qscm-multi-supplier-mode .request-item:nth-child(even) .request-item-head {
    border-bottom-color: #a0c5b5 !important;
  }

  body .cmd-business-table-wrap-08b2 :is(th, td),
  body .cmd-attachment-table-wrap-08b3 :is(th, td),
  body .cmd-detail-excel-table :is(th, td),
  body .cmd-category-tree-row-8211,
  body .cmd-category-search-results-8211 button,
  body .cmd-budget-mini-table > *,
  body .cmd-budget-source-line,
  body .cmd-budget-history-line {
    border-color: var(--cmd-border-inner);
  }

  /* Match dynamically loaded component styles without replacing focus colors. */
  body .cmd-budget :is(input, select, textarea):not(:focus):not([aria-invalid="true"]),
  body .cmd-go-live-section-m49 :is(input, select, textarea):not(:focus):not([aria-invalid="true"]),
  body #cmdBackup8213Dialog :is(input, select, textarea):not(:focus):not([aria-invalid="true"]),
  body .v7-search-menu {
    border-color: var(--cmd-border-control);
  }
}
