    .sweet-alert button.cancel { background-color: #d9534f !important; color: white !important; }
    .sweet-alert button.cancel:hover { background-color: #c9302c !important; }
    .sweet-alert button.confirm {
      color: #064E3B !important;
      background-color: #6EE7B7 !important;
      font-weight: bold;
    }
    body {
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      background-attachment: fixed;
      min-height: 100vh;
      color: #1e293b;
    }
    /* Main Card Container */
    .portal-card {
      max-width: 960px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.97);
      backdrop-filter: blur(12px);
      border-radius: 16px;
      box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.4);
      overflow: hidden;
    }
    /* Compact Top Header Banner */
    .portal-header {
      background: linear-gradient(to right, #f8fafc, #f0fdf4);
      border-bottom: 1px solid #e2e8f0;
      padding: 1rem 1.5rem 0.75rem;
      text-align: center;
    }
    .portal-badge {
      display: inline-block;
      background-color: #dcfce7;
      color: #166534;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      padding: 0.2rem 0.7rem;
      border-radius: 999px;
      margin-bottom: 0.35rem;
    }
    .portal-body {
      padding: 1rem 1.5rem 1.25rem;
    }
    /* Compact Mode Switcher */
    .mode-switcher .btn-group {
      background-color: #f1f5f9;
      padding: 4px;
      border-radius: 12px;
      border: 1px solid #e2e8f0;
    }
    .mode-switcher .btn {
      border-radius: 9px !important;
      font-weight: 600;
      padding: 0.45rem 0.75rem;
      font-size: 0.9rem;
      border: none !important;
      transition: all 0.2s ease;
    }
    .mode-switcher .btn-check:not(:checked) + .btn {
      background-color: transparent;
      color: #475569;
    }
    .mode-switcher .btn-check:checked + .btn {
      background-color: #0b6e26;
      color: #ffffff;
      box-shadow: 0 3px 10px rgba(11, 110, 38, 0.25);
    }
    /* Compact Section Headings */
    .section-header {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      font-size: 0.85rem;
      font-weight: 700;
      color: #0b6e26;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-top: 0.55rem;
      margin-bottom: 0.5rem;
      padding-bottom: 0.25rem;
      border-bottom: 1.5px solid #e2e8f0;
    }
    /* Compact Form Controls & Labels */
    .control-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: #334155;
      margin-bottom: 0.15rem;
    }
    .form-control, .selectize-input {
      border-radius: 8px !important;
      border: 1px solid #cbd5e1 !important;
      padding: 0.4rem 0.7rem !important;
      min-height: unset !important;
      font-size: 0.88rem !important;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .form-control:focus, .selectize-input.focus {
      border-color: #0b6e26 !important;
      box-shadow: 0 0 0 2px rgba(11, 110, 38, 0.12) !important;
    }
    .selectize-control {
      margin-bottom: 0 !important;
    }
    .selectize-control.multi .selectize-input.has-items {
      max-height: 54px;
      overflow-y: auto;
    }
    .form-group, .shiny-input-container {
      margin-bottom: 0.5rem !important;
    }
    /* Compact File Input Styling */
    .shiny-input-container input[type='file'] {
      padding: 0.25rem 0.4rem !important;
      font-size: 0.82rem !important;
      background-color: #f8fafc;
    }
    .input-group-text, .btn-file {
      padding: 0.35rem 0.65rem !important;
      font-size: 0.82rem !important;
    }
    /* Compact Declaration Box */
    .declaration-box {
      background-color: #f8fafc;
      border: 1px solid #dee2e6;
      border-left: 4px solid #0b6e26;
      border-radius: 8px;
      padding: 0.65rem 0.85rem;
      margin-top: 0.5rem;
      margin-bottom: 0.65rem !important;
    }
    .declaration-box .pretty {
      display: flex !important;
      align-items: flex-start;
      white-space: normal !important;
      margin-right: 0;
      margin-bottom: 0;
      line-height: 1.3;
      font-size: 0.84rem;
    }
    .declaration-box .pretty .state label:before,
    .declaration-box .pretty .state label:after {
      top: 1px;
    }
    .declaration-box .pretty .state label {
      padding-left: 24px;
      text-indent: 0;
      white-space: normal;
      display: inline-block;
      cursor: pointer;
    }
    /* Compact Primary Action Buttons */
    .action-btn-primary {
      background: linear-gradient(135deg, #0b6e26 0%, #15803d 100%);
      border: none;
      border-radius: 10px;
      padding: 0.6rem 1rem;
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 0.02em;
      box-shadow: 0 8px 16px -6px rgba(11, 110, 38, 0.35);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .action-btn-primary:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 12px 20px -6px rgba(11, 110, 38, 0.45);
    }
    /* Modal Styling */
    .modal-content {
      border-radius: 16px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.2);
      border: none;
    }
    .modal-header {
      background-color: #f0fdf4;
      border-top-left-radius: 16px;
      border-top-right-radius: 16px;
      border-bottom: 1px solid #dcfce7;
      padding: 0.75rem 1.25rem;
    }
    .modal-footer {
      background-color: #f8fafc;
      border-bottom-left-radius: 16px;
      border-bottom-right-radius: 16px;
      border-top: 1px solid #e2e8f0;
      padding: 0.65rem 1.25rem;
    }
    .download-pdf-custom {
      background-color: #0b6e26 !important;
      color: white !important;
      border-radius: 8px;
      padding: 8px 10px;
      font-weight: 600;
      border: none;
      transition: background-color 0.2s;
    }
    .download-pdf-custom:hover {
      background-color: #064e1a !important;
    }
    @media (max-width: 768px) {
      .portal-header, .portal-body { padding: 0.5rem 0.85rem; }
    }
    
        .declaration-box,
    .declaration-box * {
      box-sizing: border-box;
    }

    .declaration-box {
      width: 100%;
      overflow-wrap: break-word;
      word-break: break-word;
    }

    .declaration-box .pretty {
      display: flex;
      align-items: flex-start;
      width: 100%;
      margin-right: 0;
      white-space: normal;
    }

    .declaration-box .pretty .state {
      display: flex;
      align-items: flex-start;
      width: 100%;
    }

    .declaration-box .pretty .state label {
      flex: 1;
      min-width: 0;
      padding-left: 1.6em;
      text-indent: 0;
      line-height: 1.4;
      white-space: normal;
    }

    .declaration-box .pretty .state label::before,
    .declaration-box .pretty .state label::after {
      top: 0.15em;
      left: 0;
    }
    
    
    .shiny-btn {
  position: relative;
  overflow: hidden;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Shine animation effect (only runs when NOT disabled) */
.shiny-btn:not(:disabled)::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.shiny-btn:not(:disabled):hover::before {
  left: 150%;
}

/* Disabled State with Red Forbidden Cursor */
.shiny-btn:disabled {
  background: #9ca3af;
  opacity: 0.7;
  /* Custom Red Forbidden SVG Cursor with fallback */
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://w3.org' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='4.93' y1='4.93' x2='19.07' y2='19.07'/></svg>") 12 12, not-allowed;
}

.btn:disabled, .btn.disabled {
        cursor: not-allowed !important;
        pointer-events: auto !important;
      }