:root {
    --backend-header-height: 3.5rem;
    --backend-sidebar-width: 280px;
    --backend-sidebar-bg: #f7f7f8;
    --backend-sidebar-bg-strong: #ffffff;
    --backend-sidebar-text: #4f6287;
    --backend-sidebar-text-muted: #7f8eac;
    --backend-sidebar-active: rgba(21, 61, 138, 0.08);
    --backend-sidebar-hover: rgba(21, 61, 138, 0.05);
    --backend-header-bg: #ffffff;
    --backend-header-border: #dde1e6;
    --backend-content-bg: #f4f5f7;
    --backend-shadow: 0 8px 24px rgba(15, 33, 47, 0.08);
    --backend-z-sidebar: 1035;
    --backend-z-header: 1040;
    --backend-z-overlay: 1034;
}

body {
    min-height: 100vh;
    background: var(--backend-content-bg);
}

body.backend-shell {
    margin: 0;
    overflow-x: hidden;
}

body.backend-shell.hold-transition,
body.backend-shell.hold-transition * {
    transition: none !important;
}

body.backend-shell .main-header {
    position: sticky;
    top: 0;
    z-index: var(--backend-z-header);
    min-height: var(--backend-header-height);
    margin-left: var(--backend-sidebar-width);
    width: calc(100% - var(--backend-sidebar-width));
    padding: 0 1rem;
    background: var(--backend-header-bg);
    border-bottom: 1px solid var(--backend-header-border);
    box-shadow: 0 1px 0 rgba(15, 33, 47, 0.08);
    transition: margin-left 0.22s ease, width 0.22s ease;
}

body.backend-shell .main-header .navbar-nav {
    align-items: center;
    gap: 0.15rem;
}

body.backend-shell .main-header .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    color: #5b6776;
    border-radius: 0.75rem;
    padding: 0.5rem 0.8rem;
}

body.backend-shell .main-header .navbar-nav .nav-link[data-widget="pushmenu"] {
    position: relative;
    z-index: calc(var(--backend-z-sidebar) + 2);
}

body.backend-shell .main-header .nav-link:hover,
body.backend-shell .main-header .nav-link:focus {
    background: rgba(21, 61, 138, 0.05);
    color: #4f6287;
}

body.backend-shell .main-header .ml-auto {
    margin-left: auto !important;
}

body.backend-shell .main-header .ml-auto,
body.backend-shell .main-header .navbar-nav.ml-auto {
    margin-left: auto !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    padding-right: 0.2rem;
}

body.backend-shell .main-header .ml-auto > *,
body.backend-shell .main-header .navbar-nav.ml-auto > * {
    display: flex;
    align-items: center;
}

body.backend-shell .main-header .languageContainer {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

body.backend-shell .main-header .frontend-user-relative-container,
body.backend-shell .main-header .frontend-user-container {
    display: flex;
    align-items: center;
}

body.backend-shell .main-header .backend-user-name {
    padding-top: 0;
    line-height: 1;
}

body.backend-shell .main-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--backend-z-sidebar);
    width: var(--backend-sidebar-width);
    height: 100vh;
  /*  padding-top: calc(var(--backend-header-height) + 0.75rem);*/
    background: linear-gradient(180deg, var(--backend-sidebar-bg) 0%, var(--backend-sidebar-bg-strong) 100%);
    color: var(--backend-sidebar-text);
    box-shadow: var(--backend-shadow);
    transform: translateX(0);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

body.backend-shell .main-sidebar .close-list {
    top: calc(var(--backend-header-height) + 0.35rem);
    right: 0.5rem;
    z-index: 3;
    color: #1f4d8f;
}

body.backend-shell .main-sidebar .close-list .nav-link,
body.backend-shell .main-sidebar .close-list a {
    color: inherit;
}

body.backend-shell .brand-link {
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 1rem 1.25rem 1.35rem;
    color: #1f4d8f;
    text-decoration: none;
}

body.backend-shell .brand-link:hover {
    color: #1f4d8f;
}

body.backend-shell .logo-switch {
    gap: 0.75rem;
}

body.backend-shell .brand-image-xs,
body.backend-shell .brand-image-xl {
    max-width: 100%;
    height: auto;
}

body.backend-shell .brand-image-xs {
    display: none;
    width: 48px;
}

body.backend-shell .brand-image-xl {
    width: min(180px, 100%);
}

body.backend-shell .sidebar {
    padding: 0 0.8rem 1.25rem;
}

body.backend-shell .sidebar .nav {
    gap: 0.25rem;
}

