.jvm-zoom-btn.jvm-zoomin,
.jvm-zoom-btn.jvm-zoomout {
  top: 10px;
  background: #d1d5db;
  color: #111827;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
}

.slick-dots {
  display: flex !important;
}

.fc-toolbar-title {
  font-size: 24px !important;
  font-weight: 600;
}

.fc-button {
  border-color: var(--primary-600) !important;
  background: #fff !important;
  color: var(--primary-600) !important;
  font-weight: 600 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-width: 80px !important;
}

.fc-button:hover {
  background-color: var(--primary-50) !important;
}

.fc-button-active {
  color: #fff !important;
  background-color: var(--primary-600) !important;
}

.fc-button-active:hover {
  color: #fff !important;
  background-color: var(--primary-600) !important;
}

.fc-button-active:focus,
.fc .fc-button-primary:not(:disabled):active:focus {
  box-shadow: none !important;
}

.fc-toolbar-chunk {
  display: flex !important;
}

.fc .fc-button-primary:focus {
  box-shadow: none !important;
}

.fc-h-event {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-h-event .fc-event-main {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-v-event .fc-event-main {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-daygrid-day-number {
  transition: background-color 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  border-radius: 50%;
}

.fc-daygrid-day:hover .fc-daygrid-day-number {
  background-color: var(--primary-100) !important;
  color: var(--primary-600) !important;
  transition: background-color 0.2s;
}

.slider-progress .active {
  transition: all 0.3s linear;
}

.slick-list {
  margin: 0 -7px;
}

.slick-slide>div {
  padding: 0 10px;
}

.center-gap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-grid {
  display: inline-grid;
}

.image-upload__boxInner.custom {
  display: flex;
  justify-content: center;
  align-items: center;
}

table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
  text-align: unset !important;
}

/* Hide all submenus by default */
.sidebar-submenu {
  /* display: none; */
  list-style: none;
  padding-left: 20px;
  /* Adjust as needed */
}

.sidebar-menu .sidebar-submenu {
  display: block;
}

/* Optional: Add transition for smooth toggle */
.sidebar-menu .dropdown .sidebar-submenu {
  transition: max-height 0.3s linear;
  overflow: hidden;
  max-height: 0px;
}

/* .sidebar-menu .dropdown.open .sidebar-submenu {
  max-height: 1000px;
} */

.sidebar-menu li>a>i {
  margin-inline-end: 0;
}

.mr-10 {
  margin-right: 10px !important;
}

.sidebar-menu .sidebar-submenu li a {
  gap: 12px;
}

.sidebar-menu .sidebar-submenu li>.active-page {
  background-color: var(--button-secondary);
  color: var(--text-primary-light);
}

.sidebar-menu li>a.active-page:hover {
  color: var(--text-primary-light);
}

.me-8 {
  margin-right: 8px;
}

.gap-10 {
  display: flex;
  gap: 8px;
}

.w-33 {
  width: 33.33%;
}

.overlay::after {
  position: absolute;
  content: "";
  top: 0;
  inset-inline-start: 0;
  width: 0;
  height: 100%;
  background-color: #000;
  opacity: 0.65;
  transition: all 0.3s;
  z-index: 2;
}

.overlay.active::after {
  width: 100%;
}

.Gallery-masonry {
  background: #000;
  z-index: 99999;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
}


.tm-compact-table td,
.tm-compact-table th {
  font-size: 0.85rem !important;
  padding: 0.4rem 0.5rem !important;
}


/*Style for room-mapping*/
/* ============== Room Mapping (rm-) ============== */
.rm-room-card {
  --rm-radius: 14px;
  --rm-border: 1px solid #e8ebf0;
  --rm-bg: #fff;
  --rm-shadow: 0 3px 10px rgba(16, 24, 40, 0.05);

  background: var(--rm-bg);
  border: var(--rm-border);
  border-radius: var(--rm-radius);
  box-shadow: var(--rm-shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  transition: all 0.15s ease;
  font-size: 13px !important;
}

.rm-room-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
}

/* Borders for state */
.rm-room-card.rm-full {
  border: 2px solid #c2f2ce;
}

.rm-room-card.rm-available {
  border: 2px solid #ffe2a5;
}

/* Header */
.rm-room-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.rm-room-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rm-room-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f0f4f9;
  font-size: 16px !important;
}

.rm-room-name {
  font-size: 16px !important;
  font-weight: 700;
  margin: 0;
  color: #101828;
}

.rm-chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 600;
}

.rm-chip-full {
  background: #e8f8ee;
  color: #0a7a38;
  border: 1px solid #b8e5c8;
}

.rm-chip-available {
  background: #fff4d9;
  color: #8b5b00;
  border: 1px solid #ffe0a3;
}

/* Room Type */
.rm-room-type {
  margin-top: 6px;
}

.rm-label {
  font-weight: 600;
  font-size: 12px !important;
  color: #475467;
  margin-bottom: 4px;
}

.rm-select .rm-select-btn {
  width: 100%;
  text-align: left;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px !important;
  color: #101828;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
}

.rm-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rm-pill {
  font-size: 11px !important;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #344054;
  border: 1px solid #eaecf0;
}

/* Capacity */
.rm-capacity {
  margin-top: 6px;
}

.rm-capbar {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: #f1f3f6;
  overflow: hidden;
}

.rm-capbar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #ffb020 0%, #ffcf70 100%);
}

.rm-room-card.rm-full .rm-capbar-fill {
  background: linear-gradient(90deg, #22c55e 0%, #86efac 100%);
}

.rm-captext {
  font-size: 12px !important;
  font-weight: 600;
  color: #101828;
  margin-top: 5px;
}

/* Residents */
.rm-residents {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.rm-residents-title {
  font-weight: 700;
  color: #101828;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px !important;
}

.rm-resident-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rm-resident-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
  padding: 8px 10px;
}

.rm-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #dfe4ea;
  color: #344054;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 8px;
}

.rm-resident-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 12px !important;
}

.rm-resident-name {
  font-weight: 700;
  font-size: 13px !important;
  color: #101828;
}

