/* ==========================================================================
   RCR Campus design system  -  (c) RCR Edutech
   Loaded last on every page by MY_Output, so it overrides the legacy skins.
   ========================================================================== */
:root {
    --rcr-navy: #0B2254;
    --rcr-navy-2: #17306B;
    --rcr-blue: #0A6CFF;
    --rcr-blue-600: #0856CC;
    --rcr-teal: #12D6A8;
    --rcr-orange: #FFA51F;
    --rcr-grad: linear-gradient(135deg, #0A6CFF 0%, #12D6A8 100%);
    --rcr-bg: #F4F7FC;
    --rcr-surface: #FFFFFF;
    --rcr-line: #E3E9F5;
    --rcr-text: #1B2B4B;
    --rcr-muted: #62728F;
    --rcr-radius: 12px;
    --rcr-shadow: 0 1px 2px rgba(11, 34, 84, .05), 0 4px 14px rgba(11, 34, 84, .06);
    --rcr-sidebar-w: 248px;
}

body, .content-wrapper, .right-side { background: var(--rcr-bg) !important; color: var(--rcr-text); }

/* ---------- Header ---------- */
.main-header { background: var(--rcr-surface) !important; border-bottom: 1px solid var(--rcr-line); box-shadow: none !important; }
.main-header .logo { background: #fff !important; width: var(--rcr-sidebar-w) !important; border-right: 1px solid var(--rcr-line); border-bottom: 1px solid var(--rcr-line); padding: 6px 14px !important; display: flex !important; align-items: center; justify-content: center; }
.main-header .logo .logo-lg img { max-height: 46px; width: auto; }
.main-header .logo .logo-mini img { max-height: 34px; width: auto; }
.main-header .navbar { background: var(--rcr-surface) !important; margin-left: var(--rcr-sidebar-w) !important; }
.main-header .navbar .sidebar-toggle { color: var(--rcr-navy) !important; }
.main-header .navbar .sidebar-toggle .icon-bar { background: var(--rcr-navy) !important; }
.main-header .navbar .sidebar-session { color: var(--rcr-navy) !important; font-weight: 700; font-size: 15px; letter-spacing: .1px; }
.main-header .navbar .navbar-custom-menu a, .main-header .navbar .navbar-custom-menu i { color: var(--rcr-navy-2) !important; }
.main-header .navbar .search-form .form-control { background: var(--rcr-bg) !important; border: 1px solid var(--rcr-line) !important; color: var(--rcr-text) !important; border-radius: 10px 0 0 10px !important; }
.main-header .navbar .topsidesearchbtn { background: var(--rcr-blue) !important; color: #fff !important; border: 0 !important; border-radius: 0 10px 10px 0 !important; }
.main-header .navbar .topsidesearchbtn i { color: #fff !important; }
.sidebar-collapse .main-header .navbar { margin-left: 50px !important; }
.sidebar-collapse .main-header .logo { width: 50px !important; padding: 4px !important; }

/* ---------- Sidebar (light) ---------- */
.main-sidebar, .left-side { background: #fff !important; width: var(--rcr-sidebar-w) !important; border-right: 1px solid var(--rcr-line); box-shadow: none !important; }
.sidebar-collapse .main-sidebar { width: 50px !important; }
.content-wrapper, .main-footer { margin-left: var(--rcr-sidebar-w) !important; }
.sidebar-collapse .content-wrapper, .sidebar-collapse .main-footer { margin-left: 50px !important; }
.sidebar { padding-bottom: 24px; }
.sidebar-menu > li > a { color: var(--rcr-text) !important; font-weight: 600; font-size: 13.5px; padding: 10px 14px !important; margin: 2px 10px; border-radius: 10px; border-left: 0 !important; }
.sidebar-menu > li > a > .fa:first-child, .sidebar-menu > li > a > i:first-child { color: var(--rcr-blue) !important; width: 22px; text-align: center; font-size: 15px; }
.sidebar-menu > li:hover > a { background: #EAF2FF !important; color: var(--rcr-blue-600) !important; }
.sidebar-menu > li.active > a, .sidebar-menu > li.menu-open > a { background: #EAF2FF !important; color: var(--rcr-blue-600) !important; }
.sidebar-menu > li.active > a { box-shadow: inset 3px 0 0 var(--rcr-blue); }
.sidebar-menu .treeview-menu { background: transparent !important; padding: 2px 0 6px 0 !important; margin: 0 10px 0 20px !important; border-left: 2px solid var(--rcr-line); }
.sidebar-menu .treeview-menu > li > a { color: var(--rcr-muted) !important; font-size: 13px; padding: 6px 10px 6px 14px !important; border-radius: 8px; }
.sidebar-menu .treeview-menu > li > a .fa { color: #B4C0D8 !important; }
.sidebar-menu .treeview-menu > li > a:hover { color: var(--rcr-blue-600) !important; background: #F1F6FF !important; }
.sidebar-menu .treeview-menu > li.active > a { color: var(--rcr-blue-600) !important; font-weight: 700; background: #EAF2FF !important; }
.sidebar-menu .treeview-menu > li.active > a .fa { color: var(--rcr-blue) !important; }
.sidebar-menu > li > a > .fa-angle-left { color: #9AA8C4 !important; }
.sidebar .search-form2, .main-sidebar .search-form2 { display: none; }

.sessionul { background: transparent !important; padding: 10px 10px 0 !important; margin: 0 !important; }
.sessionul > li > a { background: var(--rcr-bg) !important; color: var(--rcr-navy) !important; border: 1px solid var(--rcr-line); border-radius: 10px; padding: 9px 12px !important; margin-bottom: 8px; font-weight: 600; font-size: 12.5px; }
.sessionul > li > a i { color: var(--rcr-blue) !important; }
.sidebar-collapse .sessionul { display: none; }

/* ---------- Content ---------- */
.content-wrapper { padding-top: 6px; }
.content { padding: 18px 22px; }
.content-header > h1 { color: var(--rcr-navy); font-weight: 800; }

.box, .nav-tabs-custom, .small-box, .info-box, .theme-shadow { background: var(--rcr-surface) !important; border: 1px solid var(--rcr-line) !important; border-radius: var(--rcr-radius) !important; box-shadow: var(--rcr-shadow) !important; border-top-width: 1px !important; }
.box.box-primary, .box.box-info, .box.box-success, .box.box-warning, .box.box-danger { border-top: 3px solid var(--rcr-blue) !important; }
.box-header { border-bottom: 1px solid var(--rcr-line) !important; padding: 14px 18px !important; }
.box-header .box-title, .box-title { color: var(--rcr-navy) !important; font-weight: 700 !important; font-size: 16px !important; }
.box-body { padding: 18px !important; }
.nav-tabs-custom > .nav-tabs > li.active { border-top-color: var(--rcr-blue) !important; }
.nav-tabs-custom > .nav-tabs > li.active > a { color: var(--rcr-blue-600) !important; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { border-radius: 9px !important; font-weight: 600; box-shadow: none !important; }
.btn-primary, .btn-info { background: var(--rcr-blue) !important; border-color: var(--rcr-blue) !important; color: #fff !important; }
.btn-primary:hover, .btn-primary:focus, .btn-info:hover { background: var(--rcr-blue-600) !important; border-color: var(--rcr-blue-600) !important; }
.btn-success { background: #12B886 !important; border-color: #12B886 !important; color: #fff !important; }
.btn-danger { background: #E5484D !important; border-color: #E5484D !important; }
.btn-warning { background: var(--rcr-orange) !important; border-color: var(--rcr-orange) !important; color: #3a2500 !important; }
.btn-default { background: #fff !important; border: 1px solid var(--rcr-line) !important; color: var(--rcr-navy) !important; }
.btn-default:hover { background: #F1F6FF !important; }
.btn-xs, .btn-sm { border-radius: 7px !important; }

/* ---------- Forms ---------- */
.form-control, .select2-container--default .select2-selection--single { border: 1px solid #D5DEEE !important; border-radius: 9px !important; color: var(--rcr-text); box-shadow: none !important; }
.form-control:focus { border-color: var(--rcr-blue) !important; box-shadow: 0 0 0 3px rgba(10, 108, 255, .15) !important; }
label { color: var(--rcr-navy-2); font-weight: 600; }
small.req, .req { color: #E5484D; }
.input-group-addon { border-color: #D5DEEE !important; border-radius: 9px; }

/* ---------- Tables ---------- */
.table > thead > tr > th { background: #F1F5FD !important; color: var(--rcr-navy) !important; font-weight: 700; border-bottom: 1px solid var(--rcr-line) !important; text-transform: none; }
.table > tbody > tr > td { border-top: 1px solid #EEF2FA !important; vertical-align: middle !important; }
.table-hover > tbody > tr:hover { background: #F7FAFF !important; }
.table-striped > tbody > tr:nth-of-type(odd) { background: #FBFCFF; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--rcr-blue) !important; color: #fff !important; border-color: var(--rcr-blue) !important; border-radius: 7px; }
.label-success, .badge-success { background: #12B886 !important; }
.label-danger { background: #E5484D !important; }
.label-warning { background: var(--rcr-orange) !important; }

/* ---------- Modals & alerts ---------- */
.modal-content { border: 0 !important; border-radius: 14px !important; box-shadow: 0 20px 60px rgba(11, 34, 84, .25) !important; }
.modal-header { border-bottom: 1px solid var(--rcr-line) !important; background: #fff !important; border-radius: 14px 14px 0 0; }
.modal-header .modal-title { color: var(--rcr-navy); font-weight: 700; }
.modal-header, .modal-header .close { color: var(--rcr-navy); }
.alert { border-radius: 10px !important; border: 0 !important; }

/* ---------- Footer ---------- */
.main-footer { background: #fff !important; border-top: 1px solid var(--rcr-line) !important; color: var(--rcr-muted) !important; padding: 14px 22px !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.main-footer a { color: var(--rcr-blue-600); }
.rcr-powered { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--rcr-muted); }
.rcr-powered img { height: 26px; width: auto; }

/* ---------- Unregistered-version banner is not part of RCR Campus ---------- */
.topaleart { display: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .main-header .logo { width: 100% !important; }
    .main-header .navbar { margin-left: 0 !important; }
    .content-wrapper, .main-footer { margin-left: 0 !important; }
    .content { padding: 12px; }
    .main-sidebar { width: var(--rcr-sidebar-w) !important; }
}

/* ---------- Header controls ---------- */
.main-header .navbar .selectpicker, .main-header .navbar .selectpicker .filter-option, .main-header .navbar .selectpicker .caret { color: var(--rcr-navy) !important; }
.main-header .navbar .btn-default.selectpicker, .main-header .navbar .bootstrap-select > .dropdown-toggle { background: var(--rcr-bg) !important; border: 1px solid var(--rcr-line) !important; height: 36px; border-radius: 10px !important; }
.main-header .navbar .search-form .form-control::placeholder { color: var(--rcr-muted) !important; opacity: 1; }

/* ---------- Dashboard home ---------- */
.rcr-home { margin-bottom: 18px; }
.rcr-hello h2 { margin: 4px 0 4px; font-size: 24px; font-weight: 800; color: var(--rcr-navy); }
.rcr-hello p { margin: 0 0 16px; color: var(--rcr-muted); }
kbd { background: #fff; color: var(--rcr-navy); border: 1px solid var(--rcr-line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: 11px; box-shadow: none; }
.rcr-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.rcr-action { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--rcr-line); border-radius: var(--rcr-radius); padding: 14px; color: var(--rcr-navy); font-weight: 700; box-shadow: var(--rcr-shadow); transition: transform .12s, border-color .12s; }
.rcr-action:hover { transform: translateY(-2px); border-color: var(--rcr-blue); color: var(--rcr-blue-600); text-decoration: none; }
.rcr-action-ico { flex: 0 0 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; background: var(--rcr-grad); }
.rcr-tone-navy .rcr-action-ico { background: linear-gradient(135deg, #17306B, #0B2254); }
.rcr-tone-green .rcr-action-ico { background: linear-gradient(135deg, #12B886, #12D6A8); }
.rcr-tone-teal .rcr-action-ico { background: linear-gradient(135deg, #0FA9C9, #12D6A8); }
.rcr-tone-orange .rcr-action-ico { background: linear-gradient(135deg, #FF8A1F, #FFC02E); }
.rcr-start { background: #fff; border: 1px solid var(--rcr-line); border-radius: var(--rcr-radius); padding: 16px 18px; box-shadow: var(--rcr-shadow); }
.rcr-start-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rcr-start h4 { margin: 0; font-weight: 800; color: var(--rcr-navy); }
.rcr-start h4 small { color: var(--rcr-muted); font-weight: 600; margin-left: 8px; }
.rcr-progress { flex: 1; min-width: 140px; max-width: 320px; height: 8px; background: #E8EEF9; border-radius: 8px; overflow: hidden; }
.rcr-progress span { display: block; height: 100%; background: var(--rcr-grad); border-radius: 8px; }
.rcr-start ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
.rcr-start li { display: flex; align-items: center; gap: 9px; }
.rcr-start li .fa { font-size: 17px; color: #B4C0D8; }
.rcr-start li.done .fa { color: #12B886; }
.rcr-start li.done a { color: var(--rcr-muted); text-decoration: line-through; }
.rcr-start li a { color: var(--rcr-navy); font-weight: 600; }

/* ---------- Go-to palette ---------- */
.rcr-goto { float: right; margin: 8px 10px 0 0; height: 36px; line-height: 34px; padding: 0 12px; border: 1px solid var(--rcr-line); border-radius: 10px; background: var(--rcr-bg); color: var(--rcr-navy) !important; font-weight: 700; font-size: 13px; }
.rcr-goto:hover { background: #EAF2FF; text-decoration: none; }
.rcr-goto i { color: var(--rcr-blue); }
.rcr-pal-overlay { position: fixed; inset: 0; background: rgba(11, 34, 84, .45); z-index: 99999; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; backdrop-filter: blur(2px); }
.rcr-pal-overlay.show { display: flex; }
.rcr-pal { width: min(620px, 94vw); background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(11, 34, 84, .35); overflow: hidden; }
.rcr-pal-input { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rcr-line); }
.rcr-pal-input i { color: var(--rcr-blue); font-size: 18px; }
.rcr-pal-input input { flex: 1; border: 0; outline: 0; font-size: 16px; color: var(--rcr-navy); background: transparent; }
.rcr-pal-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.rcr-pal-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--rcr-text); }
.rcr-pal-list li i { color: var(--rcr-blue); width: 20px; text-align: center; }
.rcr-pal-list li .l { font-weight: 600; flex: 1; }
.rcr-pal-list li .s { color: var(--rcr-muted); font-size: 12px; }
.rcr-pal-list li.on { background: #EAF2FF; }
.rcr-pal-list li.none { color: var(--rcr-muted); cursor: default; }
.rcr-pal-foot { display: flex; gap: 18px; padding: 9px 18px; border-top: 1px solid var(--rcr-line); color: var(--rcr-muted); font-size: 12px; background: #FAFBFE; }

/* ==========================================================================
   Per-screen polish
   ========================================================================== */

/* Form sections ("Transport Details", "Fees Details"...) */
.pagetitleh2, .pagetitleh-whitebg, h4.pagetitleh2 { background: #F1F5FD !important; color: var(--rcr-navy) !important; font-weight: 700 !important; font-size: 14px !important; letter-spacing: .2px; padding: 11px 16px !important; margin: 18px 0 14px !important; border-radius: 10px; border-left: 4px solid var(--rcr-blue); }
.pagetitleh-whitebg { background: #fff !important; border-left: 0; padding-left: 0 !important; font-size: 16px !important; }
.box-header.with-border h3, .box-header .box-title { margin: 0; }

/* Uniform control sizing */
.form-control { height: 38px; }
textarea.form-control { height: auto; }
select.form-control { padding-right: 28px; }
.bootstrap-select > .dropdown-toggle { height: 38px; border-radius: 9px !important; border: 1px solid #D5DEEE !important; background: #fff !important; }
.form-group { margin-bottom: 14px; }

/* Header: currency and language pickers */
.main-header .navbar .currency-icon-list, .main-header .navbar .langdiv { margin-top: 7px; }
.main-header .navbar .bootstrap-select { width: auto !important; min-width: 64px; max-width: 120px; }
.main-header .navbar .bootstrap-select .filter-option { overflow: hidden; text-overflow: ellipsis; }
.main-header .navbar .headertopmenu > li > a { padding: 14px 10px; }

/* Tables: DataTables toolbar, export buttons, pagination */
.dt-buttons .dt-button, .dt-buttons .btn { background: #fff !important; border: 1px solid var(--rcr-line) !important; border-radius: 8px !important; color: var(--rcr-navy) !important; font-weight: 600; padding: 4px 10px !important; margin-right: 4px; }
.dt-buttons .dt-button:hover { background: #EAF2FF !important; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { border: 1px solid #D5DEEE; border-radius: 8px; padding: 4px 10px; height: 32px; }
.dataTables_wrapper .dataTables_info { color: var(--rcr-muted); }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 7px !important; }
table.dataTable thead th { white-space: nowrap; }
.download_label { font-weight: 700; color: var(--rcr-navy); font-size: 15px; margin: 4px 0 12px; }

/* Row action buttons: small, rounded, consistent */
td .btn-default.btn-xs, td .btn.btn-xs { padding: 3px 8px; margin: 0 2px; }
td .btn-default.btn-xs:hover { background: #EAF2FF !important; color: var(--rcr-blue-600) !important; }

/* Tabs */
.nav-tabs-custom > .nav-tabs > li > a { color: var(--rcr-muted); font-weight: 600; }
.nav-tabs-custom > .nav-tabs > li.header { color: var(--rcr-navy); font-weight: 800; }
.nav-tabs > li > a { border-radius: 8px 8px 0 0; }

/* Switches */
.material-switch > input[type="checkbox"]:checked + label::before { background: #12B886 !important; opacity: 1; }

/* Search criteria bars and page titles */
.box-header.with-border { background: #fff; border-radius: var(--rcr-radius) var(--rcr-radius) 0 0; }
.content-header { padding: 14px 22px 0; }
.page-title, .content-header h1 { color: var(--rcr-navy); }

/* Toasts, sweet alerts, dropzones */
.sweet-alert { border-radius: 16px !important; }
.sweet-alert button.confirm { background: var(--rcr-blue) !important; border-radius: 9px !important; }
.dropify-wrapper { border-radius: 10px !important; border-color: #D5DEEE !important; }
.dropify-wrapper:hover { border-color: var(--rcr-blue) !important; }

/* Pagination, breadcrumbs, labels */
.pagination > .active > a { background: var(--rcr-blue) !important; border-color: var(--rcr-blue) !important; }
.breadcrumb { background: transparent; }
.label { border-radius: 6px; font-weight: 600; padding: .3em .65em; }

/* Print: keep documents clean */
@media print { .rcr-goto, .rcr-powered, .main-sidebar, .main-header { display: none !important; } .content-wrapper { margin-left: 0 !important; } }

/* ---------- Contextual help ---------- */
.rcr-help { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); background: #fff; z-index: 99998; box-shadow: -20px 0 60px rgba(11, 34, 84, .2); transform: translateX(105%); transition: transform .22s ease; display: flex; flex-direction: column; }
.rcr-help.open { transform: none; }
.rcr-help-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--rcr-grad); color: #fff; font-weight: 800; font-size: 16px; }
.rcr-help-head button { background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.rcr-help-body { padding: 20px; overflow: auto; }
.rcr-help-body h3 { margin: 0 0 6px; color: var(--rcr-navy); font-weight: 800; }
.rcr-help-body .lead { color: var(--rcr-muted); font-size: 14px; margin-bottom: 16px; }
.rcr-help-body ol { padding-left: 20px; }
.rcr-help-body li { margin-bottom: 10px; line-height: 1.55; }
.rcr-help-body .tip { background: #FFF6E5; border: 1px solid #FFE1A8; border-radius: 10px; padding: 12px 14px; color: #6B4A00; margin: 16px 0; }
.rcr-help-body .more { color: var(--rcr-muted); font-size: 12.5px; margin-top: 20px; }

/* ---------- Mobile / tablet ---------- */
@media (max-width: 767px) {
    .main-sidebar, .left-side { transform: translateX(-105%) !important; transition: transform .25s ease; z-index: 1040; }
    .sidebar-open .main-sidebar, .sidebar-open .left-side { transform: none !important; box-shadow: 20px 0 60px rgba(11, 34, 84, .25) !important; }
    .main-header .logo { display: none !important; }
    .main-header .navbar { margin-left: 0 !important; min-height: 52px; }
    .rcr-goto span { display: none; }
    .rcr-goto { padding: 0 10px; margin: 8px 6px 0 0; }
    .currency-icon-list, .langdiv { display: none !important; }
    .main-header .navbar .sidebar-session { font-size: 13px; }
    .rcr-actions { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rcr-action { padding: 10px; font-size: 13px; }
    .rcr-action-ico { flex-basis: 34px; height: 34px; }
    .rcr-start ul { grid-template-columns: 1fr; }
    .rcr-pal-overlay { padding-top: 6vh; }
    .main-footer { flex-direction: column; text-align: center; }
    .table-responsive { border: 0; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .content { padding: 14px; }
    .rcr-actions { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .content-wrapper { margin-top: 0 !important; padding-top: 52px !important; }
    .rcr-hello p kbd, .rcr-hello p { font-size: 13px; }
    .rcr-hello .rcr-desktop-only { display: none; }
}
@media (max-width: 767px) {
    .main-sidebar::before { content: ""; display: block; height: 60px; margin: 10px 16px 0; background: url("../images/rcr/rcr-campus.png") center / contain no-repeat; }
    .main-sidebar { padding-top: 0 !important; }
}

/* ==========================================================================
   Responsive fixes
   ========================================================================== */

/* Collapsed (icon-only) sidebar on desktop */
@media (min-width: 768px) {
    .sidebar-mini.sidebar-collapse .main-sidebar { width: 64px !important; }
    .sidebar-mini.sidebar-collapse .content-wrapper,
    .sidebar-mini.sidebar-collapse .main-footer { margin-left: 64px !important; }
    .sidebar-mini.sidebar-collapse .main-header .logo { width: 64px !important; padding: 6px !important; }
    .sidebar-mini.sidebar-collapse .main-header .navbar { margin-left: 64px !important; }
    .sidebar-mini.sidebar-collapse .main-header .logo .logo-lg { display: none !important; }
    .sidebar-mini.sidebar-collapse .main-header .logo .logo-mini { display: block !important; }
    .sidebar-mini:not(.sidebar-collapse) .main-header .logo .logo-mini { display: none !important; }
    .sidebar-mini.sidebar-collapse .sidebar-menu > li > a { margin: 2px 8px; padding: 11px 0 !important; text-align: center; }
    .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .fa:first-child { width: auto; font-size: 17px; margin: 0; }
    .sidebar-mini.sidebar-collapse .sidebar-menu > li:not(:hover) > a > span,
    .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .pull-right,
    .sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .pull-right-container { display: none !important; }
    /* hover flyout */
    .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right) { display: block !important; position: absolute; left: 64px; top: 0; width: 220px; padding: 11px 16px; background: #fff; color: var(--rcr-navy); text-align: left; border: 1px solid var(--rcr-line); border-radius: 0 10px 0 0; font-weight: 700; }
    .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu { display: block !important; position: absolute; left: 64px; top: 42px; width: 220px; margin: 0 !important; padding: 6px !important; background: #fff !important; border: 1px solid var(--rcr-line); border-radius: 0 0 10px 10px; box-shadow: 10px 12px 30px rgba(11, 34, 84, .12); }
    .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu > li > a { white-space: normal; }
    .main-header .logo .logo-mini img { max-height: 36px; width: 100%; object-fit: contain; }
}

/* Large screens: keep content readable instead of stretching edge to edge */
@media (min-width: 1700px) {
    .content { max-width: 1680px; margin-left: auto; margin-right: auto; }
}

/* Tablet landscape / small laptops */
@media (min-width: 768px) and (max-width: 1199px) {
    :root { --rcr-sidebar-w: 224px; }
    .main-header .navbar .sidebar-session { max-width: 18vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
    .rcr-goto span { display: none; }
    .rcr-goto { padding: 0 11px; }
    .main-header .navbar .search-form .form-control { width: 150px; }
}

/* Never let a page scroll sideways; wide tables scroll inside themselves */
html, body { max-width: 100%; overflow-x: hidden; }
.content-wrapper { overflow-x: hidden; }
.table-responsive, .dataTables_wrapper { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
img, video, iframe, canvas { max-width: 100%; }
.box-body, .box { max-width: 100%; }
.modal-dialog { max-width: calc(100vw - 20px); }
select.form-control, .form-control { max-width: 100%; }

/* Phones */
@media (max-width: 575px) {
    .content { padding: 10px; }
    .box-header, .box-body { padding-left: 12px !important; padding-right: 12px !important; }
    .btn { min-height: 38px; }
    .box-header .box-tools, .box-header .pull-right { float: none !important; display: block; margin-top: 8px; }
    .nav-tabs { white-space: nowrap; overflow-x: auto; overflow-y: hidden; display: block; }
    .nav-tabs > li { float: none; display: inline-block; }
    .modal-dialog { margin: 10px auto; }
    .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_length { text-align: left; float: none; }
    .dataTables_wrapper .dataTables_filter input { width: 100%; margin-left: 0; }
    .rcr-help { width: 100vw; }
    .rcr-pal { border-radius: 12px; }
}

/* ---------- Header as a single, non-wrapping flex row at every width ---------- */
.main-header .navbar { display: flex !important; align-items: center; flex-wrap: nowrap; height: 50px; }
.main-header .navbar > .sidebar-toggle { float: none !important; flex: 0 0 auto; }
.main-header .navbar > [class*="col-"] { float: none !important; width: auto !important; padding: 0 !important; }
.main-header .navbar > [class*="col-"]:first-of-type, .main-header .navbar > .sidebar-toggle + [class*="col-"] { flex: 1 1 0; min-width: 0; }
.main-header .navbar > [class*="col-"] + [class*="col-"] { flex: 0 0 auto; margin-left: auto; }
.main-header .navbar .sidebar-session { display: block; line-height: 50px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; }
.main-header .navbar .pull-right { float: none !important; display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; }
.main-header .navbar .pull-right > * { float: none !important; flex: 0 0 auto; }
.main-header .navbar .search-form { margin: 0 6px !important; padding: 0 !important; border: 0 !important; }
.main-header .navbar .navbar-custom-menu, .main-header .navbar .navbar-custom-menu > ul, .main-header .navbar .navbar-custom-menu > div { float: none !important; display: flex; align-items: center; flex-wrap: nowrap; }
.main-header .navbar .navbar-custom-menu .navbar-nav { margin: 0; }
.main-header .navbar .rcr-goto { margin: 0 !important; }

@media (max-width: 1199px) {
    .main-header .navbar .currency-icon-list, .main-header .navbar .langdiv { display: none !important; }
    .main-header .navbar .search-form .form-control { width: 140px; }
}
@media (max-width: 991px) {
    .main-header .navbar .search-form { display: none !important; }
}
@media (max-width: 767px) {
    .main-header .navbar .search-form { display: none !important; }
    .main-header .navbar .sidebar-session { font-size: 13px; }
}
/* session box in the sidebar should never sit under the fixed header */
.main-sidebar { padding-top: 50px; }
.main-sidebar .sidebar { padding-top: 0; }
.main-header .navbar > .sidebar-toggle { min-width: 48px; padding: 0 14px !important; display: flex !important; flex-direction: column; justify-content: center; align-items: stretch; margin-right: 4px; }
.main-header .navbar > .sidebar-toggle .icon-bar { display: block; width: 100% !important; height: 2px; margin: 2.5px 0; border-radius: 2px; }
.dataTables_wrapper .dataTables_empty { white-space: normal; }
.main-header .navbar > .sidebar-toggle { display: flex !important; flex-direction: row; align-items: center; justify-content: center; height: 50px; width: 48px; min-width: 48px; padding: 0 !important; }
.main-header .navbar > .sidebar-toggle .icon-bar { display: none !important; }
.main-header .navbar > .sidebar-toggle::before { content: "\f0c9"; font-family: FontAwesome; font-size: 20px; color: var(--rcr-navy); }
.main-header .navbar > .sidebar-toggle { position: relative !important; top: 0 !important; left: 0 !important; }
.dropify-wrapper { min-height: 100px; height: auto !important; }
.dropify-wrapper .dropify-message p { font-size: 12px; line-height: 1.35; }

/* Login pages on phones: card only, centred; the promo panel is for larger screens */
@media (max-width: 767px) {
    .nopadding-2 { display: none !important; }
    .top-content, .inner-bg { min-height: 100vh; }
    .top-content .loginbg { margin: 0 auto; max-width: 440px; }
}
.loginbg .form-top img, .form-top-left img { background: #fff; padding: 8px 16px; border-radius: 12px; max-height: 70px; width: auto; max-width: 80%; }

/* ---------- Trial / licence bar ---------- */
.rcr-trialbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 44px 9px 16px; font-size: 13px; line-height: 1.4; text-align: center; box-shadow: 0 -4px 16px rgba(11, 34, 84, .12); }
.rcr-trial-info { background: #EAF2FF; color: #0B2254; border-top: 1px solid #C9DCFF; }
.rcr-trial-warn { background: #FFF3D6; color: #5C3D00; border-top: 1px solid #FFD98A; }
.rcr-trial-stop { background: #FDE8E8; color: #7A1313; border-top: 1px solid #F5B5B5; }
.rcr-trialbar-help { font-weight: 600; white-space: nowrap; }
.rcr-trialbar-x { position: absolute; right: 12px; top: 3px; background: transparent; border: 0; font-size: 22px; line-height: 1; color: inherit; cursor: pointer; opacity: .6; }
.rcr-trialbar-x:hover { opacity: 1; }
