/* Global production-safe UI enhancements. Feature switches decide what initializes. */
:root {
  --gk-ui-z-loading: 1040;
  --gk-ui-z-dropdown: 1060;
  --gk-ui-z-modal-backdrop: 1070;
  --gk-ui-z-modal: 1080;
  --gk-ui-z-toast: 1090;
  --gk-ui-focus: 0 0 0 3px rgba(199, 154, 43, 0.24);
}

/* Hides the server-rendered flash block (partials/alerts.html) so initToasts can
   replace it with a toast. Client-injected alerts opt out with data-gk-toast-ignore:
   initToasts only scans once at DOMContentLoaded, so it never converts them and
   without the opt-out they would be hidden forever. */
.gk-toasts-enabled #message:not([data-gk-toast-ignore]) {
  display: none !important;
}

/* Chrome ignores line-height on a closed <select> and lays the text out with the
   font's "normal" line box. Noto Sans Arabic reports ~2.2em there, so a locked
   38px height plus vertical padding left only ~25px of content box and Chrome
   clipped the Arabic descenders. Keep 38px as the minimum and let the control
   grow if the line box ever needs more. */
select.form-control:not([multiple]),
select.custom-select:not([multiple]) {
  background-position: right 0.75rem center !important;
  direction: rtl !important;
  height: auto;
  min-height: calc(2.25rem + 2px);
  padding-block: 0 !important;
  padding-left: 0.75rem !important;
  padding-right: 2rem !important;
  text-align: right !important;
  text-align-last: right;
  text-overflow: ellipsis;
  unicode-bidi: isolate;
  white-space: nowrap;
}

select.form-control:not([multiple]) option,
select.custom-select:not([multiple]) option {
  direction: rtl;
  text-align: right;
}

