/* Isolated from module forms, tables and print layouts. */
body.module-page { padding-left: 88px; }
.module-page > header { padding: 20px 24px; min-height: 96px; border-bottom: 1px solid #dce4dc; gap: 16px; }
.module-page > header h1 { font-size: 22px; color: #465641; }
.module-page > main { max-width: none; width: 100%; padding: 20px 24px; }
.module-page main section, .module-page main .grid > * { min-width: 0; overflow-wrap: anywhere; }
.module-page main input, .module-page main select { min-width: 0; }
#module-sidebar { position: fixed; inset: 0 auto 0 0; width: 88px; z-index: 20; background: #fff; border-right: 1px solid #e3e8e3; overflow-y: auto; padding: 12px 8px; }
#module-sidebar .module-brand { display: flex; justify-content: center; padding: 0 0 12px; border-bottom: 1px solid #e3e8e3; }
#module-sidebar .module-brand img { width: 46px; height: 46px; border-radius: 8px; }
#module-sidebar nav { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 10px 0 0; }
#module-sidebar nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; padding: 6px 2px; color: #526057; text-decoration: none; font: 600 8pt 'Segoe UI', sans-serif; text-align: center; border-radius: 10px; }
#module-sidebar nav a[aria-current="page"] { box-shadow: inset 3px 0 #546e59; color: #294c38; }
#module-sidebar nav a:hover { background: #f5f7f3; }
#module-sidebar a:focus-visible { outline: 2px solid #546e59; outline-offset: -2px; }
#module-sidebar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  body.module-page { padding-left: 72px; }
  #module-sidebar { width: 72px; padding: 10px 4px; }
  .module-page > header, .module-page > main { padding: 12px; }
  .module-page > header h1 { font-size: 19px; }
  .module-page label { min-width: 0; }
  .module-page main .grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  #module-sidebar { display: none !important; }
  body.module-page { padding-left: 0; }
  .module-page > main { padding: 0; }
}
