/* ===========================================================================
   ALESTA FLEET PORTAL — design system
   ---------------------------------------------------------------------------
   Source of truth: alesta-portal-mockup.html (19.09.2026 tasarım önerisi).
   Every class is prefixed .ap-* and every element rule is scoped inside an
   .ap-* container, so this file can live next to Bootstrap 5.3 while the
   remaining pages are still being converted. Nothing here styles a bare
   <table>/<input>/<h1> globally.

   HOW TO USE (page authors):
     page order on EVERY screen is  heading → description → primary action →
     content.  That is exactly one .ap-heading block, then panels.

       <div class="ap-heading">
         <div>
           <h1>Ships</h1>
           <p>A single workspace for each vessel.</p>
         </div>
         <a class="ap-btn ap-primary" asp-page="/Admin/NewShip">Register ship</a>
       </div>

   Sections
     1. Tokens                 6. Tables
     2. Base / shell           7. Status chips + notices
     3. Sidebar + topbar       8. Forms
     4. Page heading + buttons 9. Detail / steps / empty / footer
     5. Metrics + panels      10. Responsive (760px, 440px)
   =========================================================================== */

/* Central theme "Harbour teal": Central must not look like alestapms.com.
   The portal keeps its navy/blue; every Central colour below is teal. */
/* ── 1. TOKENS ───────────────────────────────────────────────────────────── */
:root {
    /* Surfaces & ink */
    --ap-bg: #f5f9fa;
    --ap-panel: #ffffff;
    --ap-text: #10252b;
    --ap-muted: #5b6f76;
    --ap-line: #e0e9eb;

    /* Brand accent (single blue/turquoise — review note "tek mavi vurgu") */
    --ap-accent: #0b6f64;
    --ap-accent-ink: #0a6358;   /* accent used as text colour */
    --ap-soft: #e3f4f0;         /* accent wash (detail panel, active tab)   */

    /* Semantic status. Every colour ALWAYS ships with a text label. */
    --ap-good: #17694b;
    --ap-good-bg: #eaf7ef;
    --ap-warn: #85590a;
    --ap-warn-bg: #fff6df;
    --ap-bad: #8d1f26;
    --ap-bad-bg: #fdecec;

    /* Navy sidebar — same in light and dark, it is the brand base */
    --ap-nav-bg: #063f3c;
    --ap-nav-ink: #dcefeb;
    --ap-nav-ink-strong: #ffffff;
    --ap-nav-label: #8dbbb3;
    --ap-nav-hover: #0b4f4a;
    --ap-nav-active: #0e665c;
    --ap-nav-line: #1f5a55;
    --ap-nav-dot: #7fd8c8;

    /* Spacing scale */
    --ap-s1: 4px;
    --ap-s2: 7px;
    --ap-s3: 10px;
    --ap-s4: 14px;
    --ap-s5: 18px;
    --ap-s6: 20px;
    --ap-s7: 26px;
    --ap-s8: 34px;

    /* Radius */
    --ap-r-xs: 5px;
    --ap-r-sm: 8px;
    --ap-r: 12px;
    --ap-r-lg: 14px;

    /* Typography */
    --ap-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --ap-mono: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
    --ap-fs-body: 14px;
    --ap-fs-sm: 13px;
    --ap-fs-xs: 12px;
    --ap-fs-micro: 11px;
    --ap-fs-h1: 34px;
    --ap-fs-h2: 17px;
    --ap-fs-metric: 30px;

    /* Shell */
    --ap-sidebar-w: 252px;
    --ap-focus: 0 0 0 2px var(--ap-panel), 0 0 0 4px var(--ap-accent);
}

/* Dark palette is READY but OPT-IN: add data-ap-theme="dark" to <html>.
   It stays off until every page has left Bootstrap's light-only markup,
   otherwise half-converted screens would mix white cards into a dark shell. */
:root[data-ap-theme="dark"] {
    --ap-bg: #0f1c1b;
    --ap-panel: #152826;
    --ap-text: #e6f1ef;
    --ap-muted: #a3bdb7;
    --ap-line: #2c4744;
    --ap-accent: #14a08f;
    --ap-accent-ink: #7fd8c8;
    --ap-soft: #173f3a;
    --ap-good: #8ed8b5;
    --ap-good-bg: #193c32;
    --ap-warn: #e8c57f;
    --ap-warn-bg: #40351f;
    --ap-bad: #f0a9a9;
    --ap-bad-bg: #3d2226;
    --ap-nav-bg: #0a2a27;
    color-scheme: dark;
}

/* ── 2. BASE / SHELL ─────────────────────────────────────────────────────── */
body.ap-body {
    margin: 0;
    background: var(--ap-bg);
    color: var(--ap-text);
    font: var(--ap-fs-body)/1.5 var(--ap-font);
    -webkit-font-smoothing: antialiased;
}

body.ap-body *,
body.ap-body *::before,
body.ap-body *::after { box-sizing: border-box; }

/* Keyboard focus is always visible — never removed. */
body.ap-body :focus-visible {
    outline: 2px solid var(--ap-accent);
    outline-offset: 2px;
    border-radius: 3px;
}

.ap-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ap-muted { color: var(--ap-muted); }
.ap-mono { font-family: var(--ap-mono); }
.ap-nowrap { white-space: nowrap; }
.ap-strong { font-weight: 600; }
.ap-right { text-align: right; }

/* Action cluster: buttons/forms sitting side by side in a heading, a panel
   head, a table cell or an .ap-item row. */
.ap-actions { display: flex; align-items: center; gap: var(--ap-s2); flex-wrap: wrap; }
.ap-actions form { margin: 0; }

/* App shell: fixed nav column + fluid content column.
   minmax(0,1fr) is what keeps wide tables from pushing the PAGE sideways.
   align-content:start stops the grid from splitting spare height between the
   rows — without it a short page leaves a band of background under the nav. */
.ap-shell {
    display: grid;
    grid-template-columns: var(--ap-sidebar-w) minmax(0, 1fr);
    align-content: start;
    min-height: 100vh;
}

.ap-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ap-main {
    padding: var(--ap-s7);
    min-width: 0;
    flex: 1;
}

/* ── 3. SIDEBAR + TOPBAR ─────────────────────────────────────────────────── */
.ap-sidebar {
    background: var(--ap-nav-bg);
    color: #d3ebe6;
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Full-height, self-scrolling and pinned while the content column scrolls. */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.ap-brandrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ap-s3); }
/* Who is looking: AlestaStaff (filled) or Customer (outlined) — next to the brand, wide and narrow. */
.ac-role { margin-right: auto; align-self: center; padding: 3px 9px; border-radius: 999px; font-size: var(--ap-fs-micro); font-weight: 600; letter-spacing: .4px; white-space: nowrap; line-height: 1.3; }
.ac-role-staff { background: var(--ap-nav-dot); color: var(--ap-nav-bg); }
.ac-role-customer { border: 1px solid var(--ap-nav-dot); color: var(--ap-nav-dot); }

.ap-brand {
    padding: 0 12px;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #fff;
    text-decoration: none;
    display: block;
}
.ap-brand span { color: var(--ap-nav-dot); }
.ap-brand small {
    display: block;
    font-size: var(--ap-fs-micro);
    letter-spacing: 2px;
    color: #7fd8c8;
    font-weight: 500;
}

/* Narrow-screen menu button; hidden on wide screens. */
.ap-navtoggle {
    display: none;
    align-items: center;
    gap: var(--ap-s2);
    border: 1px solid var(--ap-nav-line);
    background: transparent;
    color: #d3ebe6;
    border-radius: var(--ap-r-sm);
    padding: 8px 11px;
    font: 500 var(--ap-fs-sm)/1 var(--ap-font);
    cursor: pointer;
}
.ap-navtoggle:hover { background: var(--ap-nav-hover); }

.ap-navpanel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-height: 0;
}

.ap-nav { display: grid; gap: 5px; align-content: start; }

.ap-navitem {
    display: flex;
    align-items: center;
    gap: var(--ap-s3);
    border: 0;
    background: transparent;
    color: var(--ap-nav-ink);
    text-align: left;
    text-decoration: none;
    border-radius: var(--ap-r-sm);
    padding: 11px 12px;
    font-size: var(--ap-fs-sm);
    line-height: 1.2;
}
.ap-navitem:hover { background: var(--ap-nav-hover); color: var(--ap-nav-ink-strong); }
.ap-navitem[aria-current="page"] { background: var(--ap-nav-active); color: var(--ap-nav-ink-strong); font-weight: 600; }
.ap-navitem .ap-count {
    margin-left: auto;
    background: var(--ap-warn-bg);
    color: var(--ap-warn);
    border-radius: 999px;
    font-size: var(--ap-fs-micro);
    font-weight: 600;
    padding: 2px 7px;
}

/* 0.2.77: a small BETA tag after a menu item (Location BETA) */
.ap-navitem .ap-beta {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .6px;
    opacity: .8;
}

.ap-navlabel {
    padding: 6px 12px;
    font-size: var(--ap-fs-micro);
    letter-spacing: 1.4px;
    color: var(--ap-nav-label);
}

.ap-account {
    margin-top: auto;
    border-top: 1px solid var(--ap-nav-line);
    padding: var(--ap-s5) var(--ap-s3) 0;
    font-size: var(--ap-fs-sm);
    color: #e0f0ec;
}
.ap-account span { display: block; color: #86b3aa; }
.ap-account a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--ap-s3);
    color: #8fe0d1;
    text-decoration: none;
}
.ap-account a:hover { color: #fff; text-decoration: underline; }

/* Topbar: breadcrumb on the left, explicit UTC stamp on the right. */
.ap-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ap-s3);
    padding: 15px var(--ap-s7);
    background: var(--ap-panel);
    border-bottom: 1px solid var(--ap-line);
    font-size: var(--ap-fs-sm);
    color: var(--ap-muted);
    flex-wrap: wrap;
}
.ap-topbar strong { color: var(--ap-text); font-weight: 500; }
.ap-topbar a { color: inherit; text-decoration: none; }
.ap-topbar a:hover { text-decoration: underline; }

/* ── 4. PAGE HEADING + BUTTONS + LINKS ───────────────────────────────────── */
.ap-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ap-s4);
    flex-wrap: wrap;
    margin-bottom: var(--ap-s7);
}
.ap-heading h1 {
    font-size: var(--ap-fs-h1);
    line-height: 1.2;
    letter-spacing: -.7px;
    margin: 0 0 var(--ap-s2);
    font-weight: 600;
    color: var(--ap-text);
}
.ap-heading p { margin: 0; color: var(--ap-muted); font-size: var(--ap-fs-sm); }
.ap-heading .ap-actions { display: flex; gap: var(--ap-s3); flex-wrap: wrap; }

.ap-btn {
    border: 1px solid var(--ap-line);
    background: var(--ap-panel);
    color: var(--ap-text);
    padding: 9px 13px;
    border-radius: var(--ap-r-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--ap-s2);
    white-space: nowrap;
    font: 500 var(--ap-fs-sm)/1.3 var(--ap-font);
    text-decoration: none;
    cursor: pointer;
}
.ap-btn:hover { border-color: var(--ap-accent); color: var(--ap-accent-ink); }
.ap-btn[disabled], .ap-btn.ap-disabled { opacity: .55; cursor: not-allowed; }

.ap-primary { background: var(--ap-accent); border-color: var(--ap-accent); color: #fff; }
.ap-primary:hover { background: #0a6458; border-color: #0a6458; color: #fff; }
:root[data-ap-theme="dark"] .ap-primary:hover { background: #17b39f; border-color: #17b39f; }

.ap-btn.ap-danger { color: var(--ap-bad); border-color: var(--ap-bad-bg); background: var(--ap-bad-bg); }
.ap-btn.ap-danger:hover { border-color: var(--ap-bad); color: var(--ap-bad); }
.ap-btn.ap-quiet { background: transparent; }
.ap-btn.ap-sm { padding: 6px 10px; font-size: var(--ap-fs-xs); }

.ap-link {
    border: 0;
    background: transparent;
    color: var(--ap-accent-ink);
    padding: 4px 0;
    font: 600 var(--ap-fs-sm)/1.4 var(--ap-font);
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ap-link:hover { text-decoration: underline; color: var(--ap-accent-ink); }

/* One icon family, vendored as an inline sprite (_Icons.cshtml) — no CDN.
   <svg class="ap-ico" aria-hidden="true"><use href="#i-ship"></use></svg> */
.ap-ico {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.18em;
}
.ap-ico.ap-ico-lg { width: 22px; height: 22px; }

/* ── 5. METRICS + PANELS ─────────────────────────────────────────────────── */
.ap-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: var(--ap-s6);
}
.ap-metric {
    padding: var(--ap-s5);
    background: var(--ap-panel);
    border: 1px solid var(--ap-line);
    border-radius: var(--ap-r);
    display: block;
    text-decoration: none;
    color: inherit;
}
a.ap-metric:hover { border-color: var(--ap-accent); }
.ap-metric span { display: block; font-size: var(--ap-fs-xs); color: var(--ap-muted); }
.ap-metric b { display: block; font-size: var(--ap-fs-metric); font-weight: 500; margin: var(--ap-s2) 0; line-height: 1.1; }
.ap-metric.ap-attention b { color: var(--ap-warn); }
.ap-metric.ap-attention { border-color: var(--ap-warn); }

.ap-panel {
    border: 1px solid var(--ap-line);
    border-radius: var(--ap-r);
    background: var(--ap-panel);
    margin-bottom: var(--ap-s5);
    overflow: hidden;
}
/* Subdued panel for secondary / administrative content. */
.ap-panel.ap-subdued { background: transparent; }
.ap-panel.ap-subdued > .ap-panelhead { background: transparent; }

.ap-panelhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ap-s3);
    flex-wrap: wrap;
    padding: 17px 19px;
    border-bottom: 1px solid var(--ap-line);
}
.ap-panelhead h2,
.ap-panelhead .ap-h2 { font-size: var(--ap-fs-h2); margin: 0; font-weight: 600; color: var(--ap-text); }
.ap-panelhead p { margin: 2px 0 0; color: var(--ap-muted); font-size: var(--ap-fs-sm); }
.ap-panelhead .ap-actions { display: flex; gap: var(--ap-s2); flex-wrap: wrap; align-items: center; }

.ap-pad { padding: var(--ap-s6); }
.ap-pad > p { margin: 0 0 var(--ap-s3); color: var(--ap-muted); font-size: var(--ap-fs-sm); }
.ap-pad > p:last-child { margin-bottom: 0; }

/* Two equal columns that stack under 760px. */
.ap-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ap-s5); }
.ap-split > * { min-width: 0; }

