/* =====================================================================
   1. THIẾT LẬP CƠ BẢN & CÔ LẬP CSS (#gsc-app) TỐI ƯU NHÚNG IFRAME (~780px)
   ===================================================================== */
html,
body {
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#gsc-app {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px;
  box-sizing: border-box;
}

#gsc-app *,
#gsc-app *::before,
#gsc-app *::after {
  box-sizing: border-box;
}

#gsc-app .gsc-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =====================================================================
   2. HEADER CÔNG KHAI (KHÔNG HIỂN THỊ BẤT KỲ NÚT ADMIN NÀO)
   ===================================================================== */
#gsc-app .gsc-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

#gsc-app .gsc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

#gsc-app .gsc-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ea580c, #d97706);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

#gsc-app .gsc-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =====================================================================
   2B. KHỐI GIỚI THIỆU QUỸ & QR SỐ TÀI KHOẢN NHẬN ĐÓNG GÓP
   ===================================================================== */
#gsc-app .gsc-identity-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 60%, #f8fafc 100%);
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.06);
}

@media (max-width: 660px) {
  #gsc-app .gsc-identity-card {
    grid-template-columns: 1fr;
  }
}

#gsc-app .gsc-fund-desc {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
  white-space: pre-line;
}

#gsc-app .gsc-qr-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

#gsc-app .gsc-qr-img-wrap {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

#gsc-app .gsc-qr-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#gsc-app .gsc-bank-meta {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #475569;
}

#gsc-app .gsc-stk-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.03em;
  margin: 2px 0;
  word-break: break-all;
}

#gsc-app .gsc-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#gsc-app .gsc-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  user-select: none;
  cursor: default;
}

#gsc-app .gsc-public-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

#gsc-app .gsc-sync-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 12px;
  color: #64748b;
}

#gsc-app .gsc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

#gsc-app .gsc-pill-live {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

#gsc-app .gsc-pill-verified {
  background: #eff6ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

#gsc-app .gsc-pill-warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

#gsc-app .gsc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

#gsc-app .gsc-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#gsc-app .gsc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.2;
}

#gsc-app .gsc-btn:hover {
  transform: translateY(-1px);
}

#gsc-app .gsc-btn-sync {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

#gsc-app .gsc-btn-outline {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}

#gsc-app .gsc-btn-amber {
  background: linear-gradient(135deg, #ea580c, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

#gsc-app .gsc-btn-blue {
  background: #0284c7;
  color: #ffffff;
}

#gsc-app .gsc-btn-dark {
  background: #0f172a;
  color: #ffffff;
}

#gsc-app .gsc-btn-danger {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

/* =====================================================================
   3. LƯỚI 4 THẺ KPI TỔNG QUAN (2x2 TRÊN ~780px, 1 CỘT TRÊN MOBILE)
   ===================================================================== */
#gsc-app .gsc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 540px) {
  #gsc-app .gsc-kpi-grid {
    grid-template-columns: 1fr;
  }
}

#gsc-app .gsc-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

#gsc-app .gsc-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#gsc-app .gsc-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

#gsc-app .gsc-kpi-val {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 5px;
  letter-spacing: -0.02em;
}

#gsc-app .gsc-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#gsc-app .gsc-kpi-foot {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px dashed #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

/* =====================================================================
   4. THẺ NỘI DUNG CHUẨN & BIỂU ĐỒ SVG/HTML
   ===================================================================== */
#gsc-app .gsc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

#gsc-app .gsc-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

#gsc-app .gsc-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

#gsc-app .gsc-card-sub {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #64748b;
}

#gsc-app .gsc-svg-wrap {
  width: 100%;
  overflow-x: auto;
}

#gsc-app .gsc-svg-chart {
  width: 100%;
  min-width: 500px;
  height: 220px;
  display: block;
}

#gsc-app .gsc-bar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#gsc-app .gsc-flow-row {
  display: grid;
  grid-template-columns: 92px 1fr 185px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  font-size: 12px;
}