.rm-resident-meta {
  font-size: 11px !important;
  margin-top: 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.rm-badge {
  font-size: 11px !important;
  padding: 2px 6px;
  border-radius: 6px;
  color: #175cd3;
  background: #eef2ff;
  border: 1px solid #dee4ff;
}

.rm-muted {
  color: #667085;
}

.rm-icon-btn {
  border: none;
  background: none;
  color: #ef4444;
  font-weight: 700;
  font-size: 14px !important;
  line-height: 1;
  margin-left: 8px;
  padding: 4px;
}

.rm-icon-btn:hover {
  background: #fff1f1;
  border-radius: 6px;
}

/* Add Student (dashed box) */
.rm-add-slot {
  width: 100%;
  border: 1.5px dashed #d6dae3;
  background: #fcfdfd;
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
  color: #384250;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px !important;
  transition: 0.2s ease;
}

.rm-add-slot:hover {
  background: #f6f8fb;
  border-color: #c9d0dc;
}

.rm-add-icon {
  font-size: 14px !important;
  opacity: 0.7;
}

/* Equal Height Fix */
.rm-room-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.rm-residents {
  flex-grow: 1;
  justify-content: flex-start;
}

.rm-add-slot:last-child {
  margin-top: auto;
}

/* Adjust small text globally inside card */
.rm-room-card * {
  font-family: "Inter", sans-serif;
  font-size: 13px !important;
}


/* ---------- Assign modal: match room card style ---------- */
.rm-modal {
  width: 720px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

.rm-modal .card-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.rm-modal .card-body {
  background: #fafafa;
}

/* Search bar */
.rm-searchbar {
  display: flex;
  gap: 8px;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  align-items: center;
  /* was: stretch */
}

/* ensure the icon itself is centered */
.rm-searchbar .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  /* avoid baseline offset */
}

.rm-searchbar input {
  border: 0;
  outline: none;
  background: transparent;
}

.rm-searchbar:focus-within {
  border-color: rgba(59, 130, 246, .35);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

/* Result list */
.rm-search-list {
  max-height: 360px;
  overflow: auto;
  margin-top: 12px;
  padding-right: 4px;
}

.rm-search-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: box-shadow .2s ease, transform .05s ease;
}

.rm-search-item+.rm-search-item {
  margin-top: 10px;
}

.rm-search-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

/* Left cluster (avatar + info) */
.rm-s-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.rm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  background: #eef2ff;
  color: #4f46e5;
}

.rm-s-name {
  font-weight: 600;
  line-height: 1.1;
}

.rm-s-email {
  font-size: 12px;
  color: #6b7280;
}

.rm-badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid rgba(59, 130, 246, .15);
}

/* Select button */
.rm-s-btn {
  border-radius: 10px;
}

/* Confirm screen rows */
.rm-confirm-row {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  padding: 12px;
}

.rm-section-title {
  font-weight: 600;
  margin-bottom: 6px;
}


/* Capacity */
.rm-capacity {
  margin-top: 6px;
}

/* NEW: header row for Capacity + availability text on the right */
.rm-capacity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.rm-captext {
  font-size: 12px !important;
  font-weight: 600;
  color: #101828;
  margin: 0;
  /* was: margin-top: 5px; -> remove to keep it inline */
}

/* Optional: tint availability text by state (nice touch) */
.rm-room-card.rm-full .rm-captext {
  color: #0a7a38;
}

.rm-room-card.rm-available .rm-captext {
  color: #8b5b00;
}



/* ===================================================
   HEADER TOOLBAR (hd-)
   Scoped separately to prevent rm- collisions
=================================================== */

.hd-toolbar {
  background: #f9fafb;
  border-bottom: 1px solid #e8ebf0;
  border-radius: 12px;
}

.hd-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.hd-left,
.hd-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Labels */
.hd-label {
  font-size: 12px;
  font-weight: 600;
  color: #475467;
  margin-bottom: 4px;
}

/* Selects & Inputs */
.hd-select,
.hd-input {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.hd-select:focus,
.hd-input:focus {
  border-color: rgba(59, 130, 246, .35);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
  outline: none;
}

/* Grouped inputs */
.hd-group {
  display: flex;
  gap: 12px;
  align-items: end;
}

.hd-grow {
  flex: 1;
  min-width: 320px;
}

/* Searchbar */
.hd-searchbar {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}

.hd-searchbar .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hd-searchbar input {
  border: 0;
  outline: none;
  background: transparent;
  flex: 1;
}

.hd-searchbar:focus-within {
  border-color: rgba(59, 130, 246, .35);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

/* Input + Button combo */
.hd-input-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

/* Title view */
.hd-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hd-main {
  font-weight: 700;
  color: #101828;
  font-size: 16px !important;
}

.hd-sub {
  color: #667085;
  font-size: 13px !important;
}

/* Field column so label sits on top like others */
.hd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* space between label and control */
}

/* Optional: make the whole row center-aligned now that labels are stacked */
.hd-row {
  align-items: center;
  /* was: end — prevents weird vertical misalignment */
}

/* Optional polish: consistent control height */
.hd-select,
.hd-input {
  height: 40px;
}

/* ================= Uniform sizing & alignment ================= */

/* Row: align bottoms so labels can sit above controls without misalignment */
.hd-row {
  align-items: flex-end;
  /* bottoms align nicely */
  gap: 16px;
}

/* Field column (label on top, control below) */
.hd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Groups of fields (Block/Floor) also use label-on-top layout */
.hd-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

/* A single token for all inputs/selects to make height identical */
.hd-ctl {
  height: 44px;
  /* unify control height */
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
}

.hd-ctl:focus {
  border-color: rgba(59, 130, 246, .35);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
  outline: none;
}

/* Buttons: same height as controls */
.hd-btn {
  height: 44px;
  /* exact match */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  /* consistent horizontal padding */
  border-radius: 10px;
  /* matches inputs */
}

/* Input + button combo: make both stretch to same height */
.hd-input-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  /* bottom align inside the grid */
}

/* Let the search field grow */
.hd-grow {
  flex: 1;
  min-width: 320px;
}

