:root {
    /* -- Colors -- */
    --pst-color-primary: #007BC0;
    --pst-color-secondary: #00A8B0;
    --pst-color-background: #FFFFFF;
    --pst-color-surface: #F8F9FA;
    --pst-color-text-base: #333333;
    --pst-color-text-muted: #6C757D;
    --pst-color-border: #DEE2E6;

    /* -- Typography -- */
    /* 
     * Note: The 'Bosch Sans' font is proprietary. 
     * If it is not installed on the system, the browser will use 
     * 'Helvetica Neue' or 'Arial'.
     */
    --pst-font-family-base: 'Bosch Sans', 'Helvetica Neue', Arial, sans-serif;
    --pst-font-family-monospace: 'Bosch Monospace', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

    /* -- Other settings -- */
    --pst-font-size-base: 1rem;
    --pst-font-size-h1: 2.5rem;
    --pst-font-size-h2: 2rem;
    --pst-font-size-h3: 1.75rem;

    /* -- Width settings -- */
    --pst-sidebar-width-primary: 250px;
    --pst-sidebar-width-secondary: 300px;
}

body {
    background-color: var(--pst-color-background);
    color: var(--pst-color-text-base);
    font-family: var(--pst-font-family-base);
    font-size: var(--pst-font-size-base);
}

a {
    color: var(--pst-color-primary);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: #005686; /* A darker shade of the primary blue */
    text-decoration: underline;
}

#doc-content img {
    max-width: 70%;
}

.linenos{

    padding-right:10px;

}
/*
-----------------------------------------------------------------
Section 2: Sphinx Book Theme Style Overrides
-----------------------------------------------------------------
*/

.bd-sidebar-secondary {
    width: 23%;

}

