/* ===============================================================
   File: /crew/css/crew.css
   Version: 1.2  -- Added .side-nav-primary (mobile hide of duplicate
                    primary nav) + Quick Links styles.
   Merged crew-module stylesheet:
     PART 1 = former /crew/css/site.css (v19 base — layout + drawer mechanics)
     PART 2 = former /crew/css/crew-portal.css (v39 — overrides, loads last)
   Cascade order preserved: PART 2 rules override PART 1 exactly as the
   old two-file load order did. Do not reorder the parts.
   :root variables from both files are UNIONED below (portal navy wins);
   PART 2's :root was removed as redundant.
   =============================================================== */

/* ===============================================================
   1. Design Tokens + Reset
   =============================================================== */

:root{
  --navy:#1f4e79;        /* portal override (was #061826) */
  --navy-2:#2a5f90;      /* portal override (was #092235) */
  --navy-3:#356aa0;      /* portal override (was #0d314d) */
  --navy-ink:#163a5c;    /* portal override (was #03101b) */

  --gold:#c79a45;
  --gold-soft:#f3d994;
  --gold-2:#f0d28a;
  --gold-deep:#8d6728;

  --ivory:#f7f3eb;
  --paper:#ffffff;
  --ink:#071524;
  --muted:#647383;

  --line:rgba(255,255,255,.16);
  --line-dark:rgba(7,21,36,.12);

  --shadow:0 28px 90px rgba(0,0,0,.28);
  --shadow-soft:0 18px 55px rgba(6,24,38,.08);

  --radius:24px;
  --serif:'Cinzel', Georgia, serif;
  --sans:'Inter', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--ivory);
  line-height:1.55;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

button,
input,
select,
textarea{
  font:inherit;
}

.container{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
}

/* ===============================================================
   2. Typography
   =============================================================== */

h1,h2,h3{
  font-family:var(--serif);
  font-weight:500;
  line-height:1.1;
  letter-spacing:.04em;
  margin:0;
}

h1{
  font-size:clamp(30px,4.4vw,54px);
}

h2{
  font-size:clamp(30px,3.8vw,46px);
  line-height:1.18;
}

h3{
  font-size:clamp(21px,2vw,28px);
  line-height:1.14;
}

p{
  margin-top:0;
}

.eyebrow{
  color:var(--gold-deep);
  text-transform:uppercase;
  letter-spacing:.24em;
  font-size:12px;
  font-weight:800;
}

/* On dark backgrounds the eyebrow needs the lighter gold for contrast */
.home-hero .eyebrow,
.section.dark .eyebrow,
.cta-band .eyebrow,
.flow-box.darkbox .eyebrow,
.dark .eyebrow{
  color:var(--gold-soft);
}

.lead{
  font-size:19px;
  color:var(--muted);
  margin-top:18px;
  max-width:760px;
}

.dark .lead{
  color:rgba(255,255,255,.74);
}

/* ===============================================================
   3. Buttons + Forms
   =============================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 20px;
  border-radius:14px;
  border:1px solid rgba(198,154,69,.7);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:12px;
  font-weight:800;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn-gold{
  color:#071524;
  background:linear-gradient(135deg,#f5dea0 0%,#d6aa55 48%,#b9822e 100%);
  border-color:transparent;
  box-shadow:0 12px 30px rgba(198,154,69,.28);
}

.btn-gold:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 38px rgba(198,154,69,.36);
}

.btn-ghost{
  color:#fff;
  background:rgba(255,255,255,.04);
}

/* .btn-navy: defined in PART 2 (portal version fully supersedes) */

.form-row,
.form-field{
  margin:16px 0;
}

label{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:7px;
}

input,
select,
textarea{
  width:100%;
  border-radius:13px;
  border:1px solid var(--line-dark);
  background:#fff;
  color:var(--ink);
  padding:14px 15px;
}

textarea{
  min-height:120px;
  resize:vertical;
}

/* ===============================================================
   4. Public Header + Mobile Navigation
   =============================================================== */

.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:76px;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px clamp(18px,4vw,54px);
  background:linear-gradient(180deg,rgba(3,16,27,.92),rgba(3,16,27,.62));
  border-bottom:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(16px);
  box-shadow:0 12px 34px rgba(0,0,0,.18);
}

.brand-lockup{
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
}

.brand-lockup img,
.brand img{
  width:52px;
  height:52px;
  object-fit:contain;
  display:block;
  flex-shrink:0;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.35));
}

.brand-lockup strong{
  display:block;
  font-family:var(--serif);
  letter-spacing:.12em;
  font-size:25.5px;
  font-weight:500;
  text-shadow:0 2px 16px rgba(0,0,0,.35);
}

.brand-lockup small{
  display:block;
  color:var(--gold-soft);
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:9px;
  margin-top:2px;
  opacity:.95;
}

.topnav,
.desktop-nav{
  display:flex;
  align-items:center;
  gap:26px;
  color:rgba(255,255,255,.82);
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.topnav a:hover{
  color:var(--gold-soft);
}

.nav-login{
  color:var(--ink)!important;
  background:linear-gradient(135deg,var(--gold-soft),var(--gold));
  padding:11px 16px;
  border-radius:999px;
  font-weight:800;
}

.hamburger{
  display:none;
  margin-left:auto;
  width:46px;
  height:46px;
  border:1px solid rgba(240,210,138,.38);
  border-radius:14px;
  background:rgba(255,255,255,.06);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  position:relative;
  z-index:205;
  padding:0;
  -webkit-appearance:none;
  appearance:none;
}

.hamburger span{
  display:block;
  width:22px;
  height:2px;
  border-radius:99px;
  background:linear-gradient(90deg,var(--gold-soft),var(--gold));
  transition:transform .22s ease, opacity .22s ease;
}

body.nav-open{
  overflow:hidden;
}

body.nav-open .hamburger span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

body.nav-open .hamburger span:nth-child(2){
  opacity:0;
}

body.nav-open .hamburger span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop{
  position:fixed;
  inset:0;
  z-index:180;
  background:rgba(0,0,0,.52);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
  backdrop-filter:blur(3px);
}

.mobile-slide-nav{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  width:min(88vw,390px);
  z-index:190;
  transform:translateX(105%);
  transition:transform .3s cubic-bezier(.22,.8,.22,1);
  background:
    radial-gradient(circle at 68% 0%, rgba(240,210,138,.12), transparent 30%),
    linear-gradient(180deg,#061826,#03101b);
  color:#fff;
  display:flex;
  flex-direction:column;
  box-shadow:-28px 0 80px rgba(0,0,0,.45);
  border-left:1px solid rgba(240,210,138,.22);
}

body.nav-open .mobile-nav-backdrop{
  opacity:1;
  pointer-events:auto;
}

body.nav-open .mobile-slide-nav{
  transform:translateX(0);
}

.mobile-slide-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:22px 20px;
  border-bottom:1px solid rgba(255,255,255,.11);
}

.mobile-slide-brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.mobile-slide-brand img{
  width:54px;
  height:54px;
  object-fit:contain;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.36));
}

.mobile-slide-brand strong{
  display:block;
  font-family:var(--serif);
  letter-spacing:.12em;
  font-size:15px;
}

.mobile-slide-brand small{
  display:block;
  color:var(--gold-soft);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:8px;
  margin-top:3px;
}

.mobile-close{
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(240,210,138,.28);
  background:rgba(255,255,255,.05);
  color:var(--gold-soft);
  font-size:27px;
  line-height:1;
  cursor:pointer;
}

.mobile-slide-links{
  display:grid;
  padding:18px 20px;
}

.mobile-slide-links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:17px 2px;
  border-bottom:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.9);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:13px;
  font-weight:800;
}

.mobile-slide-links a:after{
  content:"→";
  color:var(--gold-soft);
}

.mobile-slide-links a.mobile-login{
  justify-content:center;
  margin-top:18px;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,var(--gold-soft),var(--gold));
  color:#071524;
  box-shadow:0 16px 34px rgba(198,154,69,.28);
}

.mobile-slide-links a.mobile-login:after{
  display:none;
}

.mobile-slide-foot{
  margin-top:auto;
  padding:22px 20px;
  border-top:1px solid rgba(255,255,255,.11);
  color:rgba(255,255,255,.66);
  font-size:12px;
}

.mobile-slide-foot strong{
  display:block;
  color:var(--gold-soft);
  letter-spacing:.1em;
  margin-top:8px;
}

/* ===============================================================
   5. Homepage
   =============================================================== */

.home-hero{
  min-height:100vh;
  color:#fff;
  background:
    linear-gradient(90deg,rgba(3,16,27,.28) 0%, rgba(6,24,38,.46) 56%, rgba(3,16,27,.84) 100%),
    url('/images/hero.jpg') center/cover no-repeat;
  display:flex;
  align-items:center;
  padding:120px 0 70px;
}

.hero-layout{
  display:grid;
  grid-template-columns:1.05fr .86fr;
  gap:52px;
  align-items:center;
}

/* Single-column hero, copy anchored right */
.hero-layout-single{
  grid-template-columns:1fr!important;
  justify-items:end;
}

.hero-layout-single .hero-copy{
  max-width:640px;
  text-align:right;
}

/* Brand tagline as the visual lead (semantic h1 for SEO) */
.hero-tagline{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(34px,5vw,64px);
  line-height:1.08;
  letter-spacing:.04em;
  margin:14px 0 0;
  text-shadow:0 8px 34px rgba(0,0,0,.45);
}

/* Signature stylized rule */
.hero-rule{
  display:flex;
  align-items:center;
  gap:14px;
  width:300px;
  max-width:80%;
  margin:24px 0 24px auto;
}

.hero-rule span{
  flex:1;
  height:1px;
  background:linear-gradient(90deg,var(--gold-soft),rgba(243,217,148,0));
}

.hero-rule span:first-child{
  background:linear-gradient(90deg,rgba(243,217,148,0),var(--gold-soft));
}

.hero-rule i{
  width:8px;
  height:8px;
  flex:0 0 auto;
  transform:rotate(45deg);
  background:var(--gold);
}

.hero-sub{
  max-width:540px;
  margin-left:auto;
  color:rgba(255,255,255,.84);
  font-size:17px;
  line-height:1.62;
}

.hero-title-sm{
  font-size:clamp(34px,5vw,62px)!important;
  line-height:1.12;
}

/* Feature strip — integrated into the hero scene (no boxed toolbar) */
.hero-feature-strip{
  margin-top:44px;
  margin-left:auto;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:0;
  max-width:680px;
  border:0;
  background:transparent;
  box-shadow:none;
}

.hero-feature{
  padding:14px 14px 14px 8px;
  text-align:right;
  background:transparent;
  backdrop-filter:none;
  border-left:1px solid rgba(243,217,148,.18);
}

.hero-feature:first-child{
  border-left:0;
}

.hero-feature span{
  display:block;
  color:var(--gold-soft);
  font-size:24px;
  margin-bottom:7px;
}

.hero-feature small{
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(255,255,255,.78);
  font-size:11px;
}

/* Homepage hero login panel */
.login-panel{
  background:linear-gradient(180deg,rgba(6,24,38,.93),rgba(6,24,38,.82));
  border:1px solid rgba(243,217,148,.34);
  border-radius:30px;
  padding:30px;
  box-shadow:
    0 34px 90px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.login-panel:before{
  content:"";
  display:block;
  width:54px;
  height:2px;
  margin:0 auto 18px;
  background:linear-gradient(90deg,transparent,var(--gold-soft),transparent);
}

.login-panel h2{
  color:var(--gold2);
  font-size:34px;
  text-align:center;
  margin-bottom:8px;
}

.login-panel .sub{
  color:rgba(255,255,255,.75);
  text-align:center;
  margin-bottom:24px;
}

.login-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  color:rgba(255,255,255,.72);
  font-size:13px;
  margin:15px 0 20px;
}

.login-row a{color:var(--gold2)}

.check{display:flex;align-items:center;gap:8px}

.login-submit{
  width:100%;
  border:0;
  cursor:pointer;
}

.owner-access{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:22px;
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:rgba(255,255,255,.72);
  font-size:13px;
}

.owner-access a{color:var(--gold2);font-weight:800}

