
    /* ================================================
       DOCUMENTOS PAGE
       ================================================ */
    .doc-section {
      padding: 120px 0 60px;
      min-height: 100vh;
    }

    .doc-page-header {
      margin-bottom: 40px;
    }

    .doc-page-header h1 {
      font-size: 28px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .doc-page-header h1 i {
      color: var(--primary);
      font-size: 24px;
    }

    .doc-page-header p {
      color: var(--text-secondary);
      font-size: 15px;
      max-width: 600px;
    }

    /* Status bar */
    .doc-status-bar {
      display: flex;
      gap: 12px;
      margin-bottom: 32px;
      flex-wrap: wrap;
    }

    .doc-status-chip {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 600;
      background: var(--bg-secondary);
      color: var(--text-secondary);
      border: 1px solid var(--border);
    }

    .doc-status-chip.complete {
      background: rgba(34, 197, 94, 0.08);
      color: var(--primary);
      border-color: rgba(34, 197, 94, 0.2);
    }

    .doc-status-chip.pending {
      background: rgba(245, 158, 11, 0.08);
      color: #d97706;
      border-color: rgba(245, 158, 11, 0.2);
    }

    .doc-status-chip i {
      font-size: 11px;
    }

    /* Cards grid */
    .doc-cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 24px;
      margin-bottom: 40px;
    }

    /* Document card */
    .doc-card {
      background: var(--bg-card);
      border: 2px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: all 0.3s;
    }

    .doc-card:hover {
      border-color: rgba(34, 197, 94, 0.3);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    }

    .doc-card.uploaded {
      border-color: rgba(34, 197, 94, 0.3);
    }

    .doc-card.rejected {
      border-color: rgba(239, 68, 68, 0.3);
    }

    .doc-card-header {
      padding: 24px 24px 0;
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }

    .doc-card-icon {
      width: 52px;
      height: 52px;
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }

    .doc-card[data-tipo="PROCURACAO"] .doc-card-icon {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
      color: #6366f1;
    }

    .doc-card[data-tipo="CNH"] .doc-card-icon,
    .doc-card[data-tipo="RG"] .doc-card-icon,
    .doc-card[data-tipo="IDENTIFICACAO"] .doc-card-icon {
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
      color: #22c55e;
    }

    .doc-card[data-tipo="CRLV"] .doc-card-icon {
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
      color: #f59e0b;
    }

    .doc-card-title-area {
      flex: 1;
    }

    .doc-card-title {
      font-size: 17px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 4px;
    }

    .doc-card-subtitle {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.4;
    }

    .doc-card-body {
      padding: 20px 24px 24px;
    }

    /* Upload dropzone */
    .doc-dropzone {
      border: 2px dashed var(--border);
      border-radius: var(--radius);
      padding: 32px 20px;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      background: var(--bg-secondary);
      position: relative;
    }

    .doc-dropzone:hover,
    .doc-dropzone.dragover {
      border-color: var(--primary);
      background: rgba(34, 197, 94, 0.04);
    }

    .doc-dropzone input[type="file"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
    }

    .doc-dropzone-icon {
      font-size: 28px;
      color: var(--text-muted);
      margin-bottom: 10px;
    }

    .doc-dropzone-text {
      font-size: 14px;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .doc-dropzone-text strong {
      color: var(--primary);
    }

    .doc-dropzone-hint {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 6px;
    }

    /* Uploaded file info */
    .doc-file-info {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 14px 16px;
      background: var(--bg-secondary);
      border-radius: var(--radius);
      margin-bottom: 12px;
    }

    .doc-file-icon {
      width: 40px;
      height: 40px;
      border-radius: var(--radius);
      background: rgba(34, 197, 94, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .doc-file-icon i {
      color: var(--primary);
      font-size: 16px;
    }

    .doc-file-icon.pdf i { color: #ef4444; }
    .doc-file-icon.pdf { background: rgba(239, 68, 68, 0.1); }

    .doc-file-meta {
      flex: 1;
      min-width: 0;
    }

    .doc-file-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .doc-file-size {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .doc-file-actions {
      display: flex;
      gap: 6px;
    }

    .doc-file-btn {
      width: 32px;
      height: 32px;
      border: none;
      border-radius: var(--radius-sm);
      background: transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      color: var(--text-muted);
      transition: all 0.2s;
    }

    .doc-file-btn:hover {
      background: var(--primary-light);
      color: var(--primary);
    }

    .doc-file-btn.delete:hover {
      background: rgba(239, 68, 68, 0.08);
      color: #ef4444;
    }

    /* Status badge inside card */
    .doc-status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 600;
    }

    .doc-status-badge.enviado {
      background: rgba(59, 130, 246, 0.08);
      color: #3b82f6;
    }

    .doc-status-badge.aprovado {
      background: rgba(34, 197, 94, 0.08);
      color: #22c55e;
    }

    .doc-status-badge.rejeitado {
      background: rgba(239, 68, 68, 0.08);
      color: #ef4444;
    }

    .doc-status-badge.reenvio {
      background: rgba(245, 158, 11, 0.1);
      color: #d97706;
    }

    .doc-reenvio-tips {
      margin-top: 10px;
      padding: 12px 14px;
      background: rgba(245, 158, 11, 0.06);
      border: 1px solid rgba(245, 158, 11, 0.2);
      border-radius: var(--radius);
      border-left: 3px solid #d97706;
    }
    .doc-reenvio-tips .tips-title {
      font-size: 12px;
      font-weight: 600;
      color: #d97706;
      margin-bottom: 6px;
    }
    .doc-reenvio-tips ul {
      margin: 0; padding: 0 0 0 16px;
      font-size: 11.5px;
      color: var(--text-secondary);
      line-height: 1.7;
    }

    .doc-status-badge i {
      font-size: 10px;
    }

    .doc-obs-text {
      font-size: 12px;
      color: #ef4444;
      margin-top: 8px;
      padding: 8px 12px;
      background: rgba(239, 68, 68, 0.05);
      border-radius: var(--radius-sm);
      border-left: 3px solid #ef4444;
    }

    .doc-obs-text.warning {
      color: #d97706;
      background: rgba(245, 158, 11, 0.06);
      border-left: 3px solid #d97706;
    }
    }

    /* Upload progress */
    .doc-upload-progress {
      margin-top: 12px;
      display: none;
    }

    .doc-upload-progress.active {
      display: block;
    }

    .doc-progress-bar {
      height: 4px;
      background: var(--border);
      border-radius: var(--radius-xs);
      overflow: hidden;
    }

    .doc-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), #00b894);
      border-radius: var(--radius-xs);
      width: 0%;
      transition: width 0.3s;
    }

    .doc-progress-text {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 6px;
      text-align: center;
    }

    /* Replace button */
    .doc-replace-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: transparent;
      color: var(--text-secondary);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
      margin-top: 8px;
    }

    .doc-replace-btn:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: rgba(34, 197, 94, 0.04);
    }

    /* Instructions panel */
    .doc-instructions {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 28px;
    }

    .doc-instructions h3 {
      font-size: 17px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .doc-instructions h3 i {
      color: var(--primary);
      font-size: 16px;
    }

    .doc-instruction-item {
      display: flex;
      gap: 16px;
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
    }

    .doc-instruction-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .doc-instruction-num {
      width: 28px;
      height: 28px;
      border-radius: var(--radius-sm);
      background: var(--primary-light);
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      flex-shrink: 0;
    }

    .doc-instruction-content h4 {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 4px;
    }

    .doc-instruction-content p {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    /* ── Toast notifications ── */
    .doc-toast-container {
      position: fixed;
      top: 90px;
      right: 20px;
      z-index: 10000;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none;
    }
    .doc-toast {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 20px;
      border-radius: var(--radius);
      font-size: 14px;
      font-weight: 500;
      color: #fff;
      min-width: 280px;
      max-width: 420px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.18);
      animation: docToastIn 0.35s ease;
      pointer-events: auto;
      backdrop-filter: blur(8px);
    }
    .doc-toast.success { background: rgba(34,197,94,0.92); }
    .doc-toast.error   { background: rgba(239,68,68,0.92); }
    .doc-toast.warning { background: rgba(245,158,11,0.92); }
    .doc-toast.info    { background: rgba(59,130,246,0.92); }
    .doc-toast.hide { animation: docToastOut 0.3s ease forwards; }
    .doc-toast i { font-size: 16px; flex-shrink: 0; }
    @keyframes docToastIn { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
    @keyframes docToastOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(40px); } }

    /* ── Preview modal ── */
    .doc-preview-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(4px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 30px;
      animation: docFadeIn 0.25s ease;
    }
    .doc-preview-overlay.active { display: flex; }
    .doc-preview-box {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      max-width: 900px;
      width: 100%;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    }
    .doc-preview-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px;
      border-bottom: 1px solid var(--border);
    }
    .doc-preview-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .doc-preview-title i { color: var(--primary); }
    .doc-preview-actions { display: flex; gap: 8px; }
    .doc-preview-btn {
      width: 36px;
      height: 36px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: var(--text-secondary);
      transition: all 0.2s;
    }
    .doc-preview-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(34,197,94,0.04); }
    .doc-preview-btn.close-btn:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.04); }
    .doc-preview-body {
      flex: 1;
      overflow: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      min-height: 300px;
      background: var(--bg-secondary);
    }
    .doc-preview-body iframe {
      width: 100%;
      height: 65vh;
      border: none;
      border-radius: var(--radius-sm);
    }
    .doc-preview-body img {
      max-width: 100%;
      max-height: 70vh;
      border-radius: var(--radius-sm);
      object-fit: contain;
    }
    .doc-preview-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      color: var(--text-muted);
      font-size: 14px;
    }
    .doc-preview-loading i { font-size: 28px; animation: spin 1s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes docFadeIn { from { opacity:0; } to { opacity:1; } }

    /* ================================================
       DADOS PESSOAIS MODAL
       ================================================ */
    .dp-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      backdrop-filter: blur(4px);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: docFadeIn 0.25s ease;
    }
    .dp-modal-overlay.active { display: flex; }
    .dp-modal {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      max-width: 620px;
      width: 100%;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    }
    .dp-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px;
      border-bottom: 1px solid var(--border);
    }
    .dp-modal-header h2 {
      font-size: 17px;
      font-weight: 700;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0;
    }
    .dp-modal-header h2 i { color: var(--primary); }
    .dp-modal-close {
      width: 36px; height: 36px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: var(--text-secondary);
      transition: all 0.2s;
    }
    .dp-modal-close:hover { border-color: #ef4444; color: #ef4444; }
    .dp-modal-body {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
    }
    .dp-form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .dp-form-grid .dp-full { grid-column: 1 / -1; }
    .dp-field {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .dp-field label {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .dp-field label .dp-ocr-badge {
      font-size: 9px;
      background: rgba(59,130,246,0.1);
      color: #3b82f6;
      padding: 2px 6px;
      border-radius: var(--radius-xs);
      margin-left: 6px;
      text-transform: none;
      letter-spacing: 0;
      font-weight: 500;
    }
    .dp-field input, .dp-field select {
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--bg-secondary);
      color: var(--text);
      font-size: 14px;
      transition: border-color 0.2s;
    }
    .dp-field input:focus, .dp-field select:focus {
      outline: none;
      border-color: var(--primary);
    }
    .dp-field input.dp-from-ocr {
      border-color: rgba(59,130,246,0.3);
      background: rgba(59,130,246,0.04);
    }
    .dp-field input.dp-ocr-readonly {
      border-color: rgba(59,130,246,0.25);
      background: rgba(59,130,246,0.06);
      color: var(--text);
      cursor: not-allowed;
      opacity: 0.85;
    }
    .dp-section-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin: 20px 0 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--border);
    }
    .dp-section-title:first-child { margin-top: 0; }
    .dp-modal-footer {
      padding: 16px 24px;
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .dp-status-text {
      font-size: 12px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .dp-status-text.complete { color: #22c55e; }
    .dp-status-text.incomplete { color: #d97706; }
    .dp-btn-save {
      padding: 10px 28px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: var(--radius);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .dp-btn-save:hover { filter: brightness(1.1); }
    .dp-btn-save:disabled { opacity: 0.5; cursor: not-allowed; }

    /* Procuracao auto card states */
    .proc-auto-body {
      padding: 20px 24px 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      text-align: center;
    }
    .proc-auto-icon {
      width: 56px; height: 56px;
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
    }
    .proc-auto-icon.waiting { background: rgba(245,158,11,0.1); color: #d97706; }
    .proc-auto-icon.ready { background: rgba(34,197,94,0.1); color: #22c55e; }
    .proc-auto-icon.locked { background: rgba(148,163,184,0.15); color: #94a3b8; }

    .doc-card.locked {
      opacity: 0.65;
    }
    .doc-card.locked .doc-card-header {
      filter: grayscale(0.5);
    }
    .proc-auto-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
    }
    .proc-auto-desc {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.5;
      max-width: 280px;
    }
    .proc-auto-btn {
      padding: 10px 22px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: var(--radius);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 4px;
    }
    .proc-auto-btn:hover { filter: brightness(1.1); }
    .proc-auto-btn.secondary {
      background: transparent;
      color: var(--primary);
      border: 1px solid rgba(34,197,94,0.3);
    }
    .proc-auto-btn.secondary:hover { background: rgba(34,197,94,0.04); }

    /* Signature Modal */
    .sig-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(4px);
      z-index: 9999;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }
    .sig-overlay.active { display: flex; }
    .sig-box {
      background: var(--card-bg, #fff);
      border-radius: 18px;
      max-width: 540px;
      width: 100%;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      overflow: hidden;
    }
    .sig-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 24px;
      border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    .sig-header h3 {
      font-size: 16px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0;
    }
    .sig-header h3 i { color: var(--primary); }
    .sig-close {
      background: none;
      border: none;
      font-size: 18px;
      cursor: pointer;
      color: var(--text-secondary);
      padding: 6px;
      border-radius: var(--radius-sm);
    }
    .sig-close:hover { background: rgba(0,0,0,0.06); }
    .sig-body { padding: 20px 24px; }
    .sig-instructions {
      font-size: 13px;
      color: var(--text-secondary);
      margin-bottom: 14px;
      line-height: 1.5;
    }
    .sig-canvas-wrap {
      border: 2px dashed rgba(0,0,0,0.15);
      border-radius: var(--radius);
      background: #fafafa;
      position: relative;
      overflow: hidden;
      touch-action: none;
    }
    .sig-canvas-wrap canvas {
      display: block;
      width: 100%;
      cursor: crosshair;
    }
    .sig-canvas-placeholder {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 14px;
      color: rgba(0,0,0,0.2);
      pointer-events: none;
      font-weight: 600;
      text-align: center;
    }
    .sig-canvas-wrap.has-signature .sig-canvas-placeholder { display: none; }
    .sig-actions {
      display: flex;
      gap: 12px;
      margin-top: 16px;
    }
    .sig-btn-clear {
      padding: 10px 18px;
      border: 1px solid rgba(0,0,0,0.12);
      background: transparent;
      border-radius: var(--radius);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .sig-btn-clear:hover { background: rgba(0,0,0,0.04); }
    .sig-btn-apply {
      flex: 1;
      padding: 10px 18px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: var(--radius);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.2s;
    }
    .sig-btn-apply:hover { filter: brightness(1.1); }
    .sig-btn-apply:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

    /* ── Remote Signature Link ── */
    .sig-remote-divider {
      display: flex; align-items: center; gap: 12px;
      margin: 16px 0 12px; color: var(--text-secondary); font-size: 12px;
    }
    .sig-remote-divider::before, .sig-remote-divider::after {
      content: ''; flex: 1; height: 1px; background: var(--border-color, #e2e8f0);
    }
    .sig-remote-section { margin-bottom: 4px; }
    .sig-remote-desc {
      font-size: 12.5px; color: var(--text-secondary); margin: 0 0 12px;
      line-height: 1.5; display: flex; align-items: flex-start; gap: 8px;
    }
    .sig-remote-desc i { margin-top: 2px; color: var(--primary); }
    .sig-btn-remote {
      width: 100%; padding: 11px 18px;
      background: #25d366; color: #fff; border: none; border-radius: var(--radius);
      font-size: 13px; font-weight: 700; cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      transition: all 0.2s;
    }
    .sig-btn-remote:hover { filter: brightness(1.1); }
    .sig-btn-remote:disabled { opacity: 0.6; cursor: wait; }
    .sig-remote-result { margin-top: 14px; }
    .sig-remote-link-box {
      display: flex; gap: 6px; margin-bottom: 10px;
    }
    .sig-remote-link-box input {
      flex: 1; padding: 9px 12px;
      border: 1.5px solid var(--border-color, #e2e8f0); border-radius: var(--radius-sm);
      font-size: 12px; background: var(--card-bg, #f8fafc); color: var(--text-primary);
    }
    .sig-remote-link-box button {
      padding: 9px 14px; background: var(--primary); color: #fff;
      border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px;
      transition: filter 0.2s;
    }
    .sig-remote-link-box button:hover { filter: brightness(1.1); }
    .sig-remote-actions {
      display: flex; align-items: center; gap: 12px;
    }
    .sig-btn-whatsapp {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 9px 16px; background: #25d366; color: #fff;
      border-radius: var(--radius-sm); text-decoration: none; font-size: 12.5px; font-weight: 600;
      transition: filter 0.2s;
    }
    .sig-btn-whatsapp:hover { filter: brightness(1.1); }
    .sig-remote-expiry {
      font-size: 11px; color: var(--text-secondary);
    }

    @media (max-width: 768px) {
      .sig-box { max-width: 100%; border-radius: var(--radius); }
      .sig-body { padding: 16px; }
    }

    /* ── Save Signature Dialog ── */
    .sig-save-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      backdrop-filter: blur(4px);
      z-index: 10001;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }
    .sig-save-overlay.active { display: flex; }
    .sig-save-box {
      background: var(--card-bg, #fff);
      border-radius: 18px;
      max-width: 420px;
      width: 100%;
      box-shadow: 0 20px 60px rgba(0,0,0,0.35);
      overflow: hidden;
      text-align: center;
      padding: 30px 28px;
    }
    .sig-save-icon {
      width: 56px; height: 56px;
      border-radius: 50%;
      background: linear-gradient(135deg, #f59e0b, #d97706);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      color: #fff;
      margin-bottom: 16px;
    }
    .sig-save-box h3 {
      font-size: 17px;
      font-weight: 700;
      margin: 0 0 8px;
    }
    .sig-save-box p {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.6;
      margin: 0 0 22px;
    }
    .sig-save-actions {
      display: flex;
      gap: 12px;
    }
    .sig-save-btn-no {
      flex: 1;
      padding: 11px 16px;
      border: 1px solid rgba(0,0,0,0.12);
      background: transparent;
      border-radius: var(--radius);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      color: var(--text-secondary);
    }
    .sig-save-btn-no:hover { background: rgba(0,0,0,0.04); }
    .sig-save-btn-yes {
      flex: 1.5;
      padding: 11px 16px;
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: #fff;
      border: none;
      border-radius: var(--radius);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    .sig-save-btn-yes:hover { filter: brightness(1.1); }
    .sig-save-btn-yes:disabled { opacity: 0.5; cursor: not-allowed; }

    /* ── Saved Signature Banner inside sig modal ── */
    .sig-saved-banner {
      display: none;
      background: linear-gradient(135deg, #fef3c7, #fde68a);
      border: 1px solid #f59e0b;
      border-radius: var(--radius);
      padding: 14px;
      margin-bottom: 14px;
      align-items: center;
      gap: 12px;
    }
    .sig-saved-banner.active { display: flex; }
    .sig-saved-preview {
      width: 80px;
      height: 40px;
      border: 1px solid rgba(0,0,0,0.1);
      border-radius: var(--radius-sm);
      background: #fff;
      object-fit: contain;
      flex-shrink: 0;
    }
    .sig-saved-info { flex: 1; min-width: 0; }
    .sig-saved-info strong {
      display: block;
      font-size: 12px;
      font-weight: 700;
      color: #92400e;
      margin-bottom: 2px;
    }
    .sig-saved-info span {
      font-size: 11px;
      color: #a16207;
    }
    .sig-saved-btns {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex-shrink: 0;
    }
    .sig-saved-use {
      padding: 6px 12px;
      background: #d97706;
      color: #fff;
      border: none;
      border-radius: 7px;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
    }
    .sig-saved-use:hover { filter: brightness(1.1); }
    .sig-saved-new {
      padding: 4px 12px;
      background: transparent;
      color: #92400e;
      border: none;
      font-size: 10px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: underline;
    }

    @media (max-width: 768px) {
      .dp-form-grid { grid-template-columns: 1fr; }
      .dp-modal { max-height: 95vh; }
      .sig-saved-banner { flex-direction: column; text-align: center; }
    }

    /* Responsive */
    @media (max-width: 768px) {
      .doc-section {
        padding: 100px 0 40px;
      }
      .doc-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }
      .doc-page-header h1 {
        font-size: 22px;
      }
      .doc-preview-overlay { padding: 10px; }
      .doc-preview-body iframe { height: 50vh; }
      .doc-toast-container { left: 10px; right: 10px; }
      .doc-toast { min-width: auto; }
    }
  
