/**
 * PVNet Customer Portal — mobile/tablet responsive styles.
 * Tablet/off-canvas: max-width 992px. Phone-specific: max-width 600px.
 * Desktop (≥993px) is unchanged.
 */

/* ========== Tablet (601–992px): drawer sidebar, scrollable wide tables ========== */
@media (max-width: 992px) {
  body.has-fixed-sidenav {
    padding-left: 0 !important;
  }

  body.has-fixed-sidenav main,
  body.has-fixed-sidenav main .container,
  body.has-fixed-sidenav main > div:not(.sidenav):not(.sidenav-overlay) {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #sidenav-left.sidenav-fixed,
  #sidenav-left-guest.sidenav-guest.sidenav-fixed {
    transform: translateX(-105%) !important;
  }

  #sidenav-left.sidenav-fixed.sidenav-open,
  #sidenav-left-guest.sidenav-guest.sidenav-fixed.sidenav-open,
  #sidenav-left.sidenav.open,
  #sidenav-left-guest.sidenav-guest.open {
    transform: translateX(0) !important;
  }

  #sidenav-left-guest.sidenav-guest,
  #sidenav-left.sidenav-guest,
  ul#sidenav-left.sidenav {
    width: 85vw !important;
    max-width: 360px !important;
  }

  /* Wide tables scroll inside their container, not the whole page */
  body.has-fixed-sidenav main .table-container,
  body.has-fixed-sidenav main .table-scroll-x,
  .catalog-list-page .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  body.has-fixed-sidenav main .table-container table,
  .catalog-list-page .table-container #datatable.catalog-class-table {
    min-width: 900px;
  }

  /* Logged-in camps registration: hide fixed checkout rail; use header cart + card/table layout */
  .catalog-camp-reg-page .checkout {
    display: none !important;
  }

  .enrolled-camps-page .background_header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }

  /* Schedule / FullCalendar grids */
  .student-schedule-page .schedule-calendar-scroll,
  .student-schedule-page #calendar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .student-schedule-page #calendar .fc-view-container {
    min-width: 640px;
  }

  .student-schedule-page .slot-row select,
  .student-schedule-page .slot-row input[type="time"] {
    min-height: 44px;
    font-size: 16px;
  }
}

/* Desktop: collapsible filter summary hidden */
@media (min-width: 601px) {
  .catalog-mobile-filters__summary {
    display: none !important;
  }
  .catalog-mobile-filters > .catalog-controls-row {
    display: flex;
  }
}

