/* ---------------------------------------------------------------------------
   Kootu admin theme.

   Layered on top of Filament rather than compiled into it, so the panel keeps
   working after a `filament:upgrade` and the backend needs no Node build step.
   The palette and radii are the same tokens the Flutter app uses, so the two
   surfaces read as one product.
   --------------------------------------------------------------------------- */

:root {
  --kootu-bg: #fbf6ef;
  --kootu-bg-warm: #f9f2e8;
  --kootu-surface: #ffffff;
  --kootu-surface-soft: #fffcf7;
  --kootu-navy: #14295b;
  --kootu-navy-deep: #0e1e44;
  --kootu-heading: #17315f;
  --kootu-saffron: #e8752a;
  --kootu-rust: #c0562a;
  --kootu-text: #1f2937;
  --kootu-muted: #6b7280;
  --kootu-border: #ede3d5;
  --kootu-divider: #f1e9dd;

  --kootu-radius: 18px;
  --kootu-radius-sm: 12px;
  --kootu-shadow: 0 6px 20px rgba(107, 79, 42, 0.06);
  --kootu-shadow-lg: 0 12px 34px rgba(107, 79, 42, 0.10);
}

/* ------------------------------------------------------------------ shell */

.fi-body,
.fi-simple-layout {
  background-color: var(--kootu-bg);
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  color: var(--kootu-text);
  -webkit-font-smoothing: antialiased;
}

/* A soft warm wash behind the whole panel, echoing the app's home header. */
.fi-body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(232, 117, 42, 0.07), transparent 46%),
    radial-gradient(circle at 88% 0%, rgba(20, 41, 91, 0.06), transparent 42%);
}

.fi-layout,
.fi-main-ctn {
  position: relative;
  z-index: 1;
}

.fi-main {
  max-width: 90rem;
}

/* ---------------------------------------------------------------- sidebar */

.fi-sidebar {
  background-color: var(--kootu-surface);
  border-right: 1px solid var(--kootu-border);
}

.fi-sidebar-header {
  background-color: var(--kootu-surface);
  border-bottom: 1px solid var(--kootu-divider);
  box-shadow: none;
}

.fi-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--kootu-heading);
}

/* ------------------------------------------------------------ brand lockup */

.kootu-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
}

.kootu-brand-mark {
  height: 2.2rem;
  width: auto;
  flex: none;
}

.kootu-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}

.kootu-brand-name {
  font-family: 'Playfair', Georgia, serif;
  font-variation-settings: 'wght' 800;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--kootu-navy-deep);
}

/* The tag is the whole point of the lockup here: this is the staff panel. */
.kootu-brand-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kootu-saffron);
  background-color: #fdf0e3;
  border: 1px solid #f3d8bd;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  transform: translateY(-0.12rem);
}

.dark .kootu-brand-name {
  color: #f3f1ee;
}

.dark .kootu-brand-tag {
  background-color: rgba(232, 117, 42, 0.14);
  border-color: rgba(232, 117, 42, 0.35);
}

/* In the topbar — small screens only, where the sidebar (and its copy of the
   lockup) is off-canvas. `order` puts it after the hamburger without moving
   the hook out of the start of the topbar. */
.kootu-topbar-brand {
  display: inline-flex;
  align-items: center;
  margin-inline-end: 0.5rem;
  min-width: 0;
}

.fi-topbar-open-sidebar-btn,
.fi-topbar-close-sidebar-btn {
  order: -1;
}

.kootu-topbar-brand .kootu-brand-mark { height: 1.75rem; }
.kootu-topbar-brand .kootu-brand-name { font-size: 1.15rem; }

.kootu-topbar-brand .kootu-brand-tag {
  font-size: 0.55rem;
  padding: 0.15rem 0.35rem;
}

@media (min-width: 1024px) {
  .kootu-topbar-brand { display: none; }
}

/* Very narrow phones: the mark and name carry it, the tag can go. */
@media (max-width: 379.98px) {
  .kootu-topbar-brand .kootu-brand-tag { display: none; }
}

/* On the sign-in card the lockup stacks and grows. */
.fi-simple-page .kootu-brand {
  flex-direction: column;
  gap: 0.7rem;
}

.fi-simple-page .kootu-brand-mark {
  height: 4.75rem;
}

.fi-simple-page .kootu-brand-name {
  font-size: 2.35rem;
}

.fi-simple-page .kootu-brand-tag {
  font-size: 0.68rem;
  padding: 0.24rem 0.6rem;
}

.fi-sidebar-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a99b86;
}

