/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Print-list page background tint, scoped via a body class so it can
   never bleed onto other pages (Turbo Drive keeps the body element
   across navigations, so inline styles persist — class toggle won't). */
body.on-print-page.print-page-has-results {
  background-color: #E1EBCA;
}

 .material-symbols-outlined {
  margin-right: 4px;
  height: 26px;
  vertical-align: middle;
  font-variation-settings:
   'FILL' 0,
   'wght' 300,
   'GRAD' 200,
   'opsz' 40
 }

main {
  font-family: Open Sans;
  font-weight: 400;
  margin: 80px 50px;
  max-width: 960px;
  padding-bottom: 20px;
}

@media (min-width: 60em) {
  nav .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 4px;
  }
}

nav .menu>* {
  border-right: 2px solid #FFF;
  margin-right: 10px;
  padding-right: 10px;
  line-height: 1.4;
}

nav .menu .nav-link-last {
  border-right: none;
  margin-right: 0;
}

nav .menu .nav-user {
  font-style: italic;
  opacity: 0.85;
}

nav .menu form,
nav .menu .button_to {
  margin: 0;
  display: inline;
}

nav .menu .button_to .button,
nav .menu .button_to button {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0;
  margin: 0;
  font-size: inherit;
  cursor: pointer;
}

nav .menu .button_to .button:hover {
  text-decoration: underline;
}

/* Admin dropdown (uses native <details>/<summary>) */
nav .menu .nav-dropdown {
  position: relative;
  display: inline-block;
}
nav .menu .nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
}
nav .menu .nav-dropdown > summary::-webkit-details-marker { display: none; }
nav .menu .nav-dropdown > summary::after {
  content: " \25BE"; /* small down-arrow */
  font-size: 0.8em;
  opacity: 0.8;
}
nav .menu .nav-dropdown[open] > summary::after {
  content: " \25B4"; /* up-arrow when open */
}
nav .menu .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  background: #001D54;
  border: 1px solid #1a3568;
  border-radius: 4px;
  padding: 6px 0;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}
nav .menu .nav-dropdown-item {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  white-space: nowrap;
}
nav .menu .nav-dropdown-item:hover {
  background: #1a3568;
  text-decoration: underline;
}

nav {
  background: #001D54;
  color: #fff;
  max-width: 100%;
  width: 100vw; /* Force the nav to stay within the viewport width */
  box-sizing: border-box; /* Include padding and border in the width */
}

nav .burger {
  font-size: 1.3em;
}

nav .burger~.menu {
  background: #001D54;
}

nav a {
  color: #fff;
}

/* "Print List" stays in the navbar even when the burger collapses the
   rest of the menu. The .nav-always copy lives outside .menu and is
   hidden at large widths (where the in-menu version shows); the
   in-menu .nav-link-print copy is hidden at small widths to avoid a
   duplicate after the burger is opened. */
nav .nav-always {
  display: none;
}

@media (max-width: 60em) {
  /* Force an explicit flex layout for the nav row so we can rely on
     `order` + `margin-left: auto` rather than fighting Picnic's
     defaults. !important keeps framework rules from re-asserting. */
  nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-height: 56px;
    height: auto !important;          /* Picnic sets height: 3em which clips */
  }
  /* Picnic centers .brand / .burger using a pre-flex hack:
     `position: relative; top: 50%; transform: translateY(-50%)`.
     Inside our flex nav, that double-shifts the children downward
     (align-items centers them, THEN translateY drags them down again,
     which is why the brand looked anchored to the bottom). Reset
     them — but NOT `.menu`, which legitimately uses `position: fixed`
     when the burger is open to slide out from the right. */
  nav .brand,
  nav .burger,
  nav label.burger {
    position: static !important;
    top: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    float: none !important;
  }
  nav .brand {
    order: 1;
    margin: 0 !important;
    align-self: center;
    line-height: 1.2;
  }
  nav .nav-always {
    order: 2;
    display: inline-flex !important;
    align-items: center;
    margin-left: auto !important;   /* anchors button next to the burger */
    margin-right: 0.6em;
    padding: 8px 16px;
    background: #1a3568;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
  }
  nav .nav-always:hover {
    background: #25457f;
    text-decoration: none;
  }
  nav input#bmenub { order: 3; }
  nav label.burger { order: 4; margin-left: 0; align-self: center; }
  /* Collapsed menu wraps below the row when expanded by the burger. */
  nav .menu {
    order: 5;
    flex-basis: 100%;
  }

  nav .menu .nav-link-print {
    display: none;
  }
}

