.audit-mis-page {
  max-width: 1600px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.audit-page-header {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 22px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #064e3b, #15803d 58%, #22c55e);
  box-shadow: 0 20px 42px rgba(6, 78, 59, 0.20);
}

.audit-page-header h2 {
  margin: 8px 0 7px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.audit-page-header p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.7;
}

.audit-header-label,
.audit-readonly-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audit-readonly-badge {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.audit-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.audit-overview-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.audit-overview-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #08752f;
  background: rgba(34, 197, 94, 0.13);
  font-size: 21px;
}

.audit-overview-card span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-color);
  font-size: 12px;
  font-weight: 800;
}

.audit-overview-card strong {
  color: var(--text-color);
  font-size: 26px;
  font-weight: 950;
}

.audit-section-heading {
  margin-bottom: 16px;
}

.audit-section-heading h3 {
  margin: 0;
  color: var(--text-color);
  font-size: 20px;
  font-weight: 950;
}

.audit-section-heading p {
  margin: 5px 0 0;
  color: var(--muted-color);
  font-size: 13px;
}

.audit-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.audit-module-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audit-module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.audit-module-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.audit-module-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #ffffff;
  background: linear-gradient(135deg, #08752f, #22c55e);
  font-size: 19px;
}

.audit-module-status {
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 11px;
  font-weight: 900;
}

.audit-module-card h4 {
  margin: 18px 0 8px;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 950;
}

.audit-module-card > p {
  min-height: 65px;
  margin: 0 0 17px;
  color: var(--muted-color);
  font-size: 13px;
  line-height: 1.65;
}

.audit-mini-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.audit-mini-stat-row > div,
.audit-workflow-list > div {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.08);
}

.audit-mini-stat-row span,
.audit-workflow-list span {
  display: block;
  color: var(--muted-color);
  font-size: 11px;
  font-weight: 800;
}

.audit-mini-stat-row strong {
  display: block;
  margin-top: 3px;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 950;
}

.audit-workflow-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.audit-workflow-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.audit-workflow-list strong {
  color: var(--text-color);
  font-size: 15px;
  font-weight: 950;
}

.audit-module-button {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #08752f, #22c55e);
  font-size: 12px;
  font-weight: 900;
}

.audit-module-button:disabled {
  color: var(--muted-color);
  background: rgba(100, 116, 139, 0.12);
  cursor: not-allowed;
}

.audit-information-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  margin-top: 22px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  color: var(--text-color);
  background: rgba(59, 130, 246, 0.08);
}

.audit-information-note i {
  margin-top: 2px;
  color: #2563eb;
}

.audit-information-note strong {
  font-weight: 950;
}

.audit-information-note p {
  margin: 4px 0 0;
  color: var(--muted-color);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 1250px) {
  .audit-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .audit-page-header {
    flex-direction: column;
    padding: 22px;
  }

  .audit-overview-grid,
  .audit-module-grid {
    grid-template-columns: 1fr;
  }
}