body.backend-shell .nav-sidebar,
body.backend-shell .nav-treeview {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

body.backend-shell .nav-sidebar > .nav-item,
body.backend-shell .nav-sidebar > .nav-childitem,
body.backend-shell .nav-treeview > .nav-item,
body.backend-shell .nav-treeview > .nav-childitem {
    margin: 0;
}

body.backend-shell .nav-sidebar .nav-link,
body.backend-shell .nav-treeview .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2rem;
    padding: 0.52rem 0.5rem;
    color: var(--backend-sidebar-text);
    border-radius: 0.9rem;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.backend-shell .nav-sidebar .nav-link:hover,
body.backend-shell .nav-treeview .nav-link:hover,
body.backend-shell .nav-sidebar .nav-link:focus,
body.backend-shell .nav-treeview .nav-link:focus {
    background: var(--backend-sidebar-hover);
    color: #1f4d8f;
}

body.backend-shell .nav-sidebar .nav-link.active,
body.backend-shell .nav-treeview .nav-link.active,
body.backend-shell .nav-item.menu-open > .nav-link {
    background: var(--backend-sidebar-active);
    color: #1f4d8f;
    box-shadow: inset 0 0 0 1px rgba(21, 61, 138, 0.08);
}

body.backend-shell .nav-icon {
    width: 1.1rem;
    text-align: center;
    flex: 0 0 1.1rem;
}

body.backend-shell .nav-sidebar .nav-link p,
body.backend-shell .nav-treeview .nav-link p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
}

body.backend-shell .nav-treeview {
    display: none;
 /*   padding: 0.2rem 0 0.35rem 0.8rem;*/
}

body.backend-shell .menu-open > .nav-treeview {
    display: block;
}

body.backend-shell .nav-treeview .nav-link {
    min-height: 2.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    color: var(--backend-sidebar-text-muted);
}

body.backend-shell .right {
    margin-left: auto;
    transition: transform 0.16s ease;
}

body.backend-shell .menu-open > .nav-link .right {
    transform: rotate(-90deg);
}

