/* National & Community CCU brand overrides */
:root {
    --ncccu-blue: #0B4F9C;
    --ncccu-blue-dark: #083A75;
    --ncccu-blue-light: #00AEEF;
}

/* Replace Materialize teal brand surfaces with NCCCU blue */
.teal,
.teal.lighten-1,
.teal.lighten-2,
.teal.lighten-3,
.teal.darken-1,
.teal.darken-2,
.btn.teal,
.btn-floating.teal,
.btn-floating.teal.lighten-1 {
    background-color: var(--ncccu-blue) !important;
}

.teal-text,
.teal-text.text-lighten-1,
.teal-text.text-darken-1,
.teal-text.text-darken-2 {
    color: var(--ncccu-blue) !important;
}

/* Top nav: white bar so blue logo + brand text read cleanly */
.navbar-color,
nav.navbar-color,
#header .navbar-color,
.page-topbar nav,
header.page-topbar nav,
#header nav {
    background-color: #ffffff !important;
    color: var(--ncccu-blue) !important;
    box-shadow: 0 1px 0 rgba(11, 79, 156, 0.12), 0 2px 8px rgba(11, 79, 156, 0.08);
}

#header .nav-wrapper,
.page-topbar .nav-wrapper {
    background-color: #ffffff !important;
}

#header nav .brand-logo,
#header nav .brand-logo img,
.page-topbar nav .brand-logo img {
    background: transparent !important;
}

#header nav ul a,
#header nav ul a i,
.page-topbar nav ul a,
.page-topbar nav ul a i,
nav.navbar-color ul a,
nav.navbar-color ul a i {
    color: var(--ncccu-blue) !important;
}

#header nav .ncccu-nav-title,
.page-topbar .ncccu-nav-title,
nav.navbar-color .ncccu-nav-title {
    color: var(--ncccu-blue) !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-right: 20px;
    font-size: 17px;
    line-height: 64px;
}

#header nav ul a:hover,
#header nav ul a:focus,
.page-topbar nav ul a:hover,
nav.navbar-color ul a:hover {
    background-color: rgba(11, 79, 156, 0.06) !important;
}

/* Sidebar user profile panel */
.user-details.ncccu-user-details,
.side-nav li.user-details.ncccu-user-details,
ul.side-nav.leftside-navigation li.user-details.ncccu-user-details,
li.user-details,
.cyan,
.cyan.darken-1,
.cyan.darken-2,
.cyan.darken-3,
.cyan.darken-4 {
    background-color: var(--ncccu-blue) !important;
}

.user-details.ncccu-user-details .user-roal,
.user-details.ncccu-user-details .profile-btn,
.user-details.ncccu-user-details .white-text,
li.user-details .user-roal,
li.user-details .profile-btn {
    color: #ffffff !important;
}

/* App footer */
footer.page-footer,
.page-footer,
footer.page-footer .footer-copyright {
    background-color: var(--ncccu-blue) !important;
}

footer.page-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Display running notification footer */
footer.page-footer.display-page-footer.is-notification,
footer.page-footer.display-page-footer.is-notification .footer-copyright {
    background-color: #ffffff !important;
    color: inherit !important;
}

.display-running-notification {
    width: 100%;
    height: 50px;
    line-height: 50px;
    overflow: hidden;
    white-space: nowrap;
}

.display-running-notification__track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: ncccu-notification-marquee linear infinite;
}

.display-running-notification__item {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0;
    word-spacing: 0.08em;
    padding: 0 0.75rem;
}

footer.page-footer.display-page-footer.is-notification .footer-copyright .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}

@keyframes ncccu-notification-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Display left queue: match right column height, 3 equal rows, no last border */
.flex-container-row {
    align-items: stretch;
}

.flex-container-row .col.m4flex,
.flex-container-row .col.m8flex {
    align-self: stretch;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}