/* ========== Phones (≤600px) ========== */
@media (max-width: 600px) {
  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  body.has-fixed-sidenav {
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.has-fixed-sidenav *,
  body.has-fixed-sidenav *::before,
  body.has-fixed-sidenav *::after {
    box-sizing: border-box;
  }

  body.has-fixed-sidenav main,
  body.has-fixed-sidenav main .container,
  body.has-fixed-sidenav main > div:not(.sidenav):not(.sidenav-overlay) {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box;
  }

  body.has-fixed-sidenav {
    padding-left: 0 !important;
  }

  body,
  input,
  button,
  select,
  textarea,
  table,
  .btn,
  .btn-small,
  label,
  .input-field label {
    font-size: 16px !important;
  }

  small,
  .small,
  .help-text,
  .catalog-lang-label {
    font-size: 13px !important;
  }

  h1 { font-size: 24px !important; }
  h2, .catalog-month-cal__title { font-size: 21px !important; }
  h3, h4, .card-title { font-size: 18px !important; }
  h5, h6 { font-size: 16px !important; }

  img,
  video,
  canvas,
  svg {
    max-width: 100%;
    height: auto;
  }

  /* —— Mobile header (spacing matches style.css pvnet-mobile-header) —— */
  .navbar-fixed .nav-wrapper.pvnet-mobile-header .brand-logo {
    max-width: calc(100vw - 180px);
  }

  .pvnet-cart-trigger {
    min-height: 44px;
    display: flex !important;
    align-items: center;
  }

  .pvnet-cart-trigger span:not(.pvnet-cart-count) {
    font-size: 14px !important;
  }

  /* —— Sidebar drawer —— */
  #sidenav-left-guest.sidenav-guest,
  #sidenav-left.sidenav-guest,
  #sidenav-left.sidenav-guest.sidenav-fixed,
  ul#sidenav-left.sidenav.sidenav-fixed {
    width: 85vw !important;
    max-width: 360px !important;
  }

  #sidenav-left-guest.sidenav-guest.sidenav-fixed:not(.sidenav-open),
  #sidenav-left.sidenav-guest.sidenav-fixed:not(.sidenav-open) {
    transform: translateX(-105%) !important;
  }

  #sidenav-left-guest a.collection-item,
  #sidenav-left a.collection-item,
  #sidenav-left-guest .sidenav_big,
  #sidenav-left .sidenav_big,
  #sidenav-left-guest .collapsible-header,
  #sidenav-left .collapsible-header,
  #sidenav-left .collapsible-body ul li a.sidenav_big {
    min-height: 48px !important;
    max-height: none !important;
    height: auto !important;
    font-size: 16px !important;
    padding: 12px 16px !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  #sidenav-left .collapsible-header {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  }

  #sidenav-left .collapsible li.active > .collapsible-body {
    display: block !important;
    overflow: visible !important;
  }

  #sidenav-left .sidenav-footer-copy p {
    position: static !important;
  }

  #sidenav-left-guest .material-icons,
  #sidenav-left .material-icons {
    font-size: 22px !important;
    margin-right: 12px !important;
  }

  #sidenav-left-guest .logo_text,
  #sidenav-left .logo_text {
    font-size: 16px !important;
  }

  /* —— Forms & buttons (global) —— */
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea,
  .browser-default {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    font-size: 16px !important;
    padding: 10px 12px !important;
  }

  .input-field label {
    font-size: 15px !important;
    margin-bottom: 6px;
  }

  .btn:not(.btn-floating),
  .btn-large:not(.btn-floating),
  .btn-small:not(.btn-floating),
  button.btn:not(.btn-floating) {
    min-height: 44px !important;
    line-height: 1.3 !important;
    padding: 10px 14px !important;
    font-size: 16px !important;
    white-space: normal !important;
  }

  /* —— Login / signup (not account page) —— */
  .auth-card,
  form:not(.account-info-page):not(.add-student-page) .login-box .card,
  form:not(.account-info-page):not(.add-student-page) .fixed_div .card {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin: 24px auto !important;
    padding: 20px !important;
  }

  form:not(.account-info-page):not(.add-student-page) .login-box .card {
    padding: 20px 20px 20px 14px !important;
  }

  form:not(.account-info-page):not(.add-student-page) .login-box .card .card-content,
  form:not(.account-info-page):not(.add-student-page) .login-box .card .card-action {
    padding-left: 10px !important;
    padding-right: 16px !important;
  }

  .login-box .card-title,
  .auth-card .card-title {
    font-size: 20px !important;
  }

  form:not(.account-info-page):not(.add-student-page) .login-box .card-action .btn,
  .login-form button[type="submit"] {
    width: 100% !important;
    min-height: 44px !important;
  }

  form:not(.account-info-page):not(.add-student-page) .login-box .col.s12,
  form:not(.account-info-page):not(.add-student-page) .login-box a {
    font-size: 14px !important;
    line-height: 1.5;
    float: none !important;
  }

  .login-box .row > .col,
  .login-box .row > [class*="col"] {
    padding-left: 0 !important;
  }

  .login-box .input-field {
    padding-left: 0 !important;
  }

  .login-box .input-field label {
    left: 0 !important;
  }

  .background_header {
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  /* —— Checkout / packages —— */
  .packages-wrap,
  .checkout-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  .checkout-wrap > h4 {
    margin-top: 16px !important;
    margin-bottom: 12px !important;
    font-size: 22px !important;
    line-height: 1.3;
  }

  .checkout-wrap > p.grey-text {
    margin: 0 0 20px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .checkout-grid {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .checkout-main,
  .checkout-right-rail {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .checkout-right-rail {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .checkout-aside {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 20px 16px !important;
    margin: 0 !important;
  }

  .checkout-class-card,
  .checkout-empty-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
  }

  .checkout-empty-card {
    padding: 36px 20px !important;
  }

  .checkout-empty-card .material-icons {
    margin-bottom: 16px !important;
  }

  .checkout-empty-card p {
    margin-bottom: 20px !important;
    font-size: 16px !important;
  }

  .checkout-continue-shopping {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .order-summary-line,
  .order-summary-line-inner {
    width: 100% !important;
    font-size: 16px !important;
  }

  .order-subtotal-row,
  .order-total-row {
    font-size: 17px !important;
  }

  .checkout-wrap .btn,
  .enroll-btn,
  .btn-checkout-wide {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .package-header,
  .pkg-class-row {
    flex-direction: column;
  }

  .checkout-also-purchased .pkg-class-row-right {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .checkout-also-purchased .pkg-class-name .expand-icon {
    flex-shrink: 0;
  }

  /* —— Modals —— */
  .modal,
  .modal.modal-fixed-footer {
    width: calc(100% - 24px) !important;
    max-height: 90vh;
    left: 12px !important;
    right: 12px !important;
    margin: auto;
  }

  .modal .modal-content {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    font-size: 16px !important;
  }

  .modal-footer {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
    justify-content: stretch;
    height: auto !important;
    padding: 12px !important;
  }

  .modal-footer .btn,
  .modal-footer a.btn {
    flex: 1 1 auto;
    min-height: 44px !important;
    font-size: 16px !important;
  }

  /* —— Class catalog: controls —— */
  .catalog-list-page .catalog-top-bar,
  .catalog-list-page .catalog-content-flush {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .catalog-mobile-filters {
    width: 100%;
  }

  .catalog-mobile-filters__summary {
    display: list-item;
    font-size: 16px;
    font-weight: 600;
    min-height: 44px;
    padding: 10px 4px;
    cursor: pointer;
    list-style: none;
  }

  .catalog-mobile-filters__summary::-webkit-details-marker {
    display: inline-block;
    margin-right: 8px;
  }

  .catalog-list-page .catalog-controls-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .catalog-list-page .catalog-toolbar-group,
  .catalog-list-page .catalog-toolbar-actions,
  .catalog-list-page .catalog-toolbar-language,
  .catalog-list-page .catalog-toolbar-search {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    margin-left: 0 !important;
  }

  .catalog-list-page .catalog-toolbar-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .catalog-list-page .catalog-toolbar-actions .catalog-hide-on-phone,
  .catalog-list-page .catalog-controls-row .catalog-hide-on-phone {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
  }

  .catalog-list-page .catalog-controls-row .btn,
  .catalog-list-page .view-switch .switch-label {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    font-size: 16px !important;
    white-space: normal !important;
    text-align: center;
  }

  .catalog-list-page .switch-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .catalog-list-page #language-select {
    min-height: 44px !important;
  }

  .catalog-list-page .catalog-toolbar-search,
  .catalog-list-page .catalog-dt-search-wrap,
  .catalog-list-page #catalog-search-slot {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    margin-left: 0 !important;
  }

  .catalog-list-page #datatable_filter,
  .catalog-list-page .dataTables_filter,
  .catalog-list-page #catalog-search-slot .dataTables_filter {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
  }

  .catalog-list-page #datatable_filter label,
  .catalog-list-page .dataTables_filter label {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .catalog-list-page .dt-search,
  .catalog-list-page .dt-search label {
    width: 100% !important;
    display: block !important;
  }

  .catalog-list-page .dt-search input,
  .catalog-list-page .dt-search .dt-input,
  .catalog-list-page #datatable_filter input[type="search"],
  .catalog-list-page .dataTables_filter input[type="search"],
  .catalog-list-page #catalog-controls-row #datatable_filter input,
  .catalog-list-page #catalog-controls-row .dt-search input,
  .catalog-list-page #catalog-search-slot input[type="search"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
  }

  .catalog-list-page #catalog-controls-row .catalog-toolbar-search,
  .catalog-list-page #catalog-controls-row .catalog-dt-search-wrap,
  .catalog-list-page #catalog-controls-row #catalog-search-slot {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    align-self: stretch !important;
  }

  .catalog-list-page #catalog-controls-row #datatable_filter,
  .catalog-list-page #catalog-controls-row .dt-search,
  .catalog-list-page #catalog-search-slot .dt-search {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  .catalog-list-page #catalog-controls-row #datatable_filter label,
  .catalog-list-page #catalog-controls-row .dt-search label {
    width: 100% !important;
    display: block !important;
  }

  /* Hide DataTables pagination (1.x and 2.x) */
  .catalog-list-page .dt-paging,
  .catalog-list-page .dataTables_paginate,
  .catalog-list-page .dataTables_wrapper .dataTables_paginate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
  }

  /* —— Class catalog: card layout (no horizontal page scroll) —— */
  .catalog-list-page .table-container,
  .catalog-list-page .table-container .row,
  .catalog-list-page .table-container > div,
  .catalog-list-page .dt-container,
  .catalog-list-page .dt-container .dt-layout-table,
  .catalog-list-page .dt-container .dt-scroll,
  .catalog-list-page .dt-container .dt-scroll-body,
  .catalog-list-page #datatable_wrapper,
  .catalog-list-page .dataTables_wrapper,
  .catalog-list-page .dataTables_scroll,
  .catalog-list-page .dataTables_scrollBody {
    overflow-x: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.has-fixed-sidenav main #datatable.catalog-class-table td,
  body.has-fixed-sidenav main #datatable.catalog-class-table th,
  body.has-fixed-sidenav main #datatable.catalog-class-table a {
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  #datatable.catalog-class-table,
  table.catalog-class-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-collapse: separate;
    border-spacing: 0 12px;
    table-layout: fixed;
  }

  #datatable.catalog-class-table thead {
    display: none !important;
  }

  #datatable.catalog-class-table tbody {
    display: block;
    width: 100%;
  }

  #datatable.catalog-class-table tbody tr {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
  }

  #datatable.catalog-class-table tbody td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 6px 0 !important;
    border: none !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-align: left !important;
    box-sizing: border-box;
  }

  #datatable.catalog-class-table tbody td[style*="width"] {
    width: 100% !important;
    min-width: 0 !important;
  }

  #datatable.catalog-class-table tbody tr {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* Class name row with select checkbox pulled up beside the title */
  #datatable.catalog-class-table tbody td[data-catalog-field="name"] {
    order: 1;
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding-top: 0 !important;
    padding-bottom: 10px !important;
    padding-left: 38px !important;
    border-bottom: 1px solid #eceff1;
    margin-bottom: 4px;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="name"] a {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    display: inline;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="day"],
  #datatable.catalog-class-table tbody td[data-catalog-field="meeting"],
  #datatable.catalog-class-table tbody td[data-catalog-field="type"] {
    display: none !important;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="days"],
  #datatable.catalog-class-table tbody td.catalog-days-summary-cell {
    display: block !important;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="id"] {
    order: 2;
    display: block !important;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="id"] label {
    position: absolute;
    top: 14px;
    left: 16px;
    margin: 0;
    z-index: 1;
  }
  #datatable.catalog-class-table tbody td[data-catalog-field="start"] { order: 3; }
  #datatable.catalog-class-table tbody td[data-catalog-field="end"] { order: 4; }
  #datatable.catalog-class-table tbody td[data-catalog-field="days"] { order: 5; }
  #datatable.catalog-class-table tbody td[data-catalog-field="time"] { order: 6; }
  #datatable.catalog-class-table tbody td[data-catalog-field="age"] { order: 7; }
  #datatable.catalog-class-table tbody td[data-catalog-field="price"] { order: 8; }
  #datatable.catalog-class-table tbody td[data-catalog-field="cart"] { order: 9; }

  #datatable.catalog-class-table tbody td[data-catalog-field="id"]::before {
    content: "ID: ";
    font-weight: 600;
    color: #546e7a;
    font-size: 13px;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="start"]::before {
    content: "Starts: ";
    font-weight: 600;
    color: #546e7a;
    font-size: 13px;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="end"]::before {
    content: "Ends: ";
    font-weight: 600;
    color: #546e7a;
    font-size: 13px;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="days"]::before {
    content: "Days: ";
    font-weight: 600;
    color: #546e7a;
    font-size: 13px;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="time"]::before {
    content: "Time: ";
    font-weight: 600;
    color: #546e7a;
    font-size: 13px;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="age"]::before {
    content: "Min. age: ";
    font-weight: 600;
    color: #546e7a;
    font-size: 13px;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="price"]::before {
    content: "Price: ";
    font-weight: 600;
    color: #546e7a;
    font-size: 13px;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="cart"]::before {
    content: "";
    display: block;
    margin-top: 4px;
  }

  #datatable.catalog-class-table tbody td[data-catalog-field="cart"] .btn-small {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 16px !important;
    margin-top: 4px;
  }

  .catalog-camp-reg-page .catalog-student-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
  }

  .catalog-camp-reg-page .catalog-student-row #dropdown-display {
    width: 100% !important;
    font-size: 16px !important;
    padding: 8px 0 !important;
  }

  .catalog-camp-reg-page .catalog-top-bar,
  .catalog-camp-reg-page .table-container.catalog-content-flush {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box;
  }

  /* —— Your Enrolled Camps —— */
  .enrolled-camps-page main {
    padding: 8px !important;
  }

  .enrolled-camps-page .container.fixed_div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .enrolled-camps-page .enrolled-student-card {
    margin: 10px 0 0 0 !important;
    width: 100% !important;
  }

  .enrolled-camps-page .enrolled-student-card:first-child {
    margin-top: 0 !important;
  }

  .enrolled-camps-page .card-content {
    padding: 12px 14px !important;
  }

  .enrolled-camps-page .card-title {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
  }

  .enrolled-camps-page .card-action {
    padding: 0 !important;
    margin: 0 !important;
    border-top: none !important;
  }

  .enrolled-camps-page .collection {
    margin: 0 !important;
    border: none !important;
  }

  .enrolled-camps-page .collection-item.avatar {
    min-height: 0 !important;
    padding: 10px 52px 10px 52px !important;
  }

  .enrolled-camps-page .collection-item.avatar .circle {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
  }

  .enrolled-camps-page .collection-item .title {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  .enrolled-camps-page .collection-item p {
    margin: 2px 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .enrolled-camps-page .collection-item .class-description-content {
    display: none !important;
  }

  .enrolled-camps-page .collection-item .secondary-content.btn {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 8px !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 10px !important;
  }

  /* —— Calendar view —— */
  .catalog-list-page #calendar.catalog-month-cal-host,
  .catalog-list-page.catalog-view-calendar #calendar {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
  }

  .catalog-list-page .catalog-month-cal {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 16px;
  }

  .catalog-list-page .catalog-month-cal__cell--head {
    font-size: 13px !important;
    padding: 6px 2px !important;
  }

  .catalog-list-page .catalog-month-cal__event {
    font-size: 13px !important;
    padding: 6px !important;
  }

  .catalog-list-page .catalog-month-cal__nav.btn {
    min-height: 44px !important;
    min-width: 44px !important;
  }

  /* —— All other portal pages —— */
  body.has-fixed-sidenav .container,
  body.alumni-portal .container,
  body.has-fixed-sidenav main .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box;
  }

  body.has-fixed-sidenav .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.has-fixed-sidenav .row > .col,
  body.has-fixed-sidenav .row > [class*="col"] {
    width: 100% !important;
    margin-left: 0 !important;
    left: auto !important;
    right: auto !important;
  }

  body.has-fixed-sidenav .fixed_div,
  body.has-fixed-sidenav .valign-wrapper.row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  body.has-fixed-sidenav .pull-m2,
  body.has-fixed-sidenav .pull-l2,
  body.has-fixed-sidenav [class*="pull-"] {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
  }

  body.has-fixed-sidenav main,
  body.alumni-portal main {
    overflow-x: hidden;
  }

  body.has-fixed-sidenav main table,
  body.alumni-portal main table {
    font-size: 16px !important;
    max-width: 100%;
  }

  body.has-fixed-sidenav main .table-container,
  body.has-fixed-sidenav main .dt-container,
  body.has-fixed-sidenav .dataTables_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
  }

  body.has-fixed-sidenav main pre,
  body.has-fixed-sidenav main code,
  body.has-fixed-sidenav main iframe,
  body.has-fixed-sidenav main img:not(.material-icons):not(.alumni-portal-sidebar-logo) {
    max-width: 100% !important;
    height: auto;
  }

  body.has-fixed-sidenav main a,
  body.has-fixed-sidenav main p,
  body.has-fixed-sidenav main li,
  body.has-fixed-sidenav main td,
  body.has-fixed-sidenav main th,
  body.alumni-portal main {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.has-fixed-sidenav main td,
  body.has-fixed-sidenav main th {
    white-space: normal !important;
  }

  .student-planning-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 8px 24px !important;
    box-sizing: border-box;
  }

  .student-planning-wrap.container.fixed_div {
    padding-top: 16px !important;
  }

  .student-planning-wrap .card .card-content {
    padding: 16px 12px !important;
    overflow: hidden;
  }

  .student-planning-wrap .card-title {
    font-size: 20px !important;
    line-height: 1.3;
  }

  .student-planning-wrap .helper,
  .student-planning-wrap .direction {
    font-size: 14px !important;
    line-height: 1.45;
  }

  .student-planning-wrap .step-box {
    padding: 14px 12px 12px !important;
    box-sizing: border-box;
  }

  .student-planning-wrap .step-box.step-3 {
    overflow: hidden;
  }

  .student-planning-wrap .step-box.step-1 {
    margin-bottom: 16px;
  }

  .student-planning-wrap .card-content > .row:first-of-type > .col.s12.m4,
  .student-planning-wrap .card-content > .row:first-of-type > .col.s12.m8 {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .student-planning-wrap .card-content > .row:first-of-type > .col.s12.m8 {
    margin-top: 4px;
  }

  .student-planning-wrap .age-input-field {
    display: inline-block;
    width: 4.5rem;
    max-width: 55%;
    margin-top: 8px;
    border-bottom: 1px solid #64b5f6;
    box-sizing: border-box;
  }

  .student-planning-wrap .age-input-field:focus-within {
    border-bottom-width: 2px;
    border-bottom-color: #42a5f5;
  }

  .student-planning-wrap .age-input {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 36px;
    margin: 0 !important;
    padding: 4px 0 6px !important;
    font-size: 16px !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
  }

  .student-planning-wrap .age-input:focus,
  .student-planning-wrap .age-input:focus-visible {
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .student-planning-wrap .path-options {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .student-planning-wrap .path-options label {
    min-height: 44px;
    padding: 4px 0;
  }

  /* Weekly availability — card-style rows instead of cramped table columns */
  .student-planning-wrap table.student-avail-table,
  .student-planning-wrap table.striped.student-avail-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .student-planning-wrap table.student-avail-table thead {
    display: none !important;
  }

  .student-planning-wrap table.student-avail-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .student-planning-wrap table.student-avail-table tbody tr {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px 12px;
    width: 100% !important;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .student-planning-wrap table.student-avail-table tbody td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
    border: none !important;
  }

  .student-planning-wrap table.student-avail-table tbody td:before {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #616161;
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .student-planning-wrap #student-avail-body td:nth-child(1) {
    flex: 0 0 100%;
  }

  .student-planning-wrap #student-avail-body td:nth-child(1):before {
    content: "Day";
  }

  .student-planning-wrap #student-avail-body td:nth-child(2),
  .student-planning-wrap #student-avail-body td:nth-child(3) {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    max-width: calc(50% - 6px);
  }

  .student-planning-wrap #student-avail-body td:nth-child(2) {
    padding-bottom: 8px !important;
    padding-right: 6px !important;
  }

  .student-planning-wrap #student-avail-body td:nth-child(3) {
    padding-bottom: 8px !important;
    padding-left: 6px !important;
  }

  .student-planning-wrap #student-avail-body td:nth-child(2):before {
    content: "Available from";
    font-size: 11px;
    line-height: 1.25;
  }

  .student-planning-wrap #student-avail-body td:nth-child(3):before {
    content: "Available until";
    font-size: 11px;
    line-height: 1.25;
  }

  .student-planning-wrap #student-avail-body td:nth-child(4) {
    flex: 0 0 100%;
    padding-top: 2px !important;
  }

  .student-planning-wrap .avail-dow,
  .student-planning-wrap .avail-start,
  .student-planning-wrap .avail-end {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px;
    font-size: 16px !important;
    box-sizing: border-box;
  }

  .student-planning-wrap .avail-time-field {
    display: block;
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid #bdbdbd;
    box-sizing: border-box;
  }

  .student-planning-wrap .avail-time-field:focus-within {
    border-bottom-width: 2px;
    border-bottom-color: #757575;
  }

  .student-planning-wrap .avail-start,
  .student-planning-wrap .avail-end {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px;
    padding: 6px 0 8px !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none;
  }

  .student-planning-wrap .avail-start:focus,
  .student-planning-wrap .avail-end:focus,
  .student-planning-wrap .avail-start:focus-visible,
  .student-planning-wrap .avail-end:focus-visible {
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .student-planning-wrap #student-avail-body td:last-child {
    width: 100% !important;
  }

  .student-planning-wrap #student-avail-body td:last-child button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 12px !important;
    border: none !important;
    border-radius: 4px;
    text-align: center;
    line-height: 1 !important;
    background-color: #e53935 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  }

  .student-planning-wrap #student-avail-add {
    width: 100% !important;
    margin-top: 12px !important;
    min-height: 44px;
    height: auto !important;
    line-height: 1.3 !important;
    padding: 10px 16px !important;
    white-space: normal;
  }

  .student-planning-wrap .step-4-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
  }

  .student-planning-wrap #student-planning-go {
    width: 100% !important;
    min-height: 44px;
    height: auto !important;
    line-height: 1.3 !important;
    padding: 12px 16px !important;
    white-space: normal;
  }

  .student-planning-wrap #student-planning-results {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .student-planning-wrap #student-planning-results table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    font-size: 14px !important;
  }

  .student-planning-wrap table.browser-default {
    font-size: 16px !important;
    display: block;
    width: 100% !important;
    overflow-x: auto;
  }

  .packages-wrap,
  .package-card,
  .checkout-class-card {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .dt-paging,
  .dataTables_paginate {
    display: none !important;
  }

  body.alumni-portal .navbar-fixed .nav-wrapper {
    height: 56px;
    min-height: 56px;
  }

  body.alumni-portal .brand-logo {
    font-size: 18px !important;
    font-weight: 600;
  }

  /* Login — home button flush right in card header */
  .login-card-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding-right: 4px;
    box-sizing: border-box;
  }

  .login-card-title span {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 8px;
  }

  .login-card-title .login-home-btn,
  .login-card-title .btn-floating {
    float: none !important;
    margin: 0 0 0 auto !important;
    flex-shrink: 0;
    position: relative;
    right: 0;
  }

  /* Account Information (/users) — mobile-only; desktop HTML/CSS unchanged */
  .account-info-page.container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 8px 16px !important;
    box-sizing: border-box;
  }

  .account-info-page.container.fixed_div {
    padding-top: 16px !important;
  }

  .account-info-page .login-box.row,
  .account-info-page .valign-wrapper.row {
    display: block !important;
    height: auto !important;
    margin: 0 !important;
  }

  .account-info-page .login-box .card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px;
  }

  .account-info-page .card .card-content {
    padding: 14px 12px 4px !important;
    overflow: hidden;
  }

  .account-info-page .card .card-action {
    padding: 0 12px 16px !important;
    margin: 0 !important;
    overflow: hidden;
  }

  .account-info-page .card .card-content > .row:first-child {
    margin-bottom: 12px !important;
  }

  .account-info-page .card .card-title {
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 !important;
    color: #1a237e;
  }

  .account-info-page .card .card-action .input-field {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 0 16px !important;
  }

  .account-info-page .card .card-action .row:first-child .input-field.col.s6,
  .account-info-page .card .card-action .row:nth-child(2) .input-field.col.s12 {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .account-info-page .card .input-field .prefix {
    display: none !important;
  }

  .account-info-page .card .input-field label {
    order: 1;
    position: static !important;
    left: 0 !important;
    transform: none !important;
    display: block;
    font-size: 14px !important;
    font-weight: 600;
    color: #616161;
    margin: 0 0 4px !important;
    padding: 0;
    line-height: 1.3;
  }

  .account-info-page .card label[for="firstname"]::before { content: "First Name"; }
  .account-info-page .card label[for="lastname"]::before { content: "Last Name"; }
  .account-info-page .card label[for="email"]::before { content: "Email"; }
  .account-info-page .card label[for="firstname"]::before,
  .account-info-page .card label[for="lastname"]::before,
  .account-info-page .card label[for="email"]::before {
    display: block;
    font-size: 14px !important;
    font-weight: 600;
    color: #616161;
    line-height: 1.3;
  }
  .account-info-page .card label[for="firstname"],
  .account-info-page .card label[for="lastname"],
  .account-info-page .card label[for="email"] {
    font-size: 0 !important;
    color: transparent;
  }

  .account-info-page .card .input-field label.active {
    transform: none !important;
    font-size: 0 !important;
  }

  .account-info-page .card .input-field input {
    order: 2;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 0 6px !important;
    min-height: 0;
    height: auto !important;
    font-size: 16px !important;
    line-height: 1.4;
    color: #212121;
    box-sizing: border-box !important;
    border: none !important;
    border-bottom: 1px solid #bdbdbd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .account-info-page .card .input-field input:focus {
    border: none !important;
    border-bottom: 2px solid #3949ab !important;
    box-shadow: none !important;
    outline: none;
  }

  .account-info-page .card .input-field input:disabled {
    color: #212121 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #212121;
    border-bottom: 1px solid #bdbdbd !important;
  }

  .account-info-page .account-info-mobile-submit {
    margin: 20px 0 0 !important;
    padding: 0 !important;
  }

  .account-info-page .account-info-mobile-submit .col.s12 {
    padding: 0 !important;
  }

  .account-info-page .account-info-mobile-submit .btn {
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;
    height: auto !important;
    line-height: 1.3 !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
  }

  /* Student Accounts (/users/students) — mobile-only; desktop Materialize unchanged */
  .student-accounts-page.container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 8px 16px !important;
    box-sizing: border-box;
  }

  .student-accounts-page.container.fixed_div {
    padding-top: 16px !important;
  }

  .student-accounts-page .login-box.row,
  .student-accounts-page .valign-wrapper.row {
    display: block !important;
    height: auto !important;
    margin: 0 !important;
  }

  .student-accounts-page .login-box .card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px;
  }

  .student-accounts-page .card .card-content {
    padding: 14px 12px 4px !important;
    overflow: hidden;
  }

  .student-accounts-page .card .card-action {
    padding: 0 12px 16px !important;
    margin: 0 !important;
    overflow: hidden;
  }

  .student-accounts-page .card .card-content > .row:first-child {
    margin-bottom: 8px !important;
  }

  .student-accounts-page .card .card-content > .row:first-child .card-title {
    font-size: 20px !important;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 !important;
  }

  .student-accounts-page .card .card-action .input-field {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 0 16px !important;
  }

  .student-accounts-page .card .input-field .prefix {
    display: none !important;
  }

  .student-accounts-page .card .input-field label {
    order: 1;
    position: static !important;
    left: 0 !important;
    transform: none !important;
    display: block;
    font-size: 14px !important;
    font-weight: 600;
    color: #616161;
    margin: 0 0 4px !important;
    padding: 0;
    line-height: 1.3;
  }

  .student-accounts-page .card label[for^="email-"]::before { content: "Email"; }
  .student-accounts-page .card label[for^="dob-"]::before { content: "Birthday"; }
  .student-accounts-page .card label[for^="gender-"]::before { content: "Gender"; }
  .student-accounts-page .card label[for^="gradelevel-"]::before { content: "Grade"; }
  .student-accounts-page .card label[for^="school-"]::before { content: "School"; }
  .student-accounts-page .card label[for^="cell-phone-"]::before { content: "Cell phone"; }
  .student-accounts-page .card label[for^="email-"]::before,
  .student-accounts-page .card label[for^="dob-"]::before,
  .student-accounts-page .card label[for^="gender-"]::before,
  .student-accounts-page .card label[for^="gradelevel-"]::before,
  .student-accounts-page .card label[for^="school-"]::before,
  .student-accounts-page .card label[for^="cell-phone-"]::before {
    display: block;
    font-size: 14px !important;
    font-weight: 600;
    color: #616161;
    line-height: 1.3;
  }

  .student-accounts-page .card label[for^="email-"],
  .student-accounts-page .card label[for^="dob-"],
  .student-accounts-page .card label[for^="gender-"],
  .student-accounts-page .card label[for^="gradelevel-"],
  .student-accounts-page .card label[for^="school-"],
  .student-accounts-page .card label[for^="cell-phone-"] {
    font-size: 0 !important;
    color: transparent;
  }

  .student-accounts-page .card .input-field label.active {
    transform: none !important;
    font-size: 0 !important;
  }

  .student-accounts-page .card .input-field input {
    order: 2;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 0 6px !important;
    min-height: 0;
    height: auto !important;
    font-size: 16px !important;
    line-height: 1.4;
    color: #212121;
    box-sizing: border-box !important;
    border: none !important;
    border-bottom: 1px solid #bdbdbd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .student-accounts-page .card .input-field input:focus {
    border: none !important;
    border-bottom: 2px solid #3949ab !important;
    box-shadow: none !important;
    outline: none;
  }

  .student-accounts-page .card .row .two {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    padding-top: 14px !important;
    border-top: 1px solid #e0e0e0;
  }

  .student-accounts-page .card .row .two .prefix {
    display: none !important;
  }

  .student-accounts-page .card .row .two img.responsive-img {
    max-width: 120px;
    margin-top: 6px;
  }

  .student-accounts-page .student-accounts-mobile-submit {
    margin: 16px 0 0 !important;
    padding: 0 !important;
  }

  .student-accounts-page .student-accounts-mobile-submit .col.s12 {
    padding: 0 !important;
  }

  .student-accounts-page .student-accounts-mobile-submit .btn {
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 0 10px !important;
    font-size: 16px !important;
    text-align: center;
    box-sizing: border-box;
  }

  .student-accounts-page .student-accounts-mobile-submit .btn:last-child {
    margin-bottom: 0 !important;
  }

  /* Add Student (/users/addStudent) — mobile-only; desktop Materialize unchanged */
  .add-student-page.container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 8px 16px !important;
    box-sizing: border-box;
  }

  .add-student-page.container.fixed_div {
    padding-top: 16px !important;
  }

  .add-student-page .login-box.row,
  .add-student-page .valign-wrapper.row {
    display: block !important;
    height: auto !important;
    margin: 0 !important;
  }

  .add-student-page .login-box .card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px;
  }

  .add-student-page .card .card-content {
    padding: 14px 12px 4px !important;
    overflow: hidden;
  }

  .add-student-page .card .card-action {
    padding: 0 12px 16px !important;
    margin: 0 !important;
    overflow: hidden;
  }

  .add-student-page .card .card-content > .row:first-child {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px !important;
  }

  .add-student-page .card .card-content > .row:first-child > .col.s10,
  .add-student-page .card .card-content > .row:first-child > .col.s2 {
    width: auto !important;
    margin-left: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  .add-student-page .card .card-content > .row:first-child > .col.s10 {
    flex: 1 1 auto;
    min-width: 0;
  }

  .add-student-page .card .card-content > .row:first-child > .col.s2 {
    flex: 0 0 auto;
  }

  .add-student-page .card .card-title {
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 !important;
  }

  .add-student-page .card .card-content > .row:first-child .btn {
    width: auto !important;
    min-height: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .add-student-page .card .card-action .row {
    margin-bottom: 0 !important;
  }

  .add-student-page .card .card-action .input-field {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 4px;
    align-items: start;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 0 16px !important;
  }

  .add-student-page .card .card-action .input-field.col.s6,
  .add-student-page .card .card-action .input-field.col.s12 {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .add-student-page .card .input-field .prefix {
    grid-column: 1;
    grid-row: 1;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding-top: 2px;
    font-size: 22px !important;
    line-height: 1;
    color: #424242;
  }

  .add-student-page .card .input-field label {
    grid-column: 2;
    grid-row: 1;
    position: static !important;
    left: 0 !important;
    transform: none !important;
    display: block;
    font-size: 14px !important;
    font-weight: 400;
    color: #757575;
    margin: 0 !important;
    padding: 0;
    line-height: 1.3;
    width: auto !important;
  }

  .add-student-page .card .input-field label.active {
    transform: none !important;
    font-size: 14px !important;
    color: #757575;
  }

  .add-student-page .card .input-field > select {
    display: none !important;
  }

  .add-student-page .card .input-field input,
  .add-student-page .card .input-field .select-wrapper {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 0 6px !important;
    min-height: 0;
    height: auto !important;
    font-size: 16px !important;
    line-height: 1.4;
    color: #212121;
    box-sizing: border-box !important;
    border: none !important;
    border-bottom: 1px solid #bdbdbd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .add-student-page .card .input-field .select-wrapper input.select-dropdown {
    margin-bottom: 0 !important;
    height: auto !important;
    min-height: 28px;
  }

  .add-student-page .card .input-field input:focus,
  .add-student-page .card .input-field .select-wrapper input.select-dropdown:focus {
    border: none !important;
    border-bottom: 2px solid #26a69a !important;
    box-shadow: none !important;
    outline: none;
  }

  .add-student-page .card .input-field .select-wrapper .caret {
    right: 0;
    top: 6px;
  }

  .add-student-page #cell_phone_row .input-field {
    row-gap: 6px;
  }

  .add-student-page #cell_phone_row .no-cell-phone-checkbox {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 4px 0 0 !important;
    padding: 0 !important;
  }

  .add-student-page #cell_phone_row .no-cell-phone-checkbox label {
    grid-column: auto;
    grid-row: auto;
    position: static !important;
    transform: none !important;
    font-size: 14px !important;
    color: rgba(0, 0, 0, 0.6);
  }

  .add-student-page .cell-phone-disabled input {
    border-bottom-color: #e0e0e0 !important;
    background: #f5f5f5 !important;
  }

  .add-student-page .cell-phone-disabled .material-icons.prefix {
    color: #bdbdbd !important;
  }

  /* —— Student schedule page (≤600px) —— */
  .student-schedule-page .schedule-page-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .student-schedule-page .schedule-page-header h5 {
    display: block !important;
    margin: 0 !important;
    font-size: 18px !important;
  }

  .student-schedule-page .schedule-page-header .btn,
  .student-schedule-page .schedule-page-header .btn-flat {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    float: none !important;
    text-align: center;
  }

  .student-schedule-page .event-chip {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px !important;
  }

  .student-schedule-page .event-chip .delete-event-btn {
    align-self: flex-end;
    min-height: 44px;
    min-width: 44px;
  }

  .student-schedule-page .slot-row {
    flex-direction: column;
    align-items: stretch;
  }

  .student-schedule-page .slot-row select,
  .student-schedule-page .slot-row input[type="time"] {
    width: 100% !important;
    min-width: 0 !important;
  }

  .student-schedule-page #parse-btn,
  .student-schedule-page #voice-btn,
  .student-schedule-page form .btn {
    width: 100% !important;
    min-height: 44px !important;
  }

  .student-schedule-page #schedule-text {
    font-size: 16px !important;
    min-height: 120px;
  }

  /* —— Class description pages (classPage + catalog modals) —— */
  .class-desc-print-btn,
  .class-desc-print-col {
    display: none !important;
  }

  .class-desc-page .container,
  .class-desc-page-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box;
  }

  .class-desc-page .card,
  .class-desc-page-wrap .card {
    overflow: visible !important;
    margin: 0 !important;
  }

  .class-desc-page .card .card-content.class-print-wrapper,
  .class-desc-page-wrap .card .card-content {
    overflow: visible !important;
    padding: 16px 14px 12px !important;
    box-sizing: border-box;
  }

  .class-desc-page-header {
    overflow: visible !important;
    margin-bottom: 8px;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .class-desc-page-header .card-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 20px !important;
    line-height: 1.3;
    margin: 0 !important;
    padding-right: 4px;
  }

  .class-desc-page-header .class-desc-close-wrap {
    flex: 0 0 auto;
    margin-top: 2px;
    width: 40px;
    height: 40px;
  }

  .class-desc-page-header .btn-floating.btn-small {
    position: relative !important;
    float: none !important;
    margin: 0 !important;
    top: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    overflow: hidden;
    flex-shrink: 0;
  }

  .class-desc-page-header .btn-floating .material-icons {
    font-size: 22px !important;
    line-height: 1 !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    text-align: center;
  }

  .class-print-wrapper .print-order-summary {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .class-print-wrapper .print-order-summary > .col {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }

  .class-print-wrapper .print-order-summary .col.s2.no-print {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }

  .class-print-wrapper .print-order-summary .col.s2 .btn,
  .class-print-wrapper .print-order-summary .col.s2 a.btn {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    text-align: center;
  }

  .catalog-class-modal .modal-footer .class-desc-print-btn {
    display: none !important;
  }

  /* —— Choose Students / logged-in class detail —— */
  .choose-students-page .background_header,
  .class-desc-page .background_header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }

  .choose-students-page .choose-students-wrap,
  .class-desc-page .class-desc-page-wrap {
    padding-top: 8px !important;
  }

  .choose-students-page .card-content {
    padding: 16px 14px 12px !important;
  }

  .choose-students-page .card-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin: 0 0 12px 0 !important;
  }

  .choose-students-page .card-action > .row.valign-wrapper {
    margin-bottom: 0 !important;
  }

  .choose-students-page .card-action > .row.valign-wrapper > .col {
    width: 100% !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  .choose-students-page .card-action > .row.valign-wrapper > .col.right-align {
    text-align: left !important;
    margin-top: 0 !important;
  }

  .choose-students-page .card-action .pvnet-cart-add {
    width: 100% !important;
    min-height: 44px !important;
    margin-top: 12px !important;
  }

  .choose-students-page .card-action > .row + .row {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
  }

  .choose-students-page .collapsible,
  .class-desc-page .print-order-collapsible-row .collapsible {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  .choose-students-page .collapsible > li,
  .class-desc-page .print-order-collapsible-row .collapsible > li {
    margin-bottom: 8px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    overflow: hidden;
  }

  .choose-students-page .collapsible-header,
  .class-desc-page .print-order-collapsible-row .collapsible-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px;
    padding: 12px 14px !important;
    min-height: 44px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }

  .choose-students-page .collapsible-body,
  .class-desc-page .print-order-collapsible-row .collapsible-body {
    padding: 10px 14px 12px !important;
  }

  .choose-students-page .class-dates-desktop-table,
  .class-desc-page .class-dates-desktop-table {
    display: none !important;
  }

  .class-dates-mobile-summary {
    display: block;
  }

  .class-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #eceff1;
    font-size: 15px;
    line-height: 1.4;
  }

  .class-meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .class-meta-label {
    font-weight: 600;
    color: #546e7a;
    flex: 0 0 auto;
  }

  .class-meta-value {
    text-align: right;
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
  }

  .class-desc-page .print-order-summary .separate_lines {
    margin: 0 0 6px 0 !important;
    line-height: 1.45 !important;
    font-size: 15px !important;
  }

  .class-desc-page .print-order-collapsible-row {
    margin-top: 8px !important;
  }

  .class-desc-page .print-order-collapsible-row .responsive-table {
    font-size: 14px;
  }
}
