/* assets/css/app.css: small extras on top of Bootstrap.
   The site's security policy blocks style="..." inside the HTML, so every style lives here. */
/* AISAT look (thesis v9, Phase 2; colours changed 2026-10-18 at the researchers' choice): the palette of the AISAT
   student portal (new.aisatportal.com, its srms-tokens.css and sidebar-theme.css) with the exact sky blue of the AISAT
   logo, and rounded cards. Neither the logo nor aisat.edu.ph has a navy or an orange, so the earlier approximate navy
   and orange are gone. The -rgb values must match the hex. */
:root {
  --portal-slate: #1a2942;        /* the portal's sidebar */
  --portal-blue: #2563eb;         /* the portal's main colour (5.2:1 on white) */
  --portal-blue-dark: #1d4ed8;    /* its darker blue, for hover (6.7:1 on white) */
  --portal-tint: #eff6ff;         /* its palest blue */
  --aisat-sky: #25aae1;           /* the AISAT logo; too faint on white for text, so used for lines and accents */
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #2563eb;
  --bs-link-color-rgb: 37, 99, 235;
  --bs-link-hover-color: #1d4ed8;
  --bs-link-hover-color-rgb: 29, 78, 216;
  --bs-border-radius: 0.6rem;
  --bs-border-radius-lg: 0.9rem;
}
.btn-primary {
  --bs-btn-bg: var(--portal-blue); --bs-btn-border-color: var(--portal-blue);
  --bs-btn-hover-bg: var(--portal-blue-dark); --bs-btn-hover-border-color: var(--portal-blue-dark);
  --bs-btn-active-bg: var(--portal-blue-dark); --bs-btn-active-border-color: var(--portal-blue-dark);
  --bs-btn-disabled-bg: var(--portal-blue); --bs-btn-disabled-border-color: var(--portal-blue);
}
.btn-outline-primary {
  --bs-btn-color: var(--portal-blue); --bs-btn-border-color: var(--portal-blue);
  --bs-btn-hover-bg: var(--portal-blue); --bs-btn-hover-border-color: var(--portal-blue);
  --bs-btn-active-bg: var(--portal-blue-dark); --bs-btn-active-border-color: var(--portal-blue-dark);
}
.navbar-aisat { background-color: var(--portal-slate); border-bottom: 4px solid var(--aisat-sky); }
/* The logo is made for light backgrounds, so it sits on a white rounded backing; it never takes more than
   about half a phone's width and keeps its shape when it has to shrink. */
