:root {
  --cu-gold: #CFB87C;
  --cu-black: #000000;
  --cu-dark-brown: #2d2926;
  /* Deep dark brown/black specialized text */
  --app-sidebar-bg: #1e1e2d;
  --app-accent: #CFB87C;
  --app-text: #e0e0e0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f0f2f5;
  height: 100vh;
  overflow: hidden;
}


.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width, 420px) minmax(0, 1fr);
  height: 100vh;
  width: 100%;
  overflow: hidden;
}


/* SIDEBAR */

.sidebar {
  container-type: inline-size;
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--app-sidebar-bg);
  color: var(--app-text);
  padding: 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}


.brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--app-accent);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-group {
  margin-bottom: 30px;
}

.control-group h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b6b7b;
}



.btn {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  text-align: left;
  margin-bottom: 15px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn.primary {
  background-color: var(--app-accent);
  color: var(--cu-black);
  font-weight: 700;
}

.btn.primary:hover {
  filter: brightness(1.1);
}

.btn.secondary {
  background-color: #2b2b3d;
  color: #fff;
}

.btn.secondary:hover {
  background-color: #3b3b4f;
}

.btn.highlight {
  background-color: transparent;
  border: 1px solid var(--app-accent);
  color: var(--app-accent);
}

.btn.highlight:hover {
  background-color: rgba(207, 184, 124, 0.1);
}

.status-panel {
  margin-top: auto;
  background-color: #252536;
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid var(--app-accent);
}

.status-panel h4 {
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: #888;
}

.status-panel .info-row {
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.status-panel .info-row span:first-child {
  color: #aaa;
}

/* PREVIEW AREA */
/* ===============================
   PREVIEW ENGINE V2
================================= */
.preview-shell-v2 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #525659;
}

.preview-toolbar-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #323639;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-height: 10;
  position: relative;
}

.preview-viewport-v2 {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
  box-sizing: border-box;
}

.preview-stage-v2 {
  transform-origin: top center;
  will-change: transform;
}

.document-stack-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 24px;
  width: max-content;
}

.document-page-v2 {
  width: 794px;
  min-height: 1123px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  color: #111;
}

/* Footer Contact V2 Normalization */
.footer-contact-v2 {
  color: var(--footer-contact-color, inherit) !important;
}

.footer-contact-v2,
.footer-contact-v2 * {
  color: inherit !important;
}

.footer-contact-v2 a,
.footer-contact-v2 a:visited,
.footer-contact-v2 a:hover,
.footer-contact-v2 a:active,
.footer-contact-v2 a:focus {
  color: inherit !important;
  text-decoration: none !important;
}

.a4-page {
  width: 210mm;
  height: 297mm;
  background: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  color: var(--cu-black);
}

.page-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  z-index: 2;
}

/* Top Color Bars */
.top-bar-black {
  position: absolute;
  top: 8mm;
  left: 0;
  right: 0;
  width: 100%;
  height: 15mm;
  background-color: var(--cu-black);
  z-index: 1;
}

.top-bar-gold {
  position: absolute;
  top: 8mm;
  right: 0;
  left: 40%;
  height: 15mm;
  background-color: var(--cu-gold);
  z-index: 2;
}


/* Document Header Elements */
.cu-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  padding-bottom: 10px;
  margin-top: 15mm;
}

/* Image Logo Handling */
.header-logo-img {
  max-height: 140px !important;
  max-width: 700px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 10px auto 25px auto !important;
}

.logo-fallback-text {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  color: var(--brand-primary, #333);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.signature-img {
  height: 80px;
  width: auto;
  display: block;
  margin-bottom: 10px;
  margin-left: -10px;
}

/* Titles - Requested: Dark Brown & Bigger */
/* 
   Old section-title: 22px -> New: 33px (+50%)
   Old doc-title-large: 32px -> New: 48px (+50%)
*/
.section-title,
.doc-title {
  color: var(--cu-dark-brown) !important;
  font-weight: 900 !important;
}

.section-title {
  text-align: center;
  font-size: 33px;
  margin: 30px 0;
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
}

.doc-title {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 42px;
  /* Increased from 28px */
  margin: 35px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Info Boxes */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.info-box {
  background-color: #f2efe9;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.info-box h3 {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  text-align: left;
}

.info-box .row {
  margin-bottom: 5px;
  font-size: 14px;
  text-align: left;
}

.info-box .label {
  font-weight: 700;
  margin-right: 5px;
}

/* Tables */
.cu-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.cu-table thead {
  border-bottom: 2px solid #000;
}

.cu-table th {
  color: #000000 !important;
  font-weight: 900 !important;
  padding: 10px;
  text-align: left;
  text-transform: uppercase;
}

.cu-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.cu-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.cu-table tr:nth-child(odd) {
  background-color: #f0ebe1;
}

.text-right {
  text-align: right;
}

.total-row {
  font-weight: 700;
  background-color: #e8dfcc !important;
}

/* Grid View Specifics */
#scheduleGridView th,
#scheduleGridView td {
  border: 1px solid #ccc;
  text-align: center;
  vertical-align: middle;
}

#scheduleGridView th:first-child,
#scheduleGridView td:first-child {
  text-align: left;
  background-color: #f0f0f0;
  /* Light gray for time column */
  border-right: 2px solid #999;
}

/* Footer Section */
.footer-disclaimer {
  text-align: center;
  font-size: 12px;
  color: #000;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  z-index: 10;
}

/* ENROLLMENT LETTER SPECIFIC */
.cu-header-center {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cu-header-center .logo-box {
  margin-right: 0;
  margin-bottom: 10px;
}

.cu-header-center h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  color: #333;
  line-height: 1.2;
}

.sub-header {
  font-weight: 700;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.divider {
  width: 60%;
  height: 2px;
  background-color: black;
  margin: 15px 0;
}

.doc-title-large {
  text-align: center;
  font-size: 34px;
  /* Reduced from 48px (~30% reduction) */
  font-weight: 900;
  margin: 30px 0;
  color: var(--cu-dark-brown) !important;
}

/* Tuition Receipt Specific Shift */
#tuition .info-grid {
  text-align: left;
  font-size: 12px;
  color: #000;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  z-index: 10;
}

