/** SPS LMS — liquid glass theme entry point */

@import url("sps-tokens.css");
@import url("sps-theme-light.css");
@import url("sps-theme-dark.css");
@import url("sps-glass.css");
@import url("sps-components.css");

/* Sidebar wrap min width */
#sidebarWrapper {
  display: flex;
  flex: 0 0 220px;
  width: 220px;
  max-width: 220px;
  height: 100vh;
  flex-shrink: 0;
}

.sidebar_wrap, #sidebar {
  height: 100%;
  width: 100%;
}

.sidebar_wrap {
  min-width: 220px;
  flex-shrink: 0;
}

#lmsAppLayout > #mainContent {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
}

#sidebar .nav-link {
  white-space: nowrap;
}

/* Prevent Chart.js resize loops by fixing the container height */
.card .chart-container { max-height: 500px; }
.card .card-body { overflow: hidden; }

.chart-container {
  position: relative;
  height: 450px;
  width: 100%;
}

/* Make search bar full width and remove label spacing */
.dataTables_filter label { width: 100%; margin-bottom: 0; }
.dataTables_filter input { max-width: 100%; }

/* Keep buttons tidy next to title */
.dt-buttons .btn { margin-left: .5rem; }

/* Tighten bottom pagination row */
.dataTables_wrapper .dataTables_paginate .pagination { margin: 0; }

/* PRINT ISOLATION */
@media print {
  html, body {
    width: 11in;
    height: 8.5in;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  body * {
    visibility: hidden;
  }

  .sheet, .sheet * {
    visibility: visible;
  }

  .sheet {
    position: absolute;
    left: 0;
    top: 0;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .toolbar {
    display: none !important;
  }
}
