/* Keeps legacy Web Forms controls visually aligned with the Bootstrap UI. */
.ContentPane {
    background-color: #f8f8f8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    padding: 10px !important;
}

.ContentPane td.lightback {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    color: #212529;
    padding: 0.75rem 1.25rem !important;
    text-align: left !important;
    white-space: normal !important;
    width: 100%;
}

.ContentPane .lightback {
    color: #212529 !important;
}

@media (max-width: 767px) {
    .ContentPane {
        padding: 8px !important;
    }
}

/* Dashboard shell: navigation starts below the account bar, not below page chrome. */
@media (min-width: 768px) {
    #Body .clever-dashboard-shell.app-shell-layout {
        align-items: stretch;
        display: flex;
        gap: 0;
        min-height: calc(100vh - 38px);
        width: 100%;
    }

    #Body .clever-dashboard-sidebar {
        align-self: flex-start;
        background: #f4f6f8;
        border-right: 1px solid #dfe4e8;
        box-sizing: border-box;
        flex: 0 0 230px;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        padding: 14px 10px 24px;
        position: sticky;
        top: 0;
        width: 230px;
        z-index: 20;
    }

    #Body .clever-dashboard-sidebar .LeftBar.w26 {
        float: none;
        width: 100%;
    }

    #Body .clever-dashboard-sidebar .LeftMenuFrame {
        position: static;
        width: 100%;
    }

    #Body .clever-dashboard-sidebar .LeftMenuFrame .LeftMenu {
        max-height: calc(100vh - 120px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    .showControlBar #Body .clever-dashboard-sidebar {
        height: calc(100vh - 55px);
        max-height: calc(100vh - 55px);
        top: 55px;
    }

    .showControlBar #Body .clever-dashboard-sidebar .LeftMenuFrame .LeftMenu {
        max-height: calc(100vh - 175px);
    }

    #Body .clever-dashboard-main {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
        width: calc(100% - 230px);
    }

    #Body .clever-dashboard-main .skinwidth,
    #Body .clever-dashboard-main .banner-position > .container,
    #Body .clever-dashboard-main .breadcrumb-header > .container,
    #Body .clever-dashboard-main .mycontent > .container {
        max-width: none;
        width: calc(100% - 32px);
    }

    #Body .clever-dashboard-main .mycontent {
        flex: 1 0 auto;
    }

    #Body .clever-dashboard-main .app-workspace-layout {
        display: block;
    }

    #Body .clever-dashboard-main .RightBar.w71 {
        float: none;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    #Body .clever-dashboard-shell {
        display: block;
    }

    #Body .clever-dashboard-sidebar {
        display: none;
    }

    #Body .clever-dashboard-main,
    #Body .clever-dashboard-main .RightBar.w71 {
        float: none;
        width: 100%;
    }
}

/* Deliberate navigation viewport for long school menus. */
.app-shell-layout .LeftMenuFrame {
    background: #fff;
    border: 1px solid #dfe4e8;
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(30, 42, 54, .07);
    overflow: hidden;
}

.app-shell-layout .LeftMenuFrame .LeftMenu {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    outline: 0;
}

.app-shell-layout .menu-scroll-control {
    align-items: center;
    background: #fff8f1;
    border: 0;
    color: #a94f04;
    cursor: pointer;
    display: none;
    font-size: 11px;
    font-weight: 700;
    gap: 8px;
    height: 34px;
    justify-content: center;
    letter-spacing: .025em;
    padding: 0 10px;
    text-transform: uppercase;
    width: 100%;
}

.app-shell-layout .LeftMenuFrame.has-overflow .menu-scroll-control {
    display: flex;
}

.app-shell-layout .menu-scroll-up {
    border-bottom: 1px solid #f1dfcf;
}

.app-shell-layout .menu-scroll-down {
    border-top: 1px solid #f1dfcf;
}

.app-shell-layout .menu-scroll-control:hover:not(:disabled),
.app-shell-layout .menu-scroll-control:focus:not(:disabled) {
    background: #f88621;
    color: #fff;
    outline: 0;
}

.app-shell-layout .menu-scroll-control:disabled {
    background: #f7f8f9;
    color: #aeb5bb;
    cursor: default;
}

@media (min-width: 768px) {
    .app-shell-layout .LeftMenuFrame {
        position: static;
    }

    .app-shell-layout .LeftMenuFrame .LeftMenu {
        max-height: min(620px, calc(100vh - 190px));
        overflow-x: hidden;
        overflow-y: auto;
        position: relative;
        top: auto;
    }
}

@media (max-width: 767px) {
    .app-shell-layout .LeftMenuFrame {
        display: none;
    }
}