#tuition .section-title,
#tuition .cu-table,
#tuition .footer-disclaimer {
  text-align: center;
  font-size: 12px;
  color: #000;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  z-index: 10;
}

.letter-body {
  position: relative;
  z-index: 2;
  color: #111;
  overflow: visible;
  min-height: 300px;
  flex: 1 1 auto;
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.6;
  padding: 0 20px;
}

.letter-date-line,
.letter-re-line,
.student-id-line {
  margin: 3px 0 !important;
  line-height: 1.4;
}

.signature-area {
  margin-top: 40px;
}

.signature-font {
  font-family: 'Libre Baskerville', cursive;
  font-size: 36px;
  margin-bottom: 10px;
}

/* Page Footer Banner - REFACTORED to .base-page-footer at end of file */

/* SCHEDULE SPECIFIC */
.schedule-table th,
.schedule-table td {
  padding: 8px;
  border: 1px solid #ddd;
}

.schedule-table tr:nth-child(odd) {
  background-color: #eee;
}

.schedule-table tr:nth-child(even) {
  background-color: #fff;
}

.schedule-table thead {
  background-color: #222;
}

.semester-summary {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

@media print {
  body {
    background: none;
    height: auto;
    overflow: visible;
  }

  .sidebar,
  .preview-header {
    display: none;
  }

  .app-container {
    display: block;
  }

  /* ===============================
   PREVIEW ENGINE V2
================================= */
  .preview-shell-v2 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #525659;
  }

  .preview-toolbar-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #323639;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-height: 10;
    position: relative;
  }

  .preview-viewport-v2 {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    box-sizing: border-box;
  }

  .preview-stage-v2 {
    transform-origin: top center;
    will-change: transform;
  }

  .document-stack-v2 {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: max-content;
  }

  .document-page-v2 {
    width: 794px;
    min-height: 1123px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    color: #111;
  }

  /* Footer Contact V2 Normalization */
  .footer-contact-v2 {
    color: var(--footer-contact-color, inherit) !important;
  }

  .footer-contact-v2,
  .footer-contact-v2 * {
    color: inherit !important;
  }

  .footer-contact-v2 a,
  .footer-contact-v2 a:visited,
  .footer-contact-v2 a:hover,
  .footer-contact-v2 a:active,
  .footer-contact-v2 a:focus {
    color: inherit !important;
    text-decoration: none !important;
  }

  .a4-page {
    margin: 0;
    box-shadow: none;
    page-break-after: always;
  }
}


/* CAL POLY STYLES */
.calpoly-footer-banner {
  background: white !important;
}

.calpoly-footer-triangle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: #164734;
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  z-index: 0;
}

.calpoly-footer-text {
  z-index: 1;
  text-align: left !important;
}

.calpoly-footer-text p {
  margin: 2px 0;
  font-size: 12px;
  font-weight: 500;
  color: #164734 !important;
}

.calpoly-footer-text h2 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 700;
  color: #164734 !important;
}

/* Standardized Option Spacing */
.option-toggle label {
  margin-bottom: 10px !important;
}

.option-toggle label:last-child {
  margin-bottom: 0 !important;
}

/* User Customizations */
#downloadLogBtn {
  display: none !important;
}

#generateBtn {
  background-color: #01703d !important;
  color: white !important;
  /* Ensure text is readable */
}

/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 2000;
  background-color: var(--app-accent);
  color: var(--cu-black);
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* UNIVERSITY QR CODE */
.university-qr {
  position: absolute;
  top: calc(8mm + 25px);
  right: 30px;
  width: 70px;
  height: 70px;
  z-index: 20;
  border: 2px solid white;
  background-color: white;
  /* Optional: ensures transparent QRs have a background if needed, though border is requested */
}


/* --- Sidebar University List Styling --- */
.university-section,
.university-list-wrapper,
.country-section {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.university-toolbar {
  margin-bottom: 8px;
  width: 100%;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.tab-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-button.active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

.search-box {
  width: 100%;
  margin-bottom: 16px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.search-box::placeholder {
  color: #9ca3af;
}

.search-box:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.university-list-wrapper {
  width: 100%;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  box-sizing: border-box;
  background: transparent;
  border: none;
}

.university-list-wrapper::-webkit-scrollbar {
  width: 8px;
}

.university-list-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.university-list-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.university-list-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.university-list-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  justify-content: stretch;
  align-items: stretch;
  box-sizing: border-box;
}

@media (max-width: 1450px) {
  .university-list-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .university-list-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.country-section-title {
  margin: 18px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8fa1c7;
  grid-column: 1 / -1;
  width: 100%;
}

.country-section .university-list-v2 {
  width: 100%;
}

.university-item-v2 {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  min-height: 92px;
  height: 92px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
  transition: all 0.2s ease;
}

.university-item-v2:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.university-item-v2.selected {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.45);
}

.university-radio-v2 {
  flex-shrink: 0;
  margin-top: 2px;
  transform: scale(0.95);
}

.university-meta-v2 {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.university-name-v2 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.university-country-v2 {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
  color: #9ca3af;
  text-align: left;
  flex-shrink: 0;
}




.sidebar-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
}


.sidebar-resize-handle {
  width: 10px;
  cursor: col-resize;
  position: absolute;
  top: 0;
  right: -5px;
  bottom: 0;
  z-index: 20;
}


.sidebar-resize-handle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* FORM GRID REFACTOR */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: end;
}





.form-field {
  width: 100%;
  min-width: 0;
}

.custom-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #8fa1c7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.form-field input,
.form-field select,
.custom-input-row input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  font-size: 14px;
  transition: all 0.2s;
}

.custom-input-row input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.custom-input-row button {
  width: 44px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0;
  /* Override any global btn margin */
}

/* UNIVERSITIES GRID AUTO STYLES */
.university-grid-wrapper {
  width: 100%;
  max-height: 540px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  box-sizing: border-box;
}

.university-grid-wrapper::-webkit-scrollbar {
  width: 8px;
}

.university-grid-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.university-grid-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.country-section-auto {
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.university-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  width: 100%;
  align-items: stretch;
  justify-items: stretch;
  box-sizing: border-box;
}

.country-section-title-auto {
  margin: 18px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8fa1c7;
  width: 100%;
  display: block;
  grid-column: 1 / -1;
}

.university-card-auto {
  width: 100%;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
  transition: all 0.2s ease;
}