/* ===============================================================
   6. Public Content Sections
   =============================================================== */

.section{
  padding:72px 0;
}

/* Long-form content (legal, help, account pages) */
.legal{
  max-width:760px;
}

.legal h1{
  margin-bottom:8px;
}

.legal h2{
  font-size:clamp(22px,2.4vw,30px);
  margin:38px 0 12px;
}

.legal h3{
  font-size:clamp(18px,2vw,22px);
  margin:26px 0 8px;
}

.legal p,
.legal li{
  color:inherit;
  font-size:16px;
  line-height:1.7;
}

.section:not(.dark) .legal p,
.section:not(.dark) .legal li{
  color:var(--muted);
}

.legal ul{
  margin:12px 0 0;
  padding-left:20px;
}

.legal li{
  margin:8px 0;
}

.legal a{
  color:var(--gold-deep);
  text-decoration:underline;
}

.section.dark .legal a{
  color:var(--gold-soft);
}

.legal-updated{
  color:var(--muted);
  font-size:14px;
  margin:0 0 28px;
}

.section.dark .legal-updated{
  color:rgba(255,255,255,.6);
}

/* Features page split hero */
.section.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:680px;
  padding:0;
}

.split-content{
  padding:84px clamp(28px,6vw,90px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.split-image{
  background:url('/images/sun-deck-overview.jpg') center/cover no-repeat;
}

/* Features list */
.feature-list{
  display:grid;
  gap:12px;
  margin-top:24px;
}

.feature-item{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:16px;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--line-dark);
}

.feature-item small{
  color:var(--muted);
}

/* Pricing grid */
.pricing{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:34px;
}

.price{
  font-size:44px;
  font-family:var(--serif);
  color:var(--gold);
}

.section.dark{
  background:var(--navy);
  color:#fff;
}

.section-intro{
  max-width:820px;
}

.split-grid{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:42px;
  align-items:center;
}

.white-card{
  background:#fff;
  border:1px solid var(--line-dark);
  border-radius:28px;
  padding:34px;
  box-shadow:var(--shadow-soft);
}

.flow-compare{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:22px;
  align-items:center;
  margin-top:24px;
}

.flow-box{
  background:#fff;
  border:1px solid var(--line-dark);
  border-radius:24px;
  padding:26px;
  box-shadow:var(--shadow-soft);
  color:var(--ink);
}

.flow-box.darkbox{
  background:var(--navy);
  color:#fff;
}

.flow-list{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  gap:12px;
}

.flow-list li{
  display:flex;
  gap:10px;
  align-items:center;
}

.arrow{
  color:var(--gold);
  font-size:44px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-top:34px;
}

.card{
  background:#fff;
  border:1px solid var(--line-dark);
  border-radius:24px;
  padding:30px;
  min-height:235px;
  box-shadow:0 14px 44px rgba(6,24,38,.07);
}

/* Core Workflows cards have no icon — tighten the empty vertical space */
#features .card{
  min-height:0;
}

.card p{
  font-size:16px;
  line-height:1.58;
}

.dark .card{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.14);
  box-shadow:none;
}

.icon{
  width:48px;
  height:48px;
  border:1px solid rgba(198,154,69,.5);
  border-radius:50%;
  color:var(--gold);
  background:linear-gradient(180deg,rgba(198,154,69,.12),rgba(198,154,69,.03));
  display:grid;
  place-items:center;
  font-size:24px;
  margin-bottom:16px;
}

.product-shot{
  border-radius:30px;
  overflow:hidden;
  border:1px solid rgba(198,154,69,.24);
  background:#081b2b;
  box-shadow:
    0 35px 100px rgba(0,0,0,.38),
    0 0 0 1px rgba(243,217,148,.18);
}

/* Closing vision section + platform graphic */
.vision-section .section-intro{
  margin:0 auto;
  text-align:center;
}

.vision-graphic{
  max-width:560px;
  margin:40px auto 0;
}

.vision-graphic img{
  width:100%;
  height:auto;
  border-radius:18px;
  border:1px solid rgba(243,217,148,.18);
  box-shadow:0 28px 80px rgba(0,0,0,.4);
}

.product-caption{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
  margin-top:22px;
}

.product-caption div{
  text-align:center;
  color:rgba(255,255,255,.86);
  border-top:1px solid rgba(198,154,69,.42);
  padding-top:12px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.audience-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:34px;
}

.cta-band{
  background:
    radial-gradient(circle at 50% 18%, rgba(240,210,138,.14), transparent 24%),
    linear-gradient(90deg,rgba(3,16,27,.96),rgba(3,16,27,.76)),
    url('/images/bow-seating.jpg') center/cover no-repeat;
  color:#fff;
  padding:84px 0;
  text-align:center;
}

.cta-band p{
  color:rgba(255,255,255,.76);
  max-width:680px;
  margin:18px auto 28px;
}

.cta-band h2::after{
  content:"";
  display:block;
  width:82px;
  height:1px;
  margin:24px auto 0;
  background:linear-gradient(90deg,transparent,var(--gold-soft),transparent);
}

/* ===============================================================
   7. Login Page
   =============================================================== */

body.login-page{
  background:#f7f3eb;
}

.login-main{
  min-height:calc(100vh - 76px);
}

.login-hero{
  min-height:calc(100vh - 76px);
  padding:112px clamp(20px,5vw,72px) 56px;
  background:
    linear-gradient(90deg,rgba(3,16,27,.55),rgba(6,24,38,.32),rgba(3,16,27,.5)),
    url('/images/hero.jpg') center/cover no-repeat;
  display:flex;
  align-items:flex-start;
}

.login-shell{
  width:min(1180px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr minmax(360px,420px);
  gap:58px;
  align-items:center;
}

.login-copy{
  color:#fff;
  text-shadow:0 12px 34px rgba(0,0,0,.45);
}

.login-copy h1{
  font-size:clamp(34px,4.8vw,58px);
  margin:0 0 18px;
}

.login-copy p:not(.eyebrow){
  max-width:560px;
  color:rgba(255,255,255,.86);
  font-size:19px;
  line-height:1.62;
}

.login-card-luxury{
  background:linear-gradient(180deg,rgba(6,24,38,.86),rgba(3,16,27,.9));
  border:1px solid rgba(243,217,148,.22);
  border-radius:22px;
  box-shadow:0 40px 120px rgba(0,0,0,.5);
  backdrop-filter:blur(14px);
  padding:34px 36px;
  color:#fff;
}

.login-card-rule{
  display:grid;
  grid-template-columns:1fr 10px 1fr;
  align-items:center;
  gap:12px;
  width:190px;
  margin:4px auto 22px;
}

.login-card-rule span{
  height:1px;
  background:linear-gradient(90deg,transparent,var(--gold-soft));
}

.login-card-rule span:last-child{
  background:linear-gradient(90deg,var(--gold-soft),transparent);
}

.login-card-rule i{
  width:7px;
  height:7px;
  transform:rotate(45deg);
  background:var(--gold);
  display:block;
}

.login-card-luxury h2{
  text-align:center;
  color:var(--gold-soft);
  font-size:clamp(29px,3vw,40px);
  margin:0 0 8px;
  letter-spacing:.12em;
}

.login-card-sub{
  text-align:center;
  color:rgba(255,255,255,.74);
  font-size:14px;
  margin:0 0 28px;
}

.form-field-light{
  margin:18px 0;
}

.form-field-light label{
  display:block;
  color:rgba(255,255,255,.86);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:700;
  font-size:12px;
  margin-bottom:8px;
}

.input-with-icon{
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  border:1px solid rgba(255,255,255,.2);
  border-radius:10px;
  background:rgba(255,255,255,.05);
  min-height:42px;
}

.input-with-icon span{
  display:grid;
  place-items:center;
  color:var(--gold-soft);
  font-size:18px;
}

.input-with-icon input{
  border:0!important;
  background:transparent!important;
  color:#fff!important;
  padding:9px 8px 9px 0!important;
  outline:none;
  width:100%;
}

.input-with-icon input::placeholder{
  color:rgba(255,255,255,.4);
}

/* Password show/hide toggle button */
.pw-toggle{
  display:grid;
  place-items:center;
  width:42px;
  height:100%;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.6);
  cursor:pointer;
  font-size:16px;
  padding:0;
}

.pw-toggle:hover{
  color:var(--gold-soft);
}

.input-with-icon:focus-within{
  border-color:rgba(243,217,148,.6);
  box-shadow:0 0 0 3px rgba(243,217,148,.12);
}

.login-options{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin:18px 0 24px;
  color:rgba(255,255,255,.78);
  font-size:14px;
}

.login-options a{
  color:var(--gold-soft);
}

.remember-check{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:14px;
  text-transform:none;
  letter-spacing:0;
  font-weight:500;
  color:rgba(255,255,255,.78);
}

.remember-check input{
  width:auto;
  accent-color:var(--gold);
}

.login-button{
  width:100%;
  border:0;
  cursor:pointer;
  border-radius:10px;
  min-height:50px;
}

.login-divider{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
  margin:26px 0 24px;
}

.login-divider span{
  height:1px;
  background:rgba(255,255,255,.16);
}

.login-divider em{
  font-style:normal;
  color:rgba(255,255,255,.6);
  text-transform:uppercase;
  font-size:13px;
}

.create-account-button{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:1px solid rgba(243,217,148,.5);
  border-radius:10px;
  color:var(--gold-soft);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
  font-size:13px;
}

.create-account-button:hover{
  border-color:var(--gold-soft);
  background:rgba(243,217,148,.08);
  color:#fff;
}

/* ===============================================================
   8. Crew/Admin Portal
   =============================================================== */

body.portal{
  margin:0;
  background:#f4f6f8;
  color:#071524;
  font-family:var(--sans);
}

.portal-shell{
  min-height:100vh;
  background:
    radial-gradient(circle at top right, rgba(198,154,69,.08), transparent 28%),
    #f4f6f8;
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
}

.sidebar{
  background:
    radial-gradient(circle at 50% 0%, rgba(240,210,138,.12), transparent 28%),
    linear-gradient(180deg,#061826,#04121e);
  color:#fff;
  padding:24px 20px;
  min-height:100vh;
  position:sticky;
  top:0;
  border-right:1px solid rgba(255,255,255,.08);
  display:block;
}

.sidebar .brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
}

.sidebar .brand img{
  width:52px;
  height:52px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 5px 12px rgba(0,0,0,.38));
}

.brand-title{
  display:block;
  font-family:var(--serif);
  letter-spacing:.11em;
  font-size:14px;
  line-height:1.15;
  color:#fff;
}

.brand-sub{
  display:block;
  color:var(--gold-soft);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:9px;
  margin-top:4px;
}

.side-nav{
  display:grid;
  gap:7px;
  margin-top:32px;
}

.side-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,.76);
  padding:12px 13px;
  border-radius:13px;
  font-size:14px;
  border:1px solid transparent;
}

.side-nav a:hover,
.side-nav a.active{
  color:var(--gold-soft);
  background:rgba(198,154,69,.13);
  border-color:rgba(198,154,69,.18);
}

.side-nav .logout-link{
  margin-top:22px;
  color:rgba(255,255,255,.64);
  border-color:rgba(255,255,255,.1);
}

.side-nav .logout-link:hover{
  color:var(--gold-soft);
  background:rgba(255,255,255,.06);
}

/* Quick Links group label (grid item in .side-nav) */
.side-nav-label{
  margin:15px 0 1px;
  padding:0 4px;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.42);
}

/* Primary nav group: same grid rhythm as .side-nav (it's now one grid item) */
.side-nav-primary{
  display:grid;
  gap:7px;
}
/* On mobile the bottom nav (<=960px) already carries these four links,
   so hide the duplicate group in the drawer. Desktop keeps them. */
@media(max-width:960px){
  .side-nav-primary{ display:none; }
}

/* "soon" quick-link: inherits .side-nav a flex; just dim + push badge right */
.side-nav a.ql-soon{
  justify-content:space-between;
  opacity:.55;
}
.side-nav a.ql-soon:hover{ opacity:.9; }

/* "soon" pill */
.ql-badge{
  font-size:10px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:1px 7px;
  border-radius:20px;
  border:1px solid rgba(198,154,69,.4);
  color:var(--gold-soft);
}

