@import url('/v3/theme.generated.css');

/*
 * Seedion B140 - version-3 skin, hand-written part.
 * Loaded after the generated file, so anything here wins.
 *
 * Live Sport: a dark green-black page, few surfaces, hard contrast, big numbers,
 * IGF green and gold. Mounted, not baked in - reload and it is there.
 */

html.seedion-v3 {
    --v3-bg: #07130D;
    --v3-surface: #0D1F16;
    --v3-surface-2: #0A1A12;
    --v3-line: #1B3A2B;
    --v3-line-soft: #11271C;
    --v3-ink: #F2FBF5;
    --v3-muted: #8FB3A1;
    --v3-green: #1C533A;
    --v3-gold: #D4B55F;
    --v3-red: #C2401F;
    --v3-amber: #E08A2B;
    --v3-mint: #7FD6A2;

    --tab-active-indicator: var(--v3-gold);
    --tab-focus-ring: var(--v3-gold);
    --tab-hover-bg: var(--v3-surface-2);
    --tab-bg-secondary: var(--v3-surface-2);
    --tab-text-primary: var(--v3-ink);
    --tab-text-hover: var(--v3-ink);
    --tab-close-hover: var(--v3-line);
    --igf-gold: var(--v3-gold);

    color-scheme: dark;
}

/* ---------------------------------------------------------------- the page */
html.seedion-v3,
html.seedion-v3 body {
    background: var(--v3-bg) !important;
    color: var(--v3-ink);
}

/* Tailwind paints most of the console through a handful of utility classes.
   Re-pointing those is what turns the whole shell dark in one go. */
html.seedion-v3 .bg-white,
html.seedion-v3 .dark\:bg-gray-800,
html.seedion-v3 .bg-gray-800 { background-color: var(--v3-surface) !important; }

html.seedion-v3 .bg-gray-50,
html.seedion-v3 .bg-gray-100,
html.seedion-v3 .dark\:bg-gray-900,
html.seedion-v3 .bg-gray-900,
html.seedion-v3 .dark\:bg-gray-700 { background-color: var(--v3-surface-2) !important; }

html.seedion-v3 .text-gray-900,
html.seedion-v3 .text-gray-800,
html.seedion-v3 .text-gray-700,
html.seedion-v3 .dark\:text-gray-100,
html.seedion-v3 .dark\:text-gray-200,
html.seedion-v3 .dark\:text-gray-300 { color: var(--v3-ink) !important; }

html.seedion-v3 .text-gray-600,
html.seedion-v3 .text-gray-500,
html.seedion-v3 .text-gray-400,
html.seedion-v3 .dark\:text-gray-400,
html.seedion-v3 .dark\:text-gray-500 { color: var(--v3-muted) !important; }

html.seedion-v3 .border-gray-100,
html.seedion-v3 .border-gray-200,
html.seedion-v3 .border-gray-300,
html.seedion-v3 .dark\:border-gray-600,
html.seedion-v3 .dark\:border-gray-700,
html.seedion-v3 .dark\:border-gray-800 { border-color: var(--v3-line) !important; }

html.seedion-v3 .divide-gray-200 > * + *,
html.seedion-v3 .dark\:divide-gray-700 > * + * { border-color: var(--v3-line-soft) !important; }

/* ------------------------------------------------------- frame: head & side */
html.seedion-v3 .next-sidebar,
html.seedion-v3 nav.next-sidebar {
    background: var(--v3-surface-2) !important;
    border-right: 1px solid var(--v3-line) !important;
    color: var(--v3-ink);
}

html.seedion-v3 .next-sidebar a,
html.seedion-v3 .next-sidebar-item,
html.seedion-v3 .next-sidebar-panel-item { color: var(--v3-muted) !important; }

html.seedion-v3 .next-sidebar a:hover,
html.seedion-v3 .next-sidebar-item:hover { background: var(--v3-surface) !important; color: var(--v3-ink) !important; }