/* If you use Bootstrap controls, normalize them via the token too */
.hd-ctl.form-select,
.hd-ctl.form-control {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Optional (cosmetic): keep the header background & radius */
.hd-toolbar {
  background: #f9fafb;
  border-bottom: 1px solid #e8ebf0;
  border-radius: 12px;
}

.hd-label {
  font-size: 12px;
  font-weight: 600;
  color: #475467;
}

/* ---- Generic tile: looks like rm-room-card ---- */
.rm-tile {
  --rm-radius: 14px;
  --rm-border: 1px solid #e8ebf0;
  --rm-bg: #fff;
  --rm-shadow: 0 3px 10px rgba(16, 24, 40, .05);
  background: var(--rm-bg);
  border: var(--rm-border);
  border-radius: var(--rm-radius);
  box-shadow: var(--rm-shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
  font-size: 13px !important;
}

.rm-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 24, 40, .08);
}

/* header line (title + edit) */
.rm-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rm-tile-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rm-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f0f4f9;
  font-size: 16px !important;
}

.rm-tile-name {
  font-size: 16px !important;
  font-weight: 700;
  margin: 0;
  color: #101828;
}

/* small outline icon button (pencil) */
.rm-btn-icon {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  line-height: 1;
}

.rm-btn-icon:hover {
  background: #f8fafc;
}

/* kpis row (chips) */
.rm-kpis {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.rm-chip-soft {
  font-size: 12px !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  border: 1px solid #eaecf0;
}

/* subtle subtitle text */
.rm-subtle {
  color: #667085;
  font-size: 12px !important;
  margin-top: 4px;
}





/* ===========================
   Room Types (scoped)  -rmt
   File: src/styles/room-types-rmt.css
   =========================== */

/* ---------- tokens (light) ---------- */
.rmt {
  --rmt-bg: #ffffff;
  --rmt-muted: #6b7280;
  /* gray-500 */
  --rmt-soft: #f6f7fb;
  /* table header / chips bg */
  --rmt-border: #e5e7eb;
  /* gray-200 */
  --rmt-pill-bg: #eef2ff;
  /* indigo-50 */
  --rmt-pill-text: #3f51b5;
  /* indigo-600 */
  --rmt-primary: #2563eb;
  /* blue-600 */
  --rmt-primary-600: #2563eb;
  --rmt-primary-700: #1e4fd6;
  --rmt-focus: rgba(37, 99, 235, 0.15);
  --rmt-shadow: 0 6px 20px rgba(16, 24, 40, .06);
  --rmt-radius: 12px;
  --rmt-radius-sm: 8px;
  --rmt-radius-xs: 6px;
  --rmt-font: 13.5px;
}

/* ---------- card + header toolbar ---------- */
.rmt.card {
  border: 1px solid var(--rmt-border);
  border-radius: var(--rmt-radius);
  overflow: hidden;
}

.rmt .card-header {
  background: var(--rmt-bg);
  border-bottom: 1px solid var(--rmt-border);
  padding: 10px 14px !important;
}

.rmt .card-header .btn.btn-xs,
.rmt .card-header .btn.btn-xxs {
  line-height: 1;
}

.rmt .card-body {
  padding: 12px 14px 14px 14px;
  background: var(--rmt-bg);
  font-size: var(--rmt-font);
}

/* ---------- chips (toolbar filters) ---------- */
.rmt .btn.btn-xs {
  --bs-btn-padding-y: 4px;
  --bs-btn-padding-x: 8px;
  --bs-btn-font-size: 12px;
  border-radius: 999px;
}

.rmt .btn.rmt-chip {
  background: var(--rmt-soft);
  color: #1f2937;
  border: 1px solid var(--rmt-border);
}

.rmt .btn.rmt-chip--active {
  background: var(--rmt-primary);
  color: #fff;
  border-color: var(--rmt-primary);
}

.rmt .input-group.input-group-sm,
.rmt select.form-select-sm {
  height: 32px;
}

.rmt .input-group.input-group-sm .form-control,
.rmt .input-group.input-group-sm .input-group-text,
.rmt select.form-select-sm {
  padding: 6px 10px;
  font-size: 12.5px;
  border-radius: var(--rmt-radius-xs);
}

.rmt .form-control:focus,
.rmt .form-select:focus {
  border-color: var(--rmt-primary);
  box-shadow: 0 0 0 4px var(--rmt-focus);
}

/* ---------- table (compact like screenshot) ---------- */
.rmt .mess-summary {
  border: 1px solid var(--rmt-border);
  border-radius: var(--rmt-radius);
  overflow: hidden;
}

.rmt .table.tm-compact-table {
  margin: 0;
  font-size: 13px;
}

.rmt .table.tm-compact-table thead tr {
  background: var(--rmt-soft);
}

.rmt .table.tm-compact-table thead th {
  color: #374151;
  font-weight: 600;
  border-bottom: 1px solid var(--rmt-border) !important;
  padding: 8px 12px;
}

.rmt .table.tm-compact-table tbody td {
  padding: 10px 12px;
  vertical-align: middle;
  border-color: var(--rmt-border);
}

.rmt .table.tm-compact-table tbody tr:hover {
  background: #fafbff;
}

/* ---------- attribute pills ---------- */
.rmt .tm-badge-xs,
.rmt .rmt-pill {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11.5px;
  border-radius: 999px;
  background: var(--rmt-pill-bg);
  color: var(--rmt-pill-text);
  border: 1px solid rgba(63, 81, 181, 0.15);
}

/* ---------- small icon buttons in Actions ---------- */
.rmt .tm-icon-btn,
.rmt .btn.btn-xxs {
  --size: 28px;
  height: var(--size);
  min-width: var(--size);
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  font-size: 16px;
}

.rmt .btn-outline-primary-600.tm-icon-btn {
  border-color: var(--rmt-primary-600);
  color: var(--rmt-primary-600);
}

.rmt .btn-outline-primary-600.tm-icon-btn:hover {
  background: var(--rmt-primary-600);
  color: #fff;
}

/* ---------- small helper text ---------- */
.rmt .small,
.rmt .form-label.small,
.rmt .text-muted.small {
  font-size: 12px !important;
  color: var(--rmt-muted);
}

/* ---------- feature cards (Attributes tab) ---------- */
.rmt .rm-feature-card {
  border: 1px dashed var(--rmt-border) !important;
  background: #fafafa !important;
  border-radius: var(--rmt-radius-sm);
}

/* ---------- Reset button & Primary button polish ---------- */
.rmt .btn.btn-outline-secondary.btn-xs {
  --bs-btn-padding-y: 4px;
  --bs-btn-padding-x: 10px;
  --bs-btn-font-size: 12px;
  border-radius: 8px;
}

.rmt .btn.btn-primary-600 {
  background: var(--rmt-primary);
  border-color: var(--rmt-primary);
}

.rmt .btn.btn-primary-600:hover {
  background: var(--rmt-primary-700);
  border-color: var(--rmt-primary-700);
}

/* =========================================
   Modal – Create / Edit (scoped with .rmt)
   ========================================= */
.rmt.modal .modal-dialog {
  max-width: 760px;
}

.rmt.modal .modal-content {
  border: 1px solid var(--rmt-border);
  border-radius: 14px;
  box-shadow: var(--rmt-shadow);
}

.rmt.modal .modal-header {
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--rmt-border);
}