.flex-container-row .col.m4flex > .card-panel,
.flex-container-row .col.m8flex > .card-panel {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.flex-container-row .col.m4flex > .card-panel {
    justify-content: stretch;
}

.flex-container-row .col.m8flex > .card-panel.display-now-serving,
.flex-container-row .col.m8flex > .card-panel {
    justify-content: center;
    align-items: center;
}

.flex-container-row .col.m4flex .display-flex-on-media-height {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0;
    flex: 1 1 0;
    -webkit-flex: 1 1 0;
    min-height: 0;
    border-bottom: 1px solid #ddd;
}

.flex-container-row .col.m4flex .display-flex-on-media-height:last-child {
    border-bottom: none !important;
}

footer.page-footer a,
footer.page-footer .grey-text,
footer.page-footer .grey-text.text-lighten-3 {
    color: #ffffff !important;
}

.btn,
.btn-large,
.btn-floating {
    background-color: var(--ncccu-blue) !important;
}

.btn:hover,
.btn:focus,
.btn-large:hover,
.btn-large:focus,
.btn-floating:hover,
.btn-floating:focus {
    background-color: var(--ncccu-blue-dark) !important;
}

.secondary-content {
    color: var(--ncccu-blue) !important;
}

/* Dropdown menus: solid white panels, dark text (never inherit navbar blue/white-text) */
.dropdown-content,
ul.dropdown-content,
.ncccu-dropdown-menu,
#translation-dropdown,
#notifications-dropdown,
#profile-dropdown,
.select-wrapper .dropdown-content,
nav .dropdown-content,
nav ul.dropdown-content {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #333333 !important;
}

.dropdown-content li,
.ncccu-dropdown-menu li,
#translation-dropdown li,
#notifications-dropdown li,
#profile-dropdown li,
nav .dropdown-content li,
nav ul.dropdown-content li,
nav ul.dropdown-content li:hover,
nav ul.dropdown-content li.active {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #333333 !important;
}

.dropdown-content li > a,
.dropdown-content li > span,
.ncccu-dropdown-menu li > a,
.ncccu-dropdown-menu li > span,
#translation-dropdown li > a,
#translation-dropdown li > span,
#notifications-dropdown li > a,
#profile-dropdown li > a,
.select-wrapper .dropdown-content li > span,
nav ul.dropdown-content li > a,
nav ul.dropdown-content a,
nav .dropdown-content a {
    color: #333333 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.dropdown-content li:hover,
.dropdown-content li.active,
.dropdown-content li.selected,
.ncccu-dropdown-menu li:hover,
.ncccu-dropdown-menu li.active,
#translation-dropdown li:hover,
#translation-dropdown li.active,
#notifications-dropdown li:hover,
#profile-dropdown li:hover,
nav ul.dropdown-content li:hover,
nav ul.dropdown-content li.active {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
}

.dropdown-content li:hover > a,
.dropdown-content li.active > a,
.dropdown-content li.selected > a,
.dropdown-content li:hover > span,
.dropdown-content li.active > span,
.dropdown-content li.selected > span,
nav ul.dropdown-content li:hover > a,
nav ul.dropdown-content li.active > a {
    color: #083A75 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.dropdown-content li > h5,
.ncccu-dropdown-menu li > h5,
#translation-dropdown li > h5,
#notifications-dropdown li > h5 {
    color: #083A75 !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Select2 menus */
.select2-dropdown,
.select2-container--classic .select2-dropdown {
    background-color: #ffffff !important;
    color: #333333 !important;
}

.select2-results__option {
    color: #333333 !important;
    background-color: #ffffff !important;
}

.select2-results__option--highlighted,
.select2-results__option[aria-selected="true"] {
    background-color: #eef3fa !important;
    color: var(--ncccu-blue-dark) !important;
}

.pagination li.active,
.switch label input[type="checkbox"]:checked + .lever:after {
    background-color: var(--ncccu-blue) !important;
}

.tabs .tab a:hover,
.tabs .tab a.active,
.tabs .tab a {
    color: var(--ncccu-blue);
}

.tabs .indicator {
    background-color: var(--ncccu-blue);
}

input[type="checkbox"]:checked + label:before,
[type="checkbox"].filled-in:checked + label:after {
    border-right-color: var(--ncccu-blue);
    border-bottom-color: var(--ncccu-blue);
}

[type="checkbox"].filled-in:checked + label:after,
[type="radio"]:checked + label:after,
[type="radio"].with-gap:checked + label:after,
[type="radio"].with-gap:checked + label:before {
    background-color: var(--ncccu-blue);
    border-color: var(--ncccu-blue);
}

.input-field .prefix.active,
.input-field input[type="text"]:focus + label,
.input-field input[type="password"]:focus + label,
.input-field input[type="email"]:focus + label,
.input-field input:focus:not([readonly]) + label,
.input-field textarea:focus:not([readonly]) + label {
    color: var(--ncccu-blue-dark) !important;
}

.input-field input:focus:not([readonly]),
.input-field textarea:focus:not([readonly]) {
    border-bottom: 1px solid var(--ncccu-blue-light) !important;
    box-shadow: 0 1px 0 0 var(--ncccu-blue-light) !important;
}

.picker__date-display,
.picker__weekday-display,
.picker__day--selected,
.picker__day--selected:hover,
.picker--focused .picker__day--selected {
    background-color: var(--ncccu-blue) !important;
}

/* Auth / centered card pages */
body.ncccu-auth {
    background-color: var(--ncccu-blue) !important;
}

#login-page {
    width: 520px;
    max-width: 92vw;
    margin: 0 auto;
    text-align: center;
}

#login-page .card-panel {
    border-radius: 12px;
    padding: 40px 44px 28px;
    box-shadow: 0 18px 40px rgba(0, 30, 80, 0.28);
    text-align: center;
}

#login-page .login-brand img,
#login-page .login-logo {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto 18px;
}

#login-page .login-title,
#login-page .login-form-text {
    color: var(--ncccu-blue-dark);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin: 0 0 6px;
    line-height: 1.3;
    text-align: center;
}

#login-page .login-subtitle {
    color: #5a6a7a;
    font-size: 14px;
    letter-spacing: 0.3px;
    margin: 0 0 16px;
    text-align: center;
}

#login-page .input-field {
    text-align: left;
}

#login-page .input-field .prefix {
    color: var(--ncccu-blue);
}

#login-page .btn {
    background-color: var(--ncccu-blue) !important;
    border-radius: 6px;
    height: 44px;
    line-height: 44px;
    text-transform: none;
    font-size: 16px;
    font-weight: 600;
}

#login-page .btn:hover,
#login-page .btn:focus {
    background-color: var(--ncccu-blue-dark) !important;
}

#login-page a {
    color: var(--ncccu-blue);
}

#login-page a:hover {
    color: var(--ncccu-blue-dark);
}

#login-page .login-footer,
#login-page .center-align.white-text {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.92) !important;
    text-align: center;
}

#login-page .login-footer a,
#login-page .center-align.white-text a {
    color: #ffffff !important;
    text-decoration: underline;
}

#card-alert.card {
    width: 520px;
    max-width: 92vw;
    margin: 0 auto 16px;
    border-radius: 8px;
    text-align: left;
}

/* Branded HTTP error pages (match login card) */
.ncccu-error-page .ncccu-error-body {
    text-align: center;
    padding: 4px 8px 8px;
}

.ncccu-error-page .ncccu-error-code {
    margin: 4px 0 8px;
    font-size: 64px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ncccu-blue);
}

.ncccu-error-page .ncccu-error-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--ncccu-blue-dark);
}