/* the page you are on: a gold edge, the way a scoreboard marks the live row */
html.seedion-v3 .next-sidebar .active,
html.seedion-v3 .next-sidebar a.active,
html.seedion-v3 .next-sidebar-item.active {
    background: var(--v3-surface) !important;
    color: var(--v3-ink) !important;
    box-shadow: inset 3px 0 0 var(--v3-gold);
}

html.seedion-v3 .next-view-section-header,
html.seedion-v3 .next-content-panel,
html.seedion-v3 .next-content-panel-body { background: transparent !important; }

/* --------------------------------------------------------------- controls */
html.seedion-v3 .btn,
html.seedion-v3 button.btn {
    border-radius: 2px;
    letter-spacing: .02em;
}
html.seedion-v3 .btn-primary {
    background: var(--v3-green) !important;
    border-color: var(--v3-green) !important;
    color: var(--v3-ink) !important;
}
html.seedion-v3 .btn-primary:hover { background: #246B4B !important; }
html.seedion-v3 .btn-default,
html.seedion-v3 .btn-secondary {
    background: var(--v3-surface) !important;
    border-color: var(--v3-line) !important;
    color: var(--v3-ink) !important;
}
html.seedion-v3 .btn-default:hover { border-color: var(--v3-gold) !important; }

html.seedion-v3 .form-input,
html.seedion-v3 .form-select,
html.seedion-v3 input[type='text'],
html.seedion-v3 input[type='search'],
html.seedion-v3 input[type='number'],
html.seedion-v3 input[type='time'],
html.seedion-v3 input[type='date'],
html.seedion-v3 textarea,
html.seedion-v3 select {
    background: var(--v3-surface-2) !important;
    border: 1px solid var(--v3-line) !important;
    color: var(--v3-ink) !important;
}
html.seedion-v3 .form-input::placeholder,
html.seedion-v3 textarea::placeholder { color: var(--v3-muted) !important; opacity: .8; }
html.seedion-v3 .form-input:focus,
html.seedion-v3 .form-select:focus,
html.seedion-v3 select:focus,
html.seedion-v3 textarea:focus {
    border-color: var(--v3-gold) !important;
    outline: none !important;
    box-shadow: 0 0 0 1px var(--v3-gold) !important;
}

/* ----------------------------------------------------------------- tables */
html.seedion-v3 table { background: transparent !important; }
html.seedion-v3 thead th,
html.seedion-v3 .next-table-head {
    background: var(--v3-surface-2) !important;
    color: var(--v3-muted) !important;
    border-bottom: 1px solid var(--v3-line) !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .68rem;
}
html.seedion-v3 tbody tr { background: transparent !important; border-bottom: 1px solid var(--v3-line-soft) !important; }
html.seedion-v3 tbody tr:hover { background: var(--v3-surface) !important; }
html.seedion-v3 td { color: var(--v3-ink) !important; }

/* ------------------------------------------------------------- scrollbars */
html.seedion-v3 ::-webkit-scrollbar { width: 10px; height: 10px; }
html.seedion-v3 ::-webkit-scrollbar-track { background: var(--v3-bg); }
html.seedion-v3 ::-webkit-scrollbar-thumb { background: var(--v3-line); border-radius: 0; }
html.seedion-v3 ::-webkit-scrollbar-thumb:hover { background: var(--v3-green); }

/* ===================================================================== IGF pages
   Live Sport proper: the numbers carry the page, the words get out of the way. */

/* the page you are on, in the side bar: gold edge instead of a grey block */
html.seedion-v3 .next-sidebar-navigator-item.is-active,
html.seedion-v3 .next-sidebar-navigator-item.is-parent-active {
    background: var(--v3-surface) !important;
    box-shadow: inset 3px 0 0 var(--v3-gold);
    color: var(--v3-ink) !important;
}

/* ------------------------------------------------------- the counters on top */
html.seedion-v3 .seedion-kpi {
    background: var(--v3-surface) !important;
    border: 1px solid var(--v3-line-soft) !important;
    border-radius: 2px;
    padding: .45rem .6rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .1rem !important;
    min-height: 3.1rem;
}
html.seedion-v3 .seedion-kpi-label {
    color: var(--v3-muted) !important;
    font-size: .6rem !important;
    line-height: 1.1 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: normal !important;   /* "Double-booked" may use two lines instead of being cut */
    overflow: visible !important;
}
html.seedion-v3 .seedion-kpi-value,
html.seedion-v3 .seedion-kpi > span:last-child {
    font-size: 1.45rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    color: var(--v3-ink) !important;
}
/* a counter that is not zero is the whole point of the row - let it shout */
html.seedion-v3 .seedion-kpi.has-value { border-color: var(--v3-line) !important; }
html.seedion-v3 .seedion-kpi.has-value .seedion-kpi-value { color: var(--v3-gold) !important; }
html.seedion-v3 .seedion-kpi--alert.has-value .seedion-kpi-value,
html.seedion-v3 .seedion-kpi--red.has-value .seedion-kpi-value { color: var(--v3-red) !important; }
html.seedion-v3 .seedion-kpi--warn.has-value .seedion-kpi-value { color: var(--v3-amber) !important; }
html.seedion-v3 .seedion-kpi:hover { border-color: var(--v3-gold) !important; }

/* ------------------------------------------------------------- the week grid */
html.seedion-v3 .seedion-week {
    background: var(--v3-surface) !important;
    border: 1px solid var(--v3-line-soft) !important;
}
html.seedion-v3 .seedion-week-head { background: var(--v3-surface-2) !important; }
html.seedion-v3 .seedion-week-label {
    color: var(--v3-gold) !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}
html.seedion-v3 .seedion-wday { border-color: var(--v3-line-soft) !important; }
html.seedion-v3 .seedion-wday:hover { background: var(--v3-surface-2) !important; }
html.seedion-v3 .seedion-wday-date { color: var(--v3-muted) !important; }
html.seedion-v3 .seedion-wday-total {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--v3-ink) !important;
    font-variant-numeric: tabular-nums;
}
html.seedion-v3 .seedion-wday.is-empty { opacity: .45; }
html.seedion-v3 .seedion-wday.is-today,
html.seedion-v3 .seedion-wday.is-selected { outline: 1px solid var(--v3-gold) !important; }