.university-card-auto:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.university-card-auto.selected {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.45);
}

.university-radio-auto {
  flex-shrink: 0;
  margin-top: 2px;
  transform: scale(0.92);
}

.university-meta-auto {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  overflow: hidden;
}

.university-name-auto {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.university-country-auto {
  margin: 0;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.1;
  color: #9ca3af;
  text-align: left;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* TEMPLATE AND SCHEDULE ROW */
.template-schedule-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  align-items: start;
}

.option-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #8fa1c7;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #ccc;
  font-size: 13px;
}

@media (max-width: 520px) {
  .template-schedule-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}


@container (max-width: 560px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 380px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.page-body {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  box-sizing: border-box;
  padding: calc(15mm + 8mm) 15mm 20px 15mm;
  width: 100%;
}

.base-page-footer {
  width: 100%;
  height: var(--footer-height, 104px);
  min-height: var(--footer-height, 104px);
  max-height: var(--footer-height, 104px);
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background-color: var(--brand-primary, #1a1a1a);
  color: var(--brand-secondary, #cfb87c);
  z-index: 10;
}

.footer-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  padding: 12px 28px;
  box-sizing: border-box;
  overflow: hidden;
}

.footer-left,
.footer-right,
.footer-contact {
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  color: inherit !important;
}

.footer-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  width: 100%;
  max-width: 100%;
  overflow: hidden;

  font-weight: 600;

  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.footer-title {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.base-page-footer h2 {

  font-weight: 700;

  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0;
  font-family: inherit;
  color: inherit !important;
}

.footer-contact p {
  margin: 2px 0 !important;
  color: inherit !important;
}

.footer-contact a {
  color: inherit !important;
  text-decoration: none !important;
}
/* ==================================================
   KA ALL IN ONE - CYBER UI OVERRIDE
================================================== */

body {
  background: linear-gradient(180deg, #03140f 0%, #06251c 60%, #02100b 100%) !important;
}

/* Glass cyber panel main container */
.sidebar, .sidebar.open {
  background: rgba(0, 35, 24, 0.85) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(0, 255, 140, 0.15) !important;
  box-shadow: 0 0 30px rgba(0, 255, 140, 0.15) !important;
  backdrop-filter: blur(10px) !important;
  color: #d6ffe9 !important;
  box-sizing: border-box !important;
}

.sidebar {
    max-height: calc(100vh - 36px) !important;
    margin: 18px !important;
}

/* If app-shell was strict flex, padding sidebar creates spacing */
.app-shell {
  background: transparent !important;
}

/* University List Cards */
.university-card-auto {
  background: rgba(0, 30, 20, 0.7) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0, 255, 140, 0.08) !important;
  padding: 14px !important;
  height: auto !important;
  min-height: 56px !important;
  transition: all .2s ease !important;
}

.university-card-auto:hover {
  border-color: rgba(0, 255, 140, 0.5) !important;
  box-shadow: 0 0 15px rgba(0, 255, 140, 0.25) !important;
}

.university-card-auto.selected {
  background: linear-gradient(90deg, rgba(0, 255, 140, 0.15), rgba(0, 255, 140, 0.05)) !important;
  border: 1px solid rgba(0, 255, 140, 0.6) !important;
}

/* Search Bar */
#uniSearch {
  background: rgba(0, 20, 15, 0.85) !important;
  border: 1px solid rgba(0, 255, 140, 0.15) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  color: #d6ffe9 !important;
  outline: none !important;
  transition: all .2s ease !important;
}

#uniSearch:focus {
  box-shadow: 0 0 8px rgba(0, 255, 140, 0.4) !important;
}

/* Input Fields */
#customNameInput, #customIdInput {
  background: rgba(0, 20, 15, 0.9) !important;
  border: 1px solid rgba(0, 255, 140, 0.15) !important;
  border-radius: 10px !important;
  color: #d6ffe9 !important;
  transition: all .2s ease !important;
  padding: 10px 14px !important;
  outline: none !important;
}

#customNameInput:focus, #customIdInput:focus {
  border-color: rgba(0, 255, 140, 0.6) !important;
  box-shadow: 0 0 10px rgba(0, 255, 140, 0.35) !important;
}

/* Radio Button Groups - Perfect Centering & Glow */
.option-item input[type="radio"], .university-radio-auto {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(0, 255, 140, 0.6) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 40, 25, 0.7) !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all .15s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  flex-shrink: 0 !important;
}

/* Inner dot pseudo element */
.option-item input[type="radio"]::after, .university-radio-auto::after {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #00ff88 !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0) !important;
  transition: transform .15s ease !important;
}

/* Checked state */
.option-item input[type="radio"]:checked::after, .university-radio-auto:checked::after {
  transform: translate(-50%, -50%) scale(1) !important;
}

/* Glow on check */
.option-item input[type="radio"]:checked, .university-radio-auto:checked {
  border-color: #00ff88 !important;
  box-shadow: 0 0 6px rgba(0, 255, 140, 0.7), 0 0 10px rgba(0, 255, 140, 0.4) !important;
}

/* Fix vertical offset and alignment */
.option-item, .university-card-auto {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}


/* Section Titles */
.control-group h3, .option-group-title, .country-header, .custom-label {
  font-size: 12px !important;
  letter-spacing: 1px !important;
  color: #7ed9a8 !important;
  opacity: 0.85 !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}

/* Primary Button */
#generateBtn {
  background: linear-gradient(90deg, #00ff88, #00cc66) !important;
  color: #02100b !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  padding: 14px !important;
  box-shadow: 0 0 15px rgba(0, 255, 140, 0.6) !important;
  border: none !important;
  transition: all .2s ease !important;
}

#generateBtn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 0 25px rgba(0, 255, 140, 0.9) !important;
}

/* Secondary Buttons */
#btnExportEnrollmentPDF, #btnExportSchedulePDF, #btnExportTuitionPDF,
#btnExportEnrollmentPNG, #btnExportSchedulePNG, #btnExportTuitionPNG,
#btnExportAllPDF, #btnExportAllPNG, #copyNameBtn, #copyEmailBtn, #copyUniBtn,
#applyNameBtn, #applyIdBtn {
  background: rgba(0, 40, 30, 0.9) !important;
  border: 1px solid rgba(0, 255, 140, 0.3) !important;
  color: #1fff84 !important;
  border-radius: 10px !important;
  transition: all .2s ease !important;
}