.fi-sidebar-item-btn {
  border-radius: var(--kootu-radius-sm);
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fi-sidebar-item:not(.fi-active) .fi-sidebar-item-btn:hover {
  background-color: var(--kootu-bg-warm);
}

/* The active item gets the navy pill from the app's bottom navigation. */
.fi-sidebar-item.fi-active .fi-sidebar-item-btn {
  background-color: var(--kootu-navy);
  box-shadow: 0 4px 12px rgba(20, 41, 91, 0.22);
}

.fi-sidebar-item.fi-active .fi-sidebar-item-btn:hover {
  background-color: var(--kootu-navy-deep);
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-icon {
  color: #ffffff;
}

/* ----------------------------------------------------------------- topbar */

.fi-topbar > nav {
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--kootu-border);
  box-shadow: none;
}

.fi-topbar-item-label,
.fi-header-heading {
  color: var(--kootu-heading);
}

.fi-header-heading {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fi-header-subheading {
  color: var(--kootu-muted);
}

/* ------------------------------------------------------- cards and panels */

/* `fi-section-not-contained` is Filament's own signal that a section is a bare
   heading over its children — the stats overview uses it — so it must be left
   out or the KPI cards end up inside a second, larger card. */
.fi-section:not(.fi-section-not-contained),
.fi-wi-stats-overview-stat,
.fi-ta-ctn,
.fi-modal-window {
  border-radius: var(--kootu-radius);
  border: 1px solid var(--kootu-border);
  box-shadow: var(--kootu-shadow);
  background-color: var(--kootu-surface);
}

.fi-section-not-contained > .fi-section-header {
  border-bottom: 0;
  padding-inline: 0;
  padding-bottom: 0.25rem;
}

.fi-section-not-contained .fi-section-header-heading {
  font-size: 1rem;
  font-weight: 700;
}

.fi-section-header {
  border-bottom: 1px solid var(--kootu-divider);
}

.fi-section-header-heading {
  color: var(--kootu-heading);
  font-weight: 600;
}

/* ------------------------------------------------------------ stat widgets */

.fi-wi-stats-overview-stat {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  position: relative;
}

.fi-wi-stats-overview-stat::after {
  /* A thin saffron edge so the KPI row does not read as plain boxes. */
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--kootu-saffron), var(--kootu-rust));
  opacity: 0.85;
}

.fi-wi-stats-overview-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--kootu-shadow-lg);
}