/* ---------------------------------------------------------- notes and banners */
html.seedion-v3 .seedion-explain {
    background: var(--v3-surface-2) !important;
    border-left: 3px solid var(--v3-green) !important;
    color: var(--v3-muted) !important;
}
html.seedion-v3 .seedion-testdata,
html.seedion-v3 .seedion-note--amber {
    background: #2A1E08 !important;
    border-left: 3px solid var(--v3-amber) !important;
    color: #F0D9A8 !important;
}

/* --------------------------------------------------------------- the headline */
html.seedion-v3 .next-view-section-header-title,
html.seedion-v3 .seedion-page-title {
    color: var(--v3-ink) !important;
    letter-spacing: -.01em;
}

/* Action buttons in a list row: the coloured chip already says how bad it is, so the
   button does not need to shout as well - outline instead of a solid block of colour. */
html.seedion-v3 .row-btn {
    background: transparent !important;
    border: 1px solid currentColor !important;
    border-radius: 2px;
}
html.seedion-v3 .row-btn--red { color: var(--v3-red) !important; }
html.seedion-v3 .row-btn--amber { color: var(--v3-amber) !important; }
html.seedion-v3 .row-btn--green { color: var(--v3-mint) !important; }
html.seedion-v3 .row-btn:hover { background: var(--v3-surface-2) !important; }

