/* ===== KB Checklist UI ===== */
.checklist-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
  overflow: hidden;
}

/* Header */
.checklist-header {
  background: #003366;
  color: #003366;
  padding: 2rem;
  text-align: center;
}

.checklist-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #ffffff;
}

.checklist-header p {
  font-size: 1rem;
  opacity: 0.95;
  color: #ffffff;
}

/* Actions + Buttons + Progress */
.checklist-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-print {
  background: #1d2327;
  color: #fff;
}

.btn-print:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-reset {
  background: #dc2626;
  color: #fff;
}

.btn-reset:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.progress-indicator {
  flex: 1;
  min-width: 200px;
}

.progress-text {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.progress-bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #ea580c);
  transition: width 0.3s;
  border-radius: 5px;
  width: 0%;
}

/* Content + Sections + Items */
.checklist-content {
  padding: 2rem;
}

.checklist-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  color: #dc2626;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #dc2626;
  font-weight: 700;
}

.checklist-item {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item:hover {
  background: #f9fafb;
}

.checklist-item label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 1rem;
}

.checkbox-wrapper {
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #dc2626;
}

.item-content {
  flex: 1;
}

.item-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.item-description {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.checklist-item input:checked ~ .item-content .item-text {
  text-decoration: line-through;
  opacity: 0.6;
}

.checklist-item input:checked ~ .item-content .item-description {
  opacity: 0.5;
}

/* Footer */
.checklist-footer {
  padding: 2rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.caveat {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.caveat p {
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.6;
}

.caveat strong {
  color: #78350f;
}

.created-by {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.created-by a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.created-by a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Print */
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .checklist-actions {
    display: none;
  }
  
  .checklist-container {
    box-shadow: none;
  }
  
  .checklist-item {
    page-break-inside: avoid;
  }
  
  .checklist-header {
    background: #1d2327 !important;
    color: #ffffff !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .checklist-header h1 {
    font-size: 1.5rem;
  }
  
  .checklist-content {
    padding: 1.5rem;
  }
  
  .checklist-actions {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .progress-indicator {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
}










/* Print styles - hide site chrome, keep content */
@media print {
  /* Enable background colors */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* Hide common site elements */
  .elementor-location-header,
  .elementor-location-footer,
  header.site-header,
  footer.site-footer,
  nav,
  .breadcrumbs,
  aside,
  .sidebar,
	.feature-client{
    display: none !important;
  }
  
  /* Hide action buttons */
  .checklist-actions {
    display: none !important;
  }
  
  /* Reset checklist container for print */
  .checklist-container {
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  
  /* Prevent page breaks inside items */
  .checklist-item {
    page-break-inside: avoid !important;
  }
  
  /* Ensure header prints with colors */
  .checklist-header {
    background: #ffffff !important;
    color: #003366 !important;
  }
}