:root {
  --theme-bg: #0a1118;
  --theme-surface: #111a24;
  --theme-panel: #151f2b;
  --theme-panel-soft: #1a2634;
  --theme-line: #2a394b;
  --theme-text: #e8eef6;
  --theme-muted: #93a3b7;
  --theme-card: #182434;
  --theme-input: #16212d;
  --theme-btn: #1c2a39;
  --theme-btn-line: #36516f;
  --form-control-height: 38px;
  --form-control-padding-y: 6px;
  --form-control-padding-x: 10px;
  --form-control-radius: 10px;
  --button-height: 38px;
  --button-padding-y: 6px;
  --button-padding-x: 12px;
  --button-radius: 10px;
  --theme-shadow-soft: 0 12px 28px rgba(3, 8, 14, 0.28);
  --theme-shadow-card: 0 8px 18px rgba(3, 8, 14, 0.18);
  --theme-focus-ring: rgba(84, 123, 186, 0.18);
}

:root[data-theme="light"] {
  --theme-bg: #eef2f6;
  --theme-surface: #f7f9fc;
  --theme-panel: #fcfdff;
  --theme-panel-soft: #f3f6fa;
  --theme-line: #d7dfe8;
  --theme-text: #223041;
  --theme-muted: #69788a;
  --theme-card: #f2f5f9;
  --theme-input: #fbfcfe;
  --theme-btn: #edf2f7;
  --theme-btn-line: #c7d1dc;
  --theme-shadow-soft: 0 10px 24px rgba(33, 48, 67, 0.05);
  --theme-shadow-card: 0 5px 14px rgba(33, 48, 67, 0.04);
  --theme-focus-ring: rgba(80, 119, 183, 0.14);
}

:root[data-theme="light"] body {
  color: var(--theme-text) !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(90, 124, 176, 0.08), transparent 34%),
    radial-gradient(circle at 88% 2%, rgba(122, 146, 184, 0.07), transparent 28%),
    var(--theme-bg) !important;
}

:root[data-theme="light"] .sidebar,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .card,
:root[data-theme="light"] .block,
:root[data-theme="light"] .summary-card,
:root[data-theme="light"] .sale-card,
:root[data-theme="light"] .payable-card {
  background: var(--theme-panel) !important;
  border-color: var(--theme-line) !important;
  box-shadow: var(--theme-shadow-soft);
}

:root[data-theme="light"] .userbox,
:root[data-theme="light"] .menu a,
:root[data-theme="light"] .menu button,
:root[data-theme="light"] .quick a,
:root[data-theme="light"] .amount-box,
:root[data-theme="light"] .totals div,
:root[data-theme="light"] .summary-item {
  background: var(--theme-card) !important;
  border-color: var(--theme-line) !important;
  color: var(--theme-text) !important;
}

:root[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #dbe3ec 0%, #d2dbe6 100%) !important;
  border-right-color: #bcc8d5 !important;
}

:root[data-theme="light"] .userbox-avatar {
  background: #e6edf5 !important;
  border-color: #c7d1db !important;
  color: #32455a !important;
}

:root[data-theme="light"] .sidebar-head .brand,
:root[data-theme="light"] .sidebar-head .brand-full,
:root[data-theme="light"] .sidebar-head .brand-mini {
  color: #1f2d3d !important;
}

:root[data-theme="light"] .menu a.active {
  border-color: #7d98bc !important;
  background: linear-gradient(120deg, rgba(80, 119, 183, 0.18), rgba(95, 134, 198, 0.2)) !important;
}

:root[data-theme="light"] .product-preview-inline,
:root[data-theme="light"] .customer-preview-inline {
  background: #f3f6fa !important;
  border-color: #ccd6e0 !important;
}

:root[data-theme="light"] .product-preview-inline strong,
:root[data-theme="light"] .customer-preview-inline strong {
  color: var(--theme-text) !important;
}

:root[data-theme="light"] .product-preview-inline-value,
:root[data-theme="light"] .customer-preview-inline-value {
  background: #e8eef5 !important;
  border-color: #c9d4df !important;
  color: #3c5268 !important;
}