/* Modals sit on the page, so they need an edge of their own to stand off it. */
html.seedion-v3 .ember-modal-dialog,
html.seedion-v3 .modal-content {
    background: var(--v3-surface) !important;
    border: 1px solid var(--v3-line) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6) !important;
}
html.seedion-v3 .modal-header,
html.seedion-v3 .modal-footer {
    background: var(--v3-surface-2) !important;
    border-color: var(--v3-line) !important;
}

/* ------------------------------------------------------------------ the map
   A bright street map in a dark console is a floodlight in a dark room. The tile
   layer alone is turned dark; markers, routes and labels sit in other panes and
   keep their colours. */
html.seedion-v3 .leaflet-tile-pane {
    /* 21.11.: first try was too dark to read street names - lighter and a little more
       colour, still clearly a night map */
    filter: invert(1) hue-rotate(180deg) brightness(1.12) contrast(.78) saturate(.75);
}
html.seedion-v3 .leaflet-container { background: var(--v3-surface-2) !important; }
html.seedion-v3 .leaflet-control,
html.seedion-v3 .leaflet-bar,
html.seedion-v3 .leaflet-popup-content-wrapper,
html.seedion-v3 .leaflet-popup-tip,
html.seedion-v3 .seedion-map-legend {
    background: var(--v3-surface) !important;
    color: var(--v3-ink) !important;
    border-color: var(--v3-line) !important;
}
html.seedion-v3 .leaflet-bar a { background: var(--v3-surface) !important; color: var(--v3-ink) !important; }
html.seedion-v3 .leaflet-bar a:hover { background: var(--v3-surface-2) !important; }

/* --------------------------------------------------------------- the calendar
   The scheduler grid comes from a third-party component (ec-*) that paints itself in
   Tailwind greys, which read as navy next to the green of everything else. */
html.seedion-v3 .ec,
html.seedion-v3 .ec-body,
html.seedion-v3 .ec-days,
html.seedion-v3 .ec-day,
html.seedion-v3 .ec-content,
html.seedion-v3 .ec-resource { background-color: var(--v3-surface) !important; }

html.seedion-v3 .ec-header,
html.seedion-v3 .ec-col-head,
html.seedion-v3 .ec-time,
html.seedion-v3 .ec-sidebar,
html.seedion-v3 .ec-slots { background-color: var(--v3-surface-2) !important; }

