/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1B365D;   /* deep navy — headings & body text on light */
  --header-bg: #0078C8;   /* vibrant corporate blue — header & footer (ArcBest-style) */
  --gold:      #0a5491;   /* deeper blue accent — buttons, badges (non-yellow) */
  --gold-lt:   #0d6bb8;   /* hover state */
  --cream:     #fafaf7;   /* near-white surface */
  --mid:       #eef2f6;   /* cool light gray section bg */
  --dark:      #0f1d35;
  --text:      #2d3748;
  --muted:     #64748b;
  --white:     #ffffff;
  --radius:    10px;
  --shadow:    0 2px 14px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; color: var(--white); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--navy); margin-bottom: 12px; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }

/* ── Header ── */
header {
  background: var(--header-bg);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-img {
  height: 26px;
  width: auto;
  display: block;
}

nav { display: flex; align-items: center; gap: 28px; }
nav a { color: rgba(255,255,255,0.82); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; line-height: 1; }
nav a:hover { color: var(--white); text-decoration: none; }

/* ── Hero ── */
.hero {
  background:
    linear-gradient(rgba(10, 18, 40, 0.72), rgba(10, 18, 40, 0.72)),
    url('hero.png') center center / cover no-repeat;
  padding: 96px 0 80px;
  text-align: center;
}

.hero p.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 20px auto 36px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); text-decoration: none; }
.btn-large { padding: 16px 40px; font-size: 1.1rem; }

/* ── Sections ── */
.section-light { background: var(--cream); padding: 72px 0; }
.section-mid   { background: var(--mid);   padding: 72px 0; }
.section-dark  { background: var(--navy);  padding: 72px 0; }
.section-dark h2 { color: var(--white); }

.section-sub {
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 640px;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ── Who We Serve ── */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.serve-card {
  background: var(--white);
  border: 1px solid rgba(26,37,64,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  overflow: hidden; /* clip image corners cleanly */
}

.serve-icon { font-size: 2rem; margin-bottom: 12px; }
.serve-image {
  display: block;
  width: calc(100% + 48px);
  height: 180px;
  object-fit: cover;
  margin: -28px -24px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.serve-card h3 { color: var(--navy); margin-bottom: 10px; }
.serve-card p  { color: var(--text); font-size: 0.9rem; line-height: 1.65; margin-bottom: 14px; }
.serve-card ul { padding-left: 18px; }
.serve-card li { color: var(--muted); font-size: 0.87rem; margin-bottom: 5px; }

/* ── How It Works ── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 40px 0 32px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-num {
  width: 40px; height: 40px;
  background: var(--gold);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

/* New illustrated step icons */
.step-icon {
  display: block;
  width: 170px;
  height: 170px;
  max-width: 100%;
  margin: 0 auto 12px;
  object-fit: contain;
}

.step p { font-size: 0.9rem; color: var(--muted); }

.step-arrow {
  font-size: 1.6rem;
  color: var(--gold);
  padding-top: 28px;
  flex-shrink: 0;
}

.timeline-note {
  background: #fff8e6;
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}

/* ── Pricing Grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0 24px;
}

.pricing-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}

.pricing-icon { font-size: 2rem; margin-bottom: 12px; }
.pricing-card h3 { color: var(--white); }
.pricing-rate { font-size: 1.25rem; font-weight: 700; color: var(--white); margin: 8px 0; }
.pricing-card p:last-child { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.pricing-note { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ── View toggle ── */
.view-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
}

.toggle-btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.toggle-btn.active {
  background: var(--gold);
  color: var(--white);
}

.toggle-btn + .toggle-btn {
  border-left: 1px solid rgba(26, 54, 93, 0.18);
}
.toggle-btn:not(.active):hover {
  background: #f5edda;
}

/* ── Side-by-side quote columns ── */
.quote-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.quote-col > .section-sub,
.quote-col > div > .section-sub {
  margin-bottom: 20px;
  min-height: 48px;
}

/* ── Estimator ── */
.results-placeholder {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 32px 16px;
  text-align: center;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  line-height: 1.7;
}
.results-placeholder .ph-desktop { display: inline; }
.results-placeholder .ph-mobile  { display: none; }
@media (max-width: 768px) {
  .results-placeholder .ph-desktop { display: none; }
  .results-placeholder .ph-mobile  { display: inline; }
}

.btn-secondary {
  display: inline-block;
  margin-top: 20px;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); text-decoration: none; }

.calc-panel, .results-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.results-panel { border: 2px solid var(--gold); display: block !important; }

.form-full-panel {
  padding: 40px;
}

/* ── Two-panel form layout ── */
.form-two-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.form-panel-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(201,168,76,0.35);
}

.form-panel-delivery {
  border-left: 1px solid rgba(201,168,76,0.25);
  padding-left: 48px;
}

/* On desktop, the right (delivery) panel sticks while the longer left panel
   scrolls — keeps consignee info visible no matter how many packages are added. */