.ncccu-error-page .ncccu-error-message {
    margin: 0 auto 24px;
    max-width: 380px;
    font-size: 15px;
    line-height: 1.55;
    color: #5a6a7a;
}

.ncccu-error-page .ncccu-error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ncccu-error-page .ncccu-error-actions .btn {
    width: 100%;
    max-width: 280px;
    margin: 0;
}

.ncccu-error-page .ncccu-error-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ncccu-blue) !important;
    text-decoration: none;
}

.ncccu-error-page .ncccu-error-link:hover {
    color: var(--ncccu-blue-dark) !important;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .ncccu-error-page .ncccu-error-code {
        font-size: 52px;
    }

    .ncccu-error-page .ncccu-error-title {
        font-size: 20px;
    }
}

/* Display screens: highlight only when a new call arrives */
@keyframes ncccu-call-flash {
    0% { transform: scale(1); opacity: 1; }
    35% { transform: scale(1.06); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

.ncccu-call-flash {
    animation: ncccu-call-flash 0.7s ease-out;
}

/* =========================
   Reports: filters + results
   ========================= */
.ncccu-reports {
    padding-bottom: 28px;
}

.ncccu-reports #breadcrumbs-wrapper .breadcrumbs-title,
.ncccu-reports .breadcrumbs-title {
    float: none !important;
    width: 100% !important;
    margin: 0.5rem 0 0.35rem !important;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ncccu-blue-dark);
    line-height: 1.35;
}

.ncccu-reports #breadcrumbs-wrapper .breadcrumbs,
.ncccu-reports ol.breadcrumbs {
    float: none !important;
    width: 100% !important;
    text-align: left !important;
    margin: 0 0 0.75rem;
    padding-left: 0;
}

.ncccu-reports ol.breadcrumbs li {
    display: inline;
    font-size: 13px;
}

.ncccu-report-filters.card-panel,
.ncccu-reports .ncccu-report-filters {
    border-radius: 12px;
    padding: 20px 22px 8px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(11, 79, 156, 0.08);
    border: 1px solid rgba(11, 79, 156, 0.08);
    background: #ffffff;
}

.ncccu-report-filters__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eef6;
}

.ncccu-report-filters__heading h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--ncccu-blue-dark);
    text-transform: uppercase;
}

.ncccu-report-filters__heading span {
    font-size: 12px;
    color: #7a8796;
}

.ncccu-report-filters .row {
    margin-bottom: 0;
}

.ncccu-report-filters .input-field {
    margin-top: 0.4rem;
    margin-bottom: 1rem;
}

.ncccu-report-filters .input-field > label {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--ncccu-blue-dark) !important;
    margin-bottom: 6px;
    display: block;
    height: auto;
}

.ncccu-report-filters .input-field > label.active {
    transform: none !important;
}

.ncccu-report-filters select.browser-default,
.ncccu-report-filters input[type="text"] {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d5deea !important;
    border-radius: 8px !important;
    background: #f8fbff !important;
    box-shadow: none !important;
    box-sizing: border-box;
    font-size: 14px;
    color: #243447;
}

.ncccu-report-filters select.browser-default:focus,
.ncccu-report-filters input[type="text"]:focus {
    border-color: var(--ncccu-blue-light) !important;
    background: #ffffff !important;
    outline: none;
}

.ncccu-report-filters__action {
    display: flex;
    align-items: flex-end;
}

.ncccu-report-filters__action .btn,
.ncccu-report-go,
.ncccu-reports #gobtn {
    width: 100%;
    height: 42px;
    line-height: 42px;
    margin: 0 0 1rem;
    border-radius: 8px !important;
    text-transform: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: none;
    float: none !important;
}

.ncccu-report-filters__action .btn.disabled,
.ncccu-reports #gobtn.disabled {
    background-color: #9bb4d4 !important;
    color: #ffffff !important;
}

.ncccu-report-panel.card-panel,
.ncccu-reports .ncccu-report-panel {
    border-radius: 12px;
    padding: 20px 22px 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(11, 79, 156, 0.08);
    border: 1px solid rgba(11, 79, 156, 0.08);
    background: #ffffff;
}

.ncccu-report-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ncccu-report-panel__header h5,
.ncccu-report-panel__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ncccu-blue-dark);
    line-height: 1.3;
}

.ncccu-report-panel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ncccu-report-panel__actions .btn,
.ncccu-report-panel__actions button.btn {
    float: none !important;
    height: 38px;
    line-height: 38px;
    border-radius: 8px !important;
    text-transform: none;
    font-weight: 600;
    box-shadow: none;
    margin: 0;
}

.ncccu-report-panel__actions input[type="text"] {
    width: 160px;
    max-width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d5deea !important;
    border-radius: 8px !important;
    background: #f8fbff !important;
    box-shadow: none !important;
}

.ncccu-report-panel .divider {
    margin: 0 0 14px !important;
    background-color: #e8eef6;
}

.ncccu-report-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ncccu-reports table.display,
.ncccu-reports #report-table {
    width: 100% !important;
    border-collapse: collapse;
}

.ncccu-reports table.display thead th,
.ncccu-reports #report-table thead th {
    background: #f3f7fc;
    color: var(--ncccu-blue-dark);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2px;
    border-bottom: 2px solid #d9e4f2 !important;
    white-space: nowrap;
    padding: 12px 10px !important;
}

.ncccu-reports table.display tbody td,
.ncccu-reports #report-table tbody td {
    padding: 11px 10px !important;
    border-bottom: 1px solid #eef2f7 !important;
    font-size: 13px;
    color: #334155;
    vertical-align: middle;
}

.ncccu-reports table.display tbody tr:hover td,
.ncccu-reports #report-table tbody tr:hover td {
    background: #f8fbff;
}

