/* Quote / invoice editor: tap-to-add totals and clearer editable fields. */
#modal .document-editor-totals{margin-top:20px;padding:16px;border:1px solid #dde5e7;border-radius:18px;background:#f4f8f8;display:grid;gap:10px}
#modal .totals-row{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:40px;font-size:16px;color:#113440}
#modal .totals-row[hidden],#modal .totals-chip[hidden]{display:none}
#modal .totals-row strong{font-variant-numeric:tabular-nums}
#modal .totals-edit{display:flex;align-items:center;gap:8px}
#modal .totals-edit strong{min-width:72px;text-align:right}
#modal .totals-field{display:inline-flex;align-items:center;gap:6px;margin:0;padding:0 14px;min-height:46px;background:#fff;border:1.5px solid #9db8b8;border-radius:14px;font-weight:700;color:#025259;flex-direction:row}
#modal .totals-field:focus-within{border-color:#025259;box-shadow:0 0 0 3px #02525933}
#modal .totals-field input{width:88px;min-height:42px;padding:0;border:0;outline:0;background:transparent;font-size:17px;font-weight:700;text-align:right;color:#113440}
#modal .totals-remove{width:44px;height:44px;border:0;border-radius:50%;background:#e6eded;color:#4a636b;font-size:22px;line-height:1}
#modal .totals-add{display:flex;flex-wrap:wrap;gap:8px}
#modal .totals-chip{min-height:46px;padding:0 18px;border:1.5px dashed #025259;border-radius:999px;background:#fff;color:#025259;font-weight:750;font-size:15px}
#modal .totals-note{margin:0;font-size:13px}
#modal .totals-total{margin-top:2px;padding-top:12px;border-top:1px solid #cddbdb;font-size:19px;font-weight:700}
#modal .totals-total strong{font-size:28px;color:#025259}

/* Editable fields look editable: filled background, visible edge, clear focus, 16px text (no iOS zoom). */
#modal .field>label{font-size:14px;font-weight:650;color:#3d5860}
#modal .field input:not([type=checkbox]):not([type=radio]),#modal .field textarea,#modal .field select{min-height:48px;padding:12px 14px;background:#fafcfc;border:1.5px solid #c7d6d8;border-radius:14px;font-size:16px;color:#113440;transition:border-color .15s,box-shadow .15s,background .15s}
#modal .field textarea{min-height:96px;line-height:1.45}
#modal .field input:not([type=checkbox]):not([type=radio]):focus,#modal .field textarea:focus,#modal .field select:focus{outline:0;background:#fff;border-color:#025259;box-shadow:0 0 0 3px #02525933}
#modal .field input::placeholder,#modal .field textarea::placeholder{color:#8aa0a6}
#modal .totals-field input[type=number]::-webkit-inner-spin-button,#modal .totals-field input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#modal .totals-field input[type=number]{-moz-appearance:textfield;appearance:textfield}
