* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Signature validation error styling */
#modal-signature-canvas.signature-validation-error {
  border: 2px solid #dc3545 !important;
  background-color: #fff5f5 !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-image: url('../assets/portal-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: rgba(255, 255, 255, 0.98);
  padding: 20px 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  height: 50px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-toggle {
  display: flex;
  gap: 10px;
}

.lang-btn {
  padding: 8px 20px;
  border: 2px solid #666;
  background: white;
  color: #666;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.lang-btn:hover {
  background: #f5f5f5;
}

.lang-btn.active {
  background: #333;
  color: white;
  border-color: #333;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-draft {
  background: #e3f2fd;
  color: #1976d2;
}

.status-pending {
  background: #fff3e0;
  color: #f57c00;
}

.status-sent {
  background: #fff9c4;
  color: #f57f17;
  font-weight: 600;
}

.status-approved {
  background: #c8e6c9;
  color: #2e7d32;
  font-weight: 600;
}

.status-ready-to-send {
  background: #bbdefb;
  color: #1565c0;
  font-weight: 600;
}

.status-completed {
  background: #e8f5e9;
  color: #388e3c;
}

.status-void {
  background: #ffebee;
  color: #d32f2f;
}

/* Compact signature status badges */
.signature-status-compact {
  padding: 8px;
  min-width: 100px;
}

.compact-badges-container {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
}

.compact-sig-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.compact-sig-badge:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Legacy signature status cell styling (kept for compatibility) */
.signature-status-cell {
  min-width: 250px;
  padding: 8px;
}

.role-status {
  font-size: 12px;
  padding: 4px 8px;
  margin: 2px 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.role-label {
  font-weight: 600;
  min-width: 90px;
}

.role-status-not-sent {
  background: #f5f5f5;
  color: #666;
}

.role-status-invited {
  background: #fff9c4;
  color: #f57f17;
}

.role-status-signed {
  background: #c8e6c9;
  color: #2e7d32;
}

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.98);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.card-header--with-search {
  align-items: center;
  gap: 20px;
}

.card-header--with-search h1 {
  margin: 0;
  white-space: nowrap;
}

.card-header--with-search .search-box {
  margin: 0;
  width: 280px;
  flex-shrink: 0;
}

.card-header--with-search .search-box input {
  padding: 6px 12px;
  font-size: 13px;
  height: 34px;
}

.card-header--with-search .btn-primary {
  white-space: nowrap;
  margin-left: auto;
}

h1, h2, h3 {
  color: #333;
  font-weight: 600;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

button, .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #333;
  color: white;
}

.btn-primary:hover {
  background: #555;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 2px solid #ddd;
}

.btn-secondary:hover {
  background: #e5e5e5;
}

.btn-danger {
  background: #d32f2f;
  color: white;
}

.btn-danger:hover {
  background: #b71c1c;
}

.btn-success {
  background: #388e3c;
  color: white;
}

.btn-success:hover {
  background: #2e7d32;
}

.btn-share {
  background: #1976d2;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-share:hover {
  background: #1565c0;
  transform: translateY(-1px);
}

.btn-share svg {
  width: 16px;
  height: 16px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #666;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  max-width: 400px;
}

