/* ConsultAAS - brand: navy #123B63, orange #F28C28.
   Orange carries calls to action (navy text on orange, 4.7:1). Small orange text on white uses --orange-text. */
:root {
  --navy: #123B63; --navy-700: #0E2F4F; --navy-900: #0A2239; --navy-50: #EEF3F8; --navy-100: #DCE6F0;
  --orange: #F28C28; --orange-600: #DB7A19; --orange-50: #FFF4E8; --orange-text: #B45309;
  --ink: #1B2A3A; --muted: #5B6B7C; --line: #E2E8EF; --bg: #F6F8FB; --white: #fff;
  --ok: #1F7A4D; --ok-bg: #E6F4EC; --bad: #B42318; --bad-bg: #FDECEA;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Cambria, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 12px; --r-sm: 8px; --shadow: 0 1px 2px rgba(18,59,99,.06), 0 6px 20px rgba(18,59,99,.06);
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; } .center p, .center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); } .small { font-size: .9rem; }
.mt { margin-top: 24px; } .mt-lg { margin-top: 40px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }
.hp { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; text-decoration: none;
  padding: 11px 20px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--orange); color: var(--navy-900); }
.btn-primary:hover { background: var(--orange-600); color: var(--navy-900); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; text-decoration: underline; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; } .btn-sm { padding: 8px 16px; font-size: .95rem; white-space: nowrap; } .btn-xs { padding: 5px 12px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; } .center-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand-img { height: 46px; width: auto; display: block; }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--navy); margin: 0; letter-spacing: -.02em; }
.brand-text span { color: var(--orange); }
.primary-nav { display: flex; align-items: center; gap: 12px; }
.primary-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav a:not(.btn) { display: block; white-space: nowrap; padding: 8px 7px; text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; border-radius: 6px; }
.primary-nav a:not(.btn):hover { color: var(--navy); background: var(--navy-50); }
.primary-nav a.active { color: var(--navy); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1260px) {
  .nav-toggle { display: block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 16px 20px; gap: 12px; box-shadow: 0 12px 24px rgba(10,34,57,.12); max-height: calc(100vh - 68px); overflow: auto; }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a:not(.btn) { padding: 12px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .primary-nav a.active { box-shadow: none; color: var(--orange-text); }
  .nav-cta { align-self: stretch; }
  .primary-nav a:not(.btn) { white-space: normal; }
}
noscript + * .primary-nav { display: flex; }

.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin: 0 0 12px; border: 1px solid var(--line); background: var(--navy-50); }
.flash-success { background: var(--ok-bg); border-color: #BFE3CF; color: #14532D; }
.flash-error { background: var(--bad-bg); border-color: #F5C2BD; color: #7A1A12; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 56px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero-text { font-size: 1.2rem; color: #D6E2EE; max-width: 52ch; }
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--orange-text); margin: 0 0 8px; }
.eyebrow a { color: inherit; }
.eyebrow-light { color: #F6B66B; }
.eyebrow-light a { color: #F6B66B; }
.hero-copy .btn-row { margin: 28px 0 22px; }
.hero-note { display: flex; gap: 8px; align-items: flex-start; color: #F6D3A4; font-size: .98rem; max-width: 52ch; }
.hero-note .icon { flex: none; color: var(--orange); margin-top: 3px; }
.hero-visual { background: rgba(255,255,255,.06); border-radius: 20px; padding: 14px; }
.hero-svg, .hero-img { display: block; width: 100%; border-radius: 14px; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 40px 0 48px; } }

.page-hero { background: var(--navy); color: #fff; padding: 44px 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 26ch; }
.page-hero .hero-text { margin-bottom: 0; }

/* ---------- Sections and grids ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg); }
.section-head { margin-bottom: 32px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; color: var(--muted); }
.lead-big { font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; color: var(--navy); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } .section { padding: 44px 0; } }
.stack > * + * { margin-top: 20px; } .stack-lg > * + * { margin-top: 28px; } .stack-sm > * + * { margin-top: 10px; }
.stack-sm { display: grid; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .15s, border-color .15s; }
a.card:hover { border-color: var(--navy); transform: translateY(-2px); color: inherit; }
.pad { padding: 24px; }
.card.accent { background: var(--navy-50); border-color: var(--navy-100); }
.card-body { padding: 18px 20px 22px; }
.problem-card, .solution-card { padding: 22px; }
.problem-card h3 { font-size: 1.05rem; }
.problem-card p, .solution-card p { font-size: .98rem; color: var(--muted); margin-bottom: .6em; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy-50); color: var(--navy); margin-bottom: 12px; }
.icon-badge-lg { width: 60px; height: 60px; margin: 0; flex: none; }
.icon-badge.success { background: var(--ok-bg); color: var(--ok); }
.link-arrow { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--navy); margin-top: 6px; }
a.card:hover .link-arrow { color: var(--orange-text); }

/* Process flows: connected steps, read left to right */
.flow { display: flex; flex-wrap: wrap; gap: 6px 4px; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: none; }
.flow li { position: relative; background: var(--navy-50); color: var(--navy); font-size: .88rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; margin-right: 14px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: translateY(-50%) rotate(45deg); }
.flow-compact li { font-size: .8rem; padding: 3px 9px; }
.flow-light li { background: rgba(255,255,255,.12); color: #fff; }
.flow-light li:not(:last-child)::after { border-color: #F6B66B; }

.erp-band { background: var(--orange-50); border-top: 1px solid #F8D3A8; border-bottom: 1px solid #F8D3A8; }
.erp-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.erp-inner h2 { margin: 0; }
.erp-inner p { margin: 0; }
@media (max-width: 820px) { .erp-inner { grid-template-columns: 1fr; gap: 16px; } }

/* A real sequence: numbered, connected */
.value-chain, .journey { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.value-chain li, .journey li { flex: 1 1 170px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 16px 58px; font-weight: 600; color: var(--navy); min-height: 68px; display: flex; align-items: center; }
.value-chain li span, .journey li span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.value-chain li:last-child span, .journey li:last-child span { background: var(--orange); color: var(--navy-900); }
.journey-compact li { flex-basis: 150px; }

.demo-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy-900); overflow: hidden; }
.demo-thumb img, .demo-thumb .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.play-badge { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--navy-900); display: grid; place-items: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--navy); }
.chip:hover { border-color: var(--navy); background: var(--navy-50); color: var(--navy); }

/* Placeholders for optional assets */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; aspect-ratio: 16 / 9; min-height: 120px;
  background: repeating-linear-gradient(135deg, var(--navy-50) 0 14px, #E6EEF6 14px 28px); color: var(--navy); text-align: center; padding: 12px; font-weight: 600; font-size: .95rem; }
.demo-thumb .ph { background: var(--navy-700); color: #fff; }
.card-media .ph, .card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.media-card .ph, .media-card img { width: 100%; display: block; object-fit: cover; }
.profile-photo .ph, .profile-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r); }

.cta-band { background: var(--navy-900); color: #fff; padding: 48px 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; } .cta-band p { color: #C9D8E6; margin: 0; max-width: 56ch; }

/* ---------- Solutions / detail pages ---------- */
.solution-row { padding: 28px; }
.solution-row-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.solution-row-head h2 { margin-bottom: 10px; } .solution-row-head h2 a { text-decoration: none; }
.solution-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.solution-cols h3 { font-size: 1rem; color: var(--orange-text); font-family: var(--sans); }
.solution-cols p { font-size: .95rem; }
.solution-row-foot { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.solution-row-foot p { margin: 0; }
@media (max-width: 1000px) { .solution-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .solution-cols { grid-template-columns: 1fr; } .solution-row { padding: 20px; } .solution-row-head { flex-direction: column; align-items: flex-start; } }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 6px; height: 11px; border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(40deg); }
.ticks.small { font-size: .93rem; } .cols-2 { columns: 2; column-gap: 32px; } @media (max-width: 600px) { .cols-2 { columns: 1; } }
.steps { padding-left: 22px; } .steps li { margin-bottom: .5em; padding-left: 4px; }
.plain-list { list-style: none; padding: 0; margin: 0; } .plain-list li { padding: 6px 0; border-bottom: 1px solid var(--line); } .plain-list li:last-child { border: 0; }
.industry-card .card-body { padding-top: 16px; }
.notice { background: var(--orange-50); border: 1px solid #F8D3A8; border-radius: var(--r-sm); padding: 14px 18px; max-width: none; }

.video-frame { background: var(--navy-900); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.video-frame video { width: 100%; height: 100%; display: block; background: #000; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; }
.video-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.video-placeholder-text { position: relative; display: grid; gap: 8px; justify-items: center; max-width: 46ch; }
.video-placeholder-text .icon { color: var(--orange); }
.video-failed { position: absolute; inset: 0; }
.storyboard { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.storyboard li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.storyboard li:last-child { border: 0; }
.sb-label { font-weight: 700; color: var(--navy); }
@media (max-width: 600px) { .storyboard li { grid-template-columns: 1fr; gap: 2px; } }

.stage-card { padding: 24px; } .stage-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.model-card .model-key { display: inline-block; background: var(--navy); color: #fff; border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.case-card { display: grid; grid-template-columns: 340px 1fr; }
.case-media .ph, .case-media img { height: 100%; width: 100%; min-height: 220px; object-fit: cover; aspect-ratio: auto; }
.case-body { padding: 28px; } .case-body h3 { margin-top: 1em; font-family: var(--sans); font-size: 1rem; color: var(--orange-text); }
@media (max-width: 800px) { .case-card { grid-template-columns: 1fr; } .case-media .ph, .case-media img { min-height: 160px; aspect-ratio: 16/9; } }
.about-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; } @media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.profile-card { padding: 24px; text-align: center; } .profile-photo { max-width: 240px; margin: 0 auto 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 28px; } .toc a { font-weight: 600; }
.thanks, .error-page { padding: 88px 0; } .error-code { font-family: var(--serif); font-size: 5rem; color: var(--orange); margin: 0; line-height: 1; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; } @media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: 28px; } @media (max-width: 600px) { .form-card { padding: 18px; } }
fieldset { border: 0; padding: 0; margin: 0 0 22px; } legend { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--navy); padding: 0; margin-bottom: 12px; }
.field { margin-bottom: 14px; flex: 1 1 0; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 5px; } .req { color: var(--bad); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #B9C6D4; border-radius: var(--r-sm); padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(242,140,40,.45); border-color: var(--navy); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.help { color: var(--muted); display: block; margin-top: 4px; } small.error { color: var(--bad); font-weight: 600; display: block; margin-top: 4px; }
.form-row { display: flex; gap: 16px; } @media (max-width: 600px) { .form-row { flex-direction: column; gap: 0; } }
.more { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 16px 4px; margin-bottom: 18px; background: var(--bg); }
.more summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--navy); } .more-body { padding: 8px 0 8px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1em; } .contact-list li { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #C9D8E6; padding: 48px 0 0; }
.site-footer a { color: #fff; } .site-footer a:hover { color: #F6B66B; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: 6px; }
.site-footer .brand-text { color: #fff; } .site-footer .muted { color: #9FB4C8; } .footer-line { margin-bottom: 4px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 32px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.14); padding: 18px 16px; font-size: .9rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ================= Admin ================= */
.admin-body { background: var(--bg); font-size: 1rem; }
.adm-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40; }
.adm-header-inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.adm-brand { color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; } .adm-brand span { color: var(--orange); } .adm-brand small { font-family: var(--sans); font-weight: 500; font-size: .8rem; color: #B7C8DA; margin-left: 6px; }
.adm-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.adm-nav a, .adm-signout { color: #DCE6F0; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
.adm-nav a:hover, .adm-signout:hover { background: rgba(255,255,255,.1); color: #fff; } .adm-nav a.active { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 -3px 0 var(--orange); }
.adm-toggle span { background: #fff; }
@media (max-width: 900px) { .adm-toggle { display: block; } .adm-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; } .adm-nav.open { display: flex; } .adm-nav a, .adm-signout { padding: 12px 8px; text-align: left; } }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.adm-main { max-width: 1320px; margin: 0 auto; padding: 24px 16px 64px; }
.adm-title { font-size: 1.7rem; margin-bottom: 16px; } .title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.adm-card h2 { font-size: 1.15rem; } .adm-card h3 { font-size: .98rem; font-family: var(--sans); margin: 1.2em 0 .4em; color: var(--navy); }
.narrow-card { max-width: 520px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; } .kpi-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .kpi-grid, .kpi-grid-5 { grid-template-columns: repeat(2, 1fr); } }
.kpi { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--ink); border-left: 5px solid var(--navy); }
a.kpi:hover { border-color: var(--navy); color: var(--ink); }
.kpi-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; } .kpi-num-sm { font-size: 1.2rem; } .kpi-label { color: var(--muted); font-size: .92rem; }
.kpi-alert { border-left-color: var(--orange); background: var(--orange-50); } .kpi-alert .kpi-num { color: var(--orange-text); } .kpi-good { border-left-color: var(--ok); }
.kpi-wide { grid-column: span 2; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; } .adm-wide { grid-column: 1 / -1; } @media (max-width: 900px) { .adm-grid { grid-template-columns: 1fr; } }
.fu-list, .recent-list, .rows { list-style: none; padding: 0; margin: 0 0 12px; }
.fu-item, .rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fu-item.is-overdue, .rows li.is-overdue { border-left: 4px solid var(--orange); padding-left: 10px; }
.fu-head { font-family: var(--sans); font-size: .95rem; margin: 16px 0 6px; } .fu-head.overdue { color: var(--orange-text); }
.recent-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.bars { display: grid; gap: 8px; margin-bottom: 10px; } .bar-row { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-size: .93rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar-track { background: var(--navy-50); border-radius: 6px; height: 14px; overflow: hidden; } .bar-fill { display: block; height: 100%; background: var(--navy); border-radius: 6px; min-width: 2px; } .bar-count { text-align: right; font-weight: 700; }
a.bar-row:hover .bar-fill { background: var(--orange); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 6px; } .spark-bar { flex: 1; background: var(--navy); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; } .spark-bar:hover { background: var(--orange); }
.funnel { display: grid; gap: 8px; margin-bottom: 8px; } .funnel-row { display: grid; grid-template-columns: 130px 1fr 60px; gap: 12px; align-items: center; } .funnel-track { background: var(--navy-50); height: 26px; border-radius: 6px; overflow: hidden; } .funnel-fill { display: block; height: 100%; background: var(--navy); } .funnel-row:nth-child(5) .funnel-fill { background: var(--orange); } .funnel-n { text-align: right; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; } .seg a { padding: 7px 14px; text-decoration: none; font-size: .9rem; } .seg a.active { background: var(--navy); color: #fff; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--navy-50); color: var(--navy); white-space: nowrap; }
.badge-high { background: var(--orange); color: var(--navy-900); } .badge-medium { background: var(--navy-100); } .badge-low { background: #EDF0F3; color: var(--muted); }
.badge-score { background: var(--navy); color: #fff; } .badge-type { background: #EDF0F3; color: var(--muted); font-weight: 600; }
.status-new { background: var(--orange-50); color: var(--orange-text); } .status-won, .fu-completed { background: var(--ok-bg); color: var(--ok); } .status-lost, .fu-cancelled { background: var(--bad-bg); color: var(--bad); } .status-on_hold { background: #EDF0F3; color: var(--muted); } .fu-pending { background: var(--orange-50); color: var(--orange-text); }
.overdue-text { color: var(--bad); font-weight: 700; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.filter { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; } .filter-wide { grid-column: span 2; } .filter.check { display: flex; align-items: center; gap: 8px; min-height: 44px; } .filter.check input { width: 18px; height: 18px; } .filter-actions { display: flex; gap: 8px; }
.filter select, .filter input { font-weight: 400; }
.table-card { padding: 0; overflow: hidden; } .table-wrap { overflow-x: auto; } .adm-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.adm-table th { text-align: left; background: var(--navy-50); color: var(--navy); padding: 10px 12px; white-space: nowrap; } .adm-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; } .adm-table tr:hover td { background: #FAFCFE; } .adm-table tr.archived { opacity: .55; }
@media (max-width: 800px) { .adm-table thead { display: none; } .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; } .adm-table tr { border-top: 8px solid var(--bg); padding: 8px 0; } .adm-table td { border: 0; padding: 4px 14px; display: flex; justify-content: space-between; gap: 12px; } .adm-table td::before { content: attr(data-label); color: var(--muted); font-weight: 600; font-size: .85rem; } }
.pad.muted, p.pad { padding: 20px; } .pager { display: flex; gap: 16px; align-items: center; justify-content: center; }
.login-body { background: var(--navy); min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { background: #fff; width: 100%; max-width: 400px; border-radius: 16px; padding: 32px 28px; } .login-logo { height: 72px; max-width: 100%; margin-bottom: 8px; } .login-brand { font-size: 1.8rem; }
.login-card h1 { font-size: 1.4rem; margin: 8px 0 18px; }
.crumb { margin: 0 0 6px; font-size: .92rem; } .lead-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; } .lead-head .adm-title { margin-bottom: 4px; } .lead-head-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.stage-track { display: flex; list-style: none; padding: 0; margin: 14px 0 22px; gap: 4px; overflow-x: auto; }
.stage-track li { flex: 1 0 auto; text-align: center; padding: 8px 14px; background: #E9EEF4; color: var(--muted); font-size: .88rem; font-weight: 600; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); margin-left: -6px; min-width: 96px; }
.stage-track li:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); margin-left: 0; }
.stage-track li.done { background: var(--navy-100); color: var(--navy); } .stage-track li.current { background: var(--navy); color: #fff; } .stage-track li.exit.current { background: var(--bad); }
.lead-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; } @media (max-width: 960px) { .lead-grid { grid-template-columns: 1fr; } }
.kv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; margin: 0 0 8px; } @media (max-width: 600px) { .kv-grid { grid-template-columns: 1fr; } }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); } .kv dt { color: var(--muted); font-size: .9rem; } .kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; } .kv-list { margin: 0; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.row-main { flex: 1 1 220px; min-width: 0; } .row-form select { min-height: 34px; padding: 4px 8px; width: auto; } .fu-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .fu-actions input[type=date] { min-height: 32px; padding: 3px 6px; width: auto; }
.add-box { margin: 10px 0 4px; border: 1px dashed #B9C6D4; border-radius: var(--r-sm); padding: 0 14px; } .add-box summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 10px 0; } .mini-form { padding: 4px 0 12px; } .inline-add { background: var(--bg); border-radius: var(--r-sm); padding: 12px; margin-bottom: 14px; }
.form-row-3 .field-wide { flex: 3 1 0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; } .timeline li { display: flex; gap: 14px; padding: 0 0 18px; position: relative; } .timeline li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); } .timeline li:last-child::before { display: none; }
.tl-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); margin-top: 5px; z-index: 1; } .tl-other .tl-dot { background: #B9C6D4; } .tl-meeting .tl-dot, .tl-demo .tl-dot, .tl-discovery .tl-dot { background: var(--orange); } .tl-proposal .tl-dot, .tl-negotiation .tl-dot { background: var(--ok); }
.score-list { list-style: none; padding: 0; margin: 0 0 8px; } .score-list li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .93rem; } .score-list .total { border-bottom: 0; font-size: 1rem; color: var(--navy); }
.archive-form { text-align: center; margin-bottom: 24px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: start; }
.board-col { background: #E9EEF4; border-radius: var(--r); padding: 12px; border-top: 5px solid var(--navy); } .col-lost { border-top-color: var(--bad); } .col-on_hold { border-top-color: #8A97A5; } .col-won { border-top-color: var(--ok); } .col-new { border-top-color: var(--orange); }
.board-col header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .board-col h2 { font-size: 1rem; margin: 0; font-family: var(--sans); }
.board-count { background: #fff; border-radius: 999px; padding: 1px 10px; font-weight: 700; text-decoration: none; font-size: .9rem; }
.board-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.board-card { display: grid; gap: 3px; background: #fff; border-radius: var(--r-sm); padding: 10px 12px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); } .board-card:hover { border-color: var(--navy); color: var(--ink); } .board-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.board-empty { padding: 8px 4px; } .board-more { display: block; margin-top: 8px; text-align: center; }
@media print { .site-header, .site-footer, .cta-band, .adm-header, .nav-toggle { display: none; } body { font-size: 11pt; } }
@media (min-width: 901px) { .adm-toggle { display: none !important; } }