.portal-main{
  width:min(1180px,100%);
  margin:0 auto;
  padding:34px;
}

.portal-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:24px;
}

.portal-top h1{
  color:#061826;
  font-size:clamp(32px,4vw,50px);
}

.portal-top p{
  margin:.5rem 0 0;
  color:#647383;
}

.kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:22px;
}

.kpi{
  background:#fff;
  border:1px solid rgba(7,21,36,.12);
  border-radius:22px;
  padding:10px 20px;
  box-shadow:0 16px 45px rgba(6,24,38,.07);
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:84px;
}

.kpi:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg,var(--gold-soft),var(--gold));
}

.kpi span{
  display:block;
  color:#647383;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.1em;
  margin-bottom:8px;
}

.kpi b{
  font-family:var(--serif);
  font-size:34px;
  font-weight:500;
  color:#061826;
}

/* KPI label + value (used by the admin & crew dashboards, which mark up
   KPIs as <span class="kpi-label"> / <span class="kpi-value"> rather than
   span/<b>). The label is bold + dark to match the "Active Assignments"
   heading weight (.form-h, 700). */
.kpi .kpi-label{
  color:#061826;
  font-weight:800;
  font-size:16px;
  letter-spacing:.02em;
  text-align:center;
  text-transform:uppercase;
  margin-bottom:0;
}
.kpi .kpi-value{
  display:block;
  font-family:var(--serif);
  font-size:34px;
  font-weight:600;
  color:#061826;
  line-height:1.1;
  text-align:center;
}

.table-card{
  background:#fff;
  border:1px solid rgba(7,21,36,.12);
  border-radius:24px;
  box-shadow:0 18px 55px rgba(6,24,38,.08);
  overflow:hidden;
  margin-top:20px;
}

.table-row{
  display:grid;
  grid-template-columns:1.55fr 1fr 1fr auto;
  gap:14px;
  align-items:center;
  padding:17px 20px;
  border-bottom:1px solid rgba(7,21,36,.12);
}

.table-row:last-child{
  border-bottom:0;
}

.table-row strong{
  color:#061826;
}

.table-row span{
  color:#647383;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:6px 11px;
  background:#e9f7ee;
  color:#247043!important;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.badge.warn{
  background:#fff4d8;
  color:#94650c!important;
}

.badge.danger{
  background:#ffe5e5;
  color:#a72727!important;
}

.portal .card{
  background:#fff;
}

.portal label{
  color:#061826;
  font-weight:800;
}

.portal input,
.portal select,
.portal textarea{
  background:#fff;
  color:#071524;
}

.bottom-nav{
  display:none;
}

/* Portal mobile top bar (hidden on desktop) */
.portal-topbar{
  display:none;
}

.portal-topbar-brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
}

.portal-topbar-brand img{
  width:34px;
  height:34px;
  object-fit:contain;
}

.portal-topbar-brand strong{
  font-family:var(--serif);
  font-size:14px;
  letter-spacing:.11em;
  font-weight:500;
}

.portal-nav-backdrop{
  display:none;
}

/* ===============================================================
   9. Footer
   =============================================================== */

.site-footer{
  background:
    radial-gradient(circle at 15% 0%, rgba(240,210,138,.08), transparent 24%),
    linear-gradient(180deg,#062038 0%, #041526 100%);
  color:rgba(255,255,255,.84);
  padding:48px clamp(28px,5vw,72px) 22px;
  border-top:1px solid rgba(240,210,138,.18);
  display:block;
}

.footer-inner{
  max-width:1240px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.65fr .9fr .9fr 1.15fr;
  gap:56px;
  align-items:start;
}

.footer-logo{
  display:flex;
  align-items:center;
  gap:16px;
  color:#fff;
}

.footer-logo img{
  width:54px;
  height:54px;
  object-fit:contain;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.34));
}

.footer-logo strong{
  display:block;
  font-family:var(--serif);
  letter-spacing:.12em;
  font-size:24px;
  font-weight:500;
  line-height:1.05;
  color:#fff;
}

.footer-logo small{
  display:block;
  color:var(--gold-soft);
  text-transform:uppercase;
  letter-spacing:.2em;
  font-size:11px;
  font-weight:800;
  margin-top:7px;
}

.footer-brand p{
  max-width:360px;
  margin:22px 0 0;
  color:rgba(255,255,255,.78);
  font-size:16px;
  line-height:1.62;
}

.footer-col h3{
  margin:0 0 18px;
  color:#fff;
  font-family:var(--sans);
  font-size:15px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.footer-col a{
  display:block;
  color:rgba(255,255,255,.82);
  font-size:15px;
  line-height:1.6;
  margin:8px 0;
}

.footer-col a:hover{
  color:var(--gold-soft);
}

.footer-contact a{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.footer-contact span{
  color:var(--gold-soft);
  min-width:18px;
  text-align:center;
}

.footer-bottom{
  max-width:1240px;
  margin:34px auto 0;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.12);
  text-align:center;
  color:rgba(255,255,255,.76);
  font-size:14px;
}

/* ===============================================================
   10. Responsive
   =============================================================== */

@media(max-width:940px){
  .desktop-nav,
  .topnav.desktop-nav{
    display:none!important;
  }

  .hamburger{
    display:flex;
  }

  .hero-layout,
  .hero-layout-single,
  .split-grid,
  .flow-compare,
  .login-shell{
    grid-template-columns:1fr;
  }

  .section.split{
    grid-template-columns:1fr;
  }

  .pricing{
    grid-template-columns:1fr;
  }

  .hero-layout-single{
    max-width:100%;
    justify-items:stretch;
  }

  .hero-layout-single .hero-copy{
    max-width:100%;
    text-align:right;
  }

  .arrow{
    transform:rotate(90deg);
    text-align:center;
  }

  .hero-feature-strip{
    grid-template-columns:repeat(3,1fr);
    max-width:360px;
    margin-left:auto;
    margin-right:auto;
  }

  .hero-feature{
    text-align:center;
    padding:14px 8px;
    border-left:1px solid rgba(243,217,148,.18);
    border-bottom:1px solid rgba(243,217,148,.18);
  }

  .hero-feature:nth-child(3n+1){
    border-left:0;
  }

  .cards,
  .audience-grid{
    grid-template-columns:1fr;
  }

  .product-caption{
    grid-template-columns:repeat(2,1fr);
  }

  .owner-access{
    display:block;
  }

  .owner-access a{
    display:block;
    margin-top:6px;
  }

  .login-hero{
    padding:84px 20px 46px;
  }

  .login-copy{
    text-align:center;
  }

  .login-copy p:not(.eyebrow){
    margin-left:auto;
    margin-right:auto;
  }

  .login-card-luxury{
    width:min(100%,540px);
    margin:0 auto;
  }
}

@media(min-width:941px){
  .hamburger{
    display:none;
  }

  .mobile-slide-nav,
  .mobile-nav-backdrop{
    display:none;
  }
}

@media(max-width:960px){
  .portal-shell{
    display:block;
    padding-bottom:76px;
  }

  .portal-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 16px;
    background:linear-gradient(180deg,#061826,#04121e);
    border-bottom:1px solid rgba(255,255,255,.08);
    position:sticky;
    top:0;
    z-index:130;
  }

  .portal-topbar .hamburger{
    display:flex;
  }

  .sidebar{
    display:block;
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    width:min(82vw,300px);
    z-index:190;
    transform:translateX(-104%);
    transition:transform .3s cubic-bezier(.22,.8,.22,1);
    box-shadow:28px 0 80px rgba(0,0,0,.45);
    overflow-y:auto;
  }

  body.nav-open .sidebar{
    transform:translateX(0);
  }

  .portal-nav-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:180;
    background:rgba(0,0,0,.52);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease;
  }

  body.nav-open .portal-nav-backdrop{
    opacity:1;
    pointer-events:auto;
  }

  body.nav-open{
    overflow:hidden;
  }

  .portal-main{
    padding:22px 18px;
  }

  .portal-top{
    display:block;
  }

  .portal-top .btn{
    margin-top:14px;
  }

  .kpi-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .table-row{
    grid-template-columns:1fr;
    gap:5px;
  }

  .bottom-nav{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:120;
    background:#fff;
    border-top:1px solid rgba(7,21,36,.12);
    box-shadow:0 -10px 30px rgba(6,24,38,.08);
  }

  .bottom-nav a{
    text-align:center;
    padding:10px 4px;
    color:#647383;
    font-size:11px;
  }

  .bottom-nav a:hover,
  .bottom-nav a.active{
    color:var(--gold);
  }
}

@media(max-width:900px){
  .footer-inner{
    grid-template-columns:1fr 1fr;
    gap:34px 28px;
  }

  .footer-brand{
    grid-column:1 / -1;
  }

  .footer-brand p{
    max-width:620px;
  }
}

@media(max-width:560px){
  .topbar{
    height:68px;
    padding:12px 16px;
  }

  .brand-lockup img,
  .brand img{
    width:42px;
    height:42px;
  }

  .brand-lockup strong{
    font-size:18px;
    letter-spacing:.1em;
  }

  .brand-lockup small{
    font-size:7px;
    letter-spacing:.14em;
  }

  .home-hero{
    padding:98px 0 50px;
  }

  .login-panel{
    padding:22px;
    border-radius:24px;
  }

  .login-panel h2{
    font-size:29px;
  }

  .hero-tagline,
  .hero-title-sm{
    font-size:clamp(30px,9vw,44px)!important;
  }

  .hero-sub{
    font-size:16px;
  }

  .section{
    padding:56px 0;
  }

  .section-intro h2,
  .section h2{
    font-size:clamp(27px,8vw,36px);
  }

  .card{
    min-height:auto;
    padding:24px;
  }

  .login-card-luxury{
    padding:30px 22px;
    border-radius:22px;
  }

  .login-copy h1{
    font-size:38px;
  }

  .login-options{
    display:block;
  }

  .login-options a{
    display:block;
    margin-top:10px;
  }

  .kpi-grid{
    grid-template-columns:repeat(3,1fr);
    gap:8px;
  }

  .kpi{
    padding:12px 8px;
    border-radius:14px;
    min-height:88px;
  }

  .kpi span{
    font-size:9px;
    letter-spacing:.06em;
    margin-bottom:4px;
    line-height:1.25;
  }

  .kpi .kpi-label{
    font-size:15px;
    letter-spacing:.01em;
    margin-bottom:0;
    line-height:1.2;
  }

  .kpi .kpi-value{
    font-size:24px;
    line-height:1.1;
    margin-bottom:0;
  }

  .kpi b{
    font-size:24px;
  }

  .site-footer{
    padding:38px 24px 22px;
  }

  .footer-inner{
    grid-template-columns:1fr 1fr;
    gap:30px 22px;
  }

  .footer-brand{
    grid-column:1 / -1;
  }

  .footer-logo img{
    width:48px;
    height:48px;
  }

  .footer-logo strong{
    font-size:18px;
  }

  .footer-logo small{
    font-size:9px;
  }

  .footer-brand p{
    font-size:15px;
  }

  .footer-col h3{
    font-size:12px;
    margin-bottom:12px;
  }

  .footer-col a{
    font-size:14px;
  }

  .footer-contact{
    grid-column:1 / -1;
  }
}


/* ===============================================================
   ================  PART 2 — PORTAL OVERRIDES  ==================
   Former /crew/css/crew-portal.css (v39). Everything below loads
   after PART 1 and wins on conflict, same as the old two-file order.
   =============================================================== */
/* ============================================================
   CREW MODULE PALETTE OVERRIDE
   The site navy (#061826) reads too dark. Shift the crew module's
   blue SURFACES (buttons, sidebar, top bar, bands) to a lighter,
   still-strong slate-ocean blue. Heading/body TEXT stays dark for
   readability — only surfaces change.
   Scoped to the crew module; the marketing site (site.css) is untouched.
   ============================================================ */