@media (min-width: 769px) {
  .form-two-panel { align-items: start; }
  .form-panel-delivery {
    position: sticky;
    top: 88px;             /* clears the sticky header */
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}

.form-agreements {
  border-top: 1px solid #e5e7eb;
  padding-top: 28px;
}

.field-group { margin-bottom: 18px; }
.field-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field-group .hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }

.field-group input[type="text"],
.field-group input[type="number"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group input[type="password"],
.field-group input[type="url"],
.field-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color 0.2s;
}
.field-group input:focus, .field-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.field-group input[readonly], .field-group textarea[readonly] {
  background: #ece8e0;
  color: var(--muted);
  cursor: not-allowed;
}
.field-group input[readonly]:focus, .field-group textarea[readonly]:focus {
  border-color: #d1d5db;
  background: #ece8e0;
}

.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
}

.pkg-row {
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--cream);
}
.pkg-row h4 { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.pkg-dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pkg-dims label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.pkg-dims input { padding: 8px 10px; font-size: 0.88rem; }
.pkg-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pkg-extras label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.pkg-extras input { padding: 8px 10px; font-size: 0.88rem; }
.pkg-extras .field-group { margin-bottom: 0; }
.pkg-dims .field-group { margin-bottom: 0; }

/* Photos area inside each package box */
.pkg-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.pkg-photos label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.pkg-photos .field-group { margin-bottom: 0; }
.pkg-photos .dropzone { min-height: 80px; padding: 12px 10px; }
.pkg-photos .dropzone-icon { font-size: 1.3rem; }
.pkg-photos .dropzone-text { font-size: 0.74rem; line-height: 1.35; }
.pkg-photos .thumbnail-grid {
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 4px;
}
.pkg-photos .hint { display: block; margin-top: 2px; font-size: 0.72rem; }

/* Per-package photo blocks in the side sheet detail */
.pkg-photos-block { margin-bottom: 18px; }
.pkg-photos-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0;
  padding: 4px 10px;
  background: #eef5fb;
  border-radius: 4px;
  display: inline-block;
}

.zip-zone {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}

/* ── Results ── */
.result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0ede8;
  font-size: 0.95rem;
}
.result-row.subtotal {
  font-weight: 700;
  border-top: 2px solid var(--navy);
  border-bottom: none;
  margin-top: 4px;
  padding-top: 14px;
  color: var(--navy);
}
.result-row.duty { color: var(--muted); font-size: 0.88rem; }
.result-row.total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  border-top: 2px solid var(--gold);
  border-bottom: none;
  margin-top: 6px;
  padding-top: 14px;
}

.disclaimer {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted);
  background: #fafaf8;
  padding: 12px;
  border-radius: 6px;
}

.assembly-note {
  margin-top: 12px;
  font-size: 0.85rem;
  background: #fff8e6;
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
}

/* ── Quote Form ── */
.form-row { margin-bottom: 0; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-form .field-group { margin-bottom: 20px; }
.quote-form textarea { resize: vertical; }

.form-section-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 16px;
  margin-top: 8px;
}

.field-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--cream);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.field-group select:focus {
  outline: none;
  border-color: var(--gold);
  background-color: var(--white);
}

.agreement-box {
  background: #fff8e6;
  border: 1px solid #e8c97a;
  border-radius: 8px;
  padding: 14px 16px;
}

.agreement-box label {
  font-size: 0.88rem !important;
  line-height: 1.6;
  color: var(--text) !important;
  align-items: flex-start !important;
}

.agreement-box input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.agreement-box a { color: var(--navy); font-weight: 700; }

.form-success {
  max-width: 560px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 20px 24px;
  color: #166534;
  font-weight: 500;
  margin-top: 24px;
}