#btnExportEnrollmentPDF:hover, #btnExportSchedulePDF:hover, #btnExportTuitionPDF:hover,
#btnExportEnrollmentPNG:hover, #btnExportSchedulePNG:hover, #btnExportTuitionPNG:hover,
#btnExportAllPDF:hover, #btnExportAllPNG:hover, #copyNameBtn:hover, #copyEmailBtn:hover, #copyUniBtn:hover,
#applyNameBtn:hover, #applyIdBtn:hover {
  background: rgba(0, 60, 45, 0.9) !important;
  border-color: rgba(0, 255, 140, 0.6) !important;
  box-shadow: 0 0 10px rgba(0, 255, 140, 0.2) !important;
}

/* Clear or Danger Buttons */
#downloadLogBtn {
  background: rgba(60, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 90, 90, 0.6) !important;
  color: #ff6b6b !important;
  transition: all .2s ease !important;
}
#downloadLogBtn:hover {
  background: rgba(80, 0, 0, 0.6) !important;
  box-shadow: 0 0 10px rgba(255, 90, 90, 0.4) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

::-webkit-scrollbar-track {
  background: rgba(0, 30, 20, 0.6) !important;
  border-radius: 10px !important;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff88, #009955) !important;
  border-radius: 10px !important;
}

/* Header Adjustments */
.neon-title {
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  color: #1fff84 !important;
  text-shadow: 0 0 6px rgba(0, 255, 140, 0.6) !important;
  font-size: 1.1rem !important;
  line-height: 1.2 !important;
}

.neon-subtitle {
  color: #7ed9a8 !important;
  opacity: 0.8 !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  margin-top: 2px !important;
}

/* Fix generic text color in sidebar */
.sidebar, .option-item span, .university-name-auto, .btn.secondary, .btn.highlight {
  color: #d6ffe9 !important;
}

.university-country-auto {
  color: #7ed9a8 !important;
  opacity: 0.8 !important;
}

/* Tabs overriding */
.tab-button {
  background: rgba(0, 20, 15, 0.8) !important;
  border: 1px solid rgba(0, 255, 140, 0.15) !important;
  color: #7ed9a8 !important;
  transition: all 0.2s ease !important;
}

.tab-button:hover {
  background: rgba(0, 40, 30, 0.9) !important;
  color: #1fff84 !important;
}

.tab-button.active {
  background: linear-gradient(90deg, rgba(0, 255, 140, 0.2), rgba(0, 255, 140, 0.05)) !important;
  border-color: rgba(0, 255, 140, 0.6) !important;
  color: #1fff84 !important;
  text-shadow: 0 0 5px rgba(0, 255, 140, 0.5) !important;
}

/* ==================================================
   CURRENT SESSION (STATUS PANEL) PATCH - NEO CYBER
================================================== */

.status-panel {
  background: linear-gradient(180deg, rgba(0, 34, 24, 0.96) 0%, rgba(0, 24, 18, 0.94) 100%) !important;
  border: 1px solid rgba(0, 255, 140, 0.22) !important;
  border-left: none !important;
  border-radius: 16px !important;
  box-shadow: 0 0 0 1px rgba(0, 255, 140, 0.08) inset, 0 0 18px rgba(0, 255, 140, 0.12), 0 0 36px rgba(0, 255, 140, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  padding: 20px 18px !important;
  position: relative !important;
  overflow: hidden !important;
  margin-top: auto !important;
}

/* Rebuilding left accent with linear gradient */
.status-panel::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, #00ff88, #00c86b) !important;
  border-radius: 999px !important;
}

/* "Current Session" title */
.status-panel h4 {
  color: #a8f5c9 !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  text-shadow: 0 0 8px rgba(0, 255, 140, 0.18) !important;
  text-transform: uppercase !important;
  margin-bottom: 15px !important;
  font-size: 13px !important;
}

/* Row wrapper */
.status-panel .info-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 12px !important;
}
.status-panel .info-row:last-child {
  margin-bottom: 0 !important;
}

/* Label Style */
.status-panel .info-row span:first-child {
  color: rgba(168, 245, 201, 0.78) !important;
  font-weight: 600 !important;
}

/* Value Style */
.status-panel .info-row span:last-child {
  color: #d8ffea !important;
  font-weight: 700 !important;
  text-align: right !important;
}

/* ==================================================
   DASHBOARD PANEL LAYOUT CLEANUP
================================================== */