@media (max-width: 560px) {
  #gsc-app .gsc-flow-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

#gsc-app .gsc-dual-track {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 240px;
  width: 100%;
}

#gsc-app .gsc-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

#gsc-app .gsc-fill-in {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 999px;
}

#gsc-app .gsc-fill-out {
  height: 100%;
  background: linear-gradient(90deg, #fb7185, #e11d48);
  border-radius: 999px;
}

/* =====================================================================
   5. CHỨNG THƯ KIỂM TOÁN ĐA TẦNG (SHEETS ↔ DRIVE BACKUP ↔ MEGA ARCHIVE)
   ===================================================================== */
#gsc-app .gsc-audit-banner {
  border: 1px solid #bae6fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

#gsc-app .gsc-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 680px) {
  #gsc-app .gsc-tiers-grid {
    grid-template-columns: 1fr;
  }
}

#gsc-app .gsc-tier-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

#gsc-app .gsc-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

#gsc-app .gsc-tier-desc {
  font-size: 12px;
  color: #475569;
  margin: 0;
}

#gsc-app .gsc-drive-files {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#gsc-app .gsc-drive-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
}

#gsc-app .gsc-btn-disabled {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  cursor: default !important;
  pointer-events: none;
  transform: none !important;
}

#gsc-app .gsc-registry-wrap {
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  background: #ffffff;
}

#gsc-app table.gsc-registry-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

#gsc-app table.gsc-registry-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  padding: 9px 11px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  text-transform: uppercase;
}

#gsc-app table.gsc-registry-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

#gsc-app table.gsc-registry-table tr:last-child td {
  border-bottom: none;
}

#gsc-app .gsc-input-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

#gsc-app .gsc-input-group .gsc-input {
  flex: 1;
}

/* =====================================================================
   5B. NHẬT KÝ HÀNH TRÌNH THIỆN NGUYỆN GSC (TRỎ VỀ LUCSAC.VN)
   ===================================================================== */
#gsc-app .gsc-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 680px) {
  #gsc-app .gsc-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  #gsc-app .gsc-blog-grid {
    grid-template-columns: 1fr;
  }
}

#gsc-app .gsc-blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#gsc-app .gsc-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  border-color: #fed7aa;
}

#gsc-app .gsc-blog-thumb {
  width: 100%;
  height: 128px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gsc-app .gsc-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#gsc-app .gsc-blog-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

#gsc-app .gsc-blog-body {
  padding: 11px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

#gsc-app .gsc-blog-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#gsc-app .gsc-blog-title:hover {
  color: #ea580c;
}

#gsc-app .gsc-blog-excerpt {
  font-size: 11.5px;
  color: #64748b;
  margin: 4px 0 0 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#gsc-app .gsc-blog-foot {
  padding-top: 8px;
  border-top: 1px dashed #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
}

/* =====================================================================
   6. BẢNG SAO KÊ & BỘ LỌC
   ===================================================================== */
#gsc-app .gsc-filters {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  #gsc-app .gsc-filters {
    grid-template-columns: 1fr;
  }
}

#gsc-app .gsc-input,
#gsc-app .gsc-select,
#gsc-app .gsc-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

#gsc-app .gsc-input,
#gsc-app .gsc-select {
  height: 38px;
  padding: 0 12px;
}

#gsc-app .gsc-textarea {
  padding: 12px;
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  resize: vertical;
}

#gsc-app .gsc-input:focus,
#gsc-app .gsc-select:focus,
#gsc-app .gsc-textarea:focus {
  background: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14);
}

#gsc-app .gsc-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

#gsc-app table.gsc-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

#gsc-app table.gsc-table th {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 11px 12px;
  border-bottom: 1px solid #cbd5e1;
  white-space: nowrap;
}

#gsc-app table.gsc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

#gsc-app table.gsc-table tr:last-child td {
  border-bottom: none;
}

#gsc-app table.gsc-table tr:hover td {
  background: #f8fafc;
}

