html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.readonly-field {
  background-color: var(--bs-secondary-bg);
  opacity: 1;
  cursor: default;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  margin: 0;
  padding: 0;
}

/* Development mode banner */
.dev-mode-banner {
  background: #dc3545;
  color: #fff;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dev-mode-banner i {
  font-size: 1rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.readonly-field,
.readonly-field[readonly],
.readonly-field:disabled {
    background-color: #e9ecef !important;
    opacity: 1;
    cursor: not-allowed;
}

.license-option-card {
    border: 1px solid #ced4da;
    border-radius: .25rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

    .license-option-card.selected {
        border-color: #007bff;
        box-shadow: 0 0 0 .1rem rgba(0,123,255,.15);
    }

.section-help-text {
    font-size: 0.9rem;
    white-space: pre-line;
}

.required-indicator {
    color: #dc3545;
    font-weight: 700;
    margin-left: 2px;
}

.dashboard-section + .dashboard-section {
    margin-top: 1.5rem;
}

.dashboard-item {
    margin-bottom: 1rem;
}

.dashboard-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.dashboard-value {
    font-size: 1rem;
    color: #212529;
    word-break: break-word;
}

.dashboard-value-empty {
    color: #6c757d;
    font-style: italic;
}

.dashboard-card .card-body {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.dashboard-table th {
    white-space: nowrap;
}

.status-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    display: inline-block;
}

.status-in-process {
    background-color: #cff4fc;
    color: #055160;
}

.status-pending {
    background-color: #fff3cd;
    color: #664d03;
}

.status-accepted,
.status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-rejected,
.status-denied,
.status-expired {
    background-color: #f8d7da;
    color: #842029;
}

.status-default {
    background-color: #e2e3e5;
    color: #41464b;
}

.dashboard-muted-note {
    color: #6c757d;
    margin-bottom: 0;
}

/* ── Home page – hero banner ───────────────────────────────────────── */
.portal-hero {
    background: #1e293b;
    color: #fff;
    padding: 24px 24px 28px;
    margin-top: -72px;
    padding-top: 80px;
}

.portal-hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 10px;
}

.portal-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
}

.portal-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ── Home page – action cards ──────────────────────────────────────── */
.portal-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.portal-card__header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.portal-card__header--blue {
    background: #1d4ed8;
}

.portal-card__header--teal {
    background: #0f766e;
}

.portal-card__header-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.portal-card__header-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.portal-card__body {
    padding: 24px;
    background: #fff;
}

.portal-card__description {
    color: #5a6776;
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.portal-card__helper-text {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
    background: #f3f4f6;
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid #0f766e;
}

.portal-card__helper-text-inline {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.portal-card__helper-text-small {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 10px 0;
}

.portal-card__hint {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.portal-card__assistance-text {
    background: #f0f9f8;
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid #0f766e;
    color: #374151;
}

.portal-card__assistance-text-compact {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-portal-blue {
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-portal-blue:hover {
    background: #1e40af;
    box-shadow: 0 4px 14px rgba(29,78,216,0.3);
    color: #fff;
}

.btn-portal-teal {
    background: #0f766e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-portal-teal:hover {
    background: #0d6461;
    box-shadow: 0 4px 14px rgba(15,118,110,0.3);
    color: #fff;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.portal-input {
    border-radius: 10px;
    border: 2px solid #dee2e6;
    padding: 11px 15px;
    font-size: 0.97rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
    outline: none;
}

.portal-input--pin {
    letter-spacing: 3px;
    font-weight: 600;
}

.portal-form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 6px;
}
}