/* ── Awaiting Shipment list ── */
.shipment-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid #e5e0d8;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.shipment-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.shipment-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cust-cancel-btn {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #fca5a5;
  background: #fff5f5;
  color: #b91c1c;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.cust-cancel-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
}
.cust-cancel-btn--detail {
  font-size: 0.78rem;
  padding: 5px 14px;
}
.shipment-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.shipment-title { font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.shipment-summary   { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.shipment-consignee { font-size: 0.82rem; color: #475569; margin-top: 3px; }

/* Customer shipment filter bar */
.cust-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.cust-filter-btn {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.cust-filter-btn:hover { border-color: var(--header-bg); color: var(--header-bg); }
.cust-filter-btn.active { background: var(--header-bg); border-color: var(--header-bg); color: #fff; font-weight: 600; }

.shipment-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: start;
}
/* In the admin card right column, badges must stay right-aligned with the
   tracking/total rows below — override align-self: start */
.admin-card-right .shipment-status { align-self: flex-end; }
.shipment-status.pending    { background: #fff4d6; color: #8a6300; }  /* Pending Review */
.shipment-status.awaiting   { background: #ffedd5; color: #9a3412; }  /* Awaiting Packages */
.shipment-status.received   { background: #e0f2fe; color: #075985; }  /* Packages Received */
.shipment-status.shipped    { background: #dbeafe; color: #1e40af; }  /* Shipped to USA */
.shipment-status.atberkeley { background: #ede9fe; color: #5b21b6; }  /* At Berkeley Warehouse */
.shipment-status.intransit  { background: #d1fae5; color: #065f46; }  /* Out for Delivery */
.shipment-status.delivered  { background: #c8efd1; color: #0e4a1a; }  /* Delivered */
.shipment-status.cancelled  { background: #f7d6d6; color: #802020; }  /* Cancelled */

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  border: 1px solid #e5e0d8;
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-table th, .detail-table td {
  padding: 10px 16px;
  font-size: 0.92rem;
  text-align: left;
  border-top: 1px solid #e5e0d8;
}
.detail-table tr:first-child th, .detail-table tr:first-child td { border-top: none; }
.detail-table th {
  font-weight: 600;
  color: var(--muted);
  width: 38%;
  background: #f8f5f0;
}
.detail-table td { color: var(--text); }
.detail-table tr.detail-total th,
.detail-table tr.detail-total td {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}
.detail-table tr.detail-total th { color: var(--gold); }

/* ── Side-sheet card-style fields ── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detail-cell {
  background: #f8f5f0;
  border: 1px solid #e5e0d8;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.detail-cell.full { grid-column: 1 / -1; }
.detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-value {
  font-size: 0.93rem;
  color: var(--navy);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

/* ── Side-sheet cost totals list ── */
.cost-list {
  border: 1px solid #e5e0d8;
  border-radius: 8px;
  overflow: hidden;
}
.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.92rem;
  color: var(--text);
  border-top: 1px solid #e5e0d8;
  gap: 12px;
}
.cost-row:first-child { border-top: none; }
.cost-row > span:first-child { color: var(--muted); font-weight: 500; }
.cost-row > span:last-child { color: var(--navy); font-weight: 600; text-align: right; }
.cost-row.subtotal {
  background: #f8f5f0;
  font-weight: 700;
}
.cost-row.subtotal > span:first-child,
.cost-row.subtotal > span:last-child { color: var(--navy); font-weight: 700; }
.cost-row.total {
  background: var(--navy);
  padding: 14px 16px;
}
.cost-row.total > span:first-child {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.cost-row.total > span:last-child {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

/* ── Editable cost rows (admin detail panel) ── */
.cost-row.editable { background: #fbfaf7; }
.cost-row .cost-input {
  width: 158px;
  margin-top: 0;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cost-row > span:last-child .cost-input { display: inline-block; }
.cost-manual {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 20px;
  background: #fdf4e3;
  border: 1px solid #e8d9b0;
  color: #7a5a12;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}
.terms-lang-notice {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 3px solid #cbd5e1;
  background: #f6f7f9;
  color: #4a5568;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── Invoice note presets ── */
.note-presets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 10px;
  padding: 12px 14px;
  border: 1px solid #e5e0d8;
  border-radius: 8px;
  background: #faf9f7;
}
.note-preset {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  font-weight: 400;          /* modal labels are bold; these are body text */
  text-transform: none;
  letter-spacing: normal;
}
.note-preset span { font-weight: 400; }
.note-preset input {
  margin: 3px 0 0;
  flex-shrink: 0;
  cursor: pointer;
}
.note-preset:hover span { color: var(--navy); }

/* ── Admin display-units switch (view only) ── */
.unit-switch .unit-opt {
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  padding-left: 9px;
  padding-right: 9px;
  white-space: nowrap;
}

/* ── Admin Settings panel: Display section ── */
.settings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: 4px 0 22px;
}
.settings-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* The switches were built for the dark header; recolour them for the
   white modal background. */
.settings-toggle .lang-switch {
  background: #eef1f5;
  border-color: #d8dde4;
}
.settings-toggle .lang-opt { color: #5b6472; }
.settings-toggle .lang-opt:hover { background: rgba(0, 0, 0, 0.06); color: var(--navy); }
.settings-toggle .lang-opt.active,
.settings-toggle .lang-opt.active:hover {
  background: var(--navy);
  color: var(--white);
}

@media (max-width: 520px) {
  .settings-row { gap: 14px 18px; }
}

/* ── Next-vanning banner (customer portal + admin) ── */
.vanning-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0 auto 24px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 0.95rem;
  line-height: 1.5;
}
.vanning-banner.empty { display: none; }
.vanning-banner.estimated { background: #fdf4e3; border-color: #e8d9b0; color: #6b4f10; }
.vanning-banner.confirmed { background: #eaf3ed; border-color: #bcd9c6; color: #235437; }
.vanning-banner-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vanning-banner-badge {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.07);
}
.vanning-banner-date { font-weight: 700; }
.vanning-banner-note { opacity: 0.8; }
.vanning-banner-window {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-left: auto;
}
.vanning-banner-window-label { opacity: 0.85; }
.vanning-banner-window strong { font-size: 1.02rem; }
@media (max-width: 700px) {
  .vanning-banner { flex-direction: column; align-items: flex-start; }
  .vanning-banner-window { margin-left: 0; }
}
/* admin sits edge-to-edge under the header */
body.admin-page .vanning-banner { margin: 16px 24px 0; }

.window-preview {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.82rem;
  line-height: 1.5;
  background: #f0eee9;
  color: var(--muted);
  border: 1px solid #e2dfd8;
}
.window-preview.estimated { background: #fdf4e3; border-color: #e8d9b0; color: #7a5a12; }
.window-preview.confirmed { background: #eaf3ed; border-color: #bcd9c6; color: #2f6a43; }
.window-preview.warn      { background: #fbecea; border-color: #f0c6c0; color: #a33124; }

.cost-derived {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 20px;
  background: #eef3f8;
  border: 1px solid #cfdcea;
  color: #2b5171;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
}
.cost-edit-hint {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 600px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-cell.full { grid-column: 1; }
}

/* Highlight box for the optional insurance checkbox in the formal quote form */
.insurance-option {
  background: #fff8e6;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.insurance-option label { align-items: flex-start; }
.insurance-option label > span { font-size: 0.88rem; line-height: 1.5; }

/* Dropzone photo upload */
.dropzone {
  position: relative;
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  padding: 24px 16px;
  background: var(--cream);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 110px;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--gold);
  background: #eef5fb;
}
.dropzone .file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;          /* ensure the input is always above thumbnails/labels for taps */
  font-size: 0;        /* prevent iOS Safari from auto-zooming when focusing the input */
  /* Some mobile browsers need a min size to recognize the input as tappable */
  min-width: 100%;
  min-height: 100%;
}
.dropzone-label {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.dropzone-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.dropzone-text {
  font-size: 0.86rem;
}
.dropzone.has-files {
  padding: 12px;
  text-align: left;
}
.dropzone.has-files .dropzone-label {
  flex-direction: row;
  gap: 8px;
  padding: 8px 4px 12px;
  font-size: 0.8rem;
}
.dropzone.has-files .dropzone-icon { font-size: 1rem; }

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 6px;
  pointer-events: none;
}
.thumbnail-grid:empty { display: none; }
.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e0d8;
  background: var(--white);
  pointer-events: auto;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.thumb-remove:hover { background: rgba(0,0,0,0.85); }

/* Photo grid in the side sheet detail */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.photo-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #e5e0d8;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.photo-grid a:hover img { transform: scale(1.05); }

/* Two-column layout for item / packed photos in the side sheet (stays 2-col on mobile too) */
.photos-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.photos-col-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 8px;
}
.photos-section .photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}

/* ── Shipment detail side drawer (slides in from the right) ── */
.shipment-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 18, 40, 0);
  visibility: hidden;
  transition: background 0.25s ease, visibility 0s linear 0.25s;
}
.shipment-overlay.open {
  visibility: visible;
  background: rgba(10, 18, 40, 0.45);
  transition: background 0.25s ease, visibility 0s linear 0s;
}
.shipment-modal {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 560px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.shipment-overlay.open .shipment-modal {
  transform: translateX(0);
}
.shipment-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--white);
  color: var(--navy);
  border-bottom: 1px solid #e5e0d8;
}
body.admin-page .shipment-modal-header {
  background: #1e2433;
  border-bottom: 2px solid #f59e0b;
}
body.admin-page .shipment-modal-title-group h3 {
  color: var(--white);
}
body.admin-page .shipment-modal-close {
  color: rgba(255,255,255,0.7);
}
body.admin-page .shipment-modal-close:hover {
  color: var(--white);
}
body.admin-page .copy-id-btn {
  color: rgba(255,255,255,0.6);
}
body.admin-page .copy-id-btn:hover {
  color: var(--white);
}

.shipment-modal-title-group {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.copy-id-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.copy-id-btn:hover { color: var(--gold); background: #f0ede8; }
.copy-id-btn.copied { color: #16a34a; }
.shipment-modal-title-group h3 {
  margin: 0;
  min-width: 0;
  flex: 1;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shipment-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.shipment-modal-close:hover {
  background: #f0ede8;
  color: var(--navy);
}
.shipment-modal-body {
  padding: 28px 32px;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .shipment-modal { max-width: 100%; }
  .shipment-modal-body { padding: 20px; }
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.contact-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.contact-card h3 { color: var(--white); margin-bottom: 16px; }
.contact-card p  { color: rgba(255,255,255,0.85); margin-bottom: 10px; font-size: 0.95rem; }
.contact-card a  { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); }
.contact-card a:hover { text-decoration-color: var(--white); }
.contact-card ul { padding-left: 18px; }
.contact-card li { color: rgba(255,255,255,0.78); margin-bottom: 8px; font-size: 0.9rem; }
.contact-card strong { color: var(--white); }

/* ── Liability section ── */
.liability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 40px 0 32px;
}

.liability-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.liability-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1rem; }
.liability-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

.liability-banner {
  background: #fff8e6;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}

.liability-banner-icon { font-size: 2rem; flex-shrink: 0; }
.liability-banner h3   { color: var(--navy); margin-bottom: 6px; }
.liability-banner p    { font-size: 0.9rem; color: var(--text); line-height: 1.65; }
.liability-banner a    { color: var(--navy); font-weight: 700; }

/* ── T&C page ── */
.terms-page { max-width: 820px; padding: 56px 24px; }

.terms-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.terms-effective {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.terms-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 8px;
}

.terms-divider {
  border: none;
  border-top: 2px solid #e5e0d8;
  margin: 32px 0;
}

.terms-section {
  margin-bottom: 40px;
}

.terms-section h2 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e0d8;
}

.terms-section p  { font-size: 0.95rem; line-height: 1.75; color: var(--text); margin-bottom: 12px; }
.terms-section ul,
.terms-section ol { padding-left: 20px; margin-bottom: 12px; }
.terms-section li { font-size: 0.95rem; line-height: 1.75; color: var(--text); margin-bottom: 6px; }
.terms-section a  { color: var(--gold); }

.terms-back { margin-top: 48px; }

/* ── Nav login button ── */
.nav-login-btn {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 7px 18px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background 0.2s;
}
.nav-login-btn:hover { background: var(--gold-lt) !important; text-decoration: none !important; }

/* Language switch (JA / EN segmented control) */
.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.lang-opt {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-width: 32px;
}
.lang-opt:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.lang-opt.active {
  background: var(--white);
  color: var(--navy);
}
.lang-opt.active:hover { background: var(--white); }

/* Profile icon button in the header */
.profile-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.profile-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Profile modal (centered) */
.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 18, 40, 0);
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: background 0.25s ease, visibility 0s linear 0.25s;
}
.profile-overlay.open {
  visibility: visible;
  background: rgba(10, 18, 40, 0.45);
  transition: background 0.25s ease, visibility 0s linear 0s;
}
.profile-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}
.profile-overlay.open .profile-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--white);
  color: var(--navy);
  border-bottom: 1px solid #e5e0d8;
}
.profile-modal-header h3 {
  margin: 0;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-form {
  padding: 24px;
  overflow-y: auto;
}
.profile-msg {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  margin: 8px 0 16px;
}
.profile-msg.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #86efac;
}
.profile-msg.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.profile-actions .btn-secondary,
.profile-actions .btn-primary {
  margin-top: 0;
  padding: 10px 22px;
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  .profile-overlay { padding: 16px; }
  .profile-modal {
    max-width: 100%;
    max-height: calc(100vh - 32px);
    border-radius: 10px;
  }
  .profile-modal-header { padding: 14px 18px; }
  .profile-modal-header h3 { font-size: 0.82rem; }
  .profile-form {
    padding: 16px 18px 18px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .profile-form .field-group { margin-bottom: 12px; }
  .profile-form .field-group label { font-size: 0.82rem; margin-bottom: 4px; }
  .profile-form .field-group input,
  .profile-form .field-group textarea { padding: 9px 12px; font-size: 16px; }
  .profile-form .field-group .hint { font-size: 0.74rem; margin-top: 4px; display: block; }
  .profile-actions { margin-top: 8px; gap: 8px; }
  .profile-actions .btn-secondary,
  .profile-actions .btn-primary {
    padding: 9px 18px;
    font-size: 0.9rem;
  }
}

/* ── User bar (quote page header) ── */
.user-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-greeting { display: none; }

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-logout:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ── Auth page ── */
body.auth-page { background: var(--cream); }

.auth-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 520px;
  padding: 40px;
}

.auth-tabs {
  display: flex;
  border: 2px solid var(--gold);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 11px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s;
}
.auth-tab.active { background: var(--gold); color: var(--white); }
.auth-tab:not(.active):hover { background: #f5edda; }

.auth-title { color: var(--navy); font-size: 1.4rem; margin-bottom: 6px; }
.auth-sub   { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

.auth-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.auth-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-top: 12px;
}

/* Account awaiting approval — informational, neither an error nor a success */
.auth-notice {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #854d0e;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

.auth-review-note {
  background: #f7f4ec;
  border-left: 3px solid var(--gold, #c8a45c);
  color: var(--muted);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.btn-full { width: 100%; text-align: center; margin-top: 6px; }

.auth-reset {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}
.auth-reset a { color: var(--navy); }

.auth-terms-note {
  text-align: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.auth-terms-note a { color: var(--navy); }

/* ── Admin: customer accounts / approval panel ── */
.users-badge {
  display: inline-block;
  min-width: 18px;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 9px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.users-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 14px;
}
.users-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
}
.users-empty {
  padding: 26px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.user-card {
  border: 1px solid #e4e7ec;
  border-left: 3px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
  overflow: hidden;
}
.user-card.user-pending  { border-left-color: #f59e0b; background: #fffdf7; }
.user-card.user-approved { border-left-color: #16a34a; }
.user-card.user-rejected { border-left-color: #dc2626; opacity: 0.75; }
.user-card.expanded { box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08); }

/* Collapsed by default — the head is the whole clickable summary row. */
.user-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  user-select: none;
}
.user-card-head:hover  { background: rgba(10, 84, 145, 0.04); }
.user-card-head:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.user-chevron {
  flex-shrink: 0;
  color: #97a2b0;
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.user-card.expanded .user-chevron { transform: rotate(180deg); }

.user-head-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
  flex: 1;
}
.user-head-sub {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Body opens with a height transition; 0fr/1fr keeps it content-sized. */
.user-card-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease, opacity 0.18s ease;
  opacity: 0;
}
.user-card.expanded .user-card-body {
  grid-template-rows: 1fr;
  opacity: 1;
}
.user-card-body-inner {
  overflow: hidden;
  padding: 0 14px;
}
.user-card.expanded .user-card-body-inner {
  padding-bottom: 14px;
  border-top: 1px solid #edf0f4;
  padding-top: 12px;
}
.user-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.user-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.user-status-pending  { background: #fef3c7; color: #92400e; }
.user-status-approved { background: #dcfce7; color: #166534; }
.user-status-rejected { background: #fee2e2; color: #991b1b; }
.user-actions { display: flex; gap: 6px; flex-shrink: 0; cursor: default; }

.user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  font-size: 0.85rem;
  color: #1e2433;
}
.user-grid .full { grid-column: 1 / -1; }
.user-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 1px;
}
.user-grid a { color: var(--gold); word-break: break-all; }
.user-meta {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
}
.user-meta span { text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 620px) {
  .user-grid { grid-template-columns: 1fr; }
  .user-card-head { flex-wrap: wrap; }
  .user-head-main { flex-basis: 100%; order: 2; }
  .user-actions { order: 3; margin-left: auto; }
}

/* ── Footer ── */
footer {
  background: var(--header-bg);
  padding: 28px 0;
  text-align: center;
}
footer p { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
footer a { color: rgba(255,255,255,0.55); }

body.admin-page footer {
  background: #1e2433;
  border-top: 2px solid #f59e0b;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Hide the in-page anchor links on mobile, but keep lang-switch + Log In button */
  nav a[href^="#"] { display: none; }
  nav { gap: 10px; }

  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; padding: 0; }

  .quote-columns { grid-template-columns: 1fr; }
  .view-toggle { width: 100%; }
  .toggle-btn { flex: 1; padding: 12px 12px; font-size: 0.85rem; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .form-two-panel { grid-template-columns: 1fr; gap: 24px; }
  .form-full-panel { padding: 20px; }
  .form-panel-delivery { border-left: none; padding-left: 0; border-top: 1px solid rgba(201,168,76,0.25); padding-top: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .pkg-dims { grid-template-columns: repeat(2, 1fr); }

  /* Prevent iOS Safari from auto-zooming when focusing form fields */
  .field-group input,
  .field-group textarea,
  .field-group select { font-size: 16px !important; }

  /* Compact, no-wrap header on mobile */
  .header-inner { gap: 8px; }
  .logo-img { height: 22px; }
  .user-bar { gap: 8px; flex-wrap: nowrap; }
  .lang-switch { padding: 1px; }
  .lang-opt { padding: 3px 9px; font-size: 0.72rem; min-width: 28px; }
  .profile-btn { width: 32px; height: 32px; }
  .profile-btn svg { width: 18px; height: 18px; }
  .btn-logout {
    padding: 5px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Login / register page — keep tabs on one line and tighten spacing */
  .auth-wrap { padding: 24px 16px; }
  .auth-card { padding: 22px; }
  .auth-tab { padding: 10px 6px; font-size: 0.82rem; white-space: nowrap; }
  .auth-title { font-size: 1.2rem; }
  .auth-sub { font-size: 0.88rem; margin-bottom: 18px; }
  .auth-card .field-group { margin-bottom: 12px; }
  .auth-card .field-group label { font-size: 0.82rem; margin-bottom: 4px; }
  .auth-card .field-group input,
  .auth-card .field-group textarea { padding: 10px 12px; font-size: 16px; }
  .auth-card .btn-primary { font-size: 0.95rem; padding: 11px 16px; }
}

/* ══════════════════════════════════════════
   Admin Dashboard
   ══════════════════════════════════════════ */

/* Admin header accent */
/* Admin header — dark charcoal, distinct from the customer blue header */
body.admin-page header {
  background: #1e2433;
  border-bottom: 2px solid #f59e0b;
}
body.admin-page header .logo-img { filter: brightness(1.1); }

.admin-header-badge {
  display: inline-block;
  background: #f59e0b;
  border: 1px solid #d97706;
  color: #1e2433;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}

/* Status filter tabs */
.admin-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px 0;
  max-width: 1100px;
  margin: 0 auto;
}

/* All button standalone group */
.filter-group-all { display: flex; align-items: flex-end; }

/* Japan / US groups */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 2px;
}
.filter-group-btns {
  display: flex;
}
.filter-group-btns .admin-filter-btn:first-child { border-radius: 6px 0 0 6px; }
.filter-group-btns .admin-filter-btn:last-child  { border-radius: 0 6px 6px 0; border-right: 1px solid #d1d5db; }

/* Team section headers in the shipment list */
.team-section { margin-bottom: 32px; }
.team-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 10px;
  border-bottom: 2px solid var(--mid);
  margin-bottom: 12px;
}
.team-section-flag { font-size: 1.2rem; line-height: 1; }
.team-section-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.team-section-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.admin-filter-btn {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #d1d5db;
  border-right: none;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
/* "All" standalone button gets full radius */
.filter-group-all .admin-filter-btn { border-radius: 6px; border-right: 1px solid #d1d5db; }
.admin-filter-btn.active      { background: var(--navy); color: var(--white); border-color: var(--navy); }
.admin-filter-btn:not(.active):hover { background: var(--mid); color: var(--navy); }
.filter-count {
  display: inline-block;
  background: rgba(0,0,0,0.12);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 4px;
  min-width: 18px;
  text-align: center;
  line-height: 1.6;
}
.admin-filter-btn.active .filter-count {
  background: rgba(255,255,255,0.22);
}

/* Admin shipment list wrapper */
.admin-list-wrap {
  max-width: 1100px;
  margin: 20px auto 40px;
  padding: 0 24px;
}

/* Admin shipment card — extends .shipment-card with extra column */
.admin-shipment-card {
  display: grid;
  grid-template-columns: 28px 1fr 1fr auto;
  gap: 8px 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid #e5e0d8;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.card-checkbox-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
}
.card-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--navy);
  flex-shrink: 0;
}
.admin-shipment-card.card-selected {
  border-color: var(--navy);
  background: #f0f4fa;
}

/* ── Bulk action bar ── */
.bulk-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e2433;
  color: var(--white);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  z-index: 500;
  flex-wrap: wrap;
  max-width: 700px;
  width: calc(100% - 48px);
  border: 1.5px solid #f59e0b;
}
.bulk-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}
.bulk-select-all input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
  cursor: pointer;
}
.bulk-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}
.bulk-bar-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.bulk-bar .btn-admin-save {
  background: #f59e0b;
  color: #1e2433;
  border-color: #f59e0b;
  font-weight: 700;
  white-space: nowrap;
}
.bulk-bar .btn-admin-save:hover { background: #d97706; border-color: #d97706; }
.bulk-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.bulk-cancel-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.bulk-bar select {
  flex: 1;
  min-width: 160px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.82rem;
}
.admin-shipment-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.admin-card-left  { min-width: 0; }
.admin-card-mid   { min-width: 0; }
.admin-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.admin-card-id    { font-size: 0.78rem; font-weight: 700; color: var(--navy); font-family: monospace; letter-spacing: 0.03em; }
.admin-card-company { font-size: 0.95rem; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-card-email   { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-card-commodity { font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-card-meta    { font-size: 0.78rem; color: var(--muted); }
.admin-card-notes   { font-size: 0.76rem; color: #6b7280; font-style: italic; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.admin-card-total   { font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.admin-card-tracking { font-size: 0.72rem; color: var(--muted); font-family: monospace; letter-spacing: 0.03em; text-align: right; line-height: 1.3; }
.admin-card-carrier  { font-family: sans-serif; font-weight: 600; color: #475569; letter-spacing: 0; }

/* Editable fields in detail panel */
.detail-input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 0.875rem;
  color: var(--dark);
  background: #fafafa;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
  margin-top: 2px;
}
.detail-input:focus {
  outline: none;
  border-color: var(--header-bg);
  background: #fff;
}
.detail-textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
}
select.detail-input {
  cursor: pointer;
  appearance: auto;
}
.detail-save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* Tracking box in detail panel header */
.detail-tracking-box {
  background: #f0fdf4;
  border: 1.5px solid #6ee7b7;
  border-radius: 7px;
  padding: 5px 10px;
  max-width: 260px;
}
.detail-tracking-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.detail-tracking-carrier {
  font-size: 0.78rem;
  font-weight: 700;
  color: #065f46;
}
.detail-tracking-sep {
  font-size: 0.75rem;
  color: #6ee7b7;
}
.detail-tracking-num {
  font-family: monospace;
  font-size: 0.8rem;
  color: #065f46;
  letter-spacing: 0.04em;
}
.detail-tracking-cancel {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0 0 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.detail-tracking-cancel:hover { color: #ef4444; }

/* Admin action panel inside side-sheet (above the scrollable body) */
.admin-action-panel {
  background: var(--cream);
  border-bottom: 1px solid #e5e0d8;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-action-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 52px;
  flex-shrink: 0;
}
.admin-action-panel select {
  padding: 7px 30px 7px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.admin-action-panel select:focus { outline: none; border-color: var(--gold); }
.admin-action-panel textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--white);
  resize: vertical;
  min-height: 56px;
  transition: border-color 0.2s;
}
.admin-action-panel textarea:focus { outline: none; border-color: var(--gold); }

.admin-action-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid #e5e0d8;
}
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-admin-save    { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-admin-save:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn-admin-ghost   { background: var(--white); color: var(--navy); border-color: #d1d5db; }
.btn-admin-ghost:hover { background: var(--mid); border-color: var(--navy); }
.btn-admin-invoice { background: #f0fdf4; color: #166534; border-color: #86efac; }
.btn-admin-invoice:hover { background: #dcfce7; }
.btn-admin-payment { background: #eff6ff; color: #1e40af; border-color: #93c5fd; }
.btn-admin-payment:hover { background: #dbeafe; }
.btn-admin-created { background: #d1fae5; color: #065f46; border-color: #6ee7b7; font-weight: 700; }
.btn-admin-created:hover { background: #a7f3d0; }

/* Payment link box in detail panel */
.payment-link-box {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
}
.payment-link-box-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.payment-link-box-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.payment-link-url {
  flex: 1;
  font-size: 0.82rem;
  color: #1e3a8a;
  word-break: break-all;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  padding: 5px 8px;
}
.payment-link-copy-btn {
  flex-shrink: 0;
  background: #1e40af;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.payment-link-copy-btn:hover { background: #1d4ed8; }

/* Invoice modal — payment link checkbox option */
.inv-payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 14px 0 0;
  cursor: pointer;
}
.inv-payment-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1e40af;
  cursor: pointer;
}
.inv-payment-check-label {
  font-size: 0.88rem;
  color: #1e40af;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.admin-save-msg {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: none;
}
.admin-save-msg.ok  { background: #d1fae5; color: #065f46; display: inline-block; }
.admin-save-msg.err { background: #fee2e2; color: #991b1b; display: inline-block; }
.admin-save-msg.warn{ background: #fef3c7; color: #92400e; display: inline-block; }

/* Payment link display inside detail */
.payment-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #1e40af;
  margin-top: 8px;
  word-break: break-all;
}
.payment-link-chip a { color: #1e40af; font-weight: 600; }

/* ── Invoice Modal ── */
.invoice-modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  flex: 1;
}
.invoice-from-to {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.invoice-party-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.invoice-party-fields { display: flex; flex-direction: column; gap: 6px; }
.invoice-party-fields input,
.invoice-party-fields textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color 0.2s;
  resize: none;
}
.invoice-party-fields input:focus,
.invoice-party-fields textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }

.invoice-meta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.invoice-meta-row .field-group { flex: 1; min-width: 160px; margin-bottom: 0; }

.line-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.line-items-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 8px;
  border-bottom: 2px solid var(--gold);
}
.line-items-table th:last-child,
.line-items-table td:last-child { text-align: right; }
.line-items-table th:nth-last-child(2) { width: 42px; text-align: center; }

.line-items-table td {
  padding: 6px 4px;
  border-bottom: 1px solid #f0ede8;
  vertical-align: middle;
}
.line-items-table input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--dark);
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
}
.line-items-table input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.line-items-table input[type="number"] { text-align: right; }
.line-item-remove {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
  display: block;
  margin: 0 auto;
}
.line-item-remove:hover { background: #fee2e2; }
.invoice-total-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 12px 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  border-top: 2px solid var(--navy);
  margin-bottom: 20px;
}
.add-line-btn {
  background: transparent;
  border: 1px dashed #d1d5db;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color 0.15s, color 0.15s;
}
.add-line-btn:hover { border-color: var(--gold); color: var(--gold); }

.invoice-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #e5e0d8;
}

@media (max-width: 768px) {
  .admin-shipment-card { grid-template-columns: 28px 1fr; }
  .admin-card-right { flex-direction: row; align-items: center; justify-content: space-between; }
  .admin-filter-btn { padding: 7px 12px; font-size: 0.78rem; }
  .invoice-from-to { grid-template-columns: 1fr; }
  .admin-action-btns { gap: 6px; }
  .btn-admin { font-size: 0.8rem; padding: 7px 12px; }
  .invoice-modal-body { padding: 18px 20px; }
}

/* ── Customer invoice download box ── */
.customer-invoice-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f0f7ff;
  border: 1.5px solid #0078C8;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.customer-invoice-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0a4a7a;
}
.customer-invoice-info svg { flex-shrink: 0; color: #0078C8; }
.customer-invoice-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0a4a7a;
}
.customer-invoice-meta {
  font-size: 0.8rem;
  color: #4a7aa0;
  margin-top: 2px;
}
.customer-invoice-disclaimer {
  font-size: 0.72rem;
  color: #8a9ab0;
  font-style: italic;
  margin-top: 5px;
  line-height: 1.4;
}
.customer-invoice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0078C8;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.customer-invoice-btn:hover { background: #005fa3; }

/* ── Awaiting Packages — Japan warehouse address box ── */
.awaiting-address-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff8ed;
  border: 1.5px solid #f4a318;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.awaiting-address-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #7c4a00;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.awaiting-address-label svg { flex-shrink: 0; }
.awaiting-address-text {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #3d2000;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.awaiting-address-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.awaiting-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7c4a00;
  background: #fde9b8;
  border: 1px solid #f4a318;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.awaiting-copy-btn:hover { background: #fcd98a; }
.awaiting-copy-btn.copied { color: #1a6e3a; background: #d1fae5; border-color: #6ee7b7; }
