/* EDMS Custom Styles */
:root {
  --status-draft: #6c757d;
  --status-submitted: #17a2b8;
  --status-inreview: #ffc107;
  --status-pending: #fd7e14;
  --status-approved: #28a745;
  --status-rejected: #dc3545;
  --status-signed: #007bff;
  --status-archived: #6f42c1;
}

.status-badge { font-size: 0.75rem; padding: 0.35em 0.65em; }
.status-draft { background: var(--status-draft); color: #fff; }
.status-submitted { background: var(--status-submitted); color: #fff; }
.status-inreview { background: var(--status-inreview); color: #212529; }
.status-pending { background: var(--status-pending); color: #fff; }
.status-approved { background: var(--status-approved); color: #fff; }
.status-rejected { background: var(--status-rejected); color: #fff; }
.status-signed { background: var(--status-signed); color: #fff; }
.status-archived { background: var(--status-archived); color: #fff; }

.workflow-timeline { position: relative; padding-left: 30px; }
.workflow-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #dee2e6; }
.workflow-timeline .timeline-item { position: relative; padding-bottom: 1.5rem; }
.workflow-timeline .timeline-item::before { content: ''; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #007bff; border: 2px solid #fff; box-shadow: 0 0 0 2px #dee2e6; }
.workflow-timeline .timeline-item.completed::before { background: #28a745; }
.workflow-timeline .timeline-item.current::before { background: #ffc107; width: 14px; height: 14px; left: -27px; top: 4px; }
.workflow-timeline .timeline-item.rejected::before { background: #dc3545; }

.kanban-column { min-height: 400px; background: #f8f9fa; border-radius: 0.25rem; }
.kanban-card { cursor: pointer; transition: transform 0.2s; }
.kanban-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

.action-dropdown .dropdown-menu { min-width: 200px; }
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active { background-color: rgba(255,255,255,.1); }

.document-metadata dt { width: 140px; }
.document-metadata dd { margin-left: 160px; }

.signature-preview { border: 2px dashed #dee2e6; border-radius: 0.25rem; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.pdf-viewer-container { height: 600px; border: 1px solid #dee2e6; }

[data-status="draft"] .status-badge { background: var(--status-draft); }
[data-status="submitted"] .status-badge { background: var(--status-submitted); }
[data-status="inreview"] .status-badge { background: var(--status-inreview); }
[data-status="pending"] .status-badge { background: var(--status-pending); }
[data-status="approved"] .status-badge { background: var(--status-approved); }
[data-status="rejected"] .status-badge { background: var(--status-rejected); }
[data-status="signed"] .status-badge { background: var(--status-signed); }
[data-status="archived"] .status-badge { background: var(--status-archived); }
