/* Query Portal - styles. Colours are at the top: change them here once. */
@font-face { font-family: "Jakarta"; font-weight: 400; font-display: swap; src: url("../fonts/jakarta-400.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 500; font-display: swap; src: url("../fonts/jakarta-500.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 600; font-display: swap; src: url("../fonts/jakarta-600.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 700; font-display: swap; src: url("../fonts/jakarta-700.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 800; font-display: swap; src: url("../fonts/jakarta-800.woff2") format("woff2"); }

:root {
    --accent: #FF5A1F;        /* orange: main buttons, highlights, bars */
    --accent-2: #E64A12;      /* orange when pressed */
    --accent-soft: #FFE9DF;   /* light orange backgrounds */
    --accent-3: #FFB496;      /* mid orange: focus borders, light bars */
    --accent-rgb: 255, 90, 31;
    --dark: #3A2418;          /* dark brown tile */
    --sand: #E7E1D7;          /* soft beige bars */
    --page: #E4E4E1;          /* outside the frame */
    --bg: #F4F4F2;            /* inside the frame */
    --card: #FFFFFF;
    --soft: #F6F6F4;          /* grey boxes inside cards */
    --ink: #1C1A19;
    --mute: #8A8580;
    --line: #ECEBE8;
    --radius: 22px;
    --bs-body-font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-primary: #FF5A1F;
    --bs-primary-rgb: 255, 90, 31;
    --bs-link-color: #1C1A19;
    --bs-link-color-rgb: 28, 26, 25;
    --bs-link-hover-color: #E64A12;
    --bs-link-hover-color-rgb: 230, 74, 18;
    --bs-border-color: #E6E4E0;
    --bs-body-color: #1C1A19;
}
body { background: var(--page); color: var(--ink); font-family: var(--bs-body-font-family); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.text-body-secondary { color: var(--mute) !important; }

/* ---------- buttons: soft pills ---------- */
.btn { border-radius: 99px; font-weight: 600; padding: .5rem 1.05rem; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-sm { padding: .32rem .8rem; font-size: .82rem; }
.btn-lg { padding: .75rem 1.3rem; font-size: 1rem; }
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent-2); --bs-btn-hover-border-color: var(--accent-2); --bs-btn-active-bg: var(--accent-2); --bs-btn-active-border-color: var(--accent-2); --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent); box-shadow: 0 6px 16px rgba(var(--accent-rgb), .25); }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-light {
    --bs-btn-color: var(--ink); --bs-btn-bg: #fff; --bs-btn-border-color: var(--line);
    --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #D6D3CE;
    --bs-btn-active-color: var(--ink); --bs-btn-active-bg: var(--soft); --bs-btn-active-border-color: #D6D3CE;
}
.btn-outline-success i { color: #1E8A4C; }
.btn-outline-danger { --bs-btn-bg: #fff; --bs-btn-border-color: #F3D0C8; }
.btn-dark { --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); }

/* ---------- forms ---------- */
.form-control, .form-select { border-radius: 12px; border-color: #E3E1DC; background-color: #fff; font-size: .92rem; padding: .55rem .85rem; }
.form-control-sm, .form-select-sm { border-radius: 10px; padding: .38rem .7rem; font-size: .85rem; }
.form-control-lg { border-radius: 14px; padding: .75rem 1rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent-3); box-shadow: 0 0 0 .22rem rgba(var(--accent-rgb), .13); }
.form-label { font-weight: 600; font-size: .86rem; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.input-group > .btn { border-radius: 0 12px 12px 0; }
.input-group > .form-control-lg + .btn { border-radius: 0 14px 14px 0; }

/* ---------- cards ---------- */
.card { border: 0; border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px rgba(28, 26, 25, .03); }
.card-header { background: transparent; border: 0; padding: 1.1rem 1.25rem .2rem; font-weight: 700; font-size: .98rem; }
.card-header:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 1rem 1.25rem 1.2rem; }
.card-footer { background: transparent; border-top: 1px solid var(--line); padding: .8rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius) !important; }
.card-sub { display: block; font-weight: 500; font-size: .78rem; color: var(--mute); margin-top: .1rem; }
.alert { border-radius: 16px; border: 0; }
.dropdown-menu { border: 0; border-radius: 16px; padding: .5rem; box-shadow: 0 14px 40px rgba(28, 26, 25, .14); }
.dropdown-item { border-radius: 10px; padding: .45rem .7rem; font-size: .9rem; }
.dropdown-item i { margin-right: .35rem; }
.dropdown-item:active { background: var(--accent); }
.pagination { --bs-pagination-border-radius: 99px; --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); --bs-pagination-color: var(--ink); --bs-pagination-border-color: var(--line); gap: .25rem; }
.pagination .page-link { border-radius: 99px !important; min-width: 32px; text-align: center; }
.badge { border-radius: 99px; font-weight: 600; }