.fi-wi-stats-overview-stat-label {
  color: var(--kootu-muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fi-wi-stats-overview-stat-value {
  color: var(--kootu-heading);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

.fi-wi-stats-overview-stat-description {
  color: var(--kootu-muted);
}

/* ----------------------------------------------------------------- tables */

.fi-ta-header-cell {
  background-color: var(--kootu-surface-soft);
  color: var(--kootu-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fi-ta-row {
  transition: background-color 0.12s ease;
}

.fi-ta-row:hover {
  background-color: var(--kootu-bg-warm);
}

.fi-ta-text-item-label {
  color: var(--kootu-text);
}

.fi-ta-record-description {
  color: var(--kootu-muted);
}

/* --------------------------------------------------------- buttons, chips */

.fi-btn {
  border-radius: var(--kootu-radius-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.fi-btn.fi-color-primary {
  box-shadow: 0 4px 12px rgba(20, 41, 91, 0.20);
}

.fi-badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.fi-input-wrp {
  border-radius: var(--kootu-radius-sm);
}

.fi-dropdown-panel {
  border-radius: var(--kootu-radius);
  border: 1px solid var(--kootu-border);
  box-shadow: var(--kootu-shadow-lg);
}

/* ------------------------------------------------------------ login screen */

.fi-simple-main {
  border-radius: 22px;
  border: 1px solid var(--kootu-border);
  box-shadow: var(--kootu-shadow-lg);
  background-color: var(--kootu-surface);
}

.fi-simple-header-heading {
  color: var(--kootu-heading);
  font-weight: 700;
}

.fi-simple-header-subheading {
  color: var(--kootu-muted);
}

/* The lockup sizes itself, so the wrapper must not be pinned to a height. */
.fi-simple-page .fi-logo {
  height: auto !important;
  display: flex;
  justify-content: center;
}

/* Belt and braces with the JS guard: the install prompt never overlaps the
   sign-in card, whatever order the events fire in. */
.fi-simple-layout #kootu-install {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Fitting the sign-in card without scrolling.

   The panel is opened inside a mobile webview as well as a desktop browser, so
   the card steps down as the viewport gets shorter instead of relying on one
   fixed size. Each breakpoint gives up the least useful vertical space first:
   logo size, then the subheading, then the stacked lockup.
   -------------------------------------------------------------------------- */

@media (max-height: 800px) {
  .fi-simple-page .kootu-brand-mark { height: 3.5rem; }
  .fi-simple-page .kootu-brand-name { font-size: 1.9rem; }
  .fi-simple-page .kootu-brand { gap: 0.45rem; }
  .fi-simple-page .fi-simple-header { gap: 0.4rem; }
  .fi-simple-header-heading { font-size: 1.2rem; }
}

@media (max-height: 700px) {
  .fi-simple-page { padding-block: 0.75rem; }
  /* Filament centres the card with a 4rem vertical margin, which on a short
     viewport is what pushes the page into scrolling even when the card fits. */
  .fi-simple-main { margin-block: 1.5rem; padding: 1.5rem 1.5rem; }
  .fi-simple-page-content { gap: 1rem; }
  .fi-simple-page-content > .fi-grid { row-gap: 1rem; }

  .fi-simple-page .kootu-brand-mark { height: 2.9rem; }
  .fi-simple-page .kootu-brand-name { font-size: 1.6rem; }

  /* The heading already says "Admin sign in"; the explainer is the first
     thing that can go. */
  .fi-simple-page .fi-simple-header-subheading { display: none; }
}

@media (max-height: 620px) {
  .fi-simple-page { padding-block: 0.5rem; }
  .fi-simple-main { margin-block: 0.75rem; padding: 1.15rem 1.25rem; }
  .fi-simple-header-heading { font-size: 1.05rem; }
  .fi-simple-page .fi-simple-header { gap: 0.3rem; }

  /* Once the branding has nothing left to give, tighten the form itself. */
  .fi-simple-page-content > .fi-grid { row-gap: 0.75rem; }
  .fi-simple-page .fi-input { padding-block: 0.4rem; }
  .fi-simple-page .fi-btn { padding-block: 0.5rem; }
}

/* Short but wide — landscape phones and squat webviews. There is width going
   spare, so the card becomes two columns instead of shrinking further: brand
   on the left, form on the right. That roughly halves its height. */
@media (max-height: 620px) and (min-width: 600px) {
  .fi-simple-main {
    max-width: 44rem !important;
    margin-block: 0.75rem;
    padding: 1.5rem 1.75rem;
  }

  /* This container is a CSS grid, not a flexbox, so the split has to be
     expressed as columns — flex-direction here does nothing at all. */
  .fi-simple-page-content {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    align-items: center;
    column-gap: 2rem;
  }

  /* The column has vertical room again, so the lockup restacks and the
     explainer comes back. */
  .fi-simple-page .kootu-brand { flex-direction: column; gap: 0.5rem; }
  .fi-simple-page .kootu-brand-mark { height: 3rem; }
  .fi-simple-page .kootu-brand-name { font-size: 1.7rem; }
  .fi-simple-page .fi-simple-header-subheading {
    display: block;
    font-size: 0.78rem;
  }
}

/* Narrow and short: no room for two columns, so the lockup goes to one row. */
@media (max-height: 620px) and (max-width: 599px) {
  .fi-simple-page .kootu-brand { flex-direction: row; gap: 0.5rem; }
  .fi-simple-page .kootu-brand-mark { height: 2.1rem; }
  .fi-simple-page .kootu-brand-name { font-size: 1.35rem; }
  .fi-simple-page .kootu-brand-tag {
    font-size: 0.58rem;
    padding: 0.16rem 0.4rem;
  }
}

.kootu-tagline {
  margin: -0.4rem 0 1.4rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--kootu-rust);
}

.fi-simple-page .fi-simple-header {
  gap: 0.6rem;
  text-align: center;
}

.fi-simple-header-heading {
  font-size: 1.35rem;
}

/* -------------------------------------------------- listings on small screens

   Filament's `stackedOnMobile()` (applied to every table in
   AppServiceProvider) already turns each row into a labelled block, and this
   gives those blocks card chrome — label beside value — so a listing reads as
   a stack of record cards rather than a table running off the side.

   The breakpoint is 1024px, not Filament's own 640px. Below 1024 the sidebar
   is off-canvas, which is exactly the width range where a seven-column table
   has nowhere to go: at 768px it fitted only by scrolling sideways inside its
   container, with two columns permanently out of sight. The first block below
   re-applies the stacking that Filament's `sm:` utilities undo at 640.
   --------------------------------------------------------------------------- */

@media (min-width: 640px) and (max-width: 1023.98px) {
  .fi-ta-table-stacked-on-mobile,
  .fi-ta-table-stacked-on-mobile > thead,
  .fi-ta-table-stacked-on-mobile > tbody,
  .fi-ta-table-stacked-on-mobile > tbody > tr,
  .fi-ta-table-stacked-on-mobile > tbody > tr > .fi-ta-cell:not(.fi-ta-selection-cell) {
    display: block;
  }

  .fi-ta-table-stacked-on-mobile > tbody {
    white-space: normal;
  }

  .fi-ta-table-stacked-on-mobile > tbody > tr {
    position: relative;
  }

  .fi-ta-table-stacked-on-mobile > thead:not(:has(.fi-ta-table-stacked-header-row)),
  .fi-ta-table-stacked-on-mobile > thead > tr:not(.fi-ta-table-stacked-header-row),
  .fi-ta-table-stacked-on-mobile > thead > tr > .fi-ta-header-cell,
  .fi-ta-table-stacked-on-mobile > thead > tr > .fi-ta-selection-cell {
    display: none;
  }

  .fi-ta-table-stacked-on-mobile > tbody > tr > .fi-ta-selection-cell {
    position: absolute;
    display: block;
    width: auto;
    padding: 0;
  }

  /* Filament re-adds cell padding to column bodies at `sm`; the card supplies
     its own, so take it back off. */
  .fi-ta-table-stacked-on-mobile :is(.fi-ta-text, .fi-ta-image, .fi-ta-icon) {
    padding: 0;
  }

  /* Filament hides the per-cell labels at `sm` because it expects the column
     headers to be back. Here the cards are still cards, so the labels have to
     stay — without them the label column of the grid sits empty and squeezes
     every value into 6.6rem. */
  .fi-ta-table-stacked-on-mobile
    > tbody
    > tr
    > .fi-ta-cell:not(.fi-ta-selection-cell)
    > .fi-ta-cell-label {
    display: block;
  }

  .fi-ta-table-stacked-on-mobile
    > tbody
    > tr
    > .fi-ta-cell:not(.fi-ta-selection-cell)
    > .fi-ta-cell-label:empty {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  /* The listing container stops being a card — the records inside are the
     cards now, and two nested surfaces just eat horizontal space. */
  .fi-ta-ctn {
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }

  .fi-ta-table-stacked-on-mobile > tbody {
    display: grid;
    gap: 0.5rem;
    padding: 0.15rem 0 0.5rem;
    border: 0;
  }

  /* One record = one card. */
  .fi-ta-table-stacked-on-mobile > tbody > tr {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--kootu-border);
    border-radius: var(--kootu-radius-sm);
    background-color: var(--kootu-surface);
    box-shadow: var(--kootu-shadow);
  }

  .fi-ta-table-stacked-on-mobile > tbody > tr:hover {
    background-color: var(--kootu-surface);
  }

  /* Label on the left, value on the right — the shape of a data card. */
  .fi-ta-table-stacked-on-mobile
    > tbody
    > tr
    > .fi-ta-cell:not(.fi-ta-selection-cell) {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: baseline;
    gap: 0.2rem 0.6rem;
    padding: 0.3rem 0;
  }

  /* Tighter type than the desktop table: the card is doing the separating
     work, so the text does not also need to be spaced out. */
  .fi-ta-table-stacked-on-mobile .fi-ta-cell-content,
  .fi-ta-table-stacked-on-mobile .fi-ta-text-item {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .fi-ta-table-stacked-on-mobile .fi-ta-text-description {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .fi-ta-table-stacked-on-mobile
    > tbody
    > tr
    > .fi-ta-cell:not(.fi-ta-selection-cell)
    + .fi-ta-cell:not(.fi-ta-selection-cell) {
    border-top: 1px solid var(--kootu-divider);
  }

  .fi-ta-cell-label {
    color: var(--kootu-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.5;
    text-transform: uppercase;
  }

  /* Images and action buttons carry no label, so they take the full width. */
  .fi-ta-cell-label:empty { display: none; }

  .fi-ta-table-stacked-on-mobile
    > tbody
    > tr
    > .fi-ta-cell:has(> .fi-ta-cell-label:empty) {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The row's actions close the card off. */
  .fi-ta-table-stacked-on-mobile > tbody > tr > .fi-ta-cell:has(.fi-ta-actions) {
    margin-top: 0.1rem;
    padding-top: 0.45rem;
    padding-bottom: 0;
  }

  .fi-ta-table-stacked-on-mobile .fi-ta-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Filament pins the bulk-select checkbox to the row's top-right corner;
     nudge it inside the card's padding and keep the first value clear of it. */
  .fi-ta-table-stacked-on-mobile > tbody > tr > .fi-ta-selection-cell {
    inset-inline-end: 0.6rem;
    top: 0.55rem;
  }

  .fi-ta-table-stacked-on-mobile
    > tbody
    > tr
    > .fi-ta-selection-cell
    + .fi-ta-cell {
    padding-inline-end: 1.75rem;
  }

  /* A thumbnail leading the card, rather than a stray 44px icon with an empty
     row beside it. `!important` because Filament sets the height inline. */
  .fi-ta-table-stacked-on-mobile .fi-ta-image img {
    height: 2.5rem !important;
    border-radius: 0.5rem;
    object-fit: cover;
  }

  /* Long values wrap rather than forcing the card wider. */
  .fi-ta-table-stacked-on-mobile .fi-ta-cell-content,
  .fi-ta-table-stacked-on-mobile .fi-ta-text {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* The stacked header row holds the sort control; keep it off the cards. */
  .fi-ta-table-stacked-header-row > th {
    padding-bottom: 0.6rem;
  }

  /* The cards carry their own surface, so they need the dark one too. */
  .dark .fi-ta-table-stacked-on-mobile > tbody > tr,
  .dark .fi-ta-table-stacked-on-mobile > tbody > tr:hover {
    background-color: #202127;
    border-color: #33343b;
  }

  .dark
    .fi-ta-table-stacked-on-mobile
    > tbody
    > tr
    > .fi-ta-cell:not(.fi-ta-selection-cell)
    + .fi-ta-cell:not(.fi-ta-selection-cell) {
    border-top-color: #33343b;
  }

  .dark .fi-ta-cell-label {
    color: #a9a6a1;
  }
}

/* Filament ships two triggers for a bulk-action group: a labelled button
   carrying `fi-labeled-from-sm`, and an icon-only one that takes over below
   640px. So on a phone the control collapses to a bare "⋮" whose only name is
   a `title` attribute — invisible in practice, and the reason bulk actions
   looked missing there. Give it back the label it already announces, and the
   weight of a real button. Above 640px Filament's own labelled button shows
   and this one is hidden, so nothing here touches tablet or desktop. */
@media (max-width: 639.98px) {
  .fi-ta-header-toolbar .fi-ac-btn-group.fi-icon-btn {
    width: auto;
    padding-inline: 0.8rem;
    gap: 0.4rem;
    border-radius: var(--kootu-radius-sm);
    background-color: var(--kootu-navy);
    color: #ffffff;
  }

  .fi-ta-header-toolbar .fi-ac-btn-group.fi-icon-btn::after {
    content: 'Bulk actions';
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
  }

  /* Brand navy disappears against the dark shell; use the lighter blue the
     sidebar's active item already uses there. */
  .dark .fi-ta-header-toolbar .fi-ac-btn-group.fi-icon-btn {
    background-color: #2f4c8f;
  }
}

/* -------------------------------------------------------------- dark mode */

.dark .fi-body,
.dark .fi-simple-layout {
  background-color: #17181c;
  color: #e6e4e0;
}

.dark .fi-body::before {
  background:
    radial-gradient(circle at 15% -10%, rgba(232, 117, 42, 0.10), transparent 46%),
    radial-gradient(circle at 88% 0%, rgba(63, 96, 168, 0.12), transparent 42%);
}

.dark .fi-sidebar,
.dark .fi-sidebar-header,
.dark .fi-section,
.dark .fi-wi-stats-overview-stat,
.dark .fi-ta-ctn,
.dark .fi-modal-window,
.dark .fi-simple-main {
  background-color: #202127;
  border-color: #33343b;
  box-shadow: none;
}

.dark .fi-topbar > nav {
  background-color: rgba(32, 33, 39, 0.88);
  border-bottom-color: #33343b;
}

.dark .fi-ta-header-cell {
  background-color: #24252c;
  color: #a9a6a1;
}

.dark .fi-ta-row:hover {
  background-color: #262830;
}

.dark .fi-header-heading,
.dark .fi-section-header-heading,
.dark .fi-wi-stats-overview-stat-value,
.dark .fi-simple-header-heading,
.dark .fi-logo {
  color: #f3f1ee;
}

.dark .fi-sidebar-item-button:hover {
  background-color: #2a2c34;
}

.dark .fi-sidebar-item-active .fi-sidebar-item-button {
  background-color: #2f4c8f;
  box-shadow: none;
}