.app-shell {
  display: flex !important;
  align-items: stretch !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* 1. OUTER SIDEBAR / DASHBOARD CONTAINER */
.sidebar, .sidebar.open {
  height: calc(100vh - 36px) !important; /* 18px top and bottom margin */
  max-height: calc(100vh - 36px) !important;
  margin: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  overflow: hidden !important; /* keep scroll inside */
}

/* 2. INNER SCROLLABLE CONTENT */
.sidebar-scroll {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* 4. SIDEBAR WIDTH / EDGE CLEANUP */
.controls, .brand, .status-panel {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 3. REMOVE REDUNDANT SPACING */
.brand {
  margin-bottom: 20px !important;
  margin-top: 4px !important;
}

.control-group h3, .option-group-title, .country-header, .custom-label {
  margin-top: 18px !important;
  margin-bottom: 10px !important;
}

.control-group {
  margin-bottom: 14px !important;
}

/* Ensure no trailing space in controls before session */
.controls {
  margin-bottom: 12px !important;
}

/* Remove hanging space under the very last component (Session panel already has auto margin-top) */
.status-panel {
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

/* Reduce gaps */
.form-grid {
  margin-top: 10px !important;
  margin-bottom: 14px !important;
}

.copy-actions {
  margin-top: 14px !important;
}

/* Fix option lists */
.option-item {
  margin-bottom: 10px !important;
}

/* Export spacing alignment */
.control-group[data-export="true"] h3 {
  margin-bottom: 8px !important;
}

.export-grid {
  padding-top: 2px !important;
}


/* ==================================================
   BULK EXPORT BUTTON UNIFICATION
================================================== */

/* Make "All (PDF)" + "All (PNG)" match Generate button */
#btnExportAllPDF, #btnExportAllPNG {
  background: linear-gradient(90deg, #00ff88, #11d96f) !important;
  color: #03140f !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 16px !important;
  min-height: 56px !important;
  height: auto !important;
  padding: 14px 18px !important;
  box-shadow: 0 0 14px rgba(0, 255, 140, 0.35), 0 0 28px rgba(0, 255, 140, 0.16) !important;
  transition: all .2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  width: 100% !important;
  font-size: 14px !important;
}

#btnExportAllPDF i, #btnExportAllPNG i {
  font-size: 16px !important;
}

/* Hover & Active States */
#btnExportAllPDF:hover, #btnExportAllPNG:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 0 18px rgba(0, 255, 140, 0.45), 0 0 34px rgba(0, 255, 140, 0.22) !important;
  border-color: transparent !important; /* override previous secondary outline */
}

#btnExportAllPDF:active, #btnExportAllPNG:active {
  transform: translateY(0) !important;
}

/* Ensure Generate Random Identity is also 100% width and identical typography */
#generateBtn {
  width: 100% !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

/* ==================================================
   LAYOUT REFACTOR: COMPACT PROFESSIONAL + PREMIUM UI
================================================== */

/* SIDEBAR & GENERAL SPACING */
.sidebar, .sidebar.open {
  padding: 16px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(0, 255, 140, 0.1) !important;
  background: rgba(3, 24, 18, 0.92) !important;
}

.sidebar-scroll {
  padding: 0 4px 0 0 !important; /* give scrollbar room */
}

/* HEADER CLEANUP */
.brand {
  margin-bottom: 16px !important;
  margin-top: 0 !important;
  gap: 10px !important;
}
.neon-title {
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 0 2px rgba(0, 255, 140, 0.3) !important;
}
.neon-subtitle {
  font-size: 0.7rem !important;
  opacity: 0.6 !important;
}
.brand svg {
  width: 24px !important;
  height: 24px !important;
  box-shadow: none !important;
}

/* SECTION TITLES */
.control-group h3, .option-group-title, .country-header, .custom-label {
  margin-top: 14px !important;
  margin-bottom: 8px !important;
  font-size: 11px !important;
  letter-spacing: 0.5px !important;
  color: #5ab182 !important;
}
.control-group {
  margin-bottom: 10px !important;
}

/* TABS */
.tabs {
  gap: 6px !important;
}
.tab-button {
  padding: 6px 10px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  background: rgba(0, 20, 15, 0.5) !important;
}

/* SEARCH & INPUTS */
#uniSearch, #customNameInput, #customIdInput {
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(0, 255, 140, 0.1) !important;
}
#uniSearch:focus, #customNameInput:focus, #customIdInput:focus {
  box-shadow: 0 0 0 1px rgba(0, 255, 140, 0.3) !important;
  border-color: rgba(0, 255, 140, 0.4) !important;
}

/* UNIVERSITY LIST */
.university-list-wrapper {
  max-height: 200px !important;
}
.university-card-auto {
  padding: 8px 10px !important;
  border-radius: 8px !important;
  min-height: 48px !important;
  margin-bottom: 6px !important;
}
.university-card-auto:hover {
  box-shadow: none !important;
  background: rgba(0, 255, 140, 0.05) !important;
}
.university-card-auto.selected {
  background: rgba(0, 255, 140, 0.08) !important;
  border: 1px solid rgba(0, 255, 140, 0.3) !important;
}
.university-name-auto {
  font-size: 13px !important;
  line-height: 1.2 !important;
}
.university-country-auto {
  font-size: 11px !important;
  margin-top: 2px !important;
}

/* ACTIONS SECTION - RADIO BUTTONS */
.template-schedule-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 5px !important;
  margin-bottom: 12px !important;
}
.option-group {
  flex: 1 1 45% !important;
  min-width: 120px !important;
  background: transparent !important;
  padding: 4px 0 !important;
  border-radius: 0 !important;
  border: none !important;
}
/* Force Schedule to full width if needed */
.option-group:nth-child(3) {
  flex: 1 1 100% !important;
}
.option-item {
  margin-bottom: 6px !important;
  gap: 8px !important;
  font-size: 13px !important;
}
.option-item:last-child {
  margin-bottom: 0 !important;
}
.option-group-title {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(0, 255, 140, 0.1) !important;
  padding-bottom: 4px !important;
}
/* Modifying Radio scaling to be subtler */
.option-item input[type="radio"], .university-radio-auto {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  border: 1px solid rgba(0, 255, 140, 0.4) !important;
}
.option-item input[type="radio"]::after, .university-radio-auto::after {
  width: 6px !important;
  height: 6px !important;
}
.option-item input[type="radio"]:checked, .university-radio-auto:checked {
  box-shadow: 0 0 4px rgba(0, 255, 140, 0.4) !important;
}

/* BUTTONS */
#generateBtn {
  padding: 10px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  box-shadow: 0 2px 10px rgba(0, 255, 140, 0.2) !important;
  margin-top: 6px !important;
}
#generateBtn:hover {
  box-shadow: 0 4px 15px rgba(0, 255, 140, 0.3) !important;
}
.btn.secondary, .btn.highlight {
  padding: 6px 10px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
}
.copy-actions {
  margin-top: 8px !important;
  gap: 8px !important;
}
.form-grid {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  gap: 8px !important;
  display: flex !important;
  gap: 12px !important;
}
.form-field {
  flex: 1 !important;
}

/* EXPORT SECTION */
#btnExportAllPDF, #btnExportAllPNG {
  min-height: 0 !important;
  padding: 8px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  margin-top: 6px !important;
  box-shadow: 0 2px 8px rgba(0, 255, 140, 0.2) !important;
}
#btnExportAllPDF:hover, #btnExportAllPNG:hover {
  box-shadow: 0 4px 12px rgba(0, 255, 140, 0.3) !important;
}

/* CURRENT SESSION */
.status-panel {
  padding: 12px 14px !important;
  border-radius: 10px !important;
  margin-top: 10px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
  border: 1px solid rgba(0, 255, 140, 0.1) !important;
}
.status-panel h4 {
  font-size: 12px !important;
  margin-bottom: 10px !important;
  text-shadow: none !important;
  color: #7ed9a8 !important;
}
.status-panel .info-row {
  margin-bottom: 6px !important;
  gap: 10px !important;
  font-size: 12px !important;
}
.status-panel::before {
  top: 10px !important;
  bottom: 10px !important;
  width: 2px !important;
}