/* ---------- the frame ---------- */
.shell { width: 100%; background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
body.app { background: var(--bg); }
.topbar { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.75rem; position: sticky; top: 0; z-index: 1030; background: rgba(244, 244, 242, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s ease, padding .3s ease; }
.topbar.scrolled { box-shadow: 0 8px 30px rgba(28, 26, 25, .07); padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 800; font-size: 1.05rem; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brandmark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent) url(/assets/images/jaclog-icon.png) center / cover no-repeat; color: transparent; font-size: 0; display: inline-block; flex: 0 0 auto; position: relative; overflow: hidden; }
.brandmark-lg { width: 46px; height: 46px; font-size: 1rem; border-radius: 14px; }

.pillnav { display: flex; gap: .4rem; margin: 0 auto; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pillnav::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .95rem .3rem .3rem; border-radius: 99px; background: #fff; color: #5C5752; font-size: .86rem; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.pill .pi { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--soft); font-size: .82rem; transition: background .15s; }
.pill:hover { color: var(--ink); }
.pill.active { background: var(--ink); color: #fff; }
.pill.active .pi { background: #fff; color: var(--ink); }

.top-right { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.org-chip { align-items: center; gap: .4rem; background: #fff; border-radius: 99px; padding: .45rem .9rem; font-size: .82rem; font-weight: 600; color: #5C5752; max-width: none; flex: 0 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-btn { border: 0; background: #fff; padding: 3px; border-radius: 50%; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-3), var(--accent)); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; flex: 0 0 auto; }
.avatar-sm { width: 28px; height: 28px; font-size: .72rem; background: var(--soft); color: var(--ink); }

.shell-body { flex: 1; display: grid; grid-template-columns: var(--side-w, 74px) minmax(0, 1fr); transition: grid-template-columns .3s cubic-bezier(.22, 1, .36, 1); }
html.side-open { --side-w: 232px; }
.side-toggle { border: 0; background: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: var(--ink); flex: 0 0 auto; }
.side-toggle:hover { background: var(--soft); }
.top-search { flex: 1 1 200px; min-width: 160px; max-width: 620px; margin-left: .6rem; position: relative; }
.top-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.top-search input { width: 100%; border: 1px solid transparent; background: #fff; border-radius: 99px; padding: .6rem 1rem .6rem 2.5rem; font-size: .9rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.top-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.top-right { margin-left: auto; }
.side { z-index: 40; display: flex; flex-direction: column; gap: .3rem; padding: .4rem 17px 1.2rem; position: sticky; top: 76px; align-self: start; height: calc(100vh - 92px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.side-nav { display: flex; flex-direction: column; gap: .3rem; }
.side-item { display: flex; align-items: center; gap: .7rem; height: 40px; min-width: 40px; border-radius: 99px; background: #fff; color: #5C5752; padding: 0; border: 0; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; transition: background .15s, color .15s, transform .15s; width: 100%; text-align: left; }
.side-item i { width: 40px; flex: 0 0 40px; display: grid; place-items: center; font-size: 1rem; }
.side-item .st, .side-powered .st { opacity: 0; transition: opacity .2s ease; }
html.side-open .side-item .st, html.side-open .side-powered .st { opacity: 1; }
html:not(.side-open) .side-item { width: 40px; }
.side-item:hover { color: var(--ink); transform: translateY(-1px); }
.side-item.active { background: var(--ink); color: #fff; }
.side-item.accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(var(--accent-rgb), .3); }
.side-settings .dropdown-menu { z-index: 1060; min-width: 210px; border-radius: 14px; border: 0; box-shadow: 0 14px 40px rgba(28, 26, 25, .14); padding: .4rem; }
.side-settings .dropdown-item { border-radius: 9px; padding: .5rem .8rem; font-size: .88rem; display: flex; gap: .55rem; align-items: center; }
.side-powered { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; color: var(--mute); font-size: .72rem; line-height: 1.15; white-space: nowrap; overflow: hidden; padding-left: 7px; }
.side-powered img { width: 26px; height: 26px; border-radius: 8px; flex: 0 0 26px; box-shadow: 0 4px 12px rgba(var(--accent-rgb), .3); }
.side-powered .st { display: flex; flex-direction: column; line-height: 1.2; }
.side-powered .sp-app { color: var(--ink); font-size: .95rem; font-weight: 800; letter-spacing: .02em; }
.side-powered .sp-by { color: var(--mute); font-size: .7rem; }
.side-powered .sp-by b { color: var(--ink); font-weight: 700; }
.rail-gap { flex: 1; min-height: .6rem; }
.side-shade { display: none; }
.shell-main { padding: .4rem 1.75rem 0 .2rem; min-width: 0; display: flex; flex-direction: column; }
.shell-main > main { padding: 0 !important; flex: 1; }
.app-foot { display: flex; justify-content: space-between; padding: 1.5rem 0 1.2rem; font-size: .78rem; color: var(--mute); }

@media (max-width: 991.98px) {
        .topbar { flex-wrap: wrap; padding: .8rem 1rem .6rem; }
    .topbar.scrolled { padding-top: .55rem; padding-bottom: .5rem; }
    .top-search { order: 3; flex-basis: 100%; max-width: none; margin: .5rem 0 0; }
    .top-right { margin-left: auto; }
    .shell-body { grid-template-columns: 1fr; }
    .side { position: fixed; z-index: 1045; left: 0; top: 0; height: 100vh; width: 240px; background: var(--bg, #F4F4F2); padding-top: 1.2rem; transform: translateX(-105%); transition: transform .3s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 0 40px rgba(28, 26, 25, .18); }
    .side .side-item { width: 100% !important; }
    .side .st { opacity: 1 !important; }
    html.side-m .side { transform: none; }
    html.side-m .side-shade { display: block; position: fixed; inset: 0; z-index: 1044; background: rgba(28, 26, 25, .35); }
    .shell-main { padding: .3rem 1rem 0; }
}

/* ---------- page heading ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: .2rem 0 1.3rem; }
.page-head h1 { font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; margin: .15rem 0 .25rem; }
.page-head p { color: var(--mute); margin: 0; font-size: .92rem; }
.kicker { font-size: .74rem; font-weight: 600; color: var(--mute); }
.section-label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin: .6rem 0 .8rem; padding-top: .9rem; border-top: 1px solid var(--line); }

/* ---------- sign in ---------- */
body.guest { background: var(--bg); }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
.login-side { background: var(--dark); border-radius: 30px; padding: 4rem 3.5rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login-side::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .55), rgba(var(--accent-rgb), 0) 70%); }
.login-side .brandmark { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22); }
.login-side h1 { letter-spacing: -.02em; position: relative; z-index: 1; }
.login-points { list-style: none; padding: 0; margin: 2rem 0 0; color: rgba(255, 255, 255, .85); display: grid; gap: .7rem; position: relative; z-index: 1; }
.login-points li { display: flex; align-items: center; gap: .7rem; }
.login-points i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--accent-3); display: inline-grid; place-items: center; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.login-card { width: 100%; max-width: 430px; background: var(--card); border-radius: 26px; padding: 2.4rem; box-shadow: 0 20px 50px rgba(28, 26, 25, .07); }
.login-card h2 { font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; padding: 10px; } .login-side { padding: 2rem 1.5rem; border-radius: 22px; } .login-side h1 { font-size: 1.45rem; } .login-points { display: none; } .login-card { padding: 1.6rem; } }

/* ---------- filters ---------- */
.filters { padding: 1rem 1.2rem; }
.filters .form-label { margin-bottom: .25rem; color: var(--mute); font-weight: 600; font-size: .76rem; }
.btn-filter.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- dashboard ---------- */
.dash-grid { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: 14px; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }
@media (max-width: 1199.98px) { .span-7, .span-5, .span-8, .span-4 { grid-column: span 12; } .span-3 { grid-column: span 6; } }
@media (max-width: 767.98px) { .span-6, .span-3 { grid-column: span 12; } }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: 1.15rem 1.25rem .3rem; }
.card-head h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.round-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; color: var(--ink); flex: 0 0 auto; }
.round-btn:hover { background: var(--soft); color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 99px; padding: .3rem .75rem; font-size: .78rem; font-weight: 600; color: var(--ink); background: #fff; white-space: nowrap; }

/* summary card: two numbers + bars */
.summary { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: .8rem 1.25rem 1.25rem; }
.mini-stats { display: grid; gap: 10px; align-content: start; }
.mini { background: var(--soft); border-radius: 16px; padding: .8rem .9rem; }
.mini .mi { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; font-size: .85rem; margin-bottom: .45rem; }
.mini .ml { display: block; font-size: .74rem; color: var(--mute); font-weight: 500; }
.mini .mv { display: block; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.bars-box { position: relative; height: 230px; background: var(--soft); border-radius: 16px; padding: 12px 10px 4px; }
@media (max-width: 575.98px) { .summary { grid-template-columns: 1fr; } .mini-stats { grid-template-columns: 1fr 1fr; } }

/* activity tiles: open / won / lost */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: .8rem 1.25rem 1.25rem; }
.tile { background: var(--soft); border-radius: 18px; padding: .9rem 1rem .4rem; color: var(--ink); display: flex; flex-direction: column; min-height: 196px; transition: transform .15s; }
.tile:hover { color: var(--ink); transform: translateY(-2px); }
.tile .th { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .88rem; }
.tile .ti { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; font-size: .9rem; }
.tile .tc { margin-top: auto; font-size: .74rem; font-weight: 600; color: var(--accent); }
.tile .tv { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.tile .spark { height: 52px; margin: .2rem -.4rem 0; position: relative; }
.tile.dark { background: var(--dark); color: #fff; }
.tile.dark .ti { background: rgba(255, 255, 255, .14); color: #fff; }
.tile.dark .tc { color: var(--accent-3); }
@media (max-width: 767.98px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* small number cards */
.stat-card { padding: 1.05rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; height: 100%; }
.stat-card .sh { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .86rem; }
.stat-card .sh i { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: inline-grid; place-items: center; font-size: .85rem; }
.stat-card .sd { font-size: .74rem; font-weight: 600; margin-top: .6rem; }
.stat-card .sv { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.up { color: #1E8A4C; } .down { color: var(--accent); } .flat { color: var(--mute); }
.win-card { padding: 1.1rem 1.2rem; display: flex; }
.win-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--sand) 0); display: grid; place-items: center; flex: 0 0 auto; }
.win-ring span { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* recent queries table and the other light tables */
.table { --bs-table-bg: transparent; margin: 0; }
.table > :not(caption) > * > * { border-color: var(--line); padding: .7rem .6rem; }
.table thead th { font-size: .74rem; font-weight: 600; color: var(--mute); background: var(--soft); border: 0; white-space: nowrap; }
.table thead th:first-child { border-radius: 12px 0 0 12px; padding-left: 1rem; }
.table thead th:last-child { border-radius: 0 12px 12px 0; padding-right: 1rem; }
.table tbody td:first-child { padding-left: 1rem; }
.table tbody td:last-child { padding-right: 1rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-wrap { padding: .4rem 1rem 1rem; }
.who { display: flex; align-items: center; gap: .55rem; font-weight: 600; white-space: nowrap; }

/* old KPI tiles (kept for other pages) */
.kpi { display: flex; flex-direction: column; background: var(--card); border-radius: 18px; padding: 1rem 1.1rem; height: 100%; color: var(--ink); transition: transform .15s; }
.kpi:hover { transform: translateY(-1px); color: var(--ink); }
.kpi .label { font-size: .8rem; color: var(--mute); }
.kpi .value { font-size: 1.8rem; font-weight: 700; line-height: 1.2; }
.kpi .sub { font-size: .75rem; color: var(--mute); }
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 230px; }

/* horizontal bars (countries, lanes, companies) */
.bars li { display: grid; grid-template-columns: minmax(0, 1.1fr) 1fr auto; align-items: center; gap: .7rem; padding: .38rem 0; font-size: .86rem; }
.bars .bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .bt { background: var(--soft); border-radius: 99px; height: 8px; overflow: hidden; }
.bars .bt i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bars li:nth-child(n+4) .bt i { background: var(--accent-3); }
.bars b { font-weight: 700; min-width: 2ch; text-align: right; }

/* ---------- the query sheet ---------- */
.sheet { font-size: .84rem; border-collapse: separate; border-spacing: 0; }
.sheet thead th { background: var(--soft); color: var(--mute); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; text-align: left; white-space: nowrap; border: 0 !important; position: sticky; top: 0; z-index: 1; }
.sheet td { border-bottom: 1px solid var(--line); border-top: 0; vertical-align: top; white-space: nowrap; }
.sheet td.wrap { white-space: normal; min-width: 180px; max-width: 280px; }
.sheet td.remarks { white-space: normal; min-width: 220px; max-width: 320px; color: #5C5752; }
.sheet tbody tr { cursor: pointer; }
.sheet tbody tr:hover td { background: #FFF6F1; }
.sheet td.mono a { font-weight: 600; }
.sheet-card .table-responsive { max-height: 70vh; padding: .6rem .6rem 0; }

/* status pills: a dot + word */
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .22rem .65rem; border-radius: 99px; background: #F1F0EE; color: #5C5752; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-new { background: #E8F1FB; color: #2C6CB0; }
.status-rate-requested, .status-rate-received { background: #F0EBFA; color: #6A4CB5; }
.status-quoted, .status-follow-up { background: #FFF1E0; color: #B4650A; }
.status-on-hold { background: #F1F0EE; color: #77716B; }
.status-won { background: #E3F5EA; color: #1E8A4C; }
.status-lost, .status-cancelled, .status-rejected { background: #FDE8E1; color: #C2410C; }

/* ---------- query form ---------- */
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; margin-right: .4rem; }
.req { color: var(--accent); }
.form-actions { position: sticky; bottom: 0; background: rgba(244, 244, 242, .92); backdrop-filter: blur(6px); padding: .9rem 0; display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; z-index: 5; }

/* ---------- history ---------- */
.timeline li { padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .remark { background: var(--soft); border-left: 3px solid var(--accent); padding: .45rem .7rem; margin-top: .35rem; border-radius: 0 10px 10px 0; }
.timeline .changes { color: var(--mute); margin-top: .3rem; white-space: pre-wrap; }
.dl-grid { display: grid; grid-template-columns: 160px 1fr; gap: .5rem 1rem; margin: 0; }
.dl-grid dt { color: var(--mute); font-weight: 500; }
@media (max-width: 575.98px) { .dl-grid { grid-template-columns: 1fr; } .dl-grid dd { margin-bottom: .6rem; } }

@media (max-width: 575.98px) {
    .page-head h1 { font-size: 1.45rem; }
    .kpi .value { font-size: 1.5rem; }
    .page-head > .d-flex { width: 100%; }
}

/* phones: one compact row of buttons at the bottom of the query form */
@media (max-width: 575.98px) {
    .form-actions { flex-wrap: nowrap; }
    .form-actions .btn { flex: 1 1 auto; padding: .5rem .5rem; font-size: .86rem; }
    .form-actions .btn-outline-secondary { display: none; }
}

/* fixes after the first look */
.card.win-card { flex: 1; gap: 1rem; justify-content: space-between; }
.win-top { display: flex; align-items: center; gap: 1rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fact { background: var(--soft); border-radius: 14px; padding: .7rem .8rem; display: flex; align-items: center; gap: .55rem; min-width: 0; }
.fact i { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; font-size: .8rem; flex: 0 0 auto; color: var(--accent); }
.fact span { min-width: 0; }
.fact small { display: block; font-size: .7rem; color: var(--mute); }
.fact b { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) { .facts { grid-template-columns: 1fr; } }
.left-stack { display: flex; flex-direction: column; gap: 14px; }
.left-stack .row { --bs-gutter-x: 14px; --bs-gutter-y: 14px; }
.mono { font-family: inherit; font-weight: 600; white-space: nowrap; font-size: .92em; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }



/* ---------- client: new / existing ---------- */
.client-toggle { display: inline-flex; align-items: center; gap: .55rem; margin: 0; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--mute); user-select: none; }
.client-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.client-toggle .switch { width: 40px; height: 23px; border-radius: 99px; background: #DCD9D4; position: relative; transition: background .25s ease; }
.client-toggle .switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.client-toggle input:checked + .switch { background: var(--accent); }
.client-toggle input:checked + .switch::after { transform: translateX(17px); }
.client-toggle input:focus-visible + .switch { box-shadow: 0 0 0 .22rem rgba(var(--accent-rgb), .2); }
.client-card.is-existing .client-toggle { color: var(--ink); }
.client-card { position: relative; z-index: 6; }
.client-existing { display: none; max-width: 640px; }
.client-card.is-existing .client-existing { display: block; animation: rise .4s cubic-bezier(.22, 1, .36, 1); }
.client-card.is-existing .client-new { display: none; }
.client-picker { position: relative; }
.client-picker > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1rem; pointer-events: none; }
.client-picker .form-control { padding-left: 2.3rem; }
.client-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: .4rem; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(28, 26, 25, .14); max-height: 320px; overflow-y: auto; display: none; }
.client-list.open { display: block; animation: rise .25s cubic-bezier(.22, 1, .36, 1); }
.client-list li { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 12px; cursor: pointer; }
.client-list li.active, .client-list li:hover { background: var(--accent-soft); }
.client-list li b { display: block; font-size: .9rem; }
.client-list li small { display: block; color: var(--mute); font-size: .76rem; }
.client-list li .n { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--mute); white-space: nowrap; }
.client-list li.none { cursor: default; color: var(--mute); font-size: .86rem; }
.client-list li.none:hover { background: none; }
.client-list mark { background: none; color: var(--accent); padding: 0; }
.client-chosen { display: flex; align-items: center; gap: .7rem; margin-top: .7rem; background: var(--soft); border-radius: 14px; padding: .7rem .85rem; }
.client-chosen b { display: block; font-size: .92rem; }
.client-chosen small { display: block; color: var(--mute); font-size: .78rem; }
.client-hint a { font-weight: 600; color: var(--accent); }

/* ---------- client pages ---------- */
.client-head { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.25rem; }
.client-head .avatar { width: 54px; height: 54px; font-size: 1.3rem; }
.client-head h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.client-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--mute); font-size: .84rem; margin-top: .25rem; }
.client-meta i { margin-right: .25rem; color: var(--accent); }
.client-row { cursor: pointer; }


/* ---------- status drop-down at the end of the query list ---------- */
.status-cell { min-width: 170px; padding-right: 1rem !important; }
.status-pick .form-select { width: 100%; }
.status-pick .form-select { border-radius: 99px; font-weight: 600; font-size: .8rem; padding: .3rem 2rem .3rem .8rem; background-color: #fff; cursor: pointer; }
.sheet tbody tr.no-open { cursor: default; }
.sheet tbody tr.row-saved td { background: #EAF7EF !important; transition: background .2s ease; }
.status.flash { animation: pop .45s cubic-bezier(.22, 1, .36, 1); }
.toast-msg { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 99px; font-size: .88rem; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); animation: rise .35s cubic-bezier(.22, 1, .36, 1); transition: opacity .4s ease, transform .4s ease; }
.toast-msg.bad { background: #C2410C; }
.toast-msg.out { opacity: 0; transform: translateX(-50%) translateY(10px); }


/* ---------- drop-down lists under a box (Country, From / To) ---------- */
.combo { position: relative; }
.combo .combo-arrow { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--mute); font-size: .8rem; cursor: pointer; }
.combo input[data-combo] { padding-right: 2rem; }
.combo.place .combo-icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
.combo.place input { padding-left: 2.2rem; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; list-style: none; margin: 0; padding: .35rem; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(28, 26, 25, .14); max-height: 260px; overflow-y: auto; overscroll-behavior: contain; display: none; }
.combo-list.open { display: block; animation: rise .22s cubic-bezier(.22, 1, .36, 1); }
.combo-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 10px; cursor: pointer; font-size: .88rem; }
.combo-list li.active, .combo-list li:hover { background: var(--accent-soft); }
.combo-list li b { display: block; font-weight: 600; }
.combo-list li small { display: block; color: var(--mute); font-size: .76rem; }
.combo-list .kind { flex: 0 0 auto; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .45rem; border-radius: 6px; background: var(--soft); color: var(--mute); min-width: 58px; text-align: center; }
.combo-list .kind-airport { background: #E8F1FB; color: #2C6CB0; }
.combo-list .kind-seaport { background: #E3F5EA; color: #1E8A4C; }
.combo-list .kind-zip { background: var(--accent-soft); color: var(--accent-2); }
.card:has(.combo-list.open) { position: relative; z-index: 8; }

/* ---------- Network + more lines ---------- */
.network-box { display: grid; gap: .75rem; margin-top: 1rem; max-width: 440px; }
.network-row .form-label { margin-bottom: .3rem; }
.network-row.is-new { animation: rise .35s cubic-bezier(.22, 1, .36, 1); }
.network-row .input-group > .btn { border-radius: 0 12px 12px 0; }
.unit-select { flex: 0 0 84px; max-width: 84px; border-radius: 0 12px 12px 0 !important; background-color: var(--soft); font-weight: 600; }

/* ---------- Copy the email ---------- */
.email-box { min-height: 240px; max-height: 70vh; overflow: auto; border: 1px solid #E3E1DC; border-radius: 14px; padding: .9rem 1rem; font-size: .92rem; line-height: 1.55; background: #fff; outline: none; transition: border-color .2s ease, box-shadow .2s ease; word-break: break-word; }
.email-box:focus { border-color: var(--accent-3); box-shadow: 0 0 0 .22rem rgba(var(--accent-rgb), .13); }
.email-box:empty::before { content: attr(data-placeholder); color: #A8A39D; pointer-events: none; }
.email-box img, .email-view img { max-width: 100%; height: auto; border-radius: 8px; margin: .25rem 0; }
.email-box img.uploading { opacity: .45; }
.email-box table, .email-view table { border-collapse: collapse; margin: .5rem 0; max-width: 100%; }
.email-box td, .email-box th, .email-view td, .email-view th { border: 1px solid var(--line); padding: .3rem .5rem; vertical-align: top; }
.email-box blockquote, .email-view blockquote { border-left: 3px solid var(--line); margin: .5rem 0; padding-left: .8rem; color: var(--mute); }
.email-box p, .email-view p { margin: 0 0 .5rem; }

/* ================= motion =================
   Everything below only makes things move. Remove this block and the portal works the same, just without animation.
   People who switched off animations on their computer (Reduce motion) get none. */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ring { from { --p: 0; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .45); } 60% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); } }

.enter main .page-head, .enter main .card, .enter .left-stack > .row > div, .motion .login-side, .motion .login-card { animation: rise .75s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0ms); }
.enter .table tbody tr, .enter .sheet tbody tr, .enter .timeline li { animation: fade .5s ease both; animation-delay: var(--d, 0ms); }
/* the top bar and the side rail never move: they stay put from page to page */
.motion .bars .bt i { transform-origin: left center; animation: grow-x 1.1s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--d, 0ms) + 250ms); }
.motion .win-ring { animation: ring 1.4s cubic-bezier(.22, 1, .36, 1) .3s both; }

/* smooth hovers */
.card, .tile, .mini, .fact, .stat-card, .kpi { transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s cubic-bezier(.22, 1, .36, 1), background-color .25s ease; }
.dash-grid > .card:hover, .left-stack > .card:hover, .left-stack .card:hover { box-shadow: 0 14px 34px rgba(28, 26, 25, .07); }
.tile:hover, .mini:hover, .kpi:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(28, 26, 25, .08); }
.tile.dark:hover { box-shadow: 0 14px 30px rgba(58, 36, 24, .35); }
.fact:hover { background: var(--accent-soft); }
.pill { transition: background .3s ease, color .3s ease, transform .25s ease, box-shadow .3s ease; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(28, 26, 25, .06); }
.pill .pi i, .rail-btn i, .round-btn i { transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.pill:hover .pi i, .rail-btn:hover i { transform: scale(1.12); }
.round-btn { transition: background .25s ease, transform .25s ease; }
.round-btn:hover i { transform: translate(2px, -2px); }
.btn { transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(var(--accent-rgb), .32); }
.table tbody tr td, .sheet tbody tr td { transition: background-color .2s ease; }
.table tbody tr:hover td { background: #FAF8F6; }
.status { transition: transform .2s ease; }
tr:hover .status { transform: scale(1.04); }
.filters.collapsing { transition: height .35s cubic-bezier(.22, 1, .36, 1); }
.dropdown-menu.show { animation: rise .3s cubic-bezier(.22, 1, .36, 1); }
.alert { animation: rise .5s cubic-bezier(.22, 1, .36, 1) both; }
.form-control, .form-select { transition: border-color .2s ease, box-shadow .2s ease; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- import ---------- */
.drop-zone { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; border: 2px dashed #DCD9D4; border-radius: 20px; padding: 2.4rem 1rem; cursor: pointer; transition: border-color .2s ease, background .2s ease; margin: 0; }
.drop-zone > i { font-size: 2.2rem; color: var(--accent); }
.drop-zone > span:first-of-type { color: var(--mute); font-size: .85rem; }
.drop-zone small { color: var(--mute); max-width: 520px; }
.drop-zone.over { border-color: var(--accent); background: var(--accent-soft); }
.map-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.map-row:last-child { border-bottom: 0; }
.map-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-row b small { color: var(--mute); font-weight: 500; margin-left: .3rem; }
.map-row i { color: var(--mute); text-align: center; }
.imp-bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.imp-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s ease; }
.motion #imp-preview .card, .motion #imp-run.card { animation-delay: 0ms; }

/* ---------- wrong or missing fields ---------- */
.form-control.is-invalid, .form-select.is-invalid { border-color: #E5484D !important; box-shadow: 0 0 0 .2rem rgba(229, 72, 77, .12); padding-right: .85rem; }
.form-control.is-invalid { background-image: none; }
.form-select.is-invalid { padding-right: 2.25rem; background-image: var(--bs-form-select-bg-img), none !important; }
.input-group .form-control.is-invalid { z-index: 2; }
.field-error { display: flex; align-items: flex-start; gap: .3rem; color: #C62828; font-size: .78rem; font-weight: 600; margin-top: .35rem; animation: rise .3s cubic-bezier(.22, 1, .36, 1); }
.form-alert ul { padding-left: 1.1rem; font-size: .88rem; }
.form-alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.req-or { color: var(--mute); font-weight: 500; font-size: .78rem; }

/* ---------- Old data ---------- */
.ref-search { flex-direction: row; align-items: center; gap: .6rem; padding: .55rem .6rem .55rem 1.1rem; }
.ref-search > i { color: var(--accent); font-size: 1.1rem; }
.ref-search .form-control { border: 0; box-shadow: none !important; font-size: 1.02rem; padding-left: .2rem; background: transparent; }
.ref-search .btn { flex: 0 0 auto; }
.old-card { padding: 1.2rem 1.35rem; animation-delay: 0ms !important; }
.old-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; color: var(--mute); font-size: .86rem; font-weight: 600; }
.old-head .mono { color: var(--ink); font-size: .95rem; }
.old-subject { font-size: 1.2rem; font-weight: 700; margin: .5rem 0 .9rem; letter-spacing: -.01em; }
.old-lane { display: flex; align-items: center; gap: 1rem; background: var(--soft); border-radius: 16px; padding: .8rem 1rem; margin-bottom: 1rem; }
.old-lane span { flex: 1; min-width: 0; }
.old-lane small { display: block; color: var(--mute); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.old-lane b { display: block; font-size: .98rem; }
.old-lane > i { color: var(--accent); font-size: 1.2rem; }

.lane-cell { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* company names in capitals (only how they look; what is saved stays as typed) */
.co-name { text-transform: uppercase; letter-spacing: .01em; }
.co-name .bar-label, .co-name .small { text-transform: uppercase; }

/* account permissions (Accounts > employee) */
.perm-box { border: 1px solid var(--bs-border-color); border-radius: 14px; padding: 16px 18px; background: var(--bs-tertiary-bg, #f8f9fb); }
.perm-box h3 { font-size: 1rem; font-weight: 700; margin: 0 0 2px; }
.perm-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed var(--bs-border-color); cursor: pointer; margin: 0; }
.perm-row:first-of-type { border-top: 0; }
.perm-row .form-check-input { margin-top: 3px; flex: none; width: 1.25em; height: 1.25em; border: 1.5px solid var(--bs-border-color-translucent, #b9bcc4); border-radius: 5px; }
.perm-row .form-check-input:checked { background-color: var(--bs-primary, #ff5a1f); border-color: var(--bs-primary, #ff5a1f); }
.perm-row b { display: block; font-weight: 600; }
.perm-row small { color: var(--bs-secondary-color); }
.perm-badge { display: inline-block; font-size: .7rem; padding: 1px 7px; border-radius: 99px; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); margin: 2px 2px 0 0; white-space: nowrap; }

/* data in capital letters on the dashboard, lists, client pages, Old data and the query form
   (only how it looks; email addresses and pasted emails keep their letters) */
.data-up table td, .data-up .bar-list, .data-up .dl-grid dd, .data-up .old-card dd, .data-up .who,
.data-up .client-hero h2, .data-up .combo-list, .data-up .client-list li,
.query-form input.form-control:not([type=email]):not([type=date]):not(#contact_email):not(#client_search),
.query-form textarea, .data-up .client-chosen { text-transform: uppercase; }
.data-up .keep-case, .data-up td .btn, .data-up .email-view, .data-up .email-box, .keep-case { text-transform: none; }

/* super admin: which company to look at */
.org-switch { display: inline-flex; align-items: center; gap: 6px; background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color); border-radius: 99px; padding: 4px 6px 4px 12px; font-size: .85rem; }
.org-switch select { border: 0; background: transparent; font-weight: 600; max-width: 240px; padding: 2px 4px; outline: none; cursor: pointer; }

/* Old data: status drop-down on the REF# page */
.old-status-wrap .status-pick select { min-width: 150px; }

/* query page: where the lead came from (network, receive) */
.lead-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.lead-strip .ls-item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid rgba(0,0,0,.08); font-size: 13px; }
.lead-strip .ls-item > i { color: var(--bs-primary, #ff5a1f); }
.lead-strip .ls-k { color: #6b6b6b; }
.lead-strip .ls-v { font-weight: 700; }
.update-card { border: 1.5px solid rgba(var(--accent-rgb), .35); }

/* Accounts: the account type (Actor 1 / Actor 2 / company admin) */
.acct-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.acct-type { margin: 0; cursor: pointer; }
.acct-type input { position: absolute; opacity: 0; pointer-events: none; }
.acct-type span { display: flex; flex-direction: column; gap: 4px; height: 100%; background: var(--soft, #F6F6F4); border: 2px solid transparent; border-radius: 18px; padding: .9rem 1rem; transition: border-color .15s, background .15s; }
.acct-type span i { font-size: 1.3rem; color: var(--accent-2, #E64A12); }
.acct-type span b { font-size: .98rem; }
.acct-type span small { color: var(--mute, #8A8580); font-size: .78rem; line-height: 1.35; }
.acct-type span em { font-style: normal; font-size: .74rem; color: #C2410C; }
.acct-type input:checked + span { background: #FFF6F1; border-color: var(--accent, #FF5A1F); }
.acct-type.is-off { cursor: not-allowed; opacity: .6; }
.mode-limit { display: flex; flex-wrap: wrap; gap: 8px; margin: .3rem 0 .6rem; }
.mode-limit label { margin: 0; cursor: pointer; }
.mode-limit input { position: absolute; opacity: 0; pointer-events: none; }
.mode-limit span { display: inline-block; border: 1px solid var(--line, #ECEBE8); background: #fff; border-radius: 99px; padding: .45rem 1rem; font-weight: 600; font-size: .86rem; }
.mode-limit input:checked + span { background: var(--ink, #1C1A19); border-color: var(--ink, #1C1A19); color: #fff; }

/* ---------- Performance (company admin) ---------- */
.perf-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.perf-tabs a { padding: .45rem .95rem; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; border: 1px solid var(--line); }
.perf-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.perf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.perf-tiles .pt { background: var(--soft); border-radius: 14px; padding: .7rem .85rem; display: flex; flex-direction: column; }
.perf-tiles .pt small { color: var(--mute); font-size: .74rem; font-weight: 600; }
.perf-tiles .pt b { font-size: 1.25rem; letter-spacing: -.01em; }
.perf-tiles .pt span { color: var(--mute); font-size: .72rem; }
.perf-steps li { display: flex; gap: .7rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.perf-steps li:last-child { border-bottom: 0; }
.perf-steps i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; }
.perf-steps b { display: block; font-size: .88rem; }
.perf-steps small { color: var(--mute); }
.perf-steps .took { color: var(--accent-2); font-weight: 600; }
.perf-facts { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; font-size: .85rem; }
.perf-facts dt { color: var(--mute); font-weight: 500; }
.perf-facts dd { margin: 0; font-weight: 600; }
.perf-table th { font-size: .75rem; white-space: nowrap; }
.perf-table tr.grp th { color: var(--mute); font-weight: 600; border-bottom: 0; }
.perf-table td { font-size: .84rem; }

/* ---------- Live ---------- */
.tz-chip [data-clock-t] { font-variant-numeric: tabular-nums; display: inline-block; min-width: 2.9em; text-align: center; }
.live-toast { bottom: auto; top: 76px; display: flex; gap: .5rem; align-items: center; max-width: min(92vw, 520px); }
.live-toast i { color: var(--accent); }
.live-new { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1999; border: 0; background: var(--accent); color: #fff; font-weight: 600; font-size: .88rem; padding: .55rem 1.1rem; border-radius: 99px; box-shadow: 0 12px 30px rgba(var(--accent-rgb), .35); animation: rise .35s cubic-bezier(.22, 1, .36, 1); }
.live-new:hover { background: var(--accent-2); }
.extra-heads .extra-row { margin-bottom: .5rem; }
.dim-line { display: flex; align-items: center; gap: .4rem; margin-bottom: .45rem; max-width: 560px; }
.dim-line input { max-width: 110px; }
.dim-line span { color: var(--mute); }

.dg-check { display: flex; gap: .5rem; align-items: flex-start; padding: .6rem .8rem; border: 1px solid #FCD34D; background: #FFFBEB; border-radius: 12px; font-size: .85rem; cursor: pointer; }
.dg-check i { color: #D97706; }
.unit-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); font-weight: 600; }
.unit-seg label { margin: 0; cursor: pointer; }
.unit-seg input { display: none; }
.unit-seg span { display: inline-block; padding: .15rem .7rem; font-size: .76rem; color: var(--mute); }
.unit-seg input:checked + span { background: var(--ink); color: #fff; }

/* ---------- networks: @ picker on the query form and the "Create new" pop-up ---------- */
.net-wrap { position: relative; }
.net-list { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; list-style: none; margin: 4px 0 0; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); max-height: 280px; overflow: auto; }
.net-list.open { display: block; }
.net-list li { padding: .4rem .6rem; border-radius: 8px; cursor: pointer; font-size: .85rem; }
.net-list li small { display: block; color: var(--mute); }
.net-list li.hl, .net-list li:hover { background: var(--soft); }
.net-list li[data-new] { color: var(--accent-2); }
.net-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(20, 18, 17, .35); display: grid; place-items: center; padding: 16px; }
.net-modal[hidden] { display: none; }
.net-modal-box { background: #fff; border-radius: 18px; padding: 1.2rem; width: min(420px, 100%); box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.net-modal-box h3 { font-size: 1.05rem; margin-bottom: .8rem; }

/* Rejected: the reason */
.reject-note { display: inline-flex; gap: .4rem; align-items: center; background: #FDE8E1; color: #9A3412; border-radius: 10px; padding: .35rem .75rem; font-size: .85rem; margin-top: .4rem; }
.reject-why { display: inline-block; color: #C2410C; font-weight: 600; }
.reject-box .form-label { color: #C2410C; }
/* contact type: a rounded drop-down */
.ctype-select { border-radius: 99px; padding-left: 1rem; font-weight: 600; background-color: var(--soft); border-color: transparent; }
.ctype-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); background-color: #fff; }
.ctype-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--accent-soft, #FFF1EA); color: #C2410C; border-radius: 99px; padding: .15rem .6rem; font-size: .74rem; font-weight: 700; }

/* performance of one inquiry: the details open with "See details" */
.perf-more { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; margin-top: .8rem; border: 0; border-top: 1px dashed #E4E1DC; background: none; padding: .7rem 0 .1rem; color: var(--accent); font-weight: 700; font-size: .85rem; }
.perf-more i { transition: transform .25s ease; }
.perf-more[aria-expanded="true"] i { transform: rotate(180deg); }
.perf-more .pm-c, .perf-more[aria-expanded="true"] .pm-o { display: none; }
.perf-more[aria-expanded="true"] .pm-c { display: inline; }

/* a drop-down with our own list (select[data-nice]): rounded, the portal colours, the real select stays for the form */
.nice { position: relative; }
.nice > select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.nice-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem; border: 1px solid transparent; background: var(--soft); border-radius: 99px; padding: .55rem 1rem; font-weight: 600; font-size: .92rem; color: var(--ink); text-align: left; transition: border-color .2s, box-shadow .2s, background .2s; }
.nice-btn.sm { padding: .35rem .85rem; font-size: .84rem; }
.nice-btn .ph { color: var(--mute); font-weight: 500; }
.nice-btn i { transition: transform .25s ease; color: var(--mute); }
.nice.open .nice-btn, .nice-btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); background: #fff; outline: none; }
.nice.open .nice-btn i { transform: rotate(180deg); }
.nice-btn.is-invalid { border-color: #dc3545; }
.nice-list { position: absolute; z-index: 1065; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 16px; box-shadow: 0 18px 44px rgba(28, 26, 25, .16); padding: .4rem; max-height: 320px; overflow-y: auto; list-style: none; margin: 0; display: none; min-width: 240px; }
.nice.open .nice-list { display: block; animation: rise .2s ease both; }
.nice-list .grp { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: .55rem .75rem .25rem; }
.nice-list li.opt { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; border-radius: 10px; font-size: .88rem; font-weight: 500; color: #3B3733; cursor: pointer; }
.nice-list li.opt:hover, .nice-list li.opt.hi { background: var(--accent-soft); color: var(--ink); }
.nice-list li.opt.sel { background: var(--accent); color: #fff; font-weight: 700; }
.nice-list li.opt.sel::after { content: "\F26E"; font-family: bootstrap-icons; }

.type-picker { display: flex; flex-direction: column; gap: .5rem; }
.tp-other { border-radius: 99px; }

/* Contacts: the tabs and "Add contact" */
.contact-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.contact-bar .qt-tabs { margin: 0 !important; }
.ca-modal { align-items: start; overflow-y: auto; padding: 5vh 16px; }
.ca-box { width: min(620px, 100%); padding: 0; display: flex; flex-direction: column; max-height: 90vh; }
.ca-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.3rem .6rem; }
.ca-head h3 { margin: 0; display: flex; gap: .5rem; align-items: center; }
.ca-kinds { display: flex; gap: .4rem; padding: 0 1.3rem .8rem; flex-wrap: wrap; }
.ca-kinds label { cursor: pointer; }
.ca-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.ca-kinds span { display: inline-flex; gap: .4rem; align-items: center; padding: .45rem 1rem; border-radius: 99px; background: var(--soft); font-weight: 600; font-size: .86rem; color: #5C5752; transition: background .2s, color .2s; }
.ca-kinds input:checked + span { background: var(--ink); color: #fff; }
.ca-kinds input:focus-visible + span { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .3); }
.ca-body { overflow-y: auto; padding: .2rem 1.3rem .6rem; scroll-behavior: smooth; }
.ca-body fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ca-note { font-size: .8rem; color: var(--mute); margin-bottom: .6rem; }
.ca-err { padding: 0 1.3rem; min-height: 1.2em; }
.ca-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .8rem 1.3rem 1.1rem; border-top: 1px solid #EFEDEA; }

/* container picker */
.cont-wrap { position: relative; }
.cont-wrap > input { padding-right: 2.6rem; }
.cont-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cont-btn:hover { background: var(--accent); color: #fff; }
.cont-pan { position: absolute; z-index: 1065; top: calc(100% + 6px); right: 0; width: min(340px, 92vw); max-height: 360px; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 18px 44px rgba(28, 26, 25, .18); padding: .5rem; }
.cont-h { display: flex; justify-content: space-between; align-items: center; padding: .3rem .4rem .5rem; position: sticky; top: -.5rem; background: #fff; }
.cont-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem .5rem; border-radius: 10px; }
.cont-row.on { background: var(--accent-soft); }
.cont-row .cn { display: flex; flex-direction: column; line-height: 1.15; }
.cont-row .cn b { font-size: .85rem; }
.cont-row .cn small { color: var(--mute); font-size: .74rem; }
.cont-row .cq { display: inline-flex; align-items: center; gap: .35rem; }
.cont-row .cq button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--soft); font-weight: 700; line-height: 1; }
.cont-row .cq button:hover, .cont-row .cq button.tg { background: var(--ink); color: #fff; }
.cont-row .cq i { font-style: normal; font-weight: 700; min-width: 1.2em; text-align: center; }

/* "Copy the email" in 3 boxes */
.email-group { display: flex; flex-direction: column; gap: .6rem; }
.email-group-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
.email-part .ep-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); margin-bottom: .3rem; display: flex; gap: .35rem; align-items: center; }
.email-part.ep-head .email-box { min-height: 74px; background: #FAFAF8; }
.email-part.ep-body .email-box { min-height: 220px; }
.email-part.ep-sign .email-box { min-height: 74px; background: #FAFAF8; }
.email-box.drop-on { border-color: var(--accent); background: var(--accent-soft); }
.email-view .em-part { padding: .6rem .8rem; border-radius: 10px; }
.email-view .em-head { background: var(--soft); font-size: .86em; color: #5C5752; margin-bottom: .5rem; }
.email-view .em-sign { border-top: 1px dashed var(--line); margin-top: .5rem; font-size: .86em; color: #5C5752; }

/* the company in the top bar: its logo (or first letter) and its name */
.brand { min-width: 0; max-width: 340px; }
.brand-logo { height: 36px; max-width: 120px; width: auto; object-fit: contain; border-radius: 8px; flex: 0 0 auto; }
.brand-initial { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.brand .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) { .brand .brand-name { max-width: 140px; } }

/* company settings */
.set-logo { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; background: var(--soft); flex: 0 0 auto; }
.set-logo.empty { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.5rem; }
.swatches { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1px #E3E1DC; }
.sw.on { box-shadow: 0 0 0 2px var(--ink); }
.sw-own { display: inline-flex; align-items: center; gap: .4rem; background: var(--soft); border-radius: 99px; padding: .2rem .7rem .2rem .25rem; font-size: .82rem; font-weight: 600; cursor: pointer; }
.sw-own input { width: 28px; height: 28px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; }
.sw-hex { font-size: .8rem; }
.sw-preview { display: flex; gap: .5rem; flex-wrap: wrap; }
.sw-preview span { border-radius: 99px; padding: .45rem 1rem; font-weight: 700; font-size: .85rem; }
.sw-preview .b { background: var(--p); color: #fff; }
.sw-preview .pill-on { background: var(--ink); color: #fff; }
.sw-preview .soft { background: color-mix(in srgb, var(--p) 14%, #fff); color: var(--p); }

/* late alerts (1 hour with no work) */
.alert-btn { position: relative; border: 0; background: #fff; height: 40px; min-width: 40px; border-radius: 99px; display: inline-flex; align-items: center; gap: .35rem; padding: 0 .8rem; color: var(--mute); font-weight: 700; font-size: .85rem; }
.alert-btn .n { display: none; }
.alert-btn.on { background: #FEE2E2; color: #B91C1C; }
.alert-btn.on .n { display: inline; }
.alert-btn.on i { animation: ring-bell 1.6s ease-in-out infinite; }
@keyframes ring-bell { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-12deg); } 95% { transform: rotate(6deg); } }
.np-h { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #B91C1C; padding: .5rem .8rem .3rem; }
.alert-tag { display: inline-flex; align-items: center; gap: .25rem; background: #DC2626; color: #fff; border-radius: 99px; padding: .1rem .5rem; font-size: .66rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; vertical-align: middle; }
tr.row-alert td { background: #FFF5F5 !important; }
tr.row-alert td:first-child { box-shadow: inset 3px 0 0 #DC2626; }
.table tr.row-alert { outline: 1.5px solid #F87171; outline-offset: -1.5px; }
.req-card.is-alert { border: 2px solid #EF4444 !important; box-shadow: 0 0 0 3px #FEE2E2; }
.alert-toast { background: #B91C1C !important; color: #fff; top: calc(76px + var(--i, 0) * 3.4rem) !important; }
.alert-toast i { color: #fff !important; }
@media (prefers-reduced-motion: reduce) { .alert-btn.on i { animation: none; } }
/* the drop-down lists of the top bar (late alerts, and the bell): here too, so they work when the quotation module is off */
.notif-pop { position: absolute; right: 0; top: 50px; display: none; width: 340px; background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .15); z-index: 1060; padding: 8px; max-height: 420px; overflow: auto; }
.notif-pop.open { display: block; }
.notif-pop .ni { display: flex; gap: 10px; padding: 10px; border-radius: 12px; font-size: .82rem; cursor: pointer; }
.notif-pop .ni:hover { background: var(--soft); }
.notif-pop .ni i { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.notif-pop .ni small { display: block; color: var(--mute); }
.notif-pop .empty { padding: 18px; text-align: center; color: var(--mute); font-size: .84rem; }
[data-alert-pop] { width: 380px; }
[data-alert-pop] .ni i { background: #FEE2E2; color: #B91C1C; }
@media (max-width: 575.98px) { .notif-pop { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; } }

/* containers / trucks row by row */
.eq-hidden { display: none !important; }
.eq-box { display: flex; flex-direction: column; gap: .45rem; }
.eq-rows { display: flex; flex-direction: column; gap: .45rem; }
.eq-row { display: flex; align-items: center; gap: .4rem; }
.eq-row .eq-n { width: 72px; flex: 0 0 72px; border-radius: 99px; text-align: center; }
.eq-row .nice { flex: 1 1 0; min-width: 0; }
.eq-row .eq-x { color: var(--mute); font-weight: 700; }
.eq-del { border: 0; background: var(--soft); width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; color: var(--mute); }
.eq-del:hover { background: #FEE2E2; color: #B91C1C; }
.eq-foot { display: flex; gap: .5rem; flex-wrap: wrap; }
.eq-add, .eq-type { border: 0; background: var(--accent-soft); color: var(--accent-2); border-radius: 99px; padding: .3rem .85rem; font-size: .8rem; font-weight: 700; }
.eq-type { background: var(--soft); color: var(--mute); }
.eq-box.typing .eq-rows, .eq-box.typing .eq-add { display: none; }
.eq-row { max-width: 720px; }
.eq-row .nice-list { min-width: 200px; }

/* a contact: the actions on top, the edit pop-up, the network / affiliation chips */
.contact-actions .btn { border-radius: 99px; }
.ce-box { width: min(760px, 100%); }
.ce-sec { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.ce-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; font-size: .9rem; }
.chip-pick { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 190px; overflow-y: auto; padding: 2px; }
.chip-pick label { cursor: pointer; }
.chip-pick label[hidden] { display: none; }
.chip-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip-pick span { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; border-radius: 99px; background: var(--soft); font-size: .8rem; font-weight: 600; color: #5C5752; border: 1px solid transparent; transition: background .15s, color .15s; }
.chip-pick input:checked + span { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-3); }
.chip-pick input:checked + span::before { content: "\F26E"; font-family: bootstrap-icons; }
.chip-pick input:focus-visible + span { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.ce-add .form-control { border-radius: 99px 0 0 99px; }
.ce-add .btn { border-radius: 0 99px 99px 0; }
.aff-chips { display: inline-flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.aff-chips b { background: #EEF2FF; color: #4338CA; border-radius: 99px; padding: .05rem .5rem; font-size: .72rem; }

.io-btns .btn { border-radius: 99px; }

/* ---------- Master inquiry: the legs ---------- */
.legs-box { border: 1.5px dashed var(--accent-3); background: var(--accent-soft); border-radius: 18px; padding: 1rem; }
.legs-box.is-bad { border-color: #dc3545; }
.legs-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: .6rem; }
.legs-shape { background: var(--dark); color: #fff; border-radius: 999px; padding: .25rem .8rem; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.legs-shape:empty { display: none; }
.legs-quick { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
.legs-quick .btn { background: #fff; }
.legs-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .75rem; counter-reset: leg; }
.leg { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: .7rem .85rem .8rem; position: relative; }
.leg[data-mode="Sea"] { border-left-color: #1f77b4; }
.leg[data-mode="Air"] { border-left-color: #8e44ad; }
.leg[data-mode="Rail"] { border-left-color: #2e7d32; }
.leg[data-mode="Customs"] { border-left-color: #6c757d; }
.leg + .leg::before { content: ""; position: absolute; left: 22px; top: -11px; height: 10px; border-left: 2px dotted var(--mute); }
.leg-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; flex-wrap: wrap; }
.leg-n { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; min-width: 70px; }
.leg-n i { font-size: 1.05rem; }
.leg-mode { width: auto; min-width: 170px; }
.leg-tools { margin-left: auto; display: inline-flex; gap: .2rem; }
.leg-tools .btn { padding: .15rem .45rem; border-radius: 8px; }
.leg .form-label { margin-bottom: .15rem; }
/* master quotation (sales) */
.mq-leg { border: 1px solid var(--line); border-radius: 14px; padding: .75rem .9rem; margin-bottom: .6rem; background: #fff; }
.mq-leg-h { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .4rem; }
.mq-opts { display: flex; gap: .4rem; flex-wrap: wrap; }
.mq-opt { border: 1px solid var(--line); border-radius: 10px; padding: .35rem .6rem; cursor: pointer; font-size: .85rem; background: var(--soft); }
.mq-opt input { margin-right: .3rem; }
.mq-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mq-num { font-variant-numeric: tabular-nums; }
.mq-total { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-top: .6rem; }
.mq-total > div { background: var(--soft); border-radius: 12px; padding: .55rem .8rem; }
.mq-total b { display: block; font-size: 1.15rem; }
.mq-total .sell { background: var(--dark); color: #fff; }
.rq-leg-tag { display: inline-flex; align-items: center; gap: .3rem; background: var(--dark); color: #fff; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 600; }
.ca-svc { display: flex; flex-wrap: wrap; gap: .3rem; }
.ca-svc label { cursor: pointer; }
.ca-svc input { position: absolute; opacity: 0; pointer-events: none; }
.ca-svc span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; font-size: .78rem; background: var(--soft); }
.ca-svc input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.ca-svc input:focus-visible + span { outline: 2px solid var(--accent-3); }
.combo-list .kind-ramp { background: #E6F3E6; color: #2E7D32; }
.combo-list .kind-city { background: #F1ECF8; color: #6B3FA0; }

/* ---------- Quick inquiry (one page) ---------- */
.qk-seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; gap: 2px; }
.qk-seg input, .qk-modes input, .qk-subs input { position: absolute; opacity: 0; pointer-events: none; }
.qk-seg span { display: inline-flex; gap: .35rem; align-items: center; padding: .3rem .8rem; border-radius: 999px; font-size: .82rem; cursor: pointer; font-weight: 500; }
.qk-seg input:checked + span { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.qk-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }
.qk-modes span { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .7rem .5rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; font-size: .88rem; background: #fff; }
.qk-modes span i { font-size: 1.35rem; color: var(--mute); }
.qk-modes input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.qk-modes input:checked + span i { color: var(--accent); }
.qk-modes input:focus-visible + span, .qk-subs input:focus-visible + span { outline: 2px solid var(--accent-3); }
.qk-subs { display: flex; flex-wrap: wrap; gap: .35rem; }
.qk-subs span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem; font-size: .82rem; cursor: pointer; background: var(--soft); }
.qk-subs input:checked + span { background: var(--dark); color: #fff; border-color: var(--dark); }
.qk-scope { background: var(--soft); border-radius: 12px; padding: .5rem .7rem; height: 100%; line-height: 1.5; }
.qk-vendors { display: flex; flex-direction: column; gap: .4rem; }
.qk-vrow { display: grid; grid-template-columns: 28px 1.4fr 1fr 1.2fr .9fr auto 34px; gap: .4rem; align-items: center; }
.qk-vtag { width: 26px; height: 26px; border-radius: 50%; background: var(--dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.qk-lines td, .qk-lines th { vertical-align: middle; }
.qk-lines th { font-size: .75rem; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.qk-lines .qk-grp td { background: var(--soft); font-weight: 600; font-size: .82rem; border: 0; padding: .35rem .6rem; }
.qk-lines .qk-sell { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.qk-lines .qk-manual { background: #FFF8E1; }
.qk-lines .qk-act input[data-lf=l] { font-style: italic; }
.qk-side { position: sticky; top: 1rem; }
.qk-tot { display: grid; gap: .4rem; }
.qk-tot > div { display: flex; justify-content: space-between; align-items: baseline; background: var(--soft); border-radius: 12px; padding: .5rem .8rem; }
.qk-tot > div span { color: var(--mute); font-size: .85rem; }
.qk-tot > div b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.qk-tot > .sell { background: var(--dark); color: #fff; }
.qk-tot > .sell span { color: rgba(255,255,255,.7); }
.qk-tot > .sell b { font-size: 1.3rem; }
.qk-badge { display: inline-flex; align-items: center; gap: .15rem; background: var(--accent-soft); color: var(--accent-2); border-radius: 999px; padding: 0 .4rem; font-size: .65rem; font-weight: 700; font-family: var(--bs-body-font-family); vertical-align: middle; }
.qk-badge.mst { background: #E8EEF9; color: #2C5AA0; }
.row-dup { color: var(--mute); font-size: .8rem; opacity: .55; }
.row-dup:hover { opacity: 1; color: var(--accent); }
@media (max-width: 991.98px) {
    .qk-vrow { grid-template-columns: 28px 1fr 1fr; }
    .qk-side { position: static; }
}
.qk-lines .form-select { padding-right: 1.7rem; text-overflow: ellipsis; background-position: right .45rem center; }
.qk-lines .qk-grp td { padding: 0; }
.qk-grp-btn { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: .45rem; padding: .5rem .7rem; cursor: pointer; font-weight: 600; font-size: .85rem; }
.qk-grp-btn:hover { background: rgba(0,0,0,.03); }
.qk-grp-btn:focus-visible { outline: 2px solid var(--accent-3); outline-offset: -2px; }
.qk-chev { transition: transform .15s; font-size: .75rem; color: var(--mute); }
.qk-grp.open .qk-chev { transform: rotate(90deg); }
.qk-grp-sum { margin-left: auto; display: inline-flex; gap: .9rem; font-weight: 500; font-size: .78rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.qk-grp-sum b { color: var(--accent-2); font-weight: 600; }
.qk-grp-sum .qk-gs { color: var(--ink); font-weight: 600; }
.qk-lines .qk-grp.has-price td { background: var(--accent-soft); }
.qk-lines tr[data-li] td:first-child { min-width: 210px; }
/* hints in the boxes keep their own letters (the typed text may be in capitals) */
.form-control::placeholder { text-transform: none; }
/* the suggestion lists: always right under their box, as wide as it, above what follows */
.combo { position: relative; }
.combo > .combo-list { left: 0; right: 0; min-width: 100%; max-height: 300px; z-index: 1060; }
.combo-list li b { white-space: normal; }
.legs-box { max-width: 100%; min-width: 0; }
.legs-shape { white-space: normal; }
.leg-sub { width: auto; min-width: 150px; }
.leg-stops { display: flex; flex-direction: column; gap: .3rem; margin-top: .3rem; }
.leg-stop { display: flex; gap: .3rem; align-items: center; }
.leg-stop .combo { flex: 1; }
.leg-stop .n { font-size: .72rem; color: var(--mute); min-width: 18px; text-align: right; }
.leg-add-stop { font-size: .78rem; padding: .1rem .5rem; margin-top: .3rem; }
/* phone: nothing wider than the screen */
.page-head > div { min-width: 0; max-width: 100%; }
.page-head h1 { overflow-wrap: anywhere; }
.rq-leg-tag { white-space: normal; }
@media (max-width: 575.98px) {
    .q-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .q-tabs::-webkit-scrollbar { display: none; }
    .q-tabs a, .q-tabs button { flex: 0 0 auto; padding: .4rem .8rem; }
}
.page-head h1 .rq-leg-tag { display: inline-block; max-width: 100%; font-size: .8rem !important; line-height: 1.4; }
.page-head h1.mono { white-space: normal; } .page-head h1 .rq-leg-tag { white-space: normal !important; overflow-wrap: anywhere; }
.hs-input { flex: 0 0 9.5rem !important; max-width: 9.5rem; }
/* quick inquiry: draft, buying column, loss, head vendor, print frame */
.qk-draft { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: #FFF8E1; border: 1px solid #F5D77A; border-radius: 14px; padding: .55rem .9rem; margin-bottom: 1rem; font-size: .88rem; }
.qk-draft .btn { margin-left: auto; }
.qk-lines .qk-buy { font-variant-numeric: tabular-nums; color: var(--mute); white-space: nowrap; font-size: .85rem; }
.qk-lines tr.qk-loss [data-lf=s] { border-color: #dc3545; background: #FDECEC; }
.qk-lines tr.qk-loss .qk-sell { color: #B91C1C; }
.qk-grp-row { display: flex; align-items: center; gap: .5rem; }
.qk-grp-row .qk-grp-btn { flex: 1; }
.qk-grp-v { width: auto; max-width: 220px; margin-right: .5rem; font-size: .78rem; }
.qk-print-frame { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }

/* ---------- the assistant (company admin, super admin): chat at the bottom right ---------- */
.as-fab { position: fixed; right: 22px; bottom: 22px; z-index: 2000; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--dark); color: #fff; font-size: 1.35rem; box-shadow: 0 12px 30px rgba(28, 26, 25, .3); display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.as-fab:hover { transform: translateY(-2px); }
.as-fab.on { background: var(--accent); }
body:has(.form-actions) .as-fab { bottom: 84px; }
.as-panel { position: fixed; right: 22px; bottom: 88px; z-index: 2000; width: 400px; max-width: calc(100vw - 24px); height: min(600px, calc(100vh - 120px)); background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(28, 26, 25, .25); display: flex; flex-direction: column; overflow: hidden; animation: rise .25s cubic-bezier(.22, 1, .36, 1); }
.as-panel[hidden] { display: none; }
body:has(.form-actions) .as-panel { bottom: 150px; height: min(560px, calc(100vh - 180px)); }
.as-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .8rem 1rem; background: var(--dark); color: #fff; }
.as-head small { display: block; color: rgba(255, 255, 255, .65); font-size: .72rem; }
.as-head-btns { display: flex; gap: .2rem; }
.as-head-btns a, .as-head-btns button { background: transparent; border: 0; color: rgba(255, 255, 255, .8); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.as-head-btns a:hover, .as-head-btns button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.as-msgs { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg); overscroll-behavior: contain; }
.as-msg { max-width: 92%; border-radius: 14px; padding: .55rem .75rem; font-size: .85rem; line-height: 1.45; }
.as-msg p { margin: 0 0 .35rem; }
.as-msg p:last-child { margin-bottom: 0; }
.as-me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.as-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; width: 92%; }
.as-ul, .as-ol { margin: .2rem 0 .3rem; padding-left: 1.1rem; }
.as-small { font-size: .78rem; color: var(--mute); }
.as-small b { color: var(--ink); }
.as-list { display: flex; flex-direction: column; gap: .3rem; margin: .35rem 0; }
.as-row { display: grid; grid-template-columns: auto auto 1fr; gap: .1rem .45rem; align-items: center; padding: .45rem .55rem; border-radius: 10px; background: var(--soft); text-decoration: none; color: var(--ink); font-size: .8rem; }
.as-row:hover { background: var(--accent-soft); }
.as-row .as-ref { font-weight: 700; white-space: nowrap; }
.as-row .status { font-size: .62rem; padding: .05rem .4rem; }
.as-row .as-main { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-row .as-sub, .as-row .as-note { grid-column: 1 / -1; color: var(--mute); font-size: .74rem; }
.as-row .as-note { color: #B45309; }
.as-more { font-size: .75rem; color: var(--mute); }
.as-check { border: 1px solid var(--line); border-radius: 12px; padding: .35rem .55rem; margin: .35rem 0; }
.as-check summary { cursor: pointer; font-size: .82rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.as-check summary small { flex-basis: 100%; color: var(--mute); font-size: .72rem; }
.as-check .as-n { background: var(--soft); border-radius: 99px; padding: 0 .45rem; font-size: .72rem; font-weight: 700; }
.as-check.as-danger { border-color: #F5B5B5; background: #FFF6F6; }
.as-check.as-danger .as-n { background: #DC2626; color: #fff; }
.as-check.as-warning .as-n { background: #F59E0B; color: #fff; }
.as-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; margin: .35rem 0; }
.as-kpis div { background: var(--soft); border-radius: 10px; padding: .4rem .55rem; }
.as-kpis span { display: block; font-size: .68rem; color: var(--mute); }
.as-kpis b { font-size: .95rem; }
.as-via { margin-top: .35rem; font-size: .68rem; color: var(--mute); }
.as-chips { display: flex; gap: .3rem; flex-wrap: wrap; padding: .45rem .7rem 0; background: #fff; }
.as-chips:empty { display: none; }
.as-chips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .2rem .65rem; font-size: .75rem; color: var(--ink); }
.as-chips button:hover { border-color: var(--accent); color: var(--accent-2); }
.as-input { display: flex; gap: .4rem; padding: .6rem .7rem .7rem; background: #fff; border-top: 1px solid var(--line); }
.as-input textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: .5rem .7rem; font-size: .86rem; max-height: 120px; outline: none; }
.as-input textarea:focus { border-color: var(--accent-3); }
.as-input button { border: 0; background: var(--accent); color: #fff; width: 40px; border-radius: 12px; }
.as-dots { display: inline-flex; gap: 4px; padding: .2rem 0; }
.as-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: asdot 1s infinite ease-in-out; }
.as-dots i:nth-child(2) { animation-delay: .15s; }
.as-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes asdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 575.98px) {
    .as-panel { right: 8px; left: 8px; width: auto; bottom: 84px; height: calc(100vh - 110px); }
    .as-fab { right: 14px; bottom: 14px; }
}
@media print { .as-fab, .as-panel { display: none !important; } }

/* ---------- assistant: the top-bar button, the head, the page, the dashboard ---------- */
.ask-btn { border: 0; background: linear-gradient(135deg, var(--dark), #5a3a28); color: #fff; height: 40px; width: 40px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; text-decoration: none; box-shadow: 0 6px 16px rgba(58, 36, 24, .25); transition: transform .15s; }
.ask-btn:hover { color: #fff; transform: translateY(-1px); }
.ask-btn.on { background: var(--accent); }
.text-accent { color: var(--accent); }
.as-head-t { display: flex; align-items: center; gap: .6rem; }
.as-avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 1rem; }
.as-foot { font-size: .68rem; color: var(--mute); text-align: center; padding: 0 .8rem .55rem; background: #fff; }
/* the page */
.as-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.as-layout-chat { min-width: 0; }
.as-panel.as-page { position: static; width: 100%; max-width: none; height: calc(100vh - 230px); min-height: 520px; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); border: 1px solid var(--line); animation: none; }
.as-page .as-msgs { padding: 1.2rem 1.4rem; gap: .8rem; }
.as-page .as-msg { font-size: .9rem; }
.as-page .as-bot { width: min(100%, 980px); max-width: 100%; }
.as-page .as-me { max-width: 70%; }
.as-page .as-input { padding: .8rem 1rem 1rem; }
.as-page .as-input textarea { font-size: .92rem; padding: .7rem .9rem; }
.as-page .as-input button { width: 48px; }
.as-page .as-row { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.as-page .as-row .as-sub { grid-column: 3 / 5; }
.as-layout-side { display: flex; flex-direction: column; gap: .75rem; position: sticky; top: 1rem; max-height: calc(100vh - 140px); overflow-y: auto; }
.as-side-card { background: #fff; border-radius: 18px; padding: .85rem .95rem; border: 1px solid var(--line); }
.as-side-h { font-weight: 700; font-size: .85rem; margin-bottom: .55rem; display: flex; align-items: center; gap: .4rem; }
.as-side-h i { color: var(--accent); }
.as-side-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.as-side-chips button { border: 1px solid var(--line); background: var(--soft); border-radius: 99px; padding: .3rem .7rem; font-size: .78rem; color: var(--ink); transition: all .15s; }
.as-side-chips button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.as-side-fill { display: flex; flex-direction: column; gap: .3rem; }
.as-side-fill button { text-align: left; border: 1px dashed var(--line); background: #fff; border-radius: 10px; padding: .4rem .6rem; font-size: .76rem; color: var(--ink); }
.as-side-fill button:hover { border-color: var(--accent); background: var(--accent-soft); }
.as-side-fill button i { color: var(--mute); margin-right: .2rem; }
.as-side-note { font-size: .72rem; color: var(--mute); margin-top: .5rem; }
.as-tips ul { margin: 0; padding-left: 1rem; font-size: .78rem; color: #4A4541; }
.as-tips li { margin-bottom: .25rem; }
/* dashboard inside an answer */
.as-dash { display: flex; flex-direction: column; gap: .7rem; }
.as-dash-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
.as-dash-h a { font-size: .75rem; }
.as-kpis-wide { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.as-kpis div.ok b { color: #15803D; }
.as-kpis div.bad b { color: #B91C1C; }
.as-sec > b { display: block; font-size: .78rem; margin-bottom: .3rem; color: #4A4541; }
.as-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; }
.as-bars { display: flex; flex-direction: column; gap: .25rem; }
.as-bar { display: grid; grid-template-columns: minmax(70px, 38%) 1fr auto 34px; gap: .45rem; align-items: center; font-size: .75rem; }
.as-bar-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-bar-t { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.as-bar-t i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.as-bars.warm .as-bar-t i { background: #F59E0B; }
.as-bar b { font-variant-numeric: tabular-nums; }
.as-bar small { color: var(--mute); text-align: right; font-size: .68rem; }
.as-days { display: flex; align-items: flex-end; gap: 2px; height: 70px; padding-top: 4px; }
.as-days span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.as-days i { display: block; width: 100%; background: var(--accent-3); border-radius: 3px 3px 0 0; }
.as-days span:hover i { background: var(--accent); }
.as-days small { font-size: .55rem; color: var(--mute); margin-top: 2px; }
/* a change waiting for Confirm */
.as-confirm-box { border: 1.5px solid #F5D77A; background: #FFFBEB; border-radius: 12px; padding: .6rem .7rem; }
.as-confirm-btns { display: flex; gap: .4rem; margin-top: .55rem; }
.as-confirm-btns button { border: 0; border-radius: 10px; padding: .4rem .9rem; font-weight: 600; font-size: .82rem; }
.as-confirm-btns .as-ok { background: var(--accent); color: #fff; }
.as-confirm-btns .as-no { background: var(--soft); color: var(--ink); }
.as-confirm-btns button:disabled { opacity: .45; cursor: default; }
@media (max-width: 1199.98px) {
    .as-layout { grid-template-columns: 1fr; }
    .as-layout-side { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .as-panel.as-page { height: calc(100vh - 200px); }
}
@media (max-width: 575.98px) {
    .as-panel.as-page { height: calc(100vh - 150px); min-height: 440px; border-radius: 16px; }
    .as-page .as-msgs { padding: .8rem; }
    .as-page .as-me { max-width: 85%; }
    .as-page .as-row { grid-template-columns: auto auto 1fr; }
    .as-page .as-row .as-sub { grid-column: 1 / -1; }
    .as-bar { grid-template-columns: minmax(60px, 34%) 1fr auto; }
    .as-bar small { display: none; }
    .ask-btn { width: 36px; height: 36px; }
}
/* files the assistant made */
.as-files { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0 .2rem; }
.as-file { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .8rem; font-weight: 600; text-decoration: none; }
.as-file:hover { border-color: var(--accent); color: var(--accent-2); }
.as-file.main { background: var(--accent); border-color: var(--accent); color: #fff; }
.as-file.xlsx i { color: #15803D; }
.as-file.pdf i { color: #B91C1C; }
.as-file.main i { color: #fff; }

/* ---------- more currencies (Quotation settings, price boxes) ---------- */
.fx-box{border:1px solid var(--bs-border-color);border-radius:14px;padding:14px 16px;background:var(--bs-tertiary-bg)}
.fx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.fx-row{display:flex;align-items:center;gap:6px;font-size:13px;background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:10px;padding:5px 8px;margin:0}
.fx-row.on{border-color:var(--bs-primary)}
.fx-row input{max-width:92px}
.fx-row span:first-child{white-space:nowrap;min-width:58px}
.fx-sel{flex:0 0 auto!important;width:auto!important;max-width:78px;padding-right:22px!important;background-position:right 4px center!important;font-weight:600}
.fx-tag{background:rgba(255,90,31,.1);color:#C2410C;border-radius:6px;padding:0 6px;font-weight:600;white-space:nowrap}
.qk-fx{flex-wrap:nowrap}
.qk-fx .form-control{min-width:70px}
.qk-lines.has-fx{min-width:1040px}
.qk-lines .input-group{flex-wrap:nowrap}
.qk-lines .input-group-text{padding:0 .4rem;font-size:.72rem;font-weight:600}
.qk-fx .fx-sel{max-width:70px;font-size:.78rem}

/* "via" port / airport under From and To (door services) */
.combo.via-in .via-tag{position:absolute;left:.6rem;top:50%;transform:translateY(-50%);font-size:.68rem;font-weight:700;text-transform:uppercase;color:var(--accent);background:var(--accent-soft, #FFF1E8);border-radius:6px;padding:1px 6px;pointer-events:none;z-index:2}
.combo.via-in input{padding-left:3.1rem}

/* dashboard pipeline: Open and Won as tiles, Lost as a quiet line at the bottom */
.tiles.tiles-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:767.98px){.tiles.tiles-2{grid-template-columns:1fr}}
.lost-line{display:flex;align-items:center;gap:12px;margin:0 1.25rem 1.1rem;padding:.55rem .9rem;border-radius:12px;background:var(--soft);color:var(--ink, inherit);text-decoration:none;font-size:.85rem}
.lost-line span:first-child{font-weight:600;flex:1}
.lost-line b{font-size:1rem}
.lost-line:hover{background:var(--accent-soft, #FFF1E8)}
