.attachments-view{--att-accent:#0f766e}.attachments-view[data-attachment-kind=handover]{--att-accent:#4f46a5}.attachments-view[data-attachment-kind=guarantee_refund]{--att-accent:#b45309}.attachments-view .panel{padding:24px;margin:16px 0;border-top:3px solid var(--att-accent)}.att-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}.att-tabs .button{white-space:normal;padding:14px 10px;min-height:52px}.att-tabs .active{background:var(--att-accent);color:white}.att-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.att-grid>*{min-width:0}.att-wide{grid-column:1/-1}.att-grid input,.att-grid textarea,.att-grid select,.att-item input,.att-item textarea,.att-item select{width:100%;max-width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--line,#d1d5db);border-radius:8px;font:inherit;background:var(--panel,#fff);color:inherit}.att-grid label>span,.att-item label>span{display:block;margin-bottom:6px}.att-check{display:flex;align-items:center;gap:10px;padding:12px 0}.att-check input{width:18px;height:18px}.att-hint{color:var(--muted,#64748b);line-height:1.7}.att-guarantee{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.att-guarantee{padding:14px 0;border-bottom:1px solid var(--line,#ddd)}.att-guarantee small,.attachments-view td small{display:block;margin-top:5px}.att-total{padding:18px;text-align:right;font-size:18px}.att-savebar{position:sticky;bottom:0;background:var(--panel,#fff);padding:16px;display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line,#ddd);z-index:2}.att-empty{padding:50px!important;text-align:center}.attachments-view fieldset{padding:0;border:0;min-width:0}.att-source-actions{display:flex;flex-wrap:wrap;align-items:end;gap:8px}.attachments-view .table-wrap td{overflow-wrap:anywhere}.att-register h3{margin-top:0}html[data-theme=dark] .att-item,html[data-theme=dark] .att-savebar{background:#17202e}html[data-theme=dark] .att-grid input,html[data-theme=dark] .att-grid textarea,html[data-theme=dark] .att-grid select{background:#111827;color:#e2e8f0}@media(max-width:700px){.att-grid{grid-template-columns:1fr}.att-tabs{grid-template-columns:1fr}.attachments-view .panel{padding:16px}.att-guarantee{align-items:start;flex-direction:column}.attachments-view .toolbar{flex-wrap:wrap}.attachments-view .search{width:100%}}
.attachments-view fieldset:disabled input,.attachments-view fieldset:disabled textarea,.attachments-view fieldset:disabled select{opacity:1;color:var(--ink,#334155);-webkit-text-fill-color:var(--ink,#334155)}

/* Same row editor structure as quotation: name/details together, numeric columns alongside. */
.att-items-table{margin:18px 0 12px;overflow:visible}
.att-items-table table{width:100%;min-width:0;table-layout:fixed}
.att-items-table th{background:var(--att-accent);white-space:normal}
.att-items-table td{padding:13px 7px;vertical-align:top;border-bottom:1px solid var(--line)}
.att-items-table .item-name{min-width:0}
.att-items-table input,.att-items-table select,.att-items-table textarea,.att-items-table .number-input,.att-items-table .unit-input{width:100%;min-width:0;box-sizing:border-box;padding:8px 7px;font:inherit;font-size:12px}
.att-items-table textarea{resize:vertical;min-height:58px;margin-top:6px;line-height:1.6}
.att-items-table [data-item-field=amount],.att-items-table [data-item-field=quantity]{text-align:right}
.att-items-table [data-item-field=note]{margin-top:0}
.att-items-table .att-item-index{padding-top:23px;text-align:center;color:var(--muted)}
.att-items-table .att-item-remove{text-align:center;padding-left:0;padding-right:0}
.att-items-table .remove-item{padding:8px;min-width:28px}
html[data-theme=dark] .att-items-table input,html[data-theme=dark] .att-items-table select,html[data-theme=dark] .att-items-table textarea{background:var(--surface);color:var(--ink);border-color:var(--line)}
@media(max-width:850px){
 .att-items-table table,.att-items-table tbody{display:block;width:100%}
 .att-items-table colgroup,.att-items-table thead{display:none}
 .att-items-table tr.att-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff)}
 .att-items-table td{display:block;min-width:0;padding:0;border:0;text-align:left}
 .att-items-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:6px}
 .att-items-table td.item-name,.att-items-table td:nth-child(8){grid-column:1/-1}
 .att-items-table td.att-item-index{grid-column:1;padding:0;text-align:left;grid-row:1}
 .att-items-table td.att-item-remove{grid-column:2;grid-row:1;text-align:right;align-self:center}
 .att-items-table .att-item-remove::before{display:none}
}

@media(max-width:850px){.att-items-table td.att-item-index{grid-row:2;grid-column:1/-1}.att-items-table td.row-order{grid-row:1;grid-column:1}.att-items-table td.row-delete{grid-row:1;grid-column:2}.att-items-table td:nth-child(8){grid-column:1/-1}}