:root[data-theme="light"] .product-preview-inline-status,
:root[data-theme="light"] .customer-preview-inline-status {
  color: var(--theme-muted) !important;
}

:root[data-theme="light"] .product-preview-inline-status.subtle,
:root[data-theme="light"] .customer-preview-inline-status.subtle {
  border-color: #cfd8e2 !important;
  color: #6c7d8f !important;
}

:root[data-theme="light"] .product-preview-inline-status.ok {
  border-color: rgba(85, 158, 112, 0.28) !important;
  color: #4e8a63 !important;
}

:root[data-theme="light"] .product-preview-inline-status.warn {
  border-color: rgba(191, 142, 58, 0.3) !important;
  color: #a57930 !important;
}

:root[data-theme="light"] .product-preview-inline.is-low-stock {
  border-color: rgba(191, 142, 58, 0.28) !important;
  background: #f7f3ea !important;
}

:root[data-theme="light"] .product-preview-inline.is-out-stock {
  border-color: rgba(184, 98, 98, 0.26) !important;
  background: #f8f0f0 !important;
}

:root[data-theme="light"] .finance-tabs {
  background: #eef2f6 !important;
  border-color: #ccd5df !important;
}

:root[data-theme="light"] .finance-tab {
  color: #425669 !important;
}

:root[data-theme="light"] .finance-tab:hover {
  background: #e6edf4 !important;
  border-color: #c6d0db !important;
}

:root[data-theme="light"] .summary-card,
:root[data-theme="light"] .amount-box,
:root[data-theme="light"] .summary-item,
:root[data-theme="light"] .flow-card,
:root[data-theme="light"] .detail-list div {
  background: #f3f6fa !important;
  border-color: #d0d8e1 !important;
  color: var(--theme-text) !important;
}

:root[data-theme="light"] .flow-card span,
:root[data-theme="light"] .amount-box small,
:root[data-theme="light"] .summary-card small,
:root[data-theme="light"] .detail-list span {
  color: var(--theme-muted) !important;
}

:root[data-theme="light"] .sale-card,
:root[data-theme="light"] .payable-card,
:root[data-theme="light"] .pay-form {
  background: var(--theme-panel) !important;
  border-color: var(--theme-line) !important;
}

:root[data-theme="light"] .pay-form {
  box-shadow: inset 0 0 0 1px rgba(205, 214, 224, 0.45);
}

:root[data-theme="light"] .table-wrap tbody tr,
:root[data-theme="light"] .payments-table-wrap tbody tr {
  background: #f5f7fa !important;
  border-color: #d3dbe4 !important;
}

:root[data-theme="light"] td.empty-row,
:root[data-theme="light"] td.empty-payment-row {
  color: var(--theme-muted) !important;
}

:root[data-theme="light"] .btn.inline {
  background: #eaf0f6 !important;
  border-color: #c7d1dc !important;
  color: #405467 !important;
}

:root[data-theme="light"] .btn.inline.danger,
:root[data-theme="light"] .btn.delete {
  background: #f9eef0 !important;
  border-color: #e0c3ca !important;
  color: #9a5565 !important;
}

:root[data-theme="light"] .topbar,
:root[data-theme="light"] .panel-head,
:root[data-theme="light"] .panel-head h1,
:root[data-theme="light"] .panel-head h2,
:root[data-theme="light"] .sub,
:root[data-theme="light"] .message {
  color: var(--theme-text) !important;
}

:root[data-theme="light"] .sub,
:root[data-theme="light"] .message,
:root[data-theme="light"] .panel-head small {
  color: var(--theme-muted) !important;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  background: var(--theme-input) !important;
  border-color: #cbd5df !important;
  color: var(--theme-text) !important;
}

:root[data-theme="light"] .btn,
:root[data-theme="light"] .collapse-btn {
  background: var(--theme-btn) !important;
  border-color: var(--theme-btn-line) !important;
  color: #32465b !important;
}