/* Key/value rows inside a panel body. */
.ap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ap-s4);
    padding: 13px 0;
    border-bottom: 1px solid var(--ap-line);
}
.ap-item:first-child { padding-top: 0; }
.ap-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ap-item small { display: block; color: var(--ap-muted); font-size: var(--ap-fs-xs); }
.ap-item > div:first-child { min-width: 0; }
.ap-item .ap-itemvalue { font-size: var(--ap-fs-h2); font-weight: 500; white-space: nowrap; }

/* Application cards (Releases). */
.ap-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: var(--ap-s6); }
.ap-app { padding: var(--ap-s5); border: 1px solid var(--ap-line); border-radius: var(--ap-r); background: var(--ap-panel); }
.ap-app h2 { font-size: var(--ap-fs-h2); margin: 0; font-weight: 600; }
.ap-app p { margin: 0; color: var(--ap-muted); font-size: var(--ap-fs-sm); }
.ap-app b { display: block; font-size: 24px; font-weight: 500; margin: 12px 0; line-height: 1.1; }
.ap-app small { display: block; color: var(--ap-muted); font-size: var(--ap-fs-xs); margin-top: 8px; }

/* ── 6. TABLES ───────────────────────────────────────────────────────────── */
.ap-tablewrap { overflow-x: auto; }

.ap-table { width: 100%; border-collapse: collapse; font-size: var(--ap-fs-sm); }
.ap-table th {
    text-align: left;
    font-weight: 500;
    font-size: var(--ap-fs-micro);
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--ap-muted);
    background: var(--ap-bg);
}
.ap-table td,
.ap-table th { padding: 14px 17px; border-bottom: 1px solid var(--ap-line); vertical-align: middle; }
.ap-table tbody tr:last-child td { border-bottom: 0; }
.ap-table td small { display: block; color: var(--ap-muted); font-size: var(--ap-fs-micro); margin-top: 3px; }
.ap-table tbody tr:hover td { background: color-mix(in srgb, var(--ap-bg) 55%, transparent); }
.ap-table .ap-right { text-align: right; }
.ap-table .ap-strong { font-weight: 600; }
/* Compact variant for long history tables. */
.ap-table.ap-compact td, .ap-table.ap-compact th { padding-top: 9px; padding-bottom: 9px; }

/* ── 7. STATUS CHIPS + NOTICES ───────────────────────────────────────────── */
/* A colour never stands alone — the chip always carries its own text label. */
.ap-status {
    display: inline-block;
    font-size: var(--ap-fs-xs);
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--ap-r-xs);
    background: var(--ap-good-bg);
    color: var(--ap-good);
    white-space: nowrap;
}
.ap-status.ap-neutral { background: var(--ap-bg); color: var(--ap-muted); border: 1px solid var(--ap-line); }
.ap-status.ap-warn { background: var(--ap-warn-bg); color: var(--ap-warn); }
.ap-status.ap-bad { background: var(--ap-bad-bg); color: var(--ap-bad); }
.ap-status.ap-info { background: var(--ap-soft); color: var(--ap-accent-ink); }

.ap-notice {
    display: flex;
    align-items: center;
    gap: var(--ap-s3);
    background: var(--ap-good-bg);
    color: var(--ap-good);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: var(--ap-s6);
    font-size: var(--ap-fs-sm);
}
.ap-notice.ap-warn { background: var(--ap-warn-bg); color: var(--ap-warn); }
.ap-notice.ap-bad { background: var(--ap-bad-bg); color: var(--ap-bad); }
.ap-notice.ap-info { background: var(--ap-soft); color: var(--ap-accent-ink); }

/* ── 8. FORMS + TOOLBARS + TABS ──────────────────────────────────────────── */
.ap-toolbar { display: flex; gap: var(--ap-s3); flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.ap-toolbar .ap-input { flex: 1; min-width: 160px; width: auto; }
.ap-toolbar select.ap-input { flex: 0 0 auto; width: auto; }

.ap-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--ap-s5); }
.ap-tabs .ap-btn[aria-pressed="true"],
.ap-tabs .ap-btn.ap-current {
    background: var(--ap-soft);
    border-color: var(--ap-accent);
    color: var(--ap-accent-ink);
    font-weight: 600;
}

/* Two-column field grid; collapses to one column under 440px. */
.ap-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.ap-form.ap-one { grid-template-columns: 1fr; }
.ap-form .ap-wide { grid-column: 1 / -1; }

.ap-form label,
.ap-field label,
label.ap-field { display: block; font-size: var(--ap-fs-sm); color: var(--ap-text); font-weight: 500; }
.ap-form label small,
.ap-field small { display: block; font-weight: 400; color: var(--ap-muted); font-size: var(--ap-fs-xs); margin-top: 2px; }

.ap-input,
.ap-form input,
.ap-form select,
.ap-form textarea,
.ap-field input,
.ap-field select,
.ap-field textarea {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--ap-line);
    border-radius: 6px;
    padding: 9px 12px;
    background: var(--ap-panel);
    color: var(--ap-text);
    font: var(--ap-fs-body)/1.4 var(--ap-font);
    margin-top: var(--ap-s2);
}
.ap-input[readonly], .ap-form input[readonly] { background: var(--ap-bg); color: var(--ap-muted); }
.ap-input:focus, .ap-form input:focus, .ap-form select:focus, .ap-form textarea:focus {
    border-color: var(--ap-accent);
}
.ap-form textarea, .ap-field textarea { min-height: 110px; resize: vertical; }

.ap-checkline { display: flex; align-items: center; gap: var(--ap-s2); font-size: var(--ap-fs-sm); }
.ap-checkline input { margin: 0; width: auto; accent-color: var(--ap-accent); }

/* ── 9. DETAIL / STEPS / EMPTY / FORM FOOTER / PAGE FOOTER ───────────────── */
.ap-detail {
    margin-top: var(--ap-s5);
    border-left: 3px solid var(--ap-accent);
    padding: var(--ap-s5);
    background: var(--ap-soft);
    border-radius: 6px;
}
.ap-detail h2 { font-size: var(--ap-fs-h2); margin: 0 0 12px; font-weight: 600; }
.ap-detail p { margin: 0 0 var(--ap-s3); font-size: var(--ap-fs-sm); }
.ap-detail p.ap-label { color: var(--ap-muted); margin-bottom: 2px; }

.ap-steps { display: flex; flex-wrap: wrap; gap: var(--ap-s3); margin-bottom: var(--ap-s6); list-style: none; padding: 0; }
.ap-steps span,
.ap-steps li {
    background: var(--ap-panel);
    border: 1px solid var(--ap-line);
    border-radius: var(--ap-r-sm);
    padding: 8px 13px;
    font-size: var(--ap-fs-sm);
    color: var(--ap-muted);
}
.ap-steps .ap-current { background: var(--ap-soft); color: var(--ap-accent-ink); border-color: var(--ap-accent); font-weight: 600; }
.ap-steps .ap-done { color: var(--ap-good); border-color: var(--ap-good-bg); background: var(--ap-good-bg); }

.ap-empty { text-align: center; padding: 60px 20px; }
.ap-empty .ap-ico { display: block; margin: 0 auto 16px; color: var(--ap-muted); width: 28px; height: 28px; }
.ap-empty h2 { font-size: var(--ap-fs-h2); margin: 0 0 6px; font-weight: 600; }
.ap-empty p { margin: 0; color: var(--ap-muted); font-size: var(--ap-fs-sm); }

/* Form footer: back/cancel on the left, the commit action on the right. */
.ap-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: var(--ap-s6);
    margin-top: var(--ap-s6);
    border-top: 1px solid var(--ap-line);
}
.ap-footer .ap-actions { display: flex; gap: var(--ap-s3); flex-wrap: wrap; }
/* the action stays on the right even when a long note pushes it to its own line (0.2.29) */
.ap-footer > .ap-btn:last-child, .ap-footer > button:last-child { margin-left: auto; }

/* Page footer (copyright strip at the bottom of the content column). */
.ap-pagefoot {
    padding: var(--ap-s4) var(--ap-s7) var(--ap-s7);
    color: var(--ap-muted);
    font-size: var(--ap-fs-xs);
    border-top: 1px solid var(--ap-line);
}
.ap-pagefoot a { color: var(--ap-accent-ink); }

