@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Roboto:wght@400;500;600;700&display=swap');

:root {
  --blue: #2563ad;
  --blue-deep: #173f78;
  --sky: #27a3d8;
  --red: #df1e2d;
  --red-deep: #b81220;
  --navy: #142f57;
  --ink: #17233d;
  --muted: #718096;
  --line: #e4ebf4;
  --bg: #f4f7fb;
  --green: #168b5b;
  --orange: #dc7a19;
  --white: #fff;
  --shadow: 0 14px 42px rgba(31, 61, 103, .075);
  --soft-shadow: 0 7px 22px rgba(31, 61, 103, .06);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 14px/1.5 Roboto, Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(39, 163, 216, .28);
  outline-offset: 2px;
}
h1, h2 { font-family: Righteous, Roboto, sans-serif; font-weight: 400; }
a { color: inherit; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 264px;
  flex-direction: column;
  padding: 24px 17px 16px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #fff;
}
.brand { display: block; padding: 0 12px 20px; }
.brand img { display: block; width: 190px; height: auto; }
.workspace-label {
  padding: 8px 13px;
  color: #9aa6b7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}
.sidebar nav { display: grid; gap: 3px; }
.sidebar nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #65748a;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar nav a > span {
  width: 22px;
  color: #92a0b3;
  font-size: 17px;
  text-align: center;
}
.sidebar nav a:hover, .sidebar nav a.active { color: var(--blue); background: #edf5ff; }
.sidebar nav a.active::before {
  position: absolute;
  left: -17px;
  width: 3px;
  height: 23px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--sky), var(--blue));
  content: "";
}
.sidebar nav a.active > span { color: var(--blue); }
.help-card {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid #dceafa;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef7ff, #fff7f8);
}
.help-card small { color: var(--muted); font-size: 10px; }
.help-card > div { display: flex; gap: 7px; margin-top: 7px; }
.help-card a {
  flex: 1;
  padding: 7px;
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  box-shadow: var(--soft-shadow);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 5px 2px;
  border: 0;
  background: transparent;
}
.user-mini > span, .avatar {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.user-mini div { display: grid; min-width: 0; flex: 1; text-align: left; }
.user-mini strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-mini small { color: var(--muted); font-size: 9px; }
.user-mini button { border: 0; background: transparent; color: #9aa6b6; cursor: pointer; }

.main { width: calc(100% - 264px); margin-left: 264px; }
.main > header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 0 33px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.main > header h1 { margin: 0 0 3px; font-size: 21px; letter-spacing: -.25px; }
.main > header p { margin: 0; color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search {
  display: flex;
  width: 235px;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
  color: #8795a9;
  text-align: left;
}
.search span { flex: 1; }
.search kbd { padding: 1px 5px; border: 1px solid #dfe5ed; border-radius: 4px; background: #fff; font-size: 9px; }
.icon-btn {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.icon-btn b { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
.notification-link em {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  padding: 2px 4px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  text-align: center;
}
.menu-btn { display: none; }
.content { max-width: 1580px; margin: auto; padding: 25px 31px 70px; }

.offline-banner {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 35px rgba(10, 24, 48, .28);
  font-size: 11px;
}
.is-offline form button[type=submit], .is-offline [data-create], .is-offline [data-attendance] { opacity: .55; }
.upgrade-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 14px 17px;
  border: 1px solid #ffd5aa;
  border-radius: 13px;
  background: #fff8ef;
}
.upgrade-banner div { display: grid; flex: 1; }
.upgrade-banner span { margin-top: 3px; color: #8a6745; font-size: 10px; }

.quickbar, .page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 19px;
}
.quickbar > div { display: grid; margin-right: auto; }
.quickbar span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 15px;
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn.primary { background: linear-gradient(135deg, #2d77bf, var(--blue)); color: #fff; box-shadow: 0 7px 16px rgba(37, 99, 173, .2); }
.btn.outline { border: 1px solid #dce4ed; background: #fff; color: var(--ink); }
.btn.whatsapp { background: #20a766; color: #fff; }
.tabs { display: flex; margin-right: auto; padding: 4px; overflow: auto; border-radius: 9px; background: #e9eff6; }
.tabs button { padding: 7px 11px; border: 0; border-radius: 7px; background: transparent; color: #748196; font-size: 10px; font-weight: 700; white-space: nowrap; }
.tabs button.active { background: #fff; color: var(--blue); box-shadow: 0 2px 7px #ccd6e4; }
.tabs b { padding: 2px 5px; border-radius: 7px; background: #eef4fb; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metrics article {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.metric-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 11px; font-size: 19px; }
.metric-icon.blue { color: var(--blue); background: #eaf4ff; }
.metric-icon.orange { color: var(--orange); background: #fff3e7; }
.metric-icon.green { color: var(--green); background: #e9f8f1; }
.metric-icon.red { color: var(--red); background: #fff0f1; }
.metrics small { color: #8592a5; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.metrics h3 { overflow: hidden; margin: 2px 0; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.metrics p { margin: 0; color: var(--muted); font-size: 9px; }
.metrics p.warn { color: var(--red); }

.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid.two { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .85fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lead-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.panel-title { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 19px; border-bottom: 1px solid #edf1f6; }
.panel-title h3 { margin: 0 0 2px; font-size: 13px; }
.panel-title p { margin: 0; color: var(--muted); font-size: 9px; }
.panel-title a { color: var(--blue); font-size: 10px; font-weight: 700; text-decoration: none; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 13px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.badge.blue { color: var(--blue); background: #eaf4ff; }
.badge.green { color: var(--green); background: #e8f8f0; }
.badge.orange { color: #c56b16; background: #fff3e7; }
.badge.red { color: var(--red); background: #fff0f1; }
.badge.gray { color: #657189; background: #f0f2f5; }
.green-text { color: var(--green) !important; }
.red-text { color: var(--red) !important; }

.departure-mini-list > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid #eef2f6;
  color: inherit;
  text-decoration: none;
}
.departure-mini-list > a:first-child { border-top: 0; }
.date-tile { display: grid; width: 40px; height: 43px; place-content: center; border-radius: 9px; background: #edf5ff; color: var(--blue); text-align: center; }
.date-tile b { font-size: 15px; line-height: 1; }
.date-tile small { font-size: 8px; text-transform: uppercase; }
.departure-mini-list p { display: grid; min-width: 0; flex: 1; margin: 0; }
.departure-mini-list p strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.departure-mini-list p small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.departure-mini-list > a > div:last-child { display: grid; width: 90px; gap: 4px; color: var(--blue); font-size: 9px; }
progress { width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 5px; appearance: none; background: #eaf0f6; }
progress::-webkit-progress-bar { background: #eaf0f6; }
progress::-webkit-progress-value { border-radius: 5px; background: linear-gradient(90deg, var(--sky), var(--blue)); }

.pipeline-chart { display: grid; gap: 8px; padding: 17px 19px; }
.pipeline-chart > div { display: grid; grid-template-columns: 105px 1fr 28px; align-items: center; gap: 8px; }
.pipeline-chart span { color: #66758a; font-size: 9px; }
.pipeline-chart i { height: 7px; border-radius: 6px; background: linear-gradient(90deg, var(--sky) var(--value), #ebf0f6 var(--value)); }
.pipeline-chart b { color: var(--navy); font-size: 10px; text-align: right; }
.attention > div { display: flex; align-items: center; gap: 10px; padding: 12px 19px; border-bottom: 1px solid #eff2f6; }
.attention > div:last-child { border-bottom: 0; }
.dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.dot.red { background: var(--red); }.dot.orange { background: var(--orange); }.dot.blue { background: var(--blue); }.dot.green { background: var(--green); }
.attention p { display: grid; margin: 0; }
.attention strong { font-size: 10px; }
.attention small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.pulse-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.pulse-grid > div { display: grid; gap: 6px; padding: 22px 17px; background: #fff; }
.pulse-grid small { color: var(--muted); font-size: 8px; letter-spacing: .6px; }
.pulse-grid strong { color: var(--blue-deep); font-size: 19px; }
.pulse-grid.compact-pulse { grid-template-columns: repeat(2, 1fr); margin-top: 18px; border-radius: 12px; overflow: hidden; }

.stage-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 18px; }
.stage-strip > div { display: grid; gap: 5px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 10px; background: #fff; }
.stage-strip > div:nth-last-child(-n+2) { border-top-color: var(--red); }
.stage-strip small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.stage-strip strong { font-size: 18px; }
.followup-list > div { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-top: 1px solid #edf1f6; }
.followup-list > div:first-child { border-top: 0; }
.followup-list > div.overdue { background: #fff9f9; }
.followup-list time { display: grid; width: 37px; height: 40px; place-content: center; border-radius: 8px; background: #edf5ff; color: var(--blue); text-align: center; }
.followup-list .overdue time { color: var(--red); background: #fff0f1; }
.followup-list time b { line-height: 1; }.followup-list time small { font-size: 8px; }
.followup-list p { display: grid; min-width: 0; flex: 1; margin: 0; }
.followup-list p strong { font-size: 10px; }.followup-list p small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.followup-list a { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--blue); font-size: 8px; font-weight: 700; text-decoration: none; }

.module-panel { min-height: 340px; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 16px; background: #fafbfd; color: #8793a5; font-size: 8px; font-weight: 700; letter-spacing: .7px; text-align: left; white-space: nowrap; }
td { padding: 13px 16px; border-top: 1px solid #eef2f6; color: #59677c; font-size: 10px; vertical-align: middle; }
td strong { color: var(--ink); }
td small { display: block; margin-top: 2px; color: #919cad; }
.records td { max-width: 260px; }
.records tbody tr:hover { background: #fbfdff; }
.row-actions { display: flex; gap: 5px; }
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.whatsapp-link { color: #178b56; }
.muted-action { color: #97a3b3; cursor: default; }
.table-search { display: flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; color: #9aa5b5; }
.table-search input { width: 120px; border: 0; outline: 0; background: transparent; font-size: 9px; }
.empty-state { padding: 40px 20px !important; color: var(--muted) !important; text-align: center !important; }

.permission-panel { margin-top: 18px; }
.permission-panel select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.permission-table td:not(:first-child) { text-align: center; }
.permission-table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); }
.leave-list > div, .profit-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid #eef2f6;
}
.leave-list > div:first-child, .profit-list > div:first-child { border-top: 0; }
.leave-list p, .profit-list p { display: grid; min-width: 0; flex: 1; margin: 0; }
.leave-list p strong, .profit-list p strong { font-size: 10px; }
.leave-list p small, .profit-list p small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.departure-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.departure-cards > a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: inherit;
  box-shadow: var(--soft-shadow);
  text-decoration: none;
}
.departure-cards > a.selected { border-color: #9fc4ea; box-shadow: 0 0 0 2px #e0efff, var(--shadow); }
.departure-cards small { color: var(--red); font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.departure-cards h3 { margin: 3px 0; font-size: 13px; }
.departure-cards p { margin: 0; color: var(--muted); font-size: 9px; }
.departure-cards footer { display: flex; grid-column: 1/-1; justify-content: space-between; padding-top: 9px; border-top: 1px solid #edf1f6; color: #66758a; font-size: 8px; }
.readiness-ring {
  display: grid;
  width: 58px;
  height: 58px;
  place-content: center;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff 74%, transparent 76%), conic-gradient(var(--blue) var(--ready), #eaf0f6 0);
}
.readiness-ring strong { font-size: 10px; }
.readiness-bars { display: grid; gap: 14px; padding: 20px; }
.readiness-bars label { display: grid; grid-template-columns: 1fr auto; gap: 5px; color: #67758a; font-size: 9px; }
.readiness-bars label progress { grid-column: 1/-1; }
.checklist form { border-top: 1px solid #eef2f6; }
.checklist form:first-child { border-top: 0; }
.checklist label { display: flex; align-items: center; gap: 11px; padding: 12px 18px; cursor: pointer; }
.checklist input { position: absolute; opacity: 0; }
.checklist label > span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #ccd7e4; border-radius: 8px; color: transparent; }
.checklist input:checked + span { border-color: var(--green); background: #e8f8f0; color: var(--green); }
.checklist p { display: grid; margin: 0; }
.checklist strong { font-size: 10px; }.checklist small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.quotation-builder { margin-bottom: 18px; }
.quotation-builder > form { padding: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid label { display: grid; gap: 5px; color: #48566a; font-size: 9px; font-weight: 700; }
.form-grid .wide { grid-column: 1/-1; }
.form-grid input, .form-grid select, .form-grid textarea,
.modal-card input, .modal-card select, .modal-card textarea,
.portal-form input, .portal-form select, .portal-form textarea,
.quote-actions textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}
.form-grid textarea, .modal-card textarea, .portal-form textarea { min-height: 78px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus,
.modal-card input:focus, .modal-card select:focus, .modal-card textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #e9f3ff;
}
.quote-items-editor { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.quote-item {
  display: grid;
  grid-template-columns: 100px minmax(180px, 1.5fr) 70px 95px 105px 95px 90px 28px;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border-top: 1px solid #eef2f6;
}
.quote-item:first-child { border-top: 0; }
.quote-item label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 700; }
.quote-item input, .quote-item select { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.quote-item > b { padding: 9px 0; color: var(--blue); font-size: 10px; }
.quote-item > button { width: 27px; height: 32px; border: 0; border-radius: 7px; background: #fff0f1; color: var(--red); cursor: pointer; }
.builder-total { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 18px 5px 2px; }
.builder-total span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.builder-total strong { color: var(--blue); font-size: 22px; }

.integration-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 140px 140px;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 17px 20px;
  border: 1px solid #cfe6db;
  border-radius: 15px;
  background: linear-gradient(120deg, #effbf5, #fff);
  box-shadow: var(--soft-shadow);
}
.integration-card > div { display: flex; align-items: center; gap: 11px; }
.integration-card > div p { display: grid; margin: 0; }
.integration-card > div small { color: var(--muted); font-size: 8px; }
.integration-card > div > strong { font-size: 10px; }
.integration-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #1aa868; color: #fff; }
.report-list > div { display: flex; align-items: center; gap: 10px; padding: 12px 17px; border-top: 1px solid #eef2f6; }
.report-list > div:first-child { border-top: 0; }
.report-list p { display: grid; min-width: 0; flex: 1; margin: 0; }
.report-list strong { font-size: 10px; }.report-list small { color: var(--muted); font-size: 8px; }
.report-list > div > b { color: var(--blue); font-size: 12px; }

.access-denied { display: grid; min-height: 420px; place-content: center; justify-items: center; padding: 50px; text-align: center; }
.access-denied > span { display: grid; width: 70px; height: 70px; place-items: center; border-radius: 50%; background: #fff0f1; color: var(--red); font-size: 28px; }
.access-denied h2 { margin: 18px 0 5px; }.access-denied p { margin: 0 0 18px; color: var(--muted); }

.modal { position: fixed; z-index: 100; inset: 0; display: none; place-items: center; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18, 35, 61, .56); backdrop-filter: blur(3px); }
.modal-card {
  position: relative;
  width: min(730px, calc(100% - 28px));
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(10, 25, 50, .28);
}
.modal-card > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.modal-card header h2 { margin: 3px 0 0; font-size: 19px; }
.modal-card header > button { width: 34px; height: 34px; margin-left: auto; border: 0; border-radius: 50%; background: #f0f4f8; color: #657189; font-size: 20px; cursor: pointer; }
.modal-card > form { padding: 20px 22px; }
.modal-card .check { display: flex; flex-direction: row; align-items: center; }
.modal-card .check input { width: auto; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal-actions .form-message { margin-right: auto; }
.form-message { min-height: 17px; margin: 10px 0 0; font-size: 10px; }
.success-text { color: var(--green); }.error-text { color: var(--red); }
.document-preview { grid-column: 1/-1; padding: 9px; border: 1px solid #d9eaff; border-radius: 8px; background: #edf6ff; color: var(--blue); font-size: 10px; font-weight: 700; text-decoration: none; }

.login-page { background: #edf3fa; }
.login-shell, .portal-login { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr); }
.login-brand, .portal-welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vh 7.5vw;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(234, 246, 255, .96)), radial-gradient(circle at 10% 100%, #6ecaf0, transparent 45%);
}
.login-brand::after, .portal-welcome::after {
  position: absolute;
  right: -270px;
  bottom: -250px;
  width: 520px;
  height: 520px;
  border: 80px solid rgba(37, 99, 173, .05);
  border-radius: 50%;
  content: "";
}
.login-brand img, .portal-welcome img { width: 260px; margin-bottom: 62px; }
.eyebrow { color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
.login-brand h1, .portal-welcome h1 { max-width: 700px; margin: 14px 0; color: var(--navy); font-size: clamp(36px, 4vw, 53px); line-height: 1.08; letter-spacing: -1px; }
.login-brand h1 em { color: var(--blue); font-style: normal; }
.login-brand > p, .portal-welcome > p { max-width: 580px; color: #68788f; font-size: 15px; line-height: 1.7; }
.journey { display: flex; align-items: center; gap: 11px; margin-top: 38px; color: #7990ab; font-size: 10px; font-weight: 700; }
.journey i { width: 48px; height: 1px; background: #bdd0e3; }
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px 6.5vw;
  background: #fff;
  box-shadow: -20px 0 60px rgba(30, 60, 100, .07);
}
.mobile-logo { display: none; }
.status-pill { align-self: flex-start; padding: 5px 9px; border-radius: 14px; background: #eaf8f1; color: #28825d; font-size: 9px; font-weight: 700; }
.status-pill b { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #32b879; }
.login-card h2 { margin: 22px 0 4px; font-size: 28px; }
.login-card > p { margin: 0 0 27px; color: var(--muted); }
.login-card form { display: grid; gap: 16px; }
.login-card label { display: grid; gap: 6px; font-size: 10px; font-weight: 700; }
.login-card input { padding: 12px; border: 1px solid #dce4ef; border-radius: 9px; outline: 0; }
.login-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #e9f3ff; }
.login-card .btn { margin-top: 4px; padding: 12px; }.login-card .btn span { margin-left: auto; }
.demo-note, .setup-notice, .success, .alert { padding: 10px 12px; border-radius: 8px; font-size: 10px; }
.demo-note { display: grid; margin-top: 20px; background: #f5f8fc; }.demo-note span { margin-top: 3px; color: var(--muted); }
.setup-notice, .success { margin-bottom: 15px; border: 1px solid #d5eaff; background: #edf6ff; color: var(--blue); }
.alert { margin-bottom: 14px; background: #fff0f1; color: var(--red); }
.setup-notice a, .success a { color: inherit; font-weight: 700; }
.portal-links { display: flex; justify-content: center; gap: 20px; margin-top: 22px; }
.portal-links a, .portal-switch { color: var(--blue); font-size: 10px; font-weight: 700; text-decoration: none; }
.portal-switch { margin-top: 18px; text-align: center; }

.installer { width: min(760px, calc(100% - 30px)); margin: 42px auto; padding: 34px 44px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.installer > img { width: 220px; margin-bottom: 32px; }.installer h1 { margin: 8px 0; font-size: 27px; }.installer > p { margin-bottom: 23px; color: var(--muted); }
.installer form h3 { margin-top: 24px; font-size: 13px; }.installer .btn { margin-top: 20px; }

.portal-welcome h1 { max-width: 650px; }
.agent-welcome { background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(241, 248, 255, .97)), radial-gradient(circle at 10% 100%, #6ecaf0, transparent 45%); }
.portal-page { min-height: 100vh; background: #f2f6fb; }
.portal-header { display: flex; height: 76px; align-items: center; gap: 14px; padding: 0 max(20px, calc((100vw - 1240px)/2)); border-bottom: 1px solid var(--line); background: #fff; }
.portal-header img { width: 190px; margin-right: auto; }.portal-header > div { display: grid; text-align: right; }.portal-header small { color: var(--muted); font-size: 8px; }.portal-header strong { font-size: 11px; }
.portal-header form { margin: 0; }
.portal-shell { width: min(1240px, calc(100% - 32px)); margin: 24px auto 60px; }
.journey-hero { display: flex; align-items: center; justify-content: space-between; padding: 28px 31px; overflow: hidden; border-radius: 18px; background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; box-shadow: 0 18px 45px rgba(23, 63, 120, .2); }
.journey-hero .eyebrow { color: #8fd6f4; }.journey-hero h1 { margin: 7px 0 3px; font-size: 29px; }.journey-hero p { margin: 0; color: #d9e9f9; font-size: 11px; }
.journey-status { padding: 7px 11px; border: 1px solid #ffffff48; border-radius: 18px; background: #ffffff17; font-size: 10px; font-weight: 700; }
.agent-hero { margin-bottom: 18px; background: linear-gradient(120deg, #153f72, #167b84); }
.portal-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 17px 0; }
.portal-metrics article { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--soft-shadow); }
.portal-metrics small { color: var(--muted); font-size: 8px; letter-spacing: .7px; }.portal-metrics strong { color: var(--navy); font-size: 18px; }
.portal-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; margin-bottom: 16px; }
.portal-list > div { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px; padding: 12px 17px; border-top: 1px solid #edf1f6; }
.portal-list > div:first-child { border-top: 0; }.portal-list p { display: grid; margin: 0; }.portal-list p strong { font-size: 10px; }.portal-list p small { color: var(--muted); font-size: 8px; }
.stay-card { display: grid; gap: 5px; margin: 14px 17px; padding: 15px; border: 1px solid #dceafb; border-radius: 11px; background: #f3f8ff; }
.stay-card small { color: var(--blue); font-size: 8px; font-weight: 700; letter-spacing: .8px; }.stay-card strong { font-size: 11px; }
.timeline > div { display: flex; align-items: center; gap: 10px; padding: 12px 17px; border-top: 1px solid #edf1f6; }
.timeline > div:first-child { border-top: 0; }.timeline > div > b { min-width: 65px; color: var(--blue); font-size: 9px; }.timeline p { display: grid; min-width: 0; flex: 1; margin: 0; }.timeline p strong { font-size: 10px; }.timeline p small { color: var(--muted); font-size: 8px; }.timeline time { color: #6f7d91; font-size: 8px; }
.download-list a { display: flex; align-items: center; gap: 10px; padding: 12px 17px; border-top: 1px solid #edf1f6; color: inherit; text-decoration: none; }
.download-list a:first-child { border-top: 0; }.download-list a > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: #edf5ff; color: var(--blue); }
.download-list p { display: grid; min-width: 0; margin: 0; }.download-list strong { font-size: 9px; }.download-list small { color: var(--muted); font-size: 8px; }
.portal-help { display: flex; align-items: center; gap: 8px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.portal-help p { display: grid; flex: 1; margin: 0; }.portal-help small { color: var(--muted); font-size: 9px; }
.portal-form > form { padding: 17px; }

.quote-page { padding: 35px 15px; background: #eaf0f7; }
.quote-paper { width: min(900px, 100%); margin: auto; padding: 42px 50px; border-top: 6px solid var(--blue); background: #fff; box-shadow: 0 20px 60px rgba(24, 48, 82, .15); }
.quote-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 24px; border-bottom: 2px solid var(--blue); }
.quote-head img { width: 225px; }.quote-head > div { display: grid; color: var(--blue); text-align: right; }.quote-head span { font-family: Righteous, sans-serif; font-size: 24px; }.quote-head strong { color: var(--red); font-size: 11px; letter-spacing: 1px; }
.quote-intro { display: flex; justify-content: space-between; gap: 30px; padding: 25px 0; }.quote-intro > div { display: grid; align-content: start; }.quote-intro > div:last-child { text-align: right; }
.quote-intro small, .quote-journey small { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .8px; }.quote-intro h1 { margin: 5px 0 0; font-size: 24px; }.quote-intro p { margin: 3px 0; color: var(--muted); font-size: 10px; }.quote-intro .badge { margin-top: 8px; justify-self: end; }
.quote-journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 24px; border: 1px solid #dce8f5; border-radius: 11px; overflow: hidden; background: #dce8f5; }
.quote-journey > div { display: grid; gap: 4px; padding: 13px; background: #f3f8ff; }.quote-journey strong { font-size: 10px; }
.quote-row { display: grid; grid-template-columns: 115px 1fr 60px 130px; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e9eef4; font-size: 10px; }
.quote-row > span:last-child { text-align: right; }.quote-row-head { border: 0; background: var(--navy); color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.quote-total { display: flex; align-items: center; justify-content: flex-end; gap: 25px; padding: 22px 14px; background: #edf5ff; }.quote-total span { color: var(--muted); font-size: 9px; font-weight: 700; }.quote-total strong { color: var(--blue); font-size: 25px; }
.quote-terms { padding: 20px 0; }.quote-terms h3 { margin: 0 0 6px; font-size: 11px; }.quote-terms p { margin: 0; color: var(--muted); font-size: 9px; }
.quote-actions { display: flex; align-items: flex-start; gap: 15px; padding: 18px 0; border-top: 1px solid var(--line); }.quote-actions > form { display: grid; flex: 1; gap: 8px; }.quote-actions label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }.quote-actions textarea { min-height: 70px; resize: vertical; }.quote-actions form > div { display: flex; justify-content: flex-end; gap: 8px; }.quote-actions .reject { color: var(--red); }
.quote-paper footer { display: flex; justify-content: space-between; padding-top: 14px; border-top: 2px solid var(--red); color: var(--muted); font-size: 9px; }.quote-paper footer strong { color: var(--navy); }

.utility-page { min-height: 100vh; padding: 26px 0 55px; background: linear-gradient(145deg, #eef6ff, #f9fbfd 52%, #fff1f2); }
.utility-shell { width: min(920px, calc(100% - 28px)); margin: auto; }.utility-shell.wide { width: min(1240px, calc(100% - 28px)); }
.utility-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }.utility-header .brand { padding: 0; }.utility-header .brand img { width: 205px; }
.utility-panel { padding: 26px; }.utility-panel h1 { margin: 0 0 4px; font-size: 24px; }.utility-panel .panel-title { align-items: flex-start; }
.notice { margin: 14px 0; padding: 11px 13px; border-radius: 9px; font-size: 11px; font-weight: 600; }.notice.success { border: 1px solid #bfe6d4; background: #effbf5; color: var(--green); }.notice.error { border: 1px solid #f1c4c8; background: #fff1f2; color: var(--red-deep); }
.bulk-steps { display: grid; gap: 10px; margin: 20px 0; }.bulk-steps article { display: flex; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfe; }.bulk-steps article > b { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; }.bulk-steps article div { display: grid; gap: 4px; }.bulk-steps p { margin: 0; color: var(--muted); font-size: 11px; }.bulk-steps .btn { justify-self: start; margin-top: 7px; }
.bulk-form, .photo-upload, .id-card-tools { display: flex; align-items: end; gap: 10px; padding: 15px; border: 1px solid #dce8f5; border-radius: 12px; background: #f2f7fd; }.bulk-form label, .photo-upload label, .id-card-tools label:not(.select-all) { display: grid; flex: 1; gap: 5px; }.bulk-form label span, .photo-upload label span, .id-card-tools label span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .4px; }.bulk-form input, .photo-upload input, .photo-upload select, .id-card-tools input { min-height: 38px; padding: 8px 10px; border: 1px solid #d8e2ef; border-radius: 8px; background: #fff; }
.bulk-switch, .card-tabs { display: flex; flex-wrap: wrap; gap: 7px; }.bulk-switch { margin-top: 17px; }.bulk-switch a, .card-tabs a { padding: 7px 10px; border-radius: 8px; color: var(--blue); font-size: 10px; font-weight: 700; text-decoration: none; }.bulk-switch a.active, .card-tabs a.active { background: #e8f2ff; }
.photo-upload { margin: 15px 0; }.id-card-tools { flex-wrap: wrap; margin: 16px 0; }.id-card-tools .select-all { display: flex; align-items: center; gap: 6px; margin-right: auto; font-weight: 700; }.id-card-tools input[type="checkbox"] { min-height: 0; }
.id-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.travel-id-card { position: relative; display: grid; width: 100%; aspect-ratio: 85.6/54; overflow: hidden; border: 1px solid #cadaee; border-radius: 13px; background: linear-gradient(145deg, #fff 52%, #edf6ff); box-shadow: 0 10px 28px rgba(21, 58, 106, .12); }
.travel-id-card::after { position: absolute; right: -40px; bottom: -75px; width: 180px; height: 180px; border: 22px solid rgba(39, 163, 216, .09); border-radius: 50%; content: ""; }
.card-selector { position: absolute; z-index: 4; top: 8px; right: 8px; padding: 4px 7px; border-radius: 12px; background: #fff; box-shadow: var(--soft-shadow); font-size: 9px; font-weight: 700; }
.card-brand { position: relative; z-index: 2; display: flex; height: 25%; align-items: center; justify-content: space-between; padding: 8px 13px 5px; border-bottom: 2px solid var(--red); }.card-brand img { width: 31%; }.card-brand span { margin-right: 65px; color: var(--navy); font-size: 8px; font-weight: 700; letter-spacing: .9px; }
.card-body { position: relative; z-index: 2; display: grid; grid-template-columns: 29% 1fr; gap: 10px; min-height: 0; padding: 9px 13px 5px; }.card-photo { display: grid; overflow: hidden; place-items: center; border: 1px solid #c7d9ed; border-radius: 8px; background: #eaf3fd; color: var(--blue); }.card-photo img { width: 100%; height: 100%; object-fit: cover; }.card-photo b { align-self: end; font: 400 31px Righteous, sans-serif; }.card-photo small { align-self: start; font-size: 6px; font-weight: 700; letter-spacing: 1px; }
.card-details { min-width: 0; }.card-details h2 { overflow: hidden; margin: 0 0 5px; color: var(--navy); font-size: 15px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }.card-details p { display: grid; grid-template-columns: 58px 1fr; gap: 5px; margin: 2px 0; }.card-details span, .travel-id-card footer span { color: var(--muted); font-size: 6px; font-weight: 700; letter-spacing: .5px; }.card-details strong { overflow: hidden; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.travel-id-card footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 4px 13px 7px; border-top: 1px solid #dce8f4; }.travel-id-card footer p { display: grid; margin: 0; }.travel-id-card footer strong { color: var(--red-deep); font-size: 8px; }.travel-id-card footer .emergency { display: block; color: var(--muted); font-size: 6px; }

.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two, .lead-layout, .portal-grid { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-strip { grid-template-columns: repeat(4, 1fr); }
  .departure-cards { grid-template-columns: repeat(2, 1fr); }
  .quote-item { grid-template-columns: 100px 1fr 70px 90px; }
  .quote-item > :nth-child(n+5) { grid-row: 2; }
  .integration-card { grid-template-columns: 1fr auto; }
  .integration-card > div:nth-last-child(-n+2) { display: none; }
}

@media (max-width: 800px) {
  body { padding-bottom: 64px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 12px 0 45px rgba(22, 48, 86, .23); }
  .main { width: 100%; margin-left: 0; }
  .main > header { height: 70px; padding: 0 15px; }
  .main > header h1 { font-size: 17px; }.main > header p, .search, .push-button { display: none; }
  .menu-btn { display: grid; width: 36px; height: 36px; margin-right: 10px; place-items: center; border: 0; border-radius: 8px; background: #edf4fb; color: var(--blue); }
  .header-actions { margin-left: auto; }.content { padding: 15px 13px 25px; }
  .quickbar, .page-actions { flex-wrap: wrap; }.quickbar > div { width: 100%; }.quickbar .btn { flex: 1; }
  .page-actions .tabs { width: 100%; }.page-actions > .btn, .page-actions > a.btn { flex: 1; white-space: nowrap; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.metrics article { padding: 12px; gap: 9px; }.metric-icon { width: 34px; height: 34px; }.metrics h3 { font-size: 16px; }
  .grid.three, .report-grid { grid-template-columns: 1fr; }.stage-strip { grid-template-columns: repeat(2, 1fr); }
  .departure-cards { grid-template-columns: 1fr; }.pulse-grid { grid-template-columns: repeat(2, 1fr); }
  .login-shell, .portal-login { grid-template-columns: 1fr; }.login-brand, .portal-welcome { display: none; }.login-card { min-height: 100vh; padding: 32px 24px; }
  .mobile-logo { display: block; }.mobile-logo img { width: 205px; margin-bottom: 42px; }
  .mobile-nav { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: flex; height: 62px; justify-content: space-around; padding: 5px; border-top: 1px solid var(--line); background: #fff; }
  .mobile-nav a { display: grid; min-width: 54px; place-items: center; color: #8795aa; font-size: 16px; text-decoration: none; }.mobile-nav small { font-size: 8px; }.mobile-nav a.active { color: var(--blue); }
  table { min-width: 680px; }.form-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }
  .quote-item { grid-template-columns: 1fr 1fr; }.quote-item > * { grid-row: auto !important; }.quote-item .description { grid-column: 1/-1; }.quote-item > b { text-align: right; }
  .portal-header { height: auto; padding: 13px 16px; flex-wrap: wrap; }.portal-header img { width: 160px; }.portal-header > div { display: none; }
  .portal-shell { width: min(100% - 22px, 1240px); margin-top: 12px; }.journey-hero { padding: 22px; }.journey-hero h1 { font-size: 23px; }
  .portal-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }.portal-list > div { grid-template-columns: auto 1fr; }.portal-list .badge { display: none; }
  .quote-page { padding: 0; }.quote-paper { padding: 25px 18px; box-shadow: none; }.quote-head img { width: 170px; }.quote-head span { font-size: 17px; }
  .quote-intro { flex-direction: column; }.quote-intro > div:last-child { text-align: left; }.quote-intro .badge { justify-self: start; }
  .quote-journey { grid-template-columns: 1fr; }.quote-row { grid-template-columns: 80px 1fr 40px 90px; padding: 10px 7px; }.quote-actions { flex-direction: column; }.quote-actions > * { width: 100%; }
  .modal-card .form-grid { grid-template-columns: 1fr; }.modal-card .wide { grid-column: auto; }
  .installer { margin: 14px auto; padding: 24px 19px; }
  .utility-page { padding-bottom: 30px; }.utility-panel { padding: 18px; }.bulk-form, .photo-upload, .id-card-tools { align-items: stretch; flex-direction: column; }.id-card-grid { grid-template-columns: 1fr; }.card-brand span { margin-right: 70px; }
}

@media (max-width: 460px) {
  .metrics { grid-template-columns: 1fr; }
  .portal-metrics { grid-template-columns: 1fr 1fr; }
  .portal-help { flex-wrap: wrap; }.portal-help p { width: 100%; flex-basis: 100%; }
  .quote-row { grid-template-columns: 70px 1fr 72px; }.quote-row > span:nth-child(3) { display: none; }
}

@media print {
  .quote-page { padding: 0; background: #fff; }
  .quote-paper { width: auto; padding: 18mm; box-shadow: none; }
  .quote-actions, .quote-paper .alert, .quote-paper .success { display: none; }
  @page { size: A4 portrait; margin: 8mm; }
  body.id-card-page { padding: 0; background: #fff; }
  .id-card-page .no-print, .id-card-page .skip-print { display: none !important; }
  .id-card-page .utility-shell, .id-card-page .utility-panel { width: auto; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .id-card-page .id-card-grid { grid-template-columns: repeat(2, 85.6mm); gap: 6mm; justify-content: center; }
  .id-card-page .travel-id-card { width: 85.6mm; height: 54mm; aspect-ratio: auto; break-inside: avoid; border-radius: 3mm; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