.ncccu-reports .dataTables_wrapper .dataTables_length,
.ncccu-reports .dataTables_wrapper .dataTables_filter,
.ncccu-reports .dataTables_wrapper .dataTables_info,
.ncccu-reports .dataTables_wrapper .dataTables_paginate {
    margin-bottom: 10px;
    font-size: 13px;
}

.ncccu-reports .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #d5deea !important;
    border-radius: 8px !important;
    padding: 4px 10px;
    margin-left: 8px;
    height: 34px;
    background: #f8fbff;
}

.ncccu-reports .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--ncccu-blue) !important;
    color: #fff !important;
    border-radius: 6px;
    border: none !important;
}

.ncccu-report-stat .card,
.ncccu-reports .ncccu-report-stat .card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(11, 79, 156, 0.12);
}

.ncccu-report-stat .card-content {
    background: linear-gradient(135deg, var(--ncccu-blue) 0%, var(--ncccu-blue-dark) 100%) !important;
}

.ncccu-report-stat .card-content.green,
.ncccu-report-stat .card-content.green.lighten-1 {
    background: linear-gradient(135deg, #00AEEF 0%, #0B4F9C 100%) !important;
}

.ncccu-report-stat .card-action {
    background: var(--ncccu-blue-dark) !important;
}

.ncccu-report-stat .card-action.green.darken-2 {
    background: #083A75 !important;
}

.ncccu-report-stat .card-stats-title {
    opacity: 0.92;
    font-size: 13px;
}

.ncccu-report-stat .card-stats-number {
    margin-top: 6px;
    font-weight: 700;
}

.ncccu-report-chart {
    width: 100%;
    overflow-x: auto;
}

.ncccu-report-chart canvas {
    max-width: 100% !important;
    height: auto !important;
}

@media only screen and (max-width: 600px) {
    .ncccu-reports #breadcrumbs-wrapper .breadcrumbs-title {
        font-size: 1.15rem;
    }

    .ncccu-report-filters.card-panel,
    .ncccu-report-panel.card-panel {
        padding: 16px;
    }

    .ncccu-report-panel__header {
        flex-direction: column;
        align-items: stretch;
    }

    .ncccu-report-panel__actions {
        width: 100%;
    }

    .ncccu-report-panel__actions .btn,
    .ncccu-report-panel__actions button.btn,
    .ncccu-report-panel__actions input[type="text"] {
        width: 100%;
    }

    .ncccu-reports .dataTables_wrapper .dataTables_length,
    .ncccu-reports .dataTables_wrapper .dataTables_filter,
    .ncccu-reports .dataTables_wrapper .dataTables_info,
    .ncccu-reports .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        text-align: left !important;
        width: 100%;
    }
}


/* =========================
   App-wide: tables + page UI
   ========================= */
.ncccu-app {
    padding-bottom: 28px;
}

.ncccu-app #breadcrumbs-wrapper {
    margin-bottom: 8px;
}

.ncccu-app #breadcrumbs-wrapper .breadcrumbs-title,
.ncccu-app .breadcrumbs-title {
    float: none !important;
    width: 100% !important;
    margin: 0.5rem 0 0.35rem !important;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ncccu-blue-dark);
    line-height: 1.35;
}

.ncccu-app #breadcrumbs-wrapper .breadcrumbs,
.ncccu-app ol.breadcrumbs {
    float: none !important;
    width: 100% !important;
    text-align: left !important;
    margin: 0 0 0.75rem;
    padding-left: 0;
}

.ncccu-app #breadcrumbs-wrapper .breadcrumbs li,
.ncccu-app ol.breadcrumbs li {
    display: inline;
    font-size: 0.92rem;
    color: #5f6b7a;
}

.ncccu-app #breadcrumbs-wrapper .breadcrumbs li a,
.ncccu-app ol.breadcrumbs li a {
    color: var(--ncccu-blue);
}

.ncccu-app .card-panel {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(11, 79, 156, 0.08);
    border: 1px solid rgba(11, 79, 156, 0.08);
    background: #fff;
    padding: 20px 22px 22px;
}

.ncccu-app .card {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(11, 79, 156, 0.08);
    border: 1px solid rgba(11, 79, 156, 0.08);
    overflow: hidden;
}

.ncccu-app .card .card-content {
    padding: 20px 22px;
}

.ncccu-app .card .card-title {
    color: var(--ncccu-blue-dark);
    font-weight: 600;
}

.ncccu-app .card .divider,
.ncccu-app .card-panel > .divider {
    background-color: rgba(11, 79, 156, 0.12);
}

.ncccu-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(11, 79, 156, 0.12);
}

.ncccu-panel-header__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ncccu-blue-dark);
    line-height: 1.3;
}

.ncccu-panel-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ncccu-panel-header__actions .btn-floating {
    margin: 0;
}

.ncccu-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ncccu-app table.display,
.ncccu-app table.dataTable,
.ncccu-app .ncccu-table-wrap table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0;
}

.ncccu-app table.display thead th,
.ncccu-app table.dataTable thead th,
.ncccu-app .ncccu-table-wrap table thead th {
    background: #f3f7fc !important;
    color: var(--ncccu-blue-dark) !important;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2px;
    text-transform: none;
    padding: 12px 18px 12px 10px !important;
    border-bottom: 2px solid #d9e4f2 !important;
    white-space: nowrap;
    vertical-align: middle;
    opacity: 1 !important;
    visibility: visible !important;
}

