/* ==========================================================================
   ClassKit Global - Printable Math Grids & Dot Paper Stylesheet
   Calibrated for high-precision A4 & US Letter printing
   Strict Decoupling: Under 300 lines
   ========================================================================== */

.graph-sheet {
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  page-break-after: always;
  break-after: page;
  padding: 8mm 10mm 6mm 10mm;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.graph-sheet.is-full-bleed {
  padding: 4mm !important;
}

/* Grid Canvas Box */
.grid-canvas-container {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1.5px solid #0F172A;
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

.graph-sheet.is-full-bleed .grid-canvas-container {
  border: none;
  border-radius: 0;
}

.vector-grid-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Print Specific Rules */
@media print {
  @page {
    margin: 0;
    size: auto;
  }

  body {
    background: #FFFFFF !important;
  }

  .studio-header,
  .studio-sidebar {
    display: none !important;
  }

  .studio-viewport {
    padding: 0 !important;
    background: #FFFFFF !important;
  }

  .a4-wrapper {
    box-shadow: none !important;
    padding: 0 !important;
  }

  .graph-sheet {
    box-shadow: none !important;
    margin: 0 !important;
  }
}
