/* Clear, consistent read-only cards without changing editing or printing layouts. */
@media screen{
  .ov-modal:has(.ov-record-view){max-width:900px;border-radius:22px;background:#f8fafc;box-shadow:0 28px 90px #10244138}
  .ov-modal.wide:has(.ov-record-view){max-width:1100px}
  .ov-modal:has(.ov-record-view) .ov-modal-header{padding:22px 28px;background:#fff}
  .ov-modal:has(.ov-record-view) .ov-modal-header h2{font-size:20px;letter-spacing:-.35px}
  .ov-modal:has(.ov-record-view) .ov-modal-header p{margin-top:5px}
  .ov-modal:has(.ov-record-view) .ov-modal-body{padding:26px 28px 0}
  .ov-record-view{min-width:0;color:var(--ov-text)}
  .ov-record-hero{display:flex;align-items:center;gap:20px;margin:0 0 24px;padding:24px;border:1px solid #d9e5f5;border-radius:16px;background:linear-gradient(115deg,var(--ov-soft,#edf4ff),#fff 85%);min-width:0}
  .ov-record-avatar{display:grid;place-items:center;flex:0 0 64px;min-width:64px;width:64px;height:64px;border-radius:18px;background:#fff;border:1px solid #dbe7f7;color:var(--ov-deep);font-size:23px;font-weight:700;box-shadow:0 4px 12px #14376508}
  .ov-record-avatar .ov-icon{width:30px;height:30px;stroke-width:1.6}
  .ov-record-identity{min-width:0;flex:1}
  .ov-record-eyebrow{display:block;margin:0 0 7px;color:var(--ov-deep);font-size:10px;font-weight:700;letter-spacing:1.25px;text-transform:uppercase}
  .ov-record-view .ov-record-title{margin:0;color:var(--ov-text);font-size:23px;font-weight:700;line-height:1.35;letter-spacing:-.45px;overflow-wrap:anywhere}
  .ov-record-subtitle{margin:8px 0 0;font-size:13px;line-height:1.6;color:var(--ov-muted);white-space:pre-line;overflow-wrap:anywhere}
  .ov-record-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
  .ov-record-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:-6px 0 26px}
  .ov-record-metric{display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-width:0;min-height:91px;padding:17px 20px;border:1px solid var(--ov-line);border-radius:13px;background:#fff}
  .ov-record-metric>span{color:var(--ov-muted);font-size:12px;line-height:1.5}
  .ov-record-metric>strong{color:var(--ov-text);font-size:23px;line-height:1.25;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  .ov-record-metrics--single>.ov-record-metric{flex-direction:row;align-items:center;min-height:64px;gap:18px}
  .ov-record-metric--success{border-color:#cee7db}.ov-record-metric--success>strong{color:var(--ov-success)}
  .ov-record-metric--danger{border-color:#ebcfd3}.ov-record-metric--danger>strong{color:#aa3040}
  .ov-record-metric--warning{border-color:#eaddc1}.ov-record-metric--warning>strong{color:#856019}
  .ov-record-metric--blue>strong{color:var(--ov-deep)}
  .ov-record-section{margin:0 0 24px;min-width:0}
  .ov-record-view .ov-record-section-title,.ov-record-view>h3{display:flex;align-items:center;gap:9px;margin:0 0 13px;font-size:14px;line-height:1.5;font-weight:700;letter-spacing:0;color:var(--ov-text)}
  .ov-record-section-title>.ov-icon{width:18px;height:18px;color:var(--ov-deep);stroke-width:1.7}
  .ov-record-empty{margin:0;padding:19px 20px;border:1px dashed #d7dfe9;border-radius:12px;background:#fff;color:var(--ov-muted);font-size:13px;line-height:1.65}
  .ov-record-view .ov-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 24px}
  .ov-record-section>.ov-detail-grid{margin-bottom:0}
  .ov-record-view .ov-detail-grid>div{min-width:0;padding:16px 18px;border:1px solid var(--ov-line);border-radius:12px;background:#fff}
  .ov-record-view .ov-detail-grid dt{margin:0 0 7px;font-size:12px;line-height:1.5;color:var(--ov-muted);font-weight:400}
  .ov-record-view .ov-detail-grid dd{margin:0;color:var(--ov-text);font-size:14px;font-weight:500;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}
  .ov-record-field--wide{grid-column:1/-1}
  .ov-record-view .ov-detail-grid .ov-record-missing{color:#7b8796;font-weight:400;font-style:italic}
  .ov-record-audit{margin:4px 0 24px;border:1px solid var(--ov-line);border-radius:13px;background:#fff}
  .ov-record-audit>summary{display:flex;align-items:center;gap:9px;padding:16px 18px;cursor:pointer;color:var(--ov-muted);font-size:13px;font-weight:500;list-style:none}
  .ov-record-audit>summary::-webkit-details-marker{display:none}
  .ov-record-audit>summary>.ov-icon{width:17px;height:17px}
  .ov-record-audit>summary::after{content:'⌄';margin-left:auto;font-size:18px;line-height:1;transition:transform .15s}
  .ov-record-audit[open]>summary::after{transform:rotate(180deg)}
  .ov-record-audit-hint{font-size:11px;font-weight:400;color:var(--ov-muted)}
  .ov-record-audit>.ov-record-section{padding:0 18px 18px;margin:0}
  .ov-record-audit .ov-record-section-title{display:none}
  .ov-record-audit .ov-detail-grid>div{background:#f8fafc;border-color:#e9edf3}
  .ov-record-view :is(.ov-form-actions,.ov-form-footer){position:sticky;bottom:0;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin:26px -28px 0;padding:18px 28px;border-top:1px solid var(--ov-line);background:#fff;border-radius:0 0 22px 22px}
  .ov-record-view>.ov-table-wrap{margin:20px 0 24px;border:1px solid var(--ov-line);border-radius:12px;background:#fff}
  .ov-record-view>.ov-table-wrap .ov-table{font-size:13px}
  .ov-record-view .ov-table th{background:#f2f6fb}
  .ov-record-view .ov-table td small{display:block;margin-top:4px;font-size:12px;color:var(--ov-muted)}
  .ov-record-view>.ov-totals{max-width:390px;margin:22px 0 24px auto;padding:20px 22px;border:1px solid var(--ov-line);border-radius:13px;background:#fff;gap:12px 22px;font-size:14px}
  .ov-record-view>.ov-totals dt,.ov-record-view>.ov-totals dd{margin:0;overflow-wrap:anywhere}
  .ov-record-view>.ov-totals dd{text-align:right;font-variant-numeric:tabular-nums}
  .ov-record-view>.ov-financial-grid{gap:14px;margin:0 0 24px}
  .ov-record-view>.ov-financial-grid>div{padding:18px 20px;border:1px solid var(--ov-line);background:#fff;border-radius:13px}
  .ov-record-view>.ov-notice{margin-bottom:22px}
  .ov-record-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:22px 0}
  .ov-record-panel{margin:20px 0 24px;border:1px solid var(--ov-line);border-radius:13px;background:#fff;overflow:hidden}
  .ov-record-panel>h3{padding:18px 20px;margin:0;border-bottom:1px solid var(--ov-line);font-size:14px}
  .ov-record-panel>.ov-panel-body{padding:20px}
  .ov-record-view .ov-product-photo-view:empty{display:none}
  .ov-record-view .ov-product-photo-view:not(:empty){float:right;position:relative;z-index:1;margin:20px 22px 20px 18px}
  .ov-record-view .ov-product-photo-thumb{width:76px;height:76px;object-fit:contain;border:1px solid #dbe7f7;border-radius:14px;background:#fff}
  .ov-record-view .ov-product-view-actions{display:flex;align-items:center}
  @media(max-width:650px){
    .ov-modal:has(.ov-record-view){width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:18px}
    .ov-modal:has(.ov-record-view) .ov-modal-header{padding:18px 20px}
    .ov-modal:has(.ov-record-view) .ov-modal-body{padding:20px 18px 0}
    .ov-record-hero{align-items:flex-start;gap:14px;padding:19px 17px;margin-bottom:22px}
    .ov-record-avatar{flex-basis:48px;width:48px;min-width:48px;height:48px;border-radius:14px;font-size:18px}
    .ov-record-avatar .ov-icon{width:25px;height:25px}
    .ov-record-view .ov-record-title{font-size:19px}
    .ov-record-eyebrow{font-size:9px;letter-spacing:1px}
    .ov-record-metrics{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px}
    .ov-record-metric{min-height:84px;padding:14px 15px}
    .ov-record-metric>strong{font-size:21px}
    .ov-record-view .ov-detail-grid{gap:10px}
    .ov-record-view .ov-detail-grid>div{padding:14px 15px}
    .ov-record-view :is(.ov-form-actions,.ov-form-footer){margin:22px -18px 0;padding:16px 18px;gap:10px;border-radius:0 0 18px 18px}
    .ov-record-audit-hint{display:none}
    .ov-record-view>.ov-totals{max-width:none}
    .ov-record-view .ov-product-photo-view:not(:empty){margin:16px 14px 16px 10px}
    .ov-record-view .ov-product-photo-thumb{width:54px;height:54px}
  }
  @media(max-width:480px){.ov-record-view .ov-detail-grid{grid-template-columns:1fr}.ov-record-view .ov-record-field--wide{grid-column:auto}.ov-record-view .ov-record-title{font-size:18px}}
}