.ncccu-app table.display thead th.sorting,
.ncccu-app table.display thead th.sorting_asc,
.ncccu-app table.display thead th.sorting_desc,
.ncccu-app table.display thead th.sorting_asc_disabled,
.ncccu-app table.display thead th.sorting_desc_disabled,
.ncccu-app table.dataTable thead th.sorting,
.ncccu-app table.dataTable thead th.sorting_asc,
.ncccu-app table.dataTable thead th.sorting_desc,
.ncccu-app table.dataTable thead th.sorting_asc_disabled,
.ncccu-app table.dataTable thead th.sorting_desc_disabled {
    background-color: #f3f7fc !important;
    background-repeat: no-repeat !important;
    background-position: center right !important;
    cursor: pointer;
}

.ncccu-app table.display thead th.sorting,
.ncccu-app table.dataTable thead th.sorting {
    background-image: url("../js/plugins/data-tables/images/sort_both.png") !important;
}

.ncccu-app table.display thead th.sorting_asc,
.ncccu-app table.dataTable thead th.sorting_asc {
    background-image: url("../js/plugins/data-tables/images/sort_asc.png") !important;
}

.ncccu-app table.display thead th.sorting_desc,
.ncccu-app table.dataTable thead th.sorting_desc {
    background-image: url("../js/plugins/data-tables/images/sort_desc.png") !important;
}

.ncccu-app table.display thead th.sorting_asc_disabled,
.ncccu-app table.dataTable thead th.sorting_asc_disabled {
    background-image: url("../js/plugins/data-tables/images/sort_asc_disabled.png") !important;
}

.ncccu-app table.display thead th.sorting_desc_disabled,
.ncccu-app table.dataTable thead th.sorting_desc_disabled {
    background-image: url("../js/plugins/data-tables/images/sort_desc_disabled.png") !important;
}

.ncccu-app table.display tbody td,
.ncccu-app table.dataTable tbody td,
.ncccu-app .ncccu-table-wrap table tbody td {
    padding: 11px 10px !important;
    border-bottom: 1px solid #eef2f7 !important;
    color: #334155;
    font-size: 13px;
    vertical-align: middle;
}

.ncccu-app table.display tbody td:last-child,
.ncccu-app table.dataTable tbody td:last-child {
    white-space: nowrap;
    width: 1%;
}

.ncccu-app table.display tbody tr:nth-child(even) td,
.ncccu-app table.dataTable tbody tr:nth-child(even) td {
    background: #f9fbfd;
}

.ncccu-app table.display tbody tr:hover td,
.ncccu-app table.dataTable tbody tr:hover td {
    background: #f8fbff !important;
}

.ncccu-app table.display tbody tr.orange.lighten-4 td,
.ncccu-app table.dataTable tbody tr.orange.lighten-4 td {
    background: rgba(255, 152, 0, 0.12) !important;
}

.ncccu-app .dataTables_wrapper {
    margin-top: 4px;
}

.ncccu-app .dataTables_wrapper .dataTables_length,
.ncccu-app .dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
}

.ncccu-app .dataTables_wrapper .dataTables_length label,
.ncccu-app .dataTables_wrapper .dataTables_filter label {
    color: #5f6b7a;
    font-size: 0.9rem;
}

.ncccu-app .dataTables_wrapper .dataTables_length select,
.ncccu-app .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #c5d3e3 !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    height: 34px !important;
    background: #fff !important;
    margin: 0 4px;
    box-sizing: border-box;
}

.ncccu-app .dataTables_wrapper .dataTables_filter input {
    min-width: 160px;
}

.ncccu-app .dataTables_wrapper .dataTables_info {
    color: #5f6b7a;
    font-size: 0.88rem;
    padding-top: 12px !important;
}

.ncccu-app .dataTables_wrapper .dataTables_paginate {
    padding-top: 8px !important;
}

.ncccu-app .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    padding: 4px 10px !important;
    margin: 0 2px !important;
    color: var(--ncccu-blue-dark) !important;
}

.ncccu-app .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.ncccu-app .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--ncccu-blue) !important;
    color: #fff !important;
    border-color: var(--ncccu-blue) !important;
}

.ncccu-app .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(0, 174, 239, 0.12) !important;
    border-color: rgba(0, 174, 239, 0.3) !important;
    color: var(--ncccu-blue-dark) !important;
}

.ncccu-app .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.ncccu-app .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #9aa8b8 !important;
    background: transparent !important;
    border-color: transparent !important;
}

.ncccu-app table .ncccu-table-tags-cell {
    white-space: normal;
    min-width: 140px;
    max-width: 280px;
    vertical-align: middle;
}

.ncccu-app table .ncccu-table-tag {
    display: inline-block;
    max-width: 100%;
    margin: 2px 4px 2px 0;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--ncccu-blue, #0b4f9c);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    vertical-align: middle;
}

.ncccu-app table .ncccu-table-tag--muted {
    background: #1565c0;
}

.ncccu-app table a.btn-floating.btn-action,
.ncccu-app table button.btn-floating.btn-action {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    margin: 2px !important;
    padding: 0 !important;
    display: inline-block !important;
    vertical-align: middle;
    flex: none !important;
    float: none !important;
}

.ncccu-app table a.btn-floating.btn-action i,
.ncccu-app table button.btn-floating.btn-action i {
    width: 28px !important;
    line-height: 28px !important;
    font-size: 16px !important;
    display: inline-block;
}

.ncccu-app table button.btn-floating.btn-recall-active,
.ncccu-app table a.btn-floating.btn-recall-active {
    background-color: #ef6c00 !important;
    box-shadow: 0 2px 6px rgba(239, 108, 0, 0.45);
}

.ncccu-app .input-field input[type="text"],
.ncccu-app .input-field input[type="email"],
.ncccu-app .input-field input[type="password"],
.ncccu-app .input-field input[type="number"],
.ncccu-app .input-field textarea,
.ncccu-app select.browser-default {
    border-radius: 8px;
}

.ncccu-app select.browser-default {
    border: 1px solid #c5d3e3;
    background: #fff;
    height: 2.8rem;
    padding: 0 10px;
}

