.sigmg-portal {
  --sigmg-red: #b80f22;
  --sigmg-red-dark: #8e0a18;
  --sigmg-ink: #151515;
  --sigmg-muted: #697078;
  --sigmg-line: #e5e7eb;
  --sigmg-soft: #f5f6f7;
  box-sizing: border-box;
  width: min(1120px, calc(100% - 32px));
  margin: 44px auto;
  color: var(--sigmg-ink);
  font-family: inherit;
}

.sigmg-portal *,
.sigmg-portal *::before,
.sigmg-portal *::after { box-sizing: border-box; }

.sigmg-portal h2,
.sigmg-portal h3,
.sigmg-portal p { margin-top: 0; }

.sigmg-portal h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.sigmg-portal h3 {
  margin: 0;
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.sigmg-eyebrow {
  margin-bottom: 12px !important;
  color: var(--sigmg-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sigmg-muted { color: var(--sigmg-muted); }

.sigmg-login-shell {
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: 48px 0;
}

.sigmg-login-card {
  width: min(520px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border-top: 4px solid var(--sigmg-red);
  background: #fff;
  box-shadow: 0 18px 55px rgba(20, 25, 30, .13);
}

.sigmg-login-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.sigmg-login-form label {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 750;
}

.sigmg-login-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #cfd3d8;
  border-radius: 0;
  background: #fff;
  color: var(--sigmg-ink);
  font: inherit;
}

.sigmg-login-form input:focus {
  border-color: var(--sigmg-red);
  outline: 3px solid rgba(184, 15, 34, .12);
}

.sigmg-primary,
.sigmg-secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--sigmg-red);
  border-radius: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: uppercase;
  cursor: pointer;
}

.sigmg-primary {
  margin-top: 10px;
  background: var(--sigmg-red);
  color: #fff !important;
}

.sigmg-primary:hover { background: var(--sigmg-red-dark); border-color: var(--sigmg-red-dark); }

.sigmg-secondary {
  background: #fff;
  color: var(--sigmg-ink) !important;
  border-color: #cfd3d8;
}

.sigmg-secondary:hover { border-color: var(--sigmg-red); color: var(--sigmg-red) !important; }

.sigmg-help {
  margin: 22px 0 0;
  color: var(--sigmg-muted);
  font-size: 12px;
  text-align: center;
}

.sigmg-alert,
.sigmg-success {
  margin: 18px 0;
  padding: 13px 15px;
  border-left: 4px solid var(--sigmg-red);
  background: #fff1f2;
  color: #72101d;
  font-size: 13px;
}

.sigmg-success { border-color: #17814a; background: #edf9f1; color: #145c37; }

.sigmg-dashboard {
  overflow: hidden;
  border: 1px solid var(--sigmg-line);
  background: #fff;
  box-shadow: 0 16px 50px rgba(20, 25, 30, .08);
}

.sigmg-portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  border-top: 5px solid var(--sigmg-red);
  background: linear-gradient(130deg, #fff 0%, #fff 65%, #f5f6f7 100%);
}

.sigmg-logout-form { flex: 0 0 auto; }
.sigmg-logout-form .sigmg-secondary { margin: 0; }

.sigmg-booking-reference {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid var(--sigmg-line);
  background: #fff;
}
.sigmg-booking-reference span {
  color: var(--sigmg-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sigmg-booking-reference strong {
  color: var(--sigmg-red);
  font: 800 14px/1.2 Consolas, monospace;
  letter-spacing: .06em;
}

.sigmg-section { padding: clamp(26px, 5vw, 52px); border-top: 1px solid var(--sigmg-line); }
.sigmg-itinerary-section { background: var(--sigmg-soft); }

.sigmg-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.sigmg-section-title > div { display: flex; align-items: center; gap: 13px; }
.sigmg-section-title > div > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--sigmg-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.sigmg-person-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sigmg-person-card {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border: 1px solid var(--sigmg-line);
  background: #fff;
}

.sigmg-person-card strong { font-size: 15px; }
.sigmg-person-main { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.sigmg-ticket-number { display: flex; align-items: baseline; gap: 7px; }
.sigmg-ticket-number small { color: var(--sigmg-muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sigmg-ticket-number b { color: var(--sigmg-ink); font: 700 12px/1.2 Consolas, monospace; }
.sigmg-ticket-number em { color: #8a6200; font-size: 11px; font-style: normal; font-weight: 700; }
.sigmg-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff4d8;
  color: #765200;
  font-size: 10px;
  font-weight: 800;
}
.sigmg-status-approved { background: #e9f8ef; color: #11663a; }
.sigmg-status-submitted { background: #e9f2ff; color: #145ba0; }
.sigmg-status-not_required { background: #eef0f2; color: #4d5660; }

.sigmg-flight-list { display: grid; gap: 14px; margin-bottom: 24px; }
.sigmg-flight-list:last-child { margin-bottom: 0; }
.sigmg-flight-card { border: 1px solid #dfe2e5; background: #fff; }
.sigmg-flight-meta,
.sigmg-flight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--sigmg-line);
  font-size: 12px;
}
.sigmg-flight-meta span,
.sigmg-flight-footer { color: var(--sigmg-muted); }
.sigmg-flight-meta { justify-content: flex-start; }
.sigmg-flight-footer { justify-content: flex-start; border-top: 1px solid var(--sigmg-line); border-bottom: 0; font-size: 10px; font-weight: 700; text-transform: uppercase; }

.sigmg-route {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(100px, 2fr) minmax(110px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 24px 18px;
}
.sigmg-route > div:first-child { text-align: left; }
.sigmg-route > div:last-child { text-align: right; }
.sigmg-route strong { display: block; font-size: clamp(24px, 4vw, 36px); line-height: 1; }
.sigmg-route strong sup { margin-left: 2px; color: var(--sigmg-red); font-size: 11px; vertical-align: top; }
.sigmg-route span { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; }
.sigmg-route small { color: var(--sigmg-muted); font-size: 10px; }
.sigmg-route-center { display: flex; min-width: 0; align-self: stretch; flex-direction: column; justify-content: center; gap: 17px; }
.sigmg-route .sigmg-airline { display: flex; align-items: center; justify-content: center; gap: 8px; }
.sigmg-route .sigmg-airline img { display: block; width: 60px !important; min-width: 60px !important; max-width: 60px !important; height: auto !important; margin: 0 auto !important; float: none !important; }
.sigmg-route .sigmg-airline span { margin: 0; color: var(--sigmg-muted); font: 700 11px/1.2 Consolas, monospace; white-space: nowrap; }
.sigmg-route-line { position: relative; height: 1px; background: #c9cdd1; text-align: center; }
.sigmg-route-line span { position: absolute; top: 50%; left: 50%; margin: 0; padding: 0 8px; background: #fff; color: var(--sigmg-red); transform: translate(-50%, -50%); }
.sigmg-surface { padding: 11px 15px; border-left: 3px solid var(--sigmg-red); background: #fff; color: var(--sigmg-muted); font-size: 12px; }
.sigmg-surface span { margin-right: 9px; color: var(--sigmg-red); }

.sigmg-document-list { display: grid; gap: 10px; }
.sigmg-document-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--sigmg-line);
}
.sigmg-doc-icon { display: grid; width: 46px; height: 46px; place-items: center; background: var(--sigmg-red); color: #fff; font-size: 10px; font-weight: 900; }
.sigmg-document-card strong,
.sigmg-document-card span { display: block; }
.sigmg-document-card span { margin-top: 3px; color: var(--sigmg-muted); font-size: 11px; }
.sigmg-doc-actions { display: flex; align-items: center; gap: 7px; }
.sigmg-doc-actions .sigmg-primary { margin-top: 0; }
.sigmg-security-note { padding: 18px clamp(26px, 5vw, 52px); background: var(--sigmg-ink); color: #fff; font-size: 11px; text-align: center; }

@media (max-width: 700px) {
  .sigmg-portal { width: min(100% - 20px, 1120px); margin: 22px auto; }
  .sigmg-login-shell { min-height: 440px; }
  .sigmg-portal-header { display: block; }
  .sigmg-logout-form { margin-top: 18px; }
  .sigmg-booking-reference { display: flex; width: 100%; justify-content: space-between; }
  .sigmg-section { padding: 26px 12px; }
  .sigmg-section-title { align-items: flex-start; gap: 8px; }
  .sigmg-section-title > div { min-width: 0; gap: 9px; }
  .sigmg-section-title .sigmg-print { max-width: 100px; padding: 8px 9px; font-size: 9px; }
  .sigmg-person-grid { grid-template-columns: 1fr; }
  .sigmg-person-card { display: block; }
  .sigmg-ticket-number { flex-wrap: wrap; }
  .sigmg-status { display: inline-block; margin-top: 8px; }
  .sigmg-flight-list,
  .sigmg-flight-card,
  .sigmg-route,
  .sigmg-route > div { min-width: 0; max-width: 100%; }
  .sigmg-flight-card { overflow: hidden; }
  .sigmg-route {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
    gap: 3px;
    padding: 18px 7px;
  }
  .sigmg-route strong { font-size: clamp(19px, 6.2vw, 25px); white-space: nowrap; }
  .sigmg-route span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .sigmg-route small { font-size: 8px; }
  .sigmg-route-center { gap: 10px; }
  .sigmg-route .sigmg-airline { flex-direction: column; gap: 3px; }
  .sigmg-route .sigmg-airline img { width: 42px !important; min-width: 42px !important; max-width: 42px !important; }
  .sigmg-route .sigmg-airline span { font-size: 8px !important; }
  .sigmg-route-line span { overflow: visible; font-size: 10px; }
  .sigmg-flight-meta,
  .sigmg-flight-footer { padding-right: 10px; padding-left: 10px; }
  .sigmg-surface { padding-right: 10px; padding-left: 10px; font-size: 10px; }
  .sigmg-document-card { grid-template-columns: 42px 1fr; }
  .sigmg-doc-actions { grid-column: 1 / -1; }
  .sigmg-doc-actions a { flex: 1 1 0; }
}

@media print {
  body * { visibility: hidden !important; }
  .sigmg-portal, .sigmg-portal * { visibility: visible !important; }
  .sigmg-portal { position: absolute; top: 0; left: 0; width: 100%; margin: 0; border: 0; box-shadow: none; }
  .sigmg-logout-form, .sigmg-print, .sigmg-doc-actions, .sigmg-security-note { display: none !important; }
  .sigmg-section { break-inside: avoid; }
}