/* ── AUTH / PUBLIC PAGES (centred card) ──────────────────────────────────── */
body.ap-authbody {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(160deg, #0a2b28 0%, #0f3f3a 55%, #13665b 100%);
    color: var(--ap-text);
    font: var(--ap-fs-body)/1.5 var(--ap-font);
}
body.ap-authbody.ap-bridge { background: linear-gradient(160deg, #051d1b 0%, #0a2b28 55%, #0f3f3a 100%); }
body.ap-authbody *, body.ap-authbody *::before, body.ap-authbody *::after { box-sizing: border-box; }
body.ap-authbody :focus-visible { outline: 2px solid #6fe0cc; outline-offset: 2px; }

.ap-authcard {
    width: 100%;
    max-width: 420px;
    background: var(--ap-panel);
    border-radius: var(--ap-r-lg);
    box-shadow: 0 18px 50px rgba(2, 20, 18, .45);
    overflow: hidden;
}
.ap-authcard.ap-wide { max-width: 560px; }
.ap-authhead { background: var(--ap-nav-bg); color: #e8f5f2; padding: 24px 30px 20px; }
.ap-authhead img { display: block; height: 64px; width: auto; }
.ap-authhead .ap-sub { font-size: var(--ap-fs-sm); color: #9cc4bb; margin-top: 4px; letter-spacing: .04em; }
.ap-authhead .ap-tag {
    display: inline-block; margin-top: 8px; padding: 2px 10px;
    border: 1px solid #6fe0cc; border-radius: 999px;
    color: #6fe0cc; font-size: var(--ap-fs-micro); letter-spacing: .18em;
}
.ap-authbodyarea { padding: 26px 30px 28px; }
.ap-authbodyarea p { font-size: var(--ap-fs-sm); margin: 0 0 var(--ap-s4); }
.ap-authbodyarea .ap-field + .ap-field { margin-top: var(--ap-s5); }
.ap-authbodyarea .ap-btn { width: 100%; justify-content: center; padding: 11px 13px; font-size: var(--ap-fs-body); }
.ap-authsubmit { margin-top: 22px; }
.ap-steplist { margin: 0 0 var(--ap-s5); padding-left: 18px; color: var(--ap-muted); font-size: var(--ap-fs-sm); }
.ap-steplist li { margin-bottom: 4px; }
.ap-authfoot { text-align: center; font-size: var(--ap-fs-xs); color: #86ada4; padding: 0 30px 22px; }
.ap-authfoot a { color: var(--ap-accent-ink); }
.ap-authlink { display: block; text-align: center; margin-top: var(--ap-s5); font-size: var(--ap-fs-sm); color: var(--ap-muted); }

.ap-code {
    font-family: var(--ap-mono);
    font-size: 1.35rem;
    letter-spacing: .45em;
    text-align: center;
}
.ap-qr { text-align: center; margin: 6px 0 10px; }
.ap-qr img { width: 210px; height: 210px; border: 1px solid var(--ap-line); border-radius: var(--ap-r); }
.ap-manual {
    font-family: var(--ap-mono); font-size: .95rem; letter-spacing: .06em;
    background: var(--ap-bg); border: 1px dashed var(--ap-line); border-radius: 8px;
    padding: .55rem .8rem; text-align: center; margin-bottom: 1rem; word-break: break-all;
}

/* ── 10. RESPONSIVE ──────────────────────────────────────────────────────── */
/* ≤760px: the sidebar becomes a top strip; the nav wraps and can be collapsed
   with the Menu button. Without JavaScript the nav simply stays open — it
   wraps, so the page still never scrolls sideways. */
@media (max-width: 760px) {
    /* minmax(0,1fr), never plain 1fr: an auto minimum lets a wide table push the
       whole PAGE sideways instead of scrolling inside its own .ap-tablewrap. */
    /* auto + 1fr: the nav strip takes what it needs, the content column takes
       the rest so the page footer still sits at the bottom on short pages. */
    .ap-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }

    .ap-sidebar {
        position: static;
        height: auto;
        padding: 14px 16px;
        gap: 14px;
    }
    .ap-brand { padding: 0; font-size: 21px; }
    .ap-brand small { display: inline; margin-left: 10px; font-size: 9px; }
    .ap-navtoggle { display: inline-flex; }

    .ap-navpanel { gap: 14px; }
    .ap-nav { display: flex; flex-wrap: wrap; gap: 4px; }
    .ap-navitem { padding: 8px 10px; font-size: var(--ap-fs-sm); }
    .ap-navlabel {
        width: 100%;
        padding: 6px 2px 0;
        font-size: 9px;
    }
    .ap-account { margin-top: 0; padding: 12px 2px 0; }

    /* Collapsed state, set by the layout's inline script on narrow screens. */
    html[data-ap-nav="closed"] .ap-navpanel { display: none; }

    .ap-main { padding: var(--ap-s6); }
    .ap-topbar { padding: 12px var(--ap-s6); }
    .ap-pagefoot { padding: var(--ap-s4) var(--ap-s6) var(--ap-s6); }

    .ap-metrics { grid-template-columns: 1fr 1fr; }
    .ap-apps { grid-template-columns: 1fr 1fr; }
    .ap-split { grid-template-columns: 1fr; }
    .ap-secondarycol { display: none; }
}

@media (max-width: 440px) {
    .ap-main { padding: 15px; }
    .ap-topbar { padding: 10px 15px; flex-wrap: wrap; }
    .ap-pagefoot { padding: 12px 15px 20px; }
    .ap-apps, .ap-form { grid-template-columns: 1fr; }
    .ap-table td, .ap-table th { padding: 10px; }
    .ap-metric { padding: 13px; }
    .ap-metrics { gap: 8px; }
    .ap-heading h1 { font-size: 22px; }
    .ap-item { flex-wrap: wrap; }
    .ap-authhead, .ap-authbodyarea, .ap-authfoot { padding-left: 20px; padding-right: 20px; }
}

@media print {
    .ap-sidebar, .ap-topbar, .ap-pagefoot, .ap-actions { display: none !important; }
    .ap-shell { grid-template-columns: 1fr; }
}

/* ══ ALESTA CENTRAL additions (05.10.2026) ═══════════════════════════════════════════════════
   Everything above is the shared Alesta web design system (copied from the Fleet Portal).
   Central-only pieces live below, prefixed .ac-  */
.ac-topright { display: inline-flex; align-items: center; gap: 14px; }
.ac-companypick { margin: 0; }
.ac-companypick .ap-input { padding: 4px 28px 4px 10px; font-size: var(--ap-fs-xs); width: auto; min-width: 180px; }

/* manifest grid: dense, spreadsheet-like, sticky header; the left edge of a row tells its state */
.ac-gridwrap { overflow: auto; max-height: calc(100vh - 300px); min-height: 280px; }
.ac-grid { width: 100%; border-collapse: collapse; font-size: var(--ap-fs-xs); }
.ac-grid th { position: sticky; top: 0; z-index: 1; background: var(--ap-bg); text-align: left; font-weight: 600; color: var(--ap-muted);
              padding: 8px 10px; border-bottom: 1px solid var(--ap-line); white-space: nowrap; font-size: var(--ap-fs-micro); letter-spacing: .04em; text-transform: uppercase; }
.ac-grid td { padding: 6px 10px; border-bottom: 1px solid var(--ap-line); vertical-align: top; white-space: nowrap; }
.ac-grid td.ac-wrap { white-space: normal; min-width: 230px; }
.ac-grid tbody tr:hover td { background: color-mix(in srgb, var(--ap-bg) 60%, transparent); }
.ac-grid tr.ac-newcabin td { border-top: 2px solid var(--ap-line); }
.ac-grid tr.ac-severe td:first-child { box-shadow: inset 3px 0 0 var(--ap-bad); }
.ac-grid tr.ac-warn td:first-child { box-shadow: inset 3px 0 0 var(--ap-warn); }
.ac-grid tr.ac-cancelled td { color: var(--ap-muted); }
.ac-grid tr.ac-cancelled td.ac-strike { text-decoration: line-through; }
.ac-num { font-variant-numeric: tabular-nums; }
.ac-miss { color: var(--ap-bad); font-weight: 600; }

.ac-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: var(--ap-fs-micro); background: var(--ap-soft); color: var(--ap-accent-ink); margin: 0 3px 2px 0; white-space: nowrap; }
.ac-issue { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: var(--ap-fs-micro); background: var(--ap-warn-bg); color: var(--ap-warn); margin: 0 3px 2px 0; white-space: nowrap; }
.ac-issue.ac-sev { background: var(--ap-bad-bg); color: var(--ap-bad); }
.ac-ok { color: var(--ap-good); font-weight: 600; }
.ac-bad { color: var(--ap-bad); font-weight: 600; }

.ac-voyages { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ac-voyage { display: block; padding: 16px 18px; border: 1px solid var(--ap-line); border-radius: var(--ap-r); background: var(--ap-panel); color: inherit; text-decoration: none; }
.ac-voyage:hover { border-color: var(--ap-accent); color: inherit; }
.ac-voyage h3 { margin: 0 0 2px; font-size: var(--ap-fs-h2); font-weight: 600; }
.ac-voyage .ac-sub { color: var(--ap-muted); font-size: var(--ap-fs-xs); margin-bottom: 12px; }
.ac-voyage dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; margin: 0; }
.ac-voyage dt { font-size: var(--ap-fs-micro); color: var(--ap-muted); text-transform: uppercase; letter-spacing: .04em; }
.ac-voyage dd { margin: 0; font-size: 18px; font-weight: 500; }
.ac-voyage.ac-past { opacity: .7; }
.ac-drop { border: 1.5px dashed var(--ap-line); border-radius: var(--ap-r); padding: 18px; background: var(--ap-bg); }
.ac-key { font-family: var(--ap-mono); font-size: var(--ap-fs-xs); word-break: break-all; }
.ac-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-filters a { padding: 4px 11px; border: 1px solid var(--ap-line); border-radius: 999px; font-size: var(--ap-fs-xs); color: var(--ap-text); text-decoration: none; background: var(--ap-panel); }
.ac-filters a[aria-current="true"] { background: var(--ap-accent); border-color: var(--ap-accent); color: #fff; }

/* the sign-in page must not scroll: padding belongs inside the 100vh */
body.ap-authbody { box-sizing: border-box; }

/* ── Company pattern (06.10.2026 — same family as alestapms.com, "mockup A") ──────────────────
   Companies list = one block per company with its ships underneath; a company page = header card
   + four facts + tabs. Shared here because every company page will carry the same header. */
.ap-back { display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 var(--ap-s4); color: var(--ap-muted); font-size: var(--ap-fs-sm); text-decoration: none; }
.ap-back:hover { color: var(--ap-accent-ink); }
.ap-chiprow { display: flex; flex-wrap: wrap; gap: var(--ap-s1); }

.cu-block[hidden] { display: none; }
.cu-head { display: flex; align-items: center; gap: var(--ap-s4); padding: 15px 19px; border-bottom: 1px solid var(--ap-line); flex-wrap: wrap; }
.cu-mark { flex: 0 0 40px; width: 40px; height: 40px; border-radius: var(--ap-r-sm); background: var(--ap-nav-bg); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; text-transform: uppercase; }
.cu-off .cu-mark { background: var(--ap-muted); }
.cu-title { flex: 1; min-width: 220px; }
.cu-title a { font-size: var(--ap-fs-h2); font-weight: 600; color: var(--ap-text); text-decoration: none; }
.cu-title a:hover { color: var(--ap-accent-ink); text-decoration: underline; }
.cu-title small { display: block; color: var(--ap-muted); font-size: var(--ap-fs-xs); margin-top: 2px; }
.cu-noships { padding: 14px 19px; color: var(--ap-muted); font-size: var(--ap-fs-sm); }
.ap-panel > summary.ap-panelhead { cursor: pointer; list-style: none; border-bottom: 0; }
.ap-panel[open] > summary.ap-panelhead { border-bottom: 1px solid var(--ap-line); }
.ap-panel > summary.ap-panelhead::-webkit-details-marker { display: none; }
.ap-panel > summary.ap-panelhead .ap-link::after { content: var(--t-open, "Open"); }
.ap-panel[open] > summary.ap-panelhead .ap-link::after { content: var(--t-close, "Close"); }
.cu-subhead { margin: var(--ap-s6) 0 var(--ap-s3); padding-top: var(--ap-s5); border-top: 1px solid var(--ap-line); font-size: var(--ap-fs-sm); font-weight: 600; }
.cu-subhead small { display: block; font-weight: 400; color: var(--ap-muted); font-size: var(--ap-fs-xs); margin-top: 2px; }

.cs-top { display: flex; align-items: flex-start; gap: var(--ap-s5); padding: var(--ap-s6); flex-wrap: wrap; }
.cs-mark { flex: 0 0 52px; width: 52px; height: 52px; border-radius: var(--ap-r); background: var(--ap-nav-bg); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 600; text-transform: uppercase; }
.cs-off .cs-mark { background: var(--ap-muted); }
.cs-name { flex: 1; min-width: 240px; }
.cs-name h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.5px; margin: 0; font-weight: 600; display: flex; align-items: center; gap: var(--ap-s3); flex-wrap: wrap; }
.cs-name p { margin: 4px 0 0; color: var(--ap-muted); font-size: var(--ap-fs-sm); }
.cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ap-line); }
.cs-facts > a { padding: var(--ap-s4) var(--ap-s6); border-left: 1px solid var(--ap-line); text-decoration: none; color: inherit; }
.cs-facts > a:first-child { border-left: 0; }
.cs-facts > a:hover { background: var(--ap-bg); }
.cs-facts span { display: block; font-size: var(--ap-fs-xs); color: var(--ap-muted); }
.cs-facts b { display: block; font-size: 17px; font-weight: 600; margin: 2px 0 1px; }
.cs-facts small { display: block; font-size: var(--ap-fs-xs); color: var(--ap-muted); }
.cs-facts .cs-warn { color: var(--ap-warn); }
.cs-facts .cs-bad { color: var(--ap-bad); }
.cs-tabs { display: flex; gap: var(--ap-s6); border-bottom: 1px solid var(--ap-line); margin: 0 0 var(--ap-s5); overflow-x: auto; overflow-y: hidden; }
.cs-tabs a { padding: 10px 0; color: var(--ap-muted); text-decoration: none; font-size: var(--ap-fs-body); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cs-tabs a:hover { color: var(--ap-text); }
.cs-tabs a[aria-current="page"] { color: var(--ap-text); font-weight: 600; border-bottom-color: var(--ap-accent); }
.cs-tabnum { margin-left: 3px; color: var(--ap-muted); font-size: var(--ap-fs-xs); font-weight: 400; }
.cs-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px var(--ap-s4); font-size: var(--ap-fs-sm); }
.cs-kv > span:nth-child(odd) { color: var(--ap-muted); }
.cs-kv > span:nth-child(even) { text-align: right; overflow-wrap: anywhere; }
.ap-panel.cs-danger { border-color: #f0b7bb; }   /* 0.2.71: two classes, so the cards' common edge does not cover it */
.cs-danger .ap-panelhead h2 { color: var(--ap-bad); }
.cs-drow { display: flex; justify-content: space-between; align-items: center; gap: var(--ap-s3); font-size: var(--ap-fs-sm); flex-wrap: wrap; }
.cs-drow small { display: block; color: var(--ap-muted); font-size: var(--ap-fs-xs); }
.cs-tight .ap-panelhead { padding: 13px 18px; }
.cs-tight .ap-table td, .cs-tight .ap-table th { padding: 9px 14px; }
.cs-tight .ap-table td:first-child, .cs-tight .ap-table th:first-child { padding-left: 18px; }
.cs-tight .ap-table td:last-child, .cs-tight .ap-table th:last-child { padding-right: 18px; }
@media (max-width: 560px) { .cs-facts { grid-template-columns: 1fr 1fr; } .cs-facts > a:nth-child(3) { border-left: 0; } .cs-facts > a:nth-child(n+3) { border-top: 1px solid var(--ap-line); } }

/* A failed sign-in marks BOTH fields — it never says which one was wrong (07.10.2026). */
.ap-input.ap-invalid { border-color: var(--ap-bad); box-shadow: 0 0 0 3px var(--ap-bad-bg); }

/* ── Superadmin signed in: the side bar turns red, so nobody forgets which account is in use ── */
:root[data-ap-keeper="1"] {
    --ap-nav-bg: #5b1517;
    --ap-nav-ink: #f3d5d5;
    --ap-nav-ink-strong: #ffffff;
    --ap-nav-label: #dc9c9c;
    --ap-nav-hover: #6f1c1f;
    --ap-nav-active: #862528;
    --ap-nav-line: #7e2e31;
    --ap-nav-dot: #ff9f9f;
}
:root[data-ap-keeper="1"] .ap-sidebar, :root[data-ap-keeper="1"] .ap-navtoggle { color: #f3d5d5; }
:root[data-ap-keeper="1"] .ap-brand small { color: #ffb4b4 !important; }
:root[data-ap-keeper="1"] .ap-account { color: #fbe9e9; }
:root[data-ap-keeper="1"] .ap-account span { color: #dc9c9c; }
:root[data-ap-keeper="1"] .ap-account a { color: #ffc4c4; }

/* ── CENTRAL OPENS BY VOYAGE ──────────────────────────────────────────────────────────────────
   The band on each voyage page says which voyage (design below); the Voyages page colours its groups: on board now · upcoming = blue · past, closed = red. */
:root { --vy-active: #0d7a6c; --vy-future: #1f5fae; --vy-future-bg: #e7f0fb; --vy-past: #a32a2f; --vy-past-bg: #fbe9e9; }

.ac-topright { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vy-group .vy-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: #9fb3ae; }



/* the menu's voyage pages when no voyage is chosen */
.ap-navitem.ap-navoff { opacity: .45; }
.ap-navitem.ap-navoff:hover { opacity: .7; }

/* Voyages page */
.vy-noactive { display: flex; align-items: center; gap: 8px; color: var(--ap-muted); font-size: 13px; margin: 0 0 6px; }
.vy-group { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ap-muted); margin: 22px 0 10px; }
.vy-g-active .vy-dot { background: var(--vy-active); } .vy-g-future .vy-dot { background: var(--vy-future); } .vy-g-past .vy-dot { background: var(--vy-past); }
.vy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vy-card { position: relative; display: block; padding: 14px 16px 14px 20px; border: 1px solid var(--ap-line); border-radius: var(--ap-r, 12px); color: inherit; text-decoration: none; overflow: hidden; }
.vy-card:hover { border-color: var(--ap-accent); color: inherit; }
.vy-card h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.vy-card .ac-sub { color: var(--ap-muted); font-size: 12px; margin-bottom: 10px; }
.vy-card .vy-line { font-size: 12.5px; margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vy-card .vy-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.vy-card.vy-active { background: var(--ap-panel); } .vy-card.vy-active .vy-stripe { background: var(--vy-active); }
.vy-card.vy-future { background: #f3f8fe; } .vy-card.vy-future .vy-stripe { background: var(--vy-future); }
.vy-card.vy-past   { background: #fdf3f3; } .vy-card.vy-past .vy-stripe { background: var(--vy-past); }
.vy-card.vy-sel { box-shadow: 0 0 0 2px var(--ap-accent); border-color: transparent; }
.vy-card .vy-current { font-size: 11px; font-weight: 600; color: var(--ap-accent-ink); }
a.vy-shipfilter { color: var(--ap-text); text-decoration: none; }
/* cabin reports (07.10.2026) — deck subtotals, grand total, over-sold rows; print without the filters */
.cb-report tr.cb-subtotal td { background: var(--ap-bg); font-size: var(--ap-fs-xs); font-weight: 600; color: var(--ap-muted); padding-top: 8px; padding-bottom: 8px; }
.cb-report tr.cb-total td { border-top: 2px solid var(--ap-text); font-weight: 700; }
.cb-report tr.cb-over td:first-child { box-shadow: inset 3px 0 0 var(--ap-bad); }
/* top-bar language picker (0.2.30) */
.ac-langpick { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--ap-muted); }
.ac-langpick .ap-ico { width: 15px; height: 15px; }
.ac-langpick select { font: inherit; font-size: 12px; padding: 4px 6px; border: 1px solid var(--ap-line); border-radius: 8px; background: var(--ap-panel); color: var(--ap-text); max-width: 210px; }
/* sign-in card language picker (0.2.25) */
.ap-authcard { position: relative; }
.ap-langpick { position: absolute; top: 14px; right: 14px; margin: 0; }
.ap-langpick select { font: inherit; font-size: 12px; padding: 3px 6px; border: 1px solid var(--ap-line); border-radius: 6px; background: var(--ap-panel); color: var(--ap-text); }
/* Settings (07.10.2026) */
.st-split { align-items: start; }
.st-now { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--ap-bg); font-size: var(--ap-fs-sm); }
.st-now .ap-ico { flex: none; color: var(--ap-muted); }
@media (max-width: 900px) { .st-split { grid-template-columns: 1fr; } }
.cb-off { margin-left: 8px; font-family: var(--ap-font, inherit); font-size: 11px; padding: 1px 7px; vertical-align: 1px; }
@media print {
    .no-print, .ap-btn { display: none !important; }
    .cb-report td, .cb-report th { padding: 4px 8px; }
    .ap-panel { break-inside: auto; box-shadow: none; }
    .cb-report tr { break-inside: avoid; }
}
a.vy-shipfilter.cb-cur { border-color: var(--ap-accent); color: var(--ap-accent-ink); }
.vy-shipfilter { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--ap-line); border-radius: 999px; background: var(--ap-panel); font-size: 13px; font-weight: 600; }

/* Overview */
.vy-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.vy-two .ap-panel { margin: 0; }
.vy-facts { margin: 0; padding: 4px 18px 14px; display: grid; gap: 0; }
.vy-facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ap-line); font-size: 13px; }
.vy-facts > div:last-child { border-bottom: 0; }
.vy-facts dt { color: var(--ap-muted); }
.vy-facts dd { margin: 0; }

@media (max-width: 760px) {
    .vy-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}


/* ── DESIGN C — list + panel (Roles; shared: Users, Bookings, Cabins) ──
   The things on the left (.rc-list, one row each, the chosen one tinted with a bar on its left), the chosen thing on the right (.rc-panel). */
.st-av { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--ap-soft); color: var(--ap-accent-ink); display: grid; place-items: center; font-size: var(--ap-fs-xs); font-weight: 600; text-transform: uppercase; }
.rc-split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.rc-list { background: var(--ap-panel); border: 1px solid var(--ap-line); border-radius: 14px; overflow: hidden; }
.rc-item, .rc-add { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--ap-line); color: var(--ap-text); text-decoration: none; font-size: var(--ap-fs-sm); }
.rc-item:hover, .rc-add:hover { background: var(--ap-bg); }
.rc-item .ap-ico, .rc-add .ap-ico { flex: none; color: var(--ap-muted); }
.rc-main { min-width: 0; } .rc-main b { display: block; font-weight: 500; } .rc-main small { display: block; color: var(--ap-muted); font-size: var(--ap-fs-xs); }
.rc-n { margin-left: auto; font-size: 12px; color: var(--ap-muted); background: var(--ap-bg); border-radius: 999px; padding: 2px 9px; }
.rc-on { background: var(--ap-soft) !important; box-shadow: inset 3px 0 0 var(--ap-accent); }
.rc-on .rc-main b { font-weight: 600; } .rc-on .ap-ico { color: var(--ap-accent-ink); }
.rc-add { border-bottom: 0; color: var(--ap-accent-ink); }
.rc-panel { background: var(--ap-panel); border: 1px solid var(--ap-line); border-radius: 14px; overflow: hidden; }
.rc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--ap-line); align-items: end; }
.rc-head .ap-field { margin: 0; }
.rc-note { display: flex; gap: 10px; align-items: center; padding: 11px 22px; background: var(--ap-soft); color: var(--ap-accent-ink); font-size: var(--ap-fs-sm); border-bottom: 1px solid var(--ap-line); }
.rc-group { padding: 14px 22px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-muted); }
.rc-sw { display: flex; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--ap-line); cursor: pointer; position: relative; }
.rc-sw:hover { background: var(--ap-bg); }
.rc-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--ap-soft); color: var(--ap-accent-ink); display: grid; place-items: center; flex: none; }
.rc-txt { min-width: 0; flex: 1; } .rc-txt b { display: block; font-size: var(--ap-fs-sm); font-weight: 600; } .rc-txt small { display: block; color: var(--ap-muted); font-size: var(--ap-fs-xs); margin-top: 1px; }
.rc-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rc-tg { flex: none; width: 42px; height: 24px; border-radius: 999px; background: #D5DDE4; position: relative; transition: background .15s; }
.rc-tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.rc-sw input:checked + .rc-tg { background: var(--ap-accent); }
.rc-sw input:checked + .rc-tg::after { left: 21px; }
.rc-sw input:focus-visible + .rc-tg { outline: 2px solid var(--ap-accent); outline-offset: 2px; }
.rc-lock { cursor: default; } .rc-lock:hover { background: transparent; } .rc-lock .rc-tg { opacity: .55; }
.rc-people { display: flex; align-items: center; gap: 12px; padding: 14px 22px; font-size: var(--ap-fs-sm); flex-wrap: wrap; }
.rc-avs { display: flex; } .rc-avs .st-av { width: 28px; height: 28px; flex-basis: 28px; margin-left: -6px; border: 2px solid var(--ap-panel); font-size: 10px; }
.rc-avs .st-av:first-child { margin-left: 0; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 22px; background: var(--ap-bg); border-top: 1px solid var(--ap-line); font-size: var(--ap-fs-xs); }
.rc-remove { display: flex; gap: 10px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--ap-line); }
@media (max-width: 900px) { .rc-split { grid-template-columns: minmax(0, 1fr); } .rc-head { grid-template-columns: minmax(0, 1fr); } }
.rc-split.rc-wide { grid-template-columns: 360px minmax(0, 1fr); }
.rc-scroll { max-height: calc(100vh - 230px); overflow-y: auto; }
.rc-listtools { padding: 12px 14px; border-bottom: 1px solid var(--ap-line); display: flex; flex-direction: column; gap: 8px; background: var(--ap-bg); }
.rc-listtools .ap-input { width: 100%; }
.rc-listtools form { display: flex; gap: 8px; margin: 0; }
.rc-item.rc-dim .st-av { background: var(--ap-line); color: var(--ap-muted); }
.rc-item.rc-dim .rc-main b { color: var(--ap-muted); }
.rc-item .st-av { width: 32px; height: 32px; flex-basis: 32px; font-size: 11px; }
.rc-main b.ap-mono { font-family: var(--ap-mono, ui-monospace, monospace); font-weight: 600; }
.rc-dot { margin-left: auto; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ap-good); }
.rc-dot.rc-warn { background: #d99a1b; } .rc-dot.rc-bad { background: var(--ap-bad); } .rc-dot.rc-off { background: #b9c7c4; }
.rc-item .ap-status { margin-left: auto; flex: none; }
.rc-who { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--ap-line); flex-wrap: wrap; }
.rc-who .st-av { width: 46px; height: 46px; flex-basis: 46px; font-size: 15px; }
.rc-who h2 { margin: 0; font-size: 20px; font-weight: 600; }
.rc-who p { margin: 2px 0 0; color: var(--ap-muted); font-size: var(--ap-fs-sm); }
.rc-who .ap-chiprow { margin-left: auto; }
.rc-opt { display: flex; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--ap-line); cursor: pointer; position: relative; }
.rc-opt:hover { background: var(--ap-bg); }
.rc-opt:has(input:checked) { background: var(--ap-soft); }
.rc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rc-rd { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b9c7c4; background: #fff; position: relative; }
.rc-opt input:checked + .rc-rd { border-color: var(--ap-accent); }
.rc-opt input:checked + .rc-rd::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ap-accent); }
.rc-opt input:focus-visible + .rc-rd { outline: 2px solid var(--ap-accent); outline-offset: 2px; }
.rc-opt .rl-chips { margin: 0 0 0 auto; justify-content: flex-end; max-width: 45%; }
.rc-opt.rc-lock { cursor: not-allowed; opacity: .55; }
.rc-block { padding: 12px 22px 16px; border-bottom: 1px solid var(--ap-line); }
.rc-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 22px 18px; }
.rc-acts form { margin: 0; }
.rc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border-bottom: 1px solid var(--ap-line); overflow: hidden; }
.rc-facts > div { padding: 12px 22px; border-right: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); margin: 0 0 -1px 0; }
.rc-facts span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ap-muted); }
.rc-facts b { display: block; margin-top: 3px; font-size: var(--ap-fs-sm); font-weight: 600; }
.rc-facts small { display: block; color: var(--ap-muted); font-size: var(--ap-fs-xs); }
.rc-empty { padding: 28px 22px; color: var(--ap-muted); font-size: var(--ap-fs-sm); }
@media (max-width: 900px) {
    .rc-split.rc-wide { grid-template-columns: minmax(0, 1fr); }
    .rc-scroll { max-height: 300px; }
    .rc-opt .rl-chips { display: none; }
}

