/* TONTON v9: document templates and multiple property attachments. No logo changes. */
.t9-section{margin-top:24px;scroll-margin-top:150px}
.t9-template{margin:20px 0;scroll-margin-top:150px}
.t9-template summary{cursor:pointer;color:var(--brand-navy);line-height:1.8}
.t9-template-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.t9-template-item{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:10px;font-size:14px;margin:0;background:#fbfcfd;min-width:0}
.t9-template-item input{width:18px;height:18px;flex:0 0 18px;margin:3px 0;accent-color:var(--accent)}
.t9-template-item span{min-width:0;overflow-wrap:anywhere}
.t9-template-item small{display:block;font-weight:400;line-height:1.7;color:var(--muted);margin-top:4px}
.t9-template-item:has(input:disabled){background:#f4f5f7}
.t9-guidance-select{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.t9-guidance-select label{flex:1;min-width:160px}
.t9-guidance-select select{max-width:100%;min-width:0!important;display:block;margin-top:6px}
.t9-guidance-select button{margin-bottom:6px}
.t9-subheading{color:var(--muted);font-size:13px;margin:24px 0 3px}
.t8-quantity{white-space:normal!important;text-align:right;max-width:50%;font-size:15px!important}
.t9-doc{padding:22px 0;border-top:1px solid var(--line)}
.t9-doc-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.t9-doc-heading>div{min-width:0;overflow-wrap:anywhere}
.t9-doc-heading .badge{flex:0 0 auto}
.t9-doc-heading strong{font-size:16px}
.t9-conditional{background:#fafbfc}
.t9-file-list{margin:14px 0}
.t9-file{display:flex;align-items:center;gap:12px;padding:8px 10px;background:#f1f6f9;border-radius:8px;margin-bottom:6px;min-width:0}
.t9-file>.file-name{min-width:0;flex:1;overflow-wrap:anywhere}
.t9-file>small,.t9-file>form{flex:0 0 auto}
.t9-file button{font-size:12px;padding:7px 10px}
.t9-doc-form{display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(100px,1fr) minmax(90px,.7fr) minmax(130px,1fr);gap:12px;align-items:end}
.t9-doc-form label{font-size:12px;margin:0;min-width:0}
.t9-doc-form input,.t9-doc-form select{display:block;margin-top:6px;min-width:0;font-size:14px}
.t9-save{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.t9-span{grid-column:1/-1;margin-bottom:0}
.t9-property{margin:14px 0}
.t9-property>summary{cursor:pointer;display:flex;gap:12px;justify-content:space-between;align-items:center;min-width:0;list-style:revert;line-height:1.6}
.t9-property>summary strong{overflow-wrap:anywhere;min-width:0}
.t9-property>summary>.badge{white-space:nowrap}
.t9-property-form{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:18px 0;padding:16px;background:#f4f8fa;border-radius:10px}
.t9-property-form label{min-width:0;font-size:13px}
.t9-private{font-size:12px;color:var(--muted);margin:8px 0}
.t9-lease{margin:14px 0;padding:14px;background:#f4f8fa;border-radius:10px}
.t9-lease label{min-width:0;flex:1;max-width:400px}
.t9-property-delete{text-align:right;margin-top:18px}
.t9-delete-all{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
#export ul{padding-left:22px;font-size:13px;line-height:1.9;overflow-wrap:anywhere}
@media(max-width:1000px){.t9-doc-form{grid-template-columns:1fr 1fr}.t9-upload{grid-column:1/-1}.t9-doc-form .t9-save{grid-column:1/-1}}
@media(max-width:620px){.t9-template-items,.t9-property-form{grid-template-columns:1fr}.t9-guidance-select{display:block}.t9-guidance-select label{display:block}.t9-guidance-select button{width:100%}.t9-doc-heading{flex-wrap:wrap;gap:4px}.t9-file{flex-wrap:wrap}.t9-file>.file-name{flex-basis:100%}.t9-file>form{margin-left:auto}.t9-property{padding:16px}.t9-doc-heading strong{font-size:15px}}