.rmt.modal .modal-title {
  font-size: 15px;
  font-weight: 700;
}

.rmt.modal .modal-body {
  padding: 14px;
  font-size: var(--rmt-font);
}

.rmt.modal .form-label.small {
  margin-bottom: 4px;
  color: #374151;
  font-weight: 600;
}

/* inputs in modal */
.rmt.modal .form-control.form-control-sm,
.rmt.modal .form-select.form-select-sm {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 10px;
  border-color: var(--rmt-border);
}

/* checkbox grid look */
.rmt.modal .form-check {
  margin-bottom: 8px;
}

.rmt.modal .form-check-input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.rmt.modal .form-check-label.small {
  margin-left: 4px;
  font-size: 13px !important;
}

/* modal footer buttons */
.rmt.modal .btn.btn-outline-secondary.btn-xs,
.rmt.modal .btn.btn-primary-600.btn-xs {
  --bs-btn-padding-y: 8px;
  --bs-btn-padding-x: 14px;
  --bs-btn-font-size: 13px;
  border-radius: 10px;
}

/* dark overlay tint a bit softer */
.rmt.modal {
  background: rgba(15, 23, 42, 0.45) !important;
}

/* ---------- tiny utilities ---------- */
.rmt .me-1 {
  margin-right: .25rem !important;
}

.rmt .me-2 {
  margin-right: .5rem !important;
}

.rmt .gap-2 {
  gap: .5rem !important;
}

/* ---------- HEADER FILTER ALIGN ---------- */
.rmt .rmt-toolbar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.rmt .rmt-field,
.rmt .rmt-field .form-control,
.rmt .rmt-field .input-group-text,
.rmt .rmt-field.form-select-sm {
  height: 32px !important;
  /* same height for both controls */
}

.rmt .rmt-field .form-control {
  line-height: 1.2;
}

/* keep text nice */
.rmt .rmt-field .input-group-text {
  border-radius: 6px 0 0 6px;
}

.rmt .rmt-field .form-control {
  border-radius: 0 6px 6px 0;
}

/* make select visually match input-group */
.rmt select.form-select-sm.rmt-field {
  padding: 6px 2rem 6px 10px;
  /* tighten right padding */
  border-radius: 6px;
  background-position: right .8rem center;
  /* move caret closer */
  background-size: 14px 14px;
  /* smaller arrow */
  background-repeat: no-repeat;
}


/* ---------- ATTRIBUTE INLINE EDIT ALIGN ---------- */
.rmt .rm-feature-card .form-control-sm {
  height: 32px;
}

.rmt .rm-feature-card .btn-group {
  display: flex;
  gap: 6px;
}

.rmt .btn.btn-xxs,
.rmt .tm-icon-btn {
  /* force identical square buttons */
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.rmt .btn-outline-secondary {
  border-color: var(--rmt-border);
}


/* =========================
   RMT Action Buttons (Roles look)
   ========================= */
.rmt {
  --rmt-blue: #2563eb;
  /* edit */
  --rmt-blue-700: #1e4fd6;
  --rmt-red: #ef4444;
  /* delete */
  --rmt-red-700: #dc2626;
}

/* Base square icon */
.rmt .rmt-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  padding: 0 !important;
  line-height: 1;
  font-size: 16px;
  background: #fff;
  border: 1.5px solid var(--rmt-blue);
  color: var(--rmt-blue);
  transition: .15s ease-in-out;
}

.rmt .rmt-icon:hover {
  background: var(--rmt-blue);
  color: #fff;
  border-color: var(--rmt-blue-700);
}

/* Danger (trash) */
.rmt .rmt-icon--danger {
  border-color: var(--rmt-red);
  color: var(--rmt-red);
}

.rmt .rmt-icon--danger:hover {
  background: var(--rmt-red);
  color: #fff;
  border-color: var(--rmt-red-700);
}

/* Solid primary (useful for ✓ in inline edit) */
.rmt .rmt-icon--solid {
  background: var(--rmt-blue);
  color: #fff;
  border-color: var(--rmt-blue);
}

.rmt .rmt-icon--solid:hover {
  background: var(--rmt-blue-700);
  border-color: var(--rmt-blue-700);
}

/* Muted for ✕ cancel */
.rmt .rmt-icon--muted {
  border-color: #e5e7eb;
  color: #6b7280;
}

.rmt .rmt-icon--muted:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Optional: split group that looks like a single capsule with two cells */
.rmt .rmt-action-split {
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--rmt-blue);
}

.rmt .rmt-action-split .rmt-icon {
  border: none;
  border-right: 1.5px solid var(--rmt-blue);
  border-radius: 0;
  width: 36px;
  height: 36px;
}

.rmt .rmt-action-split .rmt-icon:last-child {
  border-right: none;
  border-left: 1.5px solid var(--rmt-red);
  border-color: var(--rmt-red);
  color: var(--rmt-red);
}

.rmt .rmt-action-split .rmt-icon:last-child:hover {
  background: var(--rmt-red);
  color: #fff;
}


/* Align input and Add button nicely */
.rmt form.row.g-2.align-items-end.mb-3 {
  display: flex;
  align-items: center;
  /* vertical center */
  gap: 10px;
  /* spacing between input and button */
  flex-wrap: wrap;
  /* stack on small screens */
  margin-bottom: 14px;
}