:root[data-theme="light"] .btn.primary {
  color: #ffffff !important;
  background: linear-gradient(120deg, #5077b7, #5f86c6) !important;
  border-color: transparent !important;
}

:root[data-theme="light"] .settle-partial {
  background: linear-gradient(120deg, #5d83bd, #6e94cb) !important;
  color: #ffffff !important;
}

:root[data-theme="light"] .settle-full {
  background: linear-gradient(120deg, #5d9c79, #74af8f) !important;
  color: #ffffff !important;
}

:root[data-theme="light"] .settlement-form .stack {
  background: #f4f7fb !important;
  border-color: #d6dee7 !important;
}

:root[data-theme="light"] .settlement-form label {
  color: #6e7d8d !important;
}

:root[data-theme="light"] .settlement-form input,
:root[data-theme="light"] .settlement-form select,
:root[data-theme="light"] .settlement-form textarea {
  background: #fbfcfe !important;
  border-color: #cad4df !important;
}

:root[data-theme="light"] .settlement-form input:disabled {
  background: #edf2f7 !important;
  border-color: #cfd8e2 !important;
  color: #3e5266 !important;
}

:root[data-theme="light"] .meta,
:root[data-theme="light"] .top p,
:root[data-theme="light"] .summary-item small,
:root[data-theme="light"] .amount-box small,
:root[data-theme="light"] .card .label,
:root[data-theme="light"] .quick a small,
:root[data-theme="light"] .userbox small,
:root[data-theme="light"] th {
  color: var(--theme-muted) !important;
}

:root[data-theme="light"] td,
:root[data-theme="light"] strong,
:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3 {
  color: var(--theme-text);
}

:root[data-theme="light"] th,
:root[data-theme="light"] td {
  border-bottom-color: #e3e8ef !important;
}

:root[data-theme="light"] .logout-menu-btn,
:root[data-theme="light"] .btn.danger {
  background: #fbf0f2 !important;
  color: #9a4b5f !important;
  border-color: #e5c3cb !important;
}

html,
body {
  max-width: 100%;
}

body {
  background:
    radial-gradient(circle at 11% 9%, rgba(64, 101, 148, 0.16), transparent 40%),
    radial-gradient(circle at 88% 0%, rgba(76, 97, 138, 0.14), transparent 35%),
    var(--theme-bg) !important;
}

.sidebar {
  background: linear-gradient(180deg, rgba(14, 22, 31, 0.99) 0%, rgba(11, 18, 27, 0.99) 100%) !important;
  border-right-color: var(--theme-line) !important;
}

.sidebar-head {
  margin-bottom: 6px;
}

.sidebar-head .brand,
.sidebar-head .brand-full,
.sidebar-head .brand-mini {
  color: var(--theme-text) !important;
  letter-spacing: 0.02em !important;
}

.sidebar-head .brand {
  font-size: 1.58rem !important;
}

.userbox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--theme-card) !important;
  border: 1px solid var(--theme-line) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.userbox-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 13px;
  border: 1px solid var(--theme-btn-line);
  background: color-mix(in srgb, var(--theme-btn) 72%, var(--theme-panel) 28%);
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.userbox-info {
  min-width: 0;
  flex: 1;
}

.userbox strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.userbox small {
  display: block;
  margin-top: 2px;
}

.userbox-info strong,
.userbox-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu a,
.menu button,
.logout-menu-btn {
  border-radius: 10px !important;
  border-width: 1px !important;
  font-weight: 500;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.menu a,
.menu button {
  background: var(--theme-card) !important;
  border-color: var(--theme-line) !important;
  color: var(--theme-text) !important;
}

.menu a:hover,
.menu button:hover {
  background: var(--theme-panel-soft) !important;
  border-color: color-mix(in srgb, var(--theme-line) 65%, var(--theme-text) 10%) !important;
}

.menu a.active {
  background: linear-gradient(120deg, rgba(67, 107, 161, 0.24), rgba(78, 101, 145, 0.22)) !important;
  border-color: color-mix(in srgb, var(--theme-btn-line) 75%, white 8%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.menu-icon {
  opacity: 0.95;
}

.sidebar-footer {
  border-top-color: var(--theme-line) !important;
  width: 100%;
  min-width: 0;
}

.logout-menu-btn {
  background: color-mix(in srgb, #542734 55%, var(--theme-card) 45%) !important;
  border-color: color-mix(in srgb, #784151 60%, var(--theme-line) 40%) !important;
  color: #f2d7de !important;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.content {
  padding-top: 24px !important;
}

.top {
  margin-bottom: 16px !important;
}

.top h1 {
  font-size: 1.42rem !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
}

.top p,
.status-text,
#statusText,
#welcomeText {
  color: var(--theme-muted) !important;
  font-size: 0.93rem !important;
  line-height: 1.4 !important;
}

.panel,
.block,
.card,
.summary-card,
.sale-card,
.payable-card,
.flow-card,
.detail-list div,
.amount-box,
.summary-item {
  background: var(--theme-panel) !important;
  border: 1px solid var(--theme-line) !important;
  border-radius: 12px !important;
  box-shadow: var(--theme-shadow-card);
}

.panel,
.block {
  padding: 14px !important;
}

.panel h2,
.block h2,
.flow-intro h2,
.detail-card h2,
.panel-head h1,
.panel-head h2,
.panel-headline h2 {
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.eyebrow {
  color: color-mix(in srgb, var(--theme-muted) 82%, var(--theme-text) 18%) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
}

.btn,
.theme-toggle-btn,
.collapse-btn {
  background: var(--theme-btn) !important;
  border-color: var(--theme-btn-line) !important;
  color: var(--theme-text) !important;
  font-weight: 500;
  box-shadow: none !important;
}

.btn:hover,
.theme-toggle-btn:hover,
.collapse-btn:hover {
  filter: none !important;
  transform: none !important;
  border-color: color-mix(in srgb, var(--theme-btn-line) 82%, var(--theme-text) 10%) !important;
}

.btn.primary {
  background: linear-gradient(120deg, #436ba3, #527aad) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.btn.secondary {
  background: var(--theme-panel-soft) !important;
  border-color: var(--theme-btn-line) !important;
  color: var(--theme-text) !important;
}

.btn.danger {
  background: color-mix(in srgb, #4b2630 58%, var(--theme-card) 42%) !important;
  border-color: color-mix(in srgb, #6c3f4a 62%, var(--theme-line) 38%) !important;
  color: #efd5db !important;
}

input,
select,
textarea {
  background: var(--theme-input) !important;
  border-color: var(--theme-line) !important;
  color: var(--theme-text) !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--theme-btn-line) !important;
  box-shadow: 0 0 0 3px var(--theme-focus-ring) !important;
}

label {
  color: color-mix(in srgb, var(--theme-muted) 55%, var(--theme-text) 45%) !important;
  font-size: 0.79rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}

table {
  border-collapse: collapse;
}

th {
  color: var(--theme-muted) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  color: var(--theme-text) !important;
}

th,
td {
  border-bottom-color: var(--theme-line) !important;
}

.filters-panel,
.list-head,
.totals,
.summary-grid,
.grid,
.quick,
.flow-grid,
.flow-details-grid {
  gap: 12px !important;
}

.card .label,
.summary-card small,
.amount-box small,
.summary-item small,
.flow-card small,
.quick a small,
.block-subtitle,
.meta {
  color: var(--theme-muted) !important;
}

.card .value,
.summary-card strong,
.amount-box strong,
.summary-item strong,
.flow-card strong {
  color: var(--theme-text) !important;
}

.quick a {
  background: var(--theme-card) !important;
  border: 1px solid var(--theme-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.quick a strong {
  font-size: 0.95rem;
}

body.mobile-menu-open {
  overflow: hidden;
}

.mobile-menu-btn,
.mobile-menu-brand,
.mobile-menu-backdrop {
  display: none;
}

img,
svg,
canvas,
iframe {
  max-width: 100%;
}

textarea {
  max-width: 100%;
}

.theme-toggle-btn {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #35507a;
  background: #1a2840;
  color: #d5e3f8;
  border-radius: var(--button-radius);
  min-height: var(--button-height);
  padding: var(--button-padding-y) var(--button-padding-x);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.theme-floating-btn {
  position: fixed;
  right: 12px;
  top: 12px;
  width: auto;
  z-index: 1500;
}

:root[data-theme="light"] .theme-toggle-btn {
  background: var(--theme-btn);
  border-color: var(--theme-btn-line);
  color: #32465b;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select {
  min-height: var(--form-control-height) !important;
  height: var(--form-control-height);
  padding: var(--form-control-padding-y) var(--form-control-padding-x) !important;
  border-radius: var(--form-control-radius);
  font: inherit;
}

input[type="date"] {
  width: 100%;
}

.btn,
.logout-menu-btn,
.theme-toggle-btn,
.menu button,
.menu a,
.collapse-btn {
  min-height: var(--button-height);
  padding: var(--button-padding-y) var(--button-padding-x) !important;
  border-radius: var(--button-radius);
  font: inherit;
}

.btn.inline {
  min-height: auto;
}

.collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  padding: 0 !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  font-size: 12px !important;
  aspect-ratio: 1 / 1;
}

.table-wrap,
.payments-table-wrap {
  overflow: auto;
  max-height: min(58vh, 520px);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--theme-btn-line) 70%, transparent) transparent;
}

.table-wrap::-webkit-scrollbar,
.payments-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap::-webkit-scrollbar-thumb,
.payments-table-wrap::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--theme-btn-line) 72%, transparent);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.table-wrap::-webkit-scrollbar-track,
.payments-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 1700;
}

.modal-shell.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 8, 14, 0.62);
  cursor: pointer;
}

.modal-card {
  position: relative;
  width: min(100%, 680px);
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 1px solid var(--theme-line);
  border-radius: 18px;
  background: var(--theme-panel);
  box-shadow: 0 24px 48px rgba(3, 8, 14, 0.28);
  padding: 18px;
  z-index: 1;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head p {
  margin: 6px 0 0;
  color: var(--theme-muted);
  font-size: 0.9rem;
  max-width: 48ch;
}

.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--theme-btn-line);
  border-radius: 10px;
  background: var(--theme-btn);
  color: var(--theme-text);
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--theme-line);
}

.settle-partial {
  background: linear-gradient(120deg, #3d5d86, #4b6f9d) !important;
  border-color: transparent !important;
  color: #edf4ff !important;
  font-weight: 600 !important;
}

.settle-full {
  background: linear-gradient(120deg, #35765c, #46896e) !important;
  border-color: transparent !important;
  color: #effcf4 !important;
  font-weight: 600 !important;
}

.settle-partial:hover,
.settle-full:hover {
  filter: brightness(1.04) !important;
}

.finance-top-row {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.finance-top-row .finance-tabs {
  margin-top: 0 !important;
}

.finance-top-side {
  min-width: 184px;
  flex: 0 0 184px;
}

.finance-top-row > .finance-top-side[aria-hidden="true"] {
  visibility: hidden;
}

@media (max-width: 1080px) {
  .top {
    padding-top: 52px !important;
    padding-left: 0 !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
  }

  .mobile-menu-brand {
    display: block !important;
  }

  .sidebar {
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    overscroll-behavior: contain;
  }

  .sidebar-footer,
  .sidebar-footer .logout-menu-btn {
    width: 100% !important;
    max-width: 100%;
  }

  .sidebar-footer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-menu-btn {
    width: 42px !important;
    min-width: 42px;
    padding: 0 !important;
  }

  .mobile-menu-brand {
    position: fixed;
    top: 21px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1400;
    color: var(--theme-text);
    font-size: 1.42rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.mobile-brand-hidden .mobile-menu-brand {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
    pointer-events: none;
  }

  .mobile-menu-btn-label {
    display: none;
  }

  .mobile-menu-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
}

@media (max-width: 720px) {
  :root {
    --form-control-height: 40px;
    --button-height: 40px;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea,
  button {
    font-size: 16px !important;
  }

  .table-wrap,
  .payments-table-wrap {
    max-height: none;
  }

  .modal-card {
    width: min(100%, 560px);
    max-height: calc(100vh - 18px);
    padding: 14px;
  }

  .modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .finance-top-row {
    flex-direction: column;
    align-items: stretch;
  }

  .finance-top-side {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
  }

  .finance-top-row > .finance-top-side[aria-hidden="true"] {
    display: none;
  }
}

.menu-icon i {
  display: block;
  font-size: 1.12rem;
  line-height: 1;
}
