/* Layout adjustments for smaller office screens, tablets and phones. */
@media (max-width: 1150px) {
  .stats { gap: 12px; }
  .stat-icon { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .investment-layout { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  aside { transform: translateX(-100%); visibility: hidden; width: 235px; }
  .nav-open aside { visibility: visible; transform: translateX(0); box-shadow: 5px 0 12px #0003; }
  .workspace { margin-left: 0; }
  #menu { display: block; padding: 3px 9px; }
  header { gap: 12px; padding: 10px 18px; }
  header > span { margin-right: auto; }
  .breadcrumb { display: none; }
  main { padding: 20px 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .academic { display: none; }
  .section-toolbar { flex-wrap: wrap; }
  .filters > label { min-width: 180px; }
  footer { margin: 0 18px; }
  footer span { display: none; }
}
@media (max-width: 480px) {
  header { padding: 9px 12px; }
  header > span { font-size: 11px; }
  .profile { font-size: 11px; gap: 6px; }
  .profile small { font-size: 10px; }
  .avatar { display: none; }
  main { padding: 18px 12px; }
  h1 { font-size: 23px; }
  .welcome { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats { gap: 10px; }
  .stat { padding: 11px 12px 0; }
  .stat > .subtle { font-size: 12px; padding-right: 0; }
  .stat small { margin: 0 -12px; padding: 7px 10px; }
  .overview { flex-direction: column; gap: 14px; }
  .overview-key { width: 100%; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .section-toolbar .search { width: 100%; }
  .filters { display: block; }
  .filters label { margin-bottom: 12px; }
  .card-heading { align-items: flex-start; }
  .card-heading > .subtle { text-align: right; }
  .login-masthead { padding: 14px 18px; }
  .login-panel { margin-top: 28px; padding: 23px; }
  footer { margin: 0 12px; font-size: 10px; }
  dialog { padding: 18px; }
}
@media print {
  body {
    background: #fff;
  }
  body * {
    visibility: hidden;
  }
  dialog[open],
  dialog[open] #print-quotation,
  dialog[open] #print-quotation * {
    visibility: visible;
  }
  dialog[open] {
    position: absolute;
    inset: 0;
    width: 100%;
    max-height: none;
    border: none;
    padding: 0;
    overflow: visible;
  }
  dialog::backdrop {
    background: none;
  }
  dialog button {
    display: none !important;
  }
  #print-quotation {
    font-size: 10pt;
  }
  pre {
    font-size: 8pt;
    page-break-inside: auto;
  }
  .table-wrap {
    overflow: visible;
  }
  tr {
    break-inside: avoid;
  }
  body:has(dialog[open]) .workspace,
  body:has(dialog[open]) aside {
    display: none;
  }
}