.brand-logo { height: 36px; width: auto; max-width: 55vw; object-fit: contain; background: #fff; border-radius: 0.4rem; padding: 2px 6px; }
.brand-mark { font-weight: 700; letter-spacing: 0.02em; }
.brand-accent { color: var(--aisat-sky); }       /* on the slate bar: 5.5:1 */
.card { --bs-card-border-radius: 0.9rem; --bs-card-inner-border-radius: calc(0.9rem - 1px); }
.form-check-input:checked { background-color: var(--portal-blue); border-color: var(--portal-blue); }
.form-check-input:focus, .form-control:focus, .form-select:focus { border-color: var(--portal-blue); box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25); }
.btn-primary, .btn-outline-primary { --bs-btn-focus-shadow-rgb: 37, 99, 235; }
.portal-note { border-left: 4px solid var(--aisat-sky); background: var(--portal-tint); padding: 0.6rem 0.8rem; border-radius: 0.4rem; }
.staging-banner { background: #ffc107; color: #000; text-align: center; padding: 6px; font-weight: bold; }
.qty-input { width: 90px; }
.narrow { max-width: 480px; }
.medium { max-width: 720px; }
.tool-photo { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }
/* "Jump to" buttons above the tool list: one per heading, wrapping on a phone */
.jump-to { display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; margin-top: 0.5rem; }
.tool-cat { scroll-margin-top: 1rem; }
.tool-photo-large { max-width: 320px; height: auto; border-radius: 6px; }
.big-code { font-size: 2rem; font-family: monospace; letter-spacing: 0.15em; }
.slip { border: 1px dashed #666; padding: 10px; margin-bottom: 10px; page-break-inside: avoid; }
.pin-input { font-size: 1.4rem; letter-spacing: 0.4em; }
.w-40 { width: 40%; }
.navbar .nav-link, .navbar-text, .navbar .btn { white-space: nowrap; }
@media (min-width: 1200px) { .navbar-expand-xl .navbar-nav .nav-link { padding-left: 0.45rem; padding-right: 0.45rem; } }
.change { white-space: pre-line; }
.sticky-submit { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #dee2e6; padding: 0.6rem 0; margin-top: 1rem; z-index: 10; }

/* Receipt */
.rc { max-width: 720px; }
.rc-title { font-size: 1.25rem; font-weight: bold; text-align: center; }
.rc-sub { text-align: center; margin-bottom: 0.5rem; }
.rc-no { text-align: center; font-size: 1.4rem; margin-bottom: 0.75rem; }
.rc-no strong { white-space: nowrap; }
.rc-table, .rc-items { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; }
.rc-table th, .rc-table td, .rc-items th, .rc-items td { border: 1px solid #999; padding: 6px; vertical-align: top; }
.rc-table th { width: 30%; background: #f2f2f2; }
.rc-items th { background: #e9e9e9; }
.rc-n, .rc-q { width: 12%; text-align: center; }
.rc-note { font-weight: bold; }

/* Printing: hide menus, filters, and buttons so only the record prints */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  main.container { max-width: 100%; padding: 0; }
  table { font-size: 11px; }
  thead { display: table-header-group; }   /* repeat column headings on every page */
  tr { page-break-inside: avoid; }
}

/* Wayfinding: the page header, the menu mark, the student steps and the help tips */
.page-head { margin-bottom: 1rem; }
.page-head .breadcrumb { margin-bottom: 0.25rem; font-size: 0.875rem; flex-wrap: wrap; }
.page-intro { margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 0.25rem; font-size: 0.875rem; }
.navbar-aisat .nav-link.active, .navbar-aisat .nav-link[aria-current="page"] { color: #fff; font-weight: 600; box-shadow: inset 0 -3px 0 var(--aisat-sky); }
.dropdown-item.active, .dropdown-item:active { background-color: var(--portal-blue); }
.steps { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; list-style: none; padding: 0; margin: 0 0 1rem 0; font-size: 0.875rem; }
.step { color: #6c757d; }
.step-n { display: inline-block; width: 1.5rem; height: 1.5rem; line-height: 1.5rem; text-align: center; border-radius: 50%; border: 1px solid #adb5bd; }
.step.current { color: var(--portal-blue-dark); font-weight: 600; }
.step.current .step-n { background: var(--portal-blue); border-color: var(--portal-blue); color: #fff; }
/* white on sky blue is only 2.7:1; dark blue on the pale tint, with a sky-blue ring, is easy to read */
.step.done .step-n { background: var(--portal-tint); border-color: var(--aisat-sky); color: var(--portal-blue-dark); }
.help-tip { margin: 0.5rem 0 1rem 0; font-size: 0.9rem; }
.help-tip > summary { cursor: pointer; color: var(--portal-blue-dark); }
.help-tip-body { border-left: 3px solid var(--aisat-sky); padding: 0.5rem 0.75rem; margin-top: 0.25rem; background: #f4fafd; }
.help-page section { max-width: 760px; margin-bottom: 1.25rem; }
.table > tbody > tr:hover > * { background-color: #f4f8fd; }
/* Bootstrap's grey outline button (#6c757d) drops to 4.3:1 on a row the mouse is over; its darker grey stays above 4.5:1 */
.btn-outline-secondary {
  --bs-btn-color: #5c636a; --bs-btn-border-color: #5c636a;
  --bs-btn-hover-bg: #5c636a; --bs-btn-hover-border-color: #5c636a;
  --bs-btn-active-bg: #4d5154; --bs-btn-active-border-color: #4d5154;
}
/* The same for Bootstrap's red (#dc3545: 4.5:1 on white, 4.25:1 on that row): its darker red stays above 6:1, on the
   outline buttons (Cancel, Decline) and on red text inside tables. */
.btn-outline-danger {
  --bs-btn-color: #b02a37; --bs-btn-border-color: #b02a37;
  --bs-btn-hover-bg: #b02a37; --bs-btn-hover-border-color: #b02a37;
  --bs-btn-active-bg: #8f2230; --bs-btn-active-border-color: #8f2230;
}
.table .text-danger { --bs-danger-rgb: 176, 42, 55; }
/* Long tables (records, audit log, inventory, sessions) scroll inside their own box, so the column headings stay in
   view while the rows move under them. */
.table-scroll { max-height: 75vh; overflow: auto; }
/* Every table box can be reached with Tab and scrolled with the arrow keys (sideways on a phone, down in a long list) */
.table-responsive[tabindex]:focus-visible { outline: 3px solid var(--portal-blue); outline-offset: 2px; }
.table-scroll > .table > thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 #adb5bd; }
/* On paper the box opens out, so every row prints, not only what fits in the box (after the rules above, so it wins). */
@media print {
  .table-scroll { max-height: none; overflow: visible; }
  .table-scroll > .table > thead th { position: static; box-shadow: none; }
}