/* Cabins as tiles (08.10.2026): one tile per cabin, coloured by this voyage's bookings */
.cb-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 22px; border-bottom: 1px solid var(--ap-line); font-size: var(--ap-fs-xs); color: var(--ap-muted); }
.cb-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; border: 1px solid var(--ap-line); }
.cb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; padding: 14px 22px 18px; }
.cb-deckhead { grid-column: 1 / -1; margin: 8px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-muted); }
.cb-deckhead:first-child { margin-top: 0; }
.cb-tile { border: 1px solid var(--ap-line); border-radius: 10px; padding: 8px 10px; background: var(--ap-panel); font-size: 12px; line-height: 1.35; min-height: 74px; display: flex; flex-direction: column; gap: 1px; }
.cb-tile b { font-family: var(--ap-mono, ui-monospace, monospace); font-size: 14px; }
.cb-tile small { color: var(--ap-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-tile .cb-occ { margin-top: auto; font-weight: 600; }
.cb-free, i.cb-free { background: var(--ap-panel); }
.cb-part, i.cb-part { background: var(--ap-soft); border-color: #b8ddd5; }
.cb-full, i.cb-full { background: #d3ece6; border-color: #9fd0c5; }
.cb-over, i.cb-over { background: var(--ap-bad-bg); border-color: #f0b9bd; }
.cb-over .cb-occ { color: var(--ap-bad); }
.cb-tile.cb-out, i.cb-out { background: repeating-linear-gradient(135deg, #f3f6f6, #f3f6f6 6px, #e7eded 6px, #e7eded 12px); color: var(--ap-muted); }

/* Support visit strip (02.11.2026): always on screen while staff are inside a company */
.ac-visit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; padding: 10px 14px; border: 1px solid #d9a441; border-radius: 10px; background: var(--ap-warn-bg); color: var(--ap-warn); font-size: 13px; }

/* Settings: three tabs, and each map service the same way: what can be changed on the left, what is in use on the right (02.11.2026) */
.st-narrow { max-width: 760px; }
.st-intro { margin: 0 0 var(--ap-s4); color: var(--ap-muted); font-size: var(--ap-fs-sm); }
.st-service { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 2fr); gap: var(--ap-s6); padding: var(--ap-s6); }
.st-facts { align-self: start; padding: var(--ap-s4); border: 1px solid var(--ap-line); border-radius: var(--ap-r); background: var(--ap-bg); }
.st-facts h3 { margin: 0 0 var(--ap-s3); font-size: var(--ap-fs-sm); font-weight: 600; }
.st-note { margin: var(--ap-s3) 0 0; padding-top: var(--ap-s3); border-top: 1px solid var(--ap-line); color: var(--ap-muted); font-size: var(--ap-fs-xs); line-height: 1.5; }
.st-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--ap-s3); padding: var(--ap-s4) var(--ap-s6); border-top: 1px solid var(--ap-line); }
.st-buttons { display: flex; flex-wrap: wrap; gap: var(--ap-s2); margin-left: auto; }
@media (max-width: 900px) {
    .st-service { grid-template-columns: minmax(0, 1fr); }
}

/* ── DESIGN (Central 0.2.52): the frame every screen shares ──────────
   Sidebar, top bar, heading, voyage band (.vb), metric cards with an icon (.ap-m), panel heads with an icon (.ap-ph),
   banner (.ap-banner), empty state with a picture (.ap-art). The pictures are in images/art; the masters in Master, AlestaPMS - Icons, 04 Central Illustrations. */
.ap-main { padding: 28px 34px 20px; }

.ap-sidebar { padding: 22px 16px 16px; gap: 18px; background-image: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .10)); }
.ap-sidebar { scrollbar-width: thin; scrollbar-color: var(--ap-nav-line) transparent; }
.ap-brand { padding: 0 8px; font-size: 30px; letter-spacing: -.8px; }
.ap-brand small { margin-top: 5px; font-size: 12px; font-weight: 400; letter-spacing: 4px; color: var(--ap-nav-ink); }
.ap-navpanel { gap: 14px; }
.ap-nav { gap: 2px; }
.ap-navitem { gap: 14px; padding: 10px 14px; font-size: 14px; border-radius: 8px; }
.ap-navitem .ap-ico { width: 20px; height: 20px; stroke-width: 1.7; }
.ap-navitem[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ap-nav-dot); }
.ap-navlabel { padding: 14px 14px 6px; font-size: 11px; letter-spacing: 1.6px; }

.ap-avatar { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #dceeea; color: #0b4f4a; font-size: 13px; font-weight: 700; font-style: normal; }
.ap-account { display: flex; align-items: center; gap: 12px; padding: 14px 6px 0; }
.ap-acc-who { flex: 1; min-width: 0; }
.ap-acc-who b { display: block; color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-acc-who small { display: block; color: var(--ap-nav-label); font-size: 12px; }
.ap-account a { margin: 0; padding: 6px; color: var(--ap-nav-ink); }
.ap-account a .ap-ico { width: 20px; height: 20px; stroke-width: 1.7; }

.ap-topbar { padding: 11px 34px; min-height: 60px; font-size: 14px; }
.ap-topbar strong { font-weight: 600; }
.ap-crumbsep { margin: 0 8px; opacity: .6; }
.ac-topright { gap: 16px; }
.ac-langpick { position: relative; gap: 8px; color: var(--ap-text); }
.ac-langpick .ap-ico { width: 18px; height: 18px; stroke-width: 1.7; }
.ac-langpick select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 4px 20px 4px 0; font-size: 14px; cursor: pointer; max-width: 170px; text-overflow: ellipsis; }
.ac-langpick::after, .um-caret { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.ac-langpick::after { position: absolute; right: 5px; top: 50%; margin-top: -6px; pointer-events: none; }

.um { position: relative; padding-left: 16px; border-left: 1px solid var(--ap-line); }
.um > summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; color: var(--ap-text); }
.um > summary::-webkit-details-marker { display: none; }
.um-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-caret { flex: none; margin: -3px 3px 0 4px; }
.um-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 270px; max-width: calc(100vw - 32px); padding: 6px; background: var(--ap-panel); border: 1px solid var(--ap-line); border-radius: 12px; box-shadow: 0 14px 40px rgba(6, 30, 27, .18); }
.um-head { padding: 9px 11px 11px; border-bottom: 1px solid var(--ap-line); margin-bottom: 4px; }
.um-head b { display: block; color: var(--ap-text); font-weight: 600; }
.um-head small { color: var(--ap-muted); font-size: 12px; }
.ap-topbar .um-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; color: var(--ap-text); font-size: 13px; }
.ap-topbar .um-menu a:hover { background: var(--ap-soft); text-decoration: none; }
.ap-topbar .um-menu a.um-time { color: var(--ap-muted); font-size: 12px; }

