:root {
  --report-primary: #008f91;
  --report-primary-dark: #007779;
  --report-primary-soft: #e7f5f4;
  --report-ink: #202b3c;
  --report-muted: #667085;
  --report-line: #d9e1e8;
  --report-bg: #f6f8fa;
}

html,
body {
  font-family: "Mitr", "Sarabun", "Noto Sans Thai", Tahoma, sans-serif;
}

body {
  background: var(--report-bg);
  color: var(--report-ink);
}

#m_header {
  height: 90px !important;
}

#m_header .m-header__top {
  height: 90px;
  background: #fff;
}

#m_header .m-header__bottom {
  display: none;
}

#m_header .m-brand__logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

#m_header .m-brand__logo-wrapper::after {
  content: "กรมควบคุมโรค\Aกระทรวงสาธารณสุข";
  white-space: pre;
  color: #202b3c;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

#m_header .m-topbar__welcome::before {
  margin-right: 9px;
  color: var(--report-primary);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f023";
}

#m_header .m-topbar__welcome {
  color: var(--report-primary) !important;
  font-weight: 600;
}

.report-page {
  width: 100%;
  padding-top: 90px;
}

.report-hero {
  position: relative;
  overflow: hidden;
  min-height: 82px;
  background: var(--report-primary);
  color: #fff;
}

.report-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  opacity: 0.22;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.7) 1px,
    transparent 1.5px
  );
  background-size: 10px 10px;
  mask-image: linear-gradient(110deg, transparent 4%, #000 72%);
}

.report-container {
  width: min(100% - 60px, 1280px);
  margin: 0 auto;
}

.report-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 82px;
}

.report-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
}

.report-breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 0;
  color: #68778a;
  font-size: 1rem;
}

.report-breadcrumb a {
  color: #68778a;
  text-decoration: none;
}

.report-breadcrumb a:hover {
  color: var(--report-primary);
}

.report-breadcrumb .is-current {
  color: var(--report-primary-dark);
  font-weight: 600;
}

.report-panel {
  overflow: hidden;
  margin-bottom: 42px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 8px rgba(31, 48, 67, 0.07);
}

.report-panel__body {
  padding: 30px 32px 24px;
}

.report-panel__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--report-line);
}

.report-panel__heading-icon {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--report-primary-soft);
  color: var(--report-primary);
  font-size: 1.45rem;
}

.report-panel__heading h2 {
  margin: 0 0 3px;
  color: var(--report-ink);
  font-size: 1.28rem;
  font-weight: 700;
}

.report-panel__heading p {
  margin: 0;
  color: var(--report-muted);
  font-size: 0.96rem;
}

.report-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px 28px;
  padding-top: 26px;
}

.report-field {
  grid-column: span 3;
  min-width: 0;
}

.report-field--wide {
  grid-column: span 4;
}

.report-field label {
  display: block;
  margin: 0 0 8px;
  color: #344054;
  font-size: 0.96rem;
  font-weight: 600;
}

.report-control {
  position: relative;
}

.report-control__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
  color: var(--report-primary);
  font-size: 1.05rem;
  pointer-events: none;
}

.report-control .form-control {
  width: 100%;
  height: 54px !important;
  padding: 0 42px 0 48px;
  border: 1px solid var(--report-line);
  border-radius: 8px;
  background-color: #fff;
  color: #344054;
  font-family: "Mitr", "Sarabun", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: 0.98rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.report-control .form-control:hover {
  border-color: #aab8c5;
}

.report-control .form-control:focus {
  border-color: var(--report-primary);
  box-shadow: 0 0 0 3px rgba(0, 143, 145, 0.14);
}

.report-panel__actions {
  display: flex;
  gap: 12px;
  padding: 22px 32px 26px;
  border-top: 1px solid var(--report-line);
}

.report-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: "Mitr", "Sarabun", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.report-btn:hover {
  transform: translateY(-1px);
}

.report-btn:focus {
  outline: 3px solid rgba(0, 143, 145, 0.2);
  outline-offset: 2px;
}

.report-btn--primary {
  min-width: 204px;
  background: var(--report-primary);
  color: #fff;
}

.report-btn--primary:hover {
  background: var(--report-primary-dark);
  color: #fff;
}

.report-btn--secondary {
  min-width: 160px;
  border-color: var(--report-line);
  background: #fff;
  color: #526174;
}

.report-btn--secondary:hover {
  border-color: #aab8c5;
  background: #f8fafb;
}

.report-required {
  margin-left: 3px;
  color: #c23b3b;
}

@media (max-width: 991px) {
  .report-container {
    width: calc(100% - 40px);
  }
  .report-field,
  .report-field--wide {
    grid-column: span 6;
  }
}

@media (max-width: 575px) {
  .report-container {
    width: calc(100% - 40px);
  }
  .report-hero,
  .report-hero__inner {
    min-height: 70px;
  }
  .report-hero h1 {
    font-size: 1.5rem;
  }
  .report-breadcrumb {
    padding: 20px 0;
  }
  .report-panel__body {
    padding: 24px 18px 20px;
  }
  .report-panel__heading {
    align-items: flex-start;
  }
  .report-fields {
    gap: 18px;
    padding-top: 22px;
  }
  .report-field,
  .report-field--wide {
    grid-column: 1 / -1;
  }
  .report-panel__actions {
    flex-direction: column;
    padding: 20px 18px 22px;
  }
  .report-btn {
    width: 100%;
  }
  #m_header .m-brand__logo-wrapper::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-control .form-control,
  .report-btn {
    transition: none;
  }
}
