/**
 * Chuyên trang Hệ thống Quản lý Chất lượng TCVN ISO 9001:2015 - UBND xã Long Hưng
 * Thiết kế đồng bộ 100% với BK Portal Theme (longhung.hungyen.gov.vn)
 */

:root {
  --iso-primary: var(--primary-color, #033a7e);
  --iso-primary-hover: var(--primary-hover, #022c61);
  --iso-primary-dark: var(--primary-dark, #022147);
  --iso-gold: var(--accent-gold, #d4a017);
  --iso-gold-dark: var(--accent-gold-dark, #b8860b);
  --iso-sky: #0284c7;
  --iso-green: #16a34a;
  --iso-red: #dc2626;
  --iso-bg: var(--bg-body, #f4f6f9);
  --iso-card-bg: #ffffff;
  --iso-border: var(--border-color, #e2e8f0);
  --iso-text: var(--text-main, #2d3748);
  --iso-heading: var(--text-heading, #1a202c);
  --iso-muted: var(--text-muted, #64748b);
}

.iso-portal-wrap {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
  color: var(--iso-text);
  padding-bottom: 40px;
}

/* ==========================================================================
   1. HERO BANNER (Mở rộng chuẩn .cds-hero-card của BK Portal)
   ========================================================================== */
.iso-hero-card {
  background: linear-gradient(135deg, #071936 0%, #033a7e 58%, #026aa7 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 26px 30px 22px;
  box-shadow: 0 10px 28px rgba(3, 58, 126, 0.22);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 24px;
}

.iso-hero-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.22) 0%, rgba(56, 189, 248, 0.1) 45%, transparent 70%);
  pointer-events: none;
}

.iso-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.iso-hero-text {
  flex: 1;
}

.iso-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.iso-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 160, 23, 0.22);
  color: #fde047;
  border: 1px solid rgba(253, 224, 71, 0.4);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.iso-badge-pill.badge-sky {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.35);
}

.iso-hero-title {
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.iso-hero-motto {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #fde047;
  padding: 6px 12px;
  border-radius: 0 4px 4px 0;
  color: #fef08a;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.iso-hero-subtitle {
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  max-width: 780px;
}

.iso-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex-shrink: 0;
  min-width: 310px;
}

.iso-stat-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 14px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.iso-stat-chip i {
  font-size: 22px;
  color: #fde047;
  width: 26px;
  text-align: center;
}

.iso-stat-chip strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.iso-stat-chip small {
  font-size: 11.5px;
  color: #cbd5e1;
}

/* Quick Nav Tabs */
.iso-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  position: relative;
  z-index: 2;
}

.iso-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.iso-nav-btn:hover,
.iso-nav-btn.active {
  background: #ffffff;
  color: #033a7e !important;
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.iso-nav-btn .nav-count {
  background: rgba(253, 224, 71, 0.25);
  color: #fef08a;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.iso-nav-btn:hover .nav-count,
.iso-nav-btn.active .nav-count {
  background: #033a7e;
  color: #ffffff;
}

/* ==========================================================================
   2. SECTION CARDS & HEADERS
   ========================================================================== */
.iso-section-card {
  background: var(--iso-card-bg);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--iso-border);
  padding: 20px 22px;
  margin-bottom: 24px;
  scroll-margin-top: 20px;
}

.iso-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid var(--iso-border);
  padding-bottom: 11px;
  margin-bottom: 18px;
}

.iso-sec-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--iso-primary);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  position: relative;
}

.iso-sec-title i {
  color: var(--iso-sky);
  font-size: 18px;
}

.iso-sec-sub {
  font-size: 13px;
  color: var(--iso-muted);
}

/* ==========================================================================
   3. KHU VỰC 1: VĂN BẢN CÔNG BỐ, CHÍNH SÁCH & MỤC TIÊU CHẤT LƯỢNG
   ========================================================================== */
.iso-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.iso-legal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--iso-primary);
  border-radius: 6px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.iso-legal-card:hover {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(3, 58, 126, 0.09);
  transform: translateY(-2px);
}

.iso-legal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.iso-legal-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--iso-primary);
}

.iso-legal-meta {
  font-size: 12px;
  color: var(--iso-muted);
  font-weight: 600;
}