@media (max-width: 60em) {
  main {
    margin: 70px 1em;
  }

  nav .menu>* {
    border: none;
    margin-right: 0;
    padding-right: 0;
    display: block;
    width: 100%;
    color: #fff;
    padding: 10px 16px;
    box-sizing: border-box;
  }

  nav .menu .nav-user {
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  nav .menu .button_to,
  nav .menu form {
    display: block;
    width: 100%;
  }

  nav .menu .button_to .button,
  nav .menu .button_to button {
    text-align: left;
    width: 100%;
    padding: 10px 16px;
  }

  nav {
    max-width: 100%; /* Ensure it doesn't extend beyond the viewport */
  }

  /* Prevent tables or wide content from affecting layout */
  body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  table {
    width: 100%; /* Make tables responsive on mobile */
    display: block; /* Ensure they don't stretch the layout */
    overflow-x: auto; /* Allow horizontal scrolling within the table */
  }
}

a {
  color: #2874AF;
}

a:hover {
  color: #B21029;
}

.notice,
.flash,
.flash-notice {
  background: #4EB57C;
  color: #FFF;
  padding: 8px 12px;
  margin-bottom: 1em;
  border-radius: 3px;
}

.error,
.flash-alert,
.flash-error {
  color: #FFF;
  background: #B21029;
  padding: 8px 12px;
  margin-bottom: 1em;
  border-radius: 3px;
}

.pseudo.button.error {
  color: #B21029;
  font-size: .8em;
}

.button, [type=submit] {
  background: #001D54
}

.button.secondary {
  background: #2874AF;
}

.row-category {
  white-space: nowrap;
}

.page-header {
  border-bottom: 2px solid #333;
  margin: .6em auto 1.2em;
  padding-bottom: 1.2em;
}

table.primary {
  background: #Fff;  
}

#to-print table.primary{
  margin: 0 auto;
  padding: 5px;
  border: 1px solid #999;
}

table th {
  background-color: #2874AF;
}

table.primary td {
  font-size: .9em;
}

table.primary td.name-col {
  font-size: 1em;
}

th.status-col, td.status-col {
  padding: .3em .4em;
}

table.primary td.program-col {
  line-height: 1.2;
}

table.primary td.program-col .program-cell {
  display: flex;
  align-items: center;
  gap: .35em;
}

table.primary td.program-col .program-degree {
  font-size: .8em;
  color: #6b6b6b;
  margin-top: .15em;
}

.icon-legend {
  font-size: .8em;
  text-align: center;
  padding: .3em .4em;
  color: #3D3D3D;
}

.day-block {
  margin: 1.5em 0 2em;
  border-left: 4px solid #2874AF;
  padding-left: 1em;
}

.day-block .day-heading {
  margin: 0 0 .4em;
  font-size: 1.1em;
  color: #2874AF;
  font-weight: 600;
  letter-spacing: .02em;
}

