  /* ── Invoice number mono ── */
      .mono { font-family: 'Courier New', monospace; font-size: 12px; color: #6b7280; }

      /* ── Modals ── */
      .modal-overlay {
        display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
        z-index: 1000; align-items: center; justify-content: center;
      }
      .modal-overlay.open { display: flex; }
      .modal {
        background: #fff; border-radius: 12px; width: 580px; max-width: 95vw;
        max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
      }
      .modal-header {
        padding: 24px 28px 16px; border-bottom: 1px solid #f3f4f6;
        display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
      }
      .modal-header h2 { font-size: 18px; font-weight: 600; color: #111827; }
      .modal-header p { font-size: 13px; color: #9ca3af; margin-top: 2px; }
      .modal-close {
        width: 32px; height: 32px; border-radius: 6px; border: 1px solid #e5e5e5;
        background: #fff; cursor: pointer; display: flex; align-items: center;
        justify-content: center; font-size: 18px; color: #6b7280; flex-shrink: 0;
        transition: background 0.15s; line-height: 1;
      }
      .modal-close:hover { background: #f9fafb; }
      .modal-body { padding: 20px 28px 28px; }
      .form-group-nv { margin-bottom: 14px; }
      .form-group-nv label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 5px; }
      .form-group-nv input, .form-group-nv select {
        width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 6px;
        font-size: 14px; color: #374151; font-family: inherit; background: #fff;
        outline: none; transition: border-color 0.15s;
      }
      .form-group-nv input:focus, .form-group-nv select:focus { border-color: var(--green); }
      .form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
      .cancel-btn {
        padding: 9px 20px; border: 1px solid #d1d5db; border-radius: 6px;
        background: #fff; color: #374151; font-size: 14px; font-family: inherit; cursor: pointer;
      }
      .cancel-btn:hover { background: #f9fafb; }
      .save-btn {
        padding: 9px 20px; border: none; border-radius: 6px;
        background: var(--green); color: #fff; font-size: 14px; font-family: inherit;
        cursor: pointer; font-weight: 500;
      }
      .save-btn:hover { background: var(--green-dark); }
      .view-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
      .view-field label { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 3px; }
      .view-field span { font-size: 14px; color: #111827; font-weight: 500; }
      .view-separator { border: none; border-top: 1px solid #f3f4f6; margin: 18px 0; }