.iso-legal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--iso-heading);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.iso-legal-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 14px 0;
}

.iso-legal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.iso-signer {
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}

.iso-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.iso-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.iso-btn-primary {
  background: var(--iso-primary);
  color: #ffffff !important;
}

.iso-btn-primary:hover {
  background: var(--iso-primary-hover);
  color: #ffffff !important;
}

.iso-btn-outline {
  background: #ffffff;
  color: var(--iso-primary) !important;
  border-color: #cbd5e1;
}

.iso-btn-outline:hover {
  background: #f1f5f9;
  border-color: var(--iso-primary);
}

.iso-btn-gold {
  background: #fef9c3;
  color: #854d0e !important;
  border-color: #fde047;
}

.iso-btn-gold:hover {
  background: #fde047;
  color: #713f12 !important;
}

.iso-btn-green {
  background: #dcfce7;
  color: #166534 !important;
  border-color: #86efac;
}

.iso-btn-green:hover {
  background: #16a34a;
  color: #ffffff !important;
}

/* Policy & Objectives Split Box */
.iso-policy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.iso-policy-box {
  background: linear-gradient(to bottom right, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 18px;
}

.iso-policy-box h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--iso-primary);
  text-transform: uppercase;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.iso-commitment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.iso-commitment-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 9px;
}

.iso-commitment-list li .num-badge {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--iso-primary);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.iso-commitment-list.obj-list li .num-badge {
  background: var(--iso-green);
}

/* ==========================================================================
   4. KHU VỰC 2: TRUNG TÂM TRA CỨU 401 QUY TRÌNH TTHC & 319 BIỂU MẪU
   ========================================================================== */
.iso-dept-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.iso-dept-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.iso-dept-card:hover,
.iso-dept-card.active {
  background: #eff6ff;
  border-color: var(--iso-sky);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.iso-dept-card.active::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--iso-sky);
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iso-dept-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.iso-dept-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--iso-primary);
}

.iso-dept-count {
  background: var(--iso-primary);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.iso-dept-leader {
  font-size: 12px;
  color: #475569;
  margin-bottom: 6px;
}

.iso-dept-fields {
  font-size: 11.5px;
  color: var(--iso-muted);
  line-height: 1.45;
}

/* Field Pills Grid (11 Lĩnh vực) */
.iso-field-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.iso-field-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.iso-field-pill:hover {
  background: #e2e8f0;
  color: var(--iso-primary);
}

.iso-field-pill.active {
  background: var(--iso-primary);
  border-color: var(--iso-primary);
  color: #ffffff;
}

.iso-field-pill .pill-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.iso-field-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Filter Form Bar (Đồng bộ .doc-filter-card trên trang /van-ban/) */
.iso-filter-bar {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 18px;
}

.iso-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.4fr 1.4fr auto;
  gap: 12px;
  align-items: end;
}

.iso-filter-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.iso-filter-field input,
.iso-filter-field select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13px;
  color: #1e293b;
  background: #ffffff;
  transition: border-color 0.2s;
}

.iso-filter-field input:focus,
.iso-filter-field select:focus {
  outline: none;
  border-color: var(--iso-sky);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.iso-filter-actions {
  display: flex;
  gap: 8px;
}

.iso-reset-btn {
  height: 38px;
  padding: 0 14px;
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.iso-reset-btn:hover {
  background: #cbd5e1;
}

/* Toolbar & Result Counter */
.iso-results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #475569;
}

.iso-results-count strong {
  color: var(--iso-primary);
  font-size: 15px;
}

/* Procedures Table */
.iso-table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.iso-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 13px;
}

.iso-table thead th {
  background: #033a7e;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 11px 12px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #022c61;
  white-space: nowrap;
}

.iso-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.15s ease;
}

.iso-table tbody tr:hover {
  background-color: #f0f9ff;
}

.iso-table td {
  padding: 12px;
  vertical-align: top;
  color: #334155;
}

.iso-code-badge {
  display: inline-block;
  background: #eff6ff;
  color: #033a7e;
  border: 1px solid #bfdbfe;
  font-family: monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.iso-proc-title-link {
  font-size: 13.8px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: block;
  margin-bottom: 5px;
  line-height: 1.4;
}

.iso-proc-title-link:hover {
  color: var(--iso-sky);
  text-decoration: underline;
}

.iso-proc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
}