/* ==================================================
   LAYOUT RESTORE + RESIZABLE SIDEBAR + AUTO LAYOUT
================================================== */

/* SIDEBAR SIZING & DRAG HANDLE */
.sidebar {
  flex: 0 0 auto !important; /* Do not stretch horizontally, use explicit width */
  min-width: 320px !important;
  max-width: 650px !important;
  position: relative !important;
  /* Width is controlled by JS styles added inline, e.g., width: 460px */
}

.sidebar-resize-handle {
  position: absolute !important;
  right: -5px !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 10px !important;
  cursor: col-resize !important;
  z-index: 99 !important;
  background: transparent !important;
  transition: background 0.15s ease !important;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle:active {
  background: rgba(0, 255, 140, 0.4) !important;
}

/* MAIN PREVIEW AUTO REFITTING */
.preview-shell-v2 {
  flex: 1 1 auto !important;
  min-width: 0 !important; /* Critical to prevent horizontal overflow */
  overflow: hidden !important;
}

/* RESPONSIVE AUTO LAYOUT: ACTIONS */
.template-schedule-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.option-group {
  flex: 1 1 200px !important; /* At small widths (< 200px column), they will stack cleanly */
  min-width: 180px !important;
  box-sizing: border-box !important;
}

.option-group:nth-child(3) {
  flex: 1 1 100% !important; /* Schedule layout always full width block */
}

/* UNIVERSITY TABS */
#uni-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.tab-button {
  flex: 1 1 auto !important;
  text-align: center !important;
}

/* CUSTOM NAME / ID */
.form-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.form-field {
  flex: 1 1 200px !important;
  min-width: 160px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}
.custom-input-row {
    display: flex !important;
}
.custom-input-row input {
    flex: 1 !important;
    min-width: 0 !important;
}

/* QUICK BUTTONS */
.copy-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.copy-actions .btn {
  flex: 1 1 80px !important;
  white-space: nowrap !important;
  margin-bottom: 0 !important;
}

/* EXPORT SECTION */
.control-group[data-export="true"] > div:first-of-type {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}
.control-group h3 + div[style*="gap"] {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}
.control-group h3 + div[style*="gap"] > div {
  flex: 1 1 180px !important;
  min-width: 160px !important;
}

/* CURRENT SESSION PANEL */
.status-panel {
  width: 100% !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important; /* prevent squishing */
}
.status-panel .info-row {
  flex-wrap: wrap !important; /* wrap if too small */
}

/* GENERAL WIDTH RETAINMENT */
.controls, .btn, input {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ==================================================
   LIMIT UNIVERSITY LIST TO ~4 ITEMS
================================================== */
.university-list-wrapper {
  max-height: 230px !important; /* Roughly 4 items + spacing */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 6px !important; /* Buffer for scrollbar */
  margin-bottom: 8px !important;
}

/* Ensure scrollbar looks consistent */
.university-list-wrapper::-webkit-scrollbar {
  width: 6px !important;
}
.university-list-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 30, 20, 0.6) !important;
  border-radius: 10px !important;
}
.university-list-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff88, #009955) !important;
  border-radius: 10px !important;
}

/* ==================================================
   STRICT UNIVERSITY LIST CLAMP & SCROLL FIX
================================================== */

.university-list-wrapper {
  height: clamp(300px, 34vh, 360px) !important;
  max-height: clamp(300px, 34vh, 360px) !important;
  min-height: 300px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding-right: 6px !important;
  box-sizing: border-box !important;
  margin-bottom: 20px !important;

  /* Prevent flex parent from stretching it infinitely */
  flex: 0 0 auto !important; 
}

/* Ensure inner container doesn't block scrolling by overlapping padding/margins */
#university-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-height: 0 !important;
  flex: 0 0 auto !important; /* It shouldn't stretch its parent, just flow inside it */
}

/* The controls parent should not stretch the list wrapper either */
.controls {
  min-height: 0 !important;
  height: auto !important;
  flex: 0 0 auto !important;
}

/* Overwrite existing layout adjustments for the layout item so there are no massive gaps */
.university-card-auto {
  margin-bottom: 0 !important; /* Managed by grid/wrapper gap instead */
  flex: 0 0 auto !important; /* Make sure items don't stretch vertically */
}

/* ==================================================
   LAYOUT PATCH — ACTIONS & EXPORT ROWS
================================================== */

/* 1. ACTIONS SECTION (GRID) */
.template-schedule-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
}

.option-group {
  min-width: 0 !important; /* Prevent child overflow */
  flex: none !important; /* Overwrite previous flex values */
}

/* Row 1: Name Format full width */
.option-group:nth-child(1) {
  grid-column: 1 / -1 !important;
}

/* Row 2: Letter Template + Schedule Layout */
.option-group:nth-child(2) {
  grid-column: 1 / 2 !important;
}

.option-group:nth-child(3) {
  grid-column: 2 / -1 !important;
}


/* 2. EXPORT SECTION (GRID) */
/* This targets the inline flex wrapper immediately following the Export <h3> */
.control-group h3 + div[style*="flex"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
}

/* The PDF and PNG columns */
.control-group h3 + div[style*="flex"] > div {
  min-width: 0 !important; /* Prevent overflow */
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  flex: none !important; /* Overwrite previous flex auto wrap behavior */
}

/* Make sure the text aligned items and buttons look cleanly scaled */
#btnExportEnrollmentPDF, #btnExportSchedulePDF, #btnExportTuitionPDF,
#btnExportEnrollmentPNG, #btnExportSchedulePNG, #btnExportTuitionPNG {
  width: 100% !important;
}

/* Ensure ALL buttons remain inside grid limits */
#btnExportAllPDF, #btnExportAllPNG {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ==================================================
   STRICT UNIVERSITY LIST CLAMP & SCROLL FIX (REVISED)
================================================== */

/* Target the exact parent container ID and the dynamic class it receives */
#university-options, .university-grid-wrapper {
  height: clamp(300px, 34vh, 360px) !important;
  max-height: clamp(300px, 34vh, 360px) !important;
  min-height: 300px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding-right: 6px !important;
  box-sizing: border-box !important;
  margin-bottom: 20px !important;

  /* Prevent flex parent from stretching it infinitely */
  flex: 0 0 auto !important; 
}

