/* LOY 2026.11.06.5 — consistent layout for React-external workspace modules.
   Loaded last. CSS-only: leaves forms, APIs, journals and module controllers intact. */
:root { --loy-module-sidebar-width:216px; }

@media (min-width:1101px) {
  :is(.loy-banks-shell, .loy-inventory-shell, .loy-insurance-rentals-shell,
      .loy-utilities-shell, .loy-investments-shell, .loy-vehicles-shell,
      .loy-car-refuels-shell) {
    left:var(--loy-module-sidebar-width);
    right:0;
    max-width:none;
  }
  body:has(.app.collapsed) :is(.loy-banks-shell, .loy-inventory-shell,
      .loy-insurance-rentals-shell, .loy-utilities-shell, .loy-investments-shell,
      .loy-vehicles-shell, .loy-car-refuels-shell) { left:78px; }
  body.cashflow-open .loy-cashflow-shell:not([hidden]) { left:var(--loy-module-sidebar-width); }
  body.cashflow-open:has(.app.collapsed) .loy-cashflow-shell:not([hidden]) { left:78px; }
}
@media (min-width:651px) and (max-width:1100px) {
  :is(.loy-banks-shell, .loy-inventory-shell, .loy-insurance-rentals-shell,
      .loy-utilities-shell, .loy-investments-shell, .loy-vehicles-shell,
      .loy-car-refuels-shell) { left:80px; right:0; }
  body.cashflow-open .loy-cashflow-shell:not([hidden]) { left:80px; }
}
@media (max-width:650px) {
  :is(.loy-banks-shell, .loy-inventory-shell, .loy-insurance-rentals-shell,
      .loy-utilities-shell, .loy-investments-shell, .loy-vehicles-shell,
      .loy-car-refuels-shell) { left:0;right:0;top:0;bottom:64px; }
  body.cashflow-open .loy-cashflow-shell:not([hidden]) { left:0;right:0;top:0;bottom:64px; }
}

/* Visual consistency across financial and management workspaces. */
:is(.loy-banks-shell, .loy-inventory-shell, .loy-insurance-rentals-shell,
    .loy-utilities-shell, .loy-investments-shell, .loy-vehicles-shell,
    .loy-car-refuels-shell, .loy-cashflow-shell) {
  overscroll-behavior-y:contain;
  min-width:0;
}
:is(.banks-topbar-title, .inventory-topbar-title, .ir-topbar-title,
    .utilities-topbar-title, .investments-topbar-title, .vehicles-topbar-title,
    .car-refuels-topbar-title, .cashflow-topbar-title) strong {
  font-size:14px;
  line-height:1.35;
}
:is(.banks-topbar-title, .inventory-topbar-title, .ir-topbar-title,
    .utilities-topbar-title, .investments-topbar-title, .vehicles-topbar-title,
    .car-refuels-topbar-title, .cashflow-topbar-title) small {
  font-size:12px;
  line-height:1.35;
}
:is(.loy-banks-shell, .loy-inventory-shell, .loy-insurance-rentals-shell,
    .loy-utilities-shell, .loy-investments-shell, .loy-vehicles-shell,
    .loy-car-refuels-shell, .loy-cashflow-shell)
  :is(.page-heading p, .panel p, .hint, .empty, .cashflow-note p) {
  line-height:1.55;
}
:is(.loy-banks-shell, .loy-inventory-shell, .loy-insurance-rentals-shell,
    .loy-utilities-shell, .loy-investments-shell, .loy-vehicles-shell,
    .loy-car-refuels-shell, .loy-cashflow-shell)
  :is(.table-scroll table, .cashflow-table) { font-size:13px; }
:is(.loy-banks-shell, .loy-inventory-shell, .loy-insurance-rentals-shell,
    .loy-utilities-shell, .loy-investments-shell, .loy-vehicles-shell,
    .loy-car-refuels-shell, .loy-cashflow-shell)
  :is(.table-scroll th, .cashflow-table th) { font-size:12px; }
:is(.loy-banks-shell, .loy-inventory-shell, .loy-insurance-rentals-shell,
    .loy-utilities-shell, .loy-investments-shell, .loy-vehicles-shell,
    .loy-car-refuels-shell, .loy-cashflow-shell)
  :is(.tabs button, .button, button):focus-visible {
  outline:2px solid var(--teal,#1d8e80);
  outline-offset:2px;
}
@media (prefers-reduced-motion:reduce) {
  :is(.loy-banks-shell, .loy-inventory-shell, .loy-insurance-rentals-shell,
      .loy-utilities-shell, .loy-investments-shell, .loy-vehicles-shell,
      .loy-car-refuels-shell, .loy-cashflow-shell) * {
    scroll-behavior:auto!important;
  }
}