.ncccu-app #card-stats .card .card-content {
    border-radius: 0;
}

.ncccu-app #card-stats .card-stats-title {
    font-weight: 500;
}

.ncccu-app #card-stats .card-stats-number {
    font-weight: 700;
}

@media only screen and (max-width: 600px) {
    .ncccu-app .card-panel {
        padding: 14px 14px 16px;
    }

    .ncccu-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ncccu-panel-header__actions {
        width: 100%;
    }

    .ncccu-app .dataTables_wrapper .dataTables_length,
    .ncccu-app .dataTables_wrapper .dataTables_filter,
    .ncccu-app .dataTables_wrapper .dataTables_info,
    .ncccu-app .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        text-align: left !important;
        width: 100%;
    }

    .ncccu-app .dataTables_wrapper .dataTables_filter input {
        width: calc(100% - 70px);
        min-width: 0;
    }
}


.ncccu-app .btn.waves-effect.waves-light:not(.btn-floating),
.ncccu-app button.btn.waves-effect.waves-light:not(.btn-floating) {
    border-radius: 8px;
    text-transform: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(11, 79, 156, 0.25);
}

.ncccu-app .dataTables_wrapper .dataTables_length,
.ncccu-app .dataTables_wrapper .dataTables_filter {
    color: #334155 !important;
}

.ncccu-app .dataTables_wrapper .dataTables_length label,
.ncccu-app .dataTables_wrapper .dataTables_filter label {
    color: #334155 !important;
    font-size: 13px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ncccu-app .card .card-title {
    line-height: 1.3 !important;
}

.ncccu-table-wrap,
.ncccu-report-table-wrap {
    border-radius: 8px;
}

/* Display screen launch overlay (audio unlock) */
.modal.ncccu-display-start-modal {
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
}

.modal.ncccu-display-start-modal .modal-content,
.ncccu-display-start {
    height: 100%;
    margin: 0;
    padding: 0;
}

.ncccu-display-start {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 20px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 174, 239, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(11, 79, 156, 0.45), transparent 50%),
        linear-gradient(160deg, #062a56 0%, var(--ncccu-blue) 48%, #0a3d7a 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.ncccu-display-start__glow {
    position: absolute;
    inset: auto auto 12% 50%;
    width: 420px;
    height: 420px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.35), transparent 68%);
    pointer-events: none;
    animation: ncccu-display-start-pulse 4.5s ease-in-out infinite;
}

.ncccu-display-start__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 40px 36px 36px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 60px rgba(2, 20, 48, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: ncccu-display-start-rise 0.55s ease-out both;
}

.ncccu-display-start__logo {
    display: block;
    width: auto;
    height: 72px;
    max-width: 220px;
    margin: 0 auto 18px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.ncccu-display-start__brand {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.ncccu-display-start__title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.ncccu-display-start__copy {
    margin: 0 auto 28px;
    max-width: 28ch;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.ncccu-display-start__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 56px;
    padding: 14px 32px;
    border-radius: 999px;
    background: #fff !important;
    color: var(--ncccu-blue) !important;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow: 0 10px 28px rgba(2, 20, 48, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ncccu-display-start__btn:hover,
.ncccu-display-start__btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(2, 20, 48, 0.34);
    color: var(--ncccu-blue-dark) !important;
}

@keyframes ncccu-display-start-rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ncccu-display-start-pulse {
    0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.9; transform: translateX(-50%) scale(1.08); }
}

@media only screen and (max-width: 600px) {
    .ncccu-display-start__panel {
        padding: 32px 24px 28px;
    }

    .ncccu-display-start__logo {
        height: 56px;
    }

    .ncccu-display-start__btn {
        width: 100%;
        min-width: 0;
    }
}

/* Active serving / waiting timer panel */
.ncccu-active-queue-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.ncccu-add-queue-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    line-height: 48px;
    margin: 0;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 0 rgba(11, 79, 156, 0.08), 0 8px 20px rgba(15, 23, 42, 0.05);
}

.ncccu-add-queue-btn i {
    margin-right: 8px;
    font-size: 1.15rem;
}

.ncccu-active-queue-card {
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(11, 79, 156, 0.08), 0 8px 20px rgba(15, 23, 42, 0.05);
}

.ncccu-active-queue-card__body {
    padding: 12px !important;
}

.ncccu-active-queue-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ncccu-active-queue-card__title {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ncccu-blue) !important;
}

.ncccu-active-queue-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ncccu-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ncccu-active-queue-count.is-idle {
    background: rgba(11, 79, 156, 0.12);
    color: var(--ncccu-blue);
}

.ncccu-active-queue__empty {
    padding: 10px 2px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}

.ncccu-active-queue__list {
    display: grid;
    gap: 8px;
    max-height: min(62vh, 520px);
    overflow: auto;
    padding-right: 1px;
}

.ncccu-active-queue__item {
    padding: 8px 9px 7px;
    border-radius: 8px;
    border: 1px solid rgba(11, 79, 156, 0.1);
    background: #f8fbff;
}

.ncccu-active-queue__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.ncccu-active-queue__main {
    min-width: 0;
    flex: 1;
}

.ncccu-active-queue__token {
    display: block;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ncccu-blue);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.ncccu-active-queue__place {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ncccu-active-queue__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.ncccu-active-queue__timer {
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    line-height: 1;
}

.ncccu-active-queue__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(11, 79, 156, 0.1);
    color: var(--ncccu-blue);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.ncccu-active-queue__bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(11, 79, 156, 0.12);
    overflow: hidden;
}

.ncccu-active-queue__bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--ncccu-blue);
    transition: width 0.35s linear, background-color 0.2s ease;
}

