.ohe-form {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 1.25rem;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  background: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial;
}
.ohe-title {
  margin: 8px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e9631a;
}
.ohe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ohe-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.ohe-field input,
.ohe-field select {
  padding: 10px;
  border: 1px solid #cfd3d8;
  border-radius: 8px;
  outline: none;
}
.ohe-field input:focus,
.ohe-field select:focus,
.ohe-block textarea:focus {
  border-color: #e9631a;
  box-shadow: 0 0 0 3px rgba(233, 99, 26, 0.15);
}
.ohe-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.ohe-block textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cfd3d8;
  border-radius: 10px;
  resize: vertical;
}
.ohe-section {
  border: 1px solid #edf0f3;
  padding: 12px;
  border-radius: 12px;
  margin: 12px 0;
}
.ohe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ohe-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #e9ecef;
  border-radius: 999px;
  background: #fafbfc;
  font-size: 13px;
}
.ohe-divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 18px 0;
}
.ohe-dep {
  border: 1px dashed #d9dee3;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
  background: #fff;
}
.ohe-dep h4 {
  margin: 0 0 8px 0;
}
.ohe-dep .ohe-remove-dep {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.ohe-btn,
.ohe-primary,
.ohe-remove-dep {
  transition: 0.2s ease;
}
.ohe-primary,
.ohe-btn,
.ohe-modal-ok {
  background: #e9631a;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.ohe-primary:hover,
.ohe-btn:hover,
.ohe-modal-ok:hover {
  background: #cc5516;
}
.ohe-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d4edda;
  background: #f3fbf5;
  color: #155724;
}
.ohe-error {
  border-color: #f5c6cb;
  background: #fdecec;
  color: #721c24;
}
@media (max-width: 720px) {
  .ohe-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal */
.ohe-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

/* Shadow removed completely and overridden even for JS inline styles.
   pointer-events:none ensures the overlay does not block clicks (OK button etc.) */
.ohe-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  z-index: 1000 !important;
  pointer-events: none !important;
}
/* Inline-style override catch */
.ohe-overlay[style] {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  pointer-events: none !important;
}

.ohe-modal-box {
  position: relative;
  max-width: 420px;
  margin: 10vh auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  animation: oheFadeIn 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  /* Ensure modal box sits on top of overlay inside modal stacking context */
  z-index: 1001 !important;
}
.ohe-modal-logo {
  max-width: 180px;
  margin: 6px auto 10px;
  display: block;
}
.ohe-modal-box h4 {
  margin: 6px 0 6px;
  font-size: 20px;
}
.ohe-modal-box p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #333;
}
@keyframes oheFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Admin analytics layout */
.ohe-analytics-filters {
  margin: 12px 0 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ohe-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.ohe-card {
  background: #e9631a;
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.ohe-card-title {
  font-size: 12px;
  opacity: 0.95;
}
.ohe-card-num {
  font-size: 28px;
  font-weight: 700;
  margin-top: 6px;
}
@media (max-width: 1100px) {
  .ohe-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ohe-graphs {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .ohe-graphs {
    grid-template-columns: 1fr;
  }
}
.ohe-graph {
  background: #fff;
  padding: 10px;
  border: 1px solid #eef1f4;
  border-radius: 12px;
}
