/* DigiVet MP 1.26.3 — spacing, alignment and operational language; UI only. */
.theme-resi-orange { --dv-card-gutter:20px; --dv-content-gap:18px; }
.theme-resi-orange .content { display:flex; flex-direction:column; gap:18px; min-width:0; }
.theme-resi-orange .content > * { min-width:0; }
.theme-resi-orange .content > .page-heading { margin-bottom:0; }
.theme-resi-orange .content > .metrics-grid,
.theme-resi-orange .content > .dashboard-grid,
.theme-resi-orange .content > .order-summary,
.theme-resi-orange .content > .product-summary { margin-bottom:0; }
.theme-resi-orange .panel { box-sizing:border-box; min-width:0; overflow:hidden; }
.theme-resi-orange .panel-heading,
.theme-resi-orange .table-panel-head { box-sizing:border-box; margin:0; min-height:0; padding:20px var(--dv-card-gutter) 17px; gap:12px; align-items:flex-start; }
.theme-resi-orange .panel-heading > div:first-child,
.theme-resi-orange .table-panel-head > div:first-child { min-width:0; flex:1; }
.theme-resi-orange .panel-heading h2,
.theme-resi-orange .table-panel-head h2 { line-height:1.45; margin:0; overflow-wrap:anywhere; }
.theme-resi-orange .panel-heading p,
.theme-resi-orange .table-panel-head p { margin:7px 0 0; line-height:1.6; overflow-wrap:anywhere; }
.theme-resi-orange .panel-heading > div:last-child:not(:first-child):empty { display:none; }
/* Direct children are inset ONCE; nested editor grids keep their own spacing. */
.theme-resi-orange .panel > :is(.pro-grid,.pro-actions,.pro-result,.ops-form,.ops-inline,.pro-canvas,.pro-check-list,.pro121-tools,.pro121-actions,.pro121-preview,.pro121-area,.v110-actions,.v110-info,.v110-form,.ops-actions,.ops-suggestions,.pro-muted,.v122-section,.dv-related-output) {
 box-sizing:border-box; width:calc(100% - 2 * var(--dv-card-gutter)); max-width:calc(100% - 2 * var(--dv-card-gutter));
 margin:12px var(--dv-card-gutter) 18px; min-width:0;
}
.theme-resi-orange .panel > :is(.pro-grid,.pro-actions,.pro-result,.ops-form,.ops-inline,.pro-canvas,.pro-check-list,.pro121-tools,.pro121-actions,.pro121-preview,.pro121-area,.v110-actions,.v110-info,.v110-form,.ops-actions,.ops-suggestions,.pro-muted,.v122-section,.dv-related-output):last-child { margin-bottom:22px; }
/* Undo v1.26.2's nested gutter multiplication: only direct panel children are indented. */
.theme-resi-orange .panel :is(.pro-grid,.pro-actions,.pro-result,.ops-form,.ops-inline,.pro-canvas,.pro-check-list,.pro121-tools,.pro121-actions,.pro121-preview):not(.dv-modal-body *) {
 max-width:100%;
}
.theme-resi-orange .panel :is(.pro-grid,.pro-actions,.pro-result,.ops-form,.ops-inline,.pro-canvas,.pro-check-list,.pro121-tools,.pro121-actions,.pro121-preview):not(.dv-modal-body *):not(.panel > *) {
 margin-left:0; margin-right:0;
}
/* Consistent heading-to-content spacing, including dynamically inserted content. */
.theme-resi-orange .panel > .panel-heading + :not(.table-wrap):not(.filter-toolbar),
.theme-resi-orange .panel > .table-panel-head + :not(.table-wrap):not(.filter-toolbar) { margin-top:12px; }
.theme-resi-orange .panel > .table-wrap,
.theme-resi-orange .panel > .filter-toolbar,
.theme-resi-orange .panel > .pagination { width:100%; max-width:100%; box-sizing:border-box; margin-left:0!important; margin-right:0!important; }
.theme-resi-orange .panel > .filter-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:14px var(--dv-card-gutter) 16px; margin-top:0; }
.theme-resi-orange .panel > .filter-toolbar .btn { margin:0; }
.theme-resi-orange .panel > .ops-actions { padding:0; }
.theme-resi-orange .panel > .ops-actions + .table-wrap { margin-top:6px; }
.theme-resi-orange .panel .data-table { min-width:100%; }
.theme-resi-orange .panel .data-table :is(th,td):first-child { padding-left:var(--dv-card-gutter); }
.theme-resi-orange .panel .data-table :is(th,td):last-child { padding-right:var(--dv-card-gutter); }
.theme-resi-orange .panel .table-wrap { scrollbar-width:thin; scrollbar-color:#D3D9E1 transparent; }
.theme-resi-orange .panel .table-empty { text-align:center; padding:46px 24px; }
.theme-resi-orange .panel :is(.keyval,.pro-result,.v110-info,.inline-notice,.ops-suggestions) { line-height:1.65; overflow-wrap:anywhere; }
.theme-resi-orange .panel > .keyval { padding-left:var(--dv-card-gutter); padding-right:var(--dv-card-gutter); }
.theme-resi-orange .panel > .keyval:last-child { padding-bottom:16px; }
.theme-resi-orange .panel > :is(p,h3,h4) { margin:0 var(--dv-card-gutter) 12px; }
.theme-resi-orange .panel > :is(p,h3,h4):last-child { margin-bottom:18px; }
.theme-resi-orange .panel > .dv-open-inline { margin:4px var(--dv-card-gutter) 20px; }
.theme-resi-orange .panel > .dv-heading-actions { margin-left:var(--dv-card-gutter); margin-right:var(--dv-card-gutter); }
.theme-resi-orange .panel :is(.pro-field,.eweb-field,.ops-form label) { min-width:0; line-height:1.5; }
.theme-resi-orange .panel :is(input,select,textarea) { max-width:100%; }
.theme-resi-orange .panel :is(.pro-result,.v110-info) :is(p,code) { overflow-wrap:anywhere; }
.theme-resi-orange .panel .v110-info p + p { margin-top:10px; }
.theme-resi-orange .panel > :is(.v110-info,.pro-result) + button { margin:0 var(--dv-card-gutter) 20px; }
.theme-resi-orange .two-column > .panel, .theme-resi-orange .dashboard-grid > .panel { min-width:0; }
.theme-resi-orange .dashboard-grid > .panel > .table-wrap { overflow-x:auto; }
/* Modal forms retain their own padding — no accidental panel gutter inside dialogs. */
.dv-modal-body :is(.pro-grid,.pro-actions,.pro-result,.ops-form,.ops-inline,.pro-canvas,.pro-check-list,.pro121-tools,.pro121-actions,.pro121-preview) { width:100%; max-width:100%; margin-left:0; margin-right:0; }
@media(max-width:720px) {
 .theme-resi-orange { --dv-card-gutter:16px; --dv-content-gap:14px; }
 .theme-resi-orange .content { gap:14px; }
 .theme-resi-orange .panel-heading,.theme-resi-orange .table-panel-head { padding:16px var(--dv-card-gutter) 14px; }
 .theme-resi-orange .panel > .filter-toolbar { padding:12px var(--dv-card-gutter); }
 .theme-resi-orange .panel .data-table :is(th,td):first-child { padding-left:var(--dv-card-gutter); }
 .theme-resi-orange .panel .data-table :is(th,td):last-child { padding-right:var(--dv-card-gutter); }
}
/* Older two-column cards had their own 22px inset on top of heading padding. */
.theme-resi-orange .two-column { margin-bottom:0; min-width:0; }
.theme-resi-orange .two-column .panel { padding:0; }
.theme-resi-orange .two-column .panel .data-table { min-width:100%; }
.theme-resi-orange .two-column .panel .data-table :is(th,td) { overflow-wrap:anywhere; }
.theme-resi-orange .panel + .panel { margin-top:0; }
.theme-resi-orange .panel > .inline-notice { width:calc(100% - 2 * var(--dv-card-gutter)); max-width:calc(100% - 2 * var(--dv-card-gutter)); box-sizing:border-box; margin:12px var(--dv-card-gutter) 18px; }
