.historical-card-dialog{box-sizing:border-box;width:min(960px,95vw);max-width:95vw;max-height:92vh;overflow-y:auto;overflow-x:hidden;border:1px solid #dbe5ef;border-radius:16px;padding:24px;color:#14334c}
.historical-card-dialog::backdrop{background:#112e4b80}
.historical-card-dialog *{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
.historical-card-dialog .hcc-head,.historical-card-dialog .hcc-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.historical-card-dialog h2{font-size:1.35rem;margin:0}
.historical-card-dialog p{line-height:1.55}
.historical-card-dialog label{display:flex;flex-direction:column;gap:7px;margin:12px 0}
.historical-card-dialog input,.historical-card-dialog textarea{width:100%;padding:10px;border:1px solid #c6d6e4;border-radius:8px;font:inherit}
.historical-card-dialog textarea{min-height:72px;resize:vertical}
.historical-card-dialog .hcc-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.historical-card-dialog .hcc-receipt{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) auto;gap:12px;align-items:center;border-bottom:1px solid #dbe5ef}
.historical-card-dialog table{table-layout:fixed;width:100%;border-collapse:collapse;margin:12px 0}
.historical-card-dialog th,.historical-card-dialog td{white-space:normal;padding:10px;text-align:left;vertical-align:top;border-bottom:1px solid #dbe5ef}
.historical-card-dialog th{background:#eef5fa}
.historical-card-dialog .hcc-proof,.historical-card-dialog .hcc-source{background:#f4f8fc;border:1px solid #cfdfed;border-radius:12px;padding:16px;margin:14px 0}
.historical-card-dialog .hcc-confirm{display:flex;flex-direction:row;align-items:flex-start}
.historical-card-dialog .hcc-confirm input{width:auto;flex:none;margin-top:4px}
.historical-card-dialog [role=status]{padding:10px 0}
.historical-card-dialog .hcc-error{color:#a22626}
.historical-card-dialog small{display:block;color:#536b7e;line-height:1.5;margin:6px 0}
.historical-card-dialog [hidden]{display:none!important}
@media(max-width:650px){
 .historical-card-dialog{padding:16px}
 .historical-card-dialog .hcc-grid,.historical-card-dialog .hcc-receipt{grid-template-columns:1fr}
 .historical-card-dialog table thead{display:none}
 .historical-card-dialog table tr{display:block;padding:8px 0;border-bottom:1px solid #cfdfed}
 .historical-card-dialog table td{display:grid;grid-template-columns:40% 1fr;gap:8px;border:0;padding:6px}
 .historical-card-dialog table td:before{content:attr(data-label);font-weight:600}
}