/* Ensure the JS-generated inner container (#university-grid-auto-mount) flows correctly */
#university-grid-auto-mount {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
}

/* The controls parent should not stretch the list wrapper either */
.controls {
  min-height: 0 !important;
  height: auto !important;
  flex: 0 0 auto !important;
}

/* Fix option layout space and vertical stretching */
.university-card-auto {
  margin-bottom: 0 !important; 
  flex: 0 0 auto !important; 
}

/* Ensure JS scrollbar applies to the correct wrapper */
#university-options::-webkit-scrollbar,
.university-grid-wrapper::-webkit-scrollbar {
  width: 6px !important;
}
#university-options::-webkit-scrollbar-track,
.university-grid-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 30, 20, 0.6) !important;
  border-radius: 10px !important;
}
#university-options::-webkit-scrollbar-thumb,
.university-grid-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff88, #009955) !important;
  border-radius: 10px !important;
}

/* ==================================================
   CUSTOM NAME & CUSTOM ID - 2 COLUMN LAYOUT
================================================== */

.form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  align-items: start !important;
}

.form-field {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  width: 100% !important;
  flex: none !important; /* Remove previous flex constraints */
}

.custom-input-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.custom-input-row input {
  width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.custom-input-row .btn.secondary {
  width: 42px !important; /* Fixed width for button */
  height: 100% !important; /* Match input height */
  min-height: 100% !important; /* Override button min-heights */
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
}

/* Optional responsive fallback for extreme narrow widths */
@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==================================================
   UI COMPACT LAYOUT PATCH
================================================== */

/* 1. Global section vertical spacing */
.control-group {
    margin-top: 14px !important;
    margin-bottom: 10px !important;
}

.control-group h3, .option-group-title, .country-header, .custom-label {
    margin-bottom: 6px !important;
    margin-top: 10px !important; /* reduce top spacing on titles */
}

/* 2. Compact radio options gap and line-height */
.option-item {
    margin-bottom: 6px !important; /* overall gap */
    gap: 6px !important; /* gap between radio and label */
    line-height: 1.2 !important;
}
.option-item:last-child {
    margin-bottom: 0 !important;
}

/* 3. Name format - single horizontal row */
.name-format-options {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: center !important;
}

/* 4. Tighter spacing in Letter Template and Schedule Layout */
.option-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.option-list .option-item {
    margin-bottom: 0 !important;
}

/* 5. Tighter spacing for Export buttons */
.control-group h3 + div[style*="flex"] > div {
    gap: 8px !important;
}

/* PDF/PNG label spacing */
.control-group h3 + div[style*="flex"] > div > div:first-child {
    margin-bottom: 6px !important;
}

/* 6. University list card spacing tightening */
.university-grid-auto, #university-grid-auto-mount {
    gap: 8px !important;
}

/* Also tight margin on Generate Button and Custom Grid to reduce gaps */
.form-grid {
    margin-top: 10px !important;
    margin-bottom: 12px !important;
}

.copy-actions {
    margin-top: 10px !important;
}

/* ==================================================
   UI POLISH: NAME FORMAT ALIGNMENT & EXPORT SPACING
================================================== */

/* 1. NAME FORMAT ALIGNMENT */
.name-format-options {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  margin-top: 4px !important;
}

.name-format-options .option-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.name-format-options input[type="radio"] {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.name-format-options span {
  display: inline-block !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(1px) !important; /* visually center text with dot */
}

/* 2. EXPORT SECTION SPACING */
/* Target the wrapper holding the PDF & PNG columns (next to the Export <h3>) */
.control-group h3 + div[style*="flex"] {
  gap: 16px !important; /* Column gap */
  row-gap: 12px !important; 
}

/* Target each individual column (PDF and PNG) */
.control-group h3 + div[style*="flex"] > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important; /* Reduce vertical gap between buttons to 8px */
}

/* Reduce spacing on the "PDF" & "PNG" titles */
.control-group h3 + div[style*="flex"] > div > div:first-child {
  margin-bottom: 4px !important;
}

/* Eliminate unnecessary margins on export buttons */
.control-group h3 + div[style*="flex"] .btn {
  margin: 0 !important; /* zero out surrounding margins */
}

/* Control spacing right above the Bulk Generate Buttons specifically */
#btnExportAllPDF, #btnExportAllPNG {
  margin-top: 8px !important; /* Ensure minimal space above bulk buttons */
  margin-bottom: 0 !important;
}


/* ==========================================================================
   MOBILE-FIRST SIDEBAR RESPONSIVE OVERRIDES
   ========================================================================== */