/* (navy :root variables merged into the unioned :root at top of PART 1) */
/* Button + small surfaces that used the old navy now follow the var. */
.btn-navy{ background:var(--navy) !important; color:#fff !important; }
.btn-navy:hover{ background:var(--navy-2) !important; }

/* Sidebar panel gradient */
.sidebar{
  background:linear-gradient(180deg,#1f4e79,#163a5c) !important;
}
/* Top bar */
.portal-topbar{
  background:linear-gradient(180deg,#1f4e79,#17436b) !important;
}
/* Mobile bottom nav */
.crew-bottom-nav{
  background:linear-gradient(180deg,#2a5f90,#1f4e79) !important;
}
/* Engagement client band (mobile list) */
@media (max-width:679px){
  .el-client{ background:#1f4e79 !important; }
}

/* --- Module-owned mobile bottom nav (contained in /crew/) --- */
.crew-bottom-nav{
  display:none;
}
@media (max-width:960px){
  .crew-bottom-nav{
    position:fixed !important;
    bottom:0 !important; left:0 !important; right:0 !important;
    width:auto !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    display:flex !important;
    justify-content:space-around;
    background:linear-gradient(180deg,#092235,#04121e) !important;
    border-top:1px solid rgba(198,154,69,.2);
    padding:10px 6px;
    padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px));
    z-index:1000;
  }
  /* Guard: stop any wide child (e.g. a long receipt row) from forcing the
     document wider than the screen, which would stretch the fixed nav past the
     viewport and push the 4th link off-screen. */
  html, body.portal{ overflow-x:hidden; max-width:100%; }
  .crew-bottom-nav a{
    color:var(--gold-soft);
    font-size:11px;
    letter-spacing:.08em;
    text-transform:uppercase;
    font-weight:700;
    padding:4px 8px;
  }
  /* Reserve space so page content can't hide behind the fixed bar. */
  .portal-main{
    padding-bottom:calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ============================================================
   Assign / roster page — mobile-first, compact on desktop
   ============================================================ */

/* Engagement detail strip (read display) */
.eng-detail{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px 18px;
  background:#fff;
  border:1px solid rgba(7,21,36,.10);
  border-radius:16px;
  padding:16px 18px;
  margin-bottom:16px;
  box-shadow:0 10px 30px rgba(6,24,38,.05);
}
@media (min-width:680px){
  .eng-detail{ grid-template-columns:repeat(4, 1fr); }
}
.eng-detail > div{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.eng-text-input{
  padding:6px 9px; border:1px solid var(--line-dark);
  border-radius:9px; font-size:15px; color:#061826; background:#fff;
  width:100%; font-weight:600;
}
.eng-detail-label{
  display:block;
  font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); font-weight:700;
}
.eng-detail-value{ display:block; color:#061826; font-weight:700; font-size:16px; }

/* Editable date cells inside the engagement header */
.eng-date-input{
  padding:6px 9px; border:1px solid var(--line-dark);
  border-radius:9px; font-size:14px; color:#061826; background:#fff;
  width:100%;
}

/* Compact form cards */
.form-compact{ padding:18px 18px; margin-bottom:14px; }
.form-compact .form-row{ margin:0 0 12px; }
.form-h{ margin:0 0 12px; color:#061826; font-size:15px; font-weight:700; }
.form-hint{ color:var(--muted); font-size:12.5px; margin:0 0 12px; }
.field-note{ color:var(--muted); font-size:11px; line-height:1.4; margin:4px 0 0; opacity:.85; }

/* Inputs: mobile-first full width, smaller on desktop */
.form-compact input,
.form-compact select,
.form-compact textarea{
  width:100%;
  padding:11px 12px;
  border:1px solid var(--line-dark);
  border-radius:11px;
  font-size:16px;            /* 16px on mobile avoids iOS zoom-on-focus */
  background:#fff;
  color:var(--ink);
}
.form-compact label{
  font-size:11px; letter-spacing:.04em; text-transform:uppercase;
  color:var(--muted); font-weight:700; margin-bottom:5px; display:block;
}

/* Single column on phones; two columns from 640px up */
.form-grid-2{ display:grid; grid-template-columns:1fr; gap:0 14px; }
@media (min-width:640px){
  .form-grid-2{ grid-template-columns:1fr 1fr; }
  .form-compact input,
  .form-compact select,
  .form-compact textarea{ padding:9px 11px; font-size:14px; }  /* tighter on desktop */
  .form-compact{ padding:18px 20px; }
}

/* Checkbox row */
.check-row{
  display:flex; align-items:center; gap:9px;
  font-size:13px; color:var(--ink); text-transform:none; letter-spacing:0;
  font-weight:500; margin:4px 0 14px;
}
.check-row input{ width:auto; }

/* Small ghost button (Back link) */
.btn-ghost-sm{
  padding:9px 13px; font-size:11px; background:transparent;
  color:var(--navy); border:1px solid var(--line-dark);
}
.btn-ghost-sm:hover{ border-color:var(--gold); color:var(--gold-deep); }

/* Roster rows — readable on mobile, aligned on desktop */
.roster-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 12px;
  align-items:center;
  padding:13px 16px;
  border-bottom:1px solid rgba(7,21,36,.08);
}
.roster-row:last-child{ border-bottom:0; }
.roster-name{ color:#061826; font-weight:700; }
.roster-role{ color:var(--muted); font-size:13px; }
.roster-tip{ color:var(--muted); font-size:12px; }
.roster-empty{ color:var(--muted); }
@media (min-width:640px){
  .roster-row{ grid-template-columns:1.4fr 1fr .8fr auto; }
}

/* ============================================================
   Assign page v2 — kill oversized serif headings, table roster,
   narrow forms (no full-width sprawl)
   ============================================================ */

/* Force admin form/section headings to small sans — the site's
   default h1/h2 use a large Cinzel serif that's wrong here. */
.portal-main h1{
  font-family:var(--sans);
  font-size:22px;
  font-weight:800;
  letter-spacing:-.01em;
  text-transform:none;
  color:#061826;
}
.form-h{
  font-family:var(--sans);
  font-size:14px;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:none;
  color:#061826;
  margin:0 0 12px;
}

/* Roster as a compact editable table */
.roster-table{
  background:#fff;
  border:1px solid rgba(7,21,36,.10);
  border-radius:14px;
  overflow:hidden;
  margin-bottom:16px;
  box-shadow:0 10px 30px rgba(6,24,38,.05);
}
.roster-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(100px,1fr) 68px 36px;
  gap:10px;
  padding:9px 14px;
  background:#f6f8fa;
  border-bottom:1px solid rgba(7,21,36,.08);
  font-size:10px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted); font-weight:800;
  align-items:center;
}
.roster-head > span:nth-child(3){ text-align:center; }
.roster-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(100px,1fr) 68px 36px;
  gap:10px;
  padding:11px 14px;
  border-bottom:1px solid rgba(7,21,36,.08);
  align-items:center;
  margin:0;
}
.roster-line:last-child{ border-bottom:0; }
.rl-name{
  font-weight:700; color:#061826;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.rl-pos{
  padding:8px 10px; border:1px solid var(--line-dark);
  border-radius:9px; font-size:14px; width:100%;
}
.rl-tip{
  display:flex; align-items:center; justify-content:center;
  margin:0;
}
.rl-tip input{ width:auto; margin:0; }
.rl-save{
  justify-self:start;
  padding:7px 14px; border-radius:9px; border:1px solid var(--navy);
  background:var(--navy); color:#fff; font-size:11px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; cursor:pointer;
}
.roster-empty-row{ padding:16px; color:var(--muted); }

@media (min-width:680px){
  .roster-head{
    grid-template-columns:1.4fr 1.2fr 68px 36px;
    gap:12px;
    padding:10px 16px;
  }
  .roster-line{
    grid-template-columns:1.4fr 1.2fr 68px 36px;
    gap:12px;
  }
}

/* Narrow the add/onboard forms so inputs don't span the whole page */
.form-narrow{ max-width:560px; }
/* Medium width cap -- wider than form-narrow, for multi-column admin tables
   (e.g. review.asp's line checklist) so columns breathe but action buttons
   aren't stranded at the far edge of a full-width card. */
.form-mid{ max-width:820px; }

/* Position is now a <select>; style it like the inline input. */
select.rl-pos{
  padding:8px 10px; border:1px solid var(--line-dark);
  border-radius:9px; font-size:14px; width:100%; background:#fff; color:var(--ink);
}
.rl-save{ /* only shown in <noscript> */ }

/* ============================================================
   Flatten the consumer-style soft shadows for a businesslike look.
   The marketing .card uses a 44px-blur halo + min-height that reads
   as a floating "side shadow" and wastes vertical space. On the
   crew/admin pages we want crisp, bordered, professional surfaces.
   ============================================================ */
.portal-main .card{
  box-shadow:none;
  min-height:0;
  border:1px solid var(--line-dark);
  border-radius:14px;
  padding:18px 20px;
}
.eng-detail,
.roster-table{
  box-shadow:none;
}

/* Charter notes — full-width prose textarea (crew briefing) */
.charter-notes{
  width:100%;
  padding:12px 13px;
  border:1px solid var(--line-dark);
  border-radius:11px;
  font-size:15px;
  line-height:1.5;
  font-family:var(--sans);
  color:var(--ink);
  background:#fff;
  resize:vertical;
  min-height:120px;
}
.form-h-sub{
  font-weight:600;
  font-size:11px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--gold-deep);
}

/* ============================================================
   Engagement list — Client / Vessel / Start / End / Crew columns
   ============================================================ */
.eng-list{
  background:#fff;
  border:1px solid var(--line-dark);
  border-radius:14px;
  overflow:hidden;
}
.eng-list-head{
  display:none;
}
.eng-list-row{
  display:grid;
  grid-template-columns:1fr;
  gap:2px;
  padding:14px 16px;
  border-bottom:1px solid rgba(7,21,36,.08);
  text-decoration:none;
  transition:background .15s ease;
}
.eng-list-row:last-child{ border-bottom:0; }
.eng-list-row:hover{ background:#faf7f0; }
.el-client{ font-weight:700; color:#061826; font-size:15px; }
.el-vessel{ color:#3a4a5a; font-size:14px; }
.el-start, .el-end{ color:#3a4a5a; font-size:14px; }
.el-crew{ color:#3a4a5a; font-size:14px; }
.el-noclient{ color:#9aa6b2; font-weight:600; font-style:italic; }

/* Mobile: client as title (full width), then detail cells 2-across */
@media (max-width:679px){
  .eng-list-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px 14px;
    padding:0 0 16px;
    border-bottom:6px solid #eef1f4;
  }
  .el-client{
    grid-column:1 / -1;
    font-size:18px;
    color:#fff;
    background:#0f2741;
    margin:0 0 6px;
    padding:12px 16px;
  }
  .el-client .el-noclient{ color:#b8c4d2; }
  .el-vessel, .el-start, .el-end, .el-crew{
    font-size:17px;
    color:#1f2d3d;
    padding-left:16px;
  }
  .el-crew, .el-start{ padding-left:16px; }
  .el-end, .el-vessel{ padding-right:16px; }
  .el-vessel::before,
  .el-start::before,
  .el-end::before,
  .el-crew::before{
    display:block;
    font-size:11px;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:#7c8a99;
    font-weight:700;
    margin-bottom:2px;
  }
  .el-vessel::before{ content:"Vessel"; }
  .el-start::before{ content:"Start"; }
  .el-end::before{ content:"End"; }
  .el-crew::before{ content:"Crew"; }
}

/* Desktop: real aligned columns with a header */
@media (min-width:680px){
  .eng-list-head{
    display:grid;
    grid-template-columns:2fr 1.4fr 1fr 1fr .6fr;
    gap:14px;
    padding:11px 16px;
    background:#f6f8fa;
    border-bottom:1px solid rgba(7,21,36,.08);
    font-size:10px; letter-spacing:.12em; text-transform:uppercase;
    color:var(--muted); font-weight:800;
  }
  .eng-list-row{
    grid-template-columns:2fr 1.4fr 1fr 1fr .6fr;
    gap:14px;
    align-items:center;
  }
}

/* ============================================================
   Kill the leftover marketing-site nav halo shadow.
   .mobile-slide-nav (a right-side drawer from the public site) carries
   a -28px 0 80px left-halo shadow that bleeds into the crew portal.
   The crew module uses .sidebar/#portalSidebar instead, so neutralize
   these public-nav shadows here.
   ============================================================ */
.mobile-slide-nav,
.mobile-nav-backdrop{
  box-shadow:none !important;
}
/* The off-screen mobile sidebar projects a 28px rightward shadow that
   bleeds onto content as a left-edge halo even when closed. Kill the
   sidebar shadow entirely; the backdrop dim already separates it when open. */
.sidebar{ box-shadow:none !important; }

/* Larger site title, centered in the mobile top bar.
   Logo stays left, hamburger stays right; the title text is absolutely
   centered across the full bar width independent of the logo. */
.portal-topbar{
  position:relative;
}
.portal-topbar-brand strong{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  font-size:22px;
  letter-spacing:.09em;
  white-space:nowrap;
}

/* Inline hint next to a label (e.g. "Position (for this charter)") */
.form-hint-inline{
  font-weight:500;
  font-size:11px;
  letter-spacing:0;
  text-transform:none;
  color:var(--muted);
}

/* Assign Crew row: Crew Member | Position | Tip Pool on one line */
.form-grid-assign{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:0 10px;
  align-items:start;
}
.form-grid-assign > .form-row{ min-width:0; }
.form-grid-assign select{ width:100%; }
@media (max-width:559px){
  /* keep all three on one line; the hint would crowd it, so drop it */
  .form-grid-assign .form-hint-inline{ display:none; }
}
@media (min-width:560px){
  .form-grid-assign{ grid-template-columns:1.3fr 1.3fr auto; gap:0 14px; }
}
/* Checkbox aligned under its "Tip Pool" label, matching input height */
.check-inline{
  display:flex; align-items:center; justify-content:flex-start; gap:7px;
  font-size:14px; color:var(--ink); white-space:nowrap;
  padding:9px 0;
}
.check-inline input{ width:auto; margin:0; }
.form-grid-assign .form-row:last-child,
.form-grid-3 .form-row:last-child{ justify-self:start; }

/* Onboard form: 3 columns -> two rows of three (Name/Phone/Position, Day/Hourly/Tip) */
.form-grid-3{
  display:grid;
  grid-template-columns:1fr;
  gap:0 12px;
  align-items:start;
}
@media (min-width:560px){
  .form-grid-3{ grid-template-columns:1fr 1fr 1fr; }
}
.form-grid-3 > .form-row{ min-width:0; }
.form-grid-3 input,
.form-grid-3 select{ width:100%; }

/* ============================================================
   Add-new-client modal
   ============================================================ */
.modal-backdrop{
  display:none;
  position:fixed; inset:0; z-index:300;
  background:rgba(6,24,38,.55);
  align-items:flex-start; justify-content:center;
  padding:60px 16px;
}
.modal-backdrop.is-open{ display:flex; }
.modal-card{
  background:#fff;
  border-radius:16px;
  width:100%; max-width:520px;
  padding:22px 22px 18px;
  box-shadow:0 30px 80px rgba(6,24,38,.35);
}
.modal-title{
  margin:0 0 14px; font-family:var(--sans);
  font-size:17px; font-weight:800; color:#061826;
}
.modal-card .form-row{ margin-bottom:12px; }
.modal-card label{
  display:block; margin-bottom:5px;
  font-size:11px; letter-spacing:.04em; text-transform:uppercase;
  color:var(--muted); font-weight:700;
}
.modal-card input{
  width:100%; padding:10px 12px;
  border:1px solid var(--line-dark); border-radius:10px;
  font-size:16px; color:var(--ink); background:#fff;
}
.modal-err{
  margin-bottom:12px; padding:10px 12px;
  border:1px solid #e7c3c3; background:#fbeaea; color:#7a2a2a;
  border-radius:10px; font-size:13px;
}
.modal-actions{
  display:flex; justify-content:flex-end; gap:10px; margin-top:16px;
}
@media (min-width:560px){
  .modal-card input{ font-size:14px; }
}

/* Searchable client combobox */
.client-combo{ position:relative; }
.client-combo-input{ width:100%; }
.client-combo-list{
  display:none;
  position:absolute; left:0; right:0; top:100%;
  margin-top:4px; z-index:60;
  background:#fff; border:1px solid var(--line-dark);
  border-radius:11px; box-shadow:0 18px 50px rgba(6,24,38,.18);
  max-height:260px; overflow-y:auto;
}
.client-combo.open .client-combo-list{ display:block; }
.client-combo-item{
  padding:10px 13px; font-size:14px; color:#061826; cursor:pointer;
  border-bottom:1px solid rgba(7,21,36,.06);
}
.client-combo-item:hover{ background:#f3f6f9; }
.client-combo-empty{ padding:12px 13px; font-size:13px; color:var(--muted); }
.client-combo-add{
  padding:11px 13px; font-size:13px; font-weight:700; cursor:pointer;
  color:var(--navy); background:#f6f8fa;
  position:sticky; bottom:0;
  border-top:1px solid rgba(7,21,36,.08);
}
.client-combo-add:hover{ background:#eef2f6; }

/* Remove-from-engagement button on roster rows */
.roster-line input[type=hidden],
.roster-line noscript{ display:none; }
.rl-remove{
  border:1px solid var(--line-dark);
  background:#fff;
  color:#a23b3b;
  width:30px; height:30px;
  border-radius:8px;
  font-size:18px; line-height:1;
  cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  justify-self:end;
}
.rl-remove:hover{ background:#fbeaea; border-color:#e7c3c3; }

/* ============================================================
   Profile page (onboarding completion)
   ============================================================ */
.welcome-banner{
  background:#eef4fb; border:1px solid #cfe0f2;
  color:#1f4e79; border-radius:12px;
  padding:13px 16px; margin-bottom:16px; font-size:14px;
}
.auth-ok{
  background:#eaf6ee; border:1px solid #bfe3cc; color:#236b3e;
  border-radius:10px; padding:11px 14px; margin-bottom:14px; font-size:14px;
}
.auth-error{
  background:#fbeaea; border:1px solid #e7c3c3; color:#7a2a2a;
  border-radius:10px; padding:11px 14px; margin-bottom:14px; font-size:14px;
}
.auth-note{
  background:#eef4fb; border:1px solid #c7dcf0; color:#2c4a68;
  border-radius:10px; padding:11px 14px; margin-bottom:14px; font-size:14px;
}
.profile-readonly{
  margin-top:18px; padding-top:16px;
  border-top:1px solid rgba(7,21,36,.10);
}
.profile-ro-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr));
  gap:12px; margin:10px 0 4px;
}
.profile-ro-grid > div{ display:flex; flex-direction:column; gap:3px; }
.ro-label{
  font-size:10px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--muted); font-weight:700;
}
.ro-value{ font-size:16px; font-weight:700; color:#061826; }

/* ============================================================
   Onboarding documents list (profile page)
   ============================================================ */
.doc-list{ margin-top:6px; }
.doc-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:12px 0;
  border-bottom:1px solid rgba(7,21,36,.08);
}
.doc-row:last-child{ border-bottom:none; }
.doc-main{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.doc-name{ font-weight:700; color:#061826; font-size:15px; }
.doc-desc{ font-size:12.5px; color:var(--muted); }
.doc-actions{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.doc-dl{
  font-size:12px; font-weight:700; color:var(--navy);
  text-decoration:none; padding:5px 11px;
  border:1px solid var(--navy); border-radius:8px; white-space:nowrap;
}
.doc-dl:hover{ background:#eef2f6; }
.doc-badge{
  font-size:10px; font-weight:800; letter-spacing:.06em;
  text-transform:uppercase; padding:5px 9px; border-radius:999px;
  white-space:nowrap;
}
.doc-badge-pending{  background:#fbeaea; color:#7a2a2a; }
.doc-badge-uploaded{ background:#fdf3e3; color:#8a5a16; }
.doc-badge-approved{ background:#eaf6ee; color:#236b3e; }
/* Mobile: stack the doc name above its actions so the badge always fits */
@media (max-width:559px){
  .doc-row{ flex-direction:column; align-items:flex-start; gap:8px; }
  .doc-actions{ width:100%; justify-content:flex-start; }
}
.doc-empty{ padding:14px 0; color:var(--muted); font-size:13px; }

/* SSN / Tax ID: short value, so cap the field width */
.input-ssn{ max-width:200px; }

/* ============================================================
   Crew login / auth (standalone, centered card)
   ============================================================ */
.auth-shell{
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  padding:32px 18px;
  box-sizing:border-box;
}
.auth-card{
  width:100%; max-width:400px;
  background:#fff;
  border:1px solid rgba(7,21,36,.10);
  border-radius:18px;
  padding:30px 28px 24px;
  box-shadow:0 24px 60px rgba(6,24,38,.10);
  box-sizing:border-box;
}
.auth-brand{
  display:flex; flex-direction:column; align-items:center;
  gap:4px; margin-bottom:22px; text-align:center;
}
.auth-brand img{ width:54px; height:54px; object-fit:contain; margin-bottom:4px; }
.auth-brand .brand-title{
  font-size:18px; font-weight:800; letter-spacing:.04em; color:var(--navy);
}
.auth-brand .brand-sub{
  font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--muted); font-weight:700;
}
.auth-title{
  margin:0 0 4px; font-size:21px; font-weight:800; color:#061826; text-align:center;
}
.auth-sub{
  margin:0 0 20px; font-size:14px; color:var(--muted); text-align:center;
}
.auth-card .form-row{ margin-bottom:14px; }
.auth-card label{
  display:block; margin-bottom:5px;
  font-size:11px; letter-spacing:.04em; text-transform:uppercase;
  color:var(--muted); font-weight:700;
}
.auth-card input{
  width:100%; padding:12px 13px;
  border:1px solid var(--line-dark); border-radius:10px;
  font-size:16px; color:var(--ink); background:#fff;
  box-sizing:border-box;
}
.auth-foot{
  margin:20px 0 0; padding-top:16px;
  border-top:1px solid rgba(7,21,36,.08);
  font-size:12px; color:var(--muted); text-align:center;
}

/* Centered form action row */
.form-actions-center{ display:flex; justify-content:center; margin-top:18px; }

/* Profile contact row: wider email, narrower phone, zelle as-is */
@media (min-width:560px){
  .grid-contact{ grid-template-columns:1.5fr 0.9fr 1.1fr; }
}

/* ============================================================
   Profile sections: bio + photo, private details
   ============================================================ */
.profile-section{
  margin-top:20px; padding-top:18px;
  border-top:1px solid rgba(7,21,36,.10);
}
.bio-row{ display:flex; flex-direction:column; gap:16px; }
.bio-photo{ display:flex; flex-direction:column; align-items:center; gap:6px; }
/* Headshot standard: 2:3 portrait, cover-cropped, centered on the
   upper third (where faces sit). This frame is also the public output
   shown to charter guests, so what crew see here is the true result. */
.bio-photo-img{
  width:160px; height:240px; object-fit:cover; object-position:center 30%;
  border-radius:14px; border:1px solid rgba(7,21,36,.12);
  display:block; background:#f7f9fb;
}
.bio-photo-empty{
  width:160px; height:240px; border-radius:14px;
  border:1.5px dashed rgba(7,21,36,.20);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:12px; background:#f7f9fb;
}
.bio-text{ flex:1; }
.bio-textarea{
  width:100%; padding:11px 12px;
  border:1px solid var(--line-dark); border-radius:10px;
  font-size:15px; color:var(--ink); background:#fff;
  font-family:inherit; resize:vertical; box-sizing:border-box;
}
@media (min-width:560px){
  .bio-row{ flex-direction:row; align-items:flex-start; }
  .bio-photo{ flex-shrink:0; }
  .grid-citystatezip{ grid-template-columns:1.4fr 0.8fr 0.8fr; }
}
/* Mobile: City full-width, State + ZIP share the next line */
@media (max-width:559px){
  .grid-citystatezip{ display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
  .grid-citystatezip > .form-row:first-child{ grid-column:1 / -1; }
}

/* Emergency contact labels: red to flag safety-critical fields */
.label-emergency{ color:#a23b3b !important; }

/* Subtle divider between field groups */
.section-divider{
  border:none; border-top:1px solid rgba(7,21,36,.10);
  margin:16px 0;
}

/* Private Details: full-width privacy banner (visual "stop scrolling" cue) */
.private-banner{
  display:flex; align-items:center; gap:12px;
  width:100%; box-sizing:border-box;
  background:#fbeaea; border:1px solid #e7c3c3;
  border-radius:10px; padding:12px 16px;
  margin:4px 0 16px;
}
.private-banner-lock{ font-size:20px; line-height:1; }
.private-banner-text{ display:flex; flex-direction:column; gap:1px; }
.private-banner-text strong{
  font-size:15px; font-weight:800; color:#7a2a2a; letter-spacing:.01em;
}
.private-banner-sub{
  font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:#a23b3b; font-weight:700;
}

/* SSN input + note side by side */
.ssn-row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.ssn-row .input-ssn{ flex:0 0 auto; }
.ssn-note{ margin:0; flex:1; min-width:140px; }

/* Small save button under the bio */
.bio-save-row{ display:flex; justify-content:flex-end; margin-top:8px; }
.btn-sm{ padding:7px 18px; font-size:13px; }

/* Photo upload button (styled file input) */
.photo-upload-btn{
  display:inline-block; margin-top:8px; cursor:pointer;
}
.photo-upload-btn input[type=file]{
  position:absolute; width:1px; height:1px; opacity:0; overflow:hidden;
}
.photo-upload-btn span{
  display:inline-block; font-size:12px; font-weight:700;
  color:var(--navy); padding:6px 14px;
  border:1px solid var(--navy); border-radius:8px;
}
.photo-upload-btn:hover span{ background:#eef2f6; }

/* Selected photo filename display */
.photo-filename{ font-size:12px; color:var(--muted); margin-left:4px; word-break:break-all; }

/* Inline doc upload button (file input styled as small link-button) */
.doc-upload-form{ display:inline-block; margin:0; }
.doc-upload-btn{ display:inline-block; cursor:pointer; }
.doc-upload-btn input[type=file]{ position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.doc-upload-btn span{
  display:inline-block; font-size:12px; font-weight:700;
  color:#fff; background:var(--navy); padding:5px 12px; border-radius:8px;
}
.doc-upload-btn:hover span{ opacity:.9; }

/* Blank-forms download row at top of onboarding docs */
.blank-forms{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  margin:2px 0 14px; padding-bottom:12px;
  border-bottom:1px solid rgba(7,21,36,.08);
}
.blank-forms-label{ font-size:12px; font-weight:700; color:var(--muted); }

/* ============================================================
   log_work.asp — Open PO table + Invoices accordion
   (appended; classes scoped via .po- / .inv- prefixes)
   ============================================================ */

/* Per-vessel subtotal strip (preview of how open items split) */
.po-vsum-strip{ display:flex; flex-wrap:wrap; gap:10px; margin:4px 0 14px; }
.po-vsum{
  background:rgba(7,21,36,.04);
  border:1px solid rgba(7,21,36,.10);
  border-radius:8px; padding:6px 12px;
  font-size:13px; color:var(--navy-ink);
}
.po-vsum strong{ color:var(--navy); }

/* Open PO table + invoice line tables */
.po-table{ width:100%; border-collapse:collapse; font-size:14px; }
.po-table th, .po-table td{
  text-align:left; padding:9px 10px;
  border-bottom:1px solid rgba(7,21,36,.08); vertical-align:top;
}
.po-table thead th{
  font-size:12px; text-transform:uppercase; letter-spacing:.04em;
  color:var(--muted); border-bottom:2px solid rgba(7,21,36,.12);
}
.po-table tfoot td{
  border-bottom:none; border-top:2px solid rgba(7,21,36,.12); padding-top:11px;
}
.po-num{ text-align:right; white-space:nowrap; }
.po-total-label{ text-align:right; color:var(--muted); }
.po-break{ font-size:12px; color:var(--muted); margin-top:2px; font-weight:400; opacity:.85; }

/* Edit / Delete controls (.po-act itself is defined below with the list cells,
   as a right-aligned flex row that wraps). */
.po-edit{ font-size:13px; color:var(--navy-2); text-decoration:none; margin-right:8px; }
.po-edit:hover{ text-decoration:underline; }
.po-del{
  background:none; border:none; color:#b3261e;
  font-size:13px; cursor:pointer; padding:0;
}
.po-del:hover{ text-decoration:underline; }

/* Invoices accordion */
.inv-acc{
  border:1px solid rgba(7,21,36,.10); border-radius:10px;
  margin-bottom:10px; overflow:hidden;
}
.inv-sum{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; cursor:pointer; list-style:none;
}
.inv-sum::-webkit-details-marker{ display:none; }
.inv-no{ font-weight:600; color:var(--navy-ink); }
.inv-meta{ color:var(--muted); font-size:13px; flex:1; }
.inv-amt{ font-weight:600; color:var(--navy-ink); }
.inv-badge{ display:inline-block; padding:2px 9px; border-radius:10px; font-size:11px; font-weight:600; }
.inv-badge-frozen{ background:rgba(31,78,121,.12); color:var(--navy); }
.inv-badge-paid{ background:#dcfce7; color:#166534; }
.inv-body{ padding:4px 14px 14px; border-top:1px solid rgba(7,21,36,.08); }
.inv-billto{ font-size:12px; color:var(--muted); margin-top:8px; }

/* Time pair (start + finish): keep side-by-side even on mobile.
   Other .form-grid-2 pairs still stack on narrow screens; these two
   short time dropdowns are short enough to share a line at any width. */
.form-grid-2.time-pair{ grid-template-columns:1fr 1fr; }

/* ---- Open Items: stacked-div grid ----
   Desktop (>=640px): 4 columns -- When | Description | Vessel(+breakdown) |
   Amount(+actions). Each cell is a small stacked block. Below 640px the
   Description column hides and the grid drops to 3 columns (iPhone/Android
   portrait benchmark; we don't target very small screens). */
.po-list{ display:block; margin-top:4px; }
.po-head,
.po-rec,
.po-foot{
  display:grid;
  /* Explicit shared tracks so the header labels sit exactly over their data.
     Columns 1 and 3 are minmax(0,auto) -- they size to content but the min:0
     lets them shrink instead of forcing the grid (and the page) wider than the
     container. Without the 0 floor, a wide cell (e.g. the expense list's "For"
     column with receipt thumbnails + a long charter label) overflowed sideways.
     The last column is fixed-width so the right-aligned Amount header and values
     share one right edge. */
  grid-template-columns:minmax(0,auto) minmax(0,1fr) minmax(0,auto) minmax(92px,auto);
  gap:4px 16px;
  align-items:start;
  padding:10px 2px;
  min-width:0;
}
.po-head{
  padding:6px 2px;
  font-size:12px; color:var(--muted); font-weight:600;
  border-bottom:1px solid var(--line, #e3e8ef);
}
.po-rec{ border-bottom:1px solid var(--line, #e3e8ef); }
.po-head .po-amt-head{ text-align:right; }
.po-when-date{ font-weight:600; }
.po-when-time{ font-size:12px; color:var(--muted); margin-top:1px; white-space:nowrap; }
.po-vessel-name{ font-weight:500; overflow-wrap:anywhere; }
/* Grid cells must be allowed to shrink below their content's intrinsic width,
   or a wide cell forces the whole row (and page) wider. min-width:0 overrides
   the grid default of min-width:auto. The "For" label wraps rather than pushing. */
.po-when, .po-desc, .po-vessel, .po-amt{ min-width:0; }
.po-desc{ overflow-wrap:anywhere; }
.po-break{ font-size:12px; color:var(--muted); margin-top:1px; }
.po-amt{ text-align:right; white-space:nowrap; }
.po-amt-val{ font-weight:600; }
.po-act{ margin-top:4px; display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.po-foot{
  /* same 4-col track as records so the total lands under the Amount column */
  border-top:2px solid var(--line, #e3e8ef);
  font-weight:600;
}
.po-foot .po-total-label{ grid-column:1 / 4; text-align:right; color:var(--muted); }
.po-foot .po-total-val{ text-align:right; white-space:nowrap; }

@media (max-width:639px){
  .po-head,
  .po-rec,
  .po-foot{
    grid-template-columns:minmax(42px, auto) minmax(0, 1fr) minmax(76px, 88px);
    gap:4px 8px;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  .po-desc{ display:none; }
  /* Exception: the crew roster (po-list-roster) uses .po-desc for the
     Contact column (phone + Act-as button), which must stay visible on
     mobile. Only crew.asp uses po-list-roster, so this can't affect the
     work/expense lists that legitimately hide their Description column. */
  .po-list-roster .po-desc{ display:block; }
  /* The generic mobile .po-rec grid above is 3-col (assumes .po-desc is
     hidden). The roster keeps its Contact column and has no Active column,
     so give it a 2-col grid: Name + Contact stack on the left, Role right. */
  .po-list-roster .po-head{ display:none; }
  .po-list-roster .po-rec{
    grid-template-columns:1fr auto;
    gap:6px 12px;
    align-items:start;
    padding:12px 14px;
  }
  .po-list-roster .po-when{ grid-column:1; }
  .po-list-roster .po-desc{ grid-column:1; }
  .po-list-roster .po-vessel{ grid-column:2; grid-row:1; text-align:right; }
  .po-foot .po-total-label{ grid-column:1 / 3; }
  .po-vessel, .po-when, .po-amt{ min-width:0; }
  .po-amt{ white-space:normal; }
  .po-act{ white-space:normal; }
  .receipt-thumbs{ max-width:100%; }
}

/* Review table (admin): the action column holds "Approve" OR a badge + "Undo"
   ("Approved  Undo"), which the shared 92px last track is too narrow for --
   it overflowed. Tighten the Crew column and widen the action column so the
   approve/undo controls fit on one line. Desktop only; mobile keeps the
   shared compact track above. */
@media (min-width:640px){
  .po-list-review .po-head,
  .po-list-review .po-rec,
  .po-list-review .po-foot{
    grid-template-columns:auto minmax(0,1.2fr) auto 132px;
  }
  .po-list-review .po-foot .po-total-label{ grid-column:1 / 4; }

  /* Roster (crew.asp) dropped the "Active" column, so it needs a 3-col
     desktop grid: Name | Contact | Role. Scoped to po-list-roster so the
     shared review table (which keeps 4 cols for approve/undo) is untouched. */
  .po-list-roster .po-head,
  .po-list-roster .po-rec{
    grid-template-columns:auto minmax(0,1.4fr) auto;
  }
}

/* Vessel + Work date: keep side-by-side even on mobile (like the time pair).
   Testing the fit at phone width; if the vessel dropdown reads cramped,
   remove .vd-pair from the row to let it stack below 640px. */
.form-grid-2.vd-pair{ grid-template-columns:1fr 1fr; }

/* Description textarea: match inputs, allow vertical resize only. */
.form-compact textarea{ font-family:inherit; line-height:1.4; resize:vertical; }

/* ---- My Charters: assigned-engagement cards ---- */
.charter-card{
  display:flex; justify-content:space-between; align-items:stretch; gap:14px;
  padding:14px 16px; margin:0 0 10px; text-decoration:none; color:inherit;
  border:1px solid var(--line, #e3e8ef); border-radius:12px; background:#fff;
  transition:border-color .12s, box-shadow .12s;
}
.charter-card:hover{ border-color:var(--navy, #1f4e79); box-shadow:0 2px 8px rgba(31,78,121,.08); }
.charter-card-main{ min-width:0; }
.charter-name{ font-weight:700; color:var(--navy-ink, #163a5c); }
.charter-sub{ font-size:13px; color:var(--muted); margin-top:2px; }
.charter-rates{ font-size:12px; color:var(--muted); margin-top:6px; }
.charter-card-side{ text-align:right; white-space:nowrap; display:flex; flex-direction:column; justify-content:center; }
.charter-total{ font-weight:700; color:var(--navy-ink, #163a5c); }
.charter-total-sub{ font-size:12px; color:var(--muted); margin-top:1px; }
.charter-go{ font-size:13px; color:var(--navy, #1f4e79); font-weight:600; margin-top:6px; }

/* ============================================================
   Engagement workspace header (engagement.asp v1.5)
   Mobile: 2-col grid -- Vessel + Contact on row 1, Notes spanning
   both on row 2. Desktop (>=680px): 4-col -- Vessel (1), Contact (1),
   Notes (2). Per-value labels dropped; each card carries a form-h
   title matching the form cards below. Gold top accent matches the
   dashboard KPI tiles (.kpi:before) for a shared head-card signature.
   ============================================================ */
.eng-head-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
  margin-bottom:14px;
  align-items:start;
}
.eng-head-span2{ grid-column:span 2; }
@media (min-width:680px){
  .eng-head-grid{ grid-template-columns:repeat(4, 1fr); }
  /* .eng-head-span2 keeps span 2 -> notes fills the remaining two cols */
}
.eng-head-card{
  background:#fff;
  border:1px solid rgba(7,21,36,.10);
  border-radius:16px;
  padding:16px 18px;
  box-shadow:0 10px 30px rgba(6,24,38,.05);
  min-width:0;
  position:relative;
  overflow:hidden;
}
/* Gold top accent -- matches the dashboard KPI tiles (.kpi:before in site.css)
   so every head-summary card shares the same visual signature. */
.eng-head-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg,var(--gold-soft),var(--gold));
}
.eng-head-lines{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.eng-head-primary{
  color:#061826; font-weight:700; font-size:14px;
  word-break:break-word;
}
.eng-head-line{
  color:#061826; font-weight:600; font-size:12.5px;
  word-break:break-word;
}
.eng-head-line a{ color:var(--navy, #1f4e79); text-decoration:none; }
.eng-head-line a:hover{ text-decoration:underline; }
.eng-head-notes-body{
  margin:0;
  color:#061826;
  font-size:12.5px;
  line-height:1.5;
  white-space:pre-wrap;
  word-break:break-word;
}

/* ============================================================
   Dashboard engagement rows (index.asp).
   Each row is now just a title block + a single status badge (the
   per-row money was removed -- dollar detail lives on the engagement
   page; the aggregate is the Balance Due KPI). Override .eng-row at
   all widths to a 1fr|auto grid (title flexes, badge hugs the right),
   superseding both the desktop 4-col .table-row grid and the <=960px
   1fr stack from site.css.
   ============================================================ */
.table-row.eng-row{
  grid-template-columns:1fr auto;
  column-gap:12px;
  align-items:center;
}
.table-row.eng-row > span:last-child{
  justify-self:end;
}
@media (max-width:960px){
  .table-row.eng-row{
    grid-template-columns:1fr auto;
    column-gap:12px;
    row-gap:0;
  }
}

/* ============================================================
   Active Assignments: render each charter as its OWN distinct
   card (equal individual units) rather than divided rows in one
   shared card. .eng-cards dissolves the wrapping .table-card chrome;
   each .eng-row becomes a standalone bordered/rounded card with a
   gap between. Scoped to .eng-cards so other .table-card tables
   (admin lists, settled history) are unaffected.
   ============================================================ */
.eng-cards.table-card{
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.eng-cards .table-row.eng-row{
  background:#fff;
  border:1px solid rgba(7,21,36,.12);
  border-radius:16px;
  box-shadow:0 6px 20px rgba(6,24,38,.06);
  padding:16px 18px;
}
.eng-cards .table-row.eng-row:last-child{
  border-bottom:1px solid rgba(7,21,36,.12);
}

/* ============================================================
   Engagement accordion (admin index). Each .eng-acc is a distinct
   card; the header button toggles a read-only drawer (charter notes
   + crew list) without a page reload. Multiple can be open at once.
   ============================================================ */
.eng-acc{
  background:#fff;
  border:1px solid rgba(7,21,36,.12);
  border-radius:16px;
  box-shadow:0 6px 20px rgba(6,24,38,.06);
  overflow:hidden;
}
.eng-acc-head{
  width:100%;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  background:none;
  border:0;
  text-align:left;
  cursor:pointer;
  font:inherit;
  color:inherit;
}
.eng-acc-head:hover{ background:#faf9f6; }
.eng-acc-title{ line-height:1.4; }
.eng-acc-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.eng-acc-chevron{
  transition:transform .18s ease;
  color:var(--muted);
  font-size:12px;
}
.eng-acc.open .eng-acc-chevron{ transform:rotate(180deg); }

.eng-acc-body{
  padding:4px 18px 18px;
  border-top:1px solid rgba(7,21,36,.08);
}
.eng-acc-section{ margin-top:14px; }
.eng-acc-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  color:var(--muted);
  margin-bottom:6px;
}
.eng-acc-notes{ white-space:normal; color:var(--ink,#061826); line-height:1.5; }
.eng-acc-muted{ color:var(--muted); font-style:italic; }
.eng-acc-crew{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.eng-acc-crew li{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.eng-crew-name{ font-weight:700; color:#061826; }
.eng-crew-role{ color:var(--muted); font-size:13px; }
.eng-crew-tip{
  font-size:11px;
  font-weight:700;
  color:#8d6728;
  background:rgba(198,154,69,.12);
  border:1px solid rgba(198,154,69,.4);
  border-radius:999px;
  padding:1px 8px;
}
.eng-acc-actions{ margin-top:16px; }

/* Engagement row meta line: "Vessel  ·  Jun 30 – Jul 2". On desktop it reads
   as one inline line. On mobile the date range was wrapping awkwardly, so
   stack it: vessel on line 1, dates on line 2, and hide the " · " separator. */
.eng-meta{
  font-weight:500;
}
.eng-vessel{ white-space:nowrap; }
.eng-dates{ white-space:nowrap; }
@media (max-width:560px){
  .eng-sep{ display:none; }
  .eng-dates{
    display:block;
    font-weight:400;
    color:var(--muted, #647383);
    font-size:13px;
  }
}

/* ============================================================
   Larger section headings (log_work.asp: Time Tracking, Expenses,
   Your Invoices). The base .form-h is ~14-15px; these section titles
   are primary panel headings and want more presence, especially on
   mobile where the timecard mostly lives.
   ============================================================ */
.form-h.form-h-lg{
  font-size:20px;
  font-weight:800;
  letter-spacing:.01em;
  margin:0 0 12px;
}
/* The "— not yet invoiced" sub-clause inside a large heading shouldn't
   balloon with it; keep it secondary. */
.form-h.form-h-lg .form-h-sub{
  font-size:13px;
  font-weight:600;
}

/* ============================================================
   Crew portal page title (.portal-top h1) -- stylized to echo the
   site name "THE CREW DOCK": Cinzel serif, gold, the brand's letter
   spacing. Overrides site.css's dark sans-ish h1. Applies across all
   crew portal pages (dashboard, timecard, engagement, admin) for a
   consistent masthead feel.
   ============================================================ */
.portal-top h1{
  font-family:var(--serif);
  color:var(--gold);
  letter-spacing:.06em;
  font-weight:700;
}

/* ============================================================
   Expense receipt upload control (log_work.asp / engagement.asp).
   The file input lives INSIDE its label, so clicking the label text
   ("Add receipt" / "Replace") natively opens the picker -- no overlay
   needed. The raw input is visually hidden but still functional.
   onchange auto-submits the tiny multipart form.
   ============================================================ */
.receipt-form{ display:inline-block; margin-top:2px; }
.receipt-cta{
  cursor:pointer;
  color:var(--gold-deep, #8d6728);
  text-decoration:underline;
}
.receipt-cta:hover{ color:var(--gold, #c79a45); }
.receipt-file,
.form-compact .receipt-file{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px; border:0;
  clip:rect(0 0 0 0); overflow:hidden;
  white-space:nowrap;
}

/* ============================================================
   Receipt thumbnails (log_work.asp Expenses). Each receipt is a small
   tappable tile: a scaled image for photos, a PDF icon for PDFs. A small
   "x" in the corner deletes just that receipt. Tiles wrap onto multiple
   rows if there are several.
   ============================================================ */
.receipt-thumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}
.receipt-thumb{
  position:relative;
  width:54px;
  height:54px;
}
.receipt-thumb > a{
  display:block;
  width:54px;
  height:54px;
  border:1px solid var(--line, #d8dee6);
  border-radius:8px;
  overflow:hidden;
  background:#f4f6f9;
}
.receipt-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.receipt-thumb-pdf{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  color:#b3261e;
}
.receipt-thumb-pdf > i{ font-size:26px; line-height:1; }
.receipt-del-form{ display:inline; margin:0; line-height:1; }
.receipt-del{
  border:0; background:none; cursor:pointer; padding:0 2px;
  font-size:14px; line-height:1; color:#b3261e;
  opacity:.7;
}
.receipt-del:hover{ opacity:1; }
/* The delete control as a corner badge on a thumbnail. */
.receipt-del-thumb{
  position:absolute;
  top:-7px;
  right:-7px;
  width:18px;
  height:18px;
  padding:0;
  border-radius:50%;
  background:#fff;
  border:1px solid var(--line, #d8dee6);
  color:#b3261e;
  font-size:13px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:1;
  box-shadow:0 1px 2px rgba(0,0,0,.12);
}
.receipt-del-thumb:hover{ background:#fde8e8; }

/* ============================================================
   Section header band (Style B): a light-blue header strip with a large
   icon and a gold underline, sitting flush to the top of a .card. Gives
   each section a clear, calm visual anchor. The light blue stays distinct
   from the dark-navy buttons. Title uses the gold serif to match brand.

   Markup:
     <div class="card form-compact form-narrow">
       <div class="section-head">
         <i class="ti ti-clock-hour-4" aria-hidden="true"></i>
         <span>Time tracking</span>
       </div>
       ... section body ...
     </div>
   Full-bleed via negative margins matching .portal-main .card padding
   (18px 20px); top corners rounded to sit inside the card's 14px radius.
   ============================================================ */
.section-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin:-18px -20px 16px;
  padding:13px 18px;
  background:#e3eef8;
  border-bottom:2px solid var(--gold, #c79a45);
  border-radius:14px 14px 0 0;
}
.section-head > i{
  font-size:28px;
  line-height:1;
  color:#1f4e79;
  flex-shrink:0;
}
.section-head > span{
  font-family:var(--serif, 'Cinzel', Georgia, serif);
  font-size:17px;
  font-weight:700;
  color:#0d314d;
  line-height:1.2;
}
.section-head .section-sub{
  font-family:inherit;
  font-weight:400;
  font-size:13px;
  color:#46607c;
  margin-left:2px;
}

/* Inline variant: same band, but NOT full-bleed -- for a sub-section that
   sits mid-card (e.g. Expenses inside the Time Tracking card) rather than at
   the card's top edge. Contained bar with all corners rounded. */
.section-head.section-head-inline{
  margin:22px 0 14px;
  border-radius:10px;
}

/* ============================================================
   Segmented radio toggle (log_expense.asp: Fleet vs Charter). Two pill
   options; the checked one fills navy. Built on real radios so it works
   without JS for submit; JS only swaps which dropdown shows.
   ============================================================ */
.seg-toggle{ display:inline-flex; border:1px solid var(--line, #d8dee6); border-radius:10px; overflow:hidden; }
.seg-opt{ position:relative; margin:0; }
.seg-opt input{ position:absolute; opacity:0; width:0; height:0; }
.seg-opt > span{
  display:block; padding:9px 16px; font-size:14px; cursor:pointer;
  color:var(--ink, #071524); background:#fff; user-select:none;
  border-left:1px solid var(--line, #d8dee6);
}
.seg-opt:first-child > span{ border-left:0; }
.seg-opt input:checked + span{ background:#1f4e79; color:#fff; }
.seg-opt input:focus-visible + span{ outline:2px solid var(--gold, #c79a45); outline-offset:-2px; }

/* Sort toggle links (admin crew roster header: "sort by name / role"). The
   active sort is emphasized; both sit inside the .section-sub subtitle. */
.sort-link{ color:#46607c; text-decoration:underline; text-underline-offset:2px; }
.sort-link.active{ color:#1f4e79; font-weight:700; text-decoration:none; }

/* ===============================================================
   Impersonation banner — admin "Act as crew member"
   Add to /crew/css/crew-portal.css (or your crew stylesheet).
   Navy/gold to match the portal, amber warning accent.
   =============================================================== */
.impersonation-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  background:linear-gradient(90deg,#7a4e00,#b9822e);
  color:#fff;
  padding:12px 20px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
  box-shadow:0 3px 12px rgba(0,0,0,.28);
  border-bottom:2px solid #f0d28a;
  position:sticky;
  top:0;
  z-index:250;
}

.impersonation-banner-text{
  display:flex;
  align-items:center;
  gap:8px;
}

.impersonation-banner-text strong{
  color:#ffe9b8;
  font-weight:800;
}

.impersonation-banner-stop{
  flex:0 0 auto;
  background:#fff;
  color:#7a4e00;
  padding:7px 16px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.06em;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.2);
}

.impersonation-banner-stop:hover{
  background:#ffe9b8;
  color:#5a3900;
}

@media(max-width:560px){
  .impersonation-banner{
    padding:10px 14px;
    font-size:13px;
    flex-wrap:nowrap;
    gap:10px;
  }
  /* Drop the "entries you make are recorded..." explanation on mobile;
     keep just: name on the left, Return button on the right. */
  .impersonation-banner-note{ display:none; }
  .impersonation-banner-text{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .impersonation-banner-stop{
    flex:0 0 auto;
    padding:6px 12px;
    font-size:12px;
  }
}
 
/* ===============================================================
   "Act as" button — crew roster impersonation trigger
   Small navy pill with a gold hover, sits under each crew name.
   =============================================================== */
.actas-btn{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:4px;
  padding:3px 11px;
  border:1px solid rgba(198,154,69,.55);
  border-radius:999px;
  background:rgba(198,154,69,.10);
  color:#8d6728;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  line-height:1.4;
  white-space:nowrap;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
 
.actas-btn:hover{
  background:linear-gradient(135deg,#f0d28a,#c79a45);
  border-color:transparent;
  color:#071524;
}
/* ===============================================================
   Crew roster contact line — phone + "Act as" inline
   =============================================================== */
.contact-line{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
 
.contact-phone{
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.contact-phone .ti-phone{
  font-size:15px;
  color:var(--gold, #c69a45);
}

/* ============================================================
   REPORTS -- PAYABLES LISTING  +  REPORTS HUB
   Added for /crew/admin/report_payables.asp and reports.asp.

   The base .po-list grid is a 4-column layout (When | Description |
   Vessel | Amount). The payables report needs SIX columns -- it adds
   Class and State -- so rather than widen the shared tracks (which
   would move every existing list on the site), .po-list-payables
   overrides grid-template-columns scoped to itself. Same pattern
   .po-list-review and .po-list-roster already use.
   ============================================================ */

/* Desktop: Date | Description | Vessel | Class | State | Amount.
   Columns 1/3/4/5 size to content with a 0 floor so a long vessel
   name shrinks instead of forcing the page wider. */
.po-list-payables .po-head,
.po-list-payables .po-rec,
.po-list-payables .po-foot{
  grid-template-columns:
    minmax(0,auto)      /* date            */
    minmax(0,1fr)       /* description     */
    minmax(0,auto)      /* vessel          */
    minmax(0,auto)      /* class           */
    minmax(0,auto)      /* state           */
    minmax(92px,auto);  /* amount          */
}
.po-list-payables .po-cls,
.po-list-payables .po-state{ min-width:0; font-size:12px; }

/* Totals rows span all label columns so the value lands under Amount. */
.po-list-payables .po-foot .po-total-label{ grid-column:1 / 6; }

/* --- Crew group band -------------------------------------------------
   The report groups by crew member; this is the band that opens each
   group. It spans the full grid width and is visually quieter than a
   section-head so it reads as a grouping, not a new card. */
.po-crewband{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 2px 6px;
  margin-top:6px;
  border-bottom:1px solid var(--line,#e3e8ef);
}
.po-crewband a{ color:var(--navy,#1f4e79); text-decoration:none; }
.po-crewband a:hover{ text-decoration:underline; }
.po-crewband strong{ font-size:15px; }

/* Per-crew subtotal sits tighter and lighter than the grand total. */
.po-foot-crew{
  border-top:1px solid var(--line,#e3e8ef);
  background:rgba(31,78,121,.03);
  font-size:13px;
}
.po-foot-crew .po-total-label{ font-weight:500; }
.po-foot-grand{
  border-top:2px solid var(--navy,#1f4e79);
  font-size:15px;
}

/* --- Class tag (Charter / Day Work) ----------------------------------
   Deliberately low-chroma: the class is context, not a status. The
   State badge is the one that should catch the eye. */
.cls-tag{
  display:inline-block;
  padding:2px 8px;
  border-radius:10px;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
}
.cls-charter{ background:rgba(198,154,69,.16); color:#8a5a16; }
.cls-daywork{ background:rgba(31,78,121,.10); color:var(--navy,#1f4e79); }

/* Extends the existing .inv-badge family (frozen/paid already defined). */
.inv-badge-open{     background:#f1f5f9; color:#475569; }
.inv-badge-approved{ background:#eaf6ee; color:#236b3e; }
.inv-badge-pending{  background:#fdf3e3; color:#8a5a16; }

/* --- Filter bar ------------------------------------------------------ */
.rpt-filter-row{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px 16px;
  align-items:end;
}
.rpt-filter-actions > div{ display:flex; gap:8px; flex-wrap:wrap; }
@media (max-width:860px){
  .rpt-filter-row{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

/* --- Mobile ----------------------------------------------------------
   Steve reviews on mobile first. At narrow widths six columns cannot
   read, so the grid collapses to three: Date | Description | Amount.
   Class and State are NOT dropped -- they move inline under the
   description, because "is this paid" is exactly what you check on a
   phone. Vessel folds under the description too. */
@media (max-width:639px){
  .po-list-payables .po-head,
  .po-list-payables .po-rec,
  .po-list-payables .po-foot{
    grid-template-columns:minmax(42px,auto) minmax(0,1fr) minmax(76px,88px);
    gap:4px 8px;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  /* Keep the description column visible here -- unlike the work list,
     it carries the crew/charter link the row is useless without. */
  .po-list-payables .po-desc{ display:block; }
  .po-list-payables .po-head .po-cls,
  .po-list-payables .po-head .po-state,
  .po-list-payables .po-head > div:nth-child(3){ display:none; }
  .po-list-payables .po-vessel,
  .po-list-payables .po-cls,
  .po-list-payables .po-state{
    grid-column:2;
    font-size:12px;
    color:var(--muted);
  }
  .po-list-payables .po-foot .po-total-label{ grid-column:1 / 3; }
}

/* ============================================================
   PRINT
   "Screen first with a simple print button" -- so this is one
   @media print block, not a separate stylesheet. Everything the
   operator does not need on paper carries .no-print; the table
   itself prints black-on-white with the card chrome dissolved.
   ============================================================ */
.print-only{ display:none; }

@media print{
  /* Chrome out. */
  .no-print,
  .sidebar,
  .portal-topbar,
  .crew-bottom-nav,
  .bottom-nav,
  .portal-nav-backdrop,
  .rpt-filters{ display:none !important; }

  .print-only{ display:block; }

  /* Let the content use the full sheet. */
  .portal-shell{ display:block !important; }
  .portal-main{ padding:0 !important; margin:0 !important; max-width:100% !important; }
  html, body, body.portal{
    background:#fff !important;
    color:#000 !important;
    margin:0; padding:0;
  }

  /* Cards lose their chrome -- borders and shadows waste toner and
     make a printed sheet look like a screenshot. */
  .card, .rpt-card, .table-card{
    box-shadow:none !important;
    border:0 !important;
    background:#fff !important;
    padding:0 !important;
    margin:0 0 14px !important;
  }

  .print-head{ margin:0 0 12px; }
  .print-title{ font-size:18px; font-weight:700; }
  .print-sub{ font-size:12px; color:#444; margin-top:2px; }

  /* Section heads stay as plain bold labels. */
  .section-head{
    background:none !important;
    border:0 !important;
    padding:0 0 6px !important;
    font-weight:700;
  }
  .section-head > i{ display:none; }

  /* Badges/tags print as text with a hairline, not filled shapes. */
  .inv-badge, .cls-tag, .badge{
    background:none !important;
    color:#000 !important;
    border:1px solid #999;
    padding:1px 5px;
  }

  /* Keep a crew member's block from splitting across pages where it can
     be avoided, and never orphan a group band at a page foot. */
  .po-crewband{
    break-after:avoid;
    page-break-after:avoid;
    border-bottom:1px solid #000;
  }
  .po-rec{ break-inside:avoid; page-break-inside:avoid; }
  .po-foot-crew{ background:none !important; }
  .po-foot-grand{ border-top:2px solid #000 !important; }

  /* Full six columns on paper regardless of the screen width the
     operator happened to print from -- a phone-width print would
     otherwise lose the Class and State columns. */
  .po-list-payables .po-head,
  .po-list-payables .po-rec,
  .po-list-payables .po-foot{
    grid-template-columns:
      minmax(0,auto) minmax(0,1fr) minmax(0,auto)
      minmax(0,auto) minmax(0,auto) minmax(80px,auto) !important;
  }
  .po-list-payables .po-desc,
  .po-list-payables .po-vessel,
  .po-list-payables .po-cls,
  .po-list-payables .po-state{
    display:block !important;
    grid-column:auto !important;
    color:#000 !important;
  }
  .po-list-payables .po-head > div{ display:block !important; }
  .po-list-payables .po-foot .po-total-label{ grid-column:1 / 6 !important; }

  /* Links print as plain text -- a blue underline on paper is noise. */
  a{ color:#000 !important; text-decoration:none !important; }

  @page{ margin:14mm; }
}

/* ============================================================
   REPORTS HUB  (/crew/admin/reports.asp)
   Three cards, one per report. Deliberately plain -- this page is
   a signpost, and anything more decorative competes with the KPI
   tiles directly above it.
   ============================================================ */
.rpt-hub{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top:4px;
}
@media (max-width:860px){
  .rpt-hub{ grid-template-columns:1fr; }
}

.rpt-hub-item{
  display:block;
  padding:16px 16px 14px;
  border:1px solid var(--line,#e3e8ef);
  border-radius:10px;
  text-decoration:none;
  color:inherit;
  background:#fff;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.rpt-hub-item:hover{
  border-color:var(--gold,#c69a45);
  box-shadow:0 6px 20px rgba(6,24,38,.07);
  transform:translateY(-1px);
}
.rpt-hub-title{
  font-weight:700;
  font-size:15px;
  color:var(--navy,#1f4e79);
  margin-bottom:5px;
}
.rpt-hub-item p{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color:var(--muted,#647383);
}

/* --- KPI tiles as links ----------------------------------------------
   The hub reuses crew.css's existing KPI contract -- a .kpi wrapper with
   nested .kpi-label / .kpi-value spans, the same markup the admin and
   crew dashboards use -- rather than inventing a parallel tile. That
   contract has no third slot, so .kpi-sub is added here. .kpi-link adds
   only what an anchor needs: no underline, inherited colour, hover lift.
   .kpi itself is display:flex/column in crew.css, so the anchor keeps
   that rather than overriding to block. */
a.kpi-link{
  text-decoration:none;
  color:inherit;
  transition:box-shadow .16s ease, transform .16s ease;
}
a.kpi-link:hover{
  box-shadow:0 20px 55px rgba(6,24,38,.12);
  transform:translateY(-2px);
}
/* Third line under the KPI value -- the contract defines label + value
   only. Centred to match .kpi-label / .kpi-value. */
.kpi .kpi-sub{
  display:block;
  margin-top:4px;
  font-size:12px;
  text-align:center;
  color:var(--muted,#647383);
}

/* --- Pending-gratuity list -------------------------------------------
   Same 6-col grid as the payables list, but the columns carry different
   meanings (Pool / Split rather than Class / State), so the modifier
   exists to hang the estimate styling off. The amount cell stacks a
   badge under the value. */
.po-list-pending .po-amt .inv-badge{ margin-top:3px; }
.po-list-pending .po-cls,
.po-list-pending .po-state{ font-variant-numeric:tabular-nums; }

/* Wrapper on the filter form -- no layout of its own; the grid lives on
   .rpt-filter-row. Present so the form is addressable for print/JS. */
.rpt-filter-form{ margin:0; }