.search-box input {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  height: 38px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

thead {
  background: #f5f5f5;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  font-weight: 600;
  color: #666;
}

tr:hover {
  background: #fafafa;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

/* Actions dropdown menu */
.actions-dropdown {
  display: inline-flex;
  position: relative;
  align-items: center;
}

.actions-menu-btn {
  font-size: 18px;
  line-height: 1;
  padding: 6px 12px;
  min-width: auto;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ensure all action buttons have consistent height */
.actions .btn-primary.btn-small,
.actions .btn-secondary.btn-small {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.actions-menu {
  position: fixed;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  min-width: 180px;
  overflow: hidden;
}

.actions-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 14px;
  color: #333;
}

.actions-menu button:hover {
  background: #f5f5f5;
}

.actions-menu button.danger {
  color: #d32f2f;
}

.actions-menu button.danger:hover {
  background: #ffebee;
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  background: #388e3c;
}

.toast.error {
  background: #d32f2f;
}

.toast.info {
  background: #1976d2;
}

.auth-container {
  max-width: 400px;
  margin: 100px auto;
}

.auth-toggle {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

.auth-toggle a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-dialog {
  background: white;
  border-radius: 8px;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  margin: 20px;
}

.modal {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}

.pdf-indicator {
  display: inline-block;
  padding: 4px 12px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.loader {
  text-align: center;
  padding: 40px;
  color: #666;
}

.hidden {
  display: none !important;
}

/* Responsive table container */
#contracts-table-container {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin: 0 -20px;
  padding: 0 20px;
}

#contracts-table {
  min-width: 800px; /* Minimum width to prevent crushing */
}

/* Ensure table cells don't clip dropdown menus */
#contracts-table tbody tr {
  position: relative;
}

#contracts-table tbody td {
  overflow: visible;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .card {
    padding: 15px;
  }
  
  #contracts-table-container {
    margin: 0 -15px;
    padding: 0 15px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .language-toggle {
    justify-content: center;
  }
  
  #logout-btn {
    width: 100%;
  }
  
  .card-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .card-header h1 {
    text-align: center;
  }
  
  .card-header .btn-primary {
    width: 100%;
  }
  
  .card-header--with-search {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .card-header--with-search h1 {
    text-align: center;
  }
  
  .card-header--with-search .search-box {
    max-width: 100%;
    width: 100%;
  }
  
  .card-header--with-search .btn-primary {
    width: 100%;
  }
  
  table {
    font-size: 12px;
  }
  
  th, td {
    padding: 6px 4px;
  }
  
  .compact-sig-badge {
    padding: 4px 6px;
    font-size: 11px;
  }
  
  .btn-small {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .modal {
    width: 95%;
    padding: 20px;
  }
  
  .modal-dialog {
    padding: 20px !important;
    width: 98%;
    margin: 10px;
  }
  
  .modal-header h2 {
    font-size: 18px;
  }
  
  .contract-tabs {
    flex-wrap: wrap;
  }
  
  .contract-tab-btn {
    padding: 12px 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 40px;
  }
  
  h1 {
    font-size: 20px;
  }
  
  .card-header {
    gap: 10px;
  }
  
  .search-box input {
    font-size: 14px;
  }
  
  table {
    font-size: 11px;
  }
  
  th, td {
    padding: 4px 2px;
  }
  
  .actions-dropdown {
    position: static !important;
  }
  
  .actions-menu {
    right: 0;
    left: auto;
  }
  
  .modal-dialog {
    width: 100%;
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .contract-tab-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .form-group label {
    font-size: 13px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
  }
}

/* Contract Tabs System */
.contract-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
  background: #f9f9f9;
  border-radius: 6px 6px 0 0;
}

.contract-tab-btn {
  flex: 1;
  padding: 15px 25px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.contract-tab-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #333;
}

.contract-tab-btn.active {
  color: #333;
  background: white;
  border-bottom-color: #333;
}

.contract-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.contract-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Contract Editor */
.contract-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
}

.editor-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.contract-editor-toolbar {
  display: flex;
  gap: 5px;
  padding: 10px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.editor-btn {
  padding: 8px 14px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.editor-btn:hover {
  background: #e9ecef;
  border-color: #999;
}

.editor-btn:active {
  background: #dee2e6;
}

.contract-editor-content {
  min-height: 500px;
  max-height: 600px;
  overflow-y: auto;
  padding: 30px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0 0 6px 6px;
  font-family: Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.6;
}

.contract-editor-content:empty:before {
  content: attr(data-placeholder);
  color: #999;
  font-style: italic;
}

.contract-editor-content:focus {
  outline: 2px solid #007bff;
  outline-offset: -2px;
}

/* ================================================
   PDF PRINT CONTAINER STYLES
   ================================================ */

/* Hidden container for PDF generation - positioned off-screen but still in DOM */
#pdf-print-container {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 210mm; /* A4 width */
  background: white;
}

/* Content wrapper with proper A4 dimensions and padding */
#pdf-print-content {
  width: 210mm;
  min-height: 297mm; /* A4 height */
  padding: 2rem; /* Matches template body padding */
  background: white;
  font-family: 'Times New Roman', Times, serif;
  font-size: 14px; /* Matches template --font-base */
  line-height: 1.5; /* Matches template --line-height-base */
  color: #111;
}

/* Signature styling for PDF */
#pdf-print-content .signature-placeholder.signed img {
  max-width: 200px;
  max-height: 60px;
  display: block;
  margin: 0;
  border: 2px solid #4caf50;
  border-radius: 4px;
  padding: 4px;
  background: white;
}

/* Signature image styling (injected signatures in preview/PDF) */
.signature-image {
  max-height: 70px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Signed signature placeholder styling - consistent green border */
.signature-placeholder.signed {
  display: inline-block;
  border: 2px solid #4caf50;
  border-radius: 4px;
  padding: 4px;
  background: #f1f8f4;
}

.signature-placeholder.signed:hover {
  background: #e8f5e9;
}

.signature-placeholder.signed .signature-image {
  border: none;
  padding: 0;
  background: transparent;
}

/* Missing signature placeholder text */
.signature-missing {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

/* Page breaks for multi-page contracts */
#pdf-print-content .page-break {
  page-break-before: always;
  break-before: page;
}

#pdf-print-content .avoid-break {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* View Switcher Buttons */
.view-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.view-btn:hover {
  background: rgba(108, 92, 231, 0.1);
  color: #6c5ce7;
}

.view-btn.active {
  background: #6c5ce7;
  color: white;
}

/* Talent Folder Cards */
.talent-folder-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.talent-folder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #6c5ce7;
}