.ncccu-active-queue__item[data-status="warn"] {
    background: #fffbeb;
    border-color: rgba(217, 119, 6, 0.22);
}

.ncccu-active-queue__item[data-status="warn"] .ncccu-active-queue__bar-fill {
    background: #d97706;
}

.ncccu-active-queue__item[data-status="warn"] .ncccu-active-queue__pill {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}

.ncccu-active-queue__item[data-status="warn"] .ncccu-active-queue__timer {
    color: #b45309;
}

.ncccu-active-queue__item[data-status="over"] {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.22);
}

.ncccu-active-queue__item[data-status="over"] .ncccu-active-queue__bar-fill {
    background: #dc2626;
}

.ncccu-active-queue__item[data-status="over"] .ncccu-active-queue__pill {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.ncccu-active-queue__item[data-status="over"] .ncccu-active-queue__timer,
.ncccu-active-queue__item[data-status="over"] .ncccu-active-queue__token {
    color: #b91c1c;
}

.ncccu-active-queue__item.is-queued {
    opacity: 0.78;
    background: #fff;
}

.ncccu-active-queue__item.is-queued .ncccu-active-queue__bar {
    opacity: 0.35;
}

.ncccu-active-queue__item[data-status="queued"] .ncccu-active-queue__pill {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.ncccu-active-queue__cycle {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #64748b;
}

.ncccu-active-queue__item.is-active .ncccu-active-queue__cycle {
    color: var(--ncccu-blue);
}

/* Collapsible left sidebar (icons-only mini mode) */
.ncccu-sidebar-toggle {
    position: fixed;
    z-index: 1003;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(11, 79, 156, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ncccu-blue);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, left 0.22s ease;
}

.ncccu-sidebar-toggle:hover,
.ncccu-sidebar-toggle:focus {
    background: #f3f8ff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    outline: none;
}

.ncccu-sidebar-toggle i {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--ncccu-blue);
}

/* Keep Perfect Scrollbar rail hidden unless scrolling is actually needed */
ul.side-nav.leftside-navigation.ps-container > .ps-scrollbar-y-rail,
ul.side-nav.leftside-navigation.ps-container > .ps-scrollbar-x-rail {
    display: none !important;
}

ul.side-nav.leftside-navigation.ps-container.ps-active-y:hover > .ps-scrollbar-y-rail,
ul.side-nav.leftside-navigation.ps-container.ps-active-y.ps-in-scrolling > .ps-scrollbar-y-rail {
    display: block !important;
}

@media only screen and (min-width: 993px) {
    .ncccu-sidebar-toggle {
        display: inline-flex;
    }

    #main,
    footer,
    ul.side-nav.fixed.leftside-navigation {
        transition: padding-left 0.22s ease, width 0.22s ease;
    }

    ul.side-nav.fixed.leftside-navigation {
        overflow: hidden !important;
    }

    body.ncccu-sidebar-mini #main,
    body.ncccu-sidebar-mini footer {
        padding-left: 72px;
    }

    body.ncccu-sidebar-mini ul.side-nav.fixed.leftside-navigation {
        width: 72px !important;
        transform: none !important;
        overflow: hidden !important;
    }

    body.ncccu-sidebar-mini #left-sidebar-nav {
        width: 72px;
        left: 0;
    }

    body.ncccu-sidebar-mini ul.side-nav.leftside-navigation li.user-details {
        padding: 12px 0 8px !important;
        margin-bottom: 8px;
        text-align: center;
    }

    body.ncccu-sidebar-mini ul.side-nav.leftside-navigation li.user-details .row {
        margin-bottom: 0;
    }

    body.ncccu-sidebar-mini .ncccu-sidebar-avatar {
        width: 100% !important;
        margin: 0 auto;
        float: none;
        padding: 0 !important;
    }

    body.ncccu-sidebar-mini .ncccu-sidebar-avatar .profile-image {
        width: 36px !important;
        height: 36px !important;
        margin: 0 auto;
        display: block;
    }

    body.ncccu-sidebar-mini .ncccu-sidebar-user-meta {
        display: none !important;
    }

    body.ncccu-sidebar-mini ul.side-nav.leftside-navigation li a,
    body.ncccu-sidebar-mini ul.side-nav.leftside-navigation .collapsible-header {
        font-size: 0 !important;
        line-height: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
    }

    body.ncccu-sidebar-mini ul.side-nav.leftside-navigation li a i,
    body.ncccu-sidebar-mini ul.side-nav.leftside-navigation .collapsible-header i {
        font-size: 1.35rem !important;
        width: 100% !important;
        margin: 0 !important;
        line-height: 48px !important;
        display: inline-block;
        float: none !important;
        text-align: center;
    }

    body.ncccu-sidebar-mini ul.side-nav.leftside-navigation .collapsible-body {
        display: none !important;
    }

    body.ncccu-sidebar-mini ul.side-nav.leftside-navigation li a .right,
    body.ncccu-sidebar-mini ul.side-nav.leftside-navigation .collapsible-header .right {
        display: none !important;
    }
}

/* =========================================================
   Display boards: fill viewport on load, resize, and fullscreen
   without clipping content or creating page scroll.
   ========================================================= */
html.ncccu-display-html,
html.ncccu-display-html body.ncccu-display-page {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body.ncccu-display-page audio,
body.ncccu-display-page #videomain,
body.ncccu-display-page #audio-container {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

body.ncccu-display-page {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    box-sizing: border-box;
}

body.ncccu-display-page.hidden-body,
body.ncccu-display-page:fullscreen,
body.ncccu-display-page:-webkit-full-screen {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
}

body.ncccu-display-page {
    padding-top: 0 !important;
}

body.ncccu-display-page #header {
    -webkit-flex: 0 0 64px;
    flex: 0 0 64px;
    width: 100%;
    max-width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 0;
    background-color: #ffffff !important;
}