body.backend-shell .content-wrapper {
    min-height: calc(100vh - var(--backend-header-height));
    margin-left: var(--backend-sidebar-width);
    padding: 1.25rem 1.25rem 2rem;
    background: var(--backend-content-bg);
    transition: margin-left 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

body.backend-shell .control-sidebar {
    display: none;
}

body.backend-shell.sidebar-collapse .main-sidebar {
    transform: translateX(calc(var(--backend-sidebar-width) * -1));
}

body.backend-shell.sidebar-collapse .content-wrapper {
    margin-left: 0;
}

body.backend-shell #sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--backend-z-overlay);
    background: rgba(17, 24, 39, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

body.backend-shell.sidebar-collapse .main-header {
    margin-left: 0;
    left: 0;
    right: 0;
    width: auto;
}

@media (max-width: 991.98px) {
    body.backend-shell .main-header {
        margin-left: 0;
        left: 0;
        right: 0;
        width: auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    body.backend-shell .main-sidebar {
        padding-top: 0.75rem;
        transform: translateX(calc(var(--backend-sidebar-width) * -1));
    }

    body.backend-shell .content-wrapper {
        margin-left: 0;
        padding: 1rem 0.9rem 1.5rem;
    }

    body.backend-shell.sidebar-open .main-header {
        margin-left: var(--backend-sidebar-width);
        left: 0;
        right: 0;
        width: calc(100% - var(--backend-sidebar-width));
    }
    body.backend-shell.sidebar-open .main-sidebar {
        transform: translateX(0);
    }

    body.backend-shell.sidebar-open #sidebar-overlay {
        opacity: 1;
        background: rgba(17, 24, 39, 0.48);
        pointer-events: auto;
    }
}

@media (min-width: 992px) {
    body.backend-shell.sidebar-collapse .brand-image-xs {
        display: block;
    }

    body.backend-shell.sidebar-collapse .brand-image-xl {
        display: none;
    }

    body.backend-shell.sidebar-collapse .main-sidebar {
        transform: translateX(calc(-1 * (var(--backend-sidebar-width) - 74px)));
    }

    body.backend-shell.sidebar-collapse .main-sidebar:hover {
        transform: translateX(0);
    }

    body.backend-shell.sidebar-collapse .main-sidebar:hover .brand-image-xs {
        display: none;
    }

    body.backend-shell.sidebar-collapse .main-sidebar:hover .brand-image-xl {
        display: block;
    }

    body.backend-shell.sidebar-collapse .content-wrapper {
        margin-left: 74px;
    }

    body.backend-shell.sidebar-collapse .main-header {
        margin-left: 74px;
        left: 0;
        right: 0;
        width: auto;
    }

    body.backend-shell .main-sidebar .close-list {
        display: none !important;
    }
}


body.backend-shell .box.box-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.backend-shell .box.box-info > .box-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

body.backend-shell .box.box-info > .box-header::after,
body.backend-shell .box.box-info > .box-body::after {
    content: none;
    display: none;
}

body.backend-shell .box.box-info > .box-title,
body.backend-shell .box.box-info > .box-header .box-title {
    float: none;
    min-width: 0;
}

body.backend-shell .box.box-info > .box-header .box-tools,
body.backend-shell .box.box-info > .box-header .box-tools.pull-right {
    float: none;
    margin-left: auto;
}

body.backend-shell .box.box-info > .box-body {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 1rem;
}

body.backend-shell .box.box-info > .box-body > * {
    min-width: 0;
    flex: 1 1 100%;
}

body.backend-shell .box.box-info > .box-body > .row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    gap: 1rem 0;
    flex: 1 1 100%;
}

body.backend-shell .box.box-info > .box-body > .row > [class*="col-"],
body.backend-shell .box.box-info > .box-body > [class*="col-"],
body.backend-shell .box.box-info > .box-body > .timesheet-stat-card {
    float: none;
    min-width: 0;
    flex: 1 1 240px;
    width: auto;
    max-width: none;
}

body.backend-shell .box.box-info > .box-body > [class*="col-"] > .small-box,
body.backend-shell .box.box-info > .box-body > .row > [class*="col-"] > .small-box,
body.backend-shell .box.box-info > .box-body > .timesheet-stat-card > .small-box {
    height: 100%;
    margin-bottom: 0;
}
body.backend-shell .box.box-info.timesheet-dashboard-box > .timesheet-dashboard-body {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem;
    align-items: stretch;
}

body.backend-shell .box.box-info.timesheet-dashboard-box > .timesheet-dashboard-body > .timesheet-stat-card {
    min-width: 0;
}

body.backend-shell .box.box-info.timesheet-dashboard-box > .timesheet-dashboard-body > .timesheet-stat-card > .small-box {
    height: 100%;
    margin-bottom: 0;
}

@media (max-width: 1199.98px) {
    body.backend-shell .box.box-info.timesheet-dashboard-box > .timesheet-dashboard-body {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991.98px) {
    body.backend-shell .box.box-info.timesheet-dashboard-box > .timesheet-dashboard-body {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 575.98px) {
    body.backend-shell .box.box-info.timesheet-dashboard-box > .timesheet-dashboard-body {
        grid-template-columns: 1fr !important;
    }
}





body.backend-shell .workspace-switcher {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.35rem 0 0.85rem;
    padding: 0 0.35rem;
}

body.backend-shell .workspace-switcher-label {
    margin: 0;
    padding: 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--backend-sidebar-text-muted);
}

body.backend-shell .workspace-switcher-select {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.65rem 2.4rem 0.65rem 0.85rem;
    border: 1px solid rgba(21, 61, 138, 0.12);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--backend-sidebar-text);
    font-size: 0.95rem;
    line-height: 1.2;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #4f6287 50%), linear-gradient(135deg, #4f6287 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

body.backend-shell .workspace-switcher-select:hover {
    border-color: rgba(21, 61, 138, 0.22);
    background-color: #fff;
}

body.backend-shell .workspace-switcher-select:focus {
    outline: none;
    border-color: rgba(21, 61, 138, 0.38);
    box-shadow: 0 0 0 3px rgba(21, 61, 138, 0.08);
}

body.backend-shell.sidebar-collapse .workspace-switcher {
    opacity: 0;
    pointer-events: none;
}

body.backend-shell.sidebar-collapse .main-sidebar:hover .workspace-switcher {
    opacity: 1;
    pointer-events: auto;
}




body.backend-shell .box .box-body > br {
    display: none;
}

body.backend-shell .box .box-body .form-group.row {
    align-items: center;
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
    margin-bottom: 0.85rem !important;
}

body.backend-shell .box .box-body .form-group.row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

body.backend-shell .box .box-body .form-group.row label,
body.backend-shell .box .box-body .form-group.row .doc-label {
    display: block;
    margin: 0 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

body.backend-shell .box .box-body .form-group.row input[type="text"],
body.backend-shell .box .box-body .form-group.row input[type="email"],
body.backend-shell .box .box-body .form-group.row input[type="tel"],
body.backend-shell .box .box-body .form-group.row input[type="number"],
body.backend-shell .box .box-body .form-group.row input[type="date"],
body.backend-shell .box .box-body .form-group.row textarea,
body.backend-shell .box .box-body .form-group.row select,
body.backend-shell .box .box-body .form-group.row .k-input,
body.backend-shell .box .box-body .form-group.row .k-picker,
body.backend-shell .box .box-body .form-group.row .k-textbox,
body.backend-shell .box .box-body .form-group.row .k-editor,
body.backend-shell .box .box-body .form-group.row .k-dropdownlist,
body.backend-shell .box .box-body .form-group.row .k-combobox {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    body.backend-shell .box .box-body .form-group.row {
        align-items: flex-start;
        margin-bottom: 0.75rem !important;
    }

    body.backend-shell .box .box-body .form-group.row > [class*="col-"] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    body.backend-shell .box .box-body .form-group.row label,
    body.backend-shell .box .box-body .form-group.row .doc-label {
        padding-top: 0 !important;
        line-height: 1.25 !important;
        margin-bottom: 0.2rem !important;
    }

    body.backend-shell .box .box-body .form-group.row .two-third-width,
    body.backend-shell .box .box-body .form-group.row .one-third-width,
    body.backend-shell .box .box-body .form-group.row .full-width,
    body.backend-shell .box .box-body .form-group.row .float-left {
        width: 100% !important;
        max-width: 100%;
        float: none !important;
    }
}

body.backend-shell .row {
    justify-content: flex-start;
}

body.backend-shell .box .box-body .form-group.row {
    justify-content: flex-start;
}

@media (min-width: 768px) {
    body.backend-shell .box .box-body .form-group.row > .col-md-1 {
        flex: 0 0 8.33333333%;
        width: 8.33333333%;
        max-width: 8.33333333%;
    }

    body.backend-shell .box .box-body .form-group.row > .col-md-2 {
        flex: 0 0 16.66666667%;
        width: 16.66666667%;
        max-width: 16.66666667%;
    }

    body.backend-shell .box .box-body .form-group.row > .col-md-3 {
        flex: 0 0 25%;
        width: 25%;
        max-width: 25%;
    }

    body.backend-shell .box .box-body .form-group.row > .col-md-4 {
        flex: 0 0 33.33333333%;
        width: 33.33333333%;
        max-width: 33.33333333%;
    }

    body.backend-shell .box .box-body .form-group.row > .col-md-5 {
        flex: 0 0 41.66666667%;
        width: 41.66666667%;
        max-width: 41.66666667%;
    }

    body.backend-shell .box .box-body .form-group.row > .col-md-6 {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
    }

    body.backend-shell .box .box-body .form-group.row > .col-md-7 {
        flex: 0 0 58.33333333%;
        width: 58.33333333%;
        max-width: 58.33333333%;
    }

    body.backend-shell .box .box-body .form-group.row > .col-md-8 {
        flex: 0 0 66.66666667%;
        width: 66.66666667%;
        max-width: 66.66666667%;
    }

    body.backend-shell .box .box-body .form-group.row > .col-md-9 {
        flex: 0 0 75%;
        width: 75%;
        max-width: 75%;
    }

    body.backend-shell .box .box-body .form-group.row > .col-md-10 {
        flex: 0 0 83.33333333%;
        width: 83.33333333%;
        max-width: 83.33333333%;
    }

    body.backend-shell .box .box-body .form-group.row > .col-md-11 {
        flex: 0 0 91.66666667%;
        width: 91.66666667%;
        max-width: 91.66666667%;
    }

    body.backend-shell .box .box-body .form-group.row > .col-md-12 {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

body.backend-shell .box .box-body .form-group:not(.row) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.85rem !important;
}

body.backend-shell .box .box-body .form-group:not(.row) > label,
body.backend-shell .box .box-body .form-group:not(.row) > .form-label,
body.backend-shell .box .box-body .form-group:not(.row) > .doc-label {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    transform: none !important;
    float: none !important;
}

body.backend-shell .box .box-body .form-group:not(.row) > input,
body.backend-shell .box .box-body .form-group:not(.row) > textarea,
body.backend-shell .box .box-body .form-group:not(.row) > select,
body.backend-shell .box .box-body .form-group:not(.row) > .form-control,
body.backend-shell .box .box-body .form-group:not(.row) > .k-textbox,
body.backend-shell .box .box-body .form-group:not(.row) > .k-picker,
body.backend-shell .box .box-body .form-group:not(.row) > .k-dropdownlist,
body.backend-shell .box .box-body .form-group:not(.row) > .k-combobox {
    width: 100%;
    max-width: 100%;
}

/* non-interactive focus cleanup */
body.backend-shell label:focus,
body.backend-shell label:focus-visible,
body.backend-shell h1:focus,
body.backend-shell h1:focus-visible,
body.backend-shell h2:focus,
body.backend-shell h2:focus-visible,
body.backend-shell h3:focus,
body.backend-shell h3:focus-visible,
body.backend-shell h4:focus,
body.backend-shell h4:focus-visible,
body.backend-shell h5:focus,
body.backend-shell h5:focus-visible,
body.backend-shell h6:focus,
body.backend-shell h6:focus-visible,
body.backend-shell .box-title:focus,
body.backend-shell .box-title:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

body.backend-shell .k-grid .k-grid-header .k-header > .k-link,
body.backend-shell .k-grid .k-grid-header .k-header > .k-cell-inner,
body.backend-shell .k-grid .k-grid-header .k-header > .k-cell-inner > .k-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

body.backend-shell .k-grid .k-grid-header .k-column-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