.ap-heading { margin-bottom: 18px; }
.ap-heading h1 { font-weight: 700; letter-spacing: -.8px; margin-bottom: 4px; }
.ap-heading p { font-size: 15px; }
.ap-btn { padding: 10px 16px; border-radius: 8px; }

/* the voyage band of every voyage screen */
.vb { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; min-height: 112px; margin-bottom: 18px; padding: 20px 340px 20px 28px; border: 1px solid #d7e6ec; border-radius: 12px;
      background: url("../images/art/voyage-band.webp") no-repeat right center / auto 100%, linear-gradient(90deg, #edf5f8, #dceaf1); }
.vb small { display: block; color: var(--ap-muted); font-size: 13px; }
.vb-ship { padding-right: 28px; border-right: 1px solid #c3d6de; min-width: 0; }
.vb-ship small { font-size: 12px; letter-spacing: 1.4px; }
.vb-ship b { display: block; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.3px; }
.vb-date { display: flex; align-items: flex-start; gap: 12px; }
.vb-date .ap-ico { width: 20px; height: 20px; margin-top: 2px; stroke-width: 1.7; }
.vb-date b { display: block; font-size: 17px; font-weight: 600; }
.vb-state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .6px; white-space: nowrap; }
.vb-state i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.vb-statewrap small { max-width: 300px; margin-top: 6px; font-size: 12px; }
.vb.vy-active .vb-state { background: #dff4ec; border-color: #b8e3d5; color: #0a5f4f; }
.vb.vy-future .vb-state { background: #e1edfb; border-color: #bcd4f2; color: #1f5fae; }
.vb.vy-past .vb-state { background: #e7ecef; border-color: #cfd8dd; color: #4e5e66; }
.vb-change { background: rgba(255, 255, 255, .85); }

/* metric card with an icon: the icon comes last in the markup and is placed left */
.ap-metric { padding: 18px 20px; }
.ap-metric > span:first-child { color: var(--ap-text); font-size: 14px; font-weight: 600; }
.ap-metric > b { font-size: var(--ap-fs-metric); font-weight: 700; margin: 4px 0; }
.ap-metric > span:last-of-type:not(:first-child) { font-size: 13px; }
.ap-metrics { gap: 14px; margin-bottom: 18px; }
.ap-m { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
.ap-m.ap-attention { border-color: var(--ap-line); }
.ap-m > span, .ap-m > b { grid-column: 2; }
.ap-m > i { grid-column: 1; grid-row: 1 / span 3; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.ap-m > i .ap-ico { width: 26px; height: 26px; stroke-width: 1.7; }
.ap-m-green > i, .ap-phico { background: #dff3ec; color: #0b7a66; }
.ap-m-amber > i { background: #fdeedb; color: #d9820f; }
.ap-m-red > i { background: #fde3e3; color: #d8232f; }
.ap-m-blue > i { background: #e1f0fa; color: #1c7cc0; }

/* panel head with an icon */
.ap-panelhead h2, .ap-panelhead .ap-h2 { font-size: 18px; }
.ap-panelhead.ap-ph { justify-content: flex-start; flex-wrap: nowrap; gap: 14px; padding: 16px 22px; }
.ap-phico { width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.ap-phico .ap-ico { width: 24px; height: 24px; stroke-width: 1.7; }
.vy-two { margin-top: 0; gap: 16px; }
.vy-facts { padding: 2px 22px 8px; }
.vy-facts > div { grid-template-columns: 170px minmax(0, 1fr); padding: 13px 0; font-size: 14px; }
.vy-facts dd small { display: block; margin-top: 3px; color: var(--ap-muted); font-size: 12px; }
.ap-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #94a3a8; }
.ap-dot-ok { background: #16a06f; }
.ap-dot-warn { background: #e08a0d; }
.ap-txt-ok { color: #0b6e4f; font-weight: 600; }
.ap-txt-warn { color: #b86a00; font-weight: 600; }

/* a banner above the panels */
.ap-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 14px 20px; border: 1px solid #f2d9a6; border-radius: 12px; background: #fff6e6; }
.ap-banner > i { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fde7c2; color: #c8760a; }
.ap-banner > div { flex: 1; min-width: 0; }
.ap-banner b { display: block; color: #8f4f00; font-size: 15px; font-weight: 600; }
.ap-banner span { color: #5b4a2f; font-size: 13px; }
.ap-banner > a { flex: none; }

/* an empty state with a picture */
.ap-art { padding: 8px 22px 26px; text-align: center; }
.ap-art img { display: block; width: 200px; height: auto; max-width: 70%; margin: 0 auto 6px; }
.ap-art h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.ap-art p { margin: 0 0 14px; color: var(--ap-muted); font-size: 13px; }

.ap-pagefoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0 34px; padding: 14px 0 18px; }

:root[data-ap-theme="dark"] .vb { background-image: linear-gradient(90deg, #173230, #1b3a44); border-color: var(--ap-line); }

@media (max-height: 820px) and (min-width: 761px) { .ap-sidebar { padding-top: 14px; gap: 10px; } .ap-brand { font-size: 26px; } .ap-navitem { padding: 7px 14px; } .ap-navlabel { padding: 9px 14px 4px; } }
@media (max-width: 1240px) { .vb { padding-right: 240px; } .vb-ship { padding-right: 0; border-right: 0; flex-basis: 100%; } }
@media (max-width: 980px) {
    .vb { padding: 18px 20px; background-image: linear-gradient(90deg, #edf5f8, #dceaf1); min-height: 0; }
    .ap-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .ap-main { padding: 20px 16px; }
    .ap-sidebar { padding: 12px 16px; gap: 10px; }
    .ap-brand { padding: 0; font-size: 24px; }
    .ap-brand small { display: block; margin: 2px 0 0; font-size: 10px; letter-spacing: 3px; }
    .ap-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
    .ap-navlabel { grid-column: 1 / -1; padding: 10px 14px 4px; font-size: 11px; }
    .ap-account { padding: 12px 6px 2px; }
    .ap-topbar { padding: 9px 16px; min-height: 0; }
    .ap-pagefoot { margin: 0 16px; }
    .ap-heading h1 { font-size: 28px; }
    .vb-date { flex-basis: 100%; }
    .vy-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .ap-banner { flex-wrap: wrap; }
    .ap-banner > div { flex-basis: calc(100% - 60px); }
}
@media (max-width: 440px) {
    .ap-nav { grid-template-columns: minmax(0, 1fr); }
    .ap-metrics { grid-template-columns: minmax(0, 1fr); }
    .ap-heading h1 { font-size: 26px; }
    .vb-ship b { font-size: 24px; }
    .um-name, .ap-crumb-first { display: none; }
    .um { padding-left: 10px; }
    .ac-langpick select { max-width: 112px; }
}
@media print { .vb, .ap-banner { display: none !important; } }

/* ── DESIGN 11.2026, the screens (Central 0.2.53) ───────────────────────────────────────────────── */
.ap-flip { transform: rotate(180deg); }
.ap-m-grey > i { background: #e9eef0; color: #5b6f76; }
.ap-m-when { font-size: 24px !important; white-space: nowrap; }
.ap-dot-bad { background: #d8232f; }
.ap-txt-bad { color: #b3202a; font-weight: 600; }
.ap-phico.ap-m-blue { background: #e1f0fa; color: #1c7cc0; }
.ap-phico.ap-m-red { background: #fde3e3; color: #d8232f; }

/* a status with a coloured dot */
.ap-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: #e9eef0; color: #4e5e66; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ap-pill > i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ap-pill-ok { background: #dff4ec; color: #0a6b52; }
.ap-pill-warn { background: #fdeed8; color: #b05f00; }
.ap-pill-bad { background: #fde3e3; color: #b3202a; }
.ap-pill-info { background: #e1f0fa; color: #15649c; }

/* tables, tabs, search, notes */
.ap-table th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--ap-muted); background: #f3f7f8; }
.ap-table td small { font-size: 12px; }
.cs-tabs { gap: 28px; margin-bottom: 18px; }
.cs-tabs a { padding: 10px 2px; font-size: 15px; }
.cs-tabs a[aria-current="page"] { color: var(--ap-accent-ink); }
.ap-input, .ap-form input, .ap-form select, .ap-form textarea, .ap-field input, .ap-field select { border-radius: 8px; min-height: 40px; }
.ap-search { position: relative; display: flex; align-items: center; flex: 1; min-width: 200px; margin: 0; border: 1px solid var(--ap-line); border-radius: 8px; background: var(--ap-panel); }
.ap-search > .ap-ico, .ap-search button { flex: none; width: 38px; height: 38px; padding: 10px; border: 0; background: transparent; color: var(--ap-muted); cursor: pointer; }
.ap-search button .ap-ico { display: block; width: 18px; height: 18px; }
.ap-search input:not([type=hidden]) { flex: 1; min-width: 0; height: 38px; padding: 0 12px 0 0; border: 0; outline: 0; background: transparent; color: var(--ap-text); font: inherit; font-size: 14px; }
.ap-search:focus-within { border-color: var(--ap-accent); }
.ap-infobar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 16px; border: 1px solid #d9e8f2; border-radius: 10px; background: #f1f7fb; color: var(--ap-muted); font-size: 13px; }
.ap-infobar > .ap-ico { flex: none; color: #1c7cc0; }
.ap-footnote { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; color: var(--ap-muted); font-size: 12px; }
.ap-footnote .ap-ico { flex: none; margin-top: 1px; }
.co-box { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid var(--ap-line); border-radius: 12px; background: var(--ap-panel); }
.co-box i { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #e4f3f0; color: var(--ap-accent); }
.co-box b { display: block; font-weight: 600; }
.co-box small { color: var(--ap-muted); font-size: 12px; }
.ap-notice { border-radius: 10px; margin-bottom: 18px; }
.ap-notice.ap-warn { border: 1px solid #f2d9a6; background: #fff6e6; color: #8f4f00; }

/* the pager */
.ap-tablewrap { position: relative; }   /* a screen-reader label in a table must not push the page wider than the phone */
.ap-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-top: 1px solid var(--ap-line); color: var(--ap-muted); font-size: 13px; }
.ap-pager-btns { display: flex; align-items: center; gap: 5px; }
.ap-pager button { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--ap-line); border-radius: 7px; background: var(--ap-panel); color: var(--ap-text); font: inherit; cursor: pointer; }
.ap-pager button:hover:not([disabled]) { border-color: var(--ap-accent); }
.ap-pager button[disabled] { opacity: .45; cursor: default; }
.ap-pager button[aria-current] { background: var(--ap-accent); border-color: var(--ap-accent); color: #fff; }
tr.ap-pg-off { display: none; }

/* empty states */
.ap-art-lg { padding: 26px 22px 30px; }
.ap-art-lg img { width: 270px; }
.ap-art-lg h3 { font-size: 24px; }
.ap-art-lg p { font-size: 15px; max-width: 640px; margin-left: auto; margin-right: auto; }
.ap-art-sm { padding: 30px 18px; }
.ap-art-ico { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; border-radius: 50%; background: #e9eef0; color: #5b6f76; }
.ap-art-ico .ap-ico { width: 28px; height: 28px; stroke-width: 1.6; }
.ap-art-bad { background: #fde3e3; color: #d8232f; }
.ap-art-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px auto 0 !important; padding-top: 14px; border-top: 1px solid var(--ap-line); font-size: 13px !important; }
.ap-art-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ap-line); font-size: 13px; color: var(--ap-muted); }
.ap-art-chip { display: inline-flex; align-items: center; gap: 10px; }
.ap-art-chip > i { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.ap-art-chip.ap-m-amber > i { background: #fdeedb; color: #d9820f; }
.ap-art-chip.ap-m-blue > i { background: #e1f0fa; color: #1c7cc0; }

/* Voyages */
.vy-group { margin: 18px 0 10px; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ap-text); }
.vc { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 18px 24px; margin-bottom: 12px; padding: 18px 22px; border: 1px solid var(--ap-line); border-radius: 12px; background: var(--ap-panel); }
.vc.vc-sel { border-color: var(--ap-accent); box-shadow: 0 0 0 1px var(--ap-accent); }
.vc-ship { display: block; font-size: 20px; font-weight: 700; }
.vc-date { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 8px; }
.vc-date .ap-ico { width: 18px; height: 18px; margin-top: 2px; }
.vc-date b { display: block; font-size: 15px; font-weight: 600; }
.vc-date small { color: var(--ap-muted); font-size: 13px; }
.vc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vc-cur { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--ap-accent); border-radius: 8px; color: var(--ap-accent-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.vc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vs { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vs > i { width: 46px; height: 46px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.vs > i .ap-ico { width: 22px; height: 22px; stroke-width: 1.7; }
.vs span { display: block; color: var(--ap-muted); font-size: 13px; }
.vs b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.vs-green > i { background: #dff3ec; color: #0b7a66; } .vs-amber > i { background: #fdeedb; color: #d9820f; } .vs-red > i { background: #fde3e3; color: #d8232f; } .vs-blue > i { background: #e1f0fa; color: #1c7cc0; }
.vc-hero { grid-template-columns: minmax(0, 1fr) auto; padding: 22px 26px; border-color: var(--ap-accent); background: url("../images/art/voyage-band.webp") no-repeat right center / auto 100%, linear-gradient(90deg, #fff 45%, #eaf3f7); }
.vc-hero .vc-id { grid-column: 1 / -1; padding-right: 300px; }
.vc-hero .vc-ship { font-size: 28px; }
.vc-hero .vc-stats { max-width: 760px; padding-top: 16px; border-top: 1px solid var(--ap-line); }
.vc-hero .vc-go { align-self: end; }
.vc-hero .vs { background: transparent; }
.vy-past-table td { vertical-align: middle; }
.vy-rowship { display: block; font-weight: 700; }
.vy-rowdate { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.vy-pickbtn { border-color: var(--ap-accent); color: var(--ap-accent-ink); font-weight: 600; }
.vy-row-sel td { background: var(--ap-soft); }

/* Manifest */
.mf-panel { margin-bottom: 12px; }
.mf-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px 12px; }
.mf-tools .ap-search { flex: 0 1 430px; }
.mf-mask { display: inline-flex; align-items: center; gap: 7px; color: var(--ap-muted); font-size: 12px; }
.mf-acts { margin-left: auto; }
.mf-filters { padding: 0 18px 10px; }
.ac-filters a { padding: 6px 14px; font-size: 13px; }
.mf-facets { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0 18px 14px; }
.mf-facet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mf-facet > span:first-child { margin-right: 4px; color: var(--ap-muted); font-size: 13px; }
.mf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--ap-line); border-radius: 999px; background: var(--ap-panel); color: var(--ap-text); font-size: 12px; text-decoration: none; }
.mf-chip b { padding: 0 6px; border-radius: 999px; background: #e9eef0; font-weight: 600; font-size: 11px; }
a.mf-chip:hover, a.mf-chip[aria-current] { border-color: var(--ap-accent); color: var(--ap-accent-ink); }
.ac-issue { padding: 3px 9px; font-size: 12px; }
.ac-tag { padding: 2px 9px; font-size: 12px; }
.ac-gridwrap { max-height: none; min-height: 0; border-top: 1px solid var(--ap-line); }
.ac-grid { font-size: 13px; }
.ac-grid th { padding: 10px 12px; background: #f3f7f8; text-transform: none; letter-spacing: 0; font-size: 13px; }
.ac-grid td { padding: 9px 12px; vertical-align: middle; }
.ac-grid tr.ac-severe td { background: #fff3f3; }
.ac-grid tr.ac-warn td { background: #fffaf0; }
.ac-grid tr.ac-newcabin td { border-top: 1px solid var(--ap-line); }
.ac-miss { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #fde3e3; font-size: 12px; }

/* Bookings */
.rc-split.rc-wide.bk-split { grid-template-columns: minmax(380px, 2fr) minmax(0, 3fr); }
.rc-list, .rc-panel { border-radius: 12px; }
.rc-listtools { padding: 12px; background: transparent; }
.bk-toolrow { display: flex; align-items: center; gap: 10px; }
.bk-toolrow form { flex: 1; min-width: 0; }
.bk-order { display: inline-flex; align-items: center; gap: 6px; color: var(--ap-muted); font-size: 12px; white-space: nowrap; }
.rc-listtools form.ap-search { display: flex; gap: 0; }
.bk-item { display: grid; grid-template-columns: minmax(90px, 1fr) auto; gap: 2px 10px; padding: 11px 14px; }
.bk-who b { display: block; font-weight: 700; font-size: 15px; }
.bk-who small { color: var(--ap-muted); font-size: 13px; }
.bk-mid { grid-column: 1; color: var(--ap-muted); font-size: 12px; }
.bk-state { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; }
.bk-time { grid-column: 2; grid-row: 2; justify-self: end; color: var(--ap-muted); font-size: 12px; white-space: nowrap; }
.rc-item .bk-state .ap-status { margin-left: 0; }
.bk-head { padding: 16px 20px 12px; }
.bk-head > small { color: var(--ap-muted); font-size: 12px; letter-spacing: 1.2px; }
.bk-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.bk-title h2 { margin: 0 6px 0 0; font-size: 26px; font-weight: 700; }
.bk-show { margin-left: auto; }
.bk-head p { margin: 4px 0 0; color: var(--ap-muted); font-size: 14px; }
.bk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin: 0 20px; border: 1px solid var(--ap-line); border-radius: 10px; }
.bk-facts > div { display: flex; gap: 9px; padding: 10px 12px; border-left: 1px solid var(--ap-line); min-width: 0; }
.bk-facts > div:first-child { border-left: 0; }
.bk-facts .ap-ico { flex: none; margin-top: 2px; color: var(--ap-muted); }
.bk-facts span { min-width: 0; color: var(--ap-muted); font-size: 12px; }
.bk-facts b { display: block; color: var(--ap-text); font-size: 13px; font-weight: 600; }
.bk-facts small { display: block; font-size: 11px; }
.bk-h3 { margin: 16px 20px 8px; font-size: 16px; font-weight: 700; }
.bk-guests { margin: 0 20px; border: 1px solid var(--ap-line); border-radius: 10px; }
.bk-notes { margin: 0 20px; padding: 10px 12px; border: 1px solid var(--ap-line); border-radius: 10px; white-space: pre-wrap; font-size: 13px; }
.bk-banner { margin: 14px 20px 0; text-align: left; }
.bk-info { margin: 12px 20px 18px; }

/* Ship manifest */
.sm-meta { margin-left: 16px; color: var(--ap-muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.ap-back2 { margin-bottom: 14px; }
.pn-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; }
.pn-tools h2 { margin: 0; font-size: 20px; font-weight: 700; flex: 1 1 200px; }
.pn-tools .ap-search { flex: 0 1 300px; }
.sm-table thead tr:first-child th[colspan] { text-align: left; border-bottom: 1px solid var(--ap-line); }
.sm-tag { display: inline-block; margin-top: 3px; padding: 1px 8px; font-weight: 500; }
.sm-diff { font-size: 13px; }
.sm-diff b { font-weight: 600; }
.sm-table tr.sm-fixed td { background: #fff7e8; }
.sm-table tr.sm-fixed td.sm-ship { background: #e6f4ef; color: #0a5f4f; font-weight: 600; }
.sm-table tr.sm-added td { background: #e6f4f2; }
.sm-table tr.sm-missing td { background: #fdeaea; }
.sm-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; max-width: 760px; margin: 14px auto 18px; padding: 14px 20px; border: 1px solid var(--ap-line); border-radius: 12px; text-align: left; }
.sm-facts > div { display: flex; align-items: center; gap: 12px; }
.sm-facts i { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #e9f1f3; color: var(--ap-muted); }
.sm-facts span { display: block; color: var(--ap-muted); font-size: 13px; }
.sm-facts b { font-size: 16px; font-weight: 700; }

/* Cabins */
.rc-split.cb-split { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); margin-bottom: 14px; }
.cb-split .rc-item small { line-height: 1.35; }
.cb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--ap-line); }
.cb-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.cb-head p { margin: 2px 0 0; color: var(--ap-muted); font-size: 13px; }
.cb-head .ap-toolbar { flex: 1 1 420px; justify-content: flex-end; margin: 0; }
.cb-head .ap-search { flex: 1 1 200px; max-width: 340px; }
.cb-bar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-bottom: 14px; }
.cb-bar .ap-banner { flex: 1 1 300px; margin: 0; padding: 8px 16px; }
.cb-bar .ap-banner > i { width: 34px; height: 34px; }
.cb-bar .ap-actions { margin-left: auto; }
.cb-legend { padding: 10px 18px; font-size: 13px; }
.cb-tiles { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); padding: 12px 18px 18px; }
.cb-tile { position: relative; min-height: 76px; padding: 8px 11px; border-radius: 9px; }
.cb-tile b { font-family: inherit; font-size: 16px; font-weight: 700; }
.cb-tile small { color: var(--ap-muted); font-size: 12px; }
.cb-tile .cb-occ { font-size: 12px; font-weight: 600; }
.cb-mark { position: absolute; top: 8px; right: 9px; width: 16px; height: 16px; color: inherit; opacity: .8; }
.cb-free, i.cb-free { background: #effaf6; border-color: #bfe6d8; }
.cb-free .cb-occ { color: #0a6b52; }
.cb-part, i.cb-part { background: #fff6e6; border-color: #f4d9a4; }
.cb-part .cb-occ { color: #b05f00; }
.cb-full, i.cb-full { background: #dff3f4; border-color: #a8dcdf; }
.cb-full .cb-occ { color: #0b5d62; }
.cb-over, i.cb-over { background: #fde8e8; border-color: #f4b8bc; }
.cb-over b, .cb-over .cb-occ, .cb-over .cb-mark { color: #b3202a; }
.cb-foot { justify-content: space-between; flex-wrap: wrap; }
.cb-foot > span { display: inline-flex; align-items: center; gap: 8px; }
.cb-foot .ap-ico { flex: none; color: #1c7cc0; }
.rp-two { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.rp-two > * { min-width: 0; }
.rp-tools { padding: 12px 18px 2px; }
.rp-tools .ap-toolbar { margin-bottom: 10px; }
.rp-tools .ap-search { flex: 1 1 200px; }
.rp-total td { background: #f3f7f8; font-weight: 700; }
.rp-book { padding: 0; margin-right: 8px; text-decoration: underline; }
.cb-report tr.cb-deckrow td { background: #eef3f5; font-weight: 700; }
.cb-report tr.cb-subtotal td { background: #f7fafb; color: var(--ap-text); font-size: 13px; font-weight: 700; }
.cb-report tr.cb-total td { background: #eef3f5; border-top: 0; }
.pr-head { display: none; }

/* Imports */
.im-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-bottom: 18px; }
.im-two > .ap-panel { margin: 0; min-width: 0; }
.im-two-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.im-noright { margin-bottom: 18px; }
.im-shiprow { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; }
.im-drop { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; border: 1.5px dashed #c5d3d7; border-radius: 10px; background: #f7fafb; cursor: pointer; text-align: left; }
.im-drop:hover { border-color: var(--ap-accent); }
.im-drop > .ap-ico { width: 30px; height: 30px; stroke-width: 1.5; color: var(--ap-muted); }
.im-drop b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.im-drop small { color: var(--ap-muted); font-size: 13px; }
.im-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.im-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.im-complete { flex: 1 1 260px; align-items: flex-start; }
.im-complete small { display: block; color: var(--ap-muted); font-size: 12px; }
.im-note { margin: 10px 0 0 !important; color: var(--ap-muted); font-size: 12px; }
.im-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 10px; background: #e6f5ef; font-size: 13px; }
.im-strip-bad { background: #fdeaea; }
.im-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 16px; padding: 14px 4px; border-bottom: 1px solid var(--ap-line); }
.im-fields span { display: block; color: var(--ap-muted); font-size: 13px; }
.im-fields b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.im-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; margin: 12px 0; }
.im-mini { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--ap-line); border-radius: 10px; }
.im-mini > i { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.im-mini.ap-m-green > i { background: #dff3ec; color: #0b7a66; } .im-mini.ap-m-amber > i { background: #fdeedb; color: #d9820f; } .im-mini.ap-m-blue > i { background: #e1f0fa; color: #1c7cc0; } .im-mini.ap-m-red > i { background: #fde3e3; color: #d8232f; }
.im-mini span { display: block; color: var(--ap-muted); font-size: 12px; line-height: 1.2; }
.im-mini b { font-size: 18px; font-weight: 700; }
.im-rowacts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.im-rowacts form { margin: 0; }
.im-back { margin-bottom: 12px; }
.im-filecard { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 20px; }
.im-file { flex: 1 1 260px; min-width: 0; }
.im-file b { display: block; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.im-file span, .im-file small { display: block; color: var(--ap-muted); font-size: 13px; }
.im-result { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid #bfe3d5; border-radius: 10px; background: #e6f5ef; color: #0a6b52; }
.im-result small { display: block; color: var(--ap-muted); font-size: 12px; }
.im-result.im-bad { border-color: #f4b8bc; background: #fdeaea; color: #b3202a; }
.im-col td:first-child { font-family: inherit; font-size: 13px; font-weight: 400; }
.im-inner { margin: 10px 14px 14px; }
.im-count { margin-left: auto; }

/* Users & access */
.ua-adminonly { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 0; vertical-align: middle; }
.ua-split, .rc-split.ua-split { grid-template-columns: minmax(280px, 1fr) minmax(0, 2.2fr); }
.rc-listhead { padding: 16px 18px 12px; border-bottom: 1px solid var(--ap-line); }
.rc-listhead h2 { margin: 0; font-size: 19px; font-weight: 700; }
.rc-listhead p { margin: 4px 0 0; color: var(--ap-muted); font-size: 13px; }
.ua-item { padding: 12px 14px; }
.rc-item.ua-item .st-av { width: 44px; height: 44px; flex-basis: 44px; font-size: 15px; }
.ua-item .rc-main b { font-size: 15px; }
.ua-item .rc-main small { font-size: 13px; }
.ua-state { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ap-muted); font-size: 12px; text-align: right; }
.ua-state i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #94a3a8; }
.ua-ok { color: #0a6b52; } .ua-ok i { background: #16a06f; }
.ua-warn { color: #b05f00; } .ua-warn i { background: #e08a0d; }
.ua-bad { color: #b3202a; } .ua-bad i { background: #d8232f; }
.rc-who .st-av { width: 58px; height: 58px; flex-basis: 58px; font-size: 19px; }
.rc-who h2 { font-size: 22px; font-weight: 700; }
.ua-sec2 { padding: 14px 22px 16px; border-bottom: 1px solid var(--ap-line); }
.ua-sec2:last-child, .ua-sec-last { border-bottom: 0; }
.ua-sec2 h3 { margin: 0 0 4px; color: var(--ap-muted); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; }
.ua-sec2 h3 .ap-link { padding: 0; font-size: 12px; letter-spacing: 0; }
.ua-sec2 > p { margin: 0 0 10px; color: var(--ap-muted); font-size: 13px; }
.ua-rolepick { position: relative; max-width: 460px; }
.ua-rolepick .ap-ico { position: absolute; left: 12px; top: 12px; color: var(--ap-muted); pointer-events: none; }
.ua-rolepick select { width: 100%; padding-left: 38px; }
.ua-ships { gap: 8px; }
.ua-shiplist { margin-left: 26px; }
.ua-sec2 .rc-foot, form > .rc-foot { background: transparent; }
.ua-acts2 { padding: 8px 0 0; }
.ua-note { margin: 12px 0 0; }
.ua-what::first-letter { text-transform: uppercase; }
.ua-what small { text-transform: none; }
.ua-person { display: inline-flex; align-items: center; gap: 10px; }
.ua-person .st-av { width: 32px; height: 32px; flex-basis: 32px; font-size: 11px; }
.su-closed { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; padding: 16px 20px 20px; }
.su-proms { display: grid; gap: 4px; padding: 12px 16px; border-radius: 10px; background: #f3f8f8; }
.su-prom { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; }
.su-prom i { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #dff3ec; color: #0b7a66; }
.su-form { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr); gap: 14px; align-content: start; }
.su-form .ap-btn { grid-column: 2; justify-self: end; }
.su-open { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 16px 20px 20px; padding: 18px 20px; border: 1px solid #f2d9a6; border-radius: 12px; background: #fff6e6; }
.su-who { display: flex; align-items: center; gap: 14px; flex: 1 1 240px; }
.su-who i { width: 56px; height: 56px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fde7c2; color: #c8760a; }
.su-who b { display: block; color: #b05f00; font-size: 17px; font-weight: 700; }
.su-who span { color: #5b4a2f; font-size: 13px; }
.su-facts, .su-flags { display: grid; gap: 8px; font-size: 13px; }
.su-facts > div, .su-flags > div { display: flex; align-items: flex-start; gap: 10px; }
.su-facts b { display: block; font-size: 14px; font-weight: 700; }
.su-facts small { color: var(--ap-muted); font-size: 12px; }
.su-open form { margin: 0; }
.su-close { background: #c8202c; border-color: #c8202c; color: #fff; font-weight: 600; }
.su-close:hover { background: #a81a24; border-color: #a81a24; color: #fff; }
.su-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.su-two > .ap-panel { min-width: 0; }
.su-running td { background: #e6f5ef; }

/* Settings */
.st-two { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.st-two > .ap-panel { margin: 0; min-width: 0; }
.st-cardhead { padding: 18px 24px 0; }
.st-cardhead h2 { margin: 0; font-size: 24px; font-weight: 700; }
.st-cardhead p { margin: 4px 0 0; color: var(--ap-muted); font-size: 15px; }
.st-adminonly { margin-left: 8px; border-radius: 999px; padding: 4px 12px; font-size: 13px; vertical-align: middle; }
.st-two .ap-pad { padding: 16px 24px 22px; }
.ap-form.ap-one { gap: 16px; }
.ap-form label { font-size: 14px; font-weight: 600; }
.ap-form label small { font-size: 13px; }
.ap-form label select, .ap-form label input { margin-top: 6px; }
.st-below { margin-top: 5px !important; }
.st-now { gap: 14px; padding: 12px 16px; border-radius: 10px; background: #eef5f5; }
.st-now i { width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #dff3ec; color: #0b7a66; }
.st-now span { color: var(--ap-muted); font-size: 13px; }
.st-now b { display: block; color: var(--ap-text); font-size: 15px; font-weight: 600; }
.st-side { padding: 20px 22px; }
.st-side h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.st-person { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ap-line); }
.st-person .ap-avatar { width: 66px; height: 66px; font-size: 22px; }
.st-person b { display: block; font-size: 16px; font-weight: 700; }
.st-person span, .st-person small { display: block; color: var(--ap-muted); font-size: 13px; }
.st-side > p { margin: 14px 0; color: var(--ap-muted); font-size: 14px; }
.st-sidenote { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #f1f5f6; color: var(--ap-muted); font-size: 13px; }
.st-sidenote i { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--ap-text); }
.st-explain { display: grid; gap: 14px; background: #f7fafb; }
.st-explain > div { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ap-line); }
.st-explain > div:last-child { padding-bottom: 0; border-bottom: 0; }
.st-explain i { width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.st-explain .ap-m-green i { background: #dff3ec; color: #0b7a66; } .st-explain .ap-m-blue i { background: #e1f0fa; color: #1c7cc0; } .st-explain .ap-m-amber i { background: #fdeedb; color: #d9820f; }
.st-explain b { display: block; font-size: 15px; font-weight: 700; }
.st-explain span { color: var(--ap-muted); font-size: 13px; }
.st-info { margin-bottom: 14px; }
.st-keychip { margin-left: auto; }
.st-service { padding: 16px 22px; }
.st-actions { padding: 12px 22px; }
.st-testsrv { padding: 6px 14px; border-radius: 999px; font-size: 13px; }

/* Account security */
.cp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 14px; }
.cp-two > .ap-panel { margin: 0; min-width: 0; }
.cp-form { display: grid; gap: 14px; }
.cp-field { font-size: 14px; font-weight: 600; }
.cp-field .ap-input { font-weight: 400; }
.cp-eyewrap { position: relative; display: block; margin-top: 6px; }
.cp-eyewrap .ap-input { width: 100%; padding-right: 44px; }
.cp-eye { position: absolute; top: 0; right: 0; width: 44px; height: 100%; border: 0; background: transparent; color: var(--ap-muted); cursor: pointer; }
.cp-rules { display: grid; gap: 6px; margin: 0; padding: 10px 14px; border-radius: 8px; background: #f0f6f5; list-style: none; color: var(--ap-muted); font-size: 13px; }
.cp-rules li { display: flex; align-items: center; gap: 10px; }
.cp-rules i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #b5c0c4; }
.cp-rules .cp-ok { color: #0a6b52; }
.cp-rules .cp-ok i { background: #16a06f; }
.cp-go { justify-self: start; padding: 12px 24px; font-size: 14px; }
.cp-code { display: flex; gap: 8px; margin-top: 6px; }
.cp-code input { width: 50px; min-width: 0; height: 54px; flex: 0 1 50px; padding: 0; border: 1px solid var(--ap-line); border-radius: 8px; background: var(--ap-panel); color: var(--ap-text); text-align: center; font: 600 20px var(--ap-mono); }
.cp-code input:focus { outline: 2px solid var(--ap-accent); outline-offset: 0; }
.cp-lost { margin: 16px 0 0; }
.cp-lost > i { width: 38px; height: 38px; }
.ap-authbody.ap-first { background: #f6fbfb url("../images/art/first-login-bg.webp") no-repeat center / cover; }
.ap-first .ap-authcard { max-width: 620px; background: #fff; box-shadow: 0 12px 40px rgba(6, 40, 40, .12); }
.ap-first .ap-authhead { padding-bottom: 0; background: transparent; border: 0; }
.ap-first .ap-authhead { display: none; }
.cp-brand { position: fixed; top: 18px; left: 40px; color: #0b4f4a; font-size: 26px; font-weight: 700; letter-spacing: -.6px; line-height: 1.1; }
.cp-brand small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 4px; }
@media (max-width: 980px) { .cp-brand { position: static; margin-bottom: 12px; } }
.cp-first { text-align: center; margin-bottom: 14px; }
.cp-first .cp-lock { width: 66px; height: 66px; margin-bottom: 8px; }
.cp-first small { color: var(--ap-muted); font-size: 12px; letter-spacing: 2px; }
.cp-first h1 { margin: 4px 0 6px; font-size: 26px; font-weight: 700; line-height: 1.2; }
.cp-first p { margin: 0; color: var(--ap-muted); font-size: 14px; }
.ap-first .cp-go { justify-self: stretch; justify-content: center; }
.cp-out { margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--ap-line); text-align: center; }
.cp-must { margin: 0; padding: 8px 14px; }
.cp-must > i { width: 30px; height: 30px; }
.so-ico { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; border-radius: 50%; background: #dff3ec; color: #0b7a66; }
.so-ico .ap-ico { width: 32px; height: 32px; stroke-width: 1.6; }

@media (max-width: 1240px) {
    .vc { grid-template-columns: minmax(0, 1fr) auto; }
    .vc-id { grid-column: 1 / -1; }
    .rc-split.rc-wide.bk-split { grid-template-columns: minmax(0, 1fr); }
    .su-closed, .su-two, .im-two-cols { grid-template-columns: minmax(0, 1fr); }
    .vc-hero .vc-id { padding-right: 200px; }
}
@media (max-width: 980px) {
    .im-two, .st-two, .cp-two, .rp-two { grid-template-columns: minmax(0, 1fr); }
    .rc-split.cb-split, .rc-split.ua-split, .ua-split { grid-template-columns: minmax(0, 1fr); }
    .cb-split .rc-list { display: flex; overflow-x: auto; }
    .cb-split .rc-item { flex: 0 0 210px; border-bottom: 0; border-right: 1px solid var(--ap-line); }
    .vc-hero { background-image: linear-gradient(90deg, #fff, #eef6f9); }
    .vc-hero .vc-id { padding-right: 0; }
}
@media (max-width: 760px) {
    .vc { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .vc-stats { grid-template-columns: 1fr 1fr; }
    .vc-go .ap-btn { width: 100%; justify-content: center; }
    table.ap-stack thead { display: none; }
    table.ap-stack, table.ap-stack tbody, table.ap-stack tr, table.ap-stack td { display: block; width: 100%; }
    table.ap-stack tr.ap-pg-off { display: none; }
    table.ap-stack tr { padding: 10px 14px; border-bottom: 1px solid var(--ap-line); }
    table.ap-stack td { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; border: 0; text-align: left; }
    table.ap-stack td:first-child { display: block; }
    table.ap-stack td[data-label]::before { content: attr(data-label); color: var(--ap-muted); font-size: 13px; }
    table.ap-stack td.ap-right { display: block; padding-top: 8px; }
    .vy-pickbtn { width: 100%; justify-content: center; }
    .mf-acts { margin-left: 0; }
    .mf-tools .ap-search { flex: 1 1 100%; }
    .bk-facts { grid-template-columns: 1fr 1fr; }
    .bk-facts > div { border-left: 0; }
    .bk-show { margin-left: 0; }
    .sm-meta { display: block; margin: 4px 0 0; }
    .pn-tools .ap-search { flex: 1 1 100%; }
    .cb-head .ap-toolbar { justify-content: flex-start; }
    .cb-tiles { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); padding: 10px 12px 14px; }
    .ap-heading .co-box { width: 100%; }
    .su-open { margin: 12px; padding: 14px; }
    .su-form { grid-template-columns: minmax(0, 1fr); }
    .su-form .ap-btn { grid-column: 1; justify-self: stretch; justify-content: center; }
    .ua-adminonly { display: flex; width: fit-content; margin: 6px 0 0; }
    .st-cardhead { padding: 16px 16px 0; }
    .st-two .ap-pad { padding: 12px 16px 16px; }
    .cs-tabs { gap: 18px; }
    .st-service { padding: 14px 16px; }
    .st-actions { padding: 12px 16px; }
}
@media (max-width: 440px) {
    .bk-facts { grid-template-columns: minmax(0, 1fr); }
    .cp-code { gap: 5px; }
    .cp-code input { height: 46px; }
    .im-shiprow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .ap-art-lg h3 { font-size: 20px; }
    .ap-art-lg img { width: 200px; }
}
@media print {
    tr.ap-pg-off { display: table-row !important; }
    .ap-pager, .no-print { display: none !important; }
    body.ap-body, .ap-main { background: #fff !important; padding: 0 !important; }
    .pr-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-bottom: 10px; }
    .pr-brand { color: #0b4f4a; font-size: 22px; font-weight: 700; line-height: 1.1; }
    .pr-brand small { display: block; font-size: 9px; font-weight: 400; letter-spacing: 3px; }
    .pr-when { color: #333; font-size: 12px; text-align: right; }
    .pr-head h1 { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #999; font-size: 26px; font-weight: 700; }
    .pr-voy { grid-column: 1 / -1; margin: 0; font-size: 14px; }
    .pr-sum { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; padding-bottom: 8px; border-bottom: 1px solid #999; font-size: 12px; }
    .rp-two { display: block; }
    .ap-panel { border: 0; }
    .ap-table th { background: #eee !important; }
    .ap-footnote { color: #333; }
}

/* the time zone and the time now (_Clock) */
.tb-clock { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid #4fb98a; border-radius: 8px; background: #a9e6c8; color: #000; font-size: 13px; white-space: nowrap; text-decoration: none; }
.tb-clock:hover { border-color: #0b6f64; }
.ap-topbar a.tb-clock { color: #000; }
.ap-topbar a.tb-clock:hover { text-decoration: none; }
.tb-clock b { color: #000; font-size: 14px; font-weight: 700; }
.tb-offset { color: #000; font-weight: 600; }
@media (max-width: 1100px) { .tb-name { display: none; } }
@media (max-width: 440px) { .tb-date { display: none; } .tb-clock { padding: 4px 8px; } .ac-topright { flex-wrap: nowrap; gap: 8px; } .ac-langpick select { max-width: 72px; } .um { padding-left: 8px; } }

/* One Bookings screen (0.2.56): the ship's columns, the first two stay in view while the rest scrolls; a booking's details open beside the list */
.mf-from { margin: 0; }
.mf-from .ap-input { width: auto; min-width: 150px; }
.mf-grid tbody tr[data-href] { cursor: pointer; }
.mf-grid th, .mf-grid td { white-space: nowrap; }
.mf-grid td.ac-wrap { white-space: normal; min-width: 220px; }
.mf-grid th:nth-child(1), .mf-grid td:nth-child(1) { position: sticky; left: 0; min-width: 118px; max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
.mf-grid th:nth-child(2), .mf-grid td:nth-child(2) { position: sticky; left: 118px; min-width: 78px; max-width: 78px; box-shadow: 1px 0 0 var(--ap-line); }
.mf-grid td:nth-child(-n+2) { z-index: 1; background: var(--ap-panel); }
.mf-grid th:nth-child(-n+2) { z-index: 3; }
.mf-grid tr.ac-newbook td { border-top: 1px solid #c9d6da; }
.mf-grid .mf-c0 { border-left: 2px solid var(--ap-line); }
.mf-grid tr.ap-row-on td { background: var(--ap-soft); }
.mf-grid tr.ac-severe:hover td, .mf-grid tr.ac-warn:hover td { filter: brightness(.98); }
.mf-ref { color: var(--ap-accent-ink); text-decoration: none; }
.mf-ref:hover { text-decoration: underline; }
.bd-back { position: fixed; inset: 0; z-index: 800; background: rgba(8, 44, 42, .35); }
.bd-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 810; width: min(680px, 100%); overflow-y: auto; background: var(--ap-panel); box-shadow: -12px 0 40px rgba(6, 30, 27, .22); }
.bd-head { position: relative; padding: 18px 20px 12px; }
.bd-head > small { color: var(--ap-muted); font-size: 12px; letter-spacing: 1.2px; }
.bd-head h2 { margin: 2px 0 8px; font-size: 26px; font-weight: 700; }
.bd-head p { margin: 8px 0 0; color: var(--ap-muted); font-size: 14px; }
.bd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bd-x { position: absolute; top: 10px; right: 14px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--ap-muted); font-size: 26px; line-height: 1; text-decoration: none; }
.bd-x:hover { background: var(--ap-bg); color: var(--ap-text); }
.bd-panel .bk-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bd-panel .bk-facts > div:nth-child(4) { border-left: 0; }
.bd-panel .bk-facts > div:nth-child(n+4) { border-top: 1px solid var(--ap-line); }
@media (max-width: 760px) {
    .mf-from, .mf-from .ap-input { width: 100%; }
    .bd-panel .bk-facts { grid-template-columns: 1fr 1fr; }
    .bd-panel .bk-facts > div { border-left: 0; border-top: 1px solid var(--ap-line); }
    .bd-panel .bk-facts > div:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 440px) {
    .mf-grid th:nth-child(2), .mf-grid td:nth-child(2) { position: static; box-shadow: none; }
    .mf-grid td:nth-child(2) { background: inherit; }
}
@media print {
    .bd-back, .bd-panel { display: none !important; }
    .mf-grid th, .mf-grid td { position: static !important; }
}
.mf-none { border-top: 1px solid var(--ap-line); }
.ap-btn.ap-disabled { background: #e9eef0; border-color: #e9eef0; color: var(--ap-muted); }
/* 0.2.58: the headings of the Desktop's Manifest Import template — red = mandatory for the ship, light blue = optional (as in the Excel) */
.mf-grid th.mf-req { background: #d92d2d; color: #fff; }
.mf-grid th.mf-opt { background: #cfe8f2; color: #12313b; }
.mf-grid th:nth-child(2), .mf-grid td:nth-child(2) { left: 118px; min-width: 112px; max-width: 112px; }
.mf-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 16px 8px; font-size: 12.5px; color: var(--ap-muted); }
.mf-key { display: inline-flex; align-items: center; gap: 6px; color: var(--ap-text); font-weight: 600; }
.mf-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.mf-sw.mf-req { background: #d92d2d; }
.mf-sw.mf-opt { background: #cfe8f2; box-shadow: inset 0 0 0 1px #a9cfdf; }
/* 0.2.59: import preview + column matching */
.ip-card .ap-status { align-self: center; }
.ip-acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.ip-acts form { margin: 0; }
.ip-field { font-family: var(--ap-mono); font-size: 12.5px; }
.ip-absent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px 14px; font-size: 12.5px; color: var(--ap-muted); }
.ip-chip { padding: 2px 8px; border-radius: 6px; background: #eef3f5; color: var(--ap-text); font-family: var(--ap-mono); font-size: 12px; }
.ip-chip-bad { background: var(--ap-bad-bg); color: var(--ap-bad); font-weight: 600; }
.ip-list { margin: 0; padding: 10px 16px 14px 34px; font-size: 13px; max-height: 360px; overflow: auto; }
.ip-list li { margin: 3px 0; }
.im-wait { align-items: center; }
.im-wait > span { flex: 1 1 auto; }
.im-wait small { display: block; opacity: .8; }
.im-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cm-from { margin-bottom: 16px; }
.cm-table .cm-input { width: 100%; min-width: 170px; }
.cm-input.cm-suggest { border-color: #e2b04a; background: #fff8e8; }
.cm-name { font-family: var(--ap-mono); font-weight: 600; }
.cm-req { margin-left: 8px; padding: 1px 6px; border-radius: 5px; background: #d92d2d; color: #fff; font-size: 11px; font-weight: 600; }
.cm-ex { color: var(--ap-muted); font-size: 12.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 24px; }
.ip-problems td.ac-wrap { white-space: normal; min-width: 240px; }
.ip-problems .ac-issue { white-space: normal; }
/* 0.2.59: four number cards need ~1240 px of window; below that two per row (each page, until the phone layout takes over at 980 px) */
@media (min-width: 981px) and (max-width: 1240px) { .ap-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 0.2.63: column matching by letter */
.cm-letter { display: inline-block; min-width: 22px; margin-right: 8px; padding: 1px 5px; border-radius: 5px; background: #e6eef1; color: var(--ap-text); font-family: var(--ap-mono); font-size: 11.5px; font-weight: 700; text-align: center; }
.cm-table .cm-input { width: 64px; min-width: 0; text-transform: uppercase; text-align: center; font-family: var(--ap-mono); font-weight: 700; }
.cm-ex b { display: block; font-weight: 600; color: var(--ap-text); font-size: 12.5px; }
.cm-ex small { display: block; }
.cm-moved td { background: var(--ap-bad-bg); }
/* 0.2.64: matching templates */
.ip-set { display: flex; align-items: center; gap: 8px; margin: 0; }
.ip-set label { font-size: 12.5px; color: var(--ap-muted); white-space: nowrap; }
.ip-set select { min-width: 170px; }
.cm-sets td { vertical-align: middle; }
.cm-sets .cm-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cm-sets .cm-acts form { margin: 0; }
.cm-newset { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; }
.cm-newset .ap-input { max-width: 320px; }
.cm-setname { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.cm-setname .ap-input { max-width: 360px; font-weight: 600; }
/* 0.2.65: Imports & sources in tabs, the upload in numbered steps; headings that read as headings */
.im-page .ap-panelhead h2 { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.im-page .cs-tabs a { font-size: 15px; }
.im-page .cs-tabs a[aria-current="page"] { font-weight: 700; }
.im-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ap-line); }
.im-step:first-child { padding-top: 2px; }
.im-step-last { border-bottom: 0; padding-bottom: 0; }
.im-num { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ap-accent); color: #fff; font-size: 14px; font-weight: 700; }
.im-stepbody { min-width: 0; }
.im-stepbody h3 { margin: 4px 0 10px; font-size: 15.5px; font-weight: 700; color: var(--ap-text); }
.im-stephint { margin: -6px 0 10px; color: var(--ap-muted); font-size: 13px; }
.im-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; }
.im-field > span { display: block; margin-bottom: 4px; color: var(--ap-muted); font-size: 13px; }
.im-stepbody .im-complete { margin-top: 12px; font-weight: 600; }
.im-warnline { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: var(--ap-warn-bg); color: var(--ap-warn); font-size: 12.5px; }
.im-warnline .ap-ico { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.im-stepbody .im-submit { margin-top: 0; }
.im-stepbody .im-submit p { flex: 1 1 220px; margin: 0; color: var(--ap-muted); font-size: 13px; }
.im-callout { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid #bfe3d5; border-radius: 10px; background: var(--ap-good-bg); color: var(--ap-good); }
.im-callout > .ap-ico { width: 26px; height: 26px; flex: none; stroke-width: 1.8; }
.im-callout b { display: block; font-size: 15px; font-weight: 700; }
.im-callout span { display: block; font-size: 13px; }
.im-callout-bad { border-color: #f4b8bc; background: var(--ap-bad-bg); color: var(--ap-bad); }
.im-callout-warn { border-color: #f0d9a8; background: var(--ap-warn-bg); color: var(--ap-warn); }
.im-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.im-minis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.im-lastacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.im-tech { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--ap-line); font-size: 13px; }
.im-tech summary { cursor: pointer; color: var(--ap-muted); font-weight: 600; }
.im-tech p { margin: 8px 0 0; font-family: var(--ap-mono); font-size: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.im-summary { padding: 0 22px; }
.im-sumrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; padding: 14px 0; border-bottom: 1px solid var(--ap-line); }
.im-sumrow:last-child { border-bottom: 0; }
.im-sumhead { margin: 0; font-size: 15px; font-weight: 700; }
.im-sumbody { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.im-sumitem { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; }
.im-sumitem b { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .im-page .im-two { grid-template-columns: minmax(0, 1fr); } }
/* 0.2.66: the ship the screens are on — above the menu, and chosen with its voyage in the top bar */
.ac-shipnow { display: flex; align-items: center; gap: 12px; margin: 0 2px; padding: 11px 12px; border: 1px solid var(--ap-nav-line); border-radius: 10px; background: var(--ap-nav-hover); }
.ac-shipnow > i { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(127, 216, 200, .16); color: var(--ap-nav-dot); }
.ac-shipnow .ap-ico { width: 20px; height: 20px; stroke-width: 1.7; }
.ac-shipnow > div { min-width: 0; }
.ac-shipnow b { display: block; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.ac-shipnow small { display: block; margin-top: 2px; color: var(--ap-nav-label); font-size: 12px; }
.ac-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.ac-pick { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 10px; border: 1px solid var(--ap-line); border-radius: 8px; background: var(--ap-panel); color: var(--ap-text); }
.ac-pick:hover { border-color: var(--ap-accent); }
.ac-pick:focus-within { box-shadow: var(--ap-focus); }
.ac-pick > .ap-ico { width: 18px; height: 18px; flex: none; stroke-width: 1.7; color: var(--ap-accent); }
.ac-pick select { appearance: none; -webkit-appearance: none; max-width: 240px; padding: 2px 20px 2px 0; border: 0; background: transparent; color: var(--ap-text); font: inherit; font-size: 14px; font-weight: 600; text-overflow: ellipsis; cursor: pointer; }
.ac-pick select:focus { outline: none; }
.ac-pick::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.ac-pick-fixed::after { display: none; }
.ac-pick-fixed:hover { border-color: var(--ap-line); }
.ac-pickone { font-size: 14px; font-weight: 600; white-space: nowrap; }
a.ac-shipnow { color: inherit; text-decoration: none; }
a.ac-shipnow[href]:hover { border-color: var(--ap-nav-dot); background: var(--ap-nav-active); }
/* 0.2.67: the side menu takes the icons of the Desktop screen; the Fleet Manager's ship cards */
.ap-navimg { width: 30px; height: 30px; margin: -3px -2px; flex: none; object-fit: contain; }
.ap-navitem.ap-navoff .ap-navimg { filter: grayscale(1); }
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.fm-card { display: flex; flex-direction: column; margin: 0; }
.fm-card.fm-mine { border: 2px solid var(--ap-accent); }
.fm-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px 12px; border-bottom: 1px solid var(--ap-line); }
.fm-head img { width: 56px; height: 56px; flex: none; object-fit: contain; }
.fm-title { flex: 1; min-width: 0; }
.fm-title h2 { margin: 0; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.fm-title small { color: var(--ap-muted); font-size: 12.5px; }
.fm-sel { flex: none; }
.fm-facts { display: grid; gap: 8px; margin: 0; padding: 14px 20px; font-size: 13.5px; }
.fm-facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.fm-facts dt { color: var(--ap-muted); }
.fm-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fm-facts dd b { font-weight: 600; }
.fm-facts dd small { display: block; color: var(--ap-muted); font-size: 12px; }
.fm-foot { margin-top: auto; padding: 0 20px 18px; }
.fm-foot .ap-btn { width: 100%; justify-content: center; }
/* 0.2.68: the chosen voyage continues the page heading, a slim band filling the rest of the row (below the title when it does not fit) */
.ap-heading > div:first-child { flex: 0 1 auto; min-width: 0; }
.ap-heading > .vb { flex: 1 1 520px; min-height: 0; margin: 0; padding: 10px 170px 10px 18px; gap: 8px 20px; flex-wrap: wrap; }
.ap-heading > .vb .vb-ship { flex-basis: auto; padding-right: 20px; border-right: 1px solid #c3d6de; }
.ap-heading > .vb .vb-ship small { font-size: 11px; }
.ap-heading > .vb .vb-ship b { font-size: 20px; white-space: nowrap; }
.ap-heading > .vb .vb-date b { font-size: 15px; white-space: nowrap; }
.ap-heading > .vb .vb-date small { font-size: 12px; }
.ap-heading > .vb .vb-statewrap small { max-width: 240px; margin-top: 4px; }
@media (max-width: 980px) { .ap-heading > .vb { padding-right: 18px; } }
@media (max-width: 760px) { .ap-heading > .vb .vb-date { flex-basis: auto; } }
@media (max-width: 560px) { .ap-heading > .vb .vb-ship { padding-right: 0; border-right: 0; flex-basis: 100%; } }
/* 0.2.68: a long table's heading row follows the page (table[data-stickyhead], moved by the layout's script) — above the sticky first columns */
table[data-stickyhead] > thead { position: relative; z-index: 5; }
table[data-stickyhead] > thead.ac-headon { filter: drop-shadow(0 3px 3px rgba(6, 30, 27, .14)); }
.sm-table[data-stickyhead] > thead th { background: #f3f7f8; }
@media print { table[data-stickyhead] > thead { transform: none !important; filter: none !important; } }
/* 0.2.71: every card's edges show.
   A card with an edge of its own (the chosen ship or voyage, a warning) keeps it: those rules carry two classes. */
.ap-panel, .ap-metric, .vc, .ac-voyage, .rc-list, .co-box { border-color: #b7cad0; box-shadow: 0 1px 2px rgba(6, 30, 27, .06), 0 6px 18px rgba(6, 30, 27, .07); }
.ap-panel.ap-subdued { box-shadow: none; }
:root[data-ap-theme="dark"] :is(.ap-panel, .ap-metric, .vc, .ac-voyage, .rc-list, .co-box) { border-color: var(--ap-line); box-shadow: none; }
@media print { .ap-panel, .ap-metric, .vc, .ac-voyage, .rc-list, .co-box { box-shadow: none; } }
/* 0.2.73: Bookings › Without a voyage */
.mf-tabs { margin-top: -4px; }
.mf-orphannote { margin-bottom: 16px; }
.vy-orphanlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
/* 0.2.69: Ships is the Ship connections tab of Settings */
.fl-intro { margin: -4px 0 16px; color: var(--ap-muted); font-size: 14px; }
/* the three parts fit one row from ~1760 px of window; below, the boxes take a row of their own under the clock */
@media (max-width: 1760px) { .ac-picks { order: 3; flex-basis: 100%; justify-content: flex-end; margin-left: 0; } }
@media (max-width: 760px) { .ac-picks { justify-content: flex-start; } }
@media (max-width: 440px) { .ac-pick select { max-width: 150px; } }
@media (max-width: 760px) { .im-sumrow { grid-template-columns: minmax(0, 1fr); } .im-summary { padding: 0 16px; } }