.rmt form .form-label.small.mb-1 {
  display: none;
  /* hide label for compact look */
}

.rmt form .col-md-6.col-sm-8 {
  flex: 1 1 400px;
  /* make input stretch */
}

.rmt form .col-auto {
  flex-shrink: 0;
  /* button doesn’t shrink */
}

/* make input and button same height */
.rmt form .form-control.form-control-sm {
  height: 38px;
  font-size: 13.5px;
  border-radius: 8px;
}

.rmt form .btn.btn-primary-600.btn-xs {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ===== Roles & Permissions editor: pill alignment ===== */
.perm-editor {
  --pe-chip-h: 30px;
  /* pill height */
  --pe-chip-px: 10px;
  /* horizontal padding */
  --pe-chip-gap: 8px;
  /* space between checkbox and text */
  --pe-chip-fs: .875rem;
  /* text size */
}

/* pill */
.perm-editor .perm-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--pe-chip-gap);
  height: var(--pe-chip-h);
  padding: 0 var(--pe-chip-px);
  border-radius: 999px;
  border: 1px solid var(--bs-border-color, #dee2e6);
  font-size: var(--pe-chip-fs);
  line-height: 1;
  /* kill badge baseline jump */
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  cursor: pointer;
  user-select: none;
}

/* checkbox inside pill */
.perm-editor .perm-chip .form-check-input {
  width: 1rem;
  height: 1rem;
  /* fixed box instead of scale hacks */
  margin: 0;
  /* remove Bootstrap margin */
  position: static;
  /* ensure no absolute offset */
  vertical-align: middle;
}

/* text inside pill */
.perm-editor .perm-chip span {
  line-height: 1;
  /* perfect vertical center */
  display: inline-block;
  transform: translateY(1px);
  /* tiny nudge for optical balance */
}

/* states */
.perm-editor .perm-chip.active {
  background: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
}

.perm-editor .perm-chip.inactive {
  background: #fff;
  color: var(--bs-body-color);
}

/* the grid that holds pills */
.perm-editor .perm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Section title checkbox alignment */
.perm-editor .section-title .form-check-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  vertical-align: middle;
}




/* compact header like screenshot */
.rm-list-header h6 {
  font-size: 0.95rem;
}

/* horizontal scroll container */
.rm-scroll-x {
  overflow-x: auto;
}

/* sticky right Actions column */
.rm-sticky-actions {
  position: sticky;
  right: 0;
  background: var(--bs-body-bg);
  box-shadow: -4px 0 4px rgba(0, 0, 0, 0.03);
}

/* filters panel spacing */
.rm-filters .form-label {
  color: var(--bs-gray-600);
}

.rm-filters .form-select-sm,
.rm-filters .form-control-sm {
  font-size: .825rem;
}



/* === Students Update: table + filters compactness === */
.rm-compact {
  font-size: 0.92rem;
}