html.seedion-v3 .ec-day.ec-today,
html.seedion-v3 .ec-col-head.ec-today { background-color: #0F2E22 !important; }

html.seedion-v3 .ec-line,
html.seedion-v3 .ec-day,
html.seedion-v3 .ec-col-head,
html.seedion-v3 .ec-time,
html.seedion-v3 .ec-resource { border-color: var(--v3-line-soft) !important; }

html.seedion-v3 .ec-event {
    background-color: var(--v3-green) !important;
    border-color: var(--v3-mint) !important;
    color: var(--v3-ink) !important;
}
html.seedion-v3 .ec-event-title { color: var(--v3-ink) !important; font-weight: 600; }
html.seedion-v3 .ec-event-time { color: var(--v3-mint) !important; }

/* Fleetbase's own accent buttons (btn-magic and friends) are indigo. On this page they
   are the only blue left, which makes them look like someone else's software. */
html.seedion-v3 .btn-magic,
html.seedion-v3 .btn-info {
    background: var(--v3-green) !important;
    border-color: var(--v3-green) !important;
    color: var(--v3-ink) !important;
}
html.seedion-v3 .btn-magic:hover,
html.seedion-v3 .btn-info:hover { background: #246B4B !important; }

/* Tab strips on the IGF pages: the one you are on gets the gold underline, the rest stay quiet. */
html.seedion-v3 .seedion-tab {
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    color: var(--v3-muted) !important;
}
html.seedion-v3 .seedion-tab:hover { color: var(--v3-ink) !important; }
html.seedion-v3 .seedion-tab.is-active {
    color: var(--v3-ink) !important;
    border-bottom: 2px solid var(--v3-gold) !important;
}

/* ------------------------------------------------- readability, measured not guessed
   These came out of a contrast sweep over every page: text that fell below 3:1 against
   what it actually sits on. */

/* the organisation initial in the top bar: white on yellow is 1.9:1 */
html.seedion-v3 .org-badge {
    background: var(--v3-green) !important;
    color: var(--v3-ink) !important;
}

/* the chips and buttons in a list row sit on a dark row, so they need the bright end
   of each colour, not the dark end that was made for a white page */
html.seedion-v3 .row,
html.seedion-v3 .row-main,
html.seedion-v3 .seedion-row { background-color: var(--v3-surface) !important; }
html.seedion-v3 .row-chip {
    background: transparent !important;
    border: 1px solid currentColor !important;
}
html.seedion-v3 .row-chip--red { color: #E8694A !important; }
html.seedion-v3 .row-chip--orange,
html.seedion-v3 .row-chip--amber { color: var(--v3-amber) !important; }
html.seedion-v3 .row-chip--green { color: var(--v3-mint) !important; }
html.seedion-v3 .row-btn--red { color: #E8694A !important; }

/* Fleetbase's remaining accent text colours */
html.seedion-v3 .text-sky-500,
html.seedion-v3 .text-sky-600,
html.seedion-v3 .text-blue-500,
html.seedion-v3 .text-blue-600 { color: var(--v3-mint) !important; }

/* "X took it over" was a dark green made for a white page - 2.9:1 on a dark row */
html.seedion-v3 .row-meta.is-taken,
html.seedion-v3 .is-taken { color: var(--v3-mint) !important; }

/* ----------------------------------------------------- the phone test pages
   A band of bright mint across the top is not what the real phone apps look like -
   there the head is deep green with light type on it. */
html.seedion-v3 .seedion-m-head {
    background: var(--v3-green) !important;
    color: var(--v3-ink) !important;
    border-bottom: 1px solid var(--v3-mint) !important;
}
html.seedion-v3 .seedion-m-head *,
html.seedion-v3 .seedion-m-title { color: var(--v3-ink) !important; }
html.seedion-v3 .seedion-m-sub,
html.seedion-v3 .seedion-m-head .seedion-m-kicker { color: var(--v3-mint) !important; }
html.seedion-v3 .seedion-m { background: var(--v3-surface) !important; }

/* ================================================ things that are not ours to show
   Fleetbase's own trays and menu entries: the globe (language), the notification tray,
   the chat tray, the overflow and customise buttons in the header. None of them are
   part of this product, and the name must not appear in the interface at all. */
html.seedion-v3 .next-user-button.locale-selector-tray,
html.seedion-v3 .next-user-button.notification-tray,
html.seedion-v3 .next-user-button.chat-tray,
html.seedion-v3 .snm-more-btn,
html.seedion-v3 .snm-customise-btn { display: none !important; }

/* the two outside links can be matched by where they point */
html.seedion-v3 .next-dd-item[href*="discord.gg"],
html.seedion-v3 .next-dd-item[href*="github.com/fleetbase"] { display: none !important; }

/* the version of the underlying platform, at the bottom of the organisation menu */
html.seedion-v3 .app-version-in-nav { display: none !important; }

/* Live Map: the row of category chips (Arrival, Departure, Hotel ↔ Golf course …) is
   gone at Wolfram's request, 21.11. No filter is lost in the sense of trips becoming
   invisible - none of the chips was switched on, so the map keeps showing everything.
   Taking this line out gives the map back about 40 pixels of height.
   To bring it back: delete this rule. */
html.seedion-v3 .seedion-live-legend { display: none !important; }

/* The start screen before the app has booted was still white - a bright flash on every
   reload. It is painted before the skin's class exists, so these rules are not scoped. */
#boot-loader,
.overloader {
    background: #07130D !important;
    color: #8FB3A1 !important;
}
.overloader .loading-message,
#boot-loader .loading-message { color: #8FB3A1 !important; }
