
/* =============================
   RR CRUD Modal (centered)
   ============================= */

.rr-crud-modal-dialog {
  max-width: 980px;
  width: calc(100vw - 24px);
}

/* Optional size overrides (set by rr-crud-modal.js via data-rr-modal-size) */
.rr-crud-modal-dialog.rr-crud-modal--sm { max-width: 600px; }
.rr-crud-modal-dialog.rr-crud-modal--md { max-width: 760px; }
.rr-crud-modal-dialog.rr-crud-modal--lg { max-width: 980px; }

.rr-crud-modal-content {
  border-radius: 16px;
  overflow: hidden;
  max-height: calc(100vh - 40px);
}

.rr-crud-modal-header,
.rr-crud-modal-footer {
  position: sticky;
  z-index: 2;
  background: #fff;
}

.rr-crud-modal-header {
  top: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rr-crud-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.rr-crud-modal-close {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 10px;
}

.rr-crud-modal-close:hover {
  background: rgba(0,0,0,.06);
}

.rr-crud-modal-body {
  padding: 16px;
  overflow: auto;
  max-height: calc(100vh - 40px - 60px - 58px);
}

.rr-crud-modal-footer {
  bottom: 0;
  padding: 12px 16px;
  border-top: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rr-crud-modal-loading,
.rr-crud-modal-error {
  padding: 24px;
  color: #333;
}

:root {
--bg:#ffffff;
--fg:#e6e6e6;
--muted:#a9b0b8;
--accent:#4ea1ff;
--danger:#ff6b6b;
--ok:#39d98a;
--black:#1e1c1c;
}

* {
box-sizing:border-box
}

body 
{background:#ffffff;
color:#1e1c1c;
font:14px/1.4 system-ui,Segoe UI,Roboto,Arial}
a{color:var(--accent);
text-decoration:none;
}

.container{max-width:none!important;
margin-left: 200px;padding:0 16px}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px 12px;border-bottom:none}
.table th{color:#1e1c1c;text-align:left;font-weight:600}
.table tr:hover td{background:#e6e6e6}
.btn{display:inline-block;padding:8px 12px;border-radius:8px;border:none;cursor: pointer;height:38px;}
.btn + .btn{margin-left:6px}
.btn-primary{background: #27ae60;
  color: #ffffff;}
.btn-primary:hover{background:#27ae60;filter: brightness(1.05);box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);}
.btn-danger{background:#c0392b;border:none;color:#ffffff;}
.btn-danger:hover{background:#c0392b;filter:brightness(1.05); box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);}
.btn-secondary{background: #1e1c1c;
  color: #1e1c1c;}
  .btn-secondary:hover{background: #1e1c1c;
  color: #ffffff;filter:brightness(1.05); }
.btn-third{background: #e6e6e6;
  color: #1e1c1c;
  }
  .btn-third:hover{
  filter: brightness(1.05); 
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
 }
 .btn-blue{background: #0c6b8d;
  color: #ffffff;
  }
  .btn-blue:hover{
	  filter:brightness(1.05);
	  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
 }

/* -------------------------------------------------
   RR CRUD modal (global include) must be hidden by default
   -------------------------------------------------
   This project has a global `.modal { display:flex; }` rule.
   Because the CRUD modal markup is injected on every page,
   we must explicitly hide it unless Bootstrap adds `.show`.
*/
.modal.rr-crud-modal { display: none !important; }
.modal.rr-crud-modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px !important;
  overflow: hidden !important;
}

/* dialog sizing + only body scroll */
.modal.rr-crud-modal .modal-dialog{
  margin: 0 auto !important;
  width: min(1280px, calc(100vw - 40px)) !important;
  max-width: none !important;
  height: calc(100vh - 40px) !important;
  display: flex;
}
.modal.rr-crud-modal .rr-crud-modal-dialog{
  max-width: none !important;
  width: min(1280px, calc(100vw - 40px)) !important;
}
.modal.rr-crud-modal .rr-crud-modal-content{
  display: flex;
  flex-direction: column;
  max-height: 100% !important;
  overflow: hidden !important;
}
.modal.rr-crud-modal .rr-crud-modal-body{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto !important;
  max-height: none !important;
}

 
  .btn-orange{
	  background: #f96c00;
  color: #ffffff;
  }
  .btn-orange:hover{
	  filter:brightness(1.05);
	  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
 }


  
  .btn-dragndrop {
	  background:#ffffff;
	  color:#1e1c1c;
	 
  }
	  .btn-dragndrop:hover {
	  background:#a9b0b8;
	  color:#1e1c1c;
	 
  }


.badge{display:inline-block;padding:2px 8px;border-radius:999px;background:#1d2430;color:#ffffff;font-size:12px}

/* Bootstrap-like bg utility classes (used by badge pills) */
.bg-success{background:#28a745 !important;color:#fff !important;}
.bg-warning{background:#ffc107 !important;color:#111 !important;}
.bg-danger{background:#c0392b !important;color:#fff !important;}
.bg-secondary{background:#6c757d !important;color:#fff !important;}


/* Muted status pills (used on App Users) */
.badge-muted-ok{background:rgba(57,217,138,.18);color:var(--ok);border:1px solid rgba(57,217,138,.35)}
.badge-muted-danger{background:rgba(255,107,107,.18);color:var(--danger);border:1px solid rgba(255,107,107,.35)}
.muted{color:var(--muted) !important;}
.table-responsive{overflow-x:auto;}
.form-row{display:flex;gap:12px;flex-wrap:wrap}
.form-row .field{flex:1 min(280px);min-width:210px}
input[type=text],input[type=email],input[type=date],input[type=number],select,textarea{width:100%;padding:8px 10px;border:none;border-radius:8px;background:#f2f2f2;color:#1e1c1c;height:35px;}

.actions{text-align:right;margin:8px 0 12px}

/* Force right align even if other styles interfere */
.toolbar{
  display:block;        /* full-width block */
  text-align:right;     /* push contents to the right */
  margin:8px 0 12px;
}
/* Force-right helpers (work across flex/blocks/floats) */
.toolbar-flex{display:flex; align-items:center; width:100%;}
.ml-auto{margin-left:auto !important;}
.pull-right{float:right !important;}
/* Search + Add button on one row */
.filterbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:8px 0 16px}
.filterbar .grow{flex:1 1 680px}   /* makes search area wide */
.input-lg{padding:12px 14px;font-size:16px;border-radius:4px;width:100%; gap: 10px;}

/* Right-align the last column (View buttons) and keep it tight */
.table th.right,.table td.right{text-align:right}
.table td.actions{white-space:nowrap;width:1%;text-align:right}

  /* Pointer cursor for all clickable controls */
  a.btn,
  button,
  [type="button"],
  [type="submit"],
  [role="button"],
  .btn,
  .button,
  .btn-primary,
  .btn-sm,
  .linkish {
    cursor: pointer;
  }

  /* Disabled states should NOT show a pointer */
  button[disabled],
  [type="button"][disabled],
  [type="submit"][disabled],
  .btn.disabled,
  .disabled {
    cursor: not-allowed !important;
    opacity: 0.7;
  }



  
    /* Top bar theme + shared color */
    .topbar{
   
      background:#0b0f16;                 /* dark header bg (restored) */
      border-bottom:1px solid #1f2a37;    /* subtle divider (restored) */
	 
    }
    .topbar-inner{
      max-width:none;margin:0 auto;
      padding:10px 16px;height:50px;
      display:flex;justify-content:space-between;
      position:relative;
    }
    /* Centered brand */
    .topbar .brand{
      position:relative;right:875px;top:-5px;transform:translateX(-50%);
      color:#e5e7eb;text-decoration:none;font-weight:600;font-size:18px;white-space:nowrap;
    }
    /* Right-side links container (pinned to right) */
    .topbar .nav-right{
      position:absolute;right:16px;top:50%;transform:translateY(-50%);
      display:flex;gap:18px;align-items:center;margin-left:auto;
    }

    /* Demo (read-only) indicator */
    .rr-demo-badge{
      display:inline-flex;align-items:center;gap:6px;
      padding:4px 10px;border-radius:999px;
      background:#111827;border:1px solid #243244;color:#e5e7eb;
      font-size:12px;font-weight:700;letter-spacing:.02em;
      user-select:none;white-space:nowrap;
    }

    /* Demo toast */
    .rr-demo-toast-root{
      position:fixed;
      top:14px;
      right:14px;
      z-index:99999;
      display:flex;
      flex-direction:column;
      gap:10px;
      pointer-events:none;
    }
    .rr-demo-toast{
      pointer-events:none;
      background:#111827;
      border:1px solid #243244;
      color:#e5e7eb;
      padding:10px 12px;
      border-radius:10px;
      box-shadow:0 8px 20px rgba(0,0,0,0.22);
      font-size:13px;
      font-weight:600;
      transform:translateY(-6px);
      opacity:0;
      transition:opacity .18s ease, transform .18s ease;
      max-width:340px;
    }
    .rr-demo-toast.is-visible{
      opacity:1;
      transform:translateY(0);
    }

    /* Shared cosmetic disabled style for demo accounts */
    .rr-demo-disabled{
      opacity:0.55 !important;
      cursor:not-allowed !important;
      /* Intentionally NOT pointer-events:none so clicks can show a demo toast */
    }
    /* Header links: white -> blue on hover */
    .topbar .nav-right a{
      color:#ffffff !important;text-decoration:none;padding:4px 0;transition:color .15s ease;
    }
    .topbar .nav-right a:hover{ color:#ffffff; }

    /* Button base to match your site’s pill feel */
    .topbar .btn{
      font-family:inherit;font-weight:500;font-size:14px;line-height:1;
      border-radius:8px;padding:6px 12px;cursor:pointer;
    }
    /* Logout: dark pill + blue text (no light bg) */
    .topbar .btn-logout{
      background: #ffb714;
      border:none;
      color: #1c1e1e;
	  transition: background-color 0.3s ease;
	  height: 35px;
    }
    .topbar .btn-logout:hover{
      background: #dd9f24;
	  
      color:#1c1e1e !important; /* lighter blue on hover */
    }

    .logout-form{ display:inline; 
	}
	

.badge-soft{
  display:inline-block;padding:4px 10px;border-radius:10px;
  background:#111827;border:1px solid #243244;color:#e5e7eb;
  font-size:12px;line-height:1;
}

/* --- Schools pages (match Students/Guardians look) --- */
.page-schools h1 {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  margin: 0 0 1rem;
  color: #1e1c1c;
}

.page-schools .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.page-schools label {
  display: block;
  font-size: 0.875rem; /* 14px */
  margin-bottom: 4px;
  opacity: .9;
}

.page-schools input[type="text"],
.page-schools input[type="tel"],
.page-schools input[type="number"],
.page-schools input[type="email"],
.page-schools select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-600, #2f3742);
  background: var(--bg-800, #151a20);
  color: var(--fg-100, #e6e8ea);
  border-radius: 8px;
}

.page-schools input[disabled] {
  opacity: .75;
}

.page-schools .help {
  font-size: 12px;
  opacity: .75;
  margin-top: 4px;
}

.page-schools .actions {
  margin-top: 16px;
}

.page-schools .btn {
  padding: 8px 14px;
  border-radius: 8px;
}

.page-schools .examples {
  margin-top: 24px;
  padding: 12px;
  border: 1px dashed var(--border-600, #2f3742);
  background: var(--bg-850, #10151a);
  border-radius: 10px;
}

.page-schools table {
  width: 100%;
  border-collapse: collapse;
}

.page-schools th,
.page-schools td {
  padding: 10px 8px;
  border-top: 1px solid var(--border-700, #25303a);
}

.page-schools th {
  font-weight: 600;
  opacity: .9;
}

.page-schools a.crumb {
  text-decoration: underline;
}

/* Keep input + Apply on one row, no extra padding/background */
.page-schools .input-and-button{
  display:flex;
  align-items:center;
  gap:10px;
  max-width:520px;
}

/* Ensure input height pairs nicely with the pill button */
.page-schools .input-and-button .input-lg{
  border-radius:10px;
  max-height:35px;
}

/* Mirror header Logout pill exactly (colors from your .topbar rules) */
.page-schools .input-and-button .btn-logout{
  background:#152238;
  border:1px solid #243244;
  color:var(--brand-blue) !important;
  height:38px;
  line-height:38px;
  padding:0 12px;
  border-radius:10px;
}
.page-schools .input-and-button .btn-logout:hover{
  background:#152238;
  color:#93c5fd !important;
}


/* spacing utilities */
.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }

/* layout utilities */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}


/* flex utilities */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}




/* table responsive wrapper */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* page container */
.page {
  max-width: none!important;
 

  
  padding: 20px 20px!important;
}


/* table helpers */
.table th:last-child,
.table td:last-child {
  text-align: right;
  white-space: nowrap;
}

/* table header tidy */
.table thead th {
  font-weight: 600;
  opacity: 0.9;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* row hover */
.table tbody tr:hover {
 background: #ffffff;
}

/* small layout utilities */
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex-1 { flex: 1 1 auto; }


/* flex row + alignment */
.flex { display: flex; }
.items-end { align-items: flex-end; }

/* fixed input width used on Students search */
.w-475 { flex: 0 0 475px; max-width: 475px; }


.w-full { width: 100%; }


/* Guardians Index - extracted styles */

.guardians-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 16px;
}

.guardians-search-form {
    flex: 1 1 auto;
}

.guardians-input-wrapper {
    flex: 0 0 475px;
    max-width: 475px;
}

.guardians-input-lg {
    width: 100%;
}

.guardians-add-button {
    white-space: nowrap;
}

.guardians-bulk-bar {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guardians-checkbox-col {
    width: 24px;
}

.guardians-action-col {
    text-align: right;
    width: 1%;
}


/* Additional styles for Guardian Show page */

.note-small {
    margin-top: 6px;
    font-size: 12px;
}


.inline {
    display: inline;
}




/* Guardian form field styles */


@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #111;
    color: #fff;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
	margin-top: 25px;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
   display: flex;
    gap: 0.75rem;
    align-items: center; 
}

.form-actions-inline {
    margin-top: 25px;
    display: inline;
    gap: 0.5rem;
   display: flex;
    gap: 0.75rem;
    align-items: center;
}

.form-actions-right {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
	  margin-bottom: 1rem; /* adjust this as needed */
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}



.bulk-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 12px;
}




/* Student Views CSS Cleanup */

.header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.flex-form-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 16px;
}

.flex-form-inner {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin: 0;
}

.input-wrapper {
    flex: 0 0 475px;
    max-width: 475px;
}

.flex-grow {
    flex: 1 1 auto;
}

.w-full {
    width: 100%;
}

.action-col {
    text-align: right;
    width: 1%;
}

.right-nowrap {
    text-align: center;
    white-space: nowrap;
}



.mt-3 {
    margin-top: 12px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-0 {
    margin: 0;
}

.max-140 {
    max-width: 140px;
}

.custom-margin {
    margin: 6px 0 0 18px;
}

.error-hint {
    color: #ff8a8a;
    margin-top: 6px;
}

.min-w-320 {
    min-width: 320px;
}



/* Generic form controls (match RR input style) */
input.form-control,
select.form-control,
textarea.form-control{
  width:100%;
  padding:8px 12px;
  border:none;
  border-radius:8px;
  background:#e6e6e6;
  color:#1e1c1c;
  height:38px;
}

textarea.form-control{
  height:auto;
  min-height:120px;
  padding-top:10px;
  padding-bottom:10px;
  resize:vertical;
}

input[type="file"].form-control{
  height:auto;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(78,161,255,.25);
}
input[type="number"].form-control {
    width:100%;padding:8px 12px;border:none;border-radius:8px;background:#e6e6e6;color:#1e1c1c;height:32px;
}

.rr-input-narrow{
  max-width:180px;
}

input[type="number"].form-control::-webkit-inner-spin-button,
input[type="number"].form-control::-webkit-outer-spin-button {
    opacity: 1;           /* ✅ shows arrows again */
    -webkit-appearance: inner-spin-button;
}

input[type="number"].form-control {
    appearance: auto;     /* ✅ make sure arrows work */
}



.guardian-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.guardian-link-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.guardian-link-form select,
.guardian-link-form button {
    height: 32px;
}



.flash {
  background:#131a23; 
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
   width: fit-content;
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  margin: 0 0 14px 0;           /* OUTER SPACE: gap below the banner */
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  border:1px solid #131a23;
  animation: flashFade 4s ease forwards;  /* simple fade, no collapse needed */
}

.flash-ok {
  background-color: #27ae60; /* green */
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
   width: fit-content;
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  margin: 0 0 14px 0;           /* OUTER SPACE: gap below the banner */
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  border:1px solid #27ae60;
  animation: flashFade 4s ease forwards;  /* simple fade, no collapse needed */
}

.flash-warn {
  background-color: #f39c12; /* orange */
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
   width: fit-content;
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  margin: 0 0 14px 0;           /* OUTER SPACE: gap below the banner */
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  border:1px solid #f39c12;
  animation: flashFade 4s ease forwards;  /* simple fade, no collapse needed */
}

/* =========================================================
   Vehicles: form polish (scoped, so it won't affect other pages)
   ========================================================= */

.rr-page-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}

.rr-backlink{
    color:#9ec5ff;
    text-decoration:none;
}
.rr-backlink:hover{
    text-decoration:underline;
}

.rr-panel{
    background: transparent;
    padding: 0;
}

.rr-vehicle-form .form-label{
    margin-bottom:6px;
}

/* 8px spacing between fields (Bootstrap gutters use 0.5rem for g-2) */
.rr-vehicle-form .row{
    --bs-gutter-x: 8px;
    --bs-gutter-y: 8px;
}

.rr-vehicle-form .form-control,
.rr-vehicle-form .form-select{
    width:100%;
    padding:8px 12px;
    border:none!important;
    border-radius:8px;
    background:#e6e6e6;
    color:#1e1c1c;
    height:32px;
}

.rr-vehicle-form textarea.form-control,
.rr-vehicle-form .rr-textarea{
    height:auto;
    min-height:120px;
    padding:10px 12px;
}

.rr-vehicle-form input[type="date"].form-control{
    -webkit-appearance:none;
    appearance:none;
}

/* File input: keep it clean (no big gray pill background) */
.rr-vehicle-form input[type="file"].form-control{
    background: transparent;
    padding: 0;
    height: auto;
}

.rr-readonly{
    background:#e6e6e6;
    border-radius:8px;
    padding:8px 12px;
    min-height:32px;
}

.rr-help{
    font-size:12px;
    opacity:.85;
    margin-top:6px;
}

.rr-form-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:16px;
}

.flash-bad {
  background-color: #c0392b; /* red */
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  width: fit-content;
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  margin: 0 0 14px 0;           /* OUTER SPACE: gap below the banner */
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  border:1px solid #c0392b;
  max-width: 100%;           /* <-- control width here */
  animation: fadeOut 0.5s ease 2.5s forwards;
}

.flash-info {
  background:#131a23;
  color: #ffffff; 
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
   width: fit-content;
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  margin: 0 0 14px 0;           /* OUTER SPACE: gap below the banner */
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  border:1px solid #131a23;
  
}


  
  @keyframes flashFade { 0%{opacity:1} 85%{opacity:1} 100%{opacity:0} }

  /* If multiple flashes might appear, stack them */
.flash + .flash { margin-top: 8px; bottom: auto; }




.dark-input {
  background-color: #1f2937; /* Very dark gray */
  color: #f9fafb; /* Near-white text */
  border: 1px solid #374151; /* Medium dark border */
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  width: 100%;
}

.dark-input:focus {
  outline: none;
  border-color: #3b82f6; /* Blue border on focus */
  box-shadow: 0 0 0 1px #3b82f6;
}

#drop-zone {
  border: 2px dashed #1e1c1c;
  background-color: #ffffff;
  color: #1e1c1c;
}

#drop-zone.dragover {
  border-color: #1e1c1c;
  background-color: #a9b0b8;
  color: #1e1c1c;
}

#upload-btn.hidden {
  display: none;
}



/* --- Layout Adjustments --- */

/* Sidebar should stretch to the very left edge */
.sidebar {
    /* Fixed sidebar sits below the fixed topbar */
    padding: 0;
    width: var(--rr-sidebar-w, 200px);
    position: fixed;
    top: var(--rr-topbar-h, 60px);
    left: 0;
    bottom: 0;
    height: calc(100vh - var(--rr-topbar-h, 60px));
    margin-top: 0;
    background-color: #1E1C1C;
    display: block;
}

/* Sidebar links - make them stack vertically */
.sidebar a {
    display: block;
    width: 100%;
    padding: 8px 15px;
    color: #ffffff;
    text-decoration: none;
	
}

.sidebar a:hover {
    background-color: #ffb714;
}

.sidebar a:active {
  background-color: #ffb714;
  color: #1e1c1c;
  font-weight: bold;
}



/* Main content should fill remaining space beside sidebar */
.main-content {
    /* IMPORTANT: reserve space for fixed sidebar + fixed topbar */
    padding: 20px;
    margin: 0;
    margin-left: var(--rr-sidebar-w, 200px);
    padding-top: calc(var(--rr-topbar-h, 60px) + 20px);
    width: calc(100% - var(--rr-sidebar-w, 200px));
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

/* Top header should stretch full width */
.topbar {
    width: 100%;
    background-color: #1E1C1C;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
	border: none;
	padding-bottom: 10px;
}

/* Right aligned items in topbar */
.topbar-right {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}


.sidebar a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.topbarlogo {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}



/* --- Tabs Styling --- */
.tabs {
  list-style: none;
  padding: 0;
 
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #2c2c2c;
  align-items: flex-end;
}

.tab-link {
  padding: 10px 16px;
  background: #1E1C1C;
  color: #fff;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
}

.tab-link.active {
  background: #ffb714;
  color: #1e1c1c;
  font-weight: bold;
}


.tabs a.tab-link{
  text-decoration:none;
  color:#fff;
  display:inline-block;
}

.tabs a.tab-link.active{
  color:#1e1c1c;
}
.tabs a.tab-link:hover{
  text-decoration:none;
}
.tab-content {
  display: none;
  padding: 20px 0;
  border-top: none;
}

.tab-content.active {
  display: block;
}

.fas {
	color: #e6e6e6;
}

.filter-row-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  margin-bottom: -20px;
}

.dashboard-card {
	background:#ffb714;
	border:none;
	border-radius:12px;
	padding:16px; 
	color:#1e1c1c;
	
}


/* =============================================================
   Topbar layout lock (keeps logo pinned left + vertically centered)

   You had older rules that used:
     .topbar .brand { right:875px; transform:translateX(-50%); ... }
   which causes the logo/brand to drift between pages and on resize.

   This block intentionally overrides those older rules.
   ============================================================= */

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-left:10px;
  padding-right:16px;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:0;
  height:auto;
  margin:0;
  max-width:none;
  position:static;
}

.topbar .brand{
  position:static;
  right:auto;
  top:auto;
  transform:none;
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
}

.topbarlogo{
  display:block;
  width:auto;
}

.topbar .nav-right{
  position:static;
  right:auto;
  top:auto;
  transform:none;
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:auto;
}

.dashboard-card:hover {
	background:#ffb714;
	border:none;
	border-radius:12px;
	padding:16px; 
	color:#1e1c1c;
	filter:brightness(1.05); 
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.draggable {
  background: #f9f9f9;
  padding: 10px 12px;
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.draggable[style*="opacity: 0.5"] {
  background: #e0e0e0;
}
.row {
  display: flex;
  align-items: center;
}



/* Estimate badge pill look */
.est-wrap {
  margin-top: 6px;        /* spacing under the stops list */
  margin-bottom: 8px;      /* a little air before the map */
}

.est-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf4ff;     /* light blue */
  color: #0b57a3;          /* readable blue */
  font-size: 0.925rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
margin-top: 6px; /* spacing under the stops list */
}

.est-badge .dot {
  width: 8px;
  height: 8px;
  background: #2b7cff;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(43,124,255,.15);
}

.est-badge .pill .label {
  font-weight: 600;
  opacity: .85;
  margin-right: 4px;
}

.est-badge .pill.muted {
  opacity: .85;
  font-weight: 500;
}

.est-badge .sep {
  opacity: .35;
  margin: 0 2px;
}

.est-badge.is-loading { opacity: .65; }


@media (max-width: 720px) {
  .est-badge { gap: 6px; font-size: .9rem; }
  .est-badge .label { display: none; }  /* keep it compact on phones */
}


.flash { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; padding: 8px 12px; border-radius: 6px; color: #fff; z-index: 3000; }
.flash-good { background: #28a745; }
.flash-bad { background: #dc3545; }

/* ---- Lock out the sidebar space so content never sits underneath ---- */
:root {
  /* Adjust this to match your sidebar’s real width */
  --rr-sidebar-w: 220px;
  --rr-topbar-h: 56px; /* tweak if your top bar is taller/shorter */
}

/* If your sidebar is fixed, keep it above content */
.sidebar, .admin-sidebar, .nav-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  width: var(--rr-sidebar-w);
}

/* Reserve horizontal space for the main area */
.main-content,
.main-content-full,
.content,
.container,
#app main {
  margin-left: var(--rr-sidebar-w) !important;
  /* If your topbar is fixed, also nudge down to avoid overlap */
  padding-top: var(--rr-topbar-h);
  box-sizing: border-box;
  min-width: 0; /* prevents overflow when using flex/grid shells */
}

/* Make sure our tabs & cards respect the new flow */
#routeEditRoot {
  display: block;
  max-width: 100%;
}

/* Responsive: on small screens let content span full width and stack the sidebar */
@media (max-width: 992px) {
  .sidebar, .admin-sidebar, .nav-sidebar {
    position: fixed;           /* or change to position: static if you collapse it */
    width: 0;                  /* hide sidebar strip if you have a hamburger menu */
    overflow: hidden;
  }
  .main-content,
  .main-content-full,
  .content,
  .container,
  #app main {
    margin-left: 0 !important;
    padding-top: var(--rr-topbar-h);
  }
}


/* form spacing + align */
.rr-form .row.g-3 { row-gap: 12px; }
.rr-form .btn-align { margin-top: 28px; }

/* hide pins list no matter what theme does */
#mapPins { display: none !important; }

/* stops list UX */
#attachedList li.draggable { cursor: move; }
#attachedList li.is-locked { opacity: .7; cursor: not-allowed; }

/* tiny toast */
#rrToast {
  position: fixed; right: 16px; bottom: 16px; z-index: 2000;
  background:#222; color:#fff; padding:10px 14px; border-radius: 8px; display:none;
}


/* Form spacing + align */
.rr-form .row.g-3 { row-gap: 12px; }
.rr-form .btn-align { margin-top: 28px; }

/* Map pins list must stay hidden (prevents random dots) */
#mapPins { display: none !important; }

/* DnD affordance */
#attachedList li.draggable { cursor: grab; }
#attachedList li.is-locked { cursor: default; } /* no opacity change, stays aligned */




/* layout + alignment */
.rr-stop { border-radius:8px; background:#fff; }
.rr-left{ display:flex; align-items:center; gap:10px; }

/* number pill now dark blue */
.rr-num{ display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:999px; background:#0d6efd; color:#fff; font-weight:700; font-size:13px; }

/* drag cursor */
.rr-stop.draggable{ cursor:grab!important } .rr-stop.draggable:active{ cursor:grabbing } .rr-stop.is-locked{ cursor:default }

/* ensure the right-side 'actions' column has stable width */
.rr-actions .btn { width: 84px; } /* matches 'Remove' btn width; adjust if your theme differs */

/*{{-- tidy CSS (inline or move to your stylesheet) --}}

  #attachedList .rr-stop { border-radius: 8px; }
  #attachedList .draggable { cursor: grab; }
  #attachedList .draggable:active { cursor: grabbing; }
  #attachedList .is-locked { opacity: .75; }
  #attachedList .rr-num{
    display:inline-flex; align-items:center; justify-content:center;
    min-width:28px; height:28px; padding:0 8px;
    border-radius:999px; background:#0d3b7a; color:#fff; font-weight:700;
    font-size:12px; line-height:1;
  }
  #attachedList .rr-actions{ min-width: 92px; text-align:right; }
*/

/* layout + consistent alignment */
#attachedList .rr-stop{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
#attachedList .rr-left{
  display:flex; align-items:center; gap:12px;
}

/* number pill */
#attachedList .rr-num{
  width:28px; height:28px; border-radius:999px;
  background:#0d47a1; color:#fff; font-weight:600;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:.9rem;
}

/* keep the actions column aligned even when no button is shown */
#attachedList .rr-actions{ width: 88px; display:flex; justify-content:flex-end; } /* ~btn width */
#attachedList .rr-actions-placeholder{ display:inline-block; width: 82px; height: 31px; }

/* hubs are locked (you already have the class) */
#attachedList li.is-locked{ cursor: default; opacity:.98; background:#f8fafc; }
/* nice hand cursor on draggable rows */
#attachedList li.draggable{ cursor: grab; }
#attachedList li.draggable:active{ cursor: grabbing; }


.table thead th { white-space: nowrap; }
.card .table { margin-bottom: 0; }


  .tall-multiselect {
    min-height: 200px; /* forces a taller box */
    resize: vertical;  /* let you drag to grow/shrink */
    overflow-y: auto;
  }
  
  .rr-stop.is-locked { user-select: none; -webkit-user-drag: none; }


.seg { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid #ddd; border-radius: 999px; }
.seg-btn { padding: 6px 12px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; }
.seg-btn[aria-selected="true"] { background: #f1f5f9; font-weight: 600; }

.subnav { position: sticky; top: 56px; z-index: 20; display: flex; gap: 14px; padding: 8px 0; background: rgba(255,255,255,0.7); backdrop-filter: blur(6px); border-bottom: 1px solid #eee; }
.subnav a { text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.subnav a:focus, .subnav a:hover { background: #f3f4f6; }
section { scroll-margin-top: 88px; }

.sect-title { font-weight: 700; }
.sect-tools { position: sticky; top: 104px; display:flex; gap:8px; align-items:center; padding:8px 0; background: rgba(255,255,255,0.8); backdrop-filter: blur(4px); z-index: 10; }


.save-status { font-size: 12px; opacity: 0.8; margin-left: 8px; }

#attachedList .rr-stop { display:flex; align-items:center; justify-content:space-between; gap: 10px; padding: 8px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 6px; }
#attachedList .badge { font-size: 11px; padding: 3px 6px; border-radius: 999px; border: none }
#attachedList .is-locked { opacity: 0.6; }
.row-actions { display: flex; gap: 6px; }

@media (max-width: 1024px) {
  #map { height: 360px; }
}
#routeMap { min-height: 420px; background: #f3f6fb; }

 #studentResults .rr-panel { background:#f8fafc; border:1px solid #e5e7eb; border-radius:8px; padding:10px; }
#studentResults .rr-editor{background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;}
 #studentVariant, #studentMode, #studentOtherStopWrap { display:none !important; }

@media print{
  .text-slate-600, .text-slate-400 { color: #000 !important; }
}


 .rr-stu-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width: 1.6rem;
    padding: 0 .5rem;
    height: 1.4rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--bs-primary, #27ae60); /* match your .btn-primary (green), else fallback to Bootstrap success-ish */
    box-shadow: 0 0 0 1px rgba(0,0,0,.05) inset;
  }




  
/* MapLibre traffic/incident buttons (use MapLibre defaults; no colors) */
.maplibregl-ctrl-group .rr-ctrl-btn svg {
  width: 18px;
  height: 18px;

}
  /* Use MapLibre's control button sizing & centering */
  .maplibregl-ctrl-group .rr-ctrl-btn {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    padding: 0; border: 0;  background: #fff; cursor: pointer;
    line-height: 0;              /* kill baseline weirdness */
  }
  .maplibregl-ctrl-group .rr-ctrl-btn svg {
    width: 18px; height: 18px; display: block; margin: 0; pointer-events: none;
  }
  .maplibregl-ctrl-group .rr-ctrl-btn.is-off { opacity: .55; }



  /* Make the control group match MapLibre rounding and clip inner corners */
  .maplibregl-ctrl-group.rr-traffic-inc {
    border-radius: 4px;
    overflow: hidden; /* ensures inner corners are rounded like Geolocate */
  }

  /* Center icons perfectly */
  .maplibregl-ctrl-group.rr-traffic-inc .rr-ctrl-btn {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    padding: 0; border: 0; background: #fff; cursor: pointer;
    line-height: 0;
  }
  .maplibregl-ctrl-group.rr-traffic-inc .rr-ctrl-btn svg {
    width: 18px; height: 18px; display: block; margin: 0; pointer-events: none;
  }
  .maplibregl-ctrl-group.rr-traffic-inc .rr-ctrl-btn.is-off { opacity: .55; }

  /* Separator between the two buttons (like built-in groups) */
  .maplibregl-ctrl-group.rr-traffic-inc .rr-ctrl-btn + .rr-ctrl-btn { border-left: 1px solid #ddd; }


  

  .modal-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
  }
  
  /* Modal container (backdrop) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
 
  z-index: 1055;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.5); /* Backdrop */
  display: flex;
  justify-content: center;
  align-items: center; /* ⬅ centers vertically */
width: 100%;
  height: 100%;
}

/* Show modal */
.modal.show {
  display: flex;
}

/* Modal dialog (centers it) */
.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 800px; /* Adjust as needed */
}

/* Modal content */
.modal-content {
  background-color: #fff;
 position: relative;
 top: 330px;
left: 200px;
 
  z-index: 1055;

  border-radius: 0.3rem;
  max-height: 90vh;
  width: 80%;
  overflow-y: auto;
  border-radius: 6px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 3px 9px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Modal header/footer optional styling */
.modal-header,
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}



  
  
  #openAttachStudentsModal {
  position: relative; /* Ensures it's not hidden by layout */
  color: #fff; /* or whatever your visible text color is */
  z-index: 1; /* put it above any overlays */
}

.badge-primary {
    background-color: #007bff;
    color: white;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 0.25rem;
}

  /* Make name column wider */
  #attachModal table td:nth-child(1) {
    width: 18%;
  }

  /* School column unchanged (optional) */
  #attachModal table td:nth-child(2) {
    width: 18%;
  }

  /* Grade column unchanged (optional) */
  #attachModal table td:nth-child(3) {
    width: 8%;
  }

  /* Attach via dropdown narrower */
  #attachModal table td:nth-child(4) select.attach-mode-select {
    width: 175px;
  }

  /* Address and Stop dropdowns a bit wider */
  #attachModal table td:nth-child(5) select,
  #attachModal table td:nth-child(6) select {
    min-width: 250px;
  }

  /* Optional: primary badge styling */
  .primary-badge {
    background-color: #007bff;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
  }

.btn-pill {
  border-radius: 999px !important;
  padding: 0.25rem 0.6rem;
}

.btn-circle {
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  text-align: center;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* --- Force the first column + checkboxes to be visible --- */
.table th.select-col,
.table td.select-col {
  display: table-cell !important;
  width: 28px !important;
  padding: 0 6px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

#selectAll,
.table td.select-col input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
}

/* Force flash to bottom-right when shown inside the Assignments tab only */
#assignments .flash,
#assignments .flash-ok,
#assignments .flash-warn,
#assignments .flash-bad {
  left: auto !important;
  right: 16px !important;
  transform: none !important;
  bottom: 16px !important;
}


.inline-delete-form {
  display: inline-block;
  margin-left: .5rem;   /* space between Edit and Delete */
}


/* ---- Media Library / Manager ---- */
.media-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:12px;
}

.media-card{
  position:relative;
  border:1px solid #ddd;
  border-radius:8px;
  padding:8px;
  background:#ffffff;
  display:flex;
  flex-direction:column;
}

.media-thumb{
  position:relative;
  width:100%;
  padding-top:75%; /* 4:3 aspect ratio */
  overflow:hidden;
  border-radius:6px;
  margin-bottom:6px;
  background:#f4f4f4;
}

.media-thumb img{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.media-meta{
  font-size:12px;
}

.media-title{
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.media-title a{
  color:inherit;
  text-decoration:none;
}

.media-title a:hover{
  text-decoration:underline;
}

.media-sub{
  margin-top:2px;
  color:var(--muted);
}

/* Keep the Edit button aligned at the bottom of every media card */
.media-actions{
  margin-top:auto;
  padding-top:8px;
}

.media-actions .btn-xs{
  padding:2px 8px;
  font-size:11px;
}

/* Checkbox in top-left of each media card */
.media-select-checkbox{
  position:absolute;
  top:4px;
  left:4px;
  background:rgba(255,255,255,0.95);
  border-radius:4px;
  padding:2px 4px;
  z-index:5;
}

.media-select-checkbox input{
  margin:0;
}


/* Suggested Routes modal tweaks */
#suggest-routes-modal table td,
#suggest-routes-modal table th {
  white-space: normal !important;
}

.suggest-warning-cell {
  white-space: normal !important;
  word-wrap: break-word;
  word-break: break-word;
}

/* Optional: don't force horizontal scroll on this table */
.suggest-routes-table-wrapper {
  overflow-x: visible !important;
}

/* Dispatcher Settings – Calendar: highlight "today" */
.calendar-day-today {
    background-color: #eaeaea;   
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.05);
}


/* --------------------------------------------------------------------------
   Marketing site (public pages)
   -------------------------------------------------------------------------- */

.rr-mkt-body{
  background: #ffffff;
  color: #111827;
  margin: 0;
}

.rr-mkt-container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.rr-mkt-header{
  position: sticky;
  top: 0;
  z-index: 2000;
  background: #000000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.rr-mkt-header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.rr-mkt-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
}

.rr-mkt-brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,24,39,0.06);
}

.rr-mkt-brand-text{
  font-size: 18px;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.rr-mkt-nav{
  display: none;
  gap: 14px;
  align-items: center;
}

.rr-mkt-navlink{
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.rr-mkt-navlink:hover{
  color: #ffffff;
  text-decoration: underline;
}

.rr-mkt-cta{
  display: flex;
  align-items: center;
  gap: 10px;
}

.rr-mkt-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.rr-mkt-btn-primary{
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.rr-mkt-btn-primary:hover{
  filter: brightness(1.05);
}

.rr-mkt-btn-yellow{
background: #ffb714;
  color: #000000;
}

.rr-mkt-btn-yellow:hover{
  filter: brightness(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

 


.rr-mkt-btn-ghost{
  background: rgba(17,24,39,0.04);
  color: #111827;
}

.rr-mkt-btn-ghost:hover{
  background: rgba(17,24,39,0.07);
}

.rr-mkt-hero{
  padding: 56px 0 34px;
}

.rr-mkt-hero-inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.rr-mkt-h1{
  font-size: 40px;
  line-height: 1.08;
  margin: 0 0 10px;
  letter-spacing: -0.6px;
}

.rr-mkt-tagline{
  font-size: 14px;
  font-weight: 800;
  color: rgba(17,24,39,0.70);
  margin: -4px 0 14px;
  letter-spacing: 0.2px;
}

.rr-mkt-h2{
  font-size: 24px;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

.rr-mkt-h3{
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.1px;
}

.rr-mkt-lead{
  font-size: 16px;
  line-height: 1.6;
  color: rgba(17,24,39,0.85);
  margin: 0 0 18px;
}

.rr-mkt-text{
  font-size: 14px;
  line-height: 1.6;
  color: rgba(17,24,39,0.85);
  margin: 0 0 12px;
}

.rr-mkt-hero-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.rr-mkt-hero-note{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(17,24,39,0.68);
}

.rr-mkt-section{
  padding: 42px 0;
}

.rr-mkt-section-alt{
  background: rgba(17,24,39,0.03);
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.rr-mkt-card{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

.rr-mkt-card-kicker{
  font-size: 12px;
  color: rgba(17,24,39,0.60);
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.rr-mkt-card-title{
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 15px;
}

.rr-mkt-bullets{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.rr-mkt-bullets li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(17,24,39,0.86);
  font-size: 14px;
}

.rr-mkt-bullets i{
  margin-top: 3px;
  color: rgba(17,24,39,0.55);
}

.rr-mkt-grid2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.rr-mkt-grid3{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 6px;
}

.rr-mkt-kicker{
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(17,24,39,0.60);
  margin-bottom: 8px;
}

.rr-mkt-callout{
  margin-top: 6px;
  border-radius: 16px;
  border: 1px dashed rgba(0,0,0,0.18);
  padding: 14px 16px;
  background: rgba(255,255,255,0.7);
}

.rr-mkt-callout-title{
  font-weight: 900;
  margin-bottom: 4px;
}

.rr-mkt-checklist{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.rr-mkt-checklist li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(17,24,39,0.86);
}

.rr-mkt-checklist i{
  margin-top: 3px;
  color: rgba(17,24,39,0.55);
}

.rr-mkt-center{
  text-align: center;
}

.rr-mkt-footer{
  padding: 34px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.rr-mkt-footer-inner{
  display: grid;
  gap: 18px;
}

.rr-mkt-footer-cols{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.rr-mkt-footer-title{
  font-weight: 900;
  margin-bottom: 8px;
}

.rr-mkt-footer-muted{
  color: rgba(17,24,39,0.65);
  font-size: 13px;
}

.rr-mkt-footer-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.rr-mkt-footer-list a{
  color: rgba(17,24,39,0.78);
  text-decoration: none;
  font-size: 13px;
}

.rr-mkt-footer-list a:hover{
  text-decoration: underline;
  color: rgba(17,24,39,1);
}

.rr-mkt-muted-link{
  pointer-events: none;
  opacity: 0.7;
}

.rr-mkt-footer-bottom{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rr-mkt-page{
  padding: 44px 0;
}

.rr-mkt-prose{
  max-width: 820px;
}

.rr-mkt-hr{
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 18px 0;
}

.rr-mkt-alert{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(17,24,39,0.04);
  color: rgba(17,24,39,0.9);
  font-size: 13px;
}

.rr-mkt-form{
  display: grid;
  gap: 12px;
}

.rr-mkt-label{
  font-weight: 800;
  font-size: 13px;
  color: rgba(17,24,39,0.85);
  display: grid;
  gap: 6px;
}

.rr-mkt-input,
.rr-mkt-textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.rr-mkt-input:focus,
.rr-mkt-textarea:focus{
  border-color: rgba(17,24,39,0.40);
  box-shadow: 0 0 0 3px rgba(17,24,39,0.10);
}

.rr-mkt-error{
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.rr-mkt-honeypot{
  position: absolute;
  left: -9999px;
  height: 1px;
  width: 1px;
  opacity: 0;
}

.rr-mkt-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(17,24,39,0.04);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
}

@media (min-width: 840px){
  .rr-mkt-nav{ display: flex; }
  .rr-mkt-hero-inner{ grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .rr-mkt-grid2{ grid-template-columns: 1fr 1fr; }
  .rr-mkt-grid3{ grid-template-columns: repeat(3, 1fr); }
  .rr-mkt-footer-cols{ grid-template-columns: 2fr 1fr 1fr; }
  .rr-mkt-h1{ font-size: 46px; }
}




/* Marketing: links & callouts */
.rr-mkt-link{color: var(--rr-blue, #2563eb); text-decoration: none; font-weight: 600;}
.rr-mkt-link:hover{text-decoration: underline;}
.rr-mkt-callout{border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 10px 20px rgba(0,0,0,0.06);} 


/* =========================================================
   Rider Codes (Student Show + Rider ID Card)
   ========================================================= */

/* Student Show (General tab): keep the code small + out of the way */
.rr-student-general-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.rr-student-general-photo img{
  max-width:160px;
  border-radius:8px;
  display:block;
}

.rr-student-general-code{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  min-width:120px;
}

.rr-rider-code-mini{
  display:inline-block;
  padding:6px 8px;
  border:1px solid rgba(0,0,0,0.10);
  border-radius:10px;
  background:#fff;
}

.rr-rider-code-mini canvas{
  width:96px !important;
  height:96px !important;
}

.rr-rider-code-mini svg{
  width:160px;
  height:44px;
}

/* Print Rider ID Card (ID-card sized, template-style) */
.rr-pass-sheet{display:flex;justify-content:flex-start;}

/* ID-1 / CR80 size: 3.375in × 2.125in (standard ID card) */
.rr-pass-card--id{
  width:3.375in;
  height:2.125in;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 25px rgba(0,0,0,0.18);
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.14);
}

.rr-pass-top--tight{
  position:relative;
  height:0.46in; /* tighter header to fit ID-1 height */
  background:#151515;
}

/* Thin yellow rule under the header */
.rr-pass-top--tight:after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height:4px;
  background:#ffb714;
}

.rr-pass-title--tight{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:900;
  letter-spacing:0.6px;
  font-size:0.22in;
  text-transform:uppercase;
}

.rr-pass-title--tight .rr-pass-title-left{color:#ffffff;}
.rr-pass-title--tight .rr-pass-title-right{color:#ffb714;}

.rr-pass-body--tight{
  padding:0.10in 0.12in 0.10in;
}

.rr-pass-grid--id{
  display:grid;
  grid-template-columns: 1.12in 1fr;
  gap:0.10in;
}

.rr-pass-photo--tight{
  position:relative;
  border:2px solid #1e1c1c;
  border-radius:10px;
  overflow:hidden;
  background:#eee;
  height:0.92in;
}

.rr-pass-photo--tight img{width:100%;height:100%;object-fit:cover;display:block;}

.rr-pass-no-photo{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#666;
  font-weight:700;
  font-size:0.105in;
}

.rr-pass-pill{
  position:absolute;
  top:6px;
  right:6px;
  padding:4px 7px;
  border-radius:999px;
  font-weight:900;
  font-size:0.105in;
  letter-spacing:0.3px;
  border:2px solid #1e1c1c;
  background:#ffb714;
  color:#111;
  text-transform:uppercase;
}

.rr-pass-namebar--tight{
  margin-top:0.04in;
  background:#ffb714;
  color:#111;
  font-weight:900;
  text-transform:uppercase;
  padding:0.045in 0.06in;
  border-radius:10px;
  border:2px solid #1e1c1c;
  text-align:left;
  font-size:0.125in;
  line-height:1.05;
}

.rr-pass-left-meta--tight{
  margin-top:0.07in;
  font-size:0.115in;
}

.rr-pass-left-meta--tight .rr-pass-meta-row{
  display:flex;
  gap:6px;
  font-weight:900;
  text-transform:uppercase;
  line-height:1.1;
}

.rr-pass-left-meta--tight .rr-pass-meta-row span{
  font-weight:700;
  color:#333;
  text-transform:none;
}

.rr-pass-left-meta--tight .rr-pass-meta-row + .rr-pass-meta-row{margin-top:0.03in;}

.rr-pass-school--tight{
  font-weight:900;
  text-transform:uppercase;
  font-size:0.135in;
  letter-spacing:0.3px;
  color:#1e1c1c;
  line-height:1.05;
  margin-top:0in;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rr-pass-code--tight{margin-top:0.03in;}

.rr-pass-code-wrap--tight{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:0.62in;
}

.rr-pass-code-wrap--tight canvas{
  width:0.70in !important;
  height:0.70in !important;
}

.rr-pass-code-wrap--tight svg{
  width:1.55in;
  height:0.40in;
}

.rr-pass-code-text{
  margin-top:0.03in;
  text-align:center;
  font-weight:900;
  letter-spacing:0.045in;
  font-size:0.115in;
}

.rr-pass-needs--right{margin-top:0.03in;}

.rr-pass-needs-header--tight{
  font-weight:800;
  text-transform:uppercase;
  font-size:0.105in;
  letter-spacing:0.04in;
  color:#1e1c1c;
  background:none;
  padding:none;
  border-radius:9px;
  display:inline-block;
}

.rr-pass-needs-list--tight{
  margin:0.04in 0 0;
  padding:0;
  list-style:none;
}

.rr-pass-needs-item--tight{
  display:flex;
  align-items:center;
  gap:0.06in;
  padding:0.025in 0;
  border-bottom:1px solid rgba(0,0,0,0.10);
  font-weight:900;
  text-transform:uppercase;
  font-size:0.105in;
  line-height:1.1;
}

.rr-pass-needs-item--tight:last-child{border-bottom:none;}

.rr-pass-need-icon{
  width:0.18in;
  height:0.18in;
  border-radius:7px;
  background:#ffb714;
  border:2px solid #1e1c1c;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#111;
  flex:0 0 0.18in;
  font-size:0.105in;
}

.rr-pass-need-label{
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0.02in;
  font-size:0.11in;
  line-height:1.05;
}

.rr-pass-muted--tight{
  font-size:0.11in;
  color:#555;
  margin-top:0.03in;
}

.rr-pass-muted--tight{
  margin-top:0.03in;
  color:#666;
  font-weight:700;
  font-size:0.105in;
  text-transform:none;
}

/* Print settings: force true ID-card dimensions */
@media print {
  @page { size: 3.375in 2.125in; margin: 0; }
  .no-print{display:none !important;}
  .page.rr-pass-page{padding:0 !important; margin:0 !important;}
  .rr-pass-card--id{box-shadow:none;}
}
/* Rider ID Card (ID-1) tighter v2: prevent cut-off */
.rr-pass-top--tight{height:0.46in;}
.rr-pass-top--tight:after{height:4px;}
.rr-pass-title--tight{font-size:0.22in; letter-spacing:0.6px;}
.rr-pass-body--tight{padding:0.10in 0.12in 0.10in;}
.rr-pass-grid--id{grid-template-columns:1.12in 1fr; gap:0.10in;}
.rr-pass-photo--tight{height:0.92in;}
.rr-pass-pill{background:#c0392b; color:#fff; font-size:0.105in; border-color:#1e1c1c;}
.rr-pass-namebar--tight{margin-top:0.04in; padding:0.045in 0.06in; font-size:0.125in; line-height:1.05;}
.rr-pass-left-meta--tight{margin-top:0.04in; font-size:0.115in;}
.rr-pass-left-meta--tight .rr-pass-meta-row + .rr-pass-meta-row{margin-top:0.03in;}
.rr-pass-school--tight{margin-top:0in; font-size:0.135in; letter-spacing:0.3px; line-height:1.05;}
.rr-pass-code--tight{margin-top:0.05in;}
.rr-pass-code-wrap--tight{min-height:0.62in;}
.rr-pass-code-wrap--tight canvas{width:0.70in !important; height:0.70in !important;}
.rr-pass-code-wrap--tight svg{width:1.55in; height:0.40in;}
.rr-pass-code-text{font-size:0.11in; letter-spacing:0.045in;}
.rr-pass-needs--right{margin-top:0.05in;}
.rr-pass-needs-header--tight{font-size:0.105in; padding:0.03in 0.05in;}
.rr-pass-needs-list--tight{margin:0.04in 0 0;}
.rr-pass-needs-item--tight{padding:0.025in 0;}
.rr-pass-need-icon{width:0.18in; height:0.18in; flex:0 0 0.18in; font-size:0.105in;}
.rr-pass-need-label{font-weight:900; text-transform:uppercase; letter-spacing:0.02in; font-size:0.11in; line-height:1.05;}
.rr-pass-muted--tight{font-size:0.11in; color:#555; margin-top:0.03in;}

/* --- Rider ID Card: final tighten (grade/gender next to code, wrap needs icons) --- */
.rr-pass-right-top{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;}
.rr-pass-right-meta{flex:1 1 auto;min-width:0;}
.rr-pass-right-meta-rows{margin-top:2px;}
.rr-pass-meta-row--tight{font-size:9px;line-height:1.1;margin-top:1px;}
.rr-pass-code--right{margin-left:auto;}
.rr-pass-code-wrap--tight{display:flex;justify-content:flex-end;align-items:flex-start;}

/* Needs as compact pills that can wrap to multiple rows if needed */
.rr-pass-needs-list--wrap{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:4px 0 0;padding:0;}
.rr-pass-needs-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border-radius:999px;border:1px solid #ddd;background:#fff;font-size:9px;line-height:1;white-space:nowrap;}
.rr-pass-needs-pill i{font-size:10px;}

/* SPED pill should be red (match existing SPED styling) */
.rr-pass-pill--sped{background:#c0392b !important;color:#fff !important;border-color:#8e1e16 !important;}

/* =========================================================
   Rider ID Card — final tighten (QR offset + remove borders)
   Safe overrides only (does not modify Blade)
   ========================================================= */

/* Keep the top-right area from pushing the QR flush against card edge */
.rr-pass-right-top{
  justify-content: flex-start !important;
  gap: 8px !important;
}

/* This class was previously pushing the code too far right */
.rr-pass-code--right{
  margin-left: -100px !important;   /* sits just to the right of Grade/Gender column */
  margin-right: 0 !important;
  margin-top: 15px !important;
}

/* Guarantee enough room for the 72x72 QR canvas so it doesn't clip */
.rr-pass-code-wrap--tight{
  width: 76px !important;
  min-width: 76px !important;
  overflow: visible !important;
}

/* If your code wrapper has padding, remove it */
.rr-pass-code--tight{
  padding: 0 !important;
}

/* Remove borders around the photo box and the yellow name bar */
.rr-pass-photo--tight{
  border: none !important;
  box-shadow: none !important;
}

.rr-pass-namebar--tight{
  border: none !important;
  box-shadow: none !important;
}

/* SPED pill: smaller and tucked into true top-right corner */
.rr-pass-pill--sped{
  top: 4px !important;
  right: 4px !important;
  left: auto !important;
  font-size: 10px !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  line-height: 1.1 !important;
}



/* Inbox badge (topbar) */
.rr-inbox-badge{
  position:absolute;
  top:-6px;
  right:-10px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#dc2626;
  color:#fff;
  font-size:11px;
  line-height:18px;
  text-align:center;
  font-weight:700;
}



/* Overlay + shell */
.rr-inbox-overlay{
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  padding: 24px;
}
.rr-inbox-shell{
  width: min(92vw, 1200px);
  height: min(78vh, 900px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}
.rr-inbox-topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}
.rr-inbox-title{
  font-weight: 700;
  display:flex;
  align-items:center;
  gap:10px;
}
.rr-inbox-close{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.rr-inbox-close:hover{ background:#f0f0f0; }

.rr-inbox-body{
  display:flex;
  min-height: 0;
  flex: 1;
}
.rr-inbox-sidebar{
  width: 220px;
  border-right: 1px solid #e5e5e5;
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.rr-compose-btn{
  width: fit-content;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  margin-bottom: 10px; /* extra space requested */
}
.rr-folder-list{ display:flex; flex-direction:column; gap:8px; }
.rr-folder{
  border: none;
  background: transparent;
  text-align:left;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.rr-folder:hover{ background:#f2f2f2; color:#1e1c1c; }
.rr-folder-active{ background:#1e1c1c; color:#ffffff; }
.rr-folder-disabled{ opacity: 0.45; cursor: not-allowed; }

.rr-inbox-pane{
  flex:1;
  display:flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.rr-inbox-pane-toolbar{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid #e5e5e5;
}

#rrInboxListView,
#rrInboxThreadView{
  display:flex;
  flex-direction:column;
  flex: 1;
  min-height: 0;
}

.rr-inbox-search{ max-width: 360px; }
.rr-inbox-rolefilter{ width: 170px; max-width: 170px; }
.rr-inbox-actions{ margin-left:auto; display:flex; gap:8px; flex-wrap: wrap; }
.rr-inbox-refresh{ height: 36px; }

.rr-inbox-list-head{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #efefef;
}
.rr-inbox-list-title{ font-weight: 700; }
.rr-inbox-list-meta{ margin-left:auto; color:#666; font-size: 12px; }
.rr-selectall{ display:flex; align-items:center; gap:6px; cursor:pointer; user-select:none; }
.rr-selectall input{ width: 16px; height: 16px; }

.rr-thread-list{
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.rr-thread-row{
  display:flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.rr-thread-row:hover{ background:#f7f7f7; }
.rr-thread-row-selected{ background:#eef3ff; }
.rr-thread-check{
  display:flex;
  align-items:center;
  padding-top: 3px;
}
.rr-thread-check input{ width: 16px; height: 16px; }
.rr-thread-main{ flex: 1; min-width:0; }
.rr-thread-subject{
  font-weight: 700;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.rr-thread-from{
  color:#555;
  font-size: 12px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.rr-thread-preview{
  color:#777;
  font-size: 12px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.rr-thread-right{
  width: 90px;
  text-align:right;
  display:flex;
  flex-direction: column;
  align-items:flex-end;
  gap: 6px;
  padding-top: 2px;
}
.rr-thread-time{ color:#666; font-size:12px; }
.rr-unread-dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background:#d93025;
  display:none;
}
.rr-unread-dot.on{ display:block; }

.rr-inbox-list-footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #efefef;
}
.rr-loadmore-hint{
  color:#666;
  font-size: 12px;
}

.rr-thread-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #e5e5e5;
}
.rr-backlink{ text-decoration:none; }
.rr-thread-head-right{ display:flex; gap:8px; flex-wrap: wrap; }
.rr-thread-meta{
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  color:#555;
  font-size: 12px;
}
.rr-messages{
  flex:1;
  overflow:auto;
  padding: 12px;
  background:#fafafa;
}
.rr-msg{
  background:#fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}
.rr-msg-top{
  display:flex;
  justify-content: space-between;
  color:#666;
  font-size: 12px;
  margin-bottom: 6px;
}
.rr-msg-body{ white-space: pre-wrap; }

/* Attachments (messages) */
.rr-msg-atts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.rr-msg-att{ display:flex; align-items:center; gap:8px; padding:8px 10px; background:#f3f4f6; border-radius:10px; text-decoration:none; color:#111; max-width:320px; }
.rr-msg-att:hover{ background:#e9eaee; }
.rr-msg-att__icon{ font-size:16px; }
.rr-msg-att__label{ font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rr-msg-att--img{ padding:6px; }
.rr-msg-att--img img{ display:block; width:120px; height:auto; border-radius:8px; }
.rr-msg-att--img .rr-msg-att__label{ max-width:120px; }

/* Attachments (reply composer) */
.rr-reply-attach-list{ margin-top:8px; display:flex; flex-wrap:wrap; gap:8px; }
.rr-attach-chip{ position:relative; padding:8px 28px 8px 10px; background:#f3f4f6; border-radius:10px; max-width:520px; }
.rr-attach-chip__name{ font-weight:600; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:480px; }
.rr-attach-chip__meta{ font-size:11px; color:#666; }
.rr-attach-chip__x{ position:absolute; right:6px; top:6px; border:0; background:transparent; font-size:16px; line-height:1; cursor:pointer; color:#666; }
.rr-attach-chip__x:hover{ color:#111; }

.rr-reply-wrap{
  display:flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #e5e5e5;
  background:#fff;
}
.rr-reply-main{ flex:1; min-width:0; }
.rr-reply-input{ resize: vertical; min-height: 96px; }
.rr-reply-actions{
  display:flex;
  flex-direction:column;
  gap: 6px;
  justify-content:flex-start;
  align-items:flex-end;
}

/* Make buttons slimmer + tighter (match content, not big blocks) */
.rr-reply-send,
.rr-reply-attach{
  height: 44px;
  width: auto;
  min-width: 96px;
  padding: 8px 12px;
  white-space: nowrap;
}
.rr-reply-attach-list{ margin-top: 8px; }
.rr-attach-chip{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; background:#f3f4f6; border-radius:10px; margin-bottom:6px; }
.rr-attach-chip__name{ font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 520px; }
.rr-attach-chip__meta{ font-size:12px; color:#777; }
.rr-attach-links{ margin-top: 8px; display:flex; flex-wrap:wrap; gap:8px; }
.rr-attach-link{ display:inline-flex; align-items:center; gap:6px; padding:6px 8px; background:#f3f4f6; border-radius:10px; font-size:12px; }
.rr-attach-thumb{ width: 44px; height: 44px; object-fit:cover; border-radius:8px; border:1px solid #e5e5e5; }

.rr-inbox-badge{
  display:inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 700;
  background:#d93025;
  color:#fff;
}


.rr-textarea{
  min-height: 140px; /* or height: 140px; */
  width: 690px;
}



/* --- Marketing mobile header (hamburger) ---------------------------------- */
.rr-mkt-logo{height:38px;width:auto;display:block;}

.rr-mkt-burger{
  display:none;
  appearance:none;
  border:0;
  background:transparent;
  padding:10px;
  margin:-10px 0;
  border-radius:10px;
  cursor:pointer;
}

.rr-mkt-burger:focus-visible{
  outline:2px solid rgba(255,255,255,0.55);
  outline-offset:2px;
}

.rr-mkt-burger-bars{
  display:block;
  width:22px;
  height:2px;
  background:#ffffff;
  border-radius:2px;
  position:relative;
  margin-top: 18px;
}

.rr-mkt-burger-bars::before,
.rr-mkt-burger-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background:#ffffff;
  border-radius:2px;
}

.rr-mkt-burger-bars::before{ top:-7px; }
.rr-mkt-burger-bars::after{ top:7px; }

.rr-mkt-mobilemenu{
  display:none;
  background:#000000;
  border-top:1px solid rgba(255,255,255,0.10);
}

.rr-mkt-mobilemenu-inner{
  padding: 10px 0 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.rr-mkt-mobilelink{
  color:#ffffff;
  text-decoration:none;
  font-weight:600;
  padding:10px 12px;
  border-radius:12px;
  font-size: 18px;
}

.rr-mkt-mobilelink:hover{
  background: rgba(255,255,255,0.08);
}

.rr-mkt-mobile-divider{
  height:1px;
  background: rgba(255,255,255,0.12);
  margin: 2px 0;
}

.rr-mkt-mobilecta{
  width:100%;
  justify-content:center;
  margin-top:4px;
  font-size: 18px;
}


.rr-mkt-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.45);
  opacity:0;
  pointer-events:none;
  transition: opacity 140ms ease;
  z-index:900;
}

.rr-mkt-body.rr-mkt-menu-open .rr-mkt-backdrop{
  opacity:1;
  pointer-events:auto;
}

@media (max-width: 860px){
  .rr-mkt-header-inner{
    position:relative;
    justify-content:center;
  }

  .rr-mkt-brand-text{ display:none; }

  .rr-mkt-nav{ display:none; }
  .rr-mkt-cta{ display:none; }

  .rr-mkt-burger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    left:0;
    top:50%;
    transform: translateY(-50%);
  }

  .rr-mkt-backdrop{ display:block; }

  .rr-mkt-mobilemenu{ display:block; }
  .rr-mkt-mobilemenu[aria-hidden="true"]{ display:none; }
}

/* Student show: keep content out from under the fixed 200px sidebar */
/* Student Show page only: keep content out from under fixed 200px sidebar */
@media (max-width: 900px) {
  .rr-student-show { margin-left: 0; }
}



/* =========================================================
   Layout guard: fixed topbar + fixed sidebar (prevents content hiding under sidebar)
   These are authoritative overrides to stabilize layout across pages.
   ========================================================= */
:root{
  --rr-topbar-h: 60px;
  --rr-sidebar-w: 200px;
}

/* Sidebar sits below the fixed topbar */
.sidebar{
  position: fixed !important;
  top: var(--rr-topbar-h) !important;
  left: 0 !important;
  bottom: 0 !important;
  width: var(--rr-sidebar-w) !important;
  height: calc(100vh - var(--rr-topbar-h)) !important;
  margin-top: 0 !important; /* avoid double offsets */
  z-index: 1001 !important;
}

/* Main content is offset to the right of the sidebar and below the topbar */
.main-content{
  margin-left: var(--rr-sidebar-w) !important;
  width: calc(100% - var(--rr-sidebar-w)) !important;
  padding-top: calc(var(--rr-topbar-h) + 20px) !important;
  margin-top: 0 !important;
  box-sizing: border-box;
  min-width: 0;
}

/* Mobile: collapse sidebar */
@media (max-width: 992px){
  .sidebar{width:0 !important; overflow:hidden !important;}
  .main-content{margin-left:0 !important; width:100% !important;}
}

/* Student Show marker class should not add layout offsets (layout handles it) */
.page.rr-student-show{padding-left:0 !important;}

/* Rider card page wrapper (screen) */
.page.rr-pass-page{padding:0; margin:0;}

/* --------------------------------------------------------------------------
   Admin Cards (used on Student Show -> Paired Students tab)
   -------------------------------------------------------------------------- */
.rr-admin-card{
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:14px;
  padding:16px;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}
.rr-admin-card + .rr-admin-card{
  margin-top:16px;
}
.rr-admin-card-title{
  margin:0 0 12px;
  font-size:18px;
  font-weight:800;
}
.rr-admin-subtitle{
  margin:0 0 10px;
  font-size:16px;
  font-weight:800;
}
.rr-admin-divider{
  height:1px;
  background:rgba(0,0,0,0.08);
  margin:16px 0;
}
.rr-admin-card .table{
  margin-bottom:0;
}

/* ------------------------------------------------------------
   Pagination (custom view: resources/views/pagination/rr*.blade.php)
   ------------------------------------------------------------ */

.rr-pagination-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 32px;
}

.rr-pagination-summary{
  font-size: 13px;
  color: #111;
}

.rr-pagination-nav{
  margin-left: auto;
}

.rr-pagination{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.rr-page-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-decoration: none;
  line-height: 1;
  user-select: none;
}

.rr-page-link:hover{
  border-color: #111;
}

.rr-page-item.disabled .rr-page-link{
  opacity: 0.45;
  pointer-events: none;
}

.rr-page-item.active .rr-page-link{
  background: #111;
  border-color: #111;
  color: #fff;
}

.rr-page-ellipsis .rr-page-link{
  border-color: transparent;
  background: transparent;
  min-width: 18px;
  padding: 0 4px;
}

/* Mobile: stack summary above the buttons */
@media (max-width: 576px){
  .rr-pagination-bar{
    flex-direction: column;
    align-items: flex-start;
  }
  .rr-pagination-nav{
    width: 100%;
  }
  .rr-pagination{
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


/* RR CRUD modal: override legacy global modal styling */
.modal.rr-crud-modal .modal-content{
  top: 0 !important;
  left: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  border-radius: 16px !important;
}

.modal.rr-crud-modal .modal-dialog{
  pointer-events: auto;
}

/* ------------------------------------------------------------
   RR Preview Modal (Dispatcher "Attention Required" details)
   ------------------------------------------------------------ */
.rr-preview-modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rr-preview-modal-backdrop.is-open {
  display: flex;
}

.rr-preview-modal {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.rr-preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e6e6e6;
}

.rr-preview-modal-title {
  font-weight: 700;
}

.rr-preview-modal-body {
  padding: 16px;
}

.rr-preview-modal-body .kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
}

.rr-preview-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 16px;
  border-top: 1px solid #e6e6e6;
}

/* --- Attention Required (dispatcher dashboard) --- */
.rr-attn-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
  line-height:1;
  border:1px solid transparent;
  cursor:pointer;
  transition: box-shadow 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}
.rr-attn-pill:hover{
  box-shadow:0 6px 18px rgba(0,0,0,0.18);
  filter:brightness(0.95);
  transform:translateY(-1px);
}
.rr-attn-pill:active{
  transform:translateY(0);
  box-shadow:0 3px 10px rgba(0,0,0,0.18);
}
.rr-attn-pill--neutral{ background:#6c757d; color:#fff; }
.rr-attn-pill--dark{ background:#212529; color:#fff; }
.rr-attn-pill--danger{ background:#dc3545; color:#fff; }
.rr-attn-pill--warning{ background:#ffc107; color:#111; }


/* Toastr: bottom-center (centered above bottom edge) */
.toast-bottom-center {
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 24px !important;
}

/* =============================================================
   RR Theme (Option A): Nightwatch-ish Light Sidebar + Soft Gray Page + Bus Yellow Accent
   - Goal: match the “light chrome / neutral UI” feel from Nightwatch.
   - Keep bus-yellow as an accent, not a big fill color.
   - This block is intentionally placed at the END of admin.css to override older rules.
   ============================================================= */

:root{
  --rr-page-bg:#f3f4f6;        /* slightly darker than the surfaces */
  --rr-surface:#ffffff;
  --rr-border:#e5e7eb;
  --rr-text:#111827;
  --rr-text-muted:#6b7280;
  --rr-accent:#ffb714;         /* bus yellow */
  --rr-accent-ink:#111827;

  /* Chrome */
  --rr-sidebar-bg:#ffffff;
  --rr-sidebar-hover:#f3f4f6;
  --rr-sidebar-text:#111827;
  --rr-sidebar-muted:#6b7280;
  --rr-topbar-bg:#ffffff;
  --rr-topbar-text:#111827;
}

body{ background:var(--rr-page-bg) !important; color:var(--rr-text); }

/* Main content surface: let the page background show through */
.main-content{ background:transparent; }

/* Topbar: LIGHT */
.topbar{
  background:var(--rr-topbar-bg) !important;
  border-bottom:1px solid var(--rr-border) !important;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.topbar strong{
  color:var(--rr-topbar-text);
}

/* Header links: muted gray -> dark on hover, with a soft hover chip */
.topbar .nav-right a{
  color:var(--rr-text-muted) !important;
  padding:8px 10px;
  border-radius:10px;
  transition:background-color .15s ease, color .15s ease;
}
.topbar .nav-right a:hover{
  background:#f3f4f6;
  color:var(--rr-text) !important;
}

/* Topbar active state (Settings / Profile): match sidebar “active” cue without a heavy background */
.topbar .nav-right a.topbar-link.active{
  background:#f3f4f6;
  color:var(--rr-text) !important;
  font-weight:700;
}
.topbar .nav-right a.topbar-link.active i{
  color:var(--rr-accent) !important;
}

/* Demo badge: warmer “notice” pill */
.rr-demo-badge{
  background:#fff7ed !important;
  border:1px solid #fed7aa !important;
  color:#9a3412 !important;
}

/* Logout: neutral (yellow felt too loud in this theme) */
.topbar .btn-logout{
  background:#ffffff !important;
  border:1px solid var(--rr-border) !important;
  color:var(--rr-text-muted) !important;
  border-radius:10px;
}
.topbar .btn-logout:hover{
  background:#f3f4f6 !important;
  color:var(--rr-text) !important;
}
.topbar .btn-logout:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(255,183,20,.35);
}

/* Sidebar: LIGHT like Nightwatch */
.sidebar{
  background:var(--rr-sidebar-bg) !important;
  border-right:1px solid var(--rr-border) !important;
}

.sidebar a{
  color:var(--rr-sidebar-text) !important;
  border-left:3px solid transparent;
}

.sidebar a i{ color:#9ca3af; }

.sidebar a:hover{
  background:var(--rr-sidebar-hover) !important;
  border-left-color:var(--rr-accent);
}

/* Active route link (Laravel sets class="active") */
.sidebar a.active{
  background:#f8fafc;
  border-left-color:var(--rr-accent);
  color:var(--rr-sidebar-text) !important;
  font-weight:700;
}

/* Sidebar section grouping (Nightwatch-ish) */
.sidebar-section{
  margin-top: 6px;
}
.sidebar-section:first-child{
  margin-top: 0;
}
.sidebar-section-label{
  padding: 0 12px;
  margin: 0 0 2px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.sidebar .sidebar-section-label{
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.sidebar a.active i{ color:var(--rr-accent); }

/* Sidebar section headers (if present) */
.sidebar .sidebar-section,
.sidebar .sidebar-title{
  color:var(--rr-sidebar-muted) !important;
}

/* Tabs: switch off black/yellow fill to a neutral “chrome” tab set */
.tabs{
  border-bottom:1px solid var(--rr-border) !important;
}
.tab-link{
  background:#e5e7eb !important;
  color:var(--rr-text) !important;
  border:1px solid var(--rr-border) !important;
}
.tab-link:hover{
  background:#dfe3ea !important;
}
.tab-link.active{
  background:#ffffff !important;
  color:var(--rr-text) !important;
  border:1px solid var(--rr-border) !important;
  border-bottom-color:#ffffff !important;
  font-weight:700;
  position:relative;
}
.tab-link.active::after{
  content:'';
  position:absolute;
  left:12px;
  right:12px;
  bottom:-2px;
  height:3px;
  background:var(--rr-accent);
  border-radius:999px;
}

/* Brand text (Nightwatch-ish) – replaces topbar logo */
.topbar .brand{
  display:flex;
  align-items:center;
  max-width: 200px; /* keep it no wider than the sidebar */
}
.topbar .brand-text{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--rr-topbar-text);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 0;
}

/* Filter/search controls: white fills on gray page bg (no borders) */
.input-sm,
.input-lg{
  background:#ffffff !important;
}

/* ---------------------------------------------------------
   Production parity tweaks (force sidebar spacing + brand gap)
   --------------------------------------------------------- */

/* Topbar: bring text closer to logo */
.topbar .brand{
  gap: 6px !important;
}

/* Sidebar: ensure section labels are indented + spaced, even if other CSS overrides */
.sidebar .sidebar-section-label{
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* Add breathing room between groups (e.g., Routes -> Staff & Assignments) */
.sidebar .sidebar-section{
  margin-top: 22px !important;
}
.sidebar .sidebar-section:first-child{
  margin-top: 0 !important;
}

/* Slight extra spacing after the last link in each group */
.sidebar .sidebar-section a:last-of-type{
  margin-bottom: 8px !important;
}

/* ---------------------------------------------------------
   Profile: password eye toggle
   --------------------------------------------------------- */

.rr-password-wrap{
  position: relative;
}

.rr-password-input{
  padding-right: 40px;
}

.rr-password-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6b7280; /* gray-500 */
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

.rr-password-toggle:hover{
  color: #111827; /* gray-900 */
}

/* ---------------------------------------------------------
   Toasts (used on Profile to avoid layout shift on errors)
   --------------------------------------------------------- */

.rr-toast{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.rr-toast.is-visible{
  transform: translateY(0);
  opacity: 1;
}

.rr-toast__body{
  flex: 1;
  font-size: 14px;
}

.rr-toast__close{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  opacity: .85;
}

.rr-toast__close:hover{ opacity: 1; }

.rr-toast--error{
  background: #fee2e2; /* red-100 */
  color: #7f1d1d;      /* red-900 */
  border: 1px solid #fecaca; /* red-200 */
}

@media (min-width: 768px){
  .rr-toast{
    left: auto;
    right: 18px;
    max-width: 520px;
  }
}