/* Professional two-column application shell used by the left-menu skin. */
@media (min-width: 768px) {
    .app-shell-layout {
        align-items: flex-start;
        display: flex;
        gap: 24px;
    }

    .app-shell-layout::before,
    .app-shell-layout::after {
        content: none;
    }

    .app-shell-layout > .LeftBar.w26 {
        flex: 0 0 260px;
        float: none;
        width: 260px;
    }

    .app-shell-layout > .RightBar.w71 {
        flex: 1 1 auto;
        float: none;
        min-width: 0;
        width: auto;
    }

    .app-shell-layout .LeftMenu {
        max-height: calc(100vh - 90px);
        overflow-x: hidden;
        overflow-y: auto;
        position: relative;
        top: auto;
    }
}

.app-shell-layout .LeftMenu {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
    margin-top: 10px;
}

.app-shell-layout .LeftMenu .treeview {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.app-shell-layout .LeftMenu .treeview > li {
    position: relative;
}

.app-shell-layout .LeftMenu .treeview > li > a {
    background: #fff;
    border-top: 1px solid #eef0f2;
    color: #374151;
    font-weight: 600;
    padding: 13px 44px 13px 18px;
}

.app-shell-layout .LeftMenu .treeview > li:first-child > a {
    border-top: 0;
}

.app-shell-layout .LeftMenu .treeview > li > a:hover {
    background: #fff6ed;
    color: #c65f07;
    text-decoration: none;
}

.app-shell-layout .LeftMenu .treeview > li.collapsable > a,
.app-shell-layout .LeftMenu .treeview > li > a.selected {
    background: #f88621;
    color: #fff;
}

.app-shell-layout .LeftMenu .treeview > li > .hitarea::before {
    color: #6b7280;
}

.app-shell-layout .LeftMenu .treeview > li.collapsable > .hitarea::before {
    color: #fff;
}

.app-shell-layout .LeftMenu .treeview ul {
    border: 0;
}

.app-shell-layout .LeftMenu .treeview li.collapsable li a {
    background: #fff;
    border-bottom: 1px solid #f0f1f3;
    color: #6b7280;
    padding-bottom: 12px;
    padding-top: 12px;
}

.app-shell-layout .LeftMenu .treeview li.collapsable li a:hover,
.app-shell-layout .LeftMenu .treeview li.collapsable li a.selected {
    background: #fff8f1;
    color: #c65f07;
}

.app-shell-layout .RightBar .ContentPane {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
    margin: 10px 0 30px;
    padding: 20px !important;
}

@media (max-width: 767px) {
    .app-shell-layout > .RightBar.w71 {
        float: none;
        width: 100%;
    }
}

/* Application-wide workspace refinement. */
#Body .mycontent {
    background: #f4f6f8;
    margin: 0 !important;
    min-height: calc(100vh - 390px);
    padding: 16px 0 28px;
}

#Body .breadcrumb-header {
    background: #fff;
    border-color: #e8ebee;
    padding: 12px 0;
}

#Body .breadcrumb-header .container {
    align-items: center;
   // display: flex;
    justify-content: space-between;
}

#Body .page-name {
    color: #303942;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.3;
    margin: 0;
    text-transform: none;
}

#Body .page-name .title-line {
    display: none;
}

#Body .skin-breadcrumb {
    color: #747d86;
    font-size: 13px;
    padding-top: 0;
}

@media (min-width: 1200px) {
    #Body .mycontent > .container.app-shell-layout {
        max-width: none;
        width: calc(100% - 40px);
    }

    #Body .breadcrumb-header > .container,
    #Body .banner-position .container {
        max-width: 1440px;
        width: calc(100% - 40px);
    }
}

@media (min-width: 768px) {
    .app-shell-layout {
        gap: 16px;
    }

    .app-shell-layout > .LeftBar.w26 {
        flex-basis: 220px;
        width: 220px;
    }

    .app-shell-layout .LeftMenu {
        max-height: calc(100vh - 88px);
        top: auto;
    }
}

/* Give collapsed navigation groups structure without making every row orange. */
.app-shell-layout .LeftMenu {
    margin-top: 0;
    padding: 7px;
}

.app-shell-layout .LeftMenu .treeview {
    background: #fff;
    overflow: visible;
}