/* 2.1. Top Bar (Header) */
.bd-header {
    margin-top: 20px;
    background-color: var(--pst-color-surface);
    border-bottom: 1px solid var(--pst-color-border);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Styling for the logo and site name */
.navbar-brand.navbar-brand__logo {
    margin-right: 1rem;
}

.navbar-brand.navbar-brand__name {
    color: var(--pst-color-text-base);
    font-weight: 600;
}

/* Styling for icons in the top-right corner  */
.navbar-header-items__end.navbar-item {
    color: var(--pst-color-text-base);
    font-size: 1.25rem;
}

.navbar-header-items__end.navbar-item:hover {
    color: var(--pst-color-primary);
}

/* 2.2. Sidebar */
.bd-sidebar-primary {
    background-color: var(--pst-color-surface);
    border-right: 1px solid var(--pst-color-border);
}

/* Section titles in the sidebar */
.bd-links__title {
    color: var(--pst-color-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Links in the sidebar */
.bd-links__item {
    color: var(--pst-color-text-base);
}

.bd-links__item:hover {
    color: var(--pst-color-primary);
    background-color: #E9ECEF; /* Light gray background on hover */
}

/* Active (current) link in the sidebar */
.bd-links__item.active {
    color: var(--pst-color-primary);
    background-color: transparent;
    border-left: 3px solid var(--pst-color-primary);
    font-weight: 600;
    padding-left: calc(1rem - 3px); /* Compensation for the border */
}

/* 2.3. Content Area and Typography */
.bd-content {
    line-height: 1.6;
}

@media (min-width: 1200px) {
    .bd-main .bd-content .bd-article-container {
        max-width: calc(100% - 23%);
    }
}

.bd-content h1,
.bd-content h2,
.bd-content h3,
.bd-content h4 {
    font-weight: 600;
    color: var(--pst-color-text-base);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.bd-content h1 {
    font-size: var(--pst-font-size-h1);
    border-bottom: 2px solid var(--pst-color-border);
    padding-bottom: 0.5rem;
}

.bd-content h2 {
    font-size: var(--pst-font-size-h2);
    border-bottom: 1px solid var(--pst-color-border);
    padding-bottom: 0.25rem;
}

.bd-content h3 {
    font-size: var(--pst-font-size-h3);
}

/* Styling for tables generated by Sphinx */
table.table {
    border: 1px solid var(--pst-color-border);
}

table.table thead {
    background-color: var(--pst-color-surface);
    color: var(--pst-color-text-base);
    font-weight: 600;
}

table.table > :not(caption) > * > * {
    /* Override to match Bosch style */
    padding: 0.75rem;
    border-bottom-width: 1px;
}

/* Admonition blocks */
.admonition {
    background-color: var(--pst-color-surface);
    border: 1px solid var(--pst-color-border);
    border-left: 5px solid var(--pst-color-text-muted);
}

.admonition.note { border-left-color: var(--pst-color-primary); }
.admonition.warning { border-left-color: #FFA500; }
.admonition.danger { border-left-color: #DC3545; }

/* 2.4. Code Block Styling (Pygments) */
div.highlight {
    background-color: var(--pst-color-surface);
    border: 1px solid var(--pst-color-border);
    border-radius: 4px;
    padding: 1rem;
}

div.highlight pre {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

/*
-----------------------------------------------------------------
Section 3: Specialized Styles for Doxygen (raw::html)

-----------------------------------------------------------------
*/

/* 3.1. Doxygen Breadcrumbs */
.navpath {
    background-color: var(--pst-color-surface);
    border: 1px solid var(--pst-color-border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.navpath ul {
    margin: 0;
    padding: 0;
}

.navpath li {
    list-style-type: none;
    display: inline;
}

.navpath li.navelem a {
    color: var(--pst-color-primary);
}

.navpath li.navelem a:hover {
    text-decoration: underline;
}

/* 3.2. Doxygen Documentation Elements (Most Important) */

/* Container for a member description */
.memitem {
    background-color: #FFFFFF; /* Pure white for contrast */
    border: 1px solid var(--pst-color-border);
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Function header/signature */
.memproto {
    background-color: var(--pst-color-surface);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--pst-color-border);
    font-family: var(--pst-font-family-monospace);
    font-size: 0.95rem;
}

/* Detailed description (documentation) */
.memdoc {
    padding: 1rem 1.25rem;
    line-height: 1.6;
}

.memdoc p {
    margin-bottom: 1rem;
}

/* 3.3. Doxygen Table Harmonization */
/* 
 * Making Doxygen tables (e.g.,.directory,.params) 
 * look the same as Sphinx tables (.table)
 */
div.contents table {
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid var(--pst-color-border);
    border-collapse: collapse;
    font-size: 0.95rem;
}

div.contents table th,
div.contents table td {
    padding: 0.75rem;
    border: 1px solid var(--pst-color-border);
    text-align: left;
    vertical-align: top;
}

div.contents table th {
    background-color: var(--pst-color-surface);
    font-weight: 600;
}

/* Specific to Doxygen's parameter table */
table.params td.paramname {
    font-family: var(--pst-font-family-monospace);
    font-weight: 600;
}



/***************************************/

dl.py.attribute,
dl.py.property,
dl.py.function,
dl.py.method,
dl.py.staticmethod { 
   margin-bottom: 0.0rem !important;
   margin-top: 0.0rem !important;
   padding-top: 0.0rem !important;
   padding-bottom: 0.0rem !important;
   border-top: 2px solid #88888833;
}

.sig-name {
    color: #b962ad;
}
/*
dt.sig.sig-object.py em.property span.pre {
    display: none;
}
dt.sig.sig-object.py em.property span.w {
    display: none;
}
dt.sig.sig-object.py em.property span.p {
    display: none;
}*/

em.property{
    color: #d38888;
    font-size: 0.90rem;
}
.line-block{
    padding-top: 10px;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;

}

ul{
    padding-left: 70px;
    font-size: 0.85rem;
}

.line-block{
    color: #567;
}

dl.py.attribute > dd > dl.field-list.simple {
    display: inline-block !important; 
    margin-bottom: 0 !important;
    grid-template-columns: unset !important;
}

dl.py.attribute > dd > dl.field-list.simple > dt {
    display: none !important; 
}

dt.sig.sig-object.py{
    display: inline !important;	
	
}
dl.py.attribute > dd  {
    display: inline !important;	
    padding-left: 0 !important;
    margin-left: 0 !important;
    font-size: 0.95rem;
}

dl.py.attribute > dd > p {
	padding-left: 30px;
    font-size: 0.95rem;
    padding-bottom: 20px;    
}
dl.py.attribute > dd > div {
	padding-left: 30px;
    font-size: 0.95rem;
}

dl.py.attribute > dd > dl.field-list.simple > dd {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

dl.py.attribute > dd > dl.field-list.simple > dd::before {
    content: " = ";
    font-weight: bold;
    font-family: monospace;
    padding: 0 0.2em;
}

dl.py.attribute > dd > dl.field-list.simple > dd > p {
    display: inline-block !important;
    margin-bottom: 0 !important;
}

dl.py.attribute > dd > p:first-child {
    margin-top: 0.5em !important;
}

dl.py.attribute > dd > p:only-child {
    margin-top: 0 !important;
}

div.fragment{
	white-space: pre;
	display: none;
}

.lineno{
	display: none;
}

.bd-page-width{
	
	max-width: none;
}
/*
.bd-sidebar-primary{
	background-color: rgba(200, 210, 230, 0.2);
	box-shadow: -1px -1px 67px -23px rgba(0,0,0,0.75);
	-webkit-box-shadow: -1px -1px 67px -23px rgba(0,0,0,0.75);
	-moz-box-shadow: -1px -1px 67px -23px rgba(0,0,0,0.75);
}*/