:root{
  --content-max: 1680px;
  --label-col-wide: 640px;
  --label-col-med: 520px;
}

body.riskprofile-form .org-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

body.riskprofile-form .org-grid .span-2{
  grid-column:span 2;
}

@media (max-width:920px){
  body.riskprofile-form .org-grid{
    grid-template-columns:1fr;
  }
  body.riskprofile-form .org-grid .span-2{
    grid-column:auto;
  }
}

/* === Navigation Dropdown Container === */
body.riskprofile-form .nav-dropdown-container {
  grid-column: 2;
  justify-self: end;
  position: relative;
}

/* === Navigation Dropdown Button === */
body.riskprofile-form .nav-dropdown-btn {
  padding: 8px 14px;
  border: 1px solid var(--ink-3, #333);
  border-radius: 8px;
  background: white;
  color: var(--ink-3, #333);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

body.riskprofile-form .nav-dropdown-btn:hover {
  filter: brightness(0.95);
}

/* === Navigation Dropdown Menu === */
body.riskprofile-form .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 200px;
  overflow: hidden;
}

body.riskprofile-form .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #334155;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

body.riskprofile-form .nav-item:last-child {
  border-bottom: none;
}

body.riskprofile-form .nav-item:hover {
  background: #f8fafc;
}

body.riskprofile-form .nav-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

body.riskprofile-form .nav-icon {
  font-size: 16px;
  line-height: 1;
}

body.riskprofile-form .nav-text {
  font-size: 14px;
  font-weight: 500;
}

body.riskprofile-form .nav-item.active .nav-text {
  font-weight: 600;
}

/* Security footer */
.security-footer {
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  color: #64748b;
  font-size: 12px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* === Export Modal Styles === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-dialog {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #1a1a1a;
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  margin: 0 0 16px 0;
  color: #64748b;
  font-size: 14px;
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export-option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.export-option-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.export-icon {
  font-size: 32px;
  line-height: 1;
}

.export-label {
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;
  display: block;
}

.export-desc {
  font-size: 13px;
  color: #64748b;
  display: block;
  margin-top: 4px;
}