.rm-compact .form-label {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.rm-compact .form-control-sm,
.rm-compact .form-select-sm {
  line-height: 1.25rem;
  padding-top: .25rem;
  padding-bottom: .25rem;
}

/* Make only horizontal scroll, allow vertical overflow so dropdowns can escape */
.rm-scroll-x {
  overflow-x: auto;
  overflow-y: visible;
  /* <-- important: fixes clipping */
}

/* Keep actions sticky and visually separated */
.rm-sticky-actions {
  position: sticky;
  right: 0;
  background: #fff;
}

/* Tiny icon button */
.btn-xxs {
  --bs-btn-padding-y: .125rem;
  --bs-btn-padding-x: .375rem;
  --bs-btn-font-size: .75rem;
}

/* Space + alignment inside dropdown items */
.dropdown-item .bi {
  opacity: .9;
}

/* Ensure dropdown appears above table content */
.rm-actions .dropdown-menu {
  z-index: 1061;
  /* higher than table cells/cards */
}



/* ============================
   Student Alignment (namespace: .sa)
   ============================ */
.sa {
  --sa-font: 0.9rem;
  --sa-label: 0.8rem;
  --sa-h: 34px;
  font-size: var(--sa-font);
  line-height: 1.4;
}

/* Labels */
.sa .sa-label {
  font-size: var(--sa-label);
  margin-bottom: 0.25rem !important;
  color: var(--bs-secondary-color, #6c757d);
}

/* Inputs, selects, buttons same height */
.sa .sa-input,
.sa .form-control.form-control-sm,
.sa .form-select.form-select-sm {
  height: var(--sa-h);
  min-height: var(--sa-h);
  font-size: var(--sa-font);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* Buttons */
.sa .btn.btn-sm,
.sa .btn.btn-xs,
.sa .btn.btn-xxs {
  height: var(--sa-h);
  min-height: var(--sa-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--sa-font);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  gap: 0.35rem;
}

/* Icon buttons (for actions / dropdown) */
.sa .sa-icon-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.sa .dropdown-toggle.sa-icon-btn::after {
  display: none;
}

/* Filters grid */
.sa .sa-filters .row>[class*="col-"] {
  display: flex;
  flex-direction: column;
}

.sa .sa-filters .col-actions {
  display: flex;
  align-items: end;
}

/* Sticky actions (avoid clipping) */
.sa .sa-sticky-actions {
  position: sticky;
  right: 0;
  background: var(--bs-body-bg, #fff);
  z-index: 2;
}

/* Table and text */
.sa table thead th {
  font-weight: 600;
  vertical-align: middle;
}

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

/* Compact spacing */
.sa .card-header {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.sa .card-body {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.sa .sa-scroll-x {
  overflow-x: auto;
}

/* Step badges */
.sa .sa-step-circle {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Pagination select */
.sa .form-select.w-auto {
  height: var(--sa-h);
}

/* Switch alignment */
.sa .form-check.form-switch .form-check-input {
  margin-top: 0;
}

/* Dropdown items */
.sa .dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--sa-font);
}


/* --- Uniform compact field heights (sm) --- */
.sa .form-control.form-control-sm,
.sa .form-select.form-select-sm {
  height: 38px;
  /* same for all */
  line-height: 1.25;
  font-size: 0.875rem;
  padding: .375rem .5rem;
}

/* Make labels consistent and tight */
.sa-label {
  font-size: 0.8rem;
  color: var(--bs-gray-700);
}

/* Buttons that visually match 38px inputs */
.sa-btn.btn-sm {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: .75rem;
}

/* Keep the actions column tidy on narrow widths */
.rm-filters .col-md-3.d-flex.justify-content-end {
  min-height: 38px;
}

/* Optional: make the switch sit nicely with text */
.form-check.form-switch .form-check-input {
  width: 2.25rem;
  height: 1.125rem;
}

.form-check.form-switch .form-check-label {
  line-height: 1;
}

/* Fix toggle thumb alignment in custom scaled switches */
.sa .form-check.form-switch .form-check-input {
  width: 2.25rem;
  /* slightly wider track */
  height: 1.25rem;
  margin-top: 0;
  /* center align vertically */
  cursor: pointer;
  background-color: #dee2e6;
  background-image: none;
  /* remove default gradient */
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  transition: background-position 0.2s ease-in-out, background-color 0.2s;
}

/* When toggled ON */
.sa .form-check.form-switch .form-check-input:checked {
  background-color: #4d75ff;
  /* TMU blue tone */
  background-position: right center;
  /* ✅ moves thumb fully to the end */
}

/* Optional – keep the white circle visible and centered */
.sa .form-check.form-switch .form-check-input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s ease-in-out;
}

.sa .form-check.form-switch .form-check-input:checked::before {
  transform: translateX(1rem);
  /* pushes white circle to the right edge */
}


/* Permission editor styles*/

/* --- Compact modal + tidy alignment --- */

/* Apply on the modal root to scope all compact rules */
.modal-compact-pr .modal-header {
  padding: 12px 16px !important;
}

.modal-compact-pr .modal-body {
  padding: 16px !important;
}

.modal-compact-pr .modal-content {
  border-radius: 12px;
}

/* Keep header/footer fixed, body scrolls */
.modal-compact-pr .modal-footer {
  position: sticky;
  bottom: 0;
  background: var(--bs-body-bg);
  z-index: 2;
  padding: 10px 16px !important;
  border-top: 1px solid var(--bs-border-color);
}

/* Make inputs/selects smaller without changing your utility scale */
.compact-control-pr.form-control,
.compact-control-pr.form-select,
.compact-control-pr textarea {
  padding-top: .4rem !important;
  padding-bottom: .4rem !important;
  font-size: .925rem !important;
}

/* Tighten vertical rhythm */
.field-block-pr {
  margin-bottom: 12px !important;
}

/* Inline radio alignment (label baseline + smaller gaps) */
.inline-radios-pr {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.inline-radios-pr .form-check {
  margin: 0;
}

.inline-radios-pr .form-check-input {
  margin-top: 0;
  /* fix default bootstrap bump */
  vertical-align: middle;
  /* align with label text baseline */
  transform: translateY(1px);
}

.inline-radios-pr .form-check-label {
  margin-left: 4px;
}

/* Helper text smaller & tight */
.helper-pr {
  margin-top: 4px;
  font-size: .8rem;
  color: var(--bs-secondary-color);
}

/* Buttons row — tighter */
.modal-actions-pr .btn {
  padding: .45rem .9rem !important;
}

/* Optional: narrower dialog on desktop so it looks “smaller”, but still roomy */
@media (min-width: 992px) {
  .modal-md-pr {
    max-width: 720px;
  }

  /* narrower than modal-lg */
}

/* Make form footer always visible on small screens */
.modal-dialog-scrollable .modal-body {
  max-height: calc(100vh - 180px);
}


/*Meal and food*/

/* ---- general icon/text alignment ---- */
.btn-inline-mef {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-inline-mef {
  vertical-align: -0.125em;
  line-height: 1;
  display: inline-block;
}

/* chips */
.badge-chip-mef {
  background: var(--bs-primary-bg-subtle, #e7f1ff);
  color: var(--bs-primary, #0d6efd);
  border-radius: 999px;
  padding: 4px 8px;
}

.chip-text-mef {
  line-height: 1;
}

/* center cells precisely */
.cell-center-mef {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cell-center-mef .btn-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---- keep table width stable when pagination changes ---- */
.table-wrap-mef {
  /* modern */
  scrollbar-gutter: stable both-edges;
  /* fallback to always show vertical scrollbar area */
  overflow-y: scroll;
}

/* fixed, predictable columns */
.table-mef {
  table-layout: fixed;
  width: 100%;
}

.table-mef th,
.table-mef td {
  vertical-align: middle;
}

/* ---- searchable select ---- */
.mef-search-select {
  position: relative;
}

.mef-search-select .mef-input {
  border-radius: 8px;
}

.mef-search-select .mef-panel {
  position: absolute;
  inset: auto 0 0 0;
  transform: translateY(100%);
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 8px;
  z-index: 1056;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  margin-top: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.mef-search-select .mef-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.mef-search-select .mef-option:hover,
.mef-search-select .mef-option[aria-selected="true"] {
  background: rgba(13, 110, 253, .08);
}

.mef-search-select .mef-empty {
  padding: 8px 10px;
  color: #6c757d;
  font-size: .9rem;
}

/* remove the old "Enter" hint if any old markup lingers */
.mef-kbd {
  display: none !important;
}


/* Taller, responsive modal just for Manage Foods */
.modal-tall-mef .modal-dialog {
  /* wider than md but not huge */
  max-width: 820px;
}

.modal-tall-mef .modal-content {
  /* let the dialog grow most of the viewport */
  max-height: 85vh;
  display: flex;
}

.modal-tall-mef .modal-header,
.modal-tall-mef .modal-footer {
  flex: 0 0 auto;
}

.modal-tall-mef .modal-body {
  /* only the body scrolls; header/footer fixed */
  flex: 1 1 auto;
  overflow: auto;
  /* if your global modal-compact-pr sets a fixed height, this wins */
  max-height: calc(85vh - 112px);
  /* ~56 header + 56 footer; tweak if needed */
}

/* Make the searchable panel height play nice inside the taller modal */
.modal-tall-mef .mef-search-select .mef-panel {
  max-height: min(56vh, 420px);
}

/* Small screens: almost full-height */
@media (max-width: 576px) {
  .modal-tall-mef .modal-content {
    max-height: 92vh;
  }

  .modal-tall-mef .modal-body {
    max-height: calc(92vh - 112px);
  }
}


/* Wider group-members modal */
.modal-assign-group-pr {
  max-width: 960px;
  /* tweak 900 / 1000 if you want */
}

/* Keep it tight vertically */
.modal-compact-pr .modal-content {
  border-radius: 16px;
}

.modal-body-compact-pr {
  padding: 12px 20px 16px;
}

/* Smaller section headings inside modals */
.heading-subtitle-pr {
  font-size: 0.9rem;
  /* smaller than default h6 */
  font-weight: 600;
  color: var(--bs-gray-700);
}

/* Escalation offcanvas width -pr */
.offcanvas.offcanvas-end.offcanvas-escalation-pr {
  width: 100% !important;
  max-width: 720px;
}

@media (min-width: 1400px) {
  .offcanvas.offcanvas-end.offcanvas-escalation-pr {
    max-width: 800px;
  }
}

/* Smaller typography to match other tables -pr */
.table-escalation-pr th,
.table-escalation-pr td {
  font-size: 0.875rem;
}

/* Hostel tabs more like pills -pr */
.escalation-hostel-tabs-pr .nav-link {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.escalation-hostel-tabs-pr .nav-link.active {
  background-color: var(--bs-primary);
  color: #fff;
}

.ticket-gallery-backdrop {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999 !important;
}

.ticket-gallery-modal {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ticket-gallery-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ticket-gallery-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
}

.ticket-gallery-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.ticket-gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}


.ticket-drawer {
  animation: slideIn 0.25s ease-out;
  border-left: 1px solid #e5e7eb;
  border-top-left-radius: 16px;
  background: #fff;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.ticket-drawer-scroll {
  padding-bottom: 50px !important;
}

.ticket-drawer .section-header {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

/* ===========================
   Ticket side panel – Rechain style
   =========================== */

/* Shell adds a little padding from screen edge */
.ticket-drawer-shell {
  padding: 16px 16px 16px 0;
}

/* Main card */
.ticket-drawer {
  background: #ffffff;
  border-radius: 18px 0 0 18px;
  border-left: 1px solid #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  animation: slideIn 0.25s ease-out;
}

/* Sticky header */
.ticket-drawer-header {
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 5;
}

/* Footer */
.ticket-drawer-footer {
  padding: 10px 18px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

/* Scrollable body */
.ticket-drawer-body {
  background: #f9fafb;
}

.ticket-drawer-scroll {
  overflow-y: auto;
  padding-bottom: 12px;
}

/* Typography */
.td-ref {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.td-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.td-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.td-section-title {
  font-size: 16px !important;
  font-weight: 600;
  color: #111827;
}

.td-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.td-value {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.td-muted {
  font-size: 11px;
  color: #9ca3af;
}

.td-description {
  font-size: 13px;
  color: #374151;
  margin-top: 4px;
}

/* Sections */
.td-section {
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.td-section:nth-of-type(odd) {
  background: #f9fafb;
}

/* Inputs */
.td-comment-input {
  border-radius: 10px;
  resize: vertical;
}

.td-select {
  border-radius: 10px;
}

.td-primary-btn {
  border-radius: 999px;
  padding-inline: 18px;
}

.td-header-btn {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Timeline */
.td-timeline-list {
  position: relative;
  margin-left: 4px;
}

.td-timeline-list::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.td-timeline-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
}

.td-timeline-dot {
  position: absolute;
  left: 4px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.td-timeline-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.td-author {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.td-meta {
  font-size: 11px;
  color: #6b7280;
}

.td-timeline-text {
  font-size: 13px;
  color: #374151;
  margin-top: 6px;
}

/* Thumbnails (reuse your existing size, just ensure round corners) */
.ticket-attachment-thumb img.ticket-attachment-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

/* make body + scroll area actually shrink & scroll */
.ticket-drawer-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* 🔑 allows child to shrink */
}

.ticket-drawer-scroll {
  flex: 1 1 auto;
  /* use available space */
  min-height: 0;
  /* 🔑 needed for scrolling */
  overflow-y: auto;
  padding-bottom: 12px;
  /* keep your padding if you want */
  -webkit-overflow-scrolling: touch;
}

/* Make ticket side panel flush with top, bottom and right edge */
.ticket-drawer-shell {
  padding: 0 !important;
  /* remove gaps */
}

.ticket-drawer {
  height: 100%;
  border-radius: 0 0 0 18px;
  /* only left top/bottom rounded */
}

/* base section */
.td-section {
  padding: 18px 22px;
  /* was 14/20, a bit tighter */
}

/* you can tweak individually if you want */
.td-section.td-update {
  padding-top: 20px;
  padding-bottom: 20px;
}

.td-section.td-timeline {
  padding-top: 18px;
  padding-bottom: 22px;
}

/* generic inline icon+label */
.td-inline-center {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* make Iconify icons not sit on the text baseline */
.td-inline-center .iconify,
.td-header-btn .iconify,
.ticket-gallery-close .iconify {
  display: block;
  line-height: 1;
}

/* optional small size token for header icons */
.td-icon-sm {
  font-size: 16px;
}

/* ensure Iconify icons use normal font, not Material ligatures */
.ticket-drawer .iconify {
  font-family: inherit !important;
}

/* make file input look nicer & vertically centered */
.td-file-input[type="file"] {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.25;
  height: 40px;
}

/* small preview thumbnails for selected images */
.td-attach-previews {
  margin-top: 4px;
}

/* thumbnail box */
.td-attach-thumb-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.td-attach-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* remove (X) button on top-right of thumbnail */
.td-attach-remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.td-attach-remove-btn .td-attach-remove-icon {
  font-size: 11px;
  line-height: 1;
}

/* header close “×” – always visible, centered */
.td-header-btn {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.td-header-close {
  display: block;
  font-size: 18px;
  line-height: 1;
}

/* keep material toggle vertically centered with the select */
.td-material-toggle .form-check-input {
  margin-top: 0;
}

/* spacing & separator above selected image previews */
.td-attach-previews {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dashed #e5e7eb;
}

/* ============================
   Tickets – analytics + table (tk-)
   ============================ */

/* KPI row */
.tk-summary-row .tk-kpi-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.tk-summary-row .tk-kpi-card .card-body {
  padding: 12px 14px;
}

.tk-summary-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tk-summary-value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.tk-summary-sub {
  margin-top: 4px;
  font-size: 11px;
  color: #9ca3af;
}

.tk-summary-pill {
  margin-top: 6px;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.tk-kpi-icon {
  font-size: 20px;
  color: #9ca3af;
}

/* Analytics cards */
.tk-analytics-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.tk-analytics-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.tk-analytics-caption {
  font-size: 11px;
  color: #9ca3af;
}

.tk-progress {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background-color: #f3f4f6;
}

.tk-progress .progress-bar {
  border-radius: 999px;
}

.tk-progress-group {
  font-size: 12px;
}

.tk-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Table wrapper */
.tk-table-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.tk-table-wrap {
  border-radius: 14px;
}

/* Compact table look like your other modules */
.tk-table {
  width: 100%;
  table-layout: fixed;
  font-size: 0.875rem;
}

.tk-table thead {
  background: #f9fafb;
}

.tk-table thead th {
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb !important;
  white-space: nowrap;
}

.tk-table tbody td {
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
  border-color: #e5e7eb;
}

.tk-table tbody tr.ticket-row:hover {
  background-color: #f9fafb;
}

.tk-table .xsmall {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Slightly tighter line-height inside badge chips */
.tk-table .badge {
  line-height: 1.2;
}

.tk-progress {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background-color: #f3f4f6;
}

.tk-progress .progress-bar {
  height: 100%;
  /* 🔑 */
}

/* Keep your existing slideIn keyframes; already defined above */



/* -----------------------------
   TABLE SCROLLBAR & BASE STYLES
------------------------------ */

.table-responsive {
  overflow-x: auto;
}

.table-responsive::-webkit-scrollbar {
  display: none;
  /* Chrome, Edge */
}

.table-responsive {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------------------------------
   MAIN CARD WRAPPER (stays same)
---------------------------------- */
.update-student-card {
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

/* ---------------------------------
   CARD BODY (generic)
---------------------------------- */
.update-student-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ---------------------------------
   LIST VIEW (Step 0)
   → keeps your fixed-height behavior
---------------------------------- */
.update-student-body--list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* wrapper around table + pagination */
.update-results {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* scrollable table area: only H-scroll, let dropdown overflow vertically */
.update-results-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  /* 🔑 don’t clip the dropdown vertically */
  z-index: 1;
}

/* just bump z-index, don't mess with positioning */
.update-student-card .dropdown-menu {
  position: absolute !important;
  z-index: 2000;
  /* sits above table content */
}



.rm-scroll-x {
  overflow-x: auto;
}

/* ---------------------------------
   WIZARD VIEW (Steps 1–3)
   → NO fixed height
   → NO forced internal scroll
---------------------------------- */
.update-student-body--wizard {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  /* no internal scroll for the wizard */
  overflow-y: visible;
  /* or just delete this line entirely */
  min-height: auto;
  /* lets content grow naturally */
}



.update-student-card {
  height: calc(100vh - 72px);
  /* adjust to your header */
  display: flex;
  flex-direction: column;
}

.update-student-body {
  flex: 1 1 auto;
  min-height: 0;
  /* critical */
  display: flex;
  flex-direction: column;
}


.dashboard-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  /* critical */
}

.navbar-header {
  flex: 0 0 auto;
}

.dashboard-main-body {
  flex: 1 1 auto;
  min-height: 0;
  /* CRITICAL: allows scroll */
  overflow-y: auto;
  /* scrolls content, not the page */
}

.d-footer {
  flex: 0 0 auto;
  padding: 12px 24px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  z-index: 5;
}


.missed-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1050;
}

.missed-drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.missed-drawer {
  position: absolute;
  top: 0;
  right: -380px;
  width: 360px;
  max-width: 100%;
  height: 100%;
  background: #ffffff;
  box-shadow: -12px 0 30px rgba(15, 23, 42, 0.18);
  padding: 16px 18px;
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
}

.missed-drawer.open {
  right: 0;
}

.missed-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
}

.missed-student-row {
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 0;
}

.text-xxs {
  font-size: 0.7rem;
}

.text-xs {
  font-size: 0.8rem;
}

.text-sm {
  font-size: 0.9rem;
}

.px-6 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}


/* Base sticky Actions column */
.update-student-card td.rm-sticky-actions {
  position: sticky;
  right: 0;
  background: var(--bs-body-bg, #fff);
  box-shadow: -4px 0 4px rgba(0, 0, 0, 0.03);
  z-index: 1;             /* base level for all sticky cells */
}

/* Allow dropdown to overflow vertically */
.update-results-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
}

/* Base sticky Actions column */
.update-student-card td.rm-sticky-actions {
  position: sticky;
  right: 0;
  background: var(--bs-body-bg, #fff);
  box-shadow: -4px 0 4px rgba(0, 0, 0, 0.03);
  z-index: 1; /* default */
}

/* When this cell has an open dropdown, bring the whole cell above others */
.update-student-card td.rm-sticky-actions:has(.dropdown-menu.show) {
  z-index: 10; /* higher than the other sticky cells */
}

/* Let dropdown overflow vertically inside scroll container */
.update-results-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
}

/* Menu itself just needs to sit above table content */
.update-student-card .dropdown-menu {
  position: absolute !important;
  z-index: 11;
}


/* LIST MODE BODY: header/filters, table area, pagination */
.update-student-body--list {
  display: grid;
  grid-template-rows: auto 1fr auto; /* filters | table | pagination */
  min-height: calc(100vh - 220px);   /* adjust this offset to match your header/top bar */
  /* 220px is just a starting guess – tweak it until the card bottom lines up with viewport */
}

/* Table “slot” row – must be allowed to shrink */
.update-results {
  min-height: 0;
}

/* Scroll wrapper must take full row height */
.update-results-scroll {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

/* Make the table fill its scroll wrapper */
.update-results-scroll > table {
  height: 100%;
}

