/* ============================================================
   ProtegeVeicular - Modais CSS
   ============================================================ */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: overlayIn .2s ease;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: white; border-radius: 12px; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn .3s ease;
}
.modal-large { max-width: 860px; }
@keyframes modalIn { from { transform: scale(0.9) translateY(-20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid #e5e7eb;
  background: #f9fafb; border-radius: 12px 12px 0 0;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; color: #111827; }
.modal-close {
  background: none; border: none; font-size: 1.2rem; cursor: pointer;
  color: #6b7280; padding: 4px 8px; border-radius: 6px; transition: all .2s;
}
.modal-close:hover { background: #e5e7eb; color: #111827; }

.modal-body { padding: 24px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid #e5e7eb; background: #f9fafb;
}

/* ===== HISTÓRICO MODAL ===== */
.historico-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid #e5e7eb; padding-bottom: 0; }
.hist-tab { padding: 8px 16px; background: none; border: none; cursor: pointer; font-size: 0.9rem; color: #6b7280; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.hist-tab.active { color: #1a56db; border-bottom-color: #1a56db; }
.historico-section { margin-bottom: 20px; }
.historico-section h4 { font-size: 0.9rem; font-weight: 600; color: #374151; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-item { background: #f9fafb; padding: 10px 14px; border-radius: 8px; }
.info-item label { display: block; font-size: 0.75rem; color: #6b7280; font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
.info-item span { font-size: 0.9rem; color: #111827; font-weight: 500; }
.timeline { position: relative; padding-left: 20px; }
.timeline-item { position: relative; padding: 10px 0 10px 20px; border-left: 2px solid #e5e7eb; }
.timeline-item:last-child { border-left: none; }
.timeline-dot { position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #1a56db; border: 2px solid white; box-shadow: 0 0 0 2px #1a56db; }
.timeline-time { font-size: 0.78rem; color: #6b7280; }
.timeline-desc { font-size: 0.9rem; color: #374151; margin-top: 2px; }

/* ===== SINISTRO STATUS WORKFLOW ===== */
.status-workflow { display: flex; align-items: center; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.workflow-step { padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; background: #e5e7eb; color: #6b7280; }
.workflow-step.done { background: #057a55; color: white; }
.workflow-step.current { background: #1a56db; color: white; font-weight: 700; transform: scale(1.05); }
.workflow-arrow { color: #6b7280; font-size: 0.8rem; }

/* ===== DOCUMENT STYLES ===== */
.doc-content { font-family: 'Times New Roman', serif; }
.doc-header-print { text-align: center; border-bottom: 3px double #1a56db; padding-bottom: 20px; margin-bottom: 30px; }
.doc-header-print h1 { color: #1a56db; font-size: 1.5rem; }
.doc-title { text-align: center; font-size: 1.3rem; font-weight: bold; margin: 20px 0; text-transform: uppercase; }
.doc-section { margin-bottom: 20px; }
.doc-section h3 { font-size: 1rem; font-weight: bold; border-bottom: 1px solid #ccc; padding-bottom: 5px; margin-bottom: 10px; }
.doc-clause { margin-bottom: 10px; text-align: justify; }
.doc-sign-area { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; }
.sign-line { border-top: 1px solid #333; padding-top: 8px; text-align: center; font-size: 0.85rem; }
.doc-info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.doc-info-table td { padding: 8px 12px; border: 1px solid #ccc; }
.doc-info-table td:first-child { background: #f5f5f5; font-weight: bold; width: 35%; }
.doc-stamp { text-align: center; padding: 12px; background: #e8f0fe; border: 2px dashed #1a56db; border-radius: 8px; margin-top: 20px; font-weight: bold; color: #1a56db; }