.talent-folder-card .folder-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.talent-folder-card .folder-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.talent-folder-card .folder-email {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.talent-folder-card .folder-count {
  font-size: 14px;
  color: #6c5ce7;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.talent-folder-card.no-talent {
  background: #f8f8f8;
  border-style: dashed;
  border-color: #ddd;
}

.talent-folder-card.no-talent:hover {
  border-color: #999;
}

/* ================================================
   SIGNATURE BOX ALIGNMENT FIX
   Ensures all signature boxes have identical height and alignment
   in both Preview and PDF views.
   ================================================ */

/* Force identical height for all signature-line boxes */
.signature-line {
  height: 80px !important;
  min-height: 80px !important;
  max-height: 80px !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  overflow: visible; /* erlaubt signer-meta außerhalb der Box */
  position: relative;
  align-items: center !important;
  justify-content: center !important;
}
/* Force inner placeholder to fill the box and truly center text */
.signature-line > .signature-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}
/* Center the placeholder text inside the box */
.signature-line .signature-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* Ensure open/other-role text is also centered */
.signature-line .signature-placeholder.other-role {
  text-align: center;
}

/* signer-meta unter die gelbe Box "andocken" - linksbündig, mehr Abstand */
.signature-line .signer-meta {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  text-align: left;
  font-size: 9pt;
  color: #333;
  white-space: nowrap;
}

/* signer-meta außerhalb von signature-line (PDF/Preview) - inline-block neben Signatur */
.signer-meta {
  display: block;
  font-size: 9pt;
  color: #333;
  margin-top: 10px;
  text-align: left;
  line-height: 1.3;
}

/* signer-name und signer-role innerhalb signer-meta - einheitliche Typografie */
.signer-meta .signer-name {
  font-size: 9pt;
  font-weight: normal;
  color: #333;
  line-height: 1.3;
}

.signer-meta .signer-role {
  font-size: 9pt;
  font-weight: normal;
  color: #333;
  line-height: 1.3;
}

/* Ensure signature container uses proper flex alignment */
.signature-container {
  display: flex !important;
  align-items: stretch !important;
  gap: var(--spacing-m, 16px);
}

/* Each column stretches to same height */
.signature-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 28px; /* Platz für signer-meta unter der Box - erhöht */
}

/* Signature line takes remaining space within column */
.signature-column .signature-line {
  flex-shrink: 0;
}

/* Constrain signature images within the fixed-height box */
.signature-line img,
.signature-line .signature-image {
  max-width: 100%;
  max-height: 68px !important;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Signature placeholder text centered in box */
.signature-line .signature-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

/* signer-meta inside signature-placeholder - position below, mehr Abstand */
.signature-line .signature-placeholder .signer-meta {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  text-align: left;
  font-size: 9pt;
  color: #333;
  white-space: nowrap;
}

/* Signed placeholder within signature-line */
.signature-line .signature-placeholder.signed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  padding: 0;
  position: relative;
}

/* Image inside signed placeholder - NO border inside signature-line (box has border already) */
.signature-line .signature-placeholder.signed img {
  max-height: 60px !important;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
  padding: 0;
  background: transparent;
}

/* Missing signature text styling */
.signature-line .signature-missing {
  font-size: 12px;
  color: #999;
  font-style: italic;
  text-align: center;
}

/* ============================================
   RV (Rahmenvertrag) SPECIFIC SIGNATURE STYLES
   Keep separate from KV to avoid regressions
   ============================================ */

/* RV signature container - ensure columns align at top */
.rv-signature-container {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between;
  gap: 40px;
}

/* RV signature columns - identical height structure */
.rv-signature-container .signature-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

/* RV date and label styling - identical for both columns */
.rv-signature-container .signature-date {
  margin: 0 0 5px 0;
  font-size: 11pt;
}

.rv-signature-container .signature-label {
  margin: 0 0 8px 0;
  font-size: 11pt;
}

/* RV signature line - no extra bottom padding */
.rv-signature-line {
  margin-bottom: 8px;
}

/* RV signer name below signature - static text from template */
.rv-signer-name {
  font-size: 10pt;
  color: #333;
  line-height: 1.3;
  margin-top: 4px;
}

.rv-signer-role {
  font-size: 9pt;
  color: #555;
}

/* CRITICAL: Hide dynamically injected signer-meta in RV templates */
.rv-signature-line .signer-meta,
.rv-signature-block .signer-meta,
[data-no-signer-meta="true"] .signer-meta {
  display: none !important;
}