/* This CSS focuses strictly on max-width 768px to ensure Desktop is left 100% untouched */
@media screen and (max-width: 768px) {
  
  /* OVERALL LAYOUT */
  body {
    overflow: auto !important; /* Allow overall body scroll if needed */
    height: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* APP SHELL: Switch to column layout (sidebar top, preview bottom) */
  .app-shell {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important; 
    padding-top: 60px !important; /* Space for fixed nav/menu button */
  }

  /* SIDEBAR CONTAINER */
  .sidebar {
    position: relative !important;
    width: 100% !important;     /* Full width on mobile */
    min-width: 0 !important;
    max-width: 100vw !important; /* Cap at viewport */
    height: auto !important;
    min-height: auto !important;
    border-right: none !important;
    border-bottom: 2px solid #333 !important;
    box-sizing: border-box !important;
    display: none !important; /* Default closed state */
    flex-direction: column !important;
    margin: 0 !important;
    overflow-x: hidden !important;
  }

  /* SIDEBAR: Active/Open state triggered by menu toggle */
  .sidebar.open {
    display: flex !important;
  }
  
  /* SCROLL CONTEXT FOR SIDEBAR */
  .sidebar-scroll {
    overflow-y: visible !important; /* Let body handle scrolling, or we handle it here if height is bounded */
    padding: 16px !important;       /* Slightly smaller padding on mobile */
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* RESIZER DISABLED ON MOBILE */
  .sidebar-resize-handle {
    display: none !important;
  }
  
  /* HEADER BLOCK IN SIDEBAR */
  .brand {
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 0 0 10px 0 !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .brand svg {
    margin-top: 5px !important;
    width: 28px !important;
    height: 28px !important;
  }
  
  .brand .neon-title {
    font-size: 1.1rem !important;
    white-space: normal !important; /* Allow wrapping */
    line-height: 1.3 !important;
  }

  .brand .neon-subtitle {
    font-size: 0.8rem !important;
  }

  /* UNIVERSITY SECTION LIST */
  .university-list-wrapper {
    height: 350px !important; /* Fixed accessible height on mobile */
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  
  .university-card-auto {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px !important; /* Optimize touch target */
  }
  
  .university-name-auto {
    white-space: normal !important; /* Allow text wrapping instead of truncating completely causing width issues */
    font-size: 0.9rem !important;
  }

  .tabs {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  
  .tab-button {
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
    flex: 1 1 auto !important; /* Allow buttons to wrap naturally */
  }

  /* ALIGN ACTION ROWS (TEMPLATE, SCHEDULE, STYLES) INTO COLUMNS */
  .template-schedule-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
    width: 100% !important;
  }

  /* Radio Button Option lists */
  .option-list,
  .name-format-options {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .option-item {
    border-radius: 8px !important;
    padding: 10px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .option-item span {
    font-size: 0.9rem !important;
  }
  
  /* CUSTOM NAME & ID ROW */
  .form-grid {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
  }

  .form-field {
    width: 100% !important;
    gap: 5px !important;
  }
  
  .custom-input-row {
    width: 100% !important;
  }
  
  .custom-input-row input {
    font-size: 16px !important; /* Prevent iOS input zoom */
    padding: 12px !important;
  }
  
  .custom-input-row button {
    padding: 12px 16px !important;
  }

  /* BUTTON GROUPS & ACTIONS */
  .copy-actions {
    flex-direction: column !important; /* Stack copy buttons vertically */
    width: 100% !important;
    gap: 8px !important;
    margin-top: 15px !important;
  }

  .copy-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px !important;
  }

  /* EXPORT BLOCK STACKING */
  /* Target the container wrapping export columns */
  .control-group h3 + div[style*="flex"] {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
  }
  
  .control-group h3 + div[style*="flex"] > div {
    width: 100% !important;
  }

  /* Generate Button */
  #generateBtn {
    padding: 15px !important;
    font-size: 1rem !important;
    justify-content: center !important;
  }

  /* MOBILE MENU BUTTON (Only shown on mobile) */
  .mobile-menu-btn {
    display: block !important;
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 2000 !important;
    background-color: var(--app-accent) !important;
    color: var(--cu-black) !important;
    border: none !important;
    padding: 10px 15px !important;
    border-radius: 5px !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
  }
  
  /* PREVIEW AREA */
  .preview-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    flex: none !important;      /* Prevent flex shrinking bugs */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow-x: hidden !important;
  }
  
  .documents-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    transform-origin: top center !important;
    padding-bottom: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  #documentsWrapper {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    display: flex !important;
    justify-content: center !important;
  }

  .preview-shell-v2 {
    max-width: 100% !important;
  }
  
  /* Hide the desktop scaling buttons on small screens if they overlap, or center them */
  .preview-header {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  /* UNIVERSITY QR CODE */
  .university-qr {
      position: absolute !important;
      top: 15px !important;
      right: 15px !important;
      width: 50px !important; /* Smaller on mobile */
      height: 50px !important;
  }
}

/* =======================================================
   OPTION 4: WORKSPACE DRAFT ENROLLMENT VERIFICATION
   ======================================================= */
.opt4-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  box-sizing: border-box;
  padding: 13mm 18mm 13mm 18mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  z-index: 50;
  overflow: hidden;
}

.opt4-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.2px;
  margin-bottom: 22px;
}

.opt4-export-timestamp {
  font-weight: 500;
  color: #111827;
}

.opt4-workspace-title {
  font-weight: 400;
  color: #111827;
}

.opt4-content-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.opt4-top-bar {
  height: 8px;
  background-color: #0f172a;
  width: 100%;
  margin-bottom: 16px;
}


.opt4-institution-meta {
  flex: 1 1 auto;
  max-width: 72%;
  line-height: 1.4;
}

.opt4-meta-uni-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.2px;
  margin-bottom: 3px;
}

.opt4-meta-uni-address {
  font-size: 11px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 3px;
}

.opt4-meta-uni-website {
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
}

.opt4-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.opt4-draft-badge {
  color: #0284c7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.opt4-issue-block {
  text-align: right;
  line-height: 1.35;
}

.opt4-issue-label {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 2px;
}

.opt4-issue-date {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

.opt4-doc-title {
  font-family: 'Merriweather', 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 24px 0;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.opt4-info-grid {
  width: 100%;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 28px;
}

.opt4-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.opt4-grid-row:last-child {
  border-bottom: none;
}

.opt4-grid-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.opt4-field-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  margin-bottom: 4px;
}

.opt4-field-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.opt4-field-value.opt4-val-regular {
  font-weight: 500;
}

.opt4-section {
  margin-bottom: 24px;
}

.opt4-issuing-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
  margin-top: 24px;
}

.opt4-section-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #0f172a;
  margin-bottom: 12px;
}

.opt4-summary-text {
  font-family: 'Merriweather', 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-size: 13.5px;
  line-height: 1.7;
  color: #334155;
  text-align: justify;
  margin: 0;
}

.opt4-issuing-callout {
  border-left: 3.5px solid #f59e0b;
  padding-left: 14px;
}

.opt4-issuing-content {
  font-size: 12.5px;
  line-height: 1.6;
  color: #334155;
}

.opt4-disclaimer-notice {
  font-size: 10.5px;
  line-height: 1.5;
  color: #64748b;
  margin-top: 10px;
}

.opt4-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-top: 15px;
}

.opt4-footer-url {
  color: #111827;
  text-decoration: none;
}

.opt4-footer-page {
  font-weight: 500;
}



.doc-page-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8mm;
  padding: 0 15mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.2px;
  background: #ffffff;
  z-index: 25;
  box-sizing: border-box;
}

.doc-export-timestamp {
  font-weight: 500;
  color: #111827;
}

.doc-workspace-title {
  font-weight: 400;
  color: #111827;
}
