/* V56.16 — secure file previews and flatter patient billing workspace. */
.drt-file-preview-tile{display:flex;width:86px;min-width:86px;height:72px;align-items:center;justify-content:center;overflow:hidden;border:1px solid #dbe5ee;border-radius:12px;background:#f8fafc;color:#334155;text-decoration:none;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.drt-file-preview-tile:hover{border-color:#7dd3fc;background:#f0f9ff;transform:translateY(-1px)}
.drt-file-preview-tile img{width:100%;height:100%;object-fit:cover}
.drt-file-preview-tile.is-pdf,.drt-file-preview-tile.is-file{flex-direction:column;gap:3px;padding:7px;text-align:center}
.drt-file-preview-tile__mark{display:grid;min-width:40px;height:28px;place-items:center;border-radius:8px;background:#e0f2fe;color:#075985;font-size:10px;font-weight:950;letter-spacing:.04em}
.drt-file-preview-tile.is-pdf .drt-file-preview-tile__mark{background:#fee2e2;color:#991b1b}
.drt-file-preview-tile small{color:#64748b;font-size:9px;font-weight:800;line-height:1.2}
.drt-document-item-v56{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important}
.drt-document-item-v56 .drt-document-main{min-width:0}
.drt-file-record-v56{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
.drt-selected-file-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:9px}
.drt-selected-file-preview__item{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:9px;min-width:0;padding:7px;border:1px solid #dbe5ee;border-radius:12px;background:#f8fafc}
.drt-selected-file-preview img,.drt-selected-file-preview iframe{width:66px;height:54px;border:0;border-radius:8px;background:#fff;object-fit:cover}
.drt-selected-file-preview__mark{display:grid;width:66px;height:54px;place-items:center;border-radius:8px;background:#e2e8f0;color:#475569;font-size:10px;font-weight:950}
.drt-selected-file-preview__text{min-width:0}.drt-selected-file-preview__text strong,.drt-selected-file-preview__text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drt-selected-file-preview__text strong{color:#334155;font-size:11px}.drt-selected-file-preview__text small{margin-top:3px;color:#64748b;font-size:9px}

.drt-billing-card-v56{box-shadow:none!important}
.drt-billing-card-v56 .drt-billing-header{border:0;border-bottom:1px solid #e2e8f0;border-radius:0;background:transparent;padding:0 0 16px}
.drt-billing-card-v56 .drt-v50-capsule-note{border:0;border-inline-start:3px solid #38bdf8;border-radius:8px;background:#f0f9ff;padding:10px 12px}
.drt-billing-card-v56 .drt-v50-billing-capsule-list{gap:10px}
.drt-billing-card-v56 .drt-v50-billing-capsule{border-radius:14px;box-shadow:none}
.drt-billing-card-v56 .drt-v50-billing-capsule>summary{grid-template-columns:minmax(210px,1.1fr) minmax(170px,.8fr) minmax(260px,1.1fr);padding:12px 14px;background:#fff}
.drt-billing-card-v56 .drt-v50-billing-capsule[open]>summary{background:#f8fbfd}
.drt-billing-card-v56 .drt-v50-billing-capsule__body{padding:0 14px 14px;background:#fff}
.drt-billing-card-v56 .drt-v50-plan-flow{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:11px 0;border-bottom:1px solid #e8eef4;background:transparent}
.drt-billing-card-v56 .drt-v50-plan-flow>div{display:flex;align-items:center;gap:6px;padding:5px 8px;border:0;border-radius:999px;background:#f1f5f9}
.drt-billing-card-v56 .drt-v50-plan-flow>div>span{width:20px;height:20px;font-size:10px}
.drt-billing-card-v56 .drt-v50-plan-flow small,.drt-billing-card-v56 .drt-v50-plan-flow strong{display:inline;margin:0;font-size:10px}
.drt-billing-card-v56 .drt-v50-plan-flow>i{display:none}
.drt-billing-card-v56 .drt-v50-capsule-related-summary{margin-top:0;padding:9px 0;border:0;border-bottom:1px solid #e8eef4;border-radius:0;background:transparent}
.drt-billing-card-v56 .drt-v50-plan-details{margin:10px 0;border-radius:10px}
.drt-billing-card-v56 .drt-v50-billing-capsule__body>.drt-billing-invoice{margin-top:10px;padding:12px 0 0;border:0!important;border-top:1px solid #cbd5e1!important;border-radius:0;background:#fff;box-shadow:none!important;opacity:1}
.drt-billing-card-v56 .drt-billing-invoice-head{gap:14px}
.drt-billing-card-v56 .drt-billing-mini-grid{min-width:0}
.drt-billing-card-v56 .drt-billing-mini{border:0;border-inline-start:2px solid #cbd5e1;border-radius:0;background:transparent!important;padding:4px 9px}
.drt-billing-card-v56 .drt-v41-invoice-lines,.drt-billing-card-v56 .drt-billing-payments{padding-top:11px;border-top:1px solid #eef2f7}
.drt-billing-card-v56 .drt-billing-breakdown-grid{padding:9px 0;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7}
.drt-billing-card-v56 .drt-v44-invoice-insurance{border-radius:10px;box-shadow:none}
.drt-billing-card-v56 .drt-billing-action-panel{border-style:solid;border-radius:10px;background:#fafcfd}
.drt-billing-card-v56 .drt-v50-patient-ledger-grid>details{border-radius:11px}

@media(max-width:760px){.drt-file-record-v56{grid-template-columns:auto minmax(0,1fr)}.drt-file-record-v56>.drt-document-actions,.drt-file-record-v56>.drt-file-record-v56__actions{grid-column:1/-1}.drt-document-item-v56{grid-template-columns:auto minmax(0,1fr)!important}.drt-document-item-v56 .drt-document-actions{grid-column:1/-1}.drt-billing-card-v56 .drt-v50-billing-capsule>summary{grid-template-columns:1fr}.drt-billing-card-v56 .drt-v50-plan-flow{display:grid;grid-template-columns:1fr 1fr}.drt-billing-card-v56 .drt-v50-plan-flow>div{border-radius:9px}.drt-selected-file-preview{grid-template-columns:1fr}}