.app-shell-layout .LeftMenu .treeview > li > a {
    background: linear-gradient(90deg, #f7f8fa 0, #fff 100%);
    border: 1px solid #e8ebee;
    border-left: 3px solid #d5dbe0;
    border-radius: 4px;
    color: #303b45;
    font-size: 12.5px;
    font-weight: 600;
    margin: 0 0 5px;
    padding: 11px 38px 11px 13px;
}

.app-shell-layout .LeftMenu .treeview > li:first-child > a {
    border-top: 1px solid #e8ebee;
}

.app-shell-layout .LeftMenu .treeview > li > a:hover {
    background: #fff5ea;
    border-color: #f3c79f;
    border-left-color: #f88621;
    color: #a94f04;
}

.app-shell-layout .LeftMenu .treeview > li.active-trail > a,
.app-shell-layout .LeftMenu .treeview > li.collapsable > a,
.app-shell-layout .LeftMenu .treeview > li > a.current,
.app-shell-layout .LeftMenu .treeview > li > a.selected {
    background: #f88621;
    border-color: #f88621;
    color: #fff;
}

.app-shell-layout .LeftMenu .treeview > li.active-trail > .hitarea::before,
.app-shell-layout .LeftMenu .treeview > li.collapsable > .hitarea::before {
    color: #fff;
}

.app-shell-layout .LeftMenu .treeview > li > .hitarea::before {
    height: 42px;
    line-height: 42px;
    right: 5px;
    width: 32px;
}

.app-shell-layout .LeftMenu .treeview > li > ul {
    border: 0;
    margin: -3px 7px 6px;
}

.app-shell-layout .LeftMenu .treeview li.collapsable li a {
    border-bottom: 1px solid #edf0f2;
    font-size: 12px;
    padding: 10px 11px 10px 18px;
}

/* Use the available work area instead of preserving legacy percentage widths. */
.app-shell-layout .RightBar .ContentPane {
    border-radius: 6px;
    margin: 0 0 20px;
    min-height: 170px;
    padding: 16px !important;
    width: 100%;
}

#Body .ContentPane {
    color: #303942;
    font-size: 13.5px;
    line-height: 1.5;
}

#Body .ContentPane table.lightlineubox {
    background: #fff;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 auto !important;
    max-width: none;
    width: 100% !important;
}

#Body .ContentPane table.lightlineubox > tbody > tr > td {
    white-space: normal !important;
}

#Body .ContentPane table.lightlineubox table[width="75%"],
#Body .ContentPane table.lightlineubox table[width="80%"] {
    max-width: 920px;
    width: 100% !important;
}

#Body .ContentPane table.lightlineubox table[width="75%"] > tbody > tr > td:first-child,
#Body .ContentPane table.lightlineubox table[width="80%"] > tbody > tr > td:first-child {
    width: 34% !important;
}

#Body .ContentPane table.lightlineubox table[width="75%"] > tbody > tr > td:last-child,
#Body .ContentPane table.lightlineubox table[width="80%"] > tbody > tr > td:last-child {
    width: 66% !important;
}

#Body .ContentPane td.lightback {
    background: #f7f8f9;
    border-bottom: 1px solid #e2e6e9;
    border-top: 3px solid #f88621;
    color: #28333d;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 15px !important;
}

#Body .ContentPane .lightback,
#Body .ContentPane td.lightback .lightback {
    background: transparent;
    color: #28333d !important;
}

#Body .ContentPane td[nowrap] {
    white-space: normal !important;
}

/* Normalize the most common controls across legacy modules. */
#Body .ContentPane .form-control,
#Body .ContentPane select.form-control,
#Body .ContentPane input.form-control,
#Body .ContentPane textarea.form-control {
    border: 1px solid #cbd2d8;
    border-radius: 4px;
    box-shadow: none;
    color: #2e3842;
    font-size: 13px;
    min-height: 39px;
    padding: 8px 10px;
}

#Body .ContentPane .form-control:focus {
    border-color: #f88621;
    box-shadow: 0 0 0 3px rgba(248, 134, 33, .14);
}

#Body .ContentPane .btn,
#Body .ContentPane .dnnPrimaryAction,
#Body .ContentPane .dnnSecondaryAction {
    border-radius: 4px !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 600;
    min-height: 37px;
    padding: 8px 14px;
    text-shadow: none;
}

#Body .ContentPane .btn-primary,
#Body .ContentPane .btn-info,
#Body .ContentPane .dnnPrimaryAction {
    background: #f88621 !important;
    border-color: #f88621 !important;
    color: #fff !important;
}

#Body .ContentPane .btn-primary:hover,
#Body .ContentPane .btn-info:hover,
#Body .ContentPane .dnnPrimaryAction:hover {
    background: #d96d0d !important;
    border-color: #d96d0d !important;
}

#Body .ContentPane .panel,
#Body .ContentPane .card,
#Body .ContentPane .well {
    border: 1px solid #e2e6e9;
    border-radius: 5px;
    box-shadow: none;
}

#Body .ContentPane .panel-heading,
#Body .ContentPane .card-header {
    background: #f7f8f9;
    border-bottom: 1px solid #e2e6e9;
    color: #28333d;
    font-weight: 600;
    padding: 12px 15px;
}

#Body .ContentPane .table > thead > tr > th {
    background: #f5f7f8;
    border-bottom: 2px solid #dfe3e6;
    color: #303a44;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 11px;
}

#Body .ContentPane .table > tbody > tr > td {
    border-top: 1px solid #e7eaed;
    padding: 10px 11px;
    vertical-align: middle;
}

@media (max-width: 767px) {
    #Body .breadcrumb-header .container {
        display: block;
    }

    #Body .mycontent {
        padding: 10px 0 20px;
    }

    .app-shell-layout .LeftMenu {
        max-height: 330px;
        overflow-y: auto;
    }

    .app-shell-layout .RightBar .ContentPane {
        margin-top: 12px;
        overflow-x: auto;
        padding: 12px !important;
    }
}