.gk-ui-nav-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--aureum-card-border, #E4DED2);
  border-radius: 8px;
  color: var(--aureum-navy, #172033);
  display: inline-flex;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gk-ui-nav-btn:hover,
.gk-ui-nav-btn:focus-visible {
  background: #F7F4EF;
  border-color: rgba(199, 154, 43, 0.55);
  box-shadow: var(--gk-ui-focus);
  outline: 0;
}

.gk-ui-nav-btn i {
  font-size: 1.1rem;
}

.gk-ui-nav-btn kbd {
  background: #F2F0ED;
  border: 1px solid #DED6C6;
  border-radius: 5px;
  color: var(--aureum-text-secondary, #667085);
  font-size: 0.66rem;
  line-height: 1;
  padding: 3px 5px;
}

.gk-ui-nav-btn-icon {
  justify-content: center;
  padding: 0;
  width: 36px;
}

.gk-loading-bar {
  background: linear-gradient(90deg, var(--aureum-gold, #C79A2B), var(--aureum-gold-bright, #FFD569));
  box-shadow: 0 0 10px rgba(199, 154, 43, 0.35);
  height: 3px;
  inset-block-start: 0;
  inset-inline-end: 0;
  position: fixed;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms ease, opacity 180ms ease;
  width: 100%;
  z-index: var(--gk-ui-z-loading);
}

.gk-loading-bar.is-visible {
  opacity: 1;
  transform: scaleX(0.72);
}

.gk-loading-bar.is-finishing {
  opacity: 0;
  transform: scaleX(1);
}

.gk-command-backdrop {
  align-items: flex-start;
  background: rgba(23, 32, 51, 0.28);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 9vh 18px 24px;
  position: fixed;
  z-index: var(--gk-ui-z-modal);
}

.gk-command-backdrop.is-open {
  display: flex;
}

.gk-command-panel {
  background: #fff;
  border: 1px solid var(--aureum-card-border, #E4DED2);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.22);
  color: var(--aureum-text, #172033);
  display: flex;
  flex-direction: column;
  height: min(720px, calc(100vh - 96px));
  max-width: 760px;
  min-height: 260px;
  overflow: hidden;
  width: min(760px, 100%);
}

.gk-command-search {
  align-items: center;
  border-bottom: 1px solid var(--aureum-card-border, #E4DED2);
  display: flex;
  gap: 10px;
  padding: 12px 14px;
}

.gk-command-search i {
  color: var(--aureum-gold, #C79A2B);
  font-size: 1.25rem;
}

.gk-command-input {
  border: 0;
  color: var(--aureum-text, #172033);
  flex: 1;
  font-size: 1rem;
  outline: 0;
}

.gk-command-input::placeholder {
  color: #5B6678;
}

.gk-command-results {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  scroll-padding: 12px;
}

.gk-command-group-title {
  color: var(--aureum-text-secondary, #667085);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 10px 10px 5px;
}

.gk-command-result {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 10px;
  text-align: right;
  width: 100%;
}

.gk-command-result:hover,
.gk-command-result.is-active {
  background: #F7F4EF;
}

.gk-command-icon {
  align-items: center;
  background: #F2F0ED;
  border-radius: 8px;
  color: var(--aureum-navy, #172033);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.gk-command-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.gk-command-subtitle {
  color: var(--aureum-text-secondary, #667085);
  display: block;
  font-size: 0.76rem;
  margin-top: 2px;
}

.gk-command-empty {
  color: var(--aureum-text-secondary, #667085);
  padding: 28px 14px;
  text-align: center;
}

.gk-recent-menu {
  background: #fff;
  border: 1px solid var(--aureum-card-border, #E4DED2);
  border-radius: 10px;
  box-shadow: 0 16px 42px rgba(23, 32, 51, 0.18);
  color: var(--aureum-text, #172033);
  display: none;
  max-height: min(600px, 78vh);
  overflow-y: auto;
  padding: 10px;
  position: fixed;
  width: min(380px, calc(100vw - 24px));
  z-index: var(--gk-ui-z-dropdown);
}

.gk-recent-menu.is-open {
  display: block;
}

.gk-recent-section + .gk-recent-section {
  border-top: 1px solid #ECE6DA;
  margin-top: 8px;
  padding-top: 8px;
}

.gk-recent-heading {
  color: var(--aureum-text-secondary, #667085);
  font-size: 0.72rem;
  font-weight: 700;
  margin: 4px 4px 6px;
}

.gk-recent-item {
  align-items: center;
  border-radius: 8px;
  color: inherit;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px;
  text-decoration: none;
}

.gk-recent-item:hover {
  background: #F7F4EF;
  color: inherit;
  text-decoration: none;
}

.gk-recent-empty {
  color: var(--aureum-text-secondary, #667085);
  font-size: 0.8rem;
  padding: 8px;
}

.gk-toast-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  inset-block-start: 74px;
  inset-inline-end: 18px;
  position: fixed;
  width: min(410px, calc(100vw - 36px));
  z-index: var(--gk-ui-z-toast);
}

.gk-toast {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--aureum-card-border, #E4DED2);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.16);
  color: var(--aureum-text, #172033);
  display: flex;
  gap: 12px;
  overflow: hidden;
  padding: 13px 14px;
  position: relative;
}

.gk-toast::after {
  background: #E4DED2;
  bottom: 0;
  content: "";
  height: 3px;
  inset-inline: 0;
  position: absolute;
}

.gk-toast-success { background: linear-gradient(180deg, #fff, rgba(15, 118, 110, 0.035)); border-color: rgba(15, 118, 110, 0.26); }
.gk-toast-error { background: linear-gradient(180deg, #fff, rgba(180, 35, 24, 0.035)); border-color: rgba(180, 35, 24, 0.28); }
.gk-toast-warning { background: linear-gradient(180deg, #fff, rgba(199, 154, 43, 0.045)); border-color: rgba(199, 154, 43, 0.36); }
.gk-toast-info { background: linear-gradient(180deg, #fff, rgba(30, 42, 69, 0.035)); border-color: rgba(30, 42, 69, 0.22); }

.gk-toast-icon {
  align-items: center;
  background: #F2F0ED;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 30px;
  justify-content: center;
  margin-top: 1px;
  width: 30px;
}

.gk-toast-icon i {
  font-size: 1.05rem;
}

.gk-toast-success .gk-toast-icon { background: var(--aureum-green, #0F766E); }
.gk-toast-error .gk-toast-icon { background: var(--aureum-red, #B42318); }
.gk-toast-warning .gk-toast-icon { background: var(--aureum-gold, #C79A2B); }
.gk-toast-info .gk-toast-icon { background: var(--aureum-navy, #172033); }
.gk-toast-success::after { background: var(--aureum-green, #0F766E); }
.gk-toast-error::after { background: var(--aureum-red, #B42318); }
.gk-toast-warning::after { background: var(--aureum-gold, #C79A2B); }
.gk-toast-info::after { background: var(--aureum-navy, #172033); }

.gk-toast-title {
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.gk-toast-message {
  color: var(--aureum-text-secondary, #667085);
  font-size: 0.81rem;
  line-height: 1.55;
}

.gk-toast-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--aureum-text-secondary, #667085);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  margin-inline-start: auto;
  padding: 0;
  width: 28px;
}

.gk-toast-close:hover,
.gk-toast-close:focus-visible {
  background: #F2F0ED;
  color: var(--aureum-navy, #172033);
  outline: 0;
}

.gk-field-help {
  color: var(--aureum-text-secondary, #667085);
  display: block;
  font-size: 0.74rem;
  margin-top: 5px;
}

.gk-field-help.is-error {
  color: var(--aureum-red, #B42318);
}

.form-control.gk-invalid,
input.gk-invalid,
select.gk-invalid,
textarea.gk-invalid {
  border-color: var(--aureum-red, #B42318) !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14) !important;
}

.gk-table-enhanced thead th {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 3;
}

/* Keep header colors set on the thead (bg-secondary, bg-dark, ...): the sticky
   th would otherwise paint #fff over them and hide any text-white on top. */
.gk-table-enhanced thead[class*="bg-"] th {
  background-color: inherit;
}

.gk-table-enhanced tbody tr:nth-child(even) {
  background-color: rgba(23, 32, 51, 0.018);
}

.gk-table-enhanced tbody tr:hover {
  background-color: rgba(199, 154, 43, 0.08);
}

.gk-table-enhanced .gk-num,
.gk-table-enhanced td[data-num],
.gk-table-enhanced td.gk-numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.gk-table-enhanced tfoot tr,
.gk-table-enhanced tr.gk-total-row {
  background: #F7F4EF;
  bottom: 0;
  font-weight: 800;
  position: sticky;
  z-index: 2;
}

.gk-empty-state {
  align-items: center;
  background: #FAF9F7;
  border: 1px dashed var(--aureum-card-border, #E4DED2);
  border-radius: 8px;
  color: var(--aureum-text-secondary, #667085);
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 96px;
  padding: 18px;
  text-align: center;
}

tr.gk-empty-row > td {
  background: #FAF9F7 !important;
  padding: 0 !important;
}

.gk-empty-state i {
  color: var(--aureum-gold, #C79A2B);
  font-size: 1.7rem;
}

.gk-empty-state strong {
  color: var(--aureum-text, #172033);
  font-size: 0.9rem;
}

@media (max-width: 575.98px) {
  .gk-ui-nav-btn span,
  .gk-ui-nav-btn kbd {
    display: none;
  }

  .gk-ui-nav-btn {
    justify-content: center;
    padding: 0;
    width: 36px;
  }
}

@media print {
  .gk-loading-bar,
  .gk-command-backdrop,
  .gk-recent-menu,
  .gk-toast-stack,
  .gk-ui-nav-btn {
    display: none !important;
  }

  .gk-table-enhanced thead th,
  .gk-table-enhanced tfoot tr,
  .gk-table-enhanced tr.gk-total-row {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gk-loading-bar,
  .gk-ui-nav-btn {
    transition: none;
  }
}

/* ============================================================
   Home — landing surface after login
   ============================================================ */

.gk-home {
  padding: 22px var(--aureum-gutter, 24px) 44px;
  background: var(--aureum-canvas, #FBF8FA);
}

/* ---- Page head ---- */

.gk-home-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--aureum-card-border, #E4DED2);
}

/* Short gold rule under the heading: the brand note on the page edge. */
.gk-home-head::after {
  content: "";
  position: absolute;
  inset-block-end: -1px;
  inset-inline-start: 0;
  width: 52px;
  height: 2px;
  background: var(--aureum-gold, #C79A2B);
}

.gk-home-heading {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--aureum-navy, #172033);
}

.gk-home-context {
  margin: 0;
  font-size: 0.82rem;
  color: var(--aureum-text-secondary, #667085);
}

.gk-home-context > span + span::before {
  content: "\00B7";
  margin-inline: 8px;
  color: var(--aureum-text-muted, #98A2B3);
}

/* ---- Resume banner: the single highest-value control on the page ---- */

.gk-home-resume-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding: 15px 20px;
  background: var(--aureum-navy, #172033);
  border-radius: var(--aureum-radius-sm, 8px);
  box-shadow: 0 2px 10px rgba(23, 32, 51, 0.16);
  color: #FFFFFF;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.gk-home-resume-banner:hover,
.gk-home-resume-banner:focus-visible {
  background: var(--aureum-navy-hover, #253352);
  box-shadow: 0 4px 16px rgba(23, 32, 51, 0.22);
  color: #FFFFFF;
  text-decoration: none;
}

.gk-home-resume-banner:focus-visible {
  outline: none;
  box-shadow: var(--gk-ui-focus);
}

.gk-home-banner-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gk-home-banner-title {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gk-home-banner-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.68);
}

.gk-home-banner-cue {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 1px solid rgba(255, 213, 105, 0.42);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--aureum-gold-bright, #FFD569);
}

/* ---- Grid ---- */

.gk-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.gk-home-grid-wide {
  grid-template-columns: minmax(0, 1fr);
}

.gk-home-title,
.gk-home-group {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--aureum-text-muted, #98A2B3);
}

.gk-home-title {
  margin: 0 0 14px;
}

/* ---- Icon chip ---- */

.gk-home-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--aureum-gold-subtle, #C79A2B1A);
  color: var(--aureum-gold, #C79A2B);
  font-size: 1.1rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.gk-home-chip-invert {
  background: rgba(255, 213, 105, 0.16);
  color: var(--aureum-gold-bright, #FFD569);
}

/* ---- Shortcut cards ---- */

.gk-home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gk-home-card {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 100%;
  min-height: 68px;
  padding: 12px 14px;
  background: var(--aureum-card, #FFFFFF);
  border: 1px solid var(--aureum-card-border, #E4DED2);
  border-radius: var(--aureum-radius-sm, 8px);
  box-shadow: var(--aureum-shadow, 0 1px 3px rgba(23, 32, 51, 0.06));
  color: var(--aureum-text, #172033);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gk-home-card:hover,
.gk-home-card:focus-visible {
  border-color: var(--aureum-gold, #C79A2B);
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.10), 0 1px 3px rgba(23, 32, 51, 0.06);
  transform: translateY(-2px);
  color: var(--aureum-text, #172033);
  text-decoration: none;
}

.gk-home-card:hover .gk-home-chip,
.gk-home-card:focus-visible .gk-home-chip {
  background: var(--aureum-gold, #C79A2B);
  color: #FFFFFF;
}

.gk-home-card:focus-visible {
  outline: none;
  box-shadow: var(--gk-ui-focus);
}

.gk-home-card:active {
  transform: translateY(0);
}

.gk-home-card-label {
  min-width: 0;
  font-size: 0.94rem;
  line-height: 1.35;
}

/* ---- Rail ---- */

.gk-home-rail {
  padding: 4px 16px 16px;
  background: var(--aureum-card, #FFFFFF);
  border: 1px solid var(--aureum-card-border, #E4DED2);
  border-radius: var(--aureum-radius-sm, 8px);
  box-shadow: var(--aureum-shadow, 0 1px 3px rgba(23, 32, 51, 0.06));
}

.gk-home-group {
  margin: 0 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--aureum-card-border, #E4DED2);
}

.gk-home-links + .gk-home-group {
  margin-top: 16px;
}

.gk-home-rail > .gk-home-group:first-child {
  padding-top: 12px;
  border-top: 0;
}

.gk-home-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gk-home-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: var(--aureum-radius-xs, 6px);
  font-size: 0.86rem;
  color: var(--aureum-text, #172033);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.gk-home-link:hover {
  background: var(--aureum-gold-subtle, #C79A2B1A);
  color: var(--aureum-navy, #172033);
  text-decoration: none;
}

.gk-home-link:focus-visible {
  outline: none;
  box-shadow: var(--gk-ui-focus);
}

.gk-home-link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gk-home-pin {
  flex: 0 0 auto;
  font-size: 0.68rem;
  color: var(--aureum-gold, #C79A2B);
}

/* ---- Empty state ---- */

.gk-home-empty {
  max-width: 62ch;
  padding: 26px;
  background: var(--aureum-card, #FFFFFF);
  border: 1px dashed var(--aureum-card-border, #E4DED2);
  border-radius: var(--aureum-radius-sm, 8px);
}

.gk-home-empty p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--aureum-text-secondary, #667085);
}

.gk-home-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 18px;
  background: var(--aureum-gold, #C79A2B);
  border-radius: var(--aureum-radius-xs, 6px);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aureum-navy, #172033);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.gk-home-empty-action:hover {
  background: var(--aureum-gold-bright, #FFD569);
  color: var(--aureum-navy, #172033);
  text-decoration: none;
}

.gk-home-empty-action:focus-visible {
  outline: none;
  box-shadow: var(--gk-ui-focus);
}

/* ---- Responsive ---- */

@media (max-width: 1199.98px) {
  .gk-home-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
  }
}

@media (max-width: 991.98px) {
  .gk-home-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .gk-home {
    padding: 16px 16px 32px;
  }

  .gk-home-cards {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
  }

  .gk-home-card {
    gap: 10px;
    min-height: 62px;
    padding: 11px;
  }

  .gk-home-chip {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .gk-home-card-label {
    font-size: 0.86rem;
  }

  .gk-home-resume-banner {
    gap: 12px;
    padding: 13px 14px;
  }

  .gk-home-banner-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gk-home-card,
  .gk-home-chip,
  .gk-home-link,
  .gk-home-resume-banner,
  .gk-home-empty-action {
    transition: none;
  }

  .gk-home-card:hover,
  .gk-home-card:focus-visible {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Report filter panel — .gk-filters
   The trial-balance screens grew one filter at a time into a single flat row of
   mismatched col-md-* widths (GHG22 summed to 17 columns), so the row wrapped
   raggedly and labels never lined up. Admin switches can now remove a control
   entirely, which in a column grid would leave a hole. Auto-fit grid tracks
   instead: every control keeps the same width, and the row re-flows when one is
   hidden.
   --------------------------------------------------------------------------- */
.gk-filters {
  background: var(--aureum-card, #FFFFFF);
  border: 1px solid var(--aureum-card-border, #E4DED2);
  border-radius: var(--aureum-radius, 14px);
  box-shadow: var(--aureum-shadow, 0 1px 3px rgba(23, 32, 51, 0.06));
  margin-bottom: 1rem;
  padding: 14px 16px 12px;
}

.gk-filters__section + .gk-filters__section {
  border-top: 1px dashed var(--aureum-card-border, #E4DED2);
  margin-top: 14px;
  padding-top: 14px;
}

.gk-filters__legend {
  align-items: center;
  color: var(--aureum-text-secondary, #667085);
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.gk-filters__legend i {
  color: var(--aureum-gold, #C79A2B);
  font-size: 0.85rem;
}

.gk-filters__grid {
  align-items: end;
  display: grid;
  gap: 10px 12px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.gk-filters__field {
  margin: 0;
  min-width: 0;
}

.gk-filters__field > label {
  color: var(--aureum-text, #172033);
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .gk-filters__field--wide {
    grid-column: span 2;
  }
}

/* select2 replaces the <select> with its own box; without this it can push past
   the grid track instead of shrinking with it. */
.gk-filters .select2-container {
  max-width: 100%;
}

.gk-filters .dropdown-toggle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gk-filters__actions {
  align-items: center;
  border-top: 1px solid var(--aureum-card-border, #E4DED2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
}

.gk-filters__actions .btn {
  margin: 0;
}

.gk-filters__actions .gk-filters__actions-end {
  margin-inline-start: auto;
}

@media print {
  .gk-filters {
    display: none !important;
  }
}

/* ============================================================
   RFID — scan console
   The popup every scanning page shows while the chamber reader
   ("microwave") is running: GHC12, GHBR11, GHST12, GHS76, GHS14.
   Markup: Gkweb/static/js/rfid/scan-console.js

   Light warm panel, not a dark one. The operator's eyes move between
   white paper tickets and this screen every few seconds all day; a dark
   panel makes the pupil re-adapt on every glance. Tokens are scoped to
   the modal so nothing else in the app changes.
   ============================================================ */

.gk-rfid-modal {
  --rf-panel: #FBF8F2;
  --rf-ink: #1F1B16;
  --rf-ink-2: #6B6154;
  --rf-line: #E4DDD0;
  --rf-line-soft: #EFE9DD;
  --rf-gold: #B0821E;
  --rf-gold-hi: #C7952A;
  --rf-green: #0F614F;
  --rf-red: #A8261A;
  --rf-red-hi: #8E1F14;
  --rf-amber: #7A5D13;
}

.gk-rfid-dialog {
  max-width: 1180px;
  width: 96%;
}

.gk-rfid-content {
  border: 0;
  border-radius: var(--aureum-radius, 14px);
  box-shadow: 0 20px 50px rgba(28, 24, 20, 0.17), 0 3px 10px rgba(28, 24, 20, 0.09);
  overflow: hidden;
}

.gk-rfid-modal :focus-visible {
  outline: 2px solid var(--rf-gold);
  outline-offset: 2px;
}

/* ---- the console panel ---- */

.gk-rfid-console {
  background: var(--rf-panel);
  border-bottom: 1px solid var(--rf-line);
  color: var(--rf-ink);
  flex: 0 0 auto;
  padding: 14px var(--aureum-card-padding, 20px) 15px;
}

.gk-rfid-strip {
  flex: 0 0 auto;
}

/* The table is what grows when the console gives height back. */
.gk-rfid-content .gk-rfid-body {
  flex: 1 1 auto;
  min-height: 0;
}

.gk-rfid-console-head {
  align-items: center;
  border-bottom: 1px solid var(--rf-line-soft);
  display: flex;
  gap: 10px;
  padding-bottom: 12px;
}

.gk-rfid-title {
  color: var(--rf-ink);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  margin: 0;
}

.gk-rfid-reader {
  color: var(--rf-ink-2);
  font-size: 0.75rem;
  margin-inline-start: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gk-rfid-x {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--rf-ink-2);
  display: grid;
  flex: none;
  height: 30px;
  place-items: center;
  transition: background-color 150ms ease, color 150ms ease;
  width: 30px;
}

.gk-rfid-x:hover,
.gk-rfid-x:focus-visible {
  background: #F0EADE;
  color: var(--rf-ink);
  outline: 0;
}

/* The dot is the only thing that moves. It says the reader is awake —
   the count alone cannot, because a stalled reader also shows a number. */
.gk-rfid-dot {
  background: #D9D1C2;
  border-radius: 50%;
  flex: none;
  height: 9px;
  width: 9px;
}

.gk-rfid-modal.is-reading .gk-rfid-dot {
  animation: gk-rfid-pulse 1.7s ease-in-out infinite;
  background: var(--rf-gold);
}

@keyframes gk-rfid-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(176, 130, 30, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(176, 130, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 130, 30, 0); }
}

/* ---- the hero ---- */

/* ---- the hero, and how it gets out of the way ----
   Scanning: the count is the whole point and owns the panel.
   Results on screen: the operator is reading rows, so the hero collapses and
   a small count slides into the header instead.
   grid-template-rows 1fr -> 0fr is what animates a collapse to the element's
   own height without hard-coding one; the inner element owns the overflow. */

.gk-rfid-hero {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 950ms cubic-bezier(0.45, 0, 0.55, 1),
              opacity 320ms ease 60ms;
}

.gk-rfid-hero-inner {
  min-height: 0;
  overflow: hidden;
}

.gk-rfid-modal.is-compact .gk-rfid-hero {
  grid-template-rows: 0fr;
  opacity: 0;
  /* Held open a beat so the flying number clears the panel before it shuts. */
  transition: grid-template-rows 950ms cubic-bezier(0.45, 0, 0.55, 1) 160ms,
              opacity 320ms ease 260ms;
}

/* The table arrives behind the number: the first rows only, and only on the
   handover. A 900-chip box must not stagger 900 rows. */
.gk-rfid-body.is-entering tbody tr:nth-child(-n + 12) {
  animation: gk-rfid-row-in 680ms cubic-bezier(0.45, 0, 0.55, 1) backwards;
}

.gk-rfid-body.is-entering tbody tr:nth-child(1)  { animation-delay: 480ms; }
.gk-rfid-body.is-entering tbody tr:nth-child(2)  { animation-delay: 538ms; }
.gk-rfid-body.is-entering tbody tr:nth-child(3)  { animation-delay: 596ms; }
.gk-rfid-body.is-entering tbody tr:nth-child(4)  { animation-delay: 654ms; }
.gk-rfid-body.is-entering tbody tr:nth-child(5)  { animation-delay: 712ms; }
.gk-rfid-body.is-entering tbody tr:nth-child(6)  { animation-delay: 770ms; }
.gk-rfid-body.is-entering tbody tr:nth-child(7)  { animation-delay: 828ms; }
.gk-rfid-body.is-entering tbody tr:nth-child(8)  { animation-delay: 886ms; }
.gk-rfid-body.is-entering tbody tr:nth-child(9)  { animation-delay: 944ms; }
.gk-rfid-body.is-entering tbody tr:nth-child(10) { animation-delay: 1002ms; }
.gk-rfid-body.is-entering tbody tr:nth-child(11) { animation-delay: 1060ms; }
.gk-rfid-body.is-entering tbody tr:nth-child(12) { animation-delay: 1118ms; }

@keyframes gk-rfid-row-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* The status strip lands with them. */
.gk-rfid-body.is-entering ~ .gk-rfid-foot,
.gk-rfid-modal.is-compact .gk-rfid-strip {
  animation: gk-rfid-fade-up 600ms cubic-bezier(0.45, 0, 0.55, 1) 320ms backwards;
}

@keyframes gk-rfid-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* The results-mode count. It collapses along the inline axis the same way
   the hero collapses along the block axis - a grid 0fr/1fr pair, so it gives
   its header space back without animating a layout property every frame. */
.gk-rfid-count-mini {
  color: var(--rf-ink-2);
  display: grid;
  flex: none;
  font-size: 0.78rem;
  grid-template-columns: 0fr;
  opacity: 0;
  transform: translateY(-7px);
  transition: grid-template-columns 950ms cubic-bezier(0.45, 0, 0.55, 1),
              opacity 300ms ease,
              transform 950ms cubic-bezier(0.45, 0, 0.55, 1);
}

.gk-rfid-count-mini-in {
  align-items: baseline;
  display: flex;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.gk-rfid-count-mini b {
  color: var(--rf-ink);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* While the count is in flight the mini is held at its destination with no
   transition of its own, so it can be measured and driven by the animation. */
.gk-rfid-modal.is-flip .gk-rfid-count-mini {
  grid-template-columns: 1fr;
  opacity: 1;
  transform: none;
  transition: none;
  /* Scoped to .is-flip, which is removed the moment the flight ends, so the
     hint never outlives the animation it was for. */
  will-change: transform;
}

.gk-rfid-modal.is-flip .gk-rfid-count-mini-in {
  padding-inline-start: 4px;
}

/* The hero's own number gets out of the way at once - the flying one is the
   continuation of it, and two copies at the same spot would read as a ghost. */
.gk-rfid-modal.is-compact .gk-rfid-readout,
.gk-rfid-modal.is-compact .gk-rfid-rule {
  opacity: 0;
  transition: opacity 170ms ease;
}

.gk-rfid-modal.is-compact .gk-rfid-count-mini {
  grid-template-columns: 1fr;
  opacity: 1;
  transform: none;
  transition: grid-template-columns 950ms cubic-bezier(0.45, 0, 0.55, 1),
              opacity 420ms ease 220ms,
              transform 980ms cubic-bezier(0.45, 0, 0.55, 1) 150ms;
}

.gk-rfid-modal.is-compact .gk-rfid-count-mini-in {
  padding-inline-start: 4px;
}

.gk-rfid-modal.is-compact .gk-rfid-console-head {
  padding-bottom: 10px;
}

.gk-rfid-readout {
  align-items: baseline;
  display: flex;
  gap: 9px;
  justify-content: center;
  line-height: 0.92;
  padding-top: 20px;
}

.gk-rfid-count {
  color: var(--rf-ink);
  font-size: 4.5rem;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.gk-rfid-count.is-tick {
  animation: gk-rfid-tick 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gk-rfid-tick {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.gk-rfid-unit {
  color: var(--rf-ink-2);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gk-rfid-rule {
  background: var(--rf-gold);
  border-radius: 2px;
  height: 2px;
  margin: 13px auto 0;
  width: 56px;
}

/* ---- the stop-or-keep-going signal ---- */

/* Reading: three centred lines under the hero.
   Results: one row, so the table keeps the height. */
.gk-rfid-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gk-rfid-status > * {
  flex: 1 1 100%;
}

.gk-rfid-modal.is-compact .gk-rfid-delta,
.gk-rfid-modal.is-compact .gk-rfid-meta {
  flex: 0 1 auto;
  margin-top: 0;
}

.gk-rfid-modal.is-compact .gk-rfid-meta {
  padding-inline-start: 14px;
}

.gk-rfid-modal.is-compact .gk-rfid-controls {
  flex: 0 0 auto;
  margin-inline-start: auto;
  margin-top: 0;
}

.gk-rfid-modal.is-compact .gk-rfid-status {
  gap: 8px 0;
  justify-content: flex-start;
  padding-top: 11px;
}

/* Nothing to say yet: an empty status line must not hold a gap open. */
.gk-rfid-modal.is-compact .gk-rfid-delta:empty {
  display: none;
}

.gk-rfid-delta {
  align-items: center;
  color: var(--rf-ink-2);
  display: flex;
  font-size: 0.81rem;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  margin: 11px 0 0;
  min-height: 1.3rem;
}

.gk-rfid-delta.is-up,
.gk-rfid-delta.is-flat  { color: var(--rf-amber); }
.gk-rfid-delta.is-done  { color: var(--rf-green); }
.gk-rfid-delta.is-error { color: #9D2016; }

.gk-rfid-meta {
  align-items: center;
  color: var(--rf-ink-2);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.74rem;
  justify-content: center;
  margin: 6px 0 0;
}

.gk-rfid-sep {
  opacity: 0.5;
  padding: 0 7px;
}

/* Convergence: new tags in each of the last rounds. The operator needs to
   know whether the box is still giving tags up; a shape answers that without
   asking anyone to remember the previous number. */
.gk-rfid-spark {
  align-items: flex-end;
  display: inline-flex;
  gap: 2px;
  height: 14px;
  vertical-align: -2px;
}

.gk-rfid-spark i {
  background: rgba(31, 27, 22, 0.28);
  border-radius: 1px;
  display: block;
  width: 3px;
}

.gk-rfid-spark i.is-now {
  background: var(--rf-gold);
}

/* ---- controls ---- */

.gk-rfid-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
  min-height: 38px;
}

.gk-rfid-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: 9px;
  color: var(--rf-ink);
  display: inline-flex;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  transition: background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.gk-rfid-btn:hover:not(:disabled),
.gk-rfid-btn:focus-visible:not(:disabled) {
  background: #F6F1E7;
  border-color: rgba(176, 130, 30, 0.55);
  outline: 0;
}

.gk-rfid-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.gk-rfid-modal.is-compact .gk-rfid-btn {
  font-size: 0.8rem;
  height: 34px;
  padding: 0 13px;
}

.gk-rfid-btn.is-stop {
  background: var(--rf-red);
  border-color: transparent;
  color: #fff;
  justify-content: center;
  min-width: 186px;
}

.gk-rfid-btn.is-stop:hover:not(:disabled),
.gk-rfid-btn.is-stop:focus-visible:not(:disabled) {
  background: var(--rf-red-hi);
  border-color: transparent;
}

.gk-rfid-btn.is-retry {
  background: var(--rf-gold);
  border-color: transparent;
  color: #fff;
}

.gk-rfid-btn.is-retry:hover:not(:disabled),
.gk-rfid-btn.is-retry:focus-visible:not(:disabled) {
  background: var(--rf-gold-hi);
  border-color: transparent;
}

/* The confirm half of «البدأ من جديد»: it throws the read away, so it must
   not look like the إلغاء beside it. */
.gk-rfid-btn.is-danger {
  background: var(--rf-red);
  border-color: transparent;
  color: #fff;
}

.gk-rfid-btn.is-danger:hover:not(:disabled),
.gk-rfid-btn.is-danger:focus-visible:not(:disabled) {
  background: var(--rf-red-hi);
  border-color: transparent;
}

.gk-rfid-btn.is-ghost {
  background: transparent;
  font-weight: 600;
}

.gk-rfid-btn kbd {
  border: 1px solid currentColor;
  border-radius: 4px;
  direction: ltr;
  display: inline-block;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  opacity: 0.6;
  padding: 1px 5px;
}

.gk-rfid-hint {
  color: var(--rf-ink-2);
  font-size: 0.74rem;
}

/* The lookup is a wait, not an action - it gets a line, not a button.
   A big disabled red bar where the stop button was read as broken. */
.gk-rfid-working {
  align-items: center;
  color: var(--rf-ink-2);
  display: inline-flex;
  font-size: 0.79rem;
  font-weight: 600;
  gap: 7px;
  height: 34px;
}

.gk-rfid-hint.is-warn {
  color: var(--rf-amber);
  font-weight: 700;
}

/* ---- status strip: appears only once the read is classified ---- */

.gk-rfid-strip {
  background: #F3EFE6;
  border-bottom: 1px solid var(--rf-line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 7px;
  padding: 10px var(--aureum-card-padding, 20px);
}

.gk-rfid-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: 999px;
  color: var(--rf-ink-2);
  display: inline-flex;
  font-size: 0.75rem;
  gap: 5px;
  padding: 3px 11px;
}

.gk-rfid-chip b {
  color: var(--rf-ink);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.gk-rfid-chip.is-good   { border-color: rgba(15, 97, 79, 0.34); }
.gk-rfid-chip.is-good b { color: var(--rf-green); }
.gk-rfid-chip.is-info   { border-color: rgba(31, 27, 22, 0.26); }
.gk-rfid-chip.is-warn   { border-color: rgba(160, 120, 26, 0.5); }
.gk-rfid-chip.is-warn b { color: #8A6A16; }
.gk-rfid-chip.is-bad    { border-color: rgba(157, 32, 22, 0.34); }
.gk-rfid-chip.is-bad b  { color: #9D2016; }

/* ---- body and footer ---- */

.gk-rfid-body {
  /* The panel above shrinks every frame of the handover. Containment keeps
     that out of the table's own layout, which can hold hundreds of rows. */
  contain: layout;
  overflow-x: auto;
  padding: 0;
}

/* The results table has 11 columns and the pairing table has an input in
   every row: below tablet width they scroll sideways in this container
   rather than squashing until the action column falls off the edge. */
@media (max-width: 991.98px) {
  .gk-rfid-body .table {
    min-width: 780px;
  }
}

.gk-rfid-body > .alert,
.gk-rfid-body > .gk-rfid-wait {
  margin: var(--aureum-card-padding, 20px);
}

.gk-rfid-wait {
  color: var(--rf-ink-2);
  padding: 34px 20px;
  text-align: center;
}

.gk-rfid-body .table {
  margin-bottom: 0;
}

.gk-rfid-body .table th,
.gk-rfid-body .table td {
  vertical-align: middle;
}

.gk-rfid-body .table thead th {
  border-top: 0;
  color: var(--rf-ink-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.gk-rfid-body .gk-table-enhanced tbody tr:hover {
  background-color: rgba(176, 130, 30, 0.09);
}

.gk-rfid-epc {
  direction: ltr;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.gk-rfid-body .batch-piece-input {
  max-width: 220px;
}

/* Bootstrap's stock badges and buttons are cyan and a cold green; inside this
   warm panel they read as a different design. Repaint them to the console's
   own palette - scoped to the modal, so the rest of the app is untouched. */

.gk-rfid-body .badge {
  font-size: 0.71rem;
  font-weight: 700;
  padding: 3px 9px;
}

.gk-rfid-body .badge-success   { background: rgba(15, 97, 79, 0.12); color: var(--rf-green); }
.gk-rfid-body .badge-info      { background: rgba(31, 27, 22, 0.09); color: #3A332B; }
.gk-rfid-body .badge-danger    { background: rgba(157, 32, 22, 0.11); color: #9D2016; }
.gk-rfid-body .badge-warning   { background: rgba(160, 120, 26, 0.17); color: #7A5D13; }
.gk-rfid-body .badge-dark      { background: rgba(31, 27, 22, 0.14); color: var(--rf-ink); }
.gk-rfid-body .badge-secondary { background: #F1EFEC; color: var(--rf-ink-2); }

.gk-rfid-body .btn-outline-success {
  border-color: rgba(15, 97, 79, 0.45);
  color: var(--rf-green);
}

.gk-rfid-body .btn-outline-success:hover {
  background: rgba(15, 97, 79, 0.07);
  border-color: var(--rf-green);
  color: var(--rf-green);
}

.gk-rfid-body .btn-outline-danger,
.gk-rfid-foot .btn-outline-danger {
  border-color: rgba(157, 32, 22, 0.45);
  color: #9D2016;
}

.gk-rfid-body .btn-outline-danger:hover,
.gk-rfid-foot .btn-outline-danger:hover {
  background: rgba(157, 32, 22, 0.06);
  border-color: #9D2016;
  color: #9D2016;
}

.gk-rfid-foot .btn-success {
  background: var(--rf-green);
  border-color: transparent;
}

.gk-rfid-foot .btn-success:hover:not(:disabled) {
  background: #0C5142;
  border-color: transparent;
}

.gk-rfid-foot .btn-primary {
  background: var(--rf-gold);
  border-color: transparent;
  color: #fff;
}

.gk-rfid-foot .btn-primary:hover:not(:disabled) {
  background: var(--rf-gold-hi);
  border-color: transparent;
}

.gk-rfid-foot .btn-outline-primary {
  border-color: rgba(176, 130, 30, 0.55);
  color: #8A6A16;
}

.gk-rfid-foot .btn-outline-primary:hover {
  background: rgba(176, 130, 30, 0.08);
  border-color: var(--rf-gold);
  color: #8A6A16;
}

.gk-rfid-foot .btn-secondary {
  background: #fff;
  border-color: var(--rf-line);
  color: var(--rf-ink-2);
}

.gk-rfid-foot .btn-secondary:hover {
  background: #F6F1E7;
  border-color: rgba(176, 130, 30, 0.55);
  color: var(--rf-ink);
}

/* GHS14's read summary, above its pairing table. */
.gk-rfid-head {
  padding: 14px var(--aureum-card-padding, 20px) 4px;
}

.gk-rfid-foot {
  background: #FBF9F5;
  border-top: 1px solid var(--rf-line);
  gap: 8px;
  justify-content: flex-start;
  padding: 12px var(--aureum-card-padding, 20px);
}

.gk-rfid-foot > * {
  margin: 0;
}

.gk-rfid-foot .gk-rfid-close-btn {
  margin-inline-start: auto;
}

/* A page footer button cannot be trusted mid-sweep: the list is still moving. */
.gk-rfid-foot.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 575.98px) {
  .gk-rfid-dialog {
    margin: 0.5rem auto;
    width: calc(100% - 1rem);
  }

  .gk-rfid-console {
    padding: 12px 14px 14px;
  }

  .gk-rfid-count {
    font-size: 3rem;
  }

  .gk-rfid-reader {
    display: none;
  }

  .gk-rfid-btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 12px;
  }

  .gk-rfid-btn.is-stop {
    min-width: 0;
  }

  .gk-rfid-hint {
    flex: 1 1 100%;
    text-align: center;
  }

  .gk-rfid-strip,
  .gk-rfid-foot {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gk-rfid-body.is-entering tbody tr,
  .gk-rfid-modal.is-compact .gk-rfid-strip {
    animation: none;
  }

  .gk-rfid-hero,
  .gk-rfid-modal.is-compact .gk-rfid-hero,
  .gk-rfid-count-mini,
  .gk-rfid-modal.is-compact .gk-rfid-count-mini {
    transition: none;
  }

  .gk-rfid-modal.is-reading .gk-rfid-dot {
    animation: none;
  }

  .gk-rfid-count.is-tick {
    animation: none;
  }

  .gk-rfid-btn,
  .gk-rfid-x {
    transition: none;
  }
}
