/* DigiVet Marketplace V1.26.1 - consistent card rhythm and action modals. */
.theme-resi-orange{--dv-card-gutter:24px;}
.theme-resi-orange .panel{overflow:visible;}
.theme-resi-orange .panel-heading,
.theme-resi-orange .table-panel-head{
  box-sizing:border-box;min-height:68px;padding:22px var(--dv-card-gutter) 16px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.theme-resi-orange .panel-heading h2,
.theme-resi-orange .table-panel-head h2{margin:0;line-height:1.4;}
.theme-resi-orange .panel-heading p,
.theme-resi-orange .table-panel-head p{margin:6px 0 0;line-height:1.55;max-width:70ch;}
.theme-resi-orange .dv-heading-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-left:auto;}
.theme-resi-orange .dv-create-btn{white-space:normal;text-align:center;min-height:38px;line-height:1.25;padding:10px 16px;}
.theme-resi-orange .panel > :is(.pro-form,.ops-form,.v110-form,.pro-grid,.pro-actions,.v110-actions,.pro-result,.pro-canvas,.pro-check-list),
.theme-resi-orange .panel > :is([id$="-result"],[id$="-pane"]):not(.table-wrap){
  box-sizing:border-box;margin:14px var(--dv-card-gutter) 23px;
}
.theme-resi-orange .panel > form:not(.dv-form-in-modal){padding-left:0;padding-right:0;}
.theme-resi-orange .panel > .table-wrap{margin-top:4px;}
.theme-resi-orange .panel > .table-wrap:last-child{margin-bottom:0;}
.theme-resi-orange .panel .table-empty{padding:52px 18px 58px;}
.theme-resi-orange :is(.pro-field,.ops-form label,.v110-form label){min-width:0;line-height:1.5;}
.theme-resi-orange :is(.pro-field,.ops-form label,.v110-form label) > span:first-child{display:block;margin-bottom:6px;}
.theme-resi-orange .pro-field .field,
.theme-resi-orange .ops-form .field,
.theme-resi-orange .v110-form .field{min-width:0;max-width:100%;box-sizing:border-box;}
.theme-resi-orange .panel :is(.pro-form,.ops-form,.v110-form) > .btn{max-width:100%;}
.dv-form-anchor{display:none!important;}
.theme-resi-orange .panel > :is(.pro-grid,.pro-actions)+.table-wrap{margin-top:18px;}
.theme-resi-orange .panel > :is(.inline-notice,.filter-toolbar,.ops-suggestions){margin-left:var(--dv-card-gutter);margin-right:var(--dv-card-gutter);}
.theme-resi-orange .panel .data-table th{vertical-align:middle;}
.theme-resi-orange .panel .data-table td{vertical-align:middle;}
.theme-resi-orange .panel + .panel{margin-top:18px;}
.theme-resi-orange .panel .btn{min-height:34px;}
/* Dialog is a separate root, so app rerenders never silently delete a submitted form. */
body.dv-modal-visible{overflow:hidden;}
.dv-modal-overlay{position:fixed;inset:0;z-index:3000;background:rgba(17,24,39,.58);display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;backdrop-filter:blur(3px);}
.dv-action-dialog{width:min(780px,100%);max-height:min(88dvh,900px);display:flex;flex-direction:column;background:#fff;color:#243041;box-shadow:0 24px 85px rgba(16,24,40,.28);border:1px solid #FFE3D0;border-radius:18px;overflow:hidden;}
.dv-modal-header{padding:22px 26px 19px;display:flex;align-items:flex-start;gap:18px;justify-content:space-between;background:linear-gradient(115deg,#FFF6ED 0%,#FFFFFF 80%);border-bottom:1px solid #F4E2D4;}
.dv-modal-eyebrow{font-size:10px;letter-spacing:.12em;color:#BB5419;font-weight:800;}
.dv-modal-header h2{font-size:20px;color:#263243;line-height:1.25;margin:5px 0 7px;font-weight:780;}
.dv-modal-header p{color:#667085;font-size:12px;line-height:1.5;margin:0;}
.dv-modal-x{flex-shrink:0;display:grid;place-items:center;width:34px;height:34px;background:white;border:1px solid #EAD8CC;color:#626F80;border-radius:9px;font-size:26px;cursor:pointer;line-height:1;}
.dv-modal-x:hover{background:#FFF5EC;color:#EA580C;}
.dv-modal-body{padding:24px 26px;overflow-y:auto;min-height:0;overscroll-behavior:contain;}
.dv-modal-body .dv-form-in-modal{display:flex;flex-direction:column;gap:16px;margin:0!important;padding:0!important;width:100%;max-width:none;}
.dv-modal-body .dv-form-in-modal.ops-inline,.dv-modal-body .dv-form-in-modal.ops-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;}
.dv-modal-body .dv-form-in-modal .pro-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.dv-modal-body .dv-form-in-modal .btn-primary[type="submit"]{justify-self:start;align-self:flex-start;min-height:40px;padding:10px 18px;}
.dv-modal-body .dv-form-in-modal :is(label,.pro-field){min-width:0;font-weight:600;font-size:12px;color:#344054;line-height:1.5;}
.dv-modal-body .dv-form-in-modal label>.field{margin-top:5px;}
.dv-modal-body .dv-form-in-modal .field{display:block;width:100%;min-width:0;max-width:100%;min-height:42px;padding:10px 12px;box-sizing:border-box;border-radius:9px;font-size:13px;background:white;color:#243041;border:1px solid #D8DEE7;}
.dv-modal-body .dv-form-in-modal textarea.field{min-height:110px;line-height:1.5;}
.dv-modal-body .dv-form-in-modal .field:focus{outline:3px solid rgba(249,115,22,.15);border-color:#EA580C;}
.dv-modal-body .dv-form-in-modal .pro-check-list{max-height:260px;overflow:auto;}
.dv-modal-body .dv-form-in-modal .pro-canvas{max-width:100%;height:auto;}
.dv-modal-foot{padding:14px 26px;display:flex;gap:18px;justify-content:space-between;align-items:center;border-top:1px solid #EBEDF2;background:#FAFAFB;}
.dv-modal-foot span{font-size:11px;color:#7A8797;line-height:1.4;}
.dv-action-dialog :is(button,input,select,textarea):focus-visible{outline:2px solid #EA580C;outline-offset:2px;}
@media(max-width:720px){
 .theme-resi-orange{--dv-card-gutter:16px;}
 .theme-resi-orange .panel-heading,.theme-resi-orange .table-panel-head{padding-top:18px;}
 .theme-resi-orange .dv-heading-actions{margin-left:0;width:100%;}
 .theme-resi-orange .dv-heading-actions .dv-create-btn{width:100%;}
 .dv-modal-overlay{padding:10px;align-items:center;}
 .dv-action-dialog{border-radius:14px;max-height:94dvh;}
 .dv-modal-header,.dv-modal-body,.dv-modal-foot{padding-left:18px;padding-right:18px;}
 .dv-modal-body .dv-form-in-modal.ops-inline,.dv-modal-body .dv-form-in-modal.ops-grid,.dv-modal-body .dv-form-in-modal .pro-grid{grid-template-columns:1fr;}
 .dv-modal-foot span{display:none;}
 .dv-modal-foot{justify-content:flex-end;}
}
@media(prefers-reduced-motion:reduce){.dv-modal-overlay{backdrop-filter:none;}}
