/* =====================================================================================
   Marine Cargo: portal alignment layer (loaded last, after marine-v8.css).
   Fixes found in a screen-by-screen review of both portals: tables whose codes, dates and
   amounts broke over two or three lines, stacked row actions, ragged KPI rows, uneven filter
   bars, an overlapping bill line, misaligned sign-in panels. Plus the shipment record dialog.
   Pure CSS; the design files stay as imported. marine-portal.js tags table cells (.mc-nw, .mc-act).
   ===================================================================================== */

/* ---------- full-screen application shell: edge to edge, no outer margin or card frame ---------- */
@media (min-width: 861px) {
  html, body { background: var(--shell); }
  .app, .stf { max-width: none; width: 100%; margin: 0; border-radius: 0; box-shadow: none; min-height: 100vh; }
  .side { border-radius: 0; border-right: 1px solid var(--line); }
  .rp { border-radius: 0; border-left: 1px solid var(--line); }
  .rp:before { left: 0; border-radius: 0; }
  .sts { border-right: 1px solid var(--line); }
  /* content column: header on top, footer at the bottom even on a short screen */
  .main, .stm { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }
  .main > section, .stm > #stMain { flex: none; }
  .main, .stm { padding-top: 0; padding-bottom: 0; }
  .pl th, .pl td { padding-left: 8px; padding-right: 8px; }
}