#gsc-app tr.gsc-row-out td {
  background: #fff1f2;
}

#gsc-app tr.gsc-row-item td {
  background: #fffbeb;
}

#gsc-app .gsc-right {
  text-align: right;
  white-space: nowrap;
}

#gsc-app .gsc-center {
  text-align: center;
}

#gsc-app .gsc-table-foot {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #475569;
}

#gsc-app .gsc-page-btn {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#gsc-app .gsc-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* =====================================================================
   7. CỔNG QUẢN TRỊ ADMIN (ẨN MẶC ĐỊNH - CHỈ HIỆN SAU KHI XÁC THỰC PIN)
   ===================================================================== */
#gsc-admin-panel {
  display: none;
  background: #ffffff;
  border: 2px solid #0284c7;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
}

#gsc-admin-panel.gsc-open {
  display: block;
}

#gsc-app .gsc-admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 14px;
}

#gsc-app .gsc-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
}

#gsc-app .gsc-admin-tab {
  padding: 8px 13px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

#gsc-app .gsc-admin-tab.gsc-active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#gsc-app .gsc-tab-pane {
  display: none;
}

#gsc-app .gsc-tab-pane.gsc-active {
  display: block;
}

#gsc-app .gsc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 580px) {
  #gsc-app .gsc-form-grid {
    grid-template-columns: 1fr;
  }
}

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

/* =====================================================================
   8. MODAL NHẬP MÃ PIN BÍ MẬT & THÔNG BÁO TOAST
   ===================================================================== */
#gsc-pin-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#gsc-pin-modal.gsc-open {
  display: flex;
}

#gsc-app .gsc-modal-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.25);
}

#gsc-toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 10000;
}

#gsc-toast.gsc-show {
  opacity: 1;
  transform: translateY(0);
}

#gsc-app .gsc-footer {
  text-align: center;
  font-size: 11.5px;
  color: #64748b;
  padding: 4px 0;
}

/* =====================================================================
   9. TRANG CHỨNG NHẬN KIỂM TOÁN ĐỘC LẬP (chung-nhan.html) & CHẾ ĐỘ IN
   ===================================================================== */
#gsc-app .gsc-cert-sheet {
  border: 1.5px solid #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

#gsc-app .gsc-cert-seal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

#gsc-app .gsc-cert-main-title {
  margin: 4px 0 0 0;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}

#gsc-app .gsc-cert-stamp {
  border: 2.5px solid #059669;
  color: #047857;
  background: #ecfdf5;
  border-radius: 12px;
  padding: 8px 14px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.14);
}

#gsc-app .gsc-cert-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 580px) {
  #gsc-app .gsc-cert-summary-grid {
    grid-template-columns: 1fr;
  }
}

#gsc-app .gsc-cert-stat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

@media print {
  body {
    background: #ffffff !important;
  }

  #gsc-app .gsc-header-actions,
  #gsc-toast {
    display: none !important;
  }

  #gsc-app .gsc-card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
}

/* =====================================================================
   10. BIỂU MẪU ĐỀ XUẤT HỖ TRỢ & HỘP THƯ TIẾP NHẬN (PUBLIC + ADMIN)
   ===================================================================== */
#gsc-app .gsc-mb-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#gsc-app .gsc-mb-card.gsc-mb-admin {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

#gsc-app .gsc-mb-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#gsc-app .gsc-mb-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 6px;
}

#gsc-app .gsc-mb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

#gsc-app .gsc-mb-st-new {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

#gsc-app .gsc-mb-st-verifying {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

#gsc-app .gsc-mb-st-approved {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

#gsc-app .gsc-mb-st-completed {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

#gsc-app .gsc-mb-st-rejected {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

#gsc-app .gsc-mb-admin-controls {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  display: grid;
  grid-template-columns: 190px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

@media (max-width: 720px) {
  #gsc-app .gsc-mb-admin-controls {
    grid-template-columns: 1fr;
  }
}