/* css/main.css - Master entry stylesheet importing all feature modules */
/* The ?v=N on every import busts mobile Safari's aggressive stylesheet
   cache, which otherwise keeps serving an old file even after a hard
   refresh - bump this number whenever a CSS deploy needs to force-refresh
   on phones that already have the old version cached. */
@import url('base.css?v=5');
@import url('layout.css?v=5');
@import url('spreadsheet.css?v=5');
@import url('components.css?v=5');
@import url('features/dashboard.css?v=5');
@import url('features/collection.css?v=5');
@import url('features/reports.css?v=5');
@import url('features/studentProfile.css?v=5');

/* Shimmer Animation CSS loader */
@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}
.shimmer-row td {
  background: #f6f7f8;
  background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 104px;
  animation-duration: 1.2s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: shimmer;
  animation-timing-function: linear;
  color: transparent !important;
}

/* Master Configuration toolbar (search + add button row above each tab table) */
.mc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.mc-toolbar .mc-search {
  max-width: 280px;
}

/* @media print styles for statement / receipts printing */
@media print {
  @page {
    size: A4;
    margin: 0;
  }
  body > *:not(#print-overlay-container) {
    display: none !important;
  }
  #print-overlay-container, #print-overlay-container * {
    visibility: visible !important;
  }
  #print-overlay-container {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: white !important;
  }
  /* The certificate sheet already carries its own 20mm padding to simulate
     page margins - @page margin:0 above hands it the full physical page, so
     the two never stack into an overflow onto a near-empty second page. */
  #noc-a4-print-sheet {
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    page-break-after: avoid !important;
  }
}

/* Student category tabs (Pending Approval / Active / Repair / etc.) - keep
   in a single row; scrolls horizontally on narrow screens but the scrollbar
   itself is styled thin + visible so it never looks like the row is cut off. */
#student-category-tabs {
  scrollbar-width: thin;
}
#student-category-tabs::-webkit-scrollbar {
  height: 6px;
}
#student-category-tabs::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 3px;
}
#student-category-tabs .btn-student-cat-tab {
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--bg-app);
  color: var(--text-dark);
}
#student-category-tabs .btn-student-cat-tab:hover {
  background-color: var(--bg-panel-hover, #f1f5f9);
  border-color: var(--primary-color);
}
#student-category-tabs .btn-student-cat-tab.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
