.hidden{display:none!important}.login-card{max-width:430px;margin:70px auto;padding:30px;background:white;border:1px solid #d8e1e8;border-radius:12px}.login-card label{display:block;margin:16px 0}.login-card input{display:block;width:100%;margin-top:7px}.workarea{grid-template-columns:minmax(0,1.3fr) minmax(430px,1fr)}.pagination{display:flex;gap:16px;align-items:center;padding:14px}.editor{min-width:0}.editor details{border-top:1px solid #dce3e8;padding:14px 0}.editor summary{font-weight:650;cursor:pointer;margin-bottom:10px}.conflict{background:#fff4de;border:1px solid #e7c87e;padding:14px;border-radius:8px}.conflict pre,dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:50vh;overflow:auto}dialog{width:min(900px,90vw);border:1px solid #bdccd8;border-radius:12px}dialog::backdrop{background:#16324766}.fact button,.history-item button{display:block;margin-top:8px}.tools>span{font-size:14px;color:#d6e6ec}#room-control{margin-bottom:15px}#migration-panel pre{white-space:pre-wrap;max-height:360px;overflow:auto}@media(max-width:1050px){.workarea{grid-template-columns:1fr}.editor{position:static;max-height:none}.login-card{margin:30px 16px}} 

#business-current,#business-identity,#business-preview{white-space:pre-wrap;overflow-wrap:anywhere}#business-controls{background:#f3f7fa;padding:14px;border-radius:8px}#business-controls label{display:block;margin:10px 0}#business-controls textarea,#business-controls select{width:100%}#business-controls button{margin:5px 4px 5px 0}

#batch-preview,#batch-history{white-space:pre-wrap;overflow-wrap:anywhere;max-height:460px;overflow:auto}#batch-panel label{display:block;margin:10px 0}#batch-panel textarea{width:100%}#batch-panel .fact{overflow-wrap:anywhere}#batch-sources input,#batch-dates input{margin-right:8px}

/* Keep the editing identity visible while browsing long source/history records. */
.editor-identity{position:sticky;top:-21px;z-index:2;background:#fff;padding:12px 0 6px;border-bottom:1px solid #dce5eb}
#selection-visibility{color:#855b12;background:#fff4de;border-radius:5px;padding:6px 8px;font-size:12px;margin:6px 0}
.followup-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;line-clamp:6;overflow:hidden;max-height:10em;min-width:180px}
#rows td:nth-child(2){min-width:185px}#rows td:nth-child(4){min-width:205px}#rows td:last-child button{display:block;margin:0 0 5px;white-space:nowrap}

/* Filters wrap as controls instead of compressing buttons to one character. */
.toolbar{flex-wrap:wrap;align-items:stretch}
.toolbar>input{flex:1 1 260px;min-width:200px}
.toolbar>select{width:auto;flex:0 1 auto;min-width:150px;max-width:260px}
.toolbar>button{flex:0 0 auto;white-space:nowrap}
@media(max-width:480px){.toolbar>input,.toolbar>select{min-width:0;max-width:none;flex:1 1 100%;width:100%}}

.workarea.no-selection{grid-template-columns:minmax(0,1fr)}
.workarea.no-selection>.editor{display:none}
#back-list{font-size:12px;float:right;margin:0 0 5px 8px;padding:5px 8px}
.editor-identity::after{content:"";display:block;clear:both}

.list-identity{display:block;margin-top:7px;color:#536875;font-size:11px;overflow-wrap:anywhere}
.followup-help{color:#536875;background:#f3f7fa;padding:9px 11px;border-radius:6px;font-size:12px;line-height:1.6}
#save-return{margin:8px 0}

#rows td:nth-child(3){min-width:115px}#rows td:nth-child(5){min-width:125px}#rows td:nth-child(6){min-width:175px}
#rows .followup-preview{min-width:180px;-webkit-line-clamp:9;line-clamp:9;max-height:15em}
@media(min-width:1101px){.brand small{font-size:12px}}
tr.return-target{background:#e7f4f4}tr.return-target td:first-child{box-shadow:inset 3px 0 #16858e}

#record-info{white-space:pre-line}.list-help{padding:0 18px 12px;color:#637684;font-size:12px}.list-help summary{cursor:pointer}.list-help .caption{padding:8px 0 0}
