/* Reusable form rows and operator card structure, 0.3.2.11. */
.form-card.form-stack { grid-template-columns: minmax(0,1fr); }
.form-stack > * { min-width: 0; grid-column: 1 / -1; }
.form-actions { align-items: center; justify-content: flex-end; gap: 12px; }
.form-actions > .button { min-height: 42px; white-space: normal; text-align: center; }
.operator-shell { --portal-section-gap:18px; --operator-card-padding:24px; }
.operator-shell .operator-card { min-width: 0; }
.operator-shell .operator-card > .card-head { padding: 20px var(--operator-card-padding); gap: 16px; flex-wrap: wrap; }
.operator-shell .operator-card > .card-head > div { min-width: 0; }
.operator-shell .operator-card .card-head :is(h2,h3) { margin: 0; }
.operator-shell .operator-card .card-head p { margin: 8px 0 0; line-height: 1.6; }
.operator-shell .card-body { padding: var(--operator-card-padding); min-width: 0; }
.operator-shell .content-stack { display: flex; flex-direction: column; align-items: stretch; gap: 16px; min-width: 0; }
.operator-shell .content-stack > :is(h2,h3,p) { margin: 0; line-height: 1.6; }
.operator-shell .content-stack > .status-badge { align-self: flex-start; white-space: normal; }
.operator-shell .content-stack p { overflow-wrap: anywhere; }
.operator-shell .admin-boundary-card { display: block; padding: 0; }
.operator-shell .entry-list > article + article { border-top:1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.operator-shell .entry-identity { display: grid; gap: 6px; overflow-wrap: anywhere; }
.operator-shell .entry-identity > span { color:var(--muted); }
.operator-shell .entry-error { min-width: 0; padding: 14px 16px; background:var(--status-danger-soft); border:1px solid var(--status-danger-soft); border-radius: 8px; line-height: 1.6; }
.operator-shell .entry-error > p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.operator-shell .entry-list > .empty-note { margin: 0; padding: 0; }
.operator-shell .operator-settings-stack { width: 100%; max-width: 1180px; }
.operator-shell .settings-form-grid { gap: 20px; padding: var(--operator-card-padding); }
.operator-shell .settings-form-grid .form-wide > p { margin: 14px 0 0; line-height: 1.6; }
.operator-shell :is(a,button,summary,input):focus-visible { outline:3px solid var(--brand-primary); outline-offset: 3px; }
.operator-statistics-page { width: 100%; max-width: 1180px; margin-inline: auto; }
.account-statistics-page .operator-statistics-filter { justify-content: flex-start; margin-bottom: 16px; align-items: flex-start; }
.operator-statistics-filter > label { min-width: 180px; }
.operator-statistics-filter > .button { align-self: flex-start; margin-top: 19px; }
.statistics-scope-note { font-size: 12px; color:var(--brand-text-muted); line-height: 1.6; margin: 0 0 20px; }
.account-statistics-page .statistics-filter .customer-filter { max-width: min(460px,100%); min-width: min(290px,100%); flex: 1; }
.account-statistics-page .customer-filter summary { white-space: normal; line-height: 1.5; overflow-wrap: anywhere; }
.customer-filter-panel { padding: 16px; border:1px solid var(--brand-border); border-radius: 10px; background:var(--brand-surface); margin-top: 8px; }
.customer-search-actions { display: flex; gap: 8px; margin: 6px 0 12px; }
.customer-search-actions input { min-width: 0; width: 100%; }
.customer-filter-panel fieldset { margin: 0; border:0; padding: 0; max-height: 280px; overflow-y: auto; }
.customer-filter-panel fieldset label { display: flex; align-items: flex-start; gap: 8px; padding: 10px 6px; border-radius: 6px; cursor: pointer; }
.customer-filter-panel fieldset label:hover { background:var(--brand-background); }
.customer-filter-panel fieldset span { overflow-wrap: anywhere; }
.account-statistics-page .customer-filter-panel input[type=radio] { width: 16px; height: 16px; min-height: 0; flex: 0 0 16px; margin: 1px 0 0; padding: 0; }
.filter-feedback { font-size: 12px; line-height: 1.5; color:var(--brand-text-muted); }
.account-statistics-page .global-resources { grid-template-columns: repeat(5,minmax(0,1fr)); }
.account-statistics-page .company-bar > span { overflow-wrap: anywhere; }
@media(max-width:1300px) {
 .account-statistics-page .global-resources { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:700px) {
 .operator-shell { --operator-card-padding:18px; }
 .form-stack .form-actions { flex-direction: column; align-items: stretch; }
 .form-stack .form-actions > .button { width: 100%; }
 .operator-shell .entry-list .form-actions > .button { width: 100%; }
 .account-statistics-page .operator-statistics-filter { flex-direction: column; align-items: stretch; }
 .account-statistics-page .statistics-filter .customer-filter { min-width: 0; max-width: none; width: 100%; }
 .operator-statistics-filter > .button { margin-top: 0; }
 .account-statistics-page .global-resources { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:420px) {
 .account-statistics-page .global-resources { grid-template-columns: minmax(0,1fr); }
}
