.body-sidebar,
.sticky-top,
.navbar.navbar-expand {
    background-color: #360c56 !important;
    color: #ffffff !important;
}

.sidebar-item-label.header-subtitle {
    display: none !important;
}

/* ------------------------------
   SIDEBAR ITEMS
--------------------------------*/
.standard-sidebar-item .sidebar-item-label,
.standard-sidebar-item .sidebar-item-icon {
    color: #fff;
}

.standard-sidebar-item:hover .sidebar-item-label,
.standard-sidebar-item:hover .sidebar-item-icon {
    color: #000;
}

/* Active item */
.active-sidebar .sidebar-item-label,
.active-sidebar .sidebar-item-icon {
    color: #000;
}



.container>#navbar-breadcrumbs>li>a {
    color: #ffffff !important;
}

/* [data-label^="Add "]:not(.cloned-primary-action) {
    display: none !important;
} */

.btn.btn-primary {
    background-color: #360c56 !important;
    border-color: #360c56 !important;
}

body>div.body-sidebar-container.expanded>div.body-sidebar>a {
    display: none !important;
}

/* Search Input Styling */
.sidebar-search-input {
    width: 100%;
    box-sizing: border-box;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 6px;
}

[data-page-route="Workspaces"] {
    display: none !important;
}

#navbar-breadcrumbs {
    display: none !important;
}

/* -------------------------------
   Workspaces Scroll Container
--------------------------------*/
#navbar-workspaces {
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 1px;

    width: 100% !important;

    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;

    /* Smooth scrolling */
    scroll-behavior: smooth;

    /* Modern thin scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

/* WebKit Scrollbar (Chrome/Edge/Safari) */
#navbar-workspaces::-webkit-scrollbar {
    height: 6px;
}

#navbar-workspaces::-webkit-scrollbar-track {
    background: transparent;
    /* Glassy look */
}

#navbar-workspaces::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

#navbar-workspaces::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}


/* -------------------------------
   Workspace Links (Items)
--------------------------------*/
#navbar-workspaces .nav-item {
    padding: 0 2px !important;
    margin: 2px 6px !important;
}

#navbar-workspaces .nav-item .nav-link {
    color: #ffffff !important;
    font-weight: 600 !important;

    padding: 6px 10px;
    border-radius: 8px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

/* Hover: soft pill highlight */
#navbar-workspaces .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: translateY(-1px);
}

/* -------------------------------
   Active Workspace
--------------------------------*/
#navbar-workspaces .nav-item .nav-link.active-workspace {
    color: #ffffff !important;
    /* High contrast text */
    background: rgba(255, 255, 255, 0.25);
    /* Slightly brighter pill */
    font-weight: 700;
    border-bottom: 3px solid var(--primary);
    /* Thicker underline */
    border-radius: 12px 12px 0 0;
    /* Slightly rounder corners */
    padding: 8px 12px;
    /* Slightly more padding for readability */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    /* Soft glow/shadow */
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Optional hover effect while active */
#navbar-workspaces .nav-item .nav-link.active-workspace:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}



body>div.main-section>div.sticky-top>header>div>div.collapse.navbar-collapse.justify-content-end>form {
    display: none !important;
}

body>div.main-section>div.sticky-top>header>div>div.collapse.navbar-collapse.justify-content-end>ul>li.nav-item.dropdown.dropdown-notifications.dropdown-mobile {
    display: none !important;
}

body>div.main-section>div.sticky-top>header>div>div.collapse.navbar-collapse.justify-content-end>ul>li.vertical-bar.d-none.d-sm-block {
    display: none !important;
}

body>div.main-section>div.sticky-top>header>div>div.collapse.navbar-collapse.justify-content-end>ul>li.nav-item.dropdown.dropdown-help.dropdown-mobile.d-none.d-lg-block {
    display: none !important;
}

#page-print>div.page-head.flex>div>div>div.flex.col.page-actions.justify-content-end>div.custom-actions.hidden-xs.hidden-md>span {
    display: none !important;
}

body>div.body-sidebar-container.expanded>div.body-sidebar>div.body-sidebar-bottom>a {
    color: white !important;
}

body>div.body-sidebar-container>div.body-sidebar>div.body-sidebar-bottom>a>svg>use {
    color: white !important;
}

body>div.body-sidebar-container.expanded>div.body-sidebar>div.body-sidebar-bottom>a>svg>use {
    color: white !important;
}

.body-sidebar-container:not(.expanded) .body-sidebar>div:nth-child(3)>img {
    display: none !important;
}

.body-sidebar-container:not(.expanded) .body-sidebar>.body-sidebar-top>#dotorders-custom-search {
    display: none !important;
}

.body-sidebar-container.expanded .body-sidebar>.body-sidebar-top>#dotorders-custom-search {
    margin-top: 5px;
    margin-bottom: 10px;
}



/* Defensive: remove small separators, outlines, inner shadows in chrome areas */
.sticky-top *,
.navbar *,
.body-sidebar *,
.body-sidebar-container * {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

/* Global borders for all editable fields — checkboxes excluded so Frappe's
   native grey styling for .disabled-selected / .disabled-deselected is preserved */
.form-control,
.frappe-control input:not([type="checkbox"]),
.frappe-control textarea,
.frappe-control select,
.input-with-feedback {
    border: 1px solid var(--border-color, #d1d1d1) !important;
    box-shadow: none !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
}

/* Editable checkbox — white with border (Frappe handles checked/unchecked natively) */
.frappe-control input[type="checkbox"]:not(.disabled-selected):not(.disabled-deselected) {
    box-sizing: border-box !important;
    border: 1px solid var(--gray-500, #8c8c8c) !important;
    background-color: #ffffff !important;
}

/* Read-only CHECKED — let Frappe's var(--gray-600) + white SVG checkmark show */
input[type="checkbox"].disabled-selected {
    background-color: var(--gray-600, #6c757d) !important;
    background-image: url("data:image/svg+xml, <svg viewBox='0 0 8 7' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1 4.00001L2.66667 5.80001L7 1.20001' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
    background-size: 57% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* Read-only UNCHECKED — let Frappe's var(--disabled-control-bg) light grey show */
input[type="checkbox"].disabled-deselected {
    background-color: var(--disabled-control-bg, #e9ecef) !important;
    background-image: none !important;
    border: 0.5px solid var(--dark-border-color, #adb5bd) !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* Force main form content background back to white */
.main-section .page-container .page-body,
.main-section .layout-main,
.main-section .layout-main-section,
.main-section .layout-main-section-wrapper,
.main-section .form-layout,
.main-section .form-layout .form-page,
.main-section .form-layout .form-page .form-column {
    background-color: #ffffff !important;
}

/* --------------------------------
   Form Tabs Layout & Styling
-----------------------------------*/

/* Soften inactive tabs */
.main-section .form-tabs-list .nav.form-tabs .nav-link {
    background: transparent !important;
    border: none !important;
    color: rgba(0, 0, 0, 0.45) !important;
    font-weight: 500;
}

/* Keep active tab visually stronger */
.main-section .form-tabs-list .nav.form-tabs .nav-link.active {
    color: #360c56 !important;
    border-bottom: 2px solid #360c56 !important;
}