/* ---------- header (customer: new; staff: the design's bar, made sticky) ---------- */
.mc-hdr, .stt {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; margin: 0 -26px 18px; padding: 10px 26px;
  background: color-mix(in srgb, var(--mint) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 861px) and (max-width: 1599px) { .mc-hdr { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; } }
.mc-hdr-l, .mc-hdr-r { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mc-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.mc-crumb i { font-style: normal; opacity: .5; }
.mc-crumb b { color: var(--ink); font-weight: 600; }
.mc-sync { font-size: 11.5px; color: var(--mute); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mc-sync:empty { display: none; }
.mc-sync:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.mc-sync[data-state="saving"]:before, .mc-sync[data-state="merging"]:before { background: var(--amb); }
.mc-sync[data-state="offline"]:before, .mc-sync[data-state="error"]:before { background: var(--coral); }
.mc-bal { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.mc-bal > span { display: flex; flex-direction: column; line-height: 1.15; }
.mc-bal small { font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.mc-bal b { font-size: 13.5px; white-space: nowrap; }
.mc-ib { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mc-ib:hover { border-color: var(--green); color: var(--green); }
.mc-ib svg { width: 19px; height: 19px; }
.mc-ib i { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font: 600 10.5px/18px var(--mc-font, sans-serif); font-style: normal; }
.mc-user { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); min-width: 0; }
.mc-uav { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #2b7552, #7fc0a3); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.mc-utx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mc-utx b { font-size: 13px; white-space: nowrap; }
.mc-utx small { font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
/* staff bar: same height and look as the customer header */
.stt { margin-left: -26px; margin-right: -26px; padding-left: 26px; padding-right: 26px; }
.stt .mc-sync { margin-left: auto; }
.stt .who { padding-left: 14px; border-left: 1px solid var(--line); }
@media (max-width: 860px) {
  .mc-hdr { margin: 0 0 14px; padding: 10px 0; position: static; background: none; backdrop-filter: none; flex-wrap: wrap; }
  .mc-user .mc-utx, .mc-crumb span, .mc-crumb i { display: none; }
  .stt { margin: 0 0 14px; padding: 10px 0; }
}

/* ---------- footer ---------- */
.mc-foot {
  order: 99; margin: auto -26px 0; padding: 14px 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px;
  font-size: 11.5px; color: var(--mute); background: var(--shell);
}
.main > .mc-foot { margin-top: auto; }
.mc-foot b { font-weight: 600; color: var(--ink); }
.mc-foot-r { display: flex; gap: 14px; flex-wrap: wrap; }
.stm > .mc-foot { margin-top: auto; }
.main > section:last-of-type, .stm > #stMain { padding-bottom: 22px; }
@media (min-width: 861px) and (max-width: 1599px) { .main > .mc-foot { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; } }
@media (max-width: 860px) { .mc-foot { margin: 24px 0 0; padding: 14px 0; } }
@media print { .mc-hdr, .mc-foot { display: none !important; } }
@media (min-width: 861px) and (max-width: 1599px) {
  .app { grid-template-columns: 232px minmax(0, 1fr) 300px; }
  .app.col { grid-template-columns: 84px minmax(0, 1fr) 300px; }
  .main { padding-left: 22px; padding-right: 22px; }
  .rp { padding-left: 16px; padding-right: 16px; }
  .pl th, .pl td { padding-left: 5px; padding-right: 5px; }
  /* Shipments: Edit / Delete sit under Track / Get cover, so the row fits a laptop screen */
  #shipT .recact { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
  #shipT .recact .btn.ico { margin-left: 0; }
}

/* ---------- tables ---------- */
.pl thead th { vertical-align: bottom; }
.pl td.mc-nw, .pl td.mc-act { white-space: nowrap; }
.pl td.mc-act .btn, .pl td .recact .btn { vertical-align: middle; }
/* names and descriptions wrap, but never into a narrow one-word column */
.pl td:not(.mc-nw):not(.mc-act):not(.mc-l1) { min-width: 112px; }
@media (max-width: 1599px) { .pl td:not(.mc-nw):not(.mc-act):not(.mc-l1) { min-width: 92px; } }
/* legend tables inside the small analytics cards keep to their card */
.agrid .pl td:not(.mc-nw):not(.mc-act):not(.mc-l1), #dd .pl td:not(.mc-nw):not(.mc-act):not(.mc-l1) { min-width: 0; }
.agrid .pl td.mc-nw { white-space: normal; }
.bd { white-space: nowrap; }

/* ---------- filter bars: every field the same height, inputs as wide as selects ---------- */
.fl label > input, .fl label > select { display: block; width: 100%; margin-top: 4px; height: 38px; box-sizing: border-box; }
.fl > .btn, .fl > button { flex: none; }

/* ---------- KPI rows: whole rows, no orphan tile ---------- */
@media (min-width: 861px) {
  .kpis:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis:has(> :nth-child(4):last-child),
  .kpis:has(> :nth-child(7):last-child),
  .kpis:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis:has(> :nth-child(5):last-child),
  .kpis:has(> :nth-child(9):last-child),
  .kpis:has(> :nth-child(10):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kpis:has(> :nth-child(6):last-child),
  .kpis:has(> :nth-child(11):last-child),
  .kpis:has(> :nth-child(12):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  /* the customer content column is narrower than the staff one: six tiles as two rows of three */
  .main .kpis:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi { min-width: 0; }
  .kpi b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Get cover: the four shipment facts on one row */
  #kv { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- bills: amount always on the right, never over the description ---------- */
.bp .ln2 > :first-child { flex: 1 1 auto; min-width: 0; }
.bp .ln2 > :last-child { flex: none; white-space: nowrap; text-align: right; }

/* ---------- vessel tracking cards: one-line header, status badge never wraps ---------- */
.vcard h4 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.vcard > div:first-child { align-items: center; }

/* ---------- page header: title block and its actions on one baseline ---------- */
.top > .btn, .top > div > .btn { flex: none; }

/* ---------- shipment records (Customer > Shipments) ---------- */
.btn.ico { width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; margin-left: 6px; }
.btn.ico svg { width: 16px; height: 16px; }
.btn.ico.dng { color: var(--coral); }
.btn.ico.dng:hover { background: var(--halo); }
.recact { white-space: nowrap; }

#recM, #recD { z-index: 30; }
.mdl.mc-rec { max-width: 860px; }
.mdl.mc-recd { max-width: 460px; }
.rech { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 2px; }
.rech .mini { margin: 2px 0 0; }
.recx { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--mute); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.recx:hover { color: var(--ink); border-color: var(--mute); }
.mc-rec .rgh { margin: 18px 0 8px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.mc-rec .fg { gap: 0 14px; }
.mc-rec label.f > input, .mc-rec label.f > select { display: block; width: 100%; margin-top: 4px; }
.mc-rec label.f > input[readonly] { background: var(--rail); color: var(--mute); }
.mc-rec [aria-invalid="true"] { border-color: var(--coral) !important; box-shadow: 0 0 0 3px var(--halo); }
.mc-rec .err:empty, .recd .err:empty { display: none; }
.recnote { margin: -4px 0 4px; min-height: 18px; }
.recb { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
#recE { margin-top: 8px; }
.mc-recd p { margin: 8px 0 0; }

@media (max-width: 860px) {
  .mc-rec .fg { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mc-rec .fg { grid-template-columns: 1fr; }
  .recb .btn { flex: 1 1 auto; }
}

/* =====================================================================================
   One-screen dashboards: Customer Dashboard and Analytics, Staff Command Center and BI Analytics
   are arranged in columns on desktop so the key figures and charts are visible without scrolling.
   ===================================================================================== */

/* ---------- Customer > Analytics: four columns on wide screens, charts capped in height ---------- */
#v-ana .agrid { grid-auto-flow: row dense; gap: 14px; }
#v-ana .agrid .card { padding: 14px 16px; }
#v-ana .agrid svg { max-height: 230px; margin: 0 auto; }
#v-ana .agrid .sb { margin-bottom: 8px; }
#v-ana .kpis { margin-bottom: 14px; }
@media (min-width: 1600px) {
  #v-ana .agrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #v-ana .agrid .w2 { grid-column: span 2; }
  .main .kpis:has(> :nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- Staff: Command Center and BI Analytics in three columns ---------- */
body[data-view="staff-ov"] .att { gap: 6px; }
body[data-view="staff-ov"] .att .it { padding: 7px 14px; }
body[data-view="staff-ov"] .vcard { padding: 12px 14px; }
@media (min-width: 1500px) {
  /* Command Center: three-column grid, Next sailings across two columns */
  body[data-view="staff-ov"] #stMain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; grid-auto-flow: row dense; align-items: start; }
  body[data-view="staff-ov"] #stMain > * { grid-column: 1 / -1; margin-bottom: 0; min-width: 0; }
  body[data-view="staff-ov"] #stMain > .stg { display: contents; }
  body[data-view="staff-ov"] #stMain > .stg > * { grid-column: auto; min-width: 0; }
  body[data-view="staff-ov"] #stMain > .card { grid-column: span 2; }
  body[data-view="staff-ov"] .ais { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* BI Analytics: cards of very different heights, so a three-column masonry flow (no row gaps) */
  body[data-view="staff-an"] #stMain { column-count: 3; column-gap: 16px; }
  body[data-view="staff-an"] #stMain > * { column-span: all; margin-bottom: 16px; }
  body[data-view="staff-an"] #stMain > .stg { display: contents; }
  body[data-view="staff-an"] #stMain > .stg > * { column-span: none; break-inside: avoid; margin: 0 0 16px; min-width: 0; }
}
@media (min-width: 1800px) {
  #stMain .kpis:has(> :nth-child(10):last-child) { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  #stMain .kpis:has(> :nth-child(10):last-child) .kpi { padding: 12px 14px; }
}
#v-ana .dnt { gap: 12px; }
#v-ana .dnt svg { width: 132px; height: 132px; }
#v-ana .agrid .pl th, #v-ana .agrid .pl td { padding-top: 6px; padding-bottom: 6px; }
/* ---------- side columns scroll on their own: the page is only as tall as its content ---------- */
@media (min-width: 861px) {
  .side, .rp, .sts { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .app > .colb { position: absolute; right: auto; top: 86px; left: calc(244px - 13px); z-index: 16; }
  .app.col > .colb { left: calc(84px - 13px); }
}
@media (min-width: 861px) and (max-width: 1599px) {
  .app > .colb { left: calc(232px - 13px); }
}

/* =====================================================================================
   Round 3: dashboard to the footer, request cards, add-cover tile, gate pass action bar,
   right cover panel, amount chips, top-up dialog, analytics without inner scroll, masonry
   dashboards, sign-in page.
   ===================================================================================== */

/* ---------- Last requests: real cards, status badge inside its card ---------- */
.qreq { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 44px; min-width: 0; }
.qreq p { font-size: 13px; margin: 8px 0 10px; }
.qreq .st { right: 14px; bottom: 12px; font-size: 12px; gap: 8px; }
.qreq .st b { font-size: 11.5px; padding: 1px 9px; }

/* ---------- action bar under a form or grid (Gate pass) ---------- */
.mc-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.mc-actions .mini { margin-right: auto; }
#gGp { margin-bottom: 4px; }

/* ---------- right cover panel, in the portal's own style ---------- */
.rp { background: var(--card); padding: 0 18px 20px; }
.rp:before { display: none; }
.rph { position: sticky; top: 0; z-index: 2; background: var(--card); margin: 0 -18px 4px; padding: 16px 18px 14px; gap: 12px; font-size: 15px; border-bottom: 1px solid var(--line); }
.rph button { order: 2; margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; display: grid; place-items: center; }
.rph button:hover { color: var(--ink); border-color: var(--mute); }
.rpl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 14px 2px 8px; }
.rp label.it, #tuB label.it { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; font-size: 13px; background: var(--card); transition: border-color .15s, background .15s; }
.rp label.it:has(input:checked), #tuB label.it:has(input:checked) { border-color: var(--green); background: color-mix(in srgb, var(--green) 6%, var(--card)); }
.rp .ci, #tuB .ci { width: 22px; height: 22px; }
.rp input:checked + .ci:after, #tuB input:checked + .ci:after { left: 7px; top: 3px; width: 5px; height: 10px; }
.pmr { border-top: 1px solid var(--line); margin-top: 12px; padding: 14px 2px 8px; font-size: 13px; }
.pmr select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; color: var(--ink); font-size: 12.5px; background: var(--card); }
.cbrand b { color: var(--green); font-style: normal; font-size: 13px; letter-spacing: .08em; }
.cc { height: 172px; }
.cc .gh { background: linear-gradient(180deg, rgba(43, 117, 82, .22), rgba(43, 117, 82, .06)); }
.face { background: linear-gradient(150deg, #3f9a70 0%, #2b7552 55%, #1c5139 100%); box-shadow: 0 10px 24px rgba(31, 84, 58, .25); }
.face .wf svg { stroke: #2b7552; }
.cl2 { margin: 12px 2px 0; }
.depb { background: var(--mint); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 18px; }
.dep { border-radius: 10px; }
.dep input { padding: 9px 8px 9px 12px; }
.dep .btn { border-radius: 0 10px 10px 0; padding: 0 16px; font-size: 13px; }
.depb .mini { margin: 10px 0 0; }

/* ---------- amount chips (panel and top-up dialog): quiet outlined pills ---------- */
.chips { gap: 8px; margin-top: 12px; }
.chips button { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; color: var(--ink); font: 500 12.5px var(--mc-font, "Public Sans", sans-serif); transition: border-color .15s, color .15s; }
.chips button:hover { border-color: var(--green); color: var(--green); filter: none; }

/* ---------- Top up dialog: steps on one line, chips below the amount (not over it) ---------- */
#tuB .tsp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
#tuB .tsp li { text-align: center; white-space: nowrap; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; }
#tuB .chips { margin: 8px 0 18px !important; }
#tuB .rpl { margin-top: 4px; }

/* ---------- Customer > Analytics: no scroll boxes inside cards ---------- */
#v-ana .csc, #v-ana .csc2 { max-height: none !important; overflow: visible !important; border: 0; border-radius: 0; margin-top: 6px; }
#v-ana .agrid .pl { width: 100%; }
#v-ana .agrid .pl th, #v-ana .agrid .pl td { font-size: 12px; padding-left: 6px; padding-right: 6px; }

/* ---------- masonry dashboards (marine-portal.js sets each card's row span) ---------- */
.mc-masonry { grid-auto-rows: 4px; row-gap: 0 !important; align-items: start !important; }
@media (min-width: 1500px) {
  body[data-view="staff-ov"] #stMain > .stg:has(+ .card) > :nth-child(1) { grid-column: 1; }
  body[data-view="staff-ov"] #stMain > .stg:has(+ .card) > :nth-child(2) { grid-column: 2; }
  body[data-view="staff-ov"] #stMain > .card { grid-column: 1 / -1; order: 2; }
  body[data-view="staff-ov"] #stMain > .stg:has(+ .card) { display: grid; grid-column: 1 / span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin: 0; }
  body[data-view="staff-ov"] #stMain > .card ~ .stg > * { grid-column: 3; }
}

/* =====================================================================================
   Certificate email: action row on each certificate, email status, and the email dialog
   ===================================================================================== */
.mc-cert-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mc-cert-act .btn svg { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
.mc-mailst { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--mute); }
.mc-mailst i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.mc-mailst.bad i { background: var(--coral); }
.mc-mailst.bad { color: var(--coral); }

.mdl.mc-mail { max-width: 600px; }
.mc-mail .rgh .mc-opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.mc-chipin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: text; }
.mc-chipin:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent); }
.mc-chipin input { flex: 1 1 180px; min-width: 140px; border: 0 !important; box-shadow: none !important; outline: none; margin: 0; padding: 6px 4px; background: transparent; min-height: 0; }
.mc-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--mint); border: 1px solid color-mix(in srgb, var(--green) 25%, var(--line)); font-size: 12.5px; color: var(--ink); }
.mc-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--mute); cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center; padding: 0; }
.mc-chip button:hover { background: var(--card); color: var(--coral); }
.mc-mail-help { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.mc-mail-help .lk { font-size: 12.5px; }
.mc-nolabel { margin-bottom: 8px; }
.mc-mail textarea { width: 100%; border-radius: 10px; resize: vertical; min-height: 76px; }
.mc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.mc-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.mc-check small { color: var(--mute); }
.mc-attach { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.mc-attach > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mc-attach b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-attach small { font-size: 11.5px; color: var(--mute); }
.mc-pdf { flex: none; width: 36px; height: 42px; border-radius: 6px; background: #c2432f; color: #fff; font: 700 10px/42px var(--mc-font, sans-serif); text-align: center; letter-spacing: .04em; }
.mc-mail-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mc-mail-hist li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mc-mail-hist li:last-child { border-bottom: 0; }
.mc-mail-hist i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mc-mail-hist li.bad i { background: var(--coral); }
.mc-mail-hist small { color: var(--mute); white-space: nowrap; }
#mailM { z-index: 30; }

/* =====================================================================================
   Customer > Dashboard (client requirement, 2026-11-11): Last requests removed; Statistic shown
   always, in the design's own markup and fonts, with a taller chart so it is the largest block.
   The "All widgets" toggle and the Last requests markup stay in the page for the design script;
   they are only not shown.
   ===================================================================================== */
#v-dash #tAll, #v-dash #wid > .sh:first-child, #v-dash #reqs { display: none !important; }
#v-dash #wid, #v-dash #wid.hide { display: block !important; }
#v-dash #chart { padding: 8px 4px; }
#v-dash #chart .mo { grid-template-rows: 190px auto 190px; gap: 10px; }
#v-dash #chart .mo .t, #v-dash #chart .mo .b { width: 18px; }