.day-block .day-table {
  margin: 0;
  border-collapse: collapse;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.day-block .day-table th {
  font-size: .85em;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.day-block .day-table td {
  padding: .45em .8em;
}

.day-block .day-table tr.day-total td {
  background-color: #eef4fa;
  border-top: 2px solid #2874AF;
  font-weight: 600;
  color: #1f5a8a;
  font-size: .9em;
}

.daily-chart {
  margin: .5em 0 2em;
  padding: 1em 1.2em;
  background: #fafbfc;
  border: 1px solid #e3e8ed;
  border-radius: 6px;
}

.daily-chart-legend {
  font-size: .8em;
  color: #555;
  margin-bottom: .9em;
  display: flex;
  gap: 1.2em;
  align-items: center;
}

.daily-chart-legend .legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: .35em;
  vertical-align: middle;
}

.legend-ug, .seg-ug { background-color: #2874AF; }
.legend-ma, .seg-ma { background-color: #6AB3E7; }
.legend-dr, .seg-dr { background-color: #F4A261; }

.daily-chart-row {
  display: flex;
  align-items: center;
  gap: .8em;
  margin: .35em 0;
}

.daily-chart-label {
  flex: 0 0 5.5em;
  font-size: .85em;
  color: #444;
  text-align: right;
}

.daily-chart-track {
  flex: 1;
  background: #edf1f5;
  border-radius: 3px;
  height: 22px;
  overflow: hidden;
}

.daily-chart-bar {
  display: flex;
  height: 100%;
  min-width: 2px;
  transition: width .3s ease;
}

.daily-chart-seg {
  height: 100%;
}

.daily-chart-value {
  flex: 0 0 3em;
  font-size: .9em;
  font-weight: 600;
  color: #1f5a8a;
}

.timeline-scroll {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e3e8ed;
  border-radius: 4px;
}

.timeline-inner {
  display: inline-block;
  min-width: 100%;
}

.timeline-chart {
  display: flex;
  align-items: flex-end;
  gap: 0;
  height: 280px;
  padding: 0;
  position: relative;
}

.timeline-col {
  flex: 0 0 10px;
  width: 10px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 1px;
  box-sizing: border-box;
}

.timeline-bar-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
}

.timeline-seg {
  width: 100%;
}

.timeline-divider {
  flex: 0 0 1px;
  height: 100%;
  background: #c7d2dc;
  position: relative;
  margin: 0 6px;
}

.timeline-divider-label {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: .7em;
  color: #2874AF;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255,255,255,0.85);
  padding: 1px 4px;
  border-radius: 2px;
}

.timeline-axis {
  display: flex;
  gap: 0;
  margin-top: .25em;
  font-size: .65em;
  color: #777;
  border-top: 1px solid #e3e8ed;
  padding-top: 2px;
}

.timeline-axis .timeline-tick {
  flex: 0 0 10px;
  width: 10px;
  text-align: left;
  white-space: nowrap;
  padding: 0 1px;
  box-sizing: border-box;
  position: relative;
}

.timeline-axis-divider {
  flex: 0 0 1px;
  margin: 0 6px;
}

details summary {
  font-size: 0.9em;
  cursor: pointer;
  margin: 0.2em 0 0;
}

details div {
  padding: 0.5em 0 0 0.5em;
}

article.badge {
  border: 1px solid #999;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  text-align: center;
  padding: 5mm;
  margin: 2em auto 10px;
  width: 85mm;
  height: 51mm;
  font-size: .85em;
  display: flex;
  justify-content: center;
  align-items: center;
  zoom: 130%;
  position: relative;
}

article.badge .checkedin-banner {
  font-size: 10px;
  font-weight: 600;
  padding: 3px;
  position: absolute;
  width: 101mm;
  top: -20px;
  background: #6AB3E7;
  color: #FFF;
}

article.badge .checkedin-banner .material-symbols-outlined {
  font-size: 13px;
  height: 13px;
}

.printed-badge {
  content: ""; /* No content, used purely for styling */
  position: absolute;
  bottom: 0; /* Align at the bottom */
  right: 0; /* Align at the left */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 50px 50px 0px 0px; /* Creates a triangle */
  border-color: transparent #6AB3E7 transparent transparent; /* Add yellow color to the triangle */
  z-index: 1; /* Ensure it appears above the badge background */
}

.printed-badge .material-symbols-outlined {
  color: white;
  font-size: 20px;
  position: absolute;
  right: -50px;
  bottom: 0;
}

div.badge-content {
  position: relative;
  vertical-align: middle;
  max-height: 45mm;
  width: 75mm;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

article.badge.sticker {
  width: 101mm;
  height: 53mm;
}
.sticker div.badge-content {
  width: 91mm;
  max-height: 51mm;
}

h1.name {
  font-weight: 800;
  font-size: 1.8em;
  margin: 0;
  padding: 0;
  line-height: 1.1em;
}

/* Smaller "formal" name printed under the preferred name on the sticker.
   Bag stuffers match these against the printed bag label; volunteers call
   the graduate by the larger preferred name above. */
.formal-name {
  font-size: 0.75em;
  font-weight: 600;
  color: #222;
  line-height: 1.1em;
  margin-top: 2px;
  padding: 0;
}

/* Long or many-named graduates: keep every name on the label. */
article.badge.sticker.compact h1.name {
  font-size: 1.3em;
}
article.badge.sticker.compact .formal-name {
  font-size: 0.68em;
}
article.badge.sticker.compact .classification {
  padding: 2px 0;
}
article.badge.sticker.compact .classification .major {
  font-size: 12px;
  padding-top: 0;
}
article.badge.sticker.compact .classification .college {
  font-size: 11px;
  line-height: 18px;
  padding-bottom: 0;
}
article.badge.sticker.compact .classification .college .material-symbols-outlined {
  font-size: 15px;
  line-height: 18px;
}
article.badge.sticker.compact .bottom-row {
  margin-top: 0;
}
article.badge.sticker.compact .bottom-row h3 {
  padding: 1px 0;
}

.term-banner {
  background: #fff3cd;
  border-bottom: 1px solid #d08a2e;
  padding: 8px 16px;
  text-align: center;
}

.term-banner .inline-form {
  display: inline;
  margin-left: 8px;
}

.terms-table .term-rename {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.terms-table {
  width: 100%;
  table-layout: auto;
}

.terms-table td,
.terms-table th {
  white-space: nowrap;
  vertical-align: middle;
}

.terms-table .term-rename input[type=text] {
  width: 10em;
}

.terms-table .term-meta {
  font-size: .8em;
  margin-top: 2px;
}

.terms-table .term-actions form {
  display: inline-block;
  margin: 0 4px 0 0;
}

.term-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #2e7d32;
  color: #fff;
  font-size: .75em;
  font-weight: 700;
}

.term-badge.viewing {
  background: #d08a2e;
}

.volunteer-guide,
.not-found-callout {
  max-width: 720px;
  margin: 16px auto;
  padding: 10px 16px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: #f7f9fc;
  font-size: .9em;
}

.volunteer-guide summary {
  font-weight: 700;
  cursor: pointer;
}

.volunteer-guide dl {
  margin: 8px 0 0;
}

.volunteer-guide dt {
  font-weight: 700;
  margin-top: 8px;
}

.volunteer-guide dd {
  margin: 0;
}

.not-found-callout {
  border-color: #d08a2e;
  background: #fff6e6;
}

.badge .bottom-row .extra-regalia {
  color: #000;
}

.also-known-as {
  font-size: .8em;
  color: #6b6b6b;
  white-space: normal;
}

.list-flag {
  font-size: .75em;
  font-weight: 700;
  color: #8a4b00;
}

.names-on-file,
.verify-size-callout {
  max-width: 560px;
  margin: 16px auto;
  padding: 12px 16px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
}

.names-on-file h3 {
  margin: 0 0 6px;
  padding: 0;
}

.names-on-file table {
  width: 100%;
}

.names-on-file th {
  background: transparent;
  color: #6b6b6b;
  font-weight: 400;
  text-align: left;
  width: 40%;
}

.names-on-file td {
  font-weight: 600;
}

.verify-size-callout {
  border-color: #d08a2e;
  background: #fff6e6;
}

#inc-checkbox {
  margin: 0;
  display: block;
}

.form-submit {
  padding-top: 21px;
}

.classification {
  padding: 5px 0;
}

.classification .college {
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  padding-top: 0;
  line-height: 26px;
}
.classification .college .material-symbols-outlined {
  font-size: 20px;
  line-height: 26px;
  margin-right: 2px;
}

.classification .major {
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  padding-bottom: 0;
}


.classification .degree {
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
}

.honors {
  padding: 5px 0 0 0
}

.order, .height, .honors {
  text-align: center
}

.action-bar {
  margin: 40px auto;
  text-align: center;
  width: 400px;
}

.badge .bottom-row {
  font-size: 11px;
}

.badge .bottom-row>* {
  padding-bottom: 0;
}

.badge .bottom-row .material-symbols-outlined {
  font-size: 15px;
  height: 15px;
  margin-right: 0px;
}

.full-grad-info {
  font-size: .8em;
  max-width: 500px;
  margin: 1.5em auto;
  padding: 15px;
  background: #efefef;
  border: 1px solid #999;
}

.full-grad-info h3 {
  padding: 0;
  margin: 0;
}

.full-grad-info .full-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  margin-bottom: 0.75em;
}

.full-grad-info .full-info-header .button {
  font-size: 0.95em;
  padding: 0.4em 0.9em;
}

/* Staff note callout (shown above Full Grad Info on the show page when
   a staff note exists). Volunteers see this immediately. */
.staff-note-callout {
  max-width: 500px;
  margin: 1em auto;
  padding: 0.75em 1em;
  background: #fff8e1;
  border: 2px solid #f0a500;
  border-radius: 6px;
  color: #5b3a00;
}

.staff-note-callout-header {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 1.05em;
  margin-bottom: 0.25em;
}

.staff-note-callout-header .material-symbols-outlined {
  font-size: 20px;
}

.staff-note-callout-body {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.4;
}

.staff-note-callout-body p {
  margin: 0 0 0.4em;
}

.staff-note-callout-body p:last-child {
  margin-bottom: 0;
}

/* Sticker "See Staff" indicator — intentionally low-key (no color
   alarm, plain text + agent icon) so the recipient isn't startled,
   but distinct enough that volunteers spot it. */
.badge .bottom-row .staff-note {
  color: #333;
}

/* Edit graduate form */
.edit-graduate {
  max-width: 720px;
  margin: 1.5em auto;
  padding: 1.5em;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.edit-graduate-header h2 {
  margin: 0 0 0.25em;
}

.edit-graduate-meta {
  margin: 0 0 1em;
  color: #555;
  font-size: 0.9em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 1.25em;
}

.edit-graduate-errors {
  margin-bottom: 1em;
}

.edit-graduate-form fieldset {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1em 1.25em 1.25em;
  margin: 0 0 1.25em;
}

.edit-graduate-form legend {
  padding: 0 0.5em;
  font-weight: 600;
  color: #333;
}

.edit-graduate-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.edit-graduate-form .form-group {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5em;
}

.edit-graduate-form label {
  font-weight: 600;
  margin-bottom: 0.25em;
  display: block;
}

.edit-graduate-form input[type="text"] {
  width: 100%;
}

.edit-graduate-form .hint {
  display: block;
  margin-top: 0.3em;
  color: #777;
  font-size: 0.85em;
}

.edit-graduate-actions {
  display: flex;
  gap: 0.75em;
  align-items: center;
  margin-top: 0.5em;
}

@media (max-width: 480px) {
  .full-grad-info .full-info-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .edit-graduate-form .form-row {
    flex-direction: column;
  }
}

.action-bar, .card-action-bar, .bulk-action-bar {
  margin: 10px auto;
  text-align: center;
}

.bulk-action-bar .button_to, .card-action-bar .button_to{
  display: inline;
}

.card-action-bar {
  max-width: 400px;
  margin-bottom: 3em;
}

.bulk-action-bar {
  max-width: 600px;
}

.instructions {
  color: #C8102E;
  background-color: #c6f26d18;
  border: 1px solid #C8102E;
  max-width: 500px;
  margin: 0 auto;
  padding: 4px;
  text-align: center;
}


@media print {
  /* !important required because our @media (max-width: 60em) rule sets
     `nav { display: flex !important }` to fix the burger-row layout.
     Without !important here, that rule wins when printing onto small
     paper sizes and the nav prints over the badge content. */
  nav, #back, #height-modal, .page-header, .action-bar, .notice, .card, .modal,
  .card-action-bar, .bulk-action-bar, .instructions, .printed-badge, .checkedin-banner, .full-grad-info,
  .names-on-file, .verify-size-callout, .staff-note-callout, .height-edit,
  .volunteer-guide, .not-found-callout, .term-banner, .other-terms-callout,
  .flash, .flash-notice, .flash-alert, .flash-error {
    display: none !important;
  }

  main {
    margin: 0;
    padding: 0;
  }

  html {
    margin: 0;
    padding: 0;
  }

  body {
    margin: 0;
    padding: 0;
    text-align: center;
    background: #fff !important;   /* defeat .print-page-has-results green */
  }

  body article.badge,
  body article.badge-back {
    border: none;
    margin: 0;
    padding: 0mm;
    size: 89mm 48mm;
    width: 89mm;
    height: 48mm;
    display: flex;
    justify-content: center;
    align-items: center;
    page-break-after: always;
    zoom: 100%;
  }

  body article.badge.sticker {
    width: 101mm;
    height: 53mm;
    size: 101mm 53mm;
    margin-top: -10px
  }

  /* The offset above would push a full label off the top edge. */
  body article.badge.sticker.compact {
    margin-top: -3px;
    overflow: hidden;
  }

  @page {
    /* size: 70mm 45mm;   /* auto is the initial value */
    
    /* this affects the margin in the printer settings */
    margin: 0mm auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ===== Sign-in / Devise pages ===== */
.auth-body {
  background: #f5f5f7;
  min-height: 100vh;
  margin: 0;
}

.auth-header {
  background: #001D54;
  color: #fff;
  padding: 14px 20px;
}

.auth-header .brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.05em;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
}

.auth-main {
  max-width: 420px;
  margin: 60px auto;
  padding: 0 16px;
  font-family: "Open Sans", sans-serif;
}

.signin-card {
  background: #fff;
  padding: 28px 28px 22px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.signin-card h2 {
  margin: 0 0 4px;
  color: #001D54;
}

.signin-card .muted {
  color: #6b6b6b;
  margin: 0 0 18px;
}

.signin-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92em;
}

.signin-form input[type="email"],
.signin-form input[type="password"] {
  width: 100%;
  margin-bottom: 14px;
}

.signin-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
  margin: 4px 0 18px;
  cursor: pointer;
}

.signin-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.signin-submit {
  width: 100%;
  padding: 10px;
  font-weight: 600;
}

.signin-help {
  margin-top: 18px;
  font-size: 0.85em;
  color: #6b6b6b;
  text-align: center;
}

/* ===== Admin imports form ===== */
.imports-form { max-width: 720px; }
.imports-fieldset {
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  padding: 14px 18px 18px;
  margin: 0 0 18px;
  background: #fafafa;
}
.imports-fieldset legend {
  padding: 0 6px;
  font-weight: 600;
  color: #333;
}
.imports-fieldset label {
  display: block;
  margin: 10px 0;
}
.imports-fieldset small.muted { display: block; margin-top: 4px; }
.muted { color: #6b6b6b; font-size: 0.9em; }

/* Hide each typeSection unless the matching radio is checked.
   :has() lets this work without JavaScript. JS controller adds belt-and-suspenders. */
.imports-form .needs-term,
.imports-form .needs-file,
.imports-form .cords-only { display: none; }
.imports-form:has(input[name="import_type"][value="graduates"]:checked) .needs-term,
.imports-form:has(input[name="import_type"][value="brags"]:checked)     .needs-term,
.imports-form:has(input[name="import_type"]:checked)                    .needs-file { display: block; }
.imports-form:has(input[name="import_type"][value="cords"]:checked)     .cords-only { display: block; }

.import-type-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.import-type-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid #d6d6d6;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  margin: 0 !important;
  transition: border-color 0.1s, background 0.1s;
}
.import-type-option:hover { border-color: #888; }
.import-type-option:has(input:checked) {
  border-color: #1da1f2;
  background: #eaf6fe;
}
.import-type-option input[type="radio"] {
  margin: 4px 0 0;
  flex: 0 0 auto;
}
.import-type-option .option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.import-type-option strong { font-size: 1em; }
.import-type-option .muted { font-size: 0.82em; }

.imports-actions { margin-top: 8px; }

/* ===== Admin users form ===== */
.admin-user-form {
  max-width: 760px;
}

.admin-user-form > label {
  display: block;
  margin: 0 0 12px;
}

.admin-user-form > label:has(input[type="checkbox"]) {
  margin: 4px 0 14px;
}

.admin-user-form .imports-fieldset {
  margin-top: 8px;
  margin-bottom: 20px;
}

.admin-user-form .imports-fieldset p {
  margin: 4px 0 12px;
}

.admin-user-form .form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Term picker: only show the "new term code" input when "+ New term…" is selected */
.term-picker .new-term { display: none; }
.term-picker:has(select option[value="__new__"]:checked) .new-term { display: block; }