.iso-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 4px;
}

.iso-tag.tag-dept {
  background: #fef3c7;
  color: #92400e;
}

.iso-time-cell {
  font-size: 12.5px;
  color: #334155;
  max-width: 210px;
  line-height: 1.45;
}

.iso-fee-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
  padding: 1px 6px;
  border-radius: 4px;
}

.iso-action-cell {
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Pagination */
.iso-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.iso-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.iso-page-btn:hover:not(:disabled) {
  border-color: var(--iso-primary);
  color: var(--iso-primary);
}

.iso-page-btn.active {
  background: var(--iso-primary);
  border-color: var(--iso-primary);
  color: #ffffff;
}

.iso-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ==========================================================================
   5. KHU VỰC 3 & 4: MÔ HÌNH HỆ THỐNG, 04 PHỤ LỤC & 05 QUY TRÌNH NỘI BỘ
   ========================================================================== */
.iso-appendices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.iso-appendix-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.iso-appendix-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--iso-primary);
  margin: 0 0 6px 0;
}

.iso-appendix-card p {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.iso-internal-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.iso-internal-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 6px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.iso-internal-info {
  flex: 1;
  min-width: 280px;
}

.iso-internal-info h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0 6px 0;
}

.iso-internal-info p {
  font-size: 13px;
  color: #475569;
  margin: 0 0 6px 0;
  line-height: 1.5;
}

/* ==========================================================================
   6. KHU VỰC 5: PHIẾU KHẢO SÁT SỰ HÀI LÒNG CỦA CÔNG DÂN (PHỤ LỤC 03)
   ========================================================================== */
.iso-survey-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.iso-survey-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 18px 20px;
}

.iso-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.iso-form-group {
  margin-bottom: 14px;
}

.iso-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.iso-form-group input[type="text"],
.iso-form-group select,
.iso-form-group textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13px;
  background: #ffffff;
}

.iso-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.iso-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.iso-radio-label:hover {
  border-color: var(--iso-sky);
  background: #f0f9ff;
}

.iso-survey-sidebar {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 18px;
}

/* ==========================================================================
   7. MODAL XEM CHI TIẾT QUY TRÌNH & MODAL XEM PDF
   ========================================================================== */
.iso-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(3px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.iso-modal-backdrop.open {
  display: flex;
}

.iso-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: isoModalIn 0.2s ease-out;
}

@keyframes isoModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.iso-modal-header {
  background: linear-gradient(135deg, #033a7e 0%, #0284c7 100%);
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.iso-modal-header h3 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  margin: 4px 0 0 0;
}

.iso-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iso-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.iso-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}

.iso-meta-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.iso-meta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
}

.iso-meta-box small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 3px;
}

.iso-meta-box strong {
  font-size: 13px;
  color: #0f172a;
  line-height: 1.35;
  display: block;
}

.iso-detail-block {
  margin-bottom: 18px;
}

.iso-detail-block h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--iso-primary);
  text-transform: uppercase;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

/* Workflow Steps Timeline */
.iso-steps-timeline {
  position: relative;
  padding-left: 22px;
  border-left: 2px solid #0284c7;
  margin-left: 10px;
}

.iso-step-item {
  position: relative;
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 11px 14px;
}

.iso-step-badge {
  position: absolute;
  left: -34px;
  top: 10px;
  background: #033a7e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.iso-step-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
}

.iso-step-time {
  background: #e0f2fe;
  color: #0369a1;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11.5px;
}

.iso-step-desc {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.iso-modal-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
  .iso-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .iso-hero-stats {
    width: 100%;
  }
  .iso-legal-grid,
  .iso-policy-split,
  .iso-dept-cards,
  .iso-appendices-grid,
  .iso-survey-grid {
    grid-template-columns: 1fr;
  }
  .iso-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .iso-meta-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .iso-filter-grid,
  .iso-hero-stats,
  .iso-form-row,
  .iso-meta-cards {
    grid-template-columns: 1fr;
  }
  .iso-hero-title {
    font-size: 20px;
  }
}
