/* Shared desktop and mobile operational rhythm. Excludes print/canvas surfaces. */
@media screen {
  .erp-body #main-content :is(.field-group,.structured-field,.ruling-field) > label {
    color:#34465d;font-size:.8125rem;font-weight:750;line-height:1.6;
  }
  .erp-body #main-content :is(.field-group,.structured-field,.ruling-field):focus-within > label { color:color-mix(in srgb,var(--org-accent,#2878c9) 60%,#173b66); }
  .erp-body #main-content :is(.field-group,.structured-field,.ruling-field) > :is(small,.field-help),
  .erp-body #main-content .form-aligned__feedback :is(small,.field-help,.field-hint,.form-text,.help-text) { color:#64748b;font-size:.75rem; }
  .erp-body #main-content :is(.form-control,.form-select,.searchable-select__control) { border-radius:9px; }
  .erp-body #main-content :is(.field-group,.structured-field,.ruling-field) :is(input,textarea,select):focus-visible {
    outline:2px solid color-mix(in srgb,var(--org-accent,#2878c9) 72%,#173b66);outline-offset:2px;
  }
  .erp-body #main-content :is(.panel,.form-section) > header { min-height:50px;padding:12px 16px; }
  .erp-body #main-content :is(.card-heading,.panel > header,.form-section > header) h2 { color:#24374e;font-size:.9375rem!important;font-weight:800;line-height:1.5; }
  .erp-body #main-content .operational-table-scroll {
    min-width:0;max-width:100%;overflow:auto;overscroll-behavior-inline:contain;
    scrollbar-width:thin;scrollbar-color:#b4c6d8 transparent;
  }
  .erp-body #main-content .operational-table-scroll:focus-visible { outline:2px solid color-mix(in srgb,var(--org-accent,#2878c9) 72%,#173b66);outline-offset:-2px; }
  .erp-body #main-content table.operational-table { width:100%;min-width:680px!important;table-layout:auto; }
  .erp-body #main-content table.operational-table th { padding:11px 14px!important;font-size:.75rem!important;white-space:nowrap; }
  .erp-body #main-content table.operational-table td { padding:12px 14px!important;font-size:.8125rem!important;line-height:1.65;vertical-align:middle; }
  .erp-body #main-content table.operational-table :is(th,td):first-child { min-width:200px; }
  .erp-body #main-content table.operational-table td :is(.table-subline,.entity-cell small) { font-size:.75rem; }
  .erp-body #main-content table.operational-table tbody tr:nth-child(even) { background:color-mix(in srgb,var(--org-accent,#2878c9) 2%,white); }
  .erp-body #main-content table.operational-table tbody tr:hover { background:color-mix(in srgb,var(--org-accent,#2878c9) 4%,white); }
  .erp-body #main-content table.operational-table tbody tr:focus-within { background:color-mix(in srgb,var(--org-accent,#2878c9) 7%,white); }
  .erp-body #main-content .form-aligned { row-gap:6px!important; }
  .erp-body #main-content .crm-form-section + .crm-form-section { margin-block-start:16px;padding-block-start:14px; }
  .erp-body #main-content .crm-form-section > h2 { margin-block-end:8px; }
  .erp-body #main-content .ruling-line__remove { min-height:36px;padding-inline:10px;font-size:.75rem; }
  .erp-body #main-content .ruling-field :is(input.form-control,select.form-select:not([multiple])):not(.searchable-select__native),
  .erp-body #main-content .ruling-field .searchable-select__control { min-height:44px!important;height:44px!important;box-sizing:border-box; }
  .erp-body #main-content .ruling-fields > .ruling-field textarea.form-control { height:88px;min-height:88px; }
}
@media screen and (max-width:700px) {
  .erp-body #main-content :is(.form-aligned,.business-fields) { --aligned-control-height:44px; }
  .erp-body #main-content .form-aligned .form-aligned__control:is(input:not([type=checkbox]):not([type=radio]),select:not([multiple])),
  .erp-body #main-content .form-aligned .form-aligned__control .searchable-select__control { min-height:44px!important;height:44px!important; }
  .erp-body #main-content .form-aligned.form-aligned--single { row-gap:16px!important; }
  .erp-body #main-content :is(.page-heading__actions,.page-actions,.form-actions,.ruling-actions,.smart-form-actions) :is(.btn,button,a),
  .erp-body #main-content :is(.list-toolbar,.list-filter-form) button,
  .erp-body #main-content :is(.table-action,.ruling-line__remove) { min-height:44px!important; }
  .erp-body #main-content table.operational-table { min-width:700px!important; }
  .erp-body #main-content .ruling-steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .erp-body #main-content .ruling-steps a { grid-template-columns:1fr;grid-template-rows:auto auto;justify-items:center;align-content:center;gap:5px;padding:10px 6px;text-align:center;min-height:82px; }
  .erp-body #main-content .ruling-steps a + a { border-top:0;border-inline-start:1px solid #e5ebf2; }
  .erp-body #main-content .ruling-steps span { grid-row:auto;width:26px;height:26px; }
  .erp-body #main-content .ruling-steps strong { font-size:.75rem;line-height:1.5; }
  .erp-body #main-content .ruling-steps small { display:none; }
}
@media (forced-colors:active) {
  .erp-body #main-content .operational-table-scroll:focus-visible { outline-color:Highlight; }
}