/* Keep nav in document flow so the page flex layout works, with a full-width white bar. */
body.ncccu-display-page #header .navbar-fixed {
    position: relative !important;
    height: 64px !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    background-color: #ffffff !important;
}

body.ncccu-display-page #header .navbar-fixed nav,
body.ncccu-display-page #header nav.navbar-color,
body.ncccu-display-page #header nav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100%;
    height: 64px !important;
    line-height: 64px !important;
    margin: 0;
    background-color: #ffffff !important;
    color: var(--ncccu-blue) !important;
    box-sizing: border-box;
}

body.ncccu-display-page #header .nav-wrapper {
    height: 64px !important;
    line-height: 64px !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    background-color: #ffffff !important;
}

body.ncccu-display-page #header .logo-wrapper {
    margin: 0 !important;
    height: 64px;
    line-height: 64px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
}

body.ncccu-display-page #header ul.left > li {
    height: 64px;
    line-height: 64px;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
}

body.ncccu-display-page #header .brand-logo {
    margin: 0 !important;
    padding: 0 20px !important;
    height: 64px !important;
    max-height: 64px !important;
    display: -webkit-inline-flex !important;
    display: inline-flex !important;
    -webkit-align-items: center !important;
    align-items: center !important;
    -webkit-justify-content: center;
    justify-content: center;
    line-height: 1 !important;
}

body.ncccu-display-page #header .brand-logo img {
    display: block;
    margin: 0;
    max-height: 48px;
    width: auto;
}

body.ncccu-display-page #header .ncccu-nav-title {
    display: inline-block;
    height: 64px;
    line-height: 64px !important;
    vertical-align: top;
    margin: 0 20px 0 0;
    color: var(--ncccu-blue) !important;
}

@media only screen and (max-width: 600px) {
    body.ncccu-display-page #header {
        -webkit-flex-basis: 56px;
        flex-basis: 56px;
        min-height: 56px;
    }

    body.ncccu-display-page #header .navbar-fixed,
    body.ncccu-display-page #header nav,
    body.ncccu-display-page #header .nav-wrapper,
    body.ncccu-display-page #header .brand-logo,
    body.ncccu-display-page #header .logo-wrapper,
    body.ncccu-display-page #header ul.left > li,
    body.ncccu-display-page #header .ncccu-nav-title {
        height: 56px !important;
        line-height: 56px !important;
    }

    body.ncccu-display-page #header .brand-logo {
        max-height: 56px !important;
    }

    body.ncccu-display-page #header .brand-logo img {
        max-height: 40px;
    }
}

body.ncccu-display-page #main {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    width: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
    padding: 0.5rem !important;
    box-sizing: border-box;
}

body.ncccu-display-page #movearea-main,
body.ncccu-display-page #movearea {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    width: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
}

body.ncccu-display-page #movearea-main > .flex-child,
body.ncccu-display-page #movearea-main > .flex-child.child {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
}

body.ncccu-display-page #callarea,
body.ncccu-display-page #scallarea,
body.ncccu-display-page #movearea.row {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    width: 100%;
    margin-bottom: 0 !important;
    overflow: hidden;
}

body.ncccu-display-page .flex-container-row {
    -webkit-align-items: stretch;
    align-items: stretch;
    min-height: 0;
}

body.ncccu-display-page .flex-container-row .col.m4flex,
body.ncccu-display-page .flex-container-row .col.m8flex {
    min-height: 0;
    height: auto !important;
    overflow: hidden;
}

body.ncccu-display-page .flex-container-row .col.m4flex > .card-panel,
body.ncccu-display-page .flex-container-row .col.m8flex > .card-panel {
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

body.ncccu-display-page .flex-container-row .col.m4flex .display-flex-on-media-height {
    min-height: 0;
    overflow: hidden;
    padding: 0.35rem;
    box-sizing: border-box;
}

body.ncccu-display-page .page-footer.display-page-footer {
    -webkit-flex: 0 0 50px;
    flex: 0 0 50px;
    position: relative !important;
    bottom: auto !important;
    width: 100%;
    height: 50px;
    margin: 0;
    z-index: 2;
}

body.ncccu-display-page .up-current-ticket-size {
    font-size: clamp(2.75rem, 11vw, 8.5rem) !important;
    line-height: 1.05 !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.ncccu-display-page .up-next-ticket-size {
    font-size: clamp(1.5rem, 4.5vw, 3.75rem) !important;
    line-height: 1.1 !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.ncccu-display-page .token-destination {
    font-size: clamp(1.75rem, 5.5vw, 4.5rem) !important;
    line-height: 1.15 !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.ncccu-display-page .display-now-serving > span.token-mobile-no-display {
    font-size: clamp(1rem, 2.2vw, 2.5rem) !important;
    line-height: 1.2 !important;
}

body.ncccu-display-page .flex-container-row .col.m4flex small {
    font-size: clamp(0.9rem, 1.8vw, 1.75rem) !important;
    line-height: 1.2 !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media only screen and (max-width: 798px) {
    body.ncccu-display-page #header,
    body.ncccu-display-page .page-footer.display-page-footer {
        display: none !important;
    }

    body.ncccu-display-page #main {
        padding: 0.35rem !important;
    }

    body.ncccu-display-page .flex-container-row {
        -webkit-flex-direction: column-reverse;
        flex-direction: column-reverse;
    }

    body.ncccu-display-page .flex-container-row .col.m8flex {
        -webkit-flex: 1.35 1 0;
        flex: 1.35 1 0;
    }

    body.ncccu-display-page .flex-container-row .col.m4flex {
        -webkit-flex: 1 1 0;
        flex: 1 1 0;
    }
}

