/* =============================================================================
   DMA Dashboard — Custom Styles
   ============================================================================= */

/* === Sidebar === */
.sidebar .btn {
  margin-bottom: 5px;
}

/* === Value Boxes (sidebar KPIs) === */
.sidebar .bslib-value-box,
.sidebar .value-box {
  min-height: 0 !important;
  height: auto !important;
  padding: 6px 8px !important;
}
.sidebar .bslib-value-box .value-box-area,
.sidebar .value-box .value-box-area {
  padding: 4px !important;
}
.sidebar .bslib-value-box .value-box-title,
.sidebar .value-box .value-box-title,
.sidebar .bslib-value-box h6,
.sidebar .value-box h6 {
  font-size: 0.55rem !important;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 !important;
}
.sidebar .bslib-value-box .value-box-value,
.sidebar .value-box .value-box-value,
.sidebar .bslib-value-box p,
.sidebar .value-box p {
  font-size: 0.85rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  margin: 2px 0 0 0 !important;
}
/* Hide the showcase icon area to save space */
.sidebar .bslib-value-box .value-box-showcase,
.sidebar .value-box .value-box-showcase {
  display: none !important;
}

/* === Company Header === */
.company-header {
  background: #2c3e50 !important;
  color: white !important;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.company-header strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 2px;
  color: white !important;
}
.company-header small {
  opacity: 0.75;
  font-size: 0.8rem;
  color: white !important;
}

/* === Narrative Cards === */
.narrative-card {
  padding: 16px 20px;
  line-height: 1.75;
  font-size: 0.92rem;
  color: #2c3e50;
  max-height: 300px;
  overflow-y: auto;
}
.narrative-card strong { color: #1a252f; }
.narrative-card li { margin-bottom: 5px; }
.narrative-card br + br { display: block; margin-top: 8px; }

/* === Assessment Form === */
.form-section-header {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
}
.assessment-question {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-left: 3px solid #bdc3c7;
  background: #f8f9fa;
  border-radius: 0 4px 4px 0;
}
.assessment-question .question-stem {
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.55;
  color: #2c3e50;
}
.assessment-options {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* === Cards & Layout === */
.card-header {
  font-weight: 600;
}
.assessment-form-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
}

/* === AI Narrative Cards === */
[id^="ai_"][id$="_card"] {
  border-left: 3px solid #3498db;
}
[id^="ai_"][id$="_card"] > .card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
}

/* === Click-to-Select Template === */
.clickable-template {
  font-size: 1rem;
  line-height: 2.2;
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  margin-bottom: 12px;
}
.option-group { display: inline; }
.option-choice {
  display: inline-block;
  padding: 2px 10px;
  margin: 2px 3px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1.5px solid #3498db;
  color: #3498db;
  background: white;
  font-weight: 500;
  user-select: none;
}
.option-choice:hover { background: #ebf5fb; }
.option-selected {
  background: #3498db !important;
  color: white !important;
  border-color: #3498db !important;
}
.option-unselected {
  opacity: 0.4;
  border-color: #bdc3c7;
  color: #95a5a6;
}
#dimension_extra {
  font-size: 0.9rem;
  border: 1px dashed #bdc3c7;
  background: #fdfdfd;
  resize: vertical;
}

/* === Interactive chart detail panels === */
.border-info { border-left: 3px solid #3498db !important; }
.border-danger { border-left: 3px solid #e74c3c !important; }
.border-warning { border-left: 3px solid #f39c12 !important; }
.border-primary { border-left: 3px solid #2980b9 !important; }

/* === Print === */
@media print {
  .navbar, .sidebar, .btn, .dataTables_filter,
  .dataTables_info, .dataTables_paginate,
  .dt-buttons { display: none !important; }
  .card { break-inside: avoid; page-break-inside: avoid; }
  .main-content { width: 100% !important; margin: 0 !important; }
  body { font-size: 11pt; }